From d88f4808c583a458fae55486b3e151367aa38519 Mon Sep 17 00:00:00 2001 From: Twilio Date: Thu, 13 Jul 2023 08:05:33 -0700 Subject: [PATCH] [Librarian] Regenerated @ 5627c63bd23f159fdbe112bf727f87b79c3d4f74 --- CHANGES.md | 22 + .../Rest/FlexApi/V1/InteractionOptions.cs | 7 + .../Rest/FlexApi/V1/InteractionResource.cs | 12 +- .../V1/TollfreeVerificationOptions.cs | 467 +++++++++++ .../V1/TollfreeVerificationResource.cs | 726 ++++++++++++++++++ .../Rest/Microvisor/V1/DeviceOptions.cs | 7 + .../Rest/Microvisor/V1/DeviceResource.cs | 8 +- .../V2/AuthorizationDocumentOptions.cs | 11 +- .../V2/AuthorizationDocumentResource.cs | 8 +- .../Numbers/V2/HostedNumberOrderResource.cs | 4 - .../Verify/V2/Service/VerificationOptions.cs | 7 + .../Verify/V2/Service/VerificationResource.cs | 20 +- src/Twilio/TwiML/Voice/Say.cs | 413 +++++++++- test/Twilio.Test/TwiML/GatherTest.cs | 4 +- test/Twilio.Test/TwiML/PromptTest.cs | 4 +- test/Twilio.Test/TwiML/SayTest.cs | 4 +- test/Twilio.Test/TwiML/VoiceResponseTest.cs | 4 +- 17 files changed, 1705 insertions(+), 23 deletions(-) create mode 100644 src/Twilio/Rest/Messaging/V1/TollfreeVerificationOptions.cs create mode 100644 src/Twilio/Rest/Messaging/V1/TollfreeVerificationResource.cs diff --git a/CHANGES.md b/CHANGES.md index 0bb12b6e4..c55e291fe 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,28 @@ twilio-csharp Changelog ======================= +[2023-07-13] Version 6.10.0 +--------------------------- +**Flex** +- Adding `interaction_context_sid` as optional parameter in Interactions API + +**Messaging** +- Making visiblity public for tollfree_verification API + +**Numbers** +- Remove Sms capability property from HNO creation under version `/v2` of HNO API. **(breaking change)** +- Update required properties in LOA creation under version `/v2` of Authorization document API. **(breaking change)** + +**Taskrouter** +- Add api to fetch task queue statistics for multiple TaskQueues + +**Verify** +- Add `RiskCheck` optional parameter on Verification creation. + +**Twiml** +- Add Google Voices and languages + + [2023-06-28] Version 6.9.0 -------------------------- **Lookups** diff --git a/src/Twilio/Rest/FlexApi/V1/InteractionOptions.cs b/src/Twilio/Rest/FlexApi/V1/InteractionOptions.cs index 0ef6c93c6..fd165fcc5 100644 --- a/src/Twilio/Rest/FlexApi/V1/InteractionOptions.cs +++ b/src/Twilio/Rest/FlexApi/V1/InteractionOptions.cs @@ -34,6 +34,9 @@ public class CreateInteractionOptions : IOptions /// The Interaction's routing logic. public object Routing { get; } + /// The Interaction context sid is used for adding a context lookup sid + public string InteractionContextSid { get; set; } + /// Construct a new CreateInteractionOptions /// The Interaction's channel. @@ -58,6 +61,10 @@ public CreateInteractionOptions(object channel, object routing) { p.Add(new KeyValuePair("Routing", Serializers.JsonObject(Routing))); } + if (InteractionContextSid != null) + { + p.Add(new KeyValuePair("InteractionContextSid", InteractionContextSid)); + } return p; } diff --git a/src/Twilio/Rest/FlexApi/V1/InteractionResource.cs b/src/Twilio/Rest/FlexApi/V1/InteractionResource.cs index d80d0a2a0..1673c98d9 100644 --- a/src/Twilio/Rest/FlexApi/V1/InteractionResource.cs +++ b/src/Twilio/Rest/FlexApi/V1/InteractionResource.cs @@ -74,14 +74,16 @@ public static InteractionResource Create(CreateInteractionOptions options, ITwil /// Create a new Interaction. /// The Interaction's channel. /// The Interaction's routing logic. + /// The Interaction context sid is used for adding a context lookup sid /// Client to make requests to Twilio /// A single instance of Interaction public static InteractionResource Create( object channel, object routing, + string interactionContextSid = null, ITwilioRestClient client = null) { - var options = new CreateInteractionOptions(channel, routing){ }; + var options = new CreateInteractionOptions(channel, routing){ InteractionContextSid = interactionContextSid }; return Create(options, client); } @@ -89,14 +91,16 @@ public static InteractionResource Create(CreateInteractionOptions options, ITwil /// Create a new Interaction. /// The Interaction's channel. /// The Interaction's routing logic. + /// The Interaction context sid is used for adding a context lookup sid /// Client to make requests to Twilio /// Task that resolves to A single instance of Interaction public static async System.Threading.Tasks.Task CreateAsync( object channel, object routing, + string interactionContextSid = null, ITwilioRestClient client = null) { - var options = new CreateInteractionOptions(channel, routing){ }; + var options = new CreateInteractionOptions(channel, routing){ InteractionContextSid = interactionContextSid }; return await CreateAsync(options, client); } #endif @@ -204,6 +208,10 @@ public static InteractionResource FromJson(string json) [JsonProperty("links")] public Dictionary Links { get; private set; } + /// The interaction_context_sid + [JsonProperty("interaction_context_sid")] + public string InteractionContextSid { get; private set; } + private InteractionResource() { diff --git a/src/Twilio/Rest/Messaging/V1/TollfreeVerificationOptions.cs b/src/Twilio/Rest/Messaging/V1/TollfreeVerificationOptions.cs new file mode 100644 index 000000000..3d04ed152 --- /dev/null +++ b/src/Twilio/Rest/Messaging/V1/TollfreeVerificationOptions.cs @@ -0,0 +1,467 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Messaging + * This is the public Twilio REST API. + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +using System; +using System.Collections.Generic; +using Twilio.Base; +using Twilio.Converters; +using System.Linq; + + + +namespace Twilio.Rest.Messaging.V1 +{ + + /// create + public class CreateTollfreeVerificationOptions : IOptions + { + + /// The name of the business or organization using the Tollfree number. + public string BusinessName { get; } + + /// The website of the business or organization using the Tollfree number. + public string BusinessWebsite { get; } + + /// The email address to receive the notification about the verification result. . + public string NotificationEmail { get; } + + /// The category of the use case for the Tollfree Number. List as many are applicable.. + public List UseCaseCategories { get; } + + /// Use this to further explain how messaging is used by the business or organization. + public string UseCaseSummary { get; } + + /// An example of message content, i.e. a sample message. + public string ProductionMessageSample { get; } + + /// Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL. + public List OptInImageUrls { get; } + + + public TollfreeVerificationResource.OptInTypeEnum OptInType { get; } + + /// Estimate monthly volume of messages from the Tollfree Number. + public string MessageVolume { get; } + + /// The SID of the Phone Number associated with the Tollfree Verification. + public string TollfreePhoneNumberSid { get; } + + /// Customer's Profile Bundle BundleSid. + public string CustomerProfileSid { get; set; } + + /// The address of the business or organization using the Tollfree number. + public string BusinessStreetAddress { get; set; } + + /// The address of the business or organization using the Tollfree number. + public string BusinessStreetAddress2 { get; set; } + + /// The city of the business or organization using the Tollfree number. + public string BusinessCity { get; set; } + + /// The state/province/region of the business or organization using the Tollfree number. + public string BusinessStateProvinceRegion { get; set; } + + /// The postal code of the business or organization using the Tollfree number. + public string BusinessPostalCode { get; set; } + + /// The country of the business or organization using the Tollfree number. + public string BusinessCountry { get; set; } + + /// Additional information to be provided for verification. + public string AdditionalInformation { get; set; } + + /// The first name of the contact for the business or organization using the Tollfree number. + public string BusinessContactFirstName { get; set; } + + /// The last name of the contact for the business or organization using the Tollfree number. + public string BusinessContactLastName { get; set; } + + /// The email address of the contact for the business or organization using the Tollfree number. + public string BusinessContactEmail { get; set; } + + /// The phone number of the contact for the business or organization using the Tollfree number. + public Types.PhoneNumber BusinessContactPhone { get; set; } + + /// An optional external reference ID supplied by customer and echoed back on status retrieval. + public string ExternalReferenceId { get; set; } + + + /// Construct a new CreateTollfreeVerificationOptions + /// The name of the business or organization using the Tollfree number. + /// The website of the business or organization using the Tollfree number. + /// The email address to receive the notification about the verification result. . + /// The category of the use case for the Tollfree Number. List as many are applicable.. + /// Use this to further explain how messaging is used by the business or organization. + /// An example of message content, i.e. a sample message. + /// Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL. + /// + /// Estimate monthly volume of messages from the Tollfree Number. + /// The SID of the Phone Number associated with the Tollfree Verification. + public CreateTollfreeVerificationOptions(string businessName, string businessWebsite, string notificationEmail, List useCaseCategories, string useCaseSummary, string productionMessageSample, List optInImageUrls, TollfreeVerificationResource.OptInTypeEnum optInType, string messageVolume, string tollfreePhoneNumberSid) + { + BusinessName = businessName; + BusinessWebsite = businessWebsite; + NotificationEmail = notificationEmail; + UseCaseCategories = useCaseCategories; + UseCaseSummary = useCaseSummary; + ProductionMessageSample = productionMessageSample; + OptInImageUrls = optInImageUrls; + OptInType = optInType; + MessageVolume = messageVolume; + TollfreePhoneNumberSid = tollfreePhoneNumberSid; + } + + + /// Generate the necessary parameters + public List> GetParams() + { + var p = new List>(); + + if (BusinessName != null) + { + p.Add(new KeyValuePair("BusinessName", BusinessName)); + } + if (BusinessWebsite != null) + { + p.Add(new KeyValuePair("BusinessWebsite", BusinessWebsite)); + } + if (NotificationEmail != null) + { + p.Add(new KeyValuePair("NotificationEmail", NotificationEmail)); + } + if (UseCaseCategories != null) + { + p.AddRange(UseCaseCategories.Select(UseCaseCategories => new KeyValuePair("UseCaseCategories", UseCaseCategories))); + } + if (UseCaseSummary != null) + { + p.Add(new KeyValuePair("UseCaseSummary", UseCaseSummary)); + } + if (ProductionMessageSample != null) + { + p.Add(new KeyValuePair("ProductionMessageSample", ProductionMessageSample)); + } + if (OptInImageUrls != null) + { + p.AddRange(OptInImageUrls.Select(OptInImageUrls => new KeyValuePair("OptInImageUrls", OptInImageUrls))); + } + if (OptInType != null) + { + p.Add(new KeyValuePair("OptInType", OptInType.ToString())); + } + if (MessageVolume != null) + { + p.Add(new KeyValuePair("MessageVolume", MessageVolume)); + } + if (TollfreePhoneNumberSid != null) + { + p.Add(new KeyValuePair("TollfreePhoneNumberSid", TollfreePhoneNumberSid)); + } + if (CustomerProfileSid != null) + { + p.Add(new KeyValuePair("CustomerProfileSid", CustomerProfileSid)); + } + if (BusinessStreetAddress != null) + { + p.Add(new KeyValuePair("BusinessStreetAddress", BusinessStreetAddress)); + } + if (BusinessStreetAddress2 != null) + { + p.Add(new KeyValuePair("BusinessStreetAddress2", BusinessStreetAddress2)); + } + if (BusinessCity != null) + { + p.Add(new KeyValuePair("BusinessCity", BusinessCity)); + } + if (BusinessStateProvinceRegion != null) + { + p.Add(new KeyValuePair("BusinessStateProvinceRegion", BusinessStateProvinceRegion)); + } + if (BusinessPostalCode != null) + { + p.Add(new KeyValuePair("BusinessPostalCode", BusinessPostalCode)); + } + if (BusinessCountry != null) + { + p.Add(new KeyValuePair("BusinessCountry", BusinessCountry)); + } + if (AdditionalInformation != null) + { + p.Add(new KeyValuePair("AdditionalInformation", AdditionalInformation)); + } + if (BusinessContactFirstName != null) + { + p.Add(new KeyValuePair("BusinessContactFirstName", BusinessContactFirstName)); + } + if (BusinessContactLastName != null) + { + p.Add(new KeyValuePair("BusinessContactLastName", BusinessContactLastName)); + } + if (BusinessContactEmail != null) + { + p.Add(new KeyValuePair("BusinessContactEmail", BusinessContactEmail)); + } + if (BusinessContactPhone != null) + { + p.Add(new KeyValuePair("BusinessContactPhone", BusinessContactPhone.ToString())); + } + if (ExternalReferenceId != null) + { + p.Add(new KeyValuePair("ExternalReferenceId", ExternalReferenceId)); + } + return p; + } + + + } + /// fetch + public class FetchTollfreeVerificationOptions : IOptions + { + + /// The unique string to identify Tollfree Verification. + public string PathSid { get; } + + + + /// Construct a new FetchTollfreeVerificationOptions + /// The unique string to identify Tollfree Verification. + public FetchTollfreeVerificationOptions(string pathSid) + { + PathSid = pathSid; + } + + + /// Generate the necessary parameters + public List> GetParams() + { + var p = new List>(); + + return p; + } + + + } + + + /// read + public class ReadTollfreeVerificationOptions : ReadOptions + { + + /// The SID of the Phone Number associated with the Tollfree Verification. + public string TollfreePhoneNumberSid { get; set; } + + /// The compliance status of the Tollfree Verification record. + public TollfreeVerificationResource.StatusEnum Status { get; set; } + + + + + + /// Generate the necessary parameters + public override List> GetParams() + { + var p = new List>(); + + if (TollfreePhoneNumberSid != null) + { + p.Add(new KeyValuePair("TollfreePhoneNumberSid", TollfreePhoneNumberSid)); + } + if (Status != null) + { + p.Add(new KeyValuePair("Status", Status.ToString())); + } + if (PageSize != null) + { + p.Add(new KeyValuePair("PageSize", PageSize.ToString())); + } + return p; + } + + + } + + /// update + public class UpdateTollfreeVerificationOptions : IOptions + { + + /// The unique string to identify Tollfree Verification. + public string PathSid { get; } + + /// The name of the business or organization using the Tollfree number. + public string BusinessName { get; set; } + + /// The website of the business or organization using the Tollfree number. + public string BusinessWebsite { get; set; } + + /// The email address to receive the notification about the verification result. . + public string NotificationEmail { get; set; } + + /// The category of the use case for the Tollfree Number. List as many are applicable.. + public List UseCaseCategories { get; set; } + + /// Use this to further explain how messaging is used by the business or organization. + public string UseCaseSummary { get; set; } + + /// An example of message content, i.e. a sample message. + public string ProductionMessageSample { get; set; } + + /// Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL. + public List OptInImageUrls { get; set; } + + + public TollfreeVerificationResource.OptInTypeEnum OptInType { get; set; } + + /// Estimate monthly volume of messages from the Tollfree Number. + public string MessageVolume { get; set; } + + /// The address of the business or organization using the Tollfree number. + public string BusinessStreetAddress { get; set; } + + /// The address of the business or organization using the Tollfree number. + public string BusinessStreetAddress2 { get; set; } + + /// The city of the business or organization using the Tollfree number. + public string BusinessCity { get; set; } + + /// The state/province/region of the business or organization using the Tollfree number. + public string BusinessStateProvinceRegion { get; set; } + + /// The postal code of the business or organization using the Tollfree number. + public string BusinessPostalCode { get; set; } + + /// The country of the business or organization using the Tollfree number. + public string BusinessCountry { get; set; } + + /// Additional information to be provided for verification. + public string AdditionalInformation { get; set; } + + /// The first name of the contact for the business or organization using the Tollfree number. + public string BusinessContactFirstName { get; set; } + + /// The last name of the contact for the business or organization using the Tollfree number. + public string BusinessContactLastName { get; set; } + + /// The email address of the contact for the business or organization using the Tollfree number. + public string BusinessContactEmail { get; set; } + + /// The phone number of the contact for the business or organization using the Tollfree number. + public Types.PhoneNumber BusinessContactPhone { get; set; } + + + + /// Construct a new UpdateTollfreeVerificationOptions + /// The unique string to identify Tollfree Verification. + public UpdateTollfreeVerificationOptions(string pathSid) + { + PathSid = pathSid; + UseCaseCategories = new List(); + OptInImageUrls = new List(); + } + + + /// Generate the necessary parameters + public List> GetParams() + { + var p = new List>(); + + if (BusinessName != null) + { + p.Add(new KeyValuePair("BusinessName", BusinessName)); + } + if (BusinessWebsite != null) + { + p.Add(new KeyValuePair("BusinessWebsite", BusinessWebsite)); + } + if (NotificationEmail != null) + { + p.Add(new KeyValuePair("NotificationEmail", NotificationEmail)); + } + if (UseCaseCategories != null) + { + p.AddRange(UseCaseCategories.Select(UseCaseCategories => new KeyValuePair("UseCaseCategories", UseCaseCategories))); + } + if (UseCaseSummary != null) + { + p.Add(new KeyValuePair("UseCaseSummary", UseCaseSummary)); + } + if (ProductionMessageSample != null) + { + p.Add(new KeyValuePair("ProductionMessageSample", ProductionMessageSample)); + } + if (OptInImageUrls != null) + { + p.AddRange(OptInImageUrls.Select(OptInImageUrls => new KeyValuePair("OptInImageUrls", OptInImageUrls))); + } + if (OptInType != null) + { + p.Add(new KeyValuePair("OptInType", OptInType.ToString())); + } + if (MessageVolume != null) + { + p.Add(new KeyValuePair("MessageVolume", MessageVolume)); + } + if (BusinessStreetAddress != null) + { + p.Add(new KeyValuePair("BusinessStreetAddress", BusinessStreetAddress)); + } + if (BusinessStreetAddress2 != null) + { + p.Add(new KeyValuePair("BusinessStreetAddress2", BusinessStreetAddress2)); + } + if (BusinessCity != null) + { + p.Add(new KeyValuePair("BusinessCity", BusinessCity)); + } + if (BusinessStateProvinceRegion != null) + { + p.Add(new KeyValuePair("BusinessStateProvinceRegion", BusinessStateProvinceRegion)); + } + if (BusinessPostalCode != null) + { + p.Add(new KeyValuePair("BusinessPostalCode", BusinessPostalCode)); + } + if (BusinessCountry != null) + { + p.Add(new KeyValuePair("BusinessCountry", BusinessCountry)); + } + if (AdditionalInformation != null) + { + p.Add(new KeyValuePair("AdditionalInformation", AdditionalInformation)); + } + if (BusinessContactFirstName != null) + { + p.Add(new KeyValuePair("BusinessContactFirstName", BusinessContactFirstName)); + } + if (BusinessContactLastName != null) + { + p.Add(new KeyValuePair("BusinessContactLastName", BusinessContactLastName)); + } + if (BusinessContactEmail != null) + { + p.Add(new KeyValuePair("BusinessContactEmail", BusinessContactEmail)); + } + if (BusinessContactPhone != null) + { + p.Add(new KeyValuePair("BusinessContactPhone", BusinessContactPhone.ToString())); + } + return p; + } + + + } + + +} + diff --git a/src/Twilio/Rest/Messaging/V1/TollfreeVerificationResource.cs b/src/Twilio/Rest/Messaging/V1/TollfreeVerificationResource.cs new file mode 100644 index 000000000..69f5c636c --- /dev/null +++ b/src/Twilio/Rest/Messaging/V1/TollfreeVerificationResource.cs @@ -0,0 +1,726 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Messaging + * This is the public Twilio REST API. + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +using Newtonsoft.Json; +using System; +using System.Collections.Generic; +using Twilio.Base; +using Twilio.Clients; +using Twilio.Converters; +using Twilio.Exceptions; +using Twilio.Http; +using Twilio.Types; + + +namespace Twilio.Rest.Messaging.V1 +{ + public class TollfreeVerificationResource : Resource + { + + [JsonConverter(typeof(StringEnumConverter))] + public sealed class StatusEnum : StringEnum + { + private StatusEnum(string value) : base(value) {} + public StatusEnum() {} + public static implicit operator StatusEnum(string value) + { + return new StatusEnum(value); + } + public static readonly StatusEnum PendingReview = new StatusEnum("PENDING_REVIEW"); + public static readonly StatusEnum InReview = new StatusEnum("IN_REVIEW"); + public static readonly StatusEnum TwilioApproved = new StatusEnum("TWILIO_APPROVED"); + public static readonly StatusEnum TwilioRejected = new StatusEnum("TWILIO_REJECTED"); + + } + [JsonConverter(typeof(StringEnumConverter))] + public sealed class OptInTypeEnum : StringEnum + { + private OptInTypeEnum(string value) : base(value) {} + public OptInTypeEnum() {} + public static implicit operator OptInTypeEnum(string value) + { + return new OptInTypeEnum(value); + } + public static readonly OptInTypeEnum Verbal = new OptInTypeEnum("VERBAL"); + public static readonly OptInTypeEnum WebForm = new OptInTypeEnum("WEB_FORM"); + public static readonly OptInTypeEnum PaperForm = new OptInTypeEnum("PAPER_FORM"); + public static readonly OptInTypeEnum ViaText = new OptInTypeEnum("VIA_TEXT"); + public static readonly OptInTypeEnum MobileQrCode = new OptInTypeEnum("MOBILE_QR_CODE"); + + } + + + private static Request BuildCreateRequest(CreateTollfreeVerificationOptions options, ITwilioRestClient client) + { + + string path = "/v1/Tollfree/Verifications"; + + + return new Request( + HttpMethod.Post, + Rest.Domain.Messaging, + path, + postParams: options.GetParams(), + headerParams: null + ); + } + + /// create + /// Create TollfreeVerification parameters + /// Client to make requests to Twilio + /// A single instance of TollfreeVerification + public static TollfreeVerificationResource Create(CreateTollfreeVerificationOptions options, ITwilioRestClient client = null) + { + client = client ?? TwilioClient.GetRestClient(); + var response = client.Request(BuildCreateRequest(options, client)); + return FromJson(response.Content); + } + + #if !NET35 + /// create + /// Create TollfreeVerification parameters + /// Client to make requests to Twilio + /// Task that resolves to A single instance of TollfreeVerification + public static async System.Threading.Tasks.Task CreateAsync(CreateTollfreeVerificationOptions options, + ITwilioRestClient client = null) + { + client = client ?? TwilioClient.GetRestClient(); + var response = await client.RequestAsync(BuildCreateRequest(options, client)); + return FromJson(response.Content); + } + #endif + + /// create + /// The name of the business or organization using the Tollfree number. + /// The website of the business or organization using the Tollfree number. + /// The email address to receive the notification about the verification result. . + /// The category of the use case for the Tollfree Number. List as many are applicable.. + /// Use this to further explain how messaging is used by the business or organization. + /// An example of message content, i.e. a sample message. + /// Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL. + /// + /// Estimate monthly volume of messages from the Tollfree Number. + /// The SID of the Phone Number associated with the Tollfree Verification. + /// Customer's Profile Bundle BundleSid. + /// The address of the business or organization using the Tollfree number. + /// The address of the business or organization using the Tollfree number. + /// The city of the business or organization using the Tollfree number. + /// The state/province/region of the business or organization using the Tollfree number. + /// The postal code of the business or organization using the Tollfree number. + /// The country of the business or organization using the Tollfree number. + /// Additional information to be provided for verification. + /// The first name of the contact for the business or organization using the Tollfree number. + /// The last name of the contact for the business or organization using the Tollfree number. + /// The email address of the contact for the business or organization using the Tollfree number. + /// The phone number of the contact for the business or organization using the Tollfree number. + /// An optional external reference ID supplied by customer and echoed back on status retrieval. + /// Client to make requests to Twilio + /// A single instance of TollfreeVerification + public static TollfreeVerificationResource Create( + string businessName, + string businessWebsite, + string notificationEmail, + List useCaseCategories, + string useCaseSummary, + string productionMessageSample, + List optInImageUrls, + TollfreeVerificationResource.OptInTypeEnum optInType, + string messageVolume, + string tollfreePhoneNumberSid, + string customerProfileSid = null, + string businessStreetAddress = null, + string businessStreetAddress2 = null, + string businessCity = null, + string businessStateProvinceRegion = null, + string businessPostalCode = null, + string businessCountry = null, + string additionalInformation = null, + string businessContactFirstName = null, + string businessContactLastName = null, + string businessContactEmail = null, + Types.PhoneNumber businessContactPhone = null, + string externalReferenceId = null, + ITwilioRestClient client = null) + { + var options = new CreateTollfreeVerificationOptions(businessName, businessWebsite, notificationEmail, useCaseCategories, useCaseSummary, productionMessageSample, optInImageUrls, optInType, messageVolume, tollfreePhoneNumberSid){ CustomerProfileSid = customerProfileSid, BusinessStreetAddress = businessStreetAddress, BusinessStreetAddress2 = businessStreetAddress2, BusinessCity = businessCity, BusinessStateProvinceRegion = businessStateProvinceRegion, BusinessPostalCode = businessPostalCode, BusinessCountry = businessCountry, AdditionalInformation = additionalInformation, BusinessContactFirstName = businessContactFirstName, BusinessContactLastName = businessContactLastName, BusinessContactEmail = businessContactEmail, BusinessContactPhone = businessContactPhone, ExternalReferenceId = externalReferenceId }; + return Create(options, client); + } + + #if !NET35 + /// create + /// The name of the business or organization using the Tollfree number. + /// The website of the business or organization using the Tollfree number. + /// The email address to receive the notification about the verification result. . + /// The category of the use case for the Tollfree Number. List as many are applicable.. + /// Use this to further explain how messaging is used by the business or organization. + /// An example of message content, i.e. a sample message. + /// Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL. + /// + /// Estimate monthly volume of messages from the Tollfree Number. + /// The SID of the Phone Number associated with the Tollfree Verification. + /// Customer's Profile Bundle BundleSid. + /// The address of the business or organization using the Tollfree number. + /// The address of the business or organization using the Tollfree number. + /// The city of the business or organization using the Tollfree number. + /// The state/province/region of the business or organization using the Tollfree number. + /// The postal code of the business or organization using the Tollfree number. + /// The country of the business or organization using the Tollfree number. + /// Additional information to be provided for verification. + /// The first name of the contact for the business or organization using the Tollfree number. + /// The last name of the contact for the business or organization using the Tollfree number. + /// The email address of the contact for the business or organization using the Tollfree number. + /// The phone number of the contact for the business or organization using the Tollfree number. + /// An optional external reference ID supplied by customer and echoed back on status retrieval. + /// Client to make requests to Twilio + /// Task that resolves to A single instance of TollfreeVerification + public static async System.Threading.Tasks.Task CreateAsync( + string businessName, + string businessWebsite, + string notificationEmail, + List useCaseCategories, + string useCaseSummary, + string productionMessageSample, + List optInImageUrls, + TollfreeVerificationResource.OptInTypeEnum optInType, + string messageVolume, + string tollfreePhoneNumberSid, + string customerProfileSid = null, + string businessStreetAddress = null, + string businessStreetAddress2 = null, + string businessCity = null, + string businessStateProvinceRegion = null, + string businessPostalCode = null, + string businessCountry = null, + string additionalInformation = null, + string businessContactFirstName = null, + string businessContactLastName = null, + string businessContactEmail = null, + Types.PhoneNumber businessContactPhone = null, + string externalReferenceId = null, + ITwilioRestClient client = null) + { + var options = new CreateTollfreeVerificationOptions(businessName, businessWebsite, notificationEmail, useCaseCategories, useCaseSummary, productionMessageSample, optInImageUrls, optInType, messageVolume, tollfreePhoneNumberSid){ CustomerProfileSid = customerProfileSid, BusinessStreetAddress = businessStreetAddress, BusinessStreetAddress2 = businessStreetAddress2, BusinessCity = businessCity, BusinessStateProvinceRegion = businessStateProvinceRegion, BusinessPostalCode = businessPostalCode, BusinessCountry = businessCountry, AdditionalInformation = additionalInformation, BusinessContactFirstName = businessContactFirstName, BusinessContactLastName = businessContactLastName, BusinessContactEmail = businessContactEmail, BusinessContactPhone = businessContactPhone, ExternalReferenceId = externalReferenceId }; + return await CreateAsync(options, client); + } + #endif + + private static Request BuildFetchRequest(FetchTollfreeVerificationOptions options, ITwilioRestClient client) + { + + string path = "/v1/Tollfree/Verifications/{Sid}"; + + string PathSid = options.PathSid; + path = path.Replace("{"+"Sid"+"}", PathSid); + + return new Request( + HttpMethod.Get, + Rest.Domain.Messaging, + path, + queryParams: options.GetParams(), + headerParams: null + ); + } + + /// fetch + /// Fetch TollfreeVerification parameters + /// Client to make requests to Twilio + /// A single instance of TollfreeVerification + public static TollfreeVerificationResource Fetch(FetchTollfreeVerificationOptions options, ITwilioRestClient client = null) + { + client = client ?? TwilioClient.GetRestClient(); + var response = client.Request(BuildFetchRequest(options, client)); + return FromJson(response.Content); + } + + #if !NET35 + /// fetch + /// Fetch TollfreeVerification parameters + /// Client to make requests to Twilio + /// Task that resolves to A single instance of TollfreeVerification + public static async System.Threading.Tasks.Task FetchAsync(FetchTollfreeVerificationOptions options, + ITwilioRestClient client = null) + { + client = client ?? TwilioClient.GetRestClient(); + var response = await client.RequestAsync(BuildFetchRequest(options, client)); + return FromJson(response.Content); + } + #endif + /// fetch + /// The unique string to identify Tollfree Verification. + /// Client to make requests to Twilio + /// A single instance of TollfreeVerification + public static TollfreeVerificationResource Fetch( + string pathSid, + ITwilioRestClient client = null) + { + var options = new FetchTollfreeVerificationOptions(pathSid){ }; + return Fetch(options, client); + } + + #if !NET35 + /// fetch + /// The unique string to identify Tollfree Verification. + /// Client to make requests to Twilio + /// Task that resolves to A single instance of TollfreeVerification + public static async System.Threading.Tasks.Task FetchAsync(string pathSid, ITwilioRestClient client = null) + { + var options = new FetchTollfreeVerificationOptions(pathSid){ }; + return await FetchAsync(options, client); + } + #endif + + private static Request BuildReadRequest(ReadTollfreeVerificationOptions options, ITwilioRestClient client) + { + + string path = "/v1/Tollfree/Verifications"; + + + return new Request( + HttpMethod.Get, + Rest.Domain.Messaging, + path, + queryParams: options.GetParams(), + headerParams: null + ); + } + /// read + /// Read TollfreeVerification parameters + /// Client to make requests to Twilio + /// A single instance of TollfreeVerification + public static ResourceSet Read(ReadTollfreeVerificationOptions options, ITwilioRestClient client = null) + { + client = client ?? TwilioClient.GetRestClient(); + var response = client.Request(BuildReadRequest(options, client)); + var page = Page.FromJson("verifications", response.Content); + return new ResourceSet(page, options, client); + } + + #if !NET35 + /// read + /// Read TollfreeVerification parameters + /// Client to make requests to Twilio + /// Task that resolves to A single instance of TollfreeVerification + public static async System.Threading.Tasks.Task> ReadAsync(ReadTollfreeVerificationOptions options, + ITwilioRestClient client = null) + { + client = client ?? TwilioClient.GetRestClient(); + var response = await client.RequestAsync(BuildReadRequest(options, client)); + + var page = Page.FromJson("verifications", response.Content); + return new ResourceSet(page, options, client); + } + #endif + /// read + /// The SID of the Phone Number associated with the Tollfree Verification. + /// The compliance status of the Tollfree Verification record. + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + /// Record limit + /// Client to make requests to Twilio + /// A single instance of TollfreeVerification + public static ResourceSet Read( + string tollfreePhoneNumberSid = null, + TollfreeVerificationResource.StatusEnum status = null, + int? pageSize = null, + long? limit = null, + ITwilioRestClient client = null) + { + var options = new ReadTollfreeVerificationOptions(){ TollfreePhoneNumberSid = tollfreePhoneNumberSid, Status = status, PageSize = pageSize, Limit = limit}; + return Read(options, client); + } + + #if !NET35 + /// read + /// The SID of the Phone Number associated with the Tollfree Verification. + /// The compliance status of the Tollfree Verification record. + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + /// Record limit + /// Client to make requests to Twilio + /// Task that resolves to A single instance of TollfreeVerification + public static async System.Threading.Tasks.Task> ReadAsync( + string tollfreePhoneNumberSid = null, + TollfreeVerificationResource.StatusEnum status = null, + int? pageSize = null, + long? limit = null, + ITwilioRestClient client = null) + { + var options = new ReadTollfreeVerificationOptions(){ TollfreePhoneNumberSid = tollfreePhoneNumberSid, Status = status, PageSize = pageSize, Limit = limit}; + return await ReadAsync(options, client); + } + #endif + + + /// Fetch the target page of records + /// API-generated URL for the requested results page + /// Client to make requests to Twilio + /// The target page of records + public static Page GetPage(string targetUrl, ITwilioRestClient client) + { + client = client ?? TwilioClient.GetRestClient(); + + var request = new Request( + HttpMethod.Get, + targetUrl + ); + + var response = client.Request(request); + return Page.FromJson("verifications", response.Content); + } + + /// Fetch the next page of records + /// current page of records + /// Client to make requests to Twilio + /// The next page of records + public static Page NextPage(Page page, ITwilioRestClient client) + { + var request = new Request( + HttpMethod.Get, + page.GetNextPageUrl(Rest.Domain.Api) + ); + + var response = client.Request(request); + return Page.FromJson("verifications", response.Content); + } + + /// Fetch the previous page of records + /// current page of records + /// Client to make requests to Twilio + /// The previous page of records + public static Page PreviousPage(Page page, ITwilioRestClient client) + { + var request = new Request( + HttpMethod.Get, + page.GetPreviousPageUrl(Rest.Domain.Api) + ); + + var response = client.Request(request); + return Page.FromJson("verifications", response.Content); + } + + + private static Request BuildUpdateRequest(UpdateTollfreeVerificationOptions options, ITwilioRestClient client) + { + + string path = "/v1/Tollfree/Verifications/{Sid}"; + + string PathSid = options.PathSid; + path = path.Replace("{"+"Sid"+"}", PathSid); + + return new Request( + HttpMethod.Post, + Rest.Domain.Messaging, + path, + postParams: options.GetParams(), + headerParams: null + ); + } + + /// update + /// Update TollfreeVerification parameters + /// Client to make requests to Twilio + /// A single instance of TollfreeVerification + public static TollfreeVerificationResource Update(UpdateTollfreeVerificationOptions options, ITwilioRestClient client = null) + { + client = client ?? TwilioClient.GetRestClient(); + var response = client.Request(BuildUpdateRequest(options, client)); + return FromJson(response.Content); + } + + /// update + /// Update TollfreeVerification parameters + /// Client to make requests to Twilio + /// Task that resolves to A single instance of TollfreeVerification + #if !NET35 + public static async System.Threading.Tasks.Task UpdateAsync(UpdateTollfreeVerificationOptions options, + ITwilioRestClient client = null) + { + client = client ?? TwilioClient.GetRestClient(); + var response = await client.RequestAsync(BuildUpdateRequest(options, client)); + return FromJson(response.Content); + } + #endif + + /// update + /// The unique string to identify Tollfree Verification. + /// The name of the business or organization using the Tollfree number. + /// The website of the business or organization using the Tollfree number. + /// The email address to receive the notification about the verification result. . + /// The category of the use case for the Tollfree Number. List as many are applicable.. + /// Use this to further explain how messaging is used by the business or organization. + /// An example of message content, i.e. a sample message. + /// Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL. + /// + /// Estimate monthly volume of messages from the Tollfree Number. + /// The address of the business or organization using the Tollfree number. + /// The address of the business or organization using the Tollfree number. + /// The city of the business or organization using the Tollfree number. + /// The state/province/region of the business or organization using the Tollfree number. + /// The postal code of the business or organization using the Tollfree number. + /// The country of the business or organization using the Tollfree number. + /// Additional information to be provided for verification. + /// The first name of the contact for the business or organization using the Tollfree number. + /// The last name of the contact for the business or organization using the Tollfree number. + /// The email address of the contact for the business or organization using the Tollfree number. + /// The phone number of the contact for the business or organization using the Tollfree number. + /// Client to make requests to Twilio + /// A single instance of TollfreeVerification + public static TollfreeVerificationResource Update( + string pathSid, + string businessName = null, + string businessWebsite = null, + string notificationEmail = null, + List useCaseCategories = null, + string useCaseSummary = null, + string productionMessageSample = null, + List optInImageUrls = null, + TollfreeVerificationResource.OptInTypeEnum optInType = null, + string messageVolume = null, + string businessStreetAddress = null, + string businessStreetAddress2 = null, + string businessCity = null, + string businessStateProvinceRegion = null, + string businessPostalCode = null, + string businessCountry = null, + string additionalInformation = null, + string businessContactFirstName = null, + string businessContactLastName = null, + string businessContactEmail = null, + Types.PhoneNumber businessContactPhone = null, + ITwilioRestClient client = null) + { + var options = new UpdateTollfreeVerificationOptions(pathSid){ BusinessName = businessName, BusinessWebsite = businessWebsite, NotificationEmail = notificationEmail, UseCaseCategories = useCaseCategories, UseCaseSummary = useCaseSummary, ProductionMessageSample = productionMessageSample, OptInImageUrls = optInImageUrls, OptInType = optInType, MessageVolume = messageVolume, BusinessStreetAddress = businessStreetAddress, BusinessStreetAddress2 = businessStreetAddress2, BusinessCity = businessCity, BusinessStateProvinceRegion = businessStateProvinceRegion, BusinessPostalCode = businessPostalCode, BusinessCountry = businessCountry, AdditionalInformation = additionalInformation, BusinessContactFirstName = businessContactFirstName, BusinessContactLastName = businessContactLastName, BusinessContactEmail = businessContactEmail, BusinessContactPhone = businessContactPhone }; + return Update(options, client); + } + + #if !NET35 + /// update + /// The unique string to identify Tollfree Verification. + /// The name of the business or organization using the Tollfree number. + /// The website of the business or organization using the Tollfree number. + /// The email address to receive the notification about the verification result. . + /// The category of the use case for the Tollfree Number. List as many are applicable.. + /// Use this to further explain how messaging is used by the business or organization. + /// An example of message content, i.e. a sample message. + /// Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL. + /// + /// Estimate monthly volume of messages from the Tollfree Number. + /// The address of the business or organization using the Tollfree number. + /// The address of the business or organization using the Tollfree number. + /// The city of the business or organization using the Tollfree number. + /// The state/province/region of the business or organization using the Tollfree number. + /// The postal code of the business or organization using the Tollfree number. + /// The country of the business or organization using the Tollfree number. + /// Additional information to be provided for verification. + /// The first name of the contact for the business or organization using the Tollfree number. + /// The last name of the contact for the business or organization using the Tollfree number. + /// The email address of the contact for the business or organization using the Tollfree number. + /// The phone number of the contact for the business or organization using the Tollfree number. + /// Client to make requests to Twilio + /// Task that resolves to A single instance of TollfreeVerification + public static async System.Threading.Tasks.Task UpdateAsync( + string pathSid, + string businessName = null, + string businessWebsite = null, + string notificationEmail = null, + List useCaseCategories = null, + string useCaseSummary = null, + string productionMessageSample = null, + List optInImageUrls = null, + TollfreeVerificationResource.OptInTypeEnum optInType = null, + string messageVolume = null, + string businessStreetAddress = null, + string businessStreetAddress2 = null, + string businessCity = null, + string businessStateProvinceRegion = null, + string businessPostalCode = null, + string businessCountry = null, + string additionalInformation = null, + string businessContactFirstName = null, + string businessContactLastName = null, + string businessContactEmail = null, + Types.PhoneNumber businessContactPhone = null, + ITwilioRestClient client = null) + { + var options = new UpdateTollfreeVerificationOptions(pathSid){ BusinessName = businessName, BusinessWebsite = businessWebsite, NotificationEmail = notificationEmail, UseCaseCategories = useCaseCategories, UseCaseSummary = useCaseSummary, ProductionMessageSample = productionMessageSample, OptInImageUrls = optInImageUrls, OptInType = optInType, MessageVolume = messageVolume, BusinessStreetAddress = businessStreetAddress, BusinessStreetAddress2 = businessStreetAddress2, BusinessCity = businessCity, BusinessStateProvinceRegion = businessStateProvinceRegion, BusinessPostalCode = businessPostalCode, BusinessCountry = businessCountry, AdditionalInformation = additionalInformation, BusinessContactFirstName = businessContactFirstName, BusinessContactLastName = businessContactLastName, BusinessContactEmail = businessContactEmail, BusinessContactPhone = businessContactPhone }; + return await UpdateAsync(options, client); + } + #endif + + /// + /// Converts a JSON string into a TollfreeVerificationResource object + /// + /// Raw JSON string + /// TollfreeVerificationResource object represented by the provided JSON + public static TollfreeVerificationResource FromJson(string json) + { + try + { + return JsonConvert.DeserializeObject(json); + } + catch (JsonException e) + { + throw new ApiException(e.Message, e); + } + } + + + /// The unique string to identify Tollfree Verification. + [JsonProperty("sid")] + public string Sid { get; private set; } + + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Tollfree Verification resource. + [JsonProperty("account_sid")] + public string AccountSid { get; private set; } + + /// Customer's Profile Bundle BundleSid. + [JsonProperty("customer_profile_sid")] + public string CustomerProfileSid { get; private set; } + + /// Tollfree TrustProduct Bundle BundleSid. + [JsonProperty("trust_product_sid")] + public string TrustProductSid { get; private set; } + + /// The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + [JsonProperty("date_created")] + public DateTime? DateCreated { get; private set; } + + /// The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + [JsonProperty("date_updated")] + public DateTime? DateUpdated { get; private set; } + + /// The SID of the Regulated Item. + [JsonProperty("regulated_item_sid")] + public string RegulatedItemSid { get; private set; } + + /// The name of the business or organization using the Tollfree number. + [JsonProperty("business_name")] + public string BusinessName { get; private set; } + + /// The address of the business or organization using the Tollfree number. + [JsonProperty("business_street_address")] + public string BusinessStreetAddress { get; private set; } + + /// The address of the business or organization using the Tollfree number. + [JsonProperty("business_street_address2")] + public string BusinessStreetAddress2 { get; private set; } + + /// The city of the business or organization using the Tollfree number. + [JsonProperty("business_city")] + public string BusinessCity { get; private set; } + + /// The state/province/region of the business or organization using the Tollfree number. + [JsonProperty("business_state_province_region")] + public string BusinessStateProvinceRegion { get; private set; } + + /// The postal code of the business or organization using the Tollfree number. + [JsonProperty("business_postal_code")] + public string BusinessPostalCode { get; private set; } + + /// The country of the business or organization using the Tollfree number. + [JsonProperty("business_country")] + public string BusinessCountry { get; private set; } + + /// The website of the business or organization using the Tollfree number. + [JsonProperty("business_website")] + public string BusinessWebsite { get; private set; } + + /// The first name of the contact for the business or organization using the Tollfree number. + [JsonProperty("business_contact_first_name")] + public string BusinessContactFirstName { get; private set; } + + /// The last name of the contact for the business or organization using the Tollfree number. + [JsonProperty("business_contact_last_name")] + public string BusinessContactLastName { get; private set; } + + /// The email address of the contact for the business or organization using the Tollfree number. + [JsonProperty("business_contact_email")] + public string BusinessContactEmail { get; private set; } + + /// The phone number of the contact for the business or organization using the Tollfree number. + [JsonProperty("business_contact_phone")] + [JsonConverter(typeof(PhoneNumberConverter))] + public Types.PhoneNumber BusinessContactPhone { get; private set; } + + /// The email address to receive the notification about the verification result. . + [JsonProperty("notification_email")] + public string NotificationEmail { get; private set; } + + /// The category of the use case for the Tollfree Number. List as many are applicable.. + [JsonProperty("use_case_categories")] + public List UseCaseCategories { get; private set; } + + /// Use this to further explain how messaging is used by the business or organization. + [JsonProperty("use_case_summary")] + public string UseCaseSummary { get; private set; } + + /// An example of message content, i.e. a sample message. + [JsonProperty("production_message_sample")] + public string ProductionMessageSample { get; private set; } + + /// Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL. + [JsonProperty("opt_in_image_urls")] + public List OptInImageUrls { get; private set; } + + + [JsonProperty("opt_in_type")] + public TollfreeVerificationResource.OptInTypeEnum OptInType { get; private set; } + + /// Estimate monthly volume of messages from the Tollfree Number. + [JsonProperty("message_volume")] + public string MessageVolume { get; private set; } + + /// Additional information to be provided for verification. + [JsonProperty("additional_information")] + public string AdditionalInformation { get; private set; } + + /// The SID of the Phone Number associated with the Tollfree Verification. + [JsonProperty("tollfree_phone_number_sid")] + public string TollfreePhoneNumberSid { get; private set; } + + + [JsonProperty("status")] + public TollfreeVerificationResource.StatusEnum Status { get; private set; } + + /// The absolute URL of the Tollfree Verification resource. + [JsonProperty("url")] + public Uri Url { get; private set; } + + /// The rejection reason given when a Tollfree Verification has been rejected. + [JsonProperty("rejection_reason")] + public string RejectionReason { get; private set; } + + /// The error code given when a Tollfree Verification has been rejected. + [JsonProperty("error_code")] + public int? ErrorCode { get; private set; } + + /// The date and time when the ability to edit a rejected verification expires. + [JsonProperty("edit_expiration")] + public DateTime? EditExpiration { get; private set; } + + /// The URLs of the documents associated with the Tollfree Verification resource. + [JsonProperty("resource_links")] + public object ResourceLinks { get; private set; } + + /// An optional external reference ID supplied by customer and echoed back on status retrieval. + [JsonProperty("external_reference_id")] + public string ExternalReferenceId { get; private set; } + + + + private TollfreeVerificationResource() { + + } + } +} + diff --git a/src/Twilio/Rest/Microvisor/V1/DeviceOptions.cs b/src/Twilio/Rest/Microvisor/V1/DeviceOptions.cs index f17f9fd41..288e62c57 100644 --- a/src/Twilio/Rest/Microvisor/V1/DeviceOptions.cs +++ b/src/Twilio/Rest/Microvisor/V1/DeviceOptions.cs @@ -91,6 +91,9 @@ public class UpdateDeviceOptions : IOptions /// A Boolean flag specifying whether to enable application logging. Logs will be enabled or extended for 24 hours. public bool? LoggingEnabled { get; set; } + /// Set to true to restart the App running on the Device. + public bool? RestartApp { get; set; } + /// Construct a new UpdateDeviceOptions @@ -118,6 +121,10 @@ public UpdateDeviceOptions(string pathSid) { p.Add(new KeyValuePair("LoggingEnabled", LoggingEnabled.Value.ToString().ToLower())); } + if (RestartApp != null) + { + p.Add(new KeyValuePair("RestartApp", RestartApp.Value.ToString().ToLower())); + } return p; } diff --git a/src/Twilio/Rest/Microvisor/V1/DeviceResource.cs b/src/Twilio/Rest/Microvisor/V1/DeviceResource.cs index 2bd196436..c9be39775 100644 --- a/src/Twilio/Rest/Microvisor/V1/DeviceResource.cs +++ b/src/Twilio/Rest/Microvisor/V1/DeviceResource.cs @@ -263,6 +263,7 @@ public static DeviceResource Update(UpdateDeviceOptions options, ITwilioRestClie /// A unique and addressable name to be assigned to this Device by the developer. It may be used in place of the Device SID. /// The SID or unique name of the App to be targeted to the Device. /// A Boolean flag specifying whether to enable application logging. Logs will be enabled or extended for 24 hours. + /// Set to true to restart the App running on the Device. /// Client to make requests to Twilio /// A single instance of Device public static DeviceResource Update( @@ -270,9 +271,10 @@ public static DeviceResource Update(UpdateDeviceOptions options, ITwilioRestClie string uniqueName = null, string targetApp = null, bool? loggingEnabled = null, + bool? restartApp = null, ITwilioRestClient client = null) { - var options = new UpdateDeviceOptions(pathSid){ UniqueName = uniqueName, TargetApp = targetApp, LoggingEnabled = loggingEnabled }; + var options = new UpdateDeviceOptions(pathSid){ UniqueName = uniqueName, TargetApp = targetApp, LoggingEnabled = loggingEnabled, RestartApp = restartApp }; return Update(options, client); } @@ -282,6 +284,7 @@ public static DeviceResource Update(UpdateDeviceOptions options, ITwilioRestClie /// A unique and addressable name to be assigned to this Device by the developer. It may be used in place of the Device SID. /// The SID or unique name of the App to be targeted to the Device. /// A Boolean flag specifying whether to enable application logging. Logs will be enabled or extended for 24 hours. + /// Set to true to restart the App running on the Device. /// Client to make requests to Twilio /// Task that resolves to A single instance of Device public static async System.Threading.Tasks.Task UpdateAsync( @@ -289,9 +292,10 @@ public static DeviceResource Update(UpdateDeviceOptions options, ITwilioRestClie string uniqueName = null, string targetApp = null, bool? loggingEnabled = null, + bool? restartApp = null, ITwilioRestClient client = null) { - var options = new UpdateDeviceOptions(pathSid){ UniqueName = uniqueName, TargetApp = targetApp, LoggingEnabled = loggingEnabled }; + var options = new UpdateDeviceOptions(pathSid){ UniqueName = uniqueName, TargetApp = targetApp, LoggingEnabled = loggingEnabled, RestartApp = restartApp }; return await UpdateAsync(options, client); } #endif diff --git a/src/Twilio/Rest/Numbers/V2/AuthorizationDocumentOptions.cs b/src/Twilio/Rest/Numbers/V2/AuthorizationDocumentOptions.cs index 4c8a551c7..f8714e0b2 100644 --- a/src/Twilio/Rest/Numbers/V2/AuthorizationDocumentOptions.cs +++ b/src/Twilio/Rest/Numbers/V2/AuthorizationDocumentOptions.cs @@ -37,6 +37,9 @@ public class CreateAuthorizationDocumentOptions : IOptions The contact phone number of the person authorized to sign the Authorization Document. public Types.PhoneNumber ContactPhoneNumber { get; } + /// A list of HostedNumberOrder sids that this AuthorizationDocument will authorize for hosting phone number capabilities on Twilio's platform. + public List HostedNumberOrderSids { get; } + /// The title of the person authorized to sign the Authorization Document for this phone number. public string ContactTitle { get; set; } @@ -48,11 +51,13 @@ public class CreateAuthorizationDocumentOptions : IOptions A 34 character string that uniquely identifies the Address resource that is associated with this AuthorizationDocument. /// Email that this AuthorizationDocument will be sent to for signing. /// The contact phone number of the person authorized to sign the Authorization Document. - public CreateAuthorizationDocumentOptions(string addressSid, string email, Types.PhoneNumber contactPhoneNumber) + /// A list of HostedNumberOrder sids that this AuthorizationDocument will authorize for hosting phone number capabilities on Twilio's platform. + public CreateAuthorizationDocumentOptions(string addressSid, string email, Types.PhoneNumber contactPhoneNumber, List hostedNumberOrderSids) { AddressSid = addressSid; Email = email; ContactPhoneNumber = contactPhoneNumber; + HostedNumberOrderSids = hostedNumberOrderSids; CcEmails = new List(); } @@ -74,6 +79,10 @@ public CreateAuthorizationDocumentOptions(string addressSid, string email, Types { p.Add(new KeyValuePair("ContactPhoneNumber", ContactPhoneNumber.ToString())); } + if (HostedNumberOrderSids != null) + { + p.AddRange(HostedNumberOrderSids.Select(HostedNumberOrderSids => new KeyValuePair("HostedNumberOrderSids", HostedNumberOrderSids))); + } if (ContactTitle != null) { p.Add(new KeyValuePair("ContactTitle", ContactTitle)); diff --git a/src/Twilio/Rest/Numbers/V2/AuthorizationDocumentResource.cs b/src/Twilio/Rest/Numbers/V2/AuthorizationDocumentResource.cs index e88c7d2f0..ad0ff91a0 100644 --- a/src/Twilio/Rest/Numbers/V2/AuthorizationDocumentResource.cs +++ b/src/Twilio/Rest/Numbers/V2/AuthorizationDocumentResource.cs @@ -91,6 +91,7 @@ public static AuthorizationDocumentResource Create(CreateAuthorizationDocumentOp /// A 34 character string that uniquely identifies the Address resource that is associated with this AuthorizationDocument. /// Email that this AuthorizationDocument will be sent to for signing. /// The contact phone number of the person authorized to sign the Authorization Document. + /// A list of HostedNumberOrder sids that this AuthorizationDocument will authorize for hosting phone number capabilities on Twilio's platform. /// The title of the person authorized to sign the Authorization Document for this phone number. /// Email recipients who will be informed when an Authorization Document has been sent and signed. /// Client to make requests to Twilio @@ -99,11 +100,12 @@ public static AuthorizationDocumentResource Create(CreateAuthorizationDocumentOp string addressSid, string email, Types.PhoneNumber contactPhoneNumber, + List hostedNumberOrderSids, string contactTitle = null, List ccEmails = null, ITwilioRestClient client = null) { - var options = new CreateAuthorizationDocumentOptions(addressSid, email, contactPhoneNumber){ ContactTitle = contactTitle, CcEmails = ccEmails }; + var options = new CreateAuthorizationDocumentOptions(addressSid, email, contactPhoneNumber, hostedNumberOrderSids){ ContactTitle = contactTitle, CcEmails = ccEmails }; return Create(options, client); } @@ -112,6 +114,7 @@ public static AuthorizationDocumentResource Create(CreateAuthorizationDocumentOp /// A 34 character string that uniquely identifies the Address resource that is associated with this AuthorizationDocument. /// Email that this AuthorizationDocument will be sent to for signing. /// The contact phone number of the person authorized to sign the Authorization Document. + /// A list of HostedNumberOrder sids that this AuthorizationDocument will authorize for hosting phone number capabilities on Twilio's platform. /// The title of the person authorized to sign the Authorization Document for this phone number. /// Email recipients who will be informed when an Authorization Document has been sent and signed. /// Client to make requests to Twilio @@ -120,11 +123,12 @@ public static AuthorizationDocumentResource Create(CreateAuthorizationDocumentOp string addressSid, string email, Types.PhoneNumber contactPhoneNumber, + List hostedNumberOrderSids, string contactTitle = null, List ccEmails = null, ITwilioRestClient client = null) { - var options = new CreateAuthorizationDocumentOptions(addressSid, email, contactPhoneNumber){ ContactTitle = contactTitle, CcEmails = ccEmails }; + var options = new CreateAuthorizationDocumentOptions(addressSid, email, contactPhoneNumber, hostedNumberOrderSids){ ContactTitle = contactTitle, CcEmails = ccEmails }; return await CreateAsync(options, client); } #endif diff --git a/src/Twilio/Rest/Numbers/V2/HostedNumberOrderResource.cs b/src/Twilio/Rest/Numbers/V2/HostedNumberOrderResource.cs index 3a9d75a65..2cfd0ddfa 100644 --- a/src/Twilio/Rest/Numbers/V2/HostedNumberOrderResource.cs +++ b/src/Twilio/Rest/Numbers/V2/HostedNumberOrderResource.cs @@ -511,10 +511,6 @@ public static HostedNumberOrderResource FromJson(string json) [JsonProperty("date_created")] public DateTime? DateCreated { get; private set; } - /// Whether the SMS capability will be hosted on our platform. Can be `true` of `false`. - [JsonProperty("sms_capability")] - public bool? SmsCapability { get; private set; } - /// The date that this resource was updated, given as [GMT RFC 2822](http://www.ietf.org/rfc/rfc2822.txt) format. [JsonProperty("date_updated")] public DateTime? DateUpdated { get; private set; } diff --git a/src/Twilio/Rest/Verify/V2/Service/VerificationOptions.cs b/src/Twilio/Rest/Verify/V2/Service/VerificationOptions.cs index 77f1a1a32..50d2ce959 100644 --- a/src/Twilio/Rest/Verify/V2/Service/VerificationOptions.cs +++ b/src/Twilio/Rest/Verify/V2/Service/VerificationOptions.cs @@ -76,6 +76,9 @@ public class CreateVerificationOptions : IOptions /// Strongly encouraged if using the auto channel. The IP address of the client's device. If provided, it has to be a valid IPv4 or IPv6 address. public string DeviceIp { get; set; } + + public VerificationResource.RiskCheckEnum RiskCheck { get; set; } + /// Construct a new CreateVerificationOptions /// The SID of the verification [Service](https://www.twilio.com/docs/verify/api/service) to create the resource under. @@ -154,6 +157,10 @@ public CreateVerificationOptions(string pathServiceSid, string to, string channe { p.Add(new KeyValuePair("DeviceIp", DeviceIp)); } + if (RiskCheck != null) + { + p.Add(new KeyValuePair("RiskCheck", RiskCheck.ToString())); + } return p; } diff --git a/src/Twilio/Rest/Verify/V2/Service/VerificationResource.cs b/src/Twilio/Rest/Verify/V2/Service/VerificationResource.cs index dd9a7f08b..ec999fc65 100644 --- a/src/Twilio/Rest/Verify/V2/Service/VerificationResource.cs +++ b/src/Twilio/Rest/Verify/V2/Service/VerificationResource.cs @@ -40,6 +40,18 @@ public sealed class StatusEnum : StringEnum public static readonly StatusEnum Canceled = new StatusEnum("canceled"); public static readonly StatusEnum Approved = new StatusEnum("approved"); + } + public sealed class RiskCheckEnum : StringEnum + { + private RiskCheckEnum(string value) : base(value) {} + public RiskCheckEnum() {} + public static implicit operator RiskCheckEnum(string value) + { + return new RiskCheckEnum(value); + } + public static readonly RiskCheckEnum Enable = new RiskCheckEnum("enable"); + public static readonly RiskCheckEnum Disable = new RiskCheckEnum("disable"); + } [JsonConverter(typeof(StringEnumConverter))] public sealed class ChannelEnum : StringEnum @@ -118,6 +130,7 @@ public static VerificationResource Create(CreateVerificationOptions options, ITw /// The message [template](https://www.twilio.com/docs/verify/api/templates). If provided, will override the default template for the Service. SMS and Voice channels only. /// A stringified JSON object in which the keys are the template's special variables and the values are the variables substitutions. /// Strongly encouraged if using the auto channel. The IP address of the client's device. If provided, it has to be a valid IPv4 or IPv6 address. + /// /// Client to make requests to Twilio /// A single instance of Verification public static VerificationResource Create( @@ -137,9 +150,10 @@ public static VerificationResource Create(CreateVerificationOptions options, ITw string templateSid = null, string templateCustomSubstitutions = null, string deviceIp = null, + VerificationResource.RiskCheckEnum riskCheck = null, ITwilioRestClient client = null) { - var options = new CreateVerificationOptions(pathServiceSid, to, channel){ CustomFriendlyName = customFriendlyName, CustomMessage = customMessage, SendDigits = sendDigits, Locale = locale, CustomCode = customCode, Amount = amount, Payee = payee, RateLimits = rateLimits, ChannelConfiguration = channelConfiguration, AppHash = appHash, TemplateSid = templateSid, TemplateCustomSubstitutions = templateCustomSubstitutions, DeviceIp = deviceIp }; + var options = new CreateVerificationOptions(pathServiceSid, to, channel){ CustomFriendlyName = customFriendlyName, CustomMessage = customMessage, SendDigits = sendDigits, Locale = locale, CustomCode = customCode, Amount = amount, Payee = payee, RateLimits = rateLimits, ChannelConfiguration = channelConfiguration, AppHash = appHash, TemplateSid = templateSid, TemplateCustomSubstitutions = templateCustomSubstitutions, DeviceIp = deviceIp, RiskCheck = riskCheck }; return Create(options, client); } @@ -161,6 +175,7 @@ public static VerificationResource Create(CreateVerificationOptions options, ITw /// The message [template](https://www.twilio.com/docs/verify/api/templates). If provided, will override the default template for the Service. SMS and Voice channels only. /// A stringified JSON object in which the keys are the template's special variables and the values are the variables substitutions. /// Strongly encouraged if using the auto channel. The IP address of the client's device. If provided, it has to be a valid IPv4 or IPv6 address. + /// /// Client to make requests to Twilio /// Task that resolves to A single instance of Verification public static async System.Threading.Tasks.Task CreateAsync( @@ -180,9 +195,10 @@ public static VerificationResource Create(CreateVerificationOptions options, ITw string templateSid = null, string templateCustomSubstitutions = null, string deviceIp = null, + VerificationResource.RiskCheckEnum riskCheck = null, ITwilioRestClient client = null) { - var options = new CreateVerificationOptions(pathServiceSid, to, channel){ CustomFriendlyName = customFriendlyName, CustomMessage = customMessage, SendDigits = sendDigits, Locale = locale, CustomCode = customCode, Amount = amount, Payee = payee, RateLimits = rateLimits, ChannelConfiguration = channelConfiguration, AppHash = appHash, TemplateSid = templateSid, TemplateCustomSubstitutions = templateCustomSubstitutions, DeviceIp = deviceIp }; + var options = new CreateVerificationOptions(pathServiceSid, to, channel){ CustomFriendlyName = customFriendlyName, CustomMessage = customMessage, SendDigits = sendDigits, Locale = locale, CustomCode = customCode, Amount = amount, Payee = payee, RateLimits = rateLimits, ChannelConfiguration = channelConfiguration, AppHash = appHash, TemplateSid = templateSid, TemplateCustomSubstitutions = templateCustomSubstitutions, DeviceIp = deviceIp, RiskCheck = riskCheck }; return await CreateAsync(options, client); } #endif diff --git a/src/Twilio/TwiML/Voice/Say.cs b/src/Twilio/TwiML/Voice/Say.cs index e10f28547..0af8c62da 100644 --- a/src/Twilio/TwiML/Voice/Say.cs +++ b/src/Twilio/TwiML/Voice/Say.cs @@ -29,6 +29,388 @@ public sealed class VoiceEnum : StringEnum public static readonly VoiceEnum Man = new VoiceEnum("man"); public static readonly VoiceEnum Woman = new VoiceEnum("woman"); public static readonly VoiceEnum Alice = new VoiceEnum("alice"); + public static readonly VoiceEnum GoogleAfZaStandardA = new VoiceEnum("Google.af-ZA-Standard-A"); + public static readonly VoiceEnum GoogleArXaStandardA = new VoiceEnum("Google.ar-XA-Standard-A"); + public static readonly VoiceEnum GoogleArXaStandardB = new VoiceEnum("Google.ar-XA-Standard-B"); + public static readonly VoiceEnum GoogleArXaStandardC = new VoiceEnum("Google.ar-XA-Standard-C"); + public static readonly VoiceEnum GoogleArXaStandardD = new VoiceEnum("Google.ar-XA-Standard-D"); + public static readonly VoiceEnum GoogleArXaWavenetA = new VoiceEnum("Google.ar-XA-Wavenet-A"); + public static readonly VoiceEnum GoogleArXaWavenetB = new VoiceEnum("Google.ar-XA-Wavenet-B"); + public static readonly VoiceEnum GoogleArXaWavenetC = new VoiceEnum("Google.ar-XA-Wavenet-C"); + public static readonly VoiceEnum GoogleArXaWavenetD = new VoiceEnum("Google.ar-XA-Wavenet-D"); + public static readonly VoiceEnum GoogleBgBgStandardA = new VoiceEnum("Google.bg-BG-Standard-A"); + public static readonly VoiceEnum GoogleCaEsStandardA = new VoiceEnum("Google.ca-ES-Standard-A"); + public static readonly VoiceEnum GoogleCmnCnStandardA = new VoiceEnum("Google.cmn-CN-Standard-A"); + public static readonly VoiceEnum GoogleCmnCnStandardB = new VoiceEnum("Google.cmn-CN-Standard-B"); + public static readonly VoiceEnum GoogleCmnCnStandardC = new VoiceEnum("Google.cmn-CN-Standard-C"); + public static readonly VoiceEnum GoogleCmnCnStandardD = new VoiceEnum("Google.cmn-CN-Standard-D"); + public static readonly VoiceEnum GoogleCmnCnWavenetA = new VoiceEnum("Google.cmn-CN-Wavenet-A"); + public static readonly VoiceEnum GoogleCmnCnWavenetB = new VoiceEnum("Google.cmn-CN-Wavenet-B"); + public static readonly VoiceEnum GoogleCmnCnWavenetC = new VoiceEnum("Google.cmn-CN-Wavenet-C"); + public static readonly VoiceEnum GoogleCmnCnWavenetD = new VoiceEnum("Google.cmn-CN-Wavenet-D"); + public static readonly VoiceEnum GoogleCmnTwStandardA = new VoiceEnum("Google.cmn-TW-Standard-A"); + public static readonly VoiceEnum GoogleCmnTwStandardB = new VoiceEnum("Google.cmn-TW-Standard-B"); + public static readonly VoiceEnum GoogleCmnTwStandardC = new VoiceEnum("Google.cmn-TW-Standard-C"); + public static readonly VoiceEnum GoogleCmnTwWavenetA = new VoiceEnum("Google.cmn-TW-Wavenet-A"); + public static readonly VoiceEnum GoogleCmnTwWavenetB = new VoiceEnum("Google.cmn-TW-Wavenet-B"); + public static readonly VoiceEnum GoogleCmnTwWavenetC = new VoiceEnum("Google.cmn-TW-Wavenet-C"); + public static readonly VoiceEnum GoogleCsCzStandardA = new VoiceEnum("Google.cs-CZ-Standard-A"); + public static readonly VoiceEnum GoogleCsCzWavenetA = new VoiceEnum("Google.cs-CZ-Wavenet-A"); + public static readonly VoiceEnum GoogleDaDkNeural2D = new VoiceEnum("Google.da-DK-Neural2-D"); + public static readonly VoiceEnum GoogleDaDkNeural2F = new VoiceEnum("Google.da-DK-Neural2-F"); + public static readonly VoiceEnum GoogleDaDkStandardA = new VoiceEnum("Google.da-DK-Standard-A"); + public static readonly VoiceEnum GoogleDaDkStandardC = new VoiceEnum("Google.da-DK-Standard-C"); + public static readonly VoiceEnum GoogleDaDkStandardD = new VoiceEnum("Google.da-DK-Standard-D"); + public static readonly VoiceEnum GoogleDaDkStandardE = new VoiceEnum("Google.da-DK-Standard-E"); + public static readonly VoiceEnum GoogleDaDkWavenetA = new VoiceEnum("Google.da-DK-Wavenet-A"); + public static readonly VoiceEnum GoogleDaDkWavenetC = new VoiceEnum("Google.da-DK-Wavenet-C"); + public static readonly VoiceEnum GoogleDaDkWavenetD = new VoiceEnum("Google.da-DK-Wavenet-D"); + public static readonly VoiceEnum GoogleDaDkWavenetE = new VoiceEnum("Google.da-DK-Wavenet-E"); + public static readonly VoiceEnum GoogleDeDeNeural2B = new VoiceEnum("Google.de-DE-Neural2-B"); + public static readonly VoiceEnum GoogleDeDeNeural2C = new VoiceEnum("Google.de-DE-Neural2-C"); + public static readonly VoiceEnum GoogleDeDeNeural2D = new VoiceEnum("Google.de-DE-Neural2-D"); + public static readonly VoiceEnum GoogleDeDeNeural2F = new VoiceEnum("Google.de-DE-Neural2-F"); + public static readonly VoiceEnum GoogleDeDeStandardA = new VoiceEnum("Google.de-DE-Standard-A"); + public static readonly VoiceEnum GoogleDeDeStandardB = new VoiceEnum("Google.de-DE-Standard-B"); + public static readonly VoiceEnum GoogleDeDeStandardC = new VoiceEnum("Google.de-DE-Standard-C"); + public static readonly VoiceEnum GoogleDeDeStandardD = new VoiceEnum("Google.de-DE-Standard-D"); + public static readonly VoiceEnum GoogleDeDeStandardE = new VoiceEnum("Google.de-DE-Standard-E"); + public static readonly VoiceEnum GoogleDeDeStandardF = new VoiceEnum("Google.de-DE-Standard-F"); + public static readonly VoiceEnum GoogleDeDeWavenetA = new VoiceEnum("Google.de-DE-Wavenet-A"); + public static readonly VoiceEnum GoogleDeDeWavenetB = new VoiceEnum("Google.de-DE-Wavenet-B"); + public static readonly VoiceEnum GoogleDeDeWavenetC = new VoiceEnum("Google.de-DE-Wavenet-C"); + public static readonly VoiceEnum GoogleDeDeWavenetD = new VoiceEnum("Google.de-DE-Wavenet-D"); + public static readonly VoiceEnum GoogleDeDeWavenetE = new VoiceEnum("Google.de-DE-Wavenet-E"); + public static readonly VoiceEnum GoogleDeDeWavenetF = new VoiceEnum("Google.de-DE-Wavenet-F"); + public static readonly VoiceEnum GoogleElGrStandardA = new VoiceEnum("Google.el-GR-Standard-A"); + public static readonly VoiceEnum GoogleElGrWavenetA = new VoiceEnum("Google.el-GR-Wavenet-A"); + public static readonly VoiceEnum GoogleEnAuNeural2A = new VoiceEnum("Google.en-AU-Neural2-A"); + public static readonly VoiceEnum GoogleEnAuNeural2B = new VoiceEnum("Google.en-AU-Neural2-B"); + public static readonly VoiceEnum GoogleEnAuNeural2C = new VoiceEnum("Google.en-AU-Neural2-C"); + public static readonly VoiceEnum GoogleEnAuNeural2D = new VoiceEnum("Google.en-AU-Neural2-D"); + public static readonly VoiceEnum GoogleEnAuStandardA = new VoiceEnum("Google.en-AU-Standard-A"); + public static readonly VoiceEnum GoogleEnAuStandardB = new VoiceEnum("Google.en-AU-Standard-B"); + public static readonly VoiceEnum GoogleEnAuStandardC = new VoiceEnum("Google.en-AU-Standard-C"); + public static readonly VoiceEnum GoogleEnAuStandardD = new VoiceEnum("Google.en-AU-Standard-D"); + public static readonly VoiceEnum GoogleEnAuWavenetA = new VoiceEnum("Google.en-AU-Wavenet-A"); + public static readonly VoiceEnum GoogleEnAuWavenetB = new VoiceEnum("Google.en-AU-Wavenet-B"); + public static readonly VoiceEnum GoogleEnAuWavenetC = new VoiceEnum("Google.en-AU-Wavenet-C"); + public static readonly VoiceEnum GoogleEnAuWavenetD = new VoiceEnum("Google.en-AU-Wavenet-D"); + public static readonly VoiceEnum GoogleEnGbNeural2A = new VoiceEnum("Google.en-GB-Neural2-A"); + public static readonly VoiceEnum GoogleEnGbNeural2B = new VoiceEnum("Google.en-GB-Neural2-B"); + public static readonly VoiceEnum GoogleEnGbNeural2C = new VoiceEnum("Google.en-GB-Neural2-C"); + public static readonly VoiceEnum GoogleEnGbNeural2D = new VoiceEnum("Google.en-GB-Neural2-D"); + public static readonly VoiceEnum GoogleEnGbNeural2F = new VoiceEnum("Google.en-GB-Neural2-F"); + public static readonly VoiceEnum GoogleEnGbStandardA = new VoiceEnum("Google.en-GB-Standard-A"); + public static readonly VoiceEnum GoogleEnGbStandardB = new VoiceEnum("Google.en-GB-Standard-B"); + public static readonly VoiceEnum GoogleEnGbStandardC = new VoiceEnum("Google.en-GB-Standard-C"); + public static readonly VoiceEnum GoogleEnGbStandardD = new VoiceEnum("Google.en-GB-Standard-D"); + public static readonly VoiceEnum GoogleEnGbStandardF = new VoiceEnum("Google.en-GB-Standard-F"); + public static readonly VoiceEnum GoogleEnGbWavenetA = new VoiceEnum("Google.en-GB-Wavenet-A"); + public static readonly VoiceEnum GoogleEnGbWavenetB = new VoiceEnum("Google.en-GB-Wavenet-B"); + public static readonly VoiceEnum GoogleEnGbWavenetC = new VoiceEnum("Google.en-GB-Wavenet-C"); + public static readonly VoiceEnum GoogleEnGbWavenetD = new VoiceEnum("Google.en-GB-Wavenet-D"); + public static readonly VoiceEnum GoogleEnGbWavenetF = new VoiceEnum("Google.en-GB-Wavenet-F"); + public static readonly VoiceEnum GoogleEnInStandardA = new VoiceEnum("Google.en-IN-Standard-A"); + public static readonly VoiceEnum GoogleEnInStandardB = new VoiceEnum("Google.en-IN-Standard-B"); + public static readonly VoiceEnum GoogleEnInStandardC = new VoiceEnum("Google.en-IN-Standard-C"); + public static readonly VoiceEnum GoogleEnInStandardD = new VoiceEnum("Google.en-IN-Standard-D"); + public static readonly VoiceEnum GoogleEnInWavenetA = new VoiceEnum("Google.en-IN-Wavenet-A"); + public static readonly VoiceEnum GoogleEnInWavenetB = new VoiceEnum("Google.en-IN-Wavenet-B"); + public static readonly VoiceEnum GoogleEnInWavenetC = new VoiceEnum("Google.en-IN-Wavenet-C"); + public static readonly VoiceEnum GoogleEnInWavenetD = new VoiceEnum("Google.en-IN-Wavenet-D"); + public static readonly VoiceEnum GoogleEnUsNeural2A = new VoiceEnum("Google.en-US-Neural2-A"); + public static readonly VoiceEnum GoogleEnUsNeural2C = new VoiceEnum("Google.en-US-Neural2-C"); + public static readonly VoiceEnum GoogleEnUsNeural2D = new VoiceEnum("Google.en-US-Neural2-D"); + public static readonly VoiceEnum GoogleEnUsNeural2E = new VoiceEnum("Google.en-US-Neural2-E"); + public static readonly VoiceEnum GoogleEnUsNeural2F = new VoiceEnum("Google.en-US-Neural2-F"); + public static readonly VoiceEnum GoogleEnUsNeural2G = new VoiceEnum("Google.en-US-Neural2-G"); + public static readonly VoiceEnum GoogleEnUsNeural2H = new VoiceEnum("Google.en-US-Neural2-H"); + public static readonly VoiceEnum GoogleEnUsNeural2I = new VoiceEnum("Google.en-US-Neural2-I"); + public static readonly VoiceEnum GoogleEnUsNeural2J = new VoiceEnum("Google.en-US-Neural2-J"); + public static readonly VoiceEnum GoogleEnUsStandardA = new VoiceEnum("Google.en-US-Standard-A"); + public static readonly VoiceEnum GoogleEnUsStandardB = new VoiceEnum("Google.en-US-Standard-B"); + public static readonly VoiceEnum GoogleEnUsStandardC = new VoiceEnum("Google.en-US-Standard-C"); + public static readonly VoiceEnum GoogleEnUsStandardD = new VoiceEnum("Google.en-US-Standard-D"); + public static readonly VoiceEnum GoogleEnUsStandardE = new VoiceEnum("Google.en-US-Standard-E"); + public static readonly VoiceEnum GoogleEnUsStandardF = new VoiceEnum("Google.en-US-Standard-F"); + public static readonly VoiceEnum GoogleEnUsStandardG = new VoiceEnum("Google.en-US-Standard-G"); + public static readonly VoiceEnum GoogleEnUsStandardH = new VoiceEnum("Google.en-US-Standard-H"); + public static readonly VoiceEnum GoogleEnUsStandardI = new VoiceEnum("Google.en-US-Standard-I"); + public static readonly VoiceEnum GoogleEnUsStandardJ = new VoiceEnum("Google.en-US-Standard-J"); + public static readonly VoiceEnum GoogleEnUsWavenetA = new VoiceEnum("Google.en-US-Wavenet-A"); + public static readonly VoiceEnum GoogleEnUsWavenetB = new VoiceEnum("Google.en-US-Wavenet-B"); + public static readonly VoiceEnum GoogleEnUsWavenetC = new VoiceEnum("Google.en-US-Wavenet-C"); + public static readonly VoiceEnum GoogleEnUsWavenetD = new VoiceEnum("Google.en-US-Wavenet-D"); + public static readonly VoiceEnum GoogleEnUsWavenetE = new VoiceEnum("Google.en-US-Wavenet-E"); + public static readonly VoiceEnum GoogleEnUsWavenetF = new VoiceEnum("Google.en-US-Wavenet-F"); + public static readonly VoiceEnum GoogleEnUsWavenetG = new VoiceEnum("Google.en-US-Wavenet-G"); + public static readonly VoiceEnum GoogleEnUsWavenetH = new VoiceEnum("Google.en-US-Wavenet-H"); + public static readonly VoiceEnum GoogleEnUsWavenetI = new VoiceEnum("Google.en-US-Wavenet-I"); + public static readonly VoiceEnum GoogleEnUsWavenetJ = new VoiceEnum("Google.en-US-Wavenet-J"); + public static readonly VoiceEnum GoogleEsEsNeural2A = new VoiceEnum("Google.es-ES-Neural2-A"); + public static readonly VoiceEnum GoogleEsEsNeural2B = new VoiceEnum("Google.es-ES-Neural2-B"); + public static readonly VoiceEnum GoogleEsEsNeural2C = new VoiceEnum("Google.es-ES-Neural2-C"); + public static readonly VoiceEnum GoogleEsEsNeural2D = new VoiceEnum("Google.es-ES-Neural2-D"); + public static readonly VoiceEnum GoogleEsEsNeural2E = new VoiceEnum("Google.es-ES-Neural2-E"); + public static readonly VoiceEnum GoogleEsEsNeural2F = new VoiceEnum("Google.es-ES-Neural2-F"); + public static readonly VoiceEnum GoogleEsEsStandardB = new VoiceEnum("Google.es-ES-Standard-B"); + public static readonly VoiceEnum GoogleEsEsStandardC = new VoiceEnum("Google.es-ES-Standard-C"); + public static readonly VoiceEnum GoogleEsEsStandardD = new VoiceEnum("Google.es-ES-Standard-D"); + public static readonly VoiceEnum GoogleEsEsWavenetB = new VoiceEnum("Google.es-ES-Wavenet-B"); + public static readonly VoiceEnum GoogleEsEsWavenetC = new VoiceEnum("Google.es-ES-Wavenet-C"); + public static readonly VoiceEnum GoogleEsEsWavenetD = new VoiceEnum("Google.es-ES-Wavenet-D"); + public static readonly VoiceEnum GoogleEsUsNeural2A = new VoiceEnum("Google.es-US-Neural2-A"); + public static readonly VoiceEnum GoogleEsUsNeural2B = new VoiceEnum("Google.es-US-Neural2-B"); + public static readonly VoiceEnum GoogleEsUsNeural2C = new VoiceEnum("Google.es-US-Neural2-C"); + public static readonly VoiceEnum GoogleEsUsStandardA = new VoiceEnum("Google.es-US-Standard-A"); + public static readonly VoiceEnum GoogleEsUsStandardB = new VoiceEnum("Google.es-US-Standard-B"); + public static readonly VoiceEnum GoogleEsUsStandardC = new VoiceEnum("Google.es-US-Standard-C"); + public static readonly VoiceEnum GoogleEsUsWavenetA = new VoiceEnum("Google.es-US-Wavenet-A"); + public static readonly VoiceEnum GoogleEsUsWavenetB = new VoiceEnum("Google.es-US-Wavenet-B"); + public static readonly VoiceEnum GoogleEsUsWavenetC = new VoiceEnum("Google.es-US-Wavenet-C"); + public static readonly VoiceEnum GoogleEuEsStandardA = new VoiceEnum("Google.eu-ES-Standard-A"); + public static readonly VoiceEnum GoogleFiFiStandardA = new VoiceEnum("Google.fi-FI-Standard-A"); + public static readonly VoiceEnum GoogleFiFiWavenetA = new VoiceEnum("Google.fi-FI-Wavenet-A"); + public static readonly VoiceEnum GoogleFilPhStandardA = new VoiceEnum("Google.fil-PH-Standard-A"); + public static readonly VoiceEnum GoogleFilPhStandardB = new VoiceEnum("Google.fil-PH-Standard-B"); + public static readonly VoiceEnum GoogleFilPhStandardC = new VoiceEnum("Google.fil-PH-Standard-C"); + public static readonly VoiceEnum GoogleFilPhStandardD = new VoiceEnum("Google.fil-PH-Standard-D"); + public static readonly VoiceEnum GoogleFilPhWavenetA = new VoiceEnum("Google.fil-PH-Wavenet-A"); + public static readonly VoiceEnum GoogleFilPhWavenetB = new VoiceEnum("Google.fil-PH-Wavenet-B"); + public static readonly VoiceEnum GoogleFilPhWavenetC = new VoiceEnum("Google.fil-PH-Wavenet-C"); + public static readonly VoiceEnum GoogleFilPhWavenetD = new VoiceEnum("Google.fil-PH-Wavenet-D"); + public static readonly VoiceEnum GoogleFilPhNeural2A = new VoiceEnum("Google.fil-ph-Neural2-A"); + public static readonly VoiceEnum GoogleFilPhNeural2D = new VoiceEnum("Google.fil-ph-Neural2-D"); + public static readonly VoiceEnum GoogleFrCaNeural2A = new VoiceEnum("Google.fr-CA-Neural2-A"); + public static readonly VoiceEnum GoogleFrCaNeural2B = new VoiceEnum("Google.fr-CA-Neural2-B"); + public static readonly VoiceEnum GoogleFrCaNeural2C = new VoiceEnum("Google.fr-CA-Neural2-C"); + public static readonly VoiceEnum GoogleFrCaNeural2D = new VoiceEnum("Google.fr-CA-Neural2-D"); + public static readonly VoiceEnum GoogleFrCaStandardA = new VoiceEnum("Google.fr-CA-Standard-A"); + public static readonly VoiceEnum GoogleFrCaStandardB = new VoiceEnum("Google.fr-CA-Standard-B"); + public static readonly VoiceEnum GoogleFrCaStandardC = new VoiceEnum("Google.fr-CA-Standard-C"); + public static readonly VoiceEnum GoogleFrCaStandardD = new VoiceEnum("Google.fr-CA-Standard-D"); + public static readonly VoiceEnum GoogleFrCaWavenetA = new VoiceEnum("Google.fr-CA-Wavenet-A"); + public static readonly VoiceEnum GoogleFrCaWavenetB = new VoiceEnum("Google.fr-CA-Wavenet-B"); + public static readonly VoiceEnum GoogleFrCaWavenetC = new VoiceEnum("Google.fr-CA-Wavenet-C"); + public static readonly VoiceEnum GoogleFrCaWavenetD = new VoiceEnum("Google.fr-CA-Wavenet-D"); + public static readonly VoiceEnum GoogleFrFrNeural2A = new VoiceEnum("Google.fr-FR-Neural2-A"); + public static readonly VoiceEnum GoogleFrFrNeural2B = new VoiceEnum("Google.fr-FR-Neural2-B"); + public static readonly VoiceEnum GoogleFrFrNeural2C = new VoiceEnum("Google.fr-FR-Neural2-C"); + public static readonly VoiceEnum GoogleFrFrNeural2D = new VoiceEnum("Google.fr-FR-Neural2-D"); + public static readonly VoiceEnum GoogleFrFrNeural2E = new VoiceEnum("Google.fr-FR-Neural2-E"); + public static readonly VoiceEnum GoogleFrFrStandardA = new VoiceEnum("Google.fr-FR-Standard-A"); + public static readonly VoiceEnum GoogleFrFrStandardB = new VoiceEnum("Google.fr-FR-Standard-B"); + public static readonly VoiceEnum GoogleFrFrStandardC = new VoiceEnum("Google.fr-FR-Standard-C"); + public static readonly VoiceEnum GoogleFrFrStandardD = new VoiceEnum("Google.fr-FR-Standard-D"); + public static readonly VoiceEnum GoogleFrFrStandardE = new VoiceEnum("Google.fr-FR-Standard-E"); + public static readonly VoiceEnum GoogleFrFrWavenetA = new VoiceEnum("Google.fr-FR-Wavenet-A"); + public static readonly VoiceEnum GoogleFrFrWavenetB = new VoiceEnum("Google.fr-FR-Wavenet-B"); + public static readonly VoiceEnum GoogleFrFrWavenetC = new VoiceEnum("Google.fr-FR-Wavenet-C"); + public static readonly VoiceEnum GoogleFrFrWavenetD = new VoiceEnum("Google.fr-FR-Wavenet-D"); + public static readonly VoiceEnum GoogleFrFrWavenetE = new VoiceEnum("Google.fr-FR-Wavenet-E"); + public static readonly VoiceEnum GoogleGlEsStandardA = new VoiceEnum("Google.gl-ES-Standard-A"); + public static readonly VoiceEnum GoogleHeIlStandardA = new VoiceEnum("Google.he-IL-Standard-A"); + public static readonly VoiceEnum GoogleHeIlStandardB = new VoiceEnum("Google.he-IL-Standard-B"); + public static readonly VoiceEnum GoogleHeIlStandardC = new VoiceEnum("Google.he-IL-Standard-C"); + public static readonly VoiceEnum GoogleHeIlStandardD = new VoiceEnum("Google.he-IL-Standard-D"); + public static readonly VoiceEnum GoogleHeIlWavenetA = new VoiceEnum("Google.he-IL-Wavenet-A"); + public static readonly VoiceEnum GoogleHeIlWavenetB = new VoiceEnum("Google.he-IL-Wavenet-B"); + public static readonly VoiceEnum GoogleHeIlWavenetC = new VoiceEnum("Google.he-IL-Wavenet-C"); + public static readonly VoiceEnum GoogleHeIlWavenetD = new VoiceEnum("Google.he-IL-Wavenet-D"); + public static readonly VoiceEnum GoogleHiInNeural2A = new VoiceEnum("Google.hi-IN-Neural2-A"); + public static readonly VoiceEnum GoogleHiInNeural2B = new VoiceEnum("Google.hi-IN-Neural2-B"); + public static readonly VoiceEnum GoogleHiInNeural2C = new VoiceEnum("Google.hi-IN-Neural2-C"); + public static readonly VoiceEnum GoogleHiInNeural2D = new VoiceEnum("Google.hi-IN-Neural2-D"); + public static readonly VoiceEnum GoogleHiInStandardA = new VoiceEnum("Google.hi-IN-Standard-A"); + public static readonly VoiceEnum GoogleHiInStandardB = new VoiceEnum("Google.hi-IN-Standard-B"); + public static readonly VoiceEnum GoogleHiInStandardC = new VoiceEnum("Google.hi-IN-Standard-C"); + public static readonly VoiceEnum GoogleHiInStandardD = new VoiceEnum("Google.hi-IN-Standard-D"); + public static readonly VoiceEnum GoogleHiInWavenetA = new VoiceEnum("Google.hi-IN-Wavenet-A"); + public static readonly VoiceEnum GoogleHiInWavenetB = new VoiceEnum("Google.hi-IN-Wavenet-B"); + public static readonly VoiceEnum GoogleHiInWavenetC = new VoiceEnum("Google.hi-IN-Wavenet-C"); + public static readonly VoiceEnum GoogleHiInWavenetD = new VoiceEnum("Google.hi-IN-Wavenet-D"); + public static readonly VoiceEnum GoogleHuHuStandardA = new VoiceEnum("Google.hu-HU-Standard-A"); + public static readonly VoiceEnum GoogleHuHuWavenetA = new VoiceEnum("Google.hu-HU-Wavenet-A"); + public static readonly VoiceEnum GoogleIdIdStandardA = new VoiceEnum("Google.id-ID-Standard-A"); + public static readonly VoiceEnum GoogleIdIdStandardB = new VoiceEnum("Google.id-ID-Standard-B"); + public static readonly VoiceEnum GoogleIdIdStandardC = new VoiceEnum("Google.id-ID-Standard-C"); + public static readonly VoiceEnum GoogleIdIdStandardD = new VoiceEnum("Google.id-ID-Standard-D"); + public static readonly VoiceEnum GoogleIdIdWavenetA = new VoiceEnum("Google.id-ID-Wavenet-A"); + public static readonly VoiceEnum GoogleIdIdWavenetB = new VoiceEnum("Google.id-ID-Wavenet-B"); + public static readonly VoiceEnum GoogleIdIdWavenetC = new VoiceEnum("Google.id-ID-Wavenet-C"); + public static readonly VoiceEnum GoogleIdIdWavenetD = new VoiceEnum("Google.id-ID-Wavenet-D"); + public static readonly VoiceEnum GoogleIsIsStandardA = new VoiceEnum("Google.is-IS-Standard-A"); + public static readonly VoiceEnum GoogleItItNeural2A = new VoiceEnum("Google.it-IT-Neural2-A"); + public static readonly VoiceEnum GoogleItItNeural2C = new VoiceEnum("Google.it-IT-Neural2-C"); + public static readonly VoiceEnum GoogleItItStandardB = new VoiceEnum("Google.it-IT-Standard-B"); + public static readonly VoiceEnum GoogleItItStandardC = new VoiceEnum("Google.it-IT-Standard-C"); + public static readonly VoiceEnum GoogleItItStandardD = new VoiceEnum("Google.it-IT-Standard-D"); + public static readonly VoiceEnum GoogleItItWavenetB = new VoiceEnum("Google.it-IT-Wavenet-B"); + public static readonly VoiceEnum GoogleItItWavenetC = new VoiceEnum("Google.it-IT-Wavenet-C"); + public static readonly VoiceEnum GoogleItItWavenetD = new VoiceEnum("Google.it-IT-Wavenet-D"); + public static readonly VoiceEnum GoogleJaJpNeural2B = new VoiceEnum("Google.ja-JP-Neural2-B"); + public static readonly VoiceEnum GoogleJaJpNeural2C = new VoiceEnum("Google.ja-JP-Neural2-C"); + public static readonly VoiceEnum GoogleJaJpNeural2D = new VoiceEnum("Google.ja-JP-Neural2-D"); + public static readonly VoiceEnum GoogleJaJpStandardA = new VoiceEnum("Google.ja-JP-Standard-A"); + public static readonly VoiceEnum GoogleJaJpStandardB = new VoiceEnum("Google.ja-JP-Standard-B"); + public static readonly VoiceEnum GoogleJaJpStandardC = new VoiceEnum("Google.ja-JP-Standard-C"); + public static readonly VoiceEnum GoogleJaJpStandardD = new VoiceEnum("Google.ja-JP-Standard-D"); + public static readonly VoiceEnum GoogleJaJpWavenetA = new VoiceEnum("Google.ja-JP-Wavenet-A"); + public static readonly VoiceEnum GoogleJaJpWavenetB = new VoiceEnum("Google.ja-JP-Wavenet-B"); + public static readonly VoiceEnum GoogleJaJpWavenetC = new VoiceEnum("Google.ja-JP-Wavenet-C"); + public static readonly VoiceEnum GoogleJaJpWavenetD = new VoiceEnum("Google.ja-JP-Wavenet-D"); + public static readonly VoiceEnum GoogleKoKrNeural2A = new VoiceEnum("Google.ko-KR-Neural2-A"); + public static readonly VoiceEnum GoogleKoKrNeural2B = new VoiceEnum("Google.ko-KR-Neural2-B"); + public static readonly VoiceEnum GoogleKoKrNeural2C = new VoiceEnum("Google.ko-KR-Neural2-C"); + public static readonly VoiceEnum GoogleKoKrStandardA = new VoiceEnum("Google.ko-KR-Standard-A"); + public static readonly VoiceEnum GoogleKoKrStandardB = new VoiceEnum("Google.ko-KR-Standard-B"); + public static readonly VoiceEnum GoogleKoKrStandardC = new VoiceEnum("Google.ko-KR-Standard-C"); + public static readonly VoiceEnum GoogleKoKrStandardD = new VoiceEnum("Google.ko-KR-Standard-D"); + public static readonly VoiceEnum GoogleKoKrWavenetA = new VoiceEnum("Google.ko-KR-Wavenet-A"); + public static readonly VoiceEnum GoogleKoKrWavenetB = new VoiceEnum("Google.ko-KR-Wavenet-B"); + public static readonly VoiceEnum GoogleKoKrWavenetC = new VoiceEnum("Google.ko-KR-Wavenet-C"); + public static readonly VoiceEnum GoogleKoKrWavenetD = new VoiceEnum("Google.ko-KR-Wavenet-D"); + public static readonly VoiceEnum GoogleLtLtStandardA = new VoiceEnum("Google.lt-LT-Standard-A"); + public static readonly VoiceEnum GoogleLvLvStandardA = new VoiceEnum("Google.lv-LV-Standard-A"); + public static readonly VoiceEnum GoogleMlInWavenetC = new VoiceEnum("Google.ml-IN-Wavenet-C"); + public static readonly VoiceEnum GoogleMlInWavenetD = new VoiceEnum("Google.ml-IN-Wavenet-D"); + public static readonly VoiceEnum GoogleMrInStandardA = new VoiceEnum("Google.mr-IN-Standard-A"); + public static readonly VoiceEnum GoogleMrInStandardB = new VoiceEnum("Google.mr-IN-Standard-B"); + public static readonly VoiceEnum GoogleMrInStandardC = new VoiceEnum("Google.mr-IN-Standard-C"); + public static readonly VoiceEnum GoogleMrInWavenetA = new VoiceEnum("Google.mr-IN-Wavenet-A"); + public static readonly VoiceEnum GoogleMrInWavenetB = new VoiceEnum("Google.mr-IN-Wavenet-B"); + public static readonly VoiceEnum GoogleMrInWavenetC = new VoiceEnum("Google.mr-IN-Wavenet-C"); + public static readonly VoiceEnum GoogleMsMyStandardA = new VoiceEnum("Google.ms-MY-Standard-A"); + public static readonly VoiceEnum GoogleMsMyStandardB = new VoiceEnum("Google.ms-MY-Standard-B"); + public static readonly VoiceEnum GoogleMsMyStandardC = new VoiceEnum("Google.ms-MY-Standard-C"); + public static readonly VoiceEnum GoogleMsMyStandardD = new VoiceEnum("Google.ms-MY-Standard-D"); + public static readonly VoiceEnum GoogleMsMyWavenetA = new VoiceEnum("Google.ms-MY-Wavenet-A"); + public static readonly VoiceEnum GoogleMsMyWavenetB = new VoiceEnum("Google.ms-MY-Wavenet-B"); + public static readonly VoiceEnum GoogleMsMyWavenetC = new VoiceEnum("Google.ms-MY-Wavenet-C"); + public static readonly VoiceEnum GoogleMsMyWavenetD = new VoiceEnum("Google.ms-MY-Wavenet-D"); + public static readonly VoiceEnum GoogleNbNoStandardA = new VoiceEnum("Google.nb-NO-Standard-A"); + public static readonly VoiceEnum GoogleNbNoStandardB = new VoiceEnum("Google.nb-NO-Standard-B"); + public static readonly VoiceEnum GoogleNbNoStandardC = new VoiceEnum("Google.nb-NO-Standard-C"); + public static readonly VoiceEnum GoogleNbNoStandardD = new VoiceEnum("Google.nb-NO-Standard-D"); + public static readonly VoiceEnum GoogleNbNoStandardE = new VoiceEnum("Google.nb-NO-Standard-E"); + public static readonly VoiceEnum GoogleNbNoWavenetA = new VoiceEnum("Google.nb-NO-Wavenet-A"); + public static readonly VoiceEnum GoogleNbNoWavenetB = new VoiceEnum("Google.nb-NO-Wavenet-B"); + public static readonly VoiceEnum GoogleNbNoWavenetC = new VoiceEnum("Google.nb-NO-Wavenet-C"); + public static readonly VoiceEnum GoogleNbNoWavenetD = new VoiceEnum("Google.nb-NO-Wavenet-D"); + public static readonly VoiceEnum GoogleNbNoWavenetE = new VoiceEnum("Google.nb-NO-Wavenet-E"); + public static readonly VoiceEnum GoogleNlBeStandardA = new VoiceEnum("Google.nl-BE-Standard-A"); + public static readonly VoiceEnum GoogleNlBeStandardB = new VoiceEnum("Google.nl-BE-Standard-B"); + public static readonly VoiceEnum GoogleNlBeWavenetA = new VoiceEnum("Google.nl-BE-Wavenet-A"); + public static readonly VoiceEnum GoogleNlBeWavenetB = new VoiceEnum("Google.nl-BE-Wavenet-B"); + public static readonly VoiceEnum GoogleNlNlStandardA = new VoiceEnum("Google.nl-NL-Standard-A"); + public static readonly VoiceEnum GoogleNlNlStandardB = new VoiceEnum("Google.nl-NL-Standard-B"); + public static readonly VoiceEnum GoogleNlNlStandardC = new VoiceEnum("Google.nl-NL-Standard-C"); + public static readonly VoiceEnum GoogleNlNlStandardD = new VoiceEnum("Google.nl-NL-Standard-D"); + public static readonly VoiceEnum GoogleNlNlStandardE = new VoiceEnum("Google.nl-NL-Standard-E"); + public static readonly VoiceEnum GoogleNlNlWavenetA = new VoiceEnum("Google.nl-NL-Wavenet-A"); + public static readonly VoiceEnum GoogleNlNlWavenetB = new VoiceEnum("Google.nl-NL-Wavenet-B"); + public static readonly VoiceEnum GoogleNlNlWavenetC = new VoiceEnum("Google.nl-NL-Wavenet-C"); + public static readonly VoiceEnum GoogleNlNlWavenetD = new VoiceEnum("Google.nl-NL-Wavenet-D"); + public static readonly VoiceEnum GoogleNlNlWavenetE = new VoiceEnum("Google.nl-NL-Wavenet-E"); + public static readonly VoiceEnum GooglePaInStandardA = new VoiceEnum("Google.pa-IN-Standard-A"); + public static readonly VoiceEnum GooglePaInStandardB = new VoiceEnum("Google.pa-IN-Standard-B"); + public static readonly VoiceEnum GooglePaInStandardC = new VoiceEnum("Google.pa-IN-Standard-C"); + public static readonly VoiceEnum GooglePaInStandardD = new VoiceEnum("Google.pa-IN-Standard-D"); + public static readonly VoiceEnum GooglePaInWavenetA = new VoiceEnum("Google.pa-IN-Wavenet-A"); + public static readonly VoiceEnum GooglePaInWavenetB = new VoiceEnum("Google.pa-IN-Wavenet-B"); + public static readonly VoiceEnum GooglePaInWavenetC = new VoiceEnum("Google.pa-IN-Wavenet-C"); + public static readonly VoiceEnum GooglePaInWavenetD = new VoiceEnum("Google.pa-IN-Wavenet-D"); + public static readonly VoiceEnum GooglePlPlStandardA = new VoiceEnum("Google.pl-PL-Standard-A"); + public static readonly VoiceEnum GooglePlPlStandardB = new VoiceEnum("Google.pl-PL-Standard-B"); + public static readonly VoiceEnum GooglePlPlStandardC = new VoiceEnum("Google.pl-PL-Standard-C"); + public static readonly VoiceEnum GooglePlPlStandardD = new VoiceEnum("Google.pl-PL-Standard-D"); + public static readonly VoiceEnum GooglePlPlStandardE = new VoiceEnum("Google.pl-PL-Standard-E"); + public static readonly VoiceEnum GooglePlPlWavenetA = new VoiceEnum("Google.pl-PL-Wavenet-A"); + public static readonly VoiceEnum GooglePlPlWavenetB = new VoiceEnum("Google.pl-PL-Wavenet-B"); + public static readonly VoiceEnum GooglePlPlWavenetC = new VoiceEnum("Google.pl-PL-Wavenet-C"); + public static readonly VoiceEnum GooglePlPlWavenetD = new VoiceEnum("Google.pl-PL-Wavenet-D"); + public static readonly VoiceEnum GooglePlPlWavenetE = new VoiceEnum("Google.pl-PL-Wavenet-E"); + public static readonly VoiceEnum GooglePtBrNeural2A = new VoiceEnum("Google.pt-BR-Neural2-A"); + public static readonly VoiceEnum GooglePtBrNeural2B = new VoiceEnum("Google.pt-BR-Neural2-B"); + public static readonly VoiceEnum GooglePtBrNeural2C = new VoiceEnum("Google.pt-BR-Neural2-C"); + public static readonly VoiceEnum GooglePtBrStandardA = new VoiceEnum("Google.pt-BR-Standard-A"); + public static readonly VoiceEnum GooglePtBrStandardB = new VoiceEnum("Google.pt-BR-Standard-B"); + public static readonly VoiceEnum GooglePtBrStandardC = new VoiceEnum("Google.pt-BR-Standard-C"); + public static readonly VoiceEnum GooglePtBrWavenetA = new VoiceEnum("Google.pt-BR-Wavenet-A"); + public static readonly VoiceEnum GooglePtBrWavenetB = new VoiceEnum("Google.pt-BR-Wavenet-B"); + public static readonly VoiceEnum GooglePtBrWavenetC = new VoiceEnum("Google.pt-BR-Wavenet-C"); + public static readonly VoiceEnum GooglePtPtStandardA = new VoiceEnum("Google.pt-PT-Standard-A"); + public static readonly VoiceEnum GooglePtPtStandardB = new VoiceEnum("Google.pt-PT-Standard-B"); + public static readonly VoiceEnum GooglePtPtStandardC = new VoiceEnum("Google.pt-PT-Standard-C"); + public static readonly VoiceEnum GooglePtPtStandardD = new VoiceEnum("Google.pt-PT-Standard-D"); + public static readonly VoiceEnum GooglePtPtWavenetA = new VoiceEnum("Google.pt-PT-Wavenet-A"); + public static readonly VoiceEnum GooglePtPtWavenetB = new VoiceEnum("Google.pt-PT-Wavenet-B"); + public static readonly VoiceEnum GooglePtPtWavenetC = new VoiceEnum("Google.pt-PT-Wavenet-C"); + public static readonly VoiceEnum GooglePtPtWavenetD = new VoiceEnum("Google.pt-PT-Wavenet-D"); + public static readonly VoiceEnum GoogleRoRoStandardA = new VoiceEnum("Google.ro-RO-Standard-A"); + public static readonly VoiceEnum GoogleRoRoWavenetA = new VoiceEnum("Google.ro-RO-Wavenet-A"); + public static readonly VoiceEnum GoogleRuRuStandardA = new VoiceEnum("Google.ru-RU-Standard-A"); + public static readonly VoiceEnum GoogleRuRuStandardB = new VoiceEnum("Google.ru-RU-Standard-B"); + public static readonly VoiceEnum GoogleRuRuStandardC = new VoiceEnum("Google.ru-RU-Standard-C"); + public static readonly VoiceEnum GoogleRuRuStandardD = new VoiceEnum("Google.ru-RU-Standard-D"); + public static readonly VoiceEnum GoogleRuRuStandardE = new VoiceEnum("Google.ru-RU-Standard-E"); + public static readonly VoiceEnum GoogleRuRuWavenetA = new VoiceEnum("Google.ru-RU-Wavenet-A"); + public static readonly VoiceEnum GoogleRuRuWavenetB = new VoiceEnum("Google.ru-RU-Wavenet-B"); + public static readonly VoiceEnum GoogleRuRuWavenetC = new VoiceEnum("Google.ru-RU-Wavenet-C"); + public static readonly VoiceEnum GoogleRuRuWavenetD = new VoiceEnum("Google.ru-RU-Wavenet-D"); + public static readonly VoiceEnum GoogleRuRuWavenetE = new VoiceEnum("Google.ru-RU-Wavenet-E"); + public static readonly VoiceEnum GoogleSkSkStandardA = new VoiceEnum("Google.sk-SK-Standard-A"); + public static readonly VoiceEnum GoogleSkSkWavenetA = new VoiceEnum("Google.sk-SK-Wavenet-A"); + public static readonly VoiceEnum GoogleSrRsStandardA = new VoiceEnum("Google.sr-RS-Standard-A"); + public static readonly VoiceEnum GoogleSvSeStandardA = new VoiceEnum("Google.sv-SE-Standard-A"); + public static readonly VoiceEnum GoogleSvSeStandardB = new VoiceEnum("Google.sv-SE-Standard-B"); + public static readonly VoiceEnum GoogleSvSeStandardC = new VoiceEnum("Google.sv-SE-Standard-C"); + public static readonly VoiceEnum GoogleSvSeStandardD = new VoiceEnum("Google.sv-SE-Standard-D"); + public static readonly VoiceEnum GoogleSvSeStandardE = new VoiceEnum("Google.sv-SE-Standard-E"); + public static readonly VoiceEnum GoogleSvSeWavenetA = new VoiceEnum("Google.sv-SE-Wavenet-A"); + public static readonly VoiceEnum GoogleSvSeWavenetB = new VoiceEnum("Google.sv-SE-Wavenet-B"); + public static readonly VoiceEnum GoogleSvSeWavenetC = new VoiceEnum("Google.sv-SE-Wavenet-C"); + public static readonly VoiceEnum GoogleSvSeWavenetD = new VoiceEnum("Google.sv-SE-Wavenet-D"); + public static readonly VoiceEnum GoogleSvSeWavenetE = new VoiceEnum("Google.sv-SE-Wavenet-E"); + public static readonly VoiceEnum GoogleTaInStandardA = new VoiceEnum("Google.ta-IN-Standard-A"); + public static readonly VoiceEnum GoogleTaInStandardB = new VoiceEnum("Google.ta-IN-Standard-B"); + public static readonly VoiceEnum GoogleTaInStandardC = new VoiceEnum("Google.ta-IN-Standard-C"); + public static readonly VoiceEnum GoogleTaInStandardD = new VoiceEnum("Google.ta-IN-Standard-D"); + public static readonly VoiceEnum GoogleTaInWavenetA = new VoiceEnum("Google.ta-IN-Wavenet-A"); + public static readonly VoiceEnum GoogleTaInWavenetB = new VoiceEnum("Google.ta-IN-Wavenet-B"); + public static readonly VoiceEnum GoogleTaInWavenetC = new VoiceEnum("Google.ta-IN-Wavenet-C"); + public static readonly VoiceEnum GoogleTaInWavenetD = new VoiceEnum("Google.ta-IN-Wavenet-D"); + public static readonly VoiceEnum GoogleTeInStandardA = new VoiceEnum("Google.te-IN-Standard-A"); + public static readonly VoiceEnum GoogleTeInStandardB = new VoiceEnum("Google.te-IN-Standard-B"); + public static readonly VoiceEnum GoogleThThNeural2C = new VoiceEnum("Google.th-TH-Neural2-C"); + public static readonly VoiceEnum GoogleThThStandardA = new VoiceEnum("Google.th-TH-Standard-A"); + public static readonly VoiceEnum GoogleTrTrStandardA = new VoiceEnum("Google.tr-TR-Standard-A"); + public static readonly VoiceEnum GoogleTrTrStandardB = new VoiceEnum("Google.tr-TR-Standard-B"); + public static readonly VoiceEnum GoogleTrTrStandardC = new VoiceEnum("Google.tr-TR-Standard-C"); + public static readonly VoiceEnum GoogleTrTrStandardD = new VoiceEnum("Google.tr-TR-Standard-D"); + public static readonly VoiceEnum GoogleTrTrStandardE = new VoiceEnum("Google.tr-TR-Standard-E"); + public static readonly VoiceEnum GoogleTrTrWavenetA = new VoiceEnum("Google.tr-TR-Wavenet-A"); + public static readonly VoiceEnum GoogleTrTrWavenetB = new VoiceEnum("Google.tr-TR-Wavenet-B"); + public static readonly VoiceEnum GoogleTrTrWavenetC = new VoiceEnum("Google.tr-TR-Wavenet-C"); + public static readonly VoiceEnum GoogleTrTrWavenetD = new VoiceEnum("Google.tr-TR-Wavenet-D"); + public static readonly VoiceEnum GoogleTrTrWavenetE = new VoiceEnum("Google.tr-TR-Wavenet-E"); + public static readonly VoiceEnum GoogleUkUaStandardA = new VoiceEnum("Google.uk-UA-Standard-A"); + public static readonly VoiceEnum GoogleUkUaWavenetA = new VoiceEnum("Google.uk-UA-Wavenet-A"); + public static readonly VoiceEnum GoogleViVnNeural2A = new VoiceEnum("Google.vi-VN-Neural2-A"); + public static readonly VoiceEnum GoogleViVnNeural2D = new VoiceEnum("Google.vi-VN-Neural2-D"); + public static readonly VoiceEnum GoogleViVnStandardA = new VoiceEnum("Google.vi-VN-Standard-A"); + public static readonly VoiceEnum GoogleViVnStandardB = new VoiceEnum("Google.vi-VN-Standard-B"); + public static readonly VoiceEnum GoogleViVnStandardC = new VoiceEnum("Google.vi-VN-Standard-C"); + public static readonly VoiceEnum GoogleViVnStandardD = new VoiceEnum("Google.vi-VN-Standard-D"); + public static readonly VoiceEnum GoogleViVnWavenetA = new VoiceEnum("Google.vi-VN-Wavenet-A"); + public static readonly VoiceEnum GoogleViVnWavenetB = new VoiceEnum("Google.vi-VN-Wavenet-B"); + public static readonly VoiceEnum GoogleViVnWavenetC = new VoiceEnum("Google.vi-VN-Wavenet-C"); + public static readonly VoiceEnum GoogleViVnWavenetD = new VoiceEnum("Google.vi-VN-Wavenet-D"); + public static readonly VoiceEnum GoogleYueHkStandardA = new VoiceEnum("Google.yue-HK-Standard-A"); + public static readonly VoiceEnum GoogleYueHkStandardB = new VoiceEnum("Google.yue-HK-Standard-B"); + public static readonly VoiceEnum GoogleYueHkStandardC = new VoiceEnum("Google.yue-HK-Standard-C"); + public static readonly VoiceEnum GoogleYueHkStandardD = new VoiceEnum("Google.yue-HK-Standard-D"); public static readonly VoiceEnum PollyAditi = new VoiceEnum("Polly.Aditi"); public static readonly VoiceEnum PollyAmy = new VoiceEnum("Polly.Amy"); public static readonly VoiceEnum PollyAstrid = new VoiceEnum("Polly.Astrid"); @@ -151,40 +533,67 @@ public sealed class LanguageEnum : StringEnum return new LanguageEnum(value); } + public static readonly LanguageEnum AfZa = new LanguageEnum("af-ZA"); + public static readonly LanguageEnum ArXa = new LanguageEnum("ar-XA"); public static readonly LanguageEnum Arb = new LanguageEnum("arb"); + public static readonly LanguageEnum BgBg = new LanguageEnum("bg-BG"); + public static readonly LanguageEnum BnIn = new LanguageEnum("bn-IN"); public static readonly LanguageEnum CaEs = new LanguageEnum("ca-ES"); + public static readonly LanguageEnum CmnCn = new LanguageEnum("cmn-CN"); + public static readonly LanguageEnum CmnTw = new LanguageEnum("cmn-TW"); + public static readonly LanguageEnum CsCz = new LanguageEnum("cs-CZ"); public static readonly LanguageEnum CyGb = new LanguageEnum("cy-GB"); public static readonly LanguageEnum DaDk = new LanguageEnum("da-DK"); - public static readonly LanguageEnum DeDe = new LanguageEnum("de-DE"); public static readonly LanguageEnum DeAt = new LanguageEnum("de-AT"); + public static readonly LanguageEnum DeDe = new LanguageEnum("de-DE"); + public static readonly LanguageEnum ElGr = new LanguageEnum("el-GR"); public static readonly LanguageEnum EnAu = new LanguageEnum("en-AU"); public static readonly LanguageEnum EnCa = new LanguageEnum("en-CA"); public static readonly LanguageEnum EnGb = new LanguageEnum("en-GB"); public static readonly LanguageEnum EnGbWls = new LanguageEnum("en-GB-WLS"); public static readonly LanguageEnum EnIn = new LanguageEnum("en-IN"); public static readonly LanguageEnum EnNz = new LanguageEnum("en-NZ"); - public static readonly LanguageEnum EnZa = new LanguageEnum("en-ZA"); public static readonly LanguageEnum EnUs = new LanguageEnum("en-US"); + public static readonly LanguageEnum EnZa = new LanguageEnum("en-ZA"); public static readonly LanguageEnum EsEs = new LanguageEnum("es-ES"); public static readonly LanguageEnum EsMx = new LanguageEnum("es-MX"); public static readonly LanguageEnum EsUs = new LanguageEnum("es-US"); public static readonly LanguageEnum FiFi = new LanguageEnum("fi-FI"); + public static readonly LanguageEnum FilPh = new LanguageEnum("fil-PH"); public static readonly LanguageEnum FrCa = new LanguageEnum("fr-CA"); public static readonly LanguageEnum FrFr = new LanguageEnum("fr-FR"); + public static readonly LanguageEnum GuIn = new LanguageEnum("gu-IN"); public static readonly LanguageEnum HiIn = new LanguageEnum("hi-IN"); + public static readonly LanguageEnum HuHu = new LanguageEnum("hu-HU"); + public static readonly LanguageEnum IdId = new LanguageEnum("id-ID"); public static readonly LanguageEnum IsIs = new LanguageEnum("is-IS"); public static readonly LanguageEnum ItIt = new LanguageEnum("it-IT"); public static readonly LanguageEnum JaJp = new LanguageEnum("ja-JP"); + public static readonly LanguageEnum KnIn = new LanguageEnum("kn-IN"); public static readonly LanguageEnum KoKr = new LanguageEnum("ko-KR"); + public static readonly LanguageEnum LvLv = new LanguageEnum("lv-LV"); + public static readonly LanguageEnum MlIn = new LanguageEnum("ml-IN"); + public static readonly LanguageEnum MrIn = new LanguageEnum("mr-IN"); + public static readonly LanguageEnum MsMy = new LanguageEnum("ms-MY"); public static readonly LanguageEnum NbNo = new LanguageEnum("nb-NO"); + public static readonly LanguageEnum NlBe = new LanguageEnum("nl-BE"); public static readonly LanguageEnum NlNl = new LanguageEnum("nl-NL"); + public static readonly LanguageEnum PaIn = new LanguageEnum("pa-IN"); public static readonly LanguageEnum PlPl = new LanguageEnum("pl-PL"); public static readonly LanguageEnum PtBr = new LanguageEnum("pt-BR"); public static readonly LanguageEnum PtPt = new LanguageEnum("pt-PT"); public static readonly LanguageEnum RoRo = new LanguageEnum("ro-RO"); public static readonly LanguageEnum RuRu = new LanguageEnum("ru-RU"); + public static readonly LanguageEnum SkSk = new LanguageEnum("sk-SK"); + public static readonly LanguageEnum SrRs = new LanguageEnum("sr-RS"); public static readonly LanguageEnum SvSe = new LanguageEnum("sv-SE"); + public static readonly LanguageEnum TaIn = new LanguageEnum("ta-IN"); + public static readonly LanguageEnum TeIn = new LanguageEnum("te-IN"); + public static readonly LanguageEnum ThTh = new LanguageEnum("th-TH"); public static readonly LanguageEnum TrTr = new LanguageEnum("tr-TR"); + public static readonly LanguageEnum UkUa = new LanguageEnum("uk-UA"); + public static readonly LanguageEnum ViVn = new LanguageEnum("vi-VN"); + public static readonly LanguageEnum YueHk = new LanguageEnum("yue-HK"); public static readonly LanguageEnum ZhCn = new LanguageEnum("zh-CN"); public static readonly LanguageEnum ZhHk = new LanguageEnum("zh-HK"); public static readonly LanguageEnum ZhTw = new LanguageEnum("zh-TW"); diff --git a/test/Twilio.Test/TwiML/GatherTest.cs b/test/Twilio.Test/TwiML/GatherTest.cs index 5eb842a5e..2beae9d87 100644 --- a/test/Twilio.Test/TwiML/GatherTest.cs +++ b/test/Twilio.Test/TwiML/GatherTest.cs @@ -93,7 +93,7 @@ public void TestElementWithChildren() { var elem = new Gather(); - elem.Say("message", Say.VoiceEnum.Man, 1, Say.LanguageEnum.Arb); + elem.Say("message", Say.VoiceEnum.Man, 1, Say.LanguageEnum.AfZa); elem.Pause(1); @@ -102,7 +102,7 @@ public void TestElementWithChildren() Assert.AreEqual( "" + Environment.NewLine + "" + Environment.NewLine + - " message" + Environment.NewLine + + " message" + Environment.NewLine + " " + Environment.NewLine + " https://example.com" + Environment.NewLine + "", diff --git a/test/Twilio.Test/TwiML/PromptTest.cs b/test/Twilio.Test/TwiML/PromptTest.cs index b9d65df0e..417f2cf68 100644 --- a/test/Twilio.Test/TwiML/PromptTest.cs +++ b/test/Twilio.Test/TwiML/PromptTest.cs @@ -80,7 +80,7 @@ public void TestElementWithChildren() { var elem = new Prompt(); - elem.Say("message", Say.VoiceEnum.Man, 1, Say.LanguageEnum.Arb); + elem.Say("message", Say.VoiceEnum.Man, 1, Say.LanguageEnum.AfZa); elem.Play(new Uri("https://example.com"), 1, "digits"); @@ -89,7 +89,7 @@ public void TestElementWithChildren() Assert.AreEqual( "" + Environment.NewLine + "" + Environment.NewLine + - " message" + Environment.NewLine + + " message" + Environment.NewLine + " https://example.com" + Environment.NewLine + " " + Environment.NewLine + "", diff --git a/test/Twilio.Test/TwiML/SayTest.cs b/test/Twilio.Test/TwiML/SayTest.cs index 91f67bd41..803ab0ef3 100644 --- a/test/Twilio.Test/TwiML/SayTest.cs +++ b/test/Twilio.Test/TwiML/SayTest.cs @@ -29,10 +29,10 @@ public void TestEmptyElement() [Test] public void TestElementWithParams() { - var elem = new Say("message", Say.VoiceEnum.Man, 1, Say.LanguageEnum.Arb); + var elem = new Say("message", Say.VoiceEnum.Man, 1, Say.LanguageEnum.AfZa); Assert.AreEqual( "" + Environment.NewLine + - "message", + "message", elem.ToString() ); } diff --git a/test/Twilio.Test/TwiML/VoiceResponseTest.cs b/test/Twilio.Test/TwiML/VoiceResponseTest.cs index e0ec8ea4c..0e309e980 100644 --- a/test/Twilio.Test/TwiML/VoiceResponseTest.cs +++ b/test/Twilio.Test/TwiML/VoiceResponseTest.cs @@ -155,7 +155,7 @@ public void TestElementWithChildren() elem.Reject(Reject.ReasonEnum.Rejected); - elem.Say("message", Say.VoiceEnum.Man, 1, Say.LanguageEnum.Arb); + elem.Say("message", Say.VoiceEnum.Man, 1, Say.LanguageEnum.AfZa); elem.Sms( "message", @@ -217,7 +217,7 @@ public void TestElementWithChildren() " " + Environment.NewLine + " https://example.com" + Environment.NewLine + " " + Environment.NewLine + - " message" + Environment.NewLine + + " message" + Environment.NewLine + " message" + Environment.NewLine + " " + Environment.NewLine + " " + Environment.NewLine +