diff --git a/Vonage.Test.Unit/MessagingTests.cs b/Vonage.Test.Unit/MessagingTests.cs index 4c2b0baf0..db96b0c65 100644 --- a/Vonage.Test.Unit/MessagingTests.cs +++ b/Vonage.Test.Unit/MessagingTests.cs @@ -36,7 +36,7 @@ public void KitcenSinkSendSms(bool passCreds) var expectedRequestContent = $"from=AcmeInc&to=447700900000&text={HttpUtility.UrlEncode("Hello World!")}" + $"&ttl=900000&status-report-req=true&callback={HttpUtility.UrlEncode("https://example.com/sms-dlr")}&message-class=0" + $"&type=text&vcard=none&vcal=none&body=638265253311&udh=06050415811581&protocol-id=127&title=welcome&url={HttpUtility.UrlEncode("https://example.com")}" + - $"&validity=300000&client-ref=my-personal-reference&account-ref=customer1234&api_key={ApiKey}&api_secret={ApiSecret}&"; + $"&validity=300000&client-ref=my-personal-reference&account-ref=customer1234&entity-id=testEntity&content-id=testcontent&api_key={ApiKey}&api_secret={ApiSecret}&"; var request = new Messaging.SendSmsRequest { AccountRef = "customer1234", @@ -56,7 +56,9 @@ public void KitcenSinkSendSms(bool passCreds) Validity = "300000", Vcal = "none", Vcard = "none", - Url = "https://example.com" + Url = "https://example.com", + ContentId ="testcontent", + EntityId="testEntity" }; diff --git a/Vonage/Messaging/SendSmsRequest.cs b/Vonage/Messaging/SendSmsRequest.cs index f1c812b12..1aae357bc 100644 --- a/Vonage/Messaging/SendSmsRequest.cs +++ b/Vonage/Messaging/SendSmsRequest.cs @@ -123,6 +123,20 @@ public class SendSmsRequest /// To use this feature, please email support@nexmo.com /// [JsonProperty("account-ref")] - public string AccountRef { get; set; } + public string AccountRef { get; set; } + + /// + /// A string parameter that satisfies regulatory requirements when sending an SMS to specific countries. + /// For more information please refer to the Country-Specific Outbound SMS Features + /// + [JsonProperty("entity-id")] + public string EntityId { get; set; } + + /// + /// A string parameter that satisfies regulatory requirements when sending an SMS to specific countries. + /// For more information please refer to the Country-Specific Outbound SMS Features + /// + [JsonProperty("content-id")] + public string ContentId { get; set; } } } \ No newline at end of file