feat: erweitere SmsParams um zusätzliche Eigenschaften für die SMS-API-Integration
- Neue erforderliche Eigenschaft `Endpoint` hinzugefügt, mit einem Standardwert für den GTX Messaging REST-API-Endpunkt. - Optionale Eigenschaften wie `Format`, `Accept`, `ContentType` und SMS-spezifische Parameter (`From`, `Texts`, `DlrMask` usw.) hinzugefügt, um API-Anforderungen zu erfüllen. - XML-Dokumentation mit API-Referenzlink aktualisiert, um besseren Kontext zu bieten. - TODO hinzugefügt, um Regex-Validierung in `init`-Methoden zu implementieren und Eingabefehler zu reduzieren.
This commit is contained in:
parent
949001791c
commit
d55233061d
@ -1,7 +1,50 @@
|
||||
namespace EnvelopeGenerator.Application.Configurations.GtxMessaging
|
||||
{
|
||||
/// <summary>
|
||||
/// https://www.gtx-messaging.com/en/api-docs/sms-rest-api/
|
||||
/// </summary>
|
||||
public class SmsParams
|
||||
{
|
||||
//TODO: Add a regex check to init methods to reduce the chance of errors.
|
||||
public required string Endpoint { get; init; } = "https://rest.gtx-messaging.net/smsc/sendsms";
|
||||
|
||||
// path params
|
||||
public required string AuthKey { get; init; }
|
||||
|
||||
public string? Format { get; init; }
|
||||
|
||||
// header params
|
||||
public string? Accept { get; init; }
|
||||
|
||||
public string? ContentType { get; init; }
|
||||
|
||||
// query params
|
||||
public required string From { get; init; }
|
||||
|
||||
public required Dictionary<string, string> Texts { get; init; }
|
||||
|
||||
public int? DlrMask { get; init; }
|
||||
|
||||
public string? DlrUrl { get; init; }
|
||||
|
||||
public string? Udh { get; init; }
|
||||
|
||||
public int? Dcs { get; init; }
|
||||
|
||||
public int? MClass { get; init; }
|
||||
|
||||
public int? MWI { get; init; }
|
||||
|
||||
public int? Coding { get; init; }
|
||||
|
||||
public string? Charset { get; init; }
|
||||
|
||||
public int? Validity { get; init; }
|
||||
|
||||
public DateTime? ValidityTime { get; init; }
|
||||
|
||||
public int? Deferred { get; init; }
|
||||
|
||||
public DateTime? DeferredTime { get; init; }
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user