diff --git a/EnvelopeGenerator.Application/Configurations/GTXMessagingConfig.cs b/EnvelopeGenerator.Application/Configurations/GTXMessagingConfig.cs deleted file mode 100644 index 45f9934b..00000000 --- a/EnvelopeGenerator.Application/Configurations/GTXMessagingConfig.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace EnvelopeGenerator.Application.Configurations -{ - public class GTXMessagingConfig - { - public required string AuthKey { get; init; } - } -} \ No newline at end of file diff --git a/EnvelopeGenerator.Application/Configurations/GtxMessaging/SmsParams.cs b/EnvelopeGenerator.Application/Configurations/GtxMessaging/SmsParams.cs new file mode 100644 index 00000000..04500ea7 --- /dev/null +++ b/EnvelopeGenerator.Application/Configurations/GtxMessaging/SmsParams.cs @@ -0,0 +1,7 @@ +namespace EnvelopeGenerator.Application.Configurations.GtxMessaging +{ + public class SmsParams + { + public required string AuthKey { get; init; } + } +} \ No newline at end of file diff --git a/EnvelopeGenerator.Application/Services/GTXMessagingService.cs b/EnvelopeGenerator.Application/Services/GTXMessagingService.cs index ee2b1db5..acfa76d6 100644 --- a/EnvelopeGenerator.Application/Services/GTXMessagingService.cs +++ b/EnvelopeGenerator.Application/Services/GTXMessagingService.cs @@ -1,15 +1,15 @@ -using EnvelopeGenerator.Application.Configurations; +using EnvelopeGenerator.Application.Configurations.GtxMessaging; using Microsoft.Extensions.Options; namespace EnvelopeGenerator.Application.Services { - public class GTXMessagingService + public class GtxMessagingService { - private readonly string _authKey; + private readonly SmsParams _smsParams; - public GTXMessagingService(IOptions options) + public GtxMessagingService(IOptions smsParamsOptions) { - _authKey = options.Value.AuthKey; + _smsParams = smsParamsOptions.Value; } } } \ No newline at end of file