diff --git a/CHANGES.md b/CHANGES.md index de0d32f18..90f11303d 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,28 @@ twilio-csharp Changelog ======================= +[2023-09-07] Version 6.13.0 +--------------------------- +**Library - Fix** +- [PR #687](https://github.com/twilio/twilio-csharp/pull/687): Update dotnet version. Thanks to [@kridai](https://github.com/kridai)! + +**Api** +- Make message tagging parameters public **(breaking change)** + +**Flex** +- Adding `agent_conv_end_methods` to Flex Configuration + +**Messaging** +- Mark Mesasging Services fallback_to_long_code feature obsolete + +**Numbers** +- Add Create Port In request api +- Renaming sid for bulk_hosting_sid and remove account_sid response field in numbers/v2/BulkHostedNumberOrders **(breaking change)** + +**Pricing** +- gate resources behind a beta_feature + + [2023-08-24] Version 6.12.0 --------------------------- **Api** diff --git a/src/Twilio/Base/IOptions.cs b/src/Twilio/Base/IOptions.cs index 905b84e7f..37b3e633f 100644 --- a/src/Twilio/Base/IOptions.cs +++ b/src/Twilio/Base/IOptions.cs @@ -70,6 +70,6 @@ public long? Limit /// /// /// List of parameters for the request - public abstract List> GetParams(); + //public abstract List> GetParams(); } } diff --git a/src/Twilio/Rest/Accounts/V1/AuthTokenPromotionOptions.cs b/src/Twilio/Rest/Accounts/V1/AuthTokenPromotionOptions.cs index 9a0bd714a..7e1aa7001 100644 --- a/src/Twilio/Rest/Accounts/V1/AuthTokenPromotionOptions.cs +++ b/src/Twilio/Rest/Accounts/V1/AuthTokenPromotionOptions.cs @@ -32,7 +32,7 @@ public class UpdateAuthTokenPromotionOptions : IOptions Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Accounts/V1/AuthTokenPromotionResource.cs b/src/Twilio/Rest/Accounts/V1/AuthTokenPromotionResource.cs index fde96932f..4bb1079c1 100644 --- a/src/Twilio/Rest/Accounts/V1/AuthTokenPromotionResource.cs +++ b/src/Twilio/Rest/Accounts/V1/AuthTokenPromotionResource.cs @@ -30,6 +30,8 @@ public class AuthTokenPromotionResource : Resource { + + private static Request BuildUpdateRequest(UpdateAuthTokenPromotionOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Accounts/V1/Credential/AwsOptions.cs b/src/Twilio/Rest/Accounts/V1/Credential/AwsOptions.cs index 3c363b40e..1415da37f 100644 --- a/src/Twilio/Rest/Accounts/V1/Credential/AwsOptions.cs +++ b/src/Twilio/Rest/Accounts/V1/Credential/AwsOptions.cs @@ -47,7 +47,7 @@ public CreateAwsOptions(string credentials) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -86,7 +86,7 @@ public DeleteAwsOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -115,7 +115,7 @@ public FetchAwsOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -135,7 +135,7 @@ public class ReadAwsOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -170,7 +170,7 @@ public UpdateAwsOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Accounts/V1/Credential/AwsResource.cs b/src/Twilio/Rest/Accounts/V1/Credential/AwsResource.cs index e410d8c4b..45b6b9a6b 100644 --- a/src/Twilio/Rest/Accounts/V1/Credential/AwsResource.cs +++ b/src/Twilio/Rest/Accounts/V1/Credential/AwsResource.cs @@ -30,6 +30,8 @@ public class AwsResource : Resource { + + private static Request BuildCreateRequest(CreateAwsOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Accounts/V1/Credential/PublicKeyOptions.cs b/src/Twilio/Rest/Accounts/V1/Credential/PublicKeyOptions.cs index 462686565..786f77418 100644 --- a/src/Twilio/Rest/Accounts/V1/Credential/PublicKeyOptions.cs +++ b/src/Twilio/Rest/Accounts/V1/Credential/PublicKeyOptions.cs @@ -47,7 +47,7 @@ public CreatePublicKeyOptions(string publicKey) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -86,7 +86,7 @@ public DeletePublicKeyOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -115,7 +115,7 @@ public FetchPublicKeyOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -135,7 +135,7 @@ public class ReadPublicKeyOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -170,7 +170,7 @@ public UpdatePublicKeyOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Accounts/V1/Credential/PublicKeyResource.cs b/src/Twilio/Rest/Accounts/V1/Credential/PublicKeyResource.cs index bffd1df31..8f7148726 100644 --- a/src/Twilio/Rest/Accounts/V1/Credential/PublicKeyResource.cs +++ b/src/Twilio/Rest/Accounts/V1/Credential/PublicKeyResource.cs @@ -30,6 +30,8 @@ public class PublicKeyResource : Resource { + + private static Request BuildCreateRequest(CreatePublicKeyOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Accounts/V1/SecondaryAuthTokenOptions.cs b/src/Twilio/Rest/Accounts/V1/SecondaryAuthTokenOptions.cs index 8668186d3..6bcd38669 100644 --- a/src/Twilio/Rest/Accounts/V1/SecondaryAuthTokenOptions.cs +++ b/src/Twilio/Rest/Accounts/V1/SecondaryAuthTokenOptions.cs @@ -32,7 +32,7 @@ public class CreateSecondaryAuthTokenOptions : IOptions Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -50,7 +50,7 @@ public class DeleteSecondaryAuthTokenOptions : IOptions Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Accounts/V1/SecondaryAuthTokenResource.cs b/src/Twilio/Rest/Accounts/V1/SecondaryAuthTokenResource.cs index d5fe9bb32..e4bd53cde 100644 --- a/src/Twilio/Rest/Accounts/V1/SecondaryAuthTokenResource.cs +++ b/src/Twilio/Rest/Accounts/V1/SecondaryAuthTokenResource.cs @@ -30,6 +30,8 @@ public class SecondaryAuthTokenResource : Resource { + + private static Request BuildCreateRequest(CreateSecondaryAuthTokenOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Api/V2010/Account/Address/DependentPhoneNumberOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Address/DependentPhoneNumberOptions.cs index 76352a8e1..b4cdd56e3 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Address/DependentPhoneNumberOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Address/DependentPhoneNumberOptions.cs @@ -44,7 +44,7 @@ public ReadDependentPhoneNumberOptions(string pathAddressSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/Address/DependentPhoneNumberResource.cs b/src/Twilio/Rest/Api/V2010/Account/Address/DependentPhoneNumberResource.cs index 10e10d427..b2c4bbbc8 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Address/DependentPhoneNumberResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Address/DependentPhoneNumberResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Api.V2010.Account.Address public class DependentPhoneNumberResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class EmergencyStatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Api/V2010/Account/AddressOptions.cs b/src/Twilio/Rest/Api/V2010/Account/AddressOptions.cs index 7f64edc19..e31d05e6f 100644 --- a/src/Twilio/Rest/Api/V2010/Account/AddressOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/AddressOptions.cs @@ -81,7 +81,7 @@ public CreateAddressOptions(string customerName, string street, string city, str /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -151,7 +151,7 @@ public DeleteAddressOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -183,7 +183,7 @@ public FetchAddressOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -215,7 +215,7 @@ public class ReadAddressOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -289,7 +289,7 @@ public UpdateAddressOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/AddressResource.cs b/src/Twilio/Rest/Api/V2010/Account/AddressResource.cs index 618430786..c47bb1b8d 100644 --- a/src/Twilio/Rest/Api/V2010/Account/AddressResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/AddressResource.cs @@ -30,6 +30,8 @@ public class AddressResource : Resource { + + private static Request BuildCreateRequest(CreateAddressOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Api/V2010/Account/ApplicationOptions.cs b/src/Twilio/Rest/Api/V2010/Account/ApplicationOptions.cs index caad1c796..d967144b7 100644 --- a/src/Twilio/Rest/Api/V2010/Account/ApplicationOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/ApplicationOptions.cs @@ -83,7 +83,7 @@ public class CreateApplicationOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -177,7 +177,7 @@ public DeleteApplicationOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -209,7 +209,7 @@ public FetchApplicationOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -235,7 +235,7 @@ public class ReadApplicationOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -322,7 +322,7 @@ public UpdateApplicationOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/ApplicationResource.cs b/src/Twilio/Rest/Api/V2010/Account/ApplicationResource.cs index ec7b6d34e..ddafeeb72 100644 --- a/src/Twilio/Rest/Api/V2010/Account/ApplicationResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/ApplicationResource.cs @@ -30,6 +30,8 @@ public class ApplicationResource : Resource { + + private static Request BuildCreateRequest(CreateApplicationOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Api/V2010/Account/AuthorizedConnectAppOptions.cs b/src/Twilio/Rest/Api/V2010/Account/AuthorizedConnectAppOptions.cs index f3df268d4..05b863309 100644 --- a/src/Twilio/Rest/Api/V2010/Account/AuthorizedConnectAppOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/AuthorizedConnectAppOptions.cs @@ -44,7 +44,7 @@ public FetchAuthorizedConnectAppOptions(string pathConnectAppSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -67,7 +67,7 @@ public class ReadAuthorizedConnectAppOptions : ReadOptions Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/AuthorizedConnectAppResource.cs b/src/Twilio/Rest/Api/V2010/Account/AuthorizedConnectAppResource.cs index a27d5c204..27792bd18 100644 --- a/src/Twilio/Rest/Api/V2010/Account/AuthorizedConnectAppResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/AuthorizedConnectAppResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Api.V2010.Account public class AuthorizedConnectAppResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class PermissionEnum : StringEnum { diff --git a/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/LocalOptions.cs b/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/LocalOptions.cs index 06d607677..a4b2da644 100644 --- a/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/LocalOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/LocalOptions.cs @@ -98,7 +98,7 @@ public ReadLocalOptions(string pathCountryCode) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/LocalResource.cs b/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/LocalResource.cs index 52d42d31c..feb0fb8ad 100644 --- a/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/LocalResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/LocalResource.cs @@ -30,6 +30,8 @@ public class LocalResource : Resource { + + private static Request BuildReadRequest(ReadLocalOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MachineToMachineOptions.cs b/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MachineToMachineOptions.cs index 29ca31a6b..c080ad02d 100644 --- a/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MachineToMachineOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MachineToMachineOptions.cs @@ -98,7 +98,7 @@ public ReadMachineToMachineOptions(string pathCountryCode) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MachineToMachineResource.cs b/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MachineToMachineResource.cs index f7667bd34..3668e4a3b 100644 --- a/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MachineToMachineResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MachineToMachineResource.cs @@ -30,6 +30,8 @@ public class MachineToMachineResource : Resource { + + private static Request BuildReadRequest(ReadMachineToMachineOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MobileOptions.cs b/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MobileOptions.cs index 47cff52c8..fb5adb50f 100644 --- a/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MobileOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MobileOptions.cs @@ -98,7 +98,7 @@ public ReadMobileOptions(string pathCountryCode) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MobileResource.cs b/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MobileResource.cs index 9e2335a06..745ef797d 100644 --- a/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MobileResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/MobileResource.cs @@ -30,6 +30,8 @@ public class MobileResource : Resource { + + private static Request BuildReadRequest(ReadMobileOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/NationalOptions.cs b/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/NationalOptions.cs index 3dbb9ea62..6c4b74145 100644 --- a/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/NationalOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/NationalOptions.cs @@ -98,7 +98,7 @@ public ReadNationalOptions(string pathCountryCode) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/NationalResource.cs b/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/NationalResource.cs index b3f45d68b..b69b26378 100644 --- a/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/NationalResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/NationalResource.cs @@ -30,6 +30,8 @@ public class NationalResource : Resource { + + private static Request BuildReadRequest(ReadNationalOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/SharedCostOptions.cs b/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/SharedCostOptions.cs index 1fd23b5bb..ce349a13c 100644 --- a/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/SharedCostOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/SharedCostOptions.cs @@ -98,7 +98,7 @@ public ReadSharedCostOptions(string pathCountryCode) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/SharedCostResource.cs b/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/SharedCostResource.cs index d4febe8af..cbc475ae5 100644 --- a/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/SharedCostResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/SharedCostResource.cs @@ -30,6 +30,8 @@ public class SharedCostResource : Resource { + + private static Request BuildReadRequest(ReadSharedCostOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/TollFreeOptions.cs b/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/TollFreeOptions.cs index cf207ac04..d68889f59 100644 --- a/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/TollFreeOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/TollFreeOptions.cs @@ -98,7 +98,7 @@ public ReadTollFreeOptions(string pathCountryCode) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/TollFreeResource.cs b/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/TollFreeResource.cs index 385c55f51..ada70798a 100644 --- a/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/TollFreeResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/TollFreeResource.cs @@ -30,6 +30,8 @@ public class TollFreeResource : Resource { + + private static Request BuildReadRequest(ReadTollFreeOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/VoipOptions.cs b/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/VoipOptions.cs index d8edfbddb..371ab8367 100644 --- a/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/VoipOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/VoipOptions.cs @@ -98,7 +98,7 @@ public ReadVoipOptions(string pathCountryCode) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/VoipResource.cs b/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/VoipResource.cs index 1336c99b0..57179676b 100644 --- a/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/VoipResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountry/VoipResource.cs @@ -30,6 +30,8 @@ public class VoipResource : Resource { + + private static Request BuildReadRequest(ReadVoipOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountryOptions.cs b/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountryOptions.cs index fe40e8e6c..cf2feafdf 100644 --- a/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountryOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountryOptions.cs @@ -44,7 +44,7 @@ public FetchAvailablePhoneNumberCountryOptions(string pathCountryCode) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -67,7 +67,7 @@ public class ReadAvailablePhoneNumberCountryOptions : ReadOptions Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountryResource.cs b/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountryResource.cs index 81a01f632..7d5e12b8c 100644 --- a/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountryResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/AvailablePhoneNumberCountryResource.cs @@ -30,6 +30,8 @@ public class AvailablePhoneNumberCountryResource : Resource { + + private static Request BuildFetchRequest(FetchAvailablePhoneNumberCountryOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Api/V2010/Account/BalanceOptions.cs b/src/Twilio/Rest/Api/V2010/Account/BalanceOptions.cs index 1d8947290..6a69582c2 100644 --- a/src/Twilio/Rest/Api/V2010/Account/BalanceOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/BalanceOptions.cs @@ -35,7 +35,7 @@ public class FetchBalanceOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/BalanceResource.cs b/src/Twilio/Rest/Api/V2010/Account/BalanceResource.cs index c4f025cfa..62f40ad34 100644 --- a/src/Twilio/Rest/Api/V2010/Account/BalanceResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/BalanceResource.cs @@ -30,6 +30,8 @@ public class BalanceResource : Resource { + + private static Request BuildFetchRequest(FetchBalanceOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Api/V2010/Account/Call/EventOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Call/EventOptions.cs index 66d7b3533..818550a3c 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Call/EventOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Call/EventOptions.cs @@ -44,7 +44,7 @@ public ReadEventOptions(string pathCallSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/Call/EventResource.cs b/src/Twilio/Rest/Api/V2010/Account/Call/EventResource.cs index 69a2f49d6..9578c5a04 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Call/EventResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Call/EventResource.cs @@ -30,6 +30,8 @@ public class EventResource : Resource { + + private static Request BuildReadRequest(ReadEventOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Api/V2010/Account/Call/FeedbackOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Call/FeedbackOptions.cs index ef6f28e28..31d6d6e39 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Call/FeedbackOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Call/FeedbackOptions.cs @@ -44,7 +44,7 @@ public FetchFeedbackOptions(string pathCallSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -83,7 +83,7 @@ public UpdateFeedbackOptions(string pathCallSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/Call/FeedbackResource.cs b/src/Twilio/Rest/Api/V2010/Account/Call/FeedbackResource.cs index 0f90073f3..a4a8ab2ac 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Call/FeedbackResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Call/FeedbackResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Api.V2010.Account.Call public class FeedbackResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class IssuesEnum : StringEnum { diff --git a/src/Twilio/Rest/Api/V2010/Account/Call/FeedbackSummaryOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Call/FeedbackSummaryOptions.cs index c6a523ca6..98b703953 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Call/FeedbackSummaryOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Call/FeedbackSummaryOptions.cs @@ -58,7 +58,7 @@ public CreateFeedbackSummaryOptions(DateTime? startDate, DateTime? endDate) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -108,7 +108,7 @@ public DeleteFeedbackSummaryOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -140,7 +140,7 @@ public FetchFeedbackSummaryOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/Call/FeedbackSummaryResource.cs b/src/Twilio/Rest/Api/V2010/Account/Call/FeedbackSummaryResource.cs index 9c30368f3..1530c8b83 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Call/FeedbackSummaryResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Call/FeedbackSummaryResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Api.V2010.Account.Call public class FeedbackSummaryResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Api/V2010/Account/Call/NotificationOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Call/NotificationOptions.cs index c3f168a3b..10c0da846 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Call/NotificationOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Call/NotificationOptions.cs @@ -49,7 +49,7 @@ public FetchNotificationOptions(string pathCallSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -93,7 +93,7 @@ public ReadNotificationOptions(string pathCallSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/Call/NotificationResource.cs b/src/Twilio/Rest/Api/V2010/Account/Call/NotificationResource.cs index c3e7aa4f5..104afe0c1 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Call/NotificationResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Call/NotificationResource.cs @@ -30,6 +30,8 @@ public class NotificationResource : Resource { + + private static Request BuildFetchRequest(FetchNotificationOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Api/V2010/Account/Call/PaymentOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Call/PaymentOptions.cs index 2ddaa5403..a64f9bfb5 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Call/PaymentOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Call/PaymentOptions.cs @@ -96,7 +96,7 @@ public CreatePaymentOptions(string pathCallSid, string idempotencyKey, Uri statu /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -211,7 +211,7 @@ public UpdatePaymentOptions(string pathCallSid, string pathSid, string idempoten /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/Call/PaymentResource.cs b/src/Twilio/Rest/Api/V2010/Account/Call/PaymentResource.cs index bf60b926b..6b22a568f 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Call/PaymentResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Call/PaymentResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Api.V2010.Account.Call public class PaymentResource : Resource { + + public sealed class StatusEnum : StringEnum { private StatusEnum(string value) : base(value) {} diff --git a/src/Twilio/Rest/Api/V2010/Account/Call/RecordingOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Call/RecordingOptions.cs index 784275381..c04f6d6ca 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Call/RecordingOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Call/RecordingOptions.cs @@ -63,7 +63,7 @@ public CreateRecordingOptions(string pathCallSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -122,7 +122,7 @@ public DeleteRecordingOptions(string pathCallSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -159,7 +159,7 @@ public FetchRecordingOptions(string pathCallSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -200,7 +200,7 @@ public ReadRecordingOptions(string pathCallSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -263,7 +263,7 @@ public UpdateRecordingOptions(string pathCallSid, string pathSid, RecordingResou /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/Call/RecordingResource.cs b/src/Twilio/Rest/Api/V2010/Account/Call/RecordingResource.cs index 1e707cfc1..b98f2bc74 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Call/RecordingResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Call/RecordingResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Api.V2010.Account.Call public class RecordingResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Api/V2010/Account/Call/SiprecOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Call/SiprecOptions.cs index 4a9a314d0..929c529c2 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Call/SiprecOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Call/SiprecOptions.cs @@ -653,7 +653,7 @@ public CreateSiprecOptions(string pathCallSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -1505,7 +1505,7 @@ public UpdateSiprecOptions(string pathCallSid, string pathSid, SiprecResource.Up /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/Call/SiprecResource.cs b/src/Twilio/Rest/Api/V2010/Account/Call/SiprecResource.cs index c260796b3..acf2c6870 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Call/SiprecResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Call/SiprecResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Api.V2010.Account.Call public class SiprecResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Api/V2010/Account/Call/StreamOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Call/StreamOptions.cs index 1d78e0420..e3ada0445 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Call/StreamOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Call/StreamOptions.cs @@ -655,7 +655,7 @@ public CreateStreamOptions(string pathCallSid, Uri url) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -1507,7 +1507,7 @@ public UpdateStreamOptions(string pathCallSid, string pathSid, StreamResource.Up /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/Call/StreamResource.cs b/src/Twilio/Rest/Api/V2010/Account/Call/StreamResource.cs index 75ca5cc5e..595fa0e71 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Call/StreamResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Call/StreamResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Api.V2010.Account.Call public class StreamResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Api/V2010/Account/Call/UserDefinedMessageOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Call/UserDefinedMessageOptions.cs index 4edecfb27..6634e6e3f 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Call/UserDefinedMessageOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Call/UserDefinedMessageOptions.cs @@ -52,7 +52,7 @@ public CreateUserDefinedMessageOptions(string pathCallSid, string content) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/Call/UserDefinedMessageResource.cs b/src/Twilio/Rest/Api/V2010/Account/Call/UserDefinedMessageResource.cs index 6cb720a52..87b21ecbc 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Call/UserDefinedMessageResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Call/UserDefinedMessageResource.cs @@ -30,6 +30,8 @@ public class UserDefinedMessageResource : Resource { + + private static Request BuildCreateRequest(CreateUserDefinedMessageOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Api/V2010/Account/Call/UserDefinedMessageSubscriptionOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Call/UserDefinedMessageSubscriptionOptions.cs index 842020da5..955a9d7f0 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Call/UserDefinedMessageSubscriptionOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Call/UserDefinedMessageSubscriptionOptions.cs @@ -55,7 +55,7 @@ public CreateUserDefinedMessageSubscriptionOptions(string pathCallSid, Uri callb /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -102,7 +102,7 @@ public DeleteUserDefinedMessageSubscriptionOptions(string pathCallSid, string pa /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/Call/UserDefinedMessageSubscriptionResource.cs b/src/Twilio/Rest/Api/V2010/Account/Call/UserDefinedMessageSubscriptionResource.cs index 9a1091fa1..d505d7f44 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Call/UserDefinedMessageSubscriptionResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Call/UserDefinedMessageSubscriptionResource.cs @@ -30,6 +30,8 @@ public class UserDefinedMessageSubscriptionResource : Resource { + + private static Request BuildCreateRequest(CreateUserDefinedMessageSubscriptionOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Api/V2010/Account/CallOptions.cs b/src/Twilio/Rest/Api/V2010/Account/CallOptions.cs index b21ce5f56..d886a9e30 100644 --- a/src/Twilio/Rest/Api/V2010/Account/CallOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/CallOptions.cs @@ -150,7 +150,7 @@ public CreateCallOptions(IEndpoint to, IEndpoint from) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -320,7 +320,7 @@ public DeleteCallOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -352,7 +352,7 @@ public FetchCallOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -405,7 +405,7 @@ public class ReadCallOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -513,7 +513,7 @@ public UpdateCallOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/CallResource.cs b/src/Twilio/Rest/Api/V2010/Account/CallResource.cs index 10b6b15d1..5fc6e2dbd 100644 --- a/src/Twilio/Rest/Api/V2010/Account/CallResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/CallResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Api.V2010.Account public class CallResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Api/V2010/Account/Conference/ParticipantOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Conference/ParticipantOptions.cs index 840a4ac86..e9dd5b263 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Conference/ParticipantOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Conference/ParticipantOptions.cs @@ -193,7 +193,7 @@ public CreateParticipantOptions(string pathConferenceSid, IEndpoint from, IEndpo /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -416,7 +416,7 @@ public DeleteParticipantOptions(string pathConferenceSid, string pathCallSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -453,7 +453,7 @@ public FetchParticipantOptions(string pathConferenceSid, string pathCallSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -494,7 +494,7 @@ public ReadParticipantOptions(string pathConferenceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -582,7 +582,7 @@ public UpdateParticipantOptions(string pathConferenceSid, string pathCallSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/Conference/ParticipantResource.cs b/src/Twilio/Rest/Api/V2010/Account/Conference/ParticipantResource.cs index e61402955..d579b6a69 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Conference/ParticipantResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Conference/ParticipantResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Api.V2010.Account.Conference public class ParticipantResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Api/V2010/Account/Conference/RecordingOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Conference/RecordingOptions.cs index 2948ba9a7..8013ee3d9 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Conference/RecordingOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Conference/RecordingOptions.cs @@ -49,7 +49,7 @@ public DeleteRecordingOptions(string pathConferenceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -86,7 +86,7 @@ public FetchRecordingOptions(string pathConferenceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -127,7 +127,7 @@ public ReadRecordingOptions(string pathConferenceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -190,7 +190,7 @@ public UpdateRecordingOptions(string pathConferenceSid, string pathSid, Recordin /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/Conference/RecordingResource.cs b/src/Twilio/Rest/Api/V2010/Account/Conference/RecordingResource.cs index c6b0be8cf..540bcf8a2 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Conference/RecordingResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Conference/RecordingResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Api.V2010.Account.Conference public class RecordingResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Api/V2010/Account/ConferenceOptions.cs b/src/Twilio/Rest/Api/V2010/Account/ConferenceOptions.cs index 18eb9be41..d823063f1 100644 --- a/src/Twilio/Rest/Api/V2010/Account/ConferenceOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/ConferenceOptions.cs @@ -44,7 +44,7 @@ public FetchConferenceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -91,7 +91,7 @@ public class ReadConferenceOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -173,7 +173,7 @@ public UpdateConferenceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/ConferenceResource.cs b/src/Twilio/Rest/Api/V2010/Account/ConferenceResource.cs index e73b6b6bf..f467f2883 100644 --- a/src/Twilio/Rest/Api/V2010/Account/ConferenceResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/ConferenceResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Api.V2010.Account public class ConferenceResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Api/V2010/Account/ConnectAppOptions.cs b/src/Twilio/Rest/Api/V2010/Account/ConnectAppOptions.cs index 37122ffc0..4838bd29b 100644 --- a/src/Twilio/Rest/Api/V2010/Account/ConnectAppOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/ConnectAppOptions.cs @@ -44,7 +44,7 @@ public DeleteConnectAppOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -76,7 +76,7 @@ public FetchConnectAppOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -99,7 +99,7 @@ public class ReadConnectAppOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -159,7 +159,7 @@ public UpdateConnectAppOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/ConnectAppResource.cs b/src/Twilio/Rest/Api/V2010/Account/ConnectAppResource.cs index 3d10c8666..0b9e49ff8 100644 --- a/src/Twilio/Rest/Api/V2010/Account/ConnectAppResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/ConnectAppResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Api.V2010.Account public class ConnectAppResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class PermissionEnum : StringEnum { diff --git a/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOn/AssignedAddOnExtensionOptions.cs b/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOn/AssignedAddOnExtensionOptions.cs index 6f559f18a..2bf038af5 100644 --- a/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOn/AssignedAddOnExtensionOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOn/AssignedAddOnExtensionOptions.cs @@ -54,7 +54,7 @@ public FetchAssignedAddOnExtensionOptions(string pathResourceSid, string pathAss /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -91,7 +91,7 @@ public ReadAssignedAddOnExtensionOptions(string pathResourceSid, string pathAssi /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOn/AssignedAddOnExtensionResource.cs b/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOn/AssignedAddOnExtensionResource.cs index ea14eba14..1916a675d 100644 --- a/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOn/AssignedAddOnExtensionResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOn/AssignedAddOnExtensionResource.cs @@ -30,6 +30,8 @@ public class AssignedAddOnExtensionResource : Resource { + + private static Request BuildFetchRequest(FetchAssignedAddOnExtensionOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOnOptions.cs b/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOnOptions.cs index 9a364cf76..01d7d4899 100644 --- a/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOnOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOnOptions.cs @@ -49,7 +49,7 @@ public CreateAssignedAddOnOptions(string pathResourceSid, string installedAddOnS /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -88,7 +88,7 @@ public DeleteAssignedAddOnOptions(string pathResourceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -125,7 +125,7 @@ public FetchAssignedAddOnOptions(string pathResourceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -157,7 +157,7 @@ public ReadAssignedAddOnOptions(string pathResourceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOnResource.cs b/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOnResource.cs index 9da54a0a7..c3f47167c 100644 --- a/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOnResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/AssignedAddOnResource.cs @@ -30,6 +30,8 @@ public class AssignedAddOnResource : Resource { + + private static Request BuildCreateRequest(CreateAssignedAddOnOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/LocalOptions.cs b/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/LocalOptions.cs index 57bb141d9..867bc23df 100644 --- a/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/LocalOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/LocalOptions.cs @@ -110,7 +110,7 @@ public CreateLocalOptions(Types.PhoneNumber phoneNumber) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -235,7 +235,7 @@ public class ReadLocalOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/LocalResource.cs b/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/LocalResource.cs index 5fe112f3c..1c24e4738 100644 --- a/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/LocalResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/LocalResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Api.V2010.Account.IncomingPhoneNumber public class LocalResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class EmergencyStatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/MobileOptions.cs b/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/MobileOptions.cs index 18e633416..17a27bccc 100644 --- a/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/MobileOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/MobileOptions.cs @@ -110,7 +110,7 @@ public CreateMobileOptions(Types.PhoneNumber phoneNumber) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -235,7 +235,7 @@ public class ReadMobileOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/MobileResource.cs b/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/MobileResource.cs index 93a61eecc..51f29be17 100644 --- a/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/MobileResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/MobileResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Api.V2010.Account.IncomingPhoneNumber public class MobileResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class EmergencyStatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/TollFreeOptions.cs b/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/TollFreeOptions.cs index d3f21123d..9378035b1 100644 --- a/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/TollFreeOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/TollFreeOptions.cs @@ -110,7 +110,7 @@ public CreateTollFreeOptions(Types.PhoneNumber phoneNumber) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -235,7 +235,7 @@ public class ReadTollFreeOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/TollFreeResource.cs b/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/TollFreeResource.cs index f0cba8ee2..3c42aee25 100644 --- a/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/TollFreeResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumber/TollFreeResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Api.V2010.Account.IncomingPhoneNumber public class TollFreeResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class EmergencyStatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumberOptions.cs b/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumberOptions.cs index 86d6724a3..98a614d45 100644 --- a/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumberOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumberOptions.cs @@ -107,7 +107,7 @@ public class CreateIncomingPhoneNumberOptions : IOptions Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -233,7 +233,7 @@ public DeleteIncomingPhoneNumberOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -265,7 +265,7 @@ public FetchIncomingPhoneNumberOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -300,7 +300,7 @@ public class ReadIncomingPhoneNumberOptions : ReadOptions Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -420,7 +420,7 @@ public UpdateIncomingPhoneNumberOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumberResource.cs b/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumberResource.cs index 6cdff67be..a1186aa68 100644 --- a/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumberResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/IncomingPhoneNumberResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Api.V2010.Account public class IncomingPhoneNumberResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class EmergencyStatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Api/V2010/Account/KeyOptions.cs b/src/Twilio/Rest/Api/V2010/Account/KeyOptions.cs index 212cea79a..079ff8616 100644 --- a/src/Twilio/Rest/Api/V2010/Account/KeyOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/KeyOptions.cs @@ -44,7 +44,7 @@ public DeleteKeyOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -76,7 +76,7 @@ public FetchKeyOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -99,7 +99,7 @@ public class ReadKeyOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -137,7 +137,7 @@ public UpdateKeyOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/KeyResource.cs b/src/Twilio/Rest/Api/V2010/Account/KeyResource.cs index 6510508df..ef68c4de4 100644 --- a/src/Twilio/Rest/Api/V2010/Account/KeyResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/KeyResource.cs @@ -30,6 +30,8 @@ public class KeyResource : Resource { + + /// delete /// Delete Key parameters diff --git a/src/Twilio/Rest/Api/V2010/Account/Message/FeedbackOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Message/FeedbackOptions.cs index 67c9b0d62..0af1a4828 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Message/FeedbackOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Message/FeedbackOptions.cs @@ -24,14 +24,14 @@ namespace Twilio.Rest.Api.V2010.Account.Message { - /// create + /// Create Message Feedback to confirm a tracked user action was performed by the recipient of the associated Message public class CreateFeedbackOptions : IOptions { - /// The SID of the Message resource for which the feedback was provided. + /// The SID of the Message resource for which to create MessageFeedback. public string PathMessageSid { get; } - /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with the Message resource for which to create MessageFeedback. public string PathAccountSid { get; set; } @@ -39,7 +39,7 @@ public class CreateFeedbackOptions : IOptions /// Construct a new CreateMessageFeedbackOptions - /// The SID of the Message resource for which the feedback was provided. + /// The SID of the Message resource for which to create MessageFeedback. public CreateFeedbackOptions(string pathMessageSid) { PathMessageSid = pathMessageSid; @@ -47,7 +47,7 @@ public CreateFeedbackOptions(string pathMessageSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/Message/FeedbackResource.cs b/src/Twilio/Rest/Api/V2010/Account/Message/FeedbackResource.cs index 82faecd92..1712dd957 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Message/FeedbackResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Message/FeedbackResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Api.V2010.Account.Message public class FeedbackResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class OutcomeEnum : StringEnum { @@ -63,7 +65,7 @@ private static Request BuildCreateRequest(CreateFeedbackOptions options, ITwilio ); } - /// create + /// Create Message Feedback to confirm a tracked user action was performed by the recipient of the associated Message /// Create Feedback parameters /// Client to make requests to Twilio /// A single instance of Feedback @@ -75,7 +77,7 @@ public static FeedbackResource Create(CreateFeedbackOptions options, ITwilioRest } #if !NET35 - /// create + /// Create Message Feedback to confirm a tracked user action was performed by the recipient of the associated Message /// Create Feedback parameters /// Client to make requests to Twilio /// Task that resolves to A single instance of Feedback @@ -88,9 +90,9 @@ public static async System.Threading.Tasks.Task CreateAsync(Cr } #endif - /// create - /// The SID of the Message resource for which the feedback was provided. - /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + /// Create Message Feedback to confirm a tracked user action was performed by the recipient of the associated Message + /// The SID of the Message resource for which to create MessageFeedback. + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with the Message resource for which to create MessageFeedback. /// /// Client to make requests to Twilio /// A single instance of Feedback @@ -105,9 +107,9 @@ public static FeedbackResource Create( } #if !NET35 - /// create - /// The SID of the Message resource for which the feedback was provided. - /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will create the resource. + /// Create Message Feedback to confirm a tracked user action was performed by the recipient of the associated Message + /// The SID of the Message resource for which to create MessageFeedback. + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with the Message resource for which to create MessageFeedback. /// /// Client to make requests to Twilio /// Task that resolves to A single instance of Feedback @@ -140,11 +142,11 @@ public static FeedbackResource FromJson(string json) } - /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the MessageFeedback resource. + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with this MessageFeedback resource. [JsonProperty("account_sid")] public string AccountSid { get; private set; } - /// The SID of the Message resource for which the feedback was provided. + /// The SID of the Message resource associated with this MessageFeedback resource. [JsonProperty("message_sid")] public string MessageSid { get; private set; } @@ -152,11 +154,11 @@ public static FeedbackResource FromJson(string json) [JsonProperty("outcome")] public FeedbackResource.OutcomeEnum Outcome { get; private set; } - /// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + /// The date and time in GMT when this MessageFeedback resource was created, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. [JsonProperty("date_created")] public DateTime? DateCreated { get; private set; } - /// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. + /// The date and time in GMT when this MessageFeedback resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. [JsonProperty("date_updated")] public DateTime? DateUpdated { get; private set; } diff --git a/src/Twilio/Rest/Api/V2010/Account/Message/MediaOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Message/MediaOptions.cs index c371d2c41..fe234d456 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Message/MediaOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Message/MediaOptions.cs @@ -49,7 +49,7 @@ public DeleteMediaOptions(string pathMessageSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -86,7 +86,7 @@ public FetchMediaOptions(string pathMessageSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -127,7 +127,7 @@ public ReadMediaOptions(string pathMessageSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/Message/MediaResource.cs b/src/Twilio/Rest/Api/V2010/Account/Message/MediaResource.cs index 44e025020..4448c3299 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Message/MediaResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Message/MediaResource.cs @@ -30,6 +30,8 @@ public class MediaResource : Resource { + + /// Delete the Media resource. /// Delete Media parameters diff --git a/src/Twilio/Rest/Api/V2010/Account/MessageOptions.cs b/src/Twilio/Rest/Api/V2010/Account/MessageOptions.cs index 098f02b6b..e7ab298ec 100644 --- a/src/Twilio/Rest/Api/V2010/Account/MessageOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/MessageOptions.cs @@ -82,6 +82,9 @@ public class CreateMessageOptions : IOptions /// For [Content Editor/API](https://www.twilio.com/docs/content) only: Key-value pairs of [Template variables](https://www.twilio.com/docs/content/using-variables-with-content-api) and their substitution values. `content_sid` parameter must also be provided. If values are not defined in the `content_variables` parameter, the [Template's default placeholder values](https://www.twilio.com/docs/content/content-api-resources#create-templates) are used. public string ContentVariables { get; set; } + /// A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. The object may contain up to 10 tags. Keys and values can each be up to 128 characters in length. + public string Tags { get; set; } + public MessageResource.RiskCheckEnum RiskCheck { get; set; } @@ -112,7 +115,7 @@ public CreateMessageOptions(Types.PhoneNumber to) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -184,6 +187,10 @@ public List> GetParams() { p.Add(new KeyValuePair("ContentVariables", ContentVariables)); } + if (Tags != null) + { + p.Add(new KeyValuePair("Tags", Tags)); + } if (RiskCheck != null) { p.Add(new KeyValuePair("RiskCheck", RiskCheck.ToString())); @@ -234,7 +241,7 @@ public DeleteMessageOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -266,7 +273,7 @@ public FetchMessageOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -304,7 +311,7 @@ public class ReadMessageOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -368,7 +375,7 @@ public UpdateMessageOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/MessageResource.cs b/src/Twilio/Rest/Api/V2010/Account/MessageResource.cs index 64284f867..349634591 100644 --- a/src/Twilio/Rest/Api/V2010/Account/MessageResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/MessageResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Api.V2010.Account public class MessageResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { @@ -194,6 +196,7 @@ public static async System.Threading.Tasks.Task CreateAsync(Cre /// The time that Twilio will send the message. Must be in ISO 8601 format. /// If set to `true`, Twilio delivers the message as a single MMS message, regardless of the presence of media. /// For [Content Editor/API](https://www.twilio.com/docs/content) only: Key-value pairs of [Template variables](https://www.twilio.com/docs/content/using-variables-with-content-api) and their substitution values. `content_sid` parameter must also be provided. If values are not defined in the `content_variables` parameter, the [Template's default placeholder values](https://www.twilio.com/docs/content/content-api-resources#create-templates) are used. + /// A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. The object may contain up to 10 tags. Keys and values can each be up to 128 characters in length. /// /// Client to make requests to Twilio /// A single instance of Message @@ -221,10 +224,11 @@ public static MessageResource Create( DateTime? sendAt = null, bool? sendAsMms = null, string contentVariables = null, + string tags = null, MessageResource.RiskCheckEnum riskCheck = null, ITwilioRestClient client = null) { - var options = new CreateMessageOptions(to){ PathAccountSid = pathAccountSid, From = from, MessagingServiceSid = messagingServiceSid, Body = body, MediaUrl = mediaUrl, ContentSid = contentSid, StatusCallback = statusCallback, ApplicationSid = applicationSid, MaxPrice = maxPrice, ProvideFeedback = provideFeedback, Attempt = attempt, ValidityPeriod = validityPeriod, ForceDelivery = forceDelivery, ContentRetention = contentRetention, AddressRetention = addressRetention, SmartEncoded = smartEncoded, PersistentAction = persistentAction, ShortenUrls = shortenUrls, ScheduleType = scheduleType, SendAt = sendAt, SendAsMms = sendAsMms, ContentVariables = contentVariables, RiskCheck = riskCheck }; + var options = new CreateMessageOptions(to){ PathAccountSid = pathAccountSid, From = from, MessagingServiceSid = messagingServiceSid, Body = body, MediaUrl = mediaUrl, ContentSid = contentSid, StatusCallback = statusCallback, ApplicationSid = applicationSid, MaxPrice = maxPrice, ProvideFeedback = provideFeedback, Attempt = attempt, ValidityPeriod = validityPeriod, ForceDelivery = forceDelivery, ContentRetention = contentRetention, AddressRetention = addressRetention, SmartEncoded = smartEncoded, PersistentAction = persistentAction, ShortenUrls = shortenUrls, ScheduleType = scheduleType, SendAt = sendAt, SendAsMms = sendAsMms, ContentVariables = contentVariables, Tags = tags, RiskCheck = riskCheck }; return Create(options, client); } @@ -253,6 +257,7 @@ public static MessageResource Create( /// The time that Twilio will send the message. Must be in ISO 8601 format. /// If set to `true`, Twilio delivers the message as a single MMS message, regardless of the presence of media. /// For [Content Editor/API](https://www.twilio.com/docs/content) only: Key-value pairs of [Template variables](https://www.twilio.com/docs/content/using-variables-with-content-api) and their substitution values. `content_sid` parameter must also be provided. If values are not defined in the `content_variables` parameter, the [Template's default placeholder values](https://www.twilio.com/docs/content/content-api-resources#create-templates) are used. + /// A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. The object may contain up to 10 tags. Keys and values can each be up to 128 characters in length. /// /// Client to make requests to Twilio /// Task that resolves to A single instance of Message @@ -280,10 +285,11 @@ public static async System.Threading.Tasks.Task CreateAsync( DateTime? sendAt = null, bool? sendAsMms = null, string contentVariables = null, + string tags = null, MessageResource.RiskCheckEnum riskCheck = null, ITwilioRestClient client = null) { - var options = new CreateMessageOptions(to){ PathAccountSid = pathAccountSid, From = from, MessagingServiceSid = messagingServiceSid, Body = body, MediaUrl = mediaUrl, ContentSid = contentSid, StatusCallback = statusCallback, ApplicationSid = applicationSid, MaxPrice = maxPrice, ProvideFeedback = provideFeedback, Attempt = attempt, ValidityPeriod = validityPeriod, ForceDelivery = forceDelivery, ContentRetention = contentRetention, AddressRetention = addressRetention, SmartEncoded = smartEncoded, PersistentAction = persistentAction, ShortenUrls = shortenUrls, ScheduleType = scheduleType, SendAt = sendAt, SendAsMms = sendAsMms, ContentVariables = contentVariables, RiskCheck = riskCheck }; + var options = new CreateMessageOptions(to){ PathAccountSid = pathAccountSid, From = from, MessagingServiceSid = messagingServiceSid, Body = body, MediaUrl = mediaUrl, ContentSid = contentSid, StatusCallback = statusCallback, ApplicationSid = applicationSid, MaxPrice = maxPrice, ProvideFeedback = provideFeedback, Attempt = attempt, ValidityPeriod = validityPeriod, ForceDelivery = forceDelivery, ContentRetention = contentRetention, AddressRetention = addressRetention, SmartEncoded = smartEncoded, PersistentAction = persistentAction, ShortenUrls = shortenUrls, ScheduleType = scheduleType, SendAt = sendAt, SendAsMms = sendAsMms, ContentVariables = contentVariables, Tags = tags, RiskCheck = riskCheck }; return await CreateAsync(options, client); } #endif @@ -757,6 +763,10 @@ public static MessageResource FromJson(string json) [JsonProperty("subresource_uris")] public Dictionary SubresourceUris { get; private set; } + /// A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. + [JsonProperty("tags")] + public object Tags { get; private set; } + private MessageResource() { diff --git a/src/Twilio/Rest/Api/V2010/Account/NewKeyOptions.cs b/src/Twilio/Rest/Api/V2010/Account/NewKeyOptions.cs index 13b9c1bc0..bc2f0e587 100644 --- a/src/Twilio/Rest/Api/V2010/Account/NewKeyOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/NewKeyOptions.cs @@ -38,7 +38,7 @@ public class CreateNewKeyOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/NewKeyResource.cs b/src/Twilio/Rest/Api/V2010/Account/NewKeyResource.cs index c33bf2225..854b77782 100644 --- a/src/Twilio/Rest/Api/V2010/Account/NewKeyResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/NewKeyResource.cs @@ -30,6 +30,8 @@ public class NewKeyResource : Resource { + + private static Request BuildCreateRequest(CreateNewKeyOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Api/V2010/Account/NewSigningKeyOptions.cs b/src/Twilio/Rest/Api/V2010/Account/NewSigningKeyOptions.cs index 00c38499f..cffd008ae 100644 --- a/src/Twilio/Rest/Api/V2010/Account/NewSigningKeyOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/NewSigningKeyOptions.cs @@ -38,7 +38,7 @@ public class CreateNewSigningKeyOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/NewSigningKeyResource.cs b/src/Twilio/Rest/Api/V2010/Account/NewSigningKeyResource.cs index ed03ada6a..ab8cf7587 100644 --- a/src/Twilio/Rest/Api/V2010/Account/NewSigningKeyResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/NewSigningKeyResource.cs @@ -30,6 +30,8 @@ public class NewSigningKeyResource : Resource { + + private static Request BuildCreateRequest(CreateNewSigningKeyOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Api/V2010/Account/NotificationOptions.cs b/src/Twilio/Rest/Api/V2010/Account/NotificationOptions.cs index c1e0d7652..2177edbb6 100644 --- a/src/Twilio/Rest/Api/V2010/Account/NotificationOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/NotificationOptions.cs @@ -44,7 +44,7 @@ public FetchNotificationOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -79,7 +79,7 @@ public class ReadNotificationOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/NotificationResource.cs b/src/Twilio/Rest/Api/V2010/Account/NotificationResource.cs index 9b2556584..dc68c89d8 100644 --- a/src/Twilio/Rest/Api/V2010/Account/NotificationResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/NotificationResource.cs @@ -30,6 +30,8 @@ public class NotificationResource : Resource { + + private static Request BuildFetchRequest(FetchNotificationOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Api/V2010/Account/OutgoingCallerIdOptions.cs b/src/Twilio/Rest/Api/V2010/Account/OutgoingCallerIdOptions.cs index c771b3839..4481f2a17 100644 --- a/src/Twilio/Rest/Api/V2010/Account/OutgoingCallerIdOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/OutgoingCallerIdOptions.cs @@ -44,7 +44,7 @@ public DeleteOutgoingCallerIdOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -76,7 +76,7 @@ public FetchOutgoingCallerIdOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -105,7 +105,7 @@ public class ReadOutgoingCallerIdOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -151,7 +151,7 @@ public UpdateOutgoingCallerIdOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/OutgoingCallerIdResource.cs b/src/Twilio/Rest/Api/V2010/Account/OutgoingCallerIdResource.cs index 95b457d1c..9afdde2fc 100644 --- a/src/Twilio/Rest/Api/V2010/Account/OutgoingCallerIdResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/OutgoingCallerIdResource.cs @@ -30,6 +30,8 @@ public class OutgoingCallerIdResource : Resource { + + /// Delete the caller-id specified from the account /// Delete OutgoingCallerId parameters diff --git a/src/Twilio/Rest/Api/V2010/Account/Queue/MemberOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Queue/MemberOptions.cs index dd80f673d..2eb004031 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Queue/MemberOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Queue/MemberOptions.cs @@ -49,7 +49,7 @@ public FetchMemberOptions(string pathQueueSid, string pathCallSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -81,7 +81,7 @@ public ReadMemberOptions(string pathQueueSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -129,7 +129,7 @@ public UpdateMemberOptions(string pathQueueSid, string pathCallSid, Uri url) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/Queue/MemberResource.cs b/src/Twilio/Rest/Api/V2010/Account/Queue/MemberResource.cs index 71c8d8c65..09dc6c622 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Queue/MemberResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Queue/MemberResource.cs @@ -30,6 +30,8 @@ public class MemberResource : Resource { + + private static Request BuildFetchRequest(FetchMemberOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Api/V2010/Account/QueueOptions.cs b/src/Twilio/Rest/Api/V2010/Account/QueueOptions.cs index 52a1f788b..dbebab763 100644 --- a/src/Twilio/Rest/Api/V2010/Account/QueueOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/QueueOptions.cs @@ -47,7 +47,7 @@ public CreateQueueOptions(string friendlyName) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -85,7 +85,7 @@ public DeleteQueueOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -117,7 +117,7 @@ public FetchQueueOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -140,7 +140,7 @@ public class ReadQueueOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -181,7 +181,7 @@ public UpdateQueueOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/QueueResource.cs b/src/Twilio/Rest/Api/V2010/Account/QueueResource.cs index 605e2c296..de39dbcae 100644 --- a/src/Twilio/Rest/Api/V2010/Account/QueueResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/QueueResource.cs @@ -30,6 +30,8 @@ public class QueueResource : Resource { + + private static Request BuildCreateRequest(CreateQueueOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/PayloadOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/PayloadOptions.cs index a50ae7f8a..a3e5df1b2 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/PayloadOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/PayloadOptions.cs @@ -54,7 +54,7 @@ public DeletePayloadOptions(string pathReferenceSid, string pathAddOnResultSid, /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -96,7 +96,7 @@ public FetchPayloadOptions(string pathReferenceSid, string pathAddOnResultSid, s /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -133,7 +133,7 @@ public ReadPayloadOptions(string pathReferenceSid, string pathAddOnResultSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/PayloadResource.cs b/src/Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/PayloadResource.cs index 8fd00c5f6..d10c353d6 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/PayloadResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/PayloadResource.cs @@ -30,6 +30,8 @@ public class PayloadResource : Resource { + + /// Delete a payload from the result along with all associated Data /// Delete Payload parameters diff --git a/src/Twilio/Rest/Api/V2010/Account/Recording/AddOnResultOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Recording/AddOnResultOptions.cs index 590a480d8..fe8021028 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Recording/AddOnResultOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Recording/AddOnResultOptions.cs @@ -49,7 +49,7 @@ public DeleteAddOnResultOptions(string pathReferenceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -86,7 +86,7 @@ public FetchAddOnResultOptions(string pathReferenceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -118,7 +118,7 @@ public ReadAddOnResultOptions(string pathReferenceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/Recording/AddOnResultResource.cs b/src/Twilio/Rest/Api/V2010/Account/Recording/AddOnResultResource.cs index 8c8761efa..cf22ff033 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Recording/AddOnResultResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Recording/AddOnResultResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Api.V2010.Account.Recording public class AddOnResultResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Api/V2010/Account/Recording/TranscriptionOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Recording/TranscriptionOptions.cs index adc2e9e22..a02db2b6a 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Recording/TranscriptionOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Recording/TranscriptionOptions.cs @@ -49,7 +49,7 @@ public DeleteTranscriptionOptions(string pathRecordingSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -86,7 +86,7 @@ public FetchTranscriptionOptions(string pathRecordingSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -118,7 +118,7 @@ public ReadTranscriptionOptions(string pathRecordingSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/Recording/TranscriptionResource.cs b/src/Twilio/Rest/Api/V2010/Account/Recording/TranscriptionResource.cs index 409c50439..a421e0014 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Recording/TranscriptionResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Recording/TranscriptionResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Api.V2010.Account.Recording public class TranscriptionResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Api/V2010/Account/RecordingOptions.cs b/src/Twilio/Rest/Api/V2010/Account/RecordingOptions.cs index 3231b8605..7a2851329 100644 --- a/src/Twilio/Rest/Api/V2010/Account/RecordingOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/RecordingOptions.cs @@ -44,7 +44,7 @@ public DeleteRecordingOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -79,7 +79,7 @@ public FetchRecordingOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -124,7 +124,7 @@ public class ReadRecordingOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/RecordingResource.cs b/src/Twilio/Rest/Api/V2010/Account/RecordingResource.cs index a8c93cc43..a4b2cafbe 100644 --- a/src/Twilio/Rest/Api/V2010/Account/RecordingResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/RecordingResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Api.V2010.Account public class RecordingResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Api/V2010/Account/ShortCodeOptions.cs b/src/Twilio/Rest/Api/V2010/Account/ShortCodeOptions.cs index d130f6d49..20ee683d0 100644 --- a/src/Twilio/Rest/Api/V2010/Account/ShortCodeOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/ShortCodeOptions.cs @@ -44,7 +44,7 @@ public FetchShortCodeOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -73,7 +73,7 @@ public class ReadShortCodeOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -134,7 +134,7 @@ public UpdateShortCodeOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/ShortCodeResource.cs b/src/Twilio/Rest/Api/V2010/Account/ShortCodeResource.cs index ca14fc871..b37c301a5 100644 --- a/src/Twilio/Rest/Api/V2010/Account/ShortCodeResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/ShortCodeResource.cs @@ -30,6 +30,8 @@ public class ShortCodeResource : Resource { + + private static Request BuildFetchRequest(FetchShortCodeOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Api/V2010/Account/SigningKeyOptions.cs b/src/Twilio/Rest/Api/V2010/Account/SigningKeyOptions.cs index 29ad77623..37319220a 100644 --- a/src/Twilio/Rest/Api/V2010/Account/SigningKeyOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/SigningKeyOptions.cs @@ -44,7 +44,7 @@ public DeleteSigningKeyOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -76,7 +76,7 @@ public FetchSigningKeyOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -99,7 +99,7 @@ public class ReadSigningKeyOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -137,7 +137,7 @@ public UpdateSigningKeyOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/SigningKeyResource.cs b/src/Twilio/Rest/Api/V2010/Account/SigningKeyResource.cs index 28be88d8f..43eb92cd7 100644 --- a/src/Twilio/Rest/Api/V2010/Account/SigningKeyResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/SigningKeyResource.cs @@ -30,6 +30,8 @@ public class SigningKeyResource : Resource { + + /// delete /// Delete SigningKey parameters diff --git a/src/Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialOptions.cs index 2903cae90..3e6ceebff 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialOptions.cs @@ -54,7 +54,7 @@ public CreateCredentialOptions(string pathCredentialListSid, string username, st /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -97,7 +97,7 @@ public DeleteCredentialOptions(string pathCredentialListSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -134,7 +134,7 @@ public FetchCredentialOptions(string pathCredentialListSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -166,7 +166,7 @@ public ReadCredentialOptions(string pathCredentialListSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -209,7 +209,7 @@ public UpdateCredentialOptions(string pathCredentialListSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialResource.cs b/src/Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialResource.cs index ccfa897eb..2ff389fbe 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Sip/CredentialList/CredentialResource.cs @@ -30,6 +30,8 @@ public class CredentialResource : Resource { + + private static Request BuildCreateRequest(CreateCredentialOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Api/V2010/Account/Sip/CredentialListOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Sip/CredentialListOptions.cs index 7aab3ceac..8a86992d9 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Sip/CredentialListOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Sip/CredentialListOptions.cs @@ -44,7 +44,7 @@ public CreateCredentialListOptions(string friendlyName) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -78,7 +78,7 @@ public DeleteCredentialListOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -110,7 +110,7 @@ public FetchCredentialListOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -133,7 +133,7 @@ public class ReadCredentialListOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -173,7 +173,7 @@ public UpdateCredentialListOptions(string pathSid, string friendlyName) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/Sip/CredentialListResource.cs b/src/Twilio/Rest/Api/V2010/Account/Sip/CredentialListResource.cs index 7414a44a7..5590a1801 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Sip/CredentialListResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Sip/CredentialListResource.cs @@ -30,6 +30,8 @@ public class CredentialListResource : Resource { + + private static Request BuildCreateRequest(CreateCredentialListOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsCredentialListMappingOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsCredentialListMappingOptions.cs index f76c189ba..e508b5d03 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsCredentialListMappingOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsCredentialListMappingOptions.cs @@ -49,7 +49,7 @@ public CreateAuthCallsCredentialListMappingOptions(string pathDomainSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -88,7 +88,7 @@ public DeleteAuthCallsCredentialListMappingOptions(string pathDomainSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -125,7 +125,7 @@ public FetchAuthCallsCredentialListMappingOptions(string pathDomainSid, string p /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -157,7 +157,7 @@ public ReadAuthCallsCredentialListMappingOptions(string pathDomainSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsCredentialListMappingResource.cs b/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsCredentialListMappingResource.cs index 4bfa8f0c5..8c2d54c96 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsCredentialListMappingResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsCredentialListMappingResource.cs @@ -30,6 +30,8 @@ public class AuthCallsCredentialListMappingResource : Resource { + + private static Request BuildCreateRequest(CreateAuthCallsCredentialListMappingOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsIpAccessControlListMappingOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsIpAccessControlListMappingOptions.cs index 55d24f5d6..0f71a617f 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsIpAccessControlListMappingOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsIpAccessControlListMappingOptions.cs @@ -49,7 +49,7 @@ public CreateAuthCallsIpAccessControlListMappingOptions(string pathDomainSid, st /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -88,7 +88,7 @@ public DeleteAuthCallsIpAccessControlListMappingOptions(string pathDomainSid, st /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -125,7 +125,7 @@ public FetchAuthCallsIpAccessControlListMappingOptions(string pathDomainSid, str /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -157,7 +157,7 @@ public ReadAuthCallsIpAccessControlListMappingOptions(string pathDomainSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsIpAccessControlListMappingResource.cs b/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsIpAccessControlListMappingResource.cs index 899d00285..6a25134a1 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsIpAccessControlListMappingResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsIpAccessControlListMappingResource.cs @@ -30,6 +30,8 @@ public class AuthCallsIpAccessControlListMappingResource : Resource { + + private static Request BuildCreateRequest(CreateAuthCallsIpAccessControlListMappingOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrations/AuthRegistrationsCredentialListMappingOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrations/AuthRegistrationsCredentialListMappingOptions.cs index 9b3f1abbf..f96727d57 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrations/AuthRegistrationsCredentialListMappingOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrations/AuthRegistrationsCredentialListMappingOptions.cs @@ -49,7 +49,7 @@ public CreateAuthRegistrationsCredentialListMappingOptions(string pathDomainSid, /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -88,7 +88,7 @@ public DeleteAuthRegistrationsCredentialListMappingOptions(string pathDomainSid, /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -125,7 +125,7 @@ public FetchAuthRegistrationsCredentialListMappingOptions(string pathDomainSid, /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -157,7 +157,7 @@ public ReadAuthRegistrationsCredentialListMappingOptions(string pathDomainSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrations/AuthRegistrationsCredentialListMappingResource.cs b/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrations/AuthRegistrationsCredentialListMappingResource.cs index a6d5f4d00..8634f932b 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrations/AuthRegistrationsCredentialListMappingResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrations/AuthRegistrationsCredentialListMappingResource.cs @@ -30,6 +30,8 @@ public class AuthRegistrationsCredentialListMappingResource : Resource { + + private static Request BuildCreateRequest(CreateAuthRegistrationsCredentialListMappingOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/CredentialListMappingOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/CredentialListMappingOptions.cs index 60f4b0a35..b0990653b 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/CredentialListMappingOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/CredentialListMappingOptions.cs @@ -49,7 +49,7 @@ public CreateCredentialListMappingOptions(string pathDomainSid, string credentia /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -88,7 +88,7 @@ public DeleteCredentialListMappingOptions(string pathDomainSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -125,7 +125,7 @@ public FetchCredentialListMappingOptions(string pathDomainSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -157,7 +157,7 @@ public ReadCredentialListMappingOptions(string pathDomainSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/CredentialListMappingResource.cs b/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/CredentialListMappingResource.cs index ac6ba61dd..c8ebc32a7 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/CredentialListMappingResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/CredentialListMappingResource.cs @@ -30,6 +30,8 @@ public class CredentialListMappingResource : Resource { + + private static Request BuildCreateRequest(CreateCredentialListMappingOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/IpAccessControlListMappingOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/IpAccessControlListMappingOptions.cs index 201bf6e5b..c54926c12 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/IpAccessControlListMappingOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/IpAccessControlListMappingOptions.cs @@ -49,7 +49,7 @@ public CreateIpAccessControlListMappingOptions(string pathDomainSid, string ipAc /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -88,7 +88,7 @@ public DeleteIpAccessControlListMappingOptions(string pathDomainSid, string path /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -125,7 +125,7 @@ public FetchIpAccessControlListMappingOptions(string pathDomainSid, string pathS /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -157,7 +157,7 @@ public ReadIpAccessControlListMappingOptions(string pathDomainSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/IpAccessControlListMappingResource.cs b/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/IpAccessControlListMappingResource.cs index c5b393a4d..a24080390 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/IpAccessControlListMappingResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Sip/Domain/IpAccessControlListMappingResource.cs @@ -30,6 +30,8 @@ public class IpAccessControlListMappingResource : Resource { + + private static Request BuildCreateRequest(CreateIpAccessControlListMappingOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Api/V2010/Account/Sip/DomainOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Sip/DomainOptions.cs index 303cca3bb..fd1d0fc07 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Sip/DomainOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Sip/DomainOptions.cs @@ -80,7 +80,7 @@ public CreateDomainOptions(string domainName) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -162,7 +162,7 @@ public DeleteDomainOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -194,7 +194,7 @@ public FetchDomainOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -217,7 +217,7 @@ public class ReadDomainOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -291,7 +291,7 @@ public UpdateDomainOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/Sip/DomainResource.cs b/src/Twilio/Rest/Api/V2010/Account/Sip/DomainResource.cs index b314eaedf..03a526397 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Sip/DomainResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Sip/DomainResource.cs @@ -30,6 +30,8 @@ public class DomainResource : Resource { + + private static Request BuildCreateRequest(CreateDomainOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlList/IpAddressOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlList/IpAddressOptions.cs index 314ef4377..7e1c5e866 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlList/IpAddressOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlList/IpAddressOptions.cs @@ -57,7 +57,7 @@ public CreateIpAddressOptions(string pathIpAccessControlListSid, string friendly /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -104,7 +104,7 @@ public DeleteIpAddressOptions(string pathIpAccessControlListSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -141,7 +141,7 @@ public FetchIpAddressOptions(string pathIpAccessControlListSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -173,7 +173,7 @@ public ReadIpAddressOptions(string pathIpAccessControlListSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -222,7 +222,7 @@ public UpdateIpAddressOptions(string pathIpAccessControlListSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlList/IpAddressResource.cs b/src/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlList/IpAddressResource.cs index 1a1ffca26..59f027d88 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlList/IpAddressResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlList/IpAddressResource.cs @@ -30,6 +30,8 @@ public class IpAddressResource : Resource { + + private static Request BuildCreateRequest(CreateIpAddressOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlListOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlListOptions.cs index d8c621eae..870f7ad64 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlListOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlListOptions.cs @@ -44,7 +44,7 @@ public CreateIpAccessControlListOptions(string friendlyName) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -78,7 +78,7 @@ public DeleteIpAccessControlListOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -110,7 +110,7 @@ public FetchIpAccessControlListOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -133,7 +133,7 @@ public class ReadIpAccessControlListOptions : ReadOptions Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -173,7 +173,7 @@ public UpdateIpAccessControlListOptions(string pathSid, string friendlyName) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlListResource.cs b/src/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlListResource.cs index 8bbeb9ef5..206bb60eb 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlListResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Sip/IpAccessControlListResource.cs @@ -30,6 +30,8 @@ public class IpAccessControlListResource : Resource { + + private static Request BuildCreateRequest(CreateIpAccessControlListOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Api/V2010/Account/TokenOptions.cs b/src/Twilio/Rest/Api/V2010/Account/TokenOptions.cs index f2d19e0c7..c9340724c 100644 --- a/src/Twilio/Rest/Api/V2010/Account/TokenOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/TokenOptions.cs @@ -38,7 +38,7 @@ public class CreateTokenOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/TokenResource.cs b/src/Twilio/Rest/Api/V2010/Account/TokenResource.cs index 0c9014d81..ab50acbe6 100644 --- a/src/Twilio/Rest/Api/V2010/Account/TokenResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/TokenResource.cs @@ -30,6 +30,8 @@ public class TokenResource : Resource { + + private static Request BuildCreateRequest(CreateTokenOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Api/V2010/Account/TranscriptionOptions.cs b/src/Twilio/Rest/Api/V2010/Account/TranscriptionOptions.cs index 16ca05320..ba27b04cf 100644 --- a/src/Twilio/Rest/Api/V2010/Account/TranscriptionOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/TranscriptionOptions.cs @@ -44,7 +44,7 @@ public DeleteTranscriptionOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -76,7 +76,7 @@ public FetchTranscriptionOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -99,7 +99,7 @@ public class ReadTranscriptionOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/TranscriptionResource.cs b/src/Twilio/Rest/Api/V2010/Account/TranscriptionResource.cs index f47258624..ddc1a67fc 100644 --- a/src/Twilio/Rest/Api/V2010/Account/TranscriptionResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/TranscriptionResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Api.V2010.Account public class TranscriptionResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Api/V2010/Account/Usage/Record/AllTimeOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Usage/Record/AllTimeOptions.cs index 1b951ec24..2e17a4c87 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Usage/Record/AllTimeOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Usage/Record/AllTimeOptions.cs @@ -47,7 +47,7 @@ public class ReadAllTimeOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/Usage/Record/AllTimeResource.cs b/src/Twilio/Rest/Api/V2010/Account/Usage/Record/AllTimeResource.cs index 54a441aca..eb6a9a3ed 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Usage/Record/AllTimeResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Usage/Record/AllTimeResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Api.V2010.Account.Usage.Record public class AllTimeResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class CategoryEnum : StringEnum { diff --git a/src/Twilio/Rest/Api/V2010/Account/Usage/Record/DailyOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Usage/Record/DailyOptions.cs index 17e674209..146191425 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Usage/Record/DailyOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Usage/Record/DailyOptions.cs @@ -47,7 +47,7 @@ public class ReadDailyOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/Usage/Record/DailyResource.cs b/src/Twilio/Rest/Api/V2010/Account/Usage/Record/DailyResource.cs index d31c7d814..45ceb265d 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Usage/Record/DailyResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Usage/Record/DailyResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Api.V2010.Account.Usage.Record public class DailyResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class CategoryEnum : StringEnum { diff --git a/src/Twilio/Rest/Api/V2010/Account/Usage/Record/LastMonthOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Usage/Record/LastMonthOptions.cs index aec3d0807..938639ce6 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Usage/Record/LastMonthOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Usage/Record/LastMonthOptions.cs @@ -47,7 +47,7 @@ public class ReadLastMonthOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/Usage/Record/LastMonthResource.cs b/src/Twilio/Rest/Api/V2010/Account/Usage/Record/LastMonthResource.cs index e3e7f6ee8..44dcdded3 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Usage/Record/LastMonthResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Usage/Record/LastMonthResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Api.V2010.Account.Usage.Record public class LastMonthResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class CategoryEnum : StringEnum { diff --git a/src/Twilio/Rest/Api/V2010/Account/Usage/Record/MonthlyOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Usage/Record/MonthlyOptions.cs index 43648e04d..922cc97bd 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Usage/Record/MonthlyOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Usage/Record/MonthlyOptions.cs @@ -47,7 +47,7 @@ public class ReadMonthlyOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/Usage/Record/MonthlyResource.cs b/src/Twilio/Rest/Api/V2010/Account/Usage/Record/MonthlyResource.cs index 25aa8e8a2..2e98243f6 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Usage/Record/MonthlyResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Usage/Record/MonthlyResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Api.V2010.Account.Usage.Record public class MonthlyResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class CategoryEnum : StringEnum { diff --git a/src/Twilio/Rest/Api/V2010/Account/Usage/Record/ThisMonthOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Usage/Record/ThisMonthOptions.cs index 473bdf738..ce9dff82a 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Usage/Record/ThisMonthOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Usage/Record/ThisMonthOptions.cs @@ -47,7 +47,7 @@ public class ReadThisMonthOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/Usage/Record/ThisMonthResource.cs b/src/Twilio/Rest/Api/V2010/Account/Usage/Record/ThisMonthResource.cs index b945d7c19..303bbe13c 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Usage/Record/ThisMonthResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Usage/Record/ThisMonthResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Api.V2010.Account.Usage.Record public class ThisMonthResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class CategoryEnum : StringEnum { diff --git a/src/Twilio/Rest/Api/V2010/Account/Usage/Record/TodayOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Usage/Record/TodayOptions.cs index 0c452f485..1af5e0c11 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Usage/Record/TodayOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Usage/Record/TodayOptions.cs @@ -47,7 +47,7 @@ public class ReadTodayOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/Usage/Record/TodayResource.cs b/src/Twilio/Rest/Api/V2010/Account/Usage/Record/TodayResource.cs index 0e5fee861..1485cd191 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Usage/Record/TodayResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Usage/Record/TodayResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Api.V2010.Account.Usage.Record public class TodayResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class CategoryEnum : StringEnum { diff --git a/src/Twilio/Rest/Api/V2010/Account/Usage/Record/YearlyOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Usage/Record/YearlyOptions.cs index 50a7ee694..a60c23e00 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Usage/Record/YearlyOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Usage/Record/YearlyOptions.cs @@ -47,7 +47,7 @@ public class ReadYearlyOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/Usage/Record/YearlyResource.cs b/src/Twilio/Rest/Api/V2010/Account/Usage/Record/YearlyResource.cs index bf7997ffa..30b1eb448 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Usage/Record/YearlyResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Usage/Record/YearlyResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Api.V2010.Account.Usage.Record public class YearlyResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class CategoryEnum : StringEnum { diff --git a/src/Twilio/Rest/Api/V2010/Account/Usage/Record/YesterdayOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Usage/Record/YesterdayOptions.cs index 1bc7d4ffa..be8fc521e 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Usage/Record/YesterdayOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Usage/Record/YesterdayOptions.cs @@ -47,7 +47,7 @@ public class ReadYesterdayOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/Usage/Record/YesterdayResource.cs b/src/Twilio/Rest/Api/V2010/Account/Usage/Record/YesterdayResource.cs index 6bd1a80e0..9688832e7 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Usage/Record/YesterdayResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Usage/Record/YesterdayResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Api.V2010.Account.Usage.Record public class YesterdayResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class CategoryEnum : StringEnum { diff --git a/src/Twilio/Rest/Api/V2010/Account/Usage/RecordOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Usage/RecordOptions.cs index e3bcf652c..7b37ced7d 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Usage/RecordOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Usage/RecordOptions.cs @@ -47,7 +47,7 @@ public class ReadRecordOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/Usage/RecordResource.cs b/src/Twilio/Rest/Api/V2010/Account/Usage/RecordResource.cs index 9c4aa7da4..a3b4d047b 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Usage/RecordResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Usage/RecordResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Api.V2010.Account.Usage public class RecordResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class CategoryEnum : StringEnum { diff --git a/src/Twilio/Rest/Api/V2010/Account/Usage/TriggerOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Usage/TriggerOptions.cs index eb3e90266..d5c7386d6 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Usage/TriggerOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Usage/TriggerOptions.cs @@ -66,7 +66,7 @@ public CreateTriggerOptions(Uri callbackUrl, string triggerValue, TriggerResourc /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -124,7 +124,7 @@ public DeleteTriggerOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -156,7 +156,7 @@ public FetchTriggerOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -188,7 +188,7 @@ public class ReadTriggerOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -244,7 +244,7 @@ public UpdateTriggerOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/Usage/TriggerResource.cs b/src/Twilio/Rest/Api/V2010/Account/Usage/TriggerResource.cs index 6b3ae287f..438fb0fd2 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Usage/TriggerResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Usage/TriggerResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Api.V2010.Account.Usage public class TriggerResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class RecurringEnum : StringEnum { diff --git a/src/Twilio/Rest/Api/V2010/Account/ValidationRequestOptions.cs b/src/Twilio/Rest/Api/V2010/Account/ValidationRequestOptions.cs index 491d02fd2..3f660a922 100644 --- a/src/Twilio/Rest/Api/V2010/Account/ValidationRequestOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/ValidationRequestOptions.cs @@ -59,7 +59,7 @@ public CreateValidationRequestOptions(Types.PhoneNumber phoneNumber) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/Account/ValidationRequestResource.cs b/src/Twilio/Rest/Api/V2010/Account/ValidationRequestResource.cs index 6edbd9db6..6bd6a6f0e 100644 --- a/src/Twilio/Rest/Api/V2010/Account/ValidationRequestResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/ValidationRequestResource.cs @@ -30,6 +30,8 @@ public class ValidationRequestResource : Resource { + + private static Request BuildCreateRequest(CreateValidationRequestOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Api/V2010/AccountOptions.cs b/src/Twilio/Rest/Api/V2010/AccountOptions.cs index e91e94dbc..5f22844a8 100644 --- a/src/Twilio/Rest/Api/V2010/AccountOptions.cs +++ b/src/Twilio/Rest/Api/V2010/AccountOptions.cs @@ -35,7 +35,7 @@ public class CreateAccountOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -60,7 +60,7 @@ public class FetchAccountOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -86,7 +86,7 @@ public class ReadAccountOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -126,7 +126,7 @@ public class UpdateAccountOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Api/V2010/AccountResource.cs b/src/Twilio/Rest/Api/V2010/AccountResource.cs index f48ddecee..aaa3b3c2c 100644 --- a/src/Twilio/Rest/Api/V2010/AccountResource.cs +++ b/src/Twilio/Rest/Api/V2010/AccountResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Api.V2010 public class AccountResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Autopilot/V1/Assistant/DefaultsOptions.cs b/src/Twilio/Rest/Autopilot/V1/Assistant/DefaultsOptions.cs index 77805c04b..ec3b56f5b 100644 --- a/src/Twilio/Rest/Autopilot/V1/Assistant/DefaultsOptions.cs +++ b/src/Twilio/Rest/Autopilot/V1/Assistant/DefaultsOptions.cs @@ -41,7 +41,7 @@ public FetchDefaultsOptions(string pathAssistantSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -73,7 +73,7 @@ public UpdateDefaultsOptions(string pathAssistantSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Autopilot/V1/Assistant/DefaultsResource.cs b/src/Twilio/Rest/Autopilot/V1/Assistant/DefaultsResource.cs index 23de4db9d..d8d845dc5 100644 --- a/src/Twilio/Rest/Autopilot/V1/Assistant/DefaultsResource.cs +++ b/src/Twilio/Rest/Autopilot/V1/Assistant/DefaultsResource.cs @@ -30,6 +30,8 @@ public class DefaultsResource : Resource { + + private static Request BuildFetchRequest(FetchDefaultsOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Autopilot/V1/Assistant/DialogueOptions.cs b/src/Twilio/Rest/Autopilot/V1/Assistant/DialogueOptions.cs index e639c88ac..a37fe202b 100644 --- a/src/Twilio/Rest/Autopilot/V1/Assistant/DialogueOptions.cs +++ b/src/Twilio/Rest/Autopilot/V1/Assistant/DialogueOptions.cs @@ -46,7 +46,7 @@ public FetchDialogueOptions(string pathAssistantSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Autopilot/V1/Assistant/DialogueResource.cs b/src/Twilio/Rest/Autopilot/V1/Assistant/DialogueResource.cs index 9c95e9fcb..997a10e03 100644 --- a/src/Twilio/Rest/Autopilot/V1/Assistant/DialogueResource.cs +++ b/src/Twilio/Rest/Autopilot/V1/Assistant/DialogueResource.cs @@ -30,6 +30,8 @@ public class DialogueResource : Resource { + + private static Request BuildFetchRequest(FetchDialogueOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Autopilot/V1/Assistant/FieldType/FieldValueOptions.cs b/src/Twilio/Rest/Autopilot/V1/Assistant/FieldType/FieldValueOptions.cs index 501040391..b774262cf 100644 --- a/src/Twilio/Rest/Autopilot/V1/Assistant/FieldType/FieldValueOptions.cs +++ b/src/Twilio/Rest/Autopilot/V1/Assistant/FieldType/FieldValueOptions.cs @@ -59,7 +59,7 @@ public CreateFieldValueOptions(string pathAssistantSid, string pathFieldTypeSid, /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -108,7 +108,7 @@ public DeleteFieldValueOptions(string pathAssistantSid, string pathFieldTypeSid, /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -147,7 +147,7 @@ public FetchFieldValueOptions(string pathAssistantSid, string pathFieldTypeSid, /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -184,7 +184,7 @@ public ReadFieldValueOptions(string pathAssistantSid, string pathFieldTypeSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Autopilot/V1/Assistant/FieldType/FieldValueResource.cs b/src/Twilio/Rest/Autopilot/V1/Assistant/FieldType/FieldValueResource.cs index d78b7810d..8b871a95d 100644 --- a/src/Twilio/Rest/Autopilot/V1/Assistant/FieldType/FieldValueResource.cs +++ b/src/Twilio/Rest/Autopilot/V1/Assistant/FieldType/FieldValueResource.cs @@ -30,6 +30,8 @@ public class FieldValueResource : Resource { + + private static Request BuildCreateRequest(CreateFieldValueOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Autopilot/V1/Assistant/FieldTypeOptions.cs b/src/Twilio/Rest/Autopilot/V1/Assistant/FieldTypeOptions.cs index d2efef695..ec1ad3f76 100644 --- a/src/Twilio/Rest/Autopilot/V1/Assistant/FieldTypeOptions.cs +++ b/src/Twilio/Rest/Autopilot/V1/Assistant/FieldTypeOptions.cs @@ -49,7 +49,7 @@ public CreateFieldTypeOptions(string pathAssistantSid, string uniqueName) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -89,7 +89,7 @@ public DeleteFieldTypeOptions(string pathAssistantSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -123,7 +123,7 @@ public FetchFieldTypeOptions(string pathAssistantSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -152,7 +152,7 @@ public ReadFieldTypeOptions(string pathAssistantSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -195,7 +195,7 @@ public UpdateFieldTypeOptions(string pathAssistantSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Autopilot/V1/Assistant/FieldTypeResource.cs b/src/Twilio/Rest/Autopilot/V1/Assistant/FieldTypeResource.cs index 8146bded0..f1f4b3154 100644 --- a/src/Twilio/Rest/Autopilot/V1/Assistant/FieldTypeResource.cs +++ b/src/Twilio/Rest/Autopilot/V1/Assistant/FieldTypeResource.cs @@ -30,6 +30,8 @@ public class FieldTypeResource : Resource { + + private static Request BuildCreateRequest(CreateFieldTypeOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Autopilot/V1/Assistant/ModelBuildOptions.cs b/src/Twilio/Rest/Autopilot/V1/Assistant/ModelBuildOptions.cs index 8aa398e59..e289828ac 100644 --- a/src/Twilio/Rest/Autopilot/V1/Assistant/ModelBuildOptions.cs +++ b/src/Twilio/Rest/Autopilot/V1/Assistant/ModelBuildOptions.cs @@ -47,7 +47,7 @@ public CreateModelBuildOptions(string pathAssistantSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -87,7 +87,7 @@ public DeleteModelBuildOptions(string pathAssistantSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -121,7 +121,7 @@ public FetchModelBuildOptions(string pathAssistantSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -150,7 +150,7 @@ public ReadModelBuildOptions(string pathAssistantSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -190,7 +190,7 @@ public UpdateModelBuildOptions(string pathAssistantSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Autopilot/V1/Assistant/ModelBuildResource.cs b/src/Twilio/Rest/Autopilot/V1/Assistant/ModelBuildResource.cs index 9af666108..fdb6441c6 100644 --- a/src/Twilio/Rest/Autopilot/V1/Assistant/ModelBuildResource.cs +++ b/src/Twilio/Rest/Autopilot/V1/Assistant/ModelBuildResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Autopilot.V1.Assistant public class ModelBuildResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Autopilot/V1/Assistant/QueryOptions.cs b/src/Twilio/Rest/Autopilot/V1/Assistant/QueryOptions.cs index 8b58ce977..202935c7a 100644 --- a/src/Twilio/Rest/Autopilot/V1/Assistant/QueryOptions.cs +++ b/src/Twilio/Rest/Autopilot/V1/Assistant/QueryOptions.cs @@ -57,7 +57,7 @@ public CreateQueryOptions(string pathAssistantSid, string language, string query /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -105,7 +105,7 @@ public DeleteQueryOptions(string pathAssistantSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -139,7 +139,7 @@ public FetchQueryOptions(string pathAssistantSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -180,7 +180,7 @@ public ReadQueryOptions(string pathAssistantSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -239,7 +239,7 @@ public UpdateQueryOptions(string pathAssistantSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Autopilot/V1/Assistant/QueryResource.cs b/src/Twilio/Rest/Autopilot/V1/Assistant/QueryResource.cs index b9aee7e96..e6f46c728 100644 --- a/src/Twilio/Rest/Autopilot/V1/Assistant/QueryResource.cs +++ b/src/Twilio/Rest/Autopilot/V1/Assistant/QueryResource.cs @@ -30,6 +30,8 @@ public class QueryResource : Resource { + + private static Request BuildCreateRequest(CreateQueryOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Autopilot/V1/Assistant/StyleSheetOptions.cs b/src/Twilio/Rest/Autopilot/V1/Assistant/StyleSheetOptions.cs index 404fe3e9d..aac18349d 100644 --- a/src/Twilio/Rest/Autopilot/V1/Assistant/StyleSheetOptions.cs +++ b/src/Twilio/Rest/Autopilot/V1/Assistant/StyleSheetOptions.cs @@ -41,7 +41,7 @@ public FetchStyleSheetOptions(string pathAssistantSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -73,7 +73,7 @@ public UpdateStyleSheetOptions(string pathAssistantSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Autopilot/V1/Assistant/StyleSheetResource.cs b/src/Twilio/Rest/Autopilot/V1/Assistant/StyleSheetResource.cs index ccaf3c784..8c9e8d56b 100644 --- a/src/Twilio/Rest/Autopilot/V1/Assistant/StyleSheetResource.cs +++ b/src/Twilio/Rest/Autopilot/V1/Assistant/StyleSheetResource.cs @@ -30,6 +30,8 @@ public class StyleSheetResource : Resource { + + private static Request BuildFetchRequest(FetchStyleSheetOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Autopilot/V1/Assistant/Task/FieldOptions.cs b/src/Twilio/Rest/Autopilot/V1/Assistant/Task/FieldOptions.cs index a1f27e9a1..7181674d7 100644 --- a/src/Twilio/Rest/Autopilot/V1/Assistant/Task/FieldOptions.cs +++ b/src/Twilio/Rest/Autopilot/V1/Assistant/Task/FieldOptions.cs @@ -56,7 +56,7 @@ public CreateFieldOptions(string pathAssistantSid, string pathTaskSid, string fi /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -101,7 +101,7 @@ public DeleteFieldOptions(string pathAssistantSid, string pathTaskSid, string pa /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -140,7 +140,7 @@ public FetchFieldOptions(string pathAssistantSid, string pathTaskSid, string pat /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -174,7 +174,7 @@ public ReadFieldOptions(string pathAssistantSid, string pathTaskSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Autopilot/V1/Assistant/Task/FieldResource.cs b/src/Twilio/Rest/Autopilot/V1/Assistant/Task/FieldResource.cs index 69511f7e4..3f6e05db9 100644 --- a/src/Twilio/Rest/Autopilot/V1/Assistant/Task/FieldResource.cs +++ b/src/Twilio/Rest/Autopilot/V1/Assistant/Task/FieldResource.cs @@ -30,6 +30,8 @@ public class FieldResource : Resource { + + private static Request BuildCreateRequest(CreateFieldOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Autopilot/V1/Assistant/Task/SampleOptions.cs b/src/Twilio/Rest/Autopilot/V1/Assistant/Task/SampleOptions.cs index c5ca74570..917328e64 100644 --- a/src/Twilio/Rest/Autopilot/V1/Assistant/Task/SampleOptions.cs +++ b/src/Twilio/Rest/Autopilot/V1/Assistant/Task/SampleOptions.cs @@ -59,7 +59,7 @@ public CreateSampleOptions(string pathAssistantSid, string pathTaskSid, string l /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -108,7 +108,7 @@ public DeleteSampleOptions(string pathAssistantSid, string pathTaskSid, string p /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -147,7 +147,7 @@ public FetchSampleOptions(string pathAssistantSid, string pathTaskSid, string pa /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -184,7 +184,7 @@ public ReadSampleOptions(string pathAssistantSid, string pathTaskSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -239,7 +239,7 @@ public UpdateSampleOptions(string pathAssistantSid, string pathTaskSid, string p /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Autopilot/V1/Assistant/Task/SampleResource.cs b/src/Twilio/Rest/Autopilot/V1/Assistant/Task/SampleResource.cs index ff0c5323c..d4704877f 100644 --- a/src/Twilio/Rest/Autopilot/V1/Assistant/Task/SampleResource.cs +++ b/src/Twilio/Rest/Autopilot/V1/Assistant/Task/SampleResource.cs @@ -30,6 +30,8 @@ public class SampleResource : Resource { + + private static Request BuildCreateRequest(CreateSampleOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskActionsOptions.cs b/src/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskActionsOptions.cs index 91c837d5b..20965a779 100644 --- a/src/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskActionsOptions.cs +++ b/src/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskActionsOptions.cs @@ -46,7 +46,7 @@ public FetchTaskActionsOptions(string pathAssistantSid, string pathTaskSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -83,7 +83,7 @@ public UpdateTaskActionsOptions(string pathAssistantSid, string pathTaskSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskActionsResource.cs b/src/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskActionsResource.cs index 8d098d69f..c18763cc8 100644 --- a/src/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskActionsResource.cs +++ b/src/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskActionsResource.cs @@ -30,6 +30,8 @@ public class TaskActionsResource : Resource { + + private static Request BuildFetchRequest(FetchTaskActionsOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskStatisticsOptions.cs b/src/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskStatisticsOptions.cs index 515f102cd..13db969a5 100644 --- a/src/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskStatisticsOptions.cs +++ b/src/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskStatisticsOptions.cs @@ -46,7 +46,7 @@ public FetchTaskStatisticsOptions(string pathAssistantSid, string pathTaskSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskStatisticsResource.cs b/src/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskStatisticsResource.cs index ed1afe292..4b36059a3 100644 --- a/src/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskStatisticsResource.cs +++ b/src/Twilio/Rest/Autopilot/V1/Assistant/Task/TaskStatisticsResource.cs @@ -30,6 +30,8 @@ public class TaskStatisticsResource : Resource { + + private static Request BuildFetchRequest(FetchTaskStatisticsOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Autopilot/V1/Assistant/TaskOptions.cs b/src/Twilio/Rest/Autopilot/V1/Assistant/TaskOptions.cs index 5eb04baa3..f5ea9d6b4 100644 --- a/src/Twilio/Rest/Autopilot/V1/Assistant/TaskOptions.cs +++ b/src/Twilio/Rest/Autopilot/V1/Assistant/TaskOptions.cs @@ -55,7 +55,7 @@ public CreateTaskOptions(string pathAssistantSid, string uniqueName) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -103,7 +103,7 @@ public DeleteTaskOptions(string pathAssistantSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -137,7 +137,7 @@ public FetchTaskOptions(string pathAssistantSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -166,7 +166,7 @@ public ReadTaskOptions(string pathAssistantSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -215,7 +215,7 @@ public UpdateTaskOptions(string pathAssistantSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Autopilot/V1/Assistant/TaskResource.cs b/src/Twilio/Rest/Autopilot/V1/Assistant/TaskResource.cs index f8f755934..0e5ef0bf0 100644 --- a/src/Twilio/Rest/Autopilot/V1/Assistant/TaskResource.cs +++ b/src/Twilio/Rest/Autopilot/V1/Assistant/TaskResource.cs @@ -30,6 +30,8 @@ public class TaskResource : Resource { + + private static Request BuildCreateRequest(CreateTaskOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Autopilot/V1/Assistant/WebhookOptions.cs b/src/Twilio/Rest/Autopilot/V1/Assistant/WebhookOptions.cs index 390e48483..c9a53d0c1 100644 --- a/src/Twilio/Rest/Autopilot/V1/Assistant/WebhookOptions.cs +++ b/src/Twilio/Rest/Autopilot/V1/Assistant/WebhookOptions.cs @@ -59,7 +59,7 @@ public CreateWebhookOptions(string pathAssistantSid, string uniqueName, string e /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -107,7 +107,7 @@ public DeleteWebhookOptions(string pathAssistantSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -141,7 +141,7 @@ public FetchWebhookOptions(string pathAssistantSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -170,7 +170,7 @@ public ReadWebhookOptions(string pathAssistantSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -219,7 +219,7 @@ public UpdateWebhookOptions(string pathAssistantSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Autopilot/V1/Assistant/WebhookResource.cs b/src/Twilio/Rest/Autopilot/V1/Assistant/WebhookResource.cs index b82f9e96e..93c545846 100644 --- a/src/Twilio/Rest/Autopilot/V1/Assistant/WebhookResource.cs +++ b/src/Twilio/Rest/Autopilot/V1/Assistant/WebhookResource.cs @@ -30,6 +30,8 @@ public class WebhookResource : Resource { + + private static Request BuildCreateRequest(CreateWebhookOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Autopilot/V1/AssistantOptions.cs b/src/Twilio/Rest/Autopilot/V1/AssistantOptions.cs index 56a5b4692..0e60982f8 100644 --- a/src/Twilio/Rest/Autopilot/V1/AssistantOptions.cs +++ b/src/Twilio/Rest/Autopilot/V1/AssistantOptions.cs @@ -53,7 +53,7 @@ public class CreateAssistantOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -108,7 +108,7 @@ public DeleteAssistantOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -137,7 +137,7 @@ public FetchAssistantOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -157,7 +157,7 @@ public class ReadAssistantOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -213,7 +213,7 @@ public UpdateAssistantOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Autopilot/V1/AssistantResource.cs b/src/Twilio/Rest/Autopilot/V1/AssistantResource.cs index 97b2f1285..ff9ae5a0e 100644 --- a/src/Twilio/Rest/Autopilot/V1/AssistantResource.cs +++ b/src/Twilio/Rest/Autopilot/V1/AssistantResource.cs @@ -30,6 +30,8 @@ public class AssistantResource : Resource { + + private static Request BuildCreateRequest(CreateAssistantOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Autopilot/V1/RestoreAssistantOptions.cs b/src/Twilio/Rest/Autopilot/V1/RestoreAssistantOptions.cs index 70a873dbb..58240c716 100644 --- a/src/Twilio/Rest/Autopilot/V1/RestoreAssistantOptions.cs +++ b/src/Twilio/Rest/Autopilot/V1/RestoreAssistantOptions.cs @@ -41,7 +41,7 @@ public UpdateRestoreAssistantOptions(string assistant) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Autopilot/V1/RestoreAssistantResource.cs b/src/Twilio/Rest/Autopilot/V1/RestoreAssistantResource.cs index 12655eb30..ded14a59c 100644 --- a/src/Twilio/Rest/Autopilot/V1/RestoreAssistantResource.cs +++ b/src/Twilio/Rest/Autopilot/V1/RestoreAssistantResource.cs @@ -30,6 +30,8 @@ public class RestoreAssistantResource : Resource { + + private static Request BuildUpdateRequest(UpdateRestoreAssistantOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Bulkexports/V1/Export/DayOptions.cs b/src/Twilio/Rest/Bulkexports/V1/Export/DayOptions.cs index 055d462e0..e0eb1420f 100644 --- a/src/Twilio/Rest/Bulkexports/V1/Export/DayOptions.cs +++ b/src/Twilio/Rest/Bulkexports/V1/Export/DayOptions.cs @@ -46,7 +46,7 @@ public FetchDayOptions(string pathResourceType, string pathDay) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -75,7 +75,7 @@ public ReadDayOptions(string pathResourceType) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Bulkexports/V1/Export/DayResource.cs b/src/Twilio/Rest/Bulkexports/V1/Export/DayResource.cs index c4c5d88a4..a8da5b3d8 100644 --- a/src/Twilio/Rest/Bulkexports/V1/Export/DayResource.cs +++ b/src/Twilio/Rest/Bulkexports/V1/Export/DayResource.cs @@ -30,6 +30,8 @@ public class DayResource : Resource { + + private static Request BuildFetchRequest(FetchDayOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Bulkexports/V1/Export/ExportCustomJobOptions.cs b/src/Twilio/Rest/Bulkexports/V1/Export/ExportCustomJobOptions.cs index d1c705e22..33fa8e4be 100644 --- a/src/Twilio/Rest/Bulkexports/V1/Export/ExportCustomJobOptions.cs +++ b/src/Twilio/Rest/Bulkexports/V1/Export/ExportCustomJobOptions.cs @@ -65,7 +65,7 @@ public CreateExportCustomJobOptions(string pathResourceType, string startDay, st /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -116,7 +116,7 @@ public ReadExportCustomJobOptions(string pathResourceType) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Bulkexports/V1/Export/ExportCustomJobResource.cs b/src/Twilio/Rest/Bulkexports/V1/Export/ExportCustomJobResource.cs index 03f2f203a..d26839cdf 100644 --- a/src/Twilio/Rest/Bulkexports/V1/Export/ExportCustomJobResource.cs +++ b/src/Twilio/Rest/Bulkexports/V1/Export/ExportCustomJobResource.cs @@ -30,6 +30,8 @@ public class ExportCustomJobResource : Resource { + + private static Request BuildCreateRequest(CreateExportCustomJobOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Bulkexports/V1/Export/JobOptions.cs b/src/Twilio/Rest/Bulkexports/V1/Export/JobOptions.cs index 6fe43c267..8eeaa575f 100644 --- a/src/Twilio/Rest/Bulkexports/V1/Export/JobOptions.cs +++ b/src/Twilio/Rest/Bulkexports/V1/Export/JobOptions.cs @@ -41,7 +41,7 @@ public DeleteJobOptions(string pathJobSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -70,7 +70,7 @@ public FetchJobOptions(string pathJobSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Bulkexports/V1/Export/JobResource.cs b/src/Twilio/Rest/Bulkexports/V1/Export/JobResource.cs index cce4955aa..a0df3dc0f 100644 --- a/src/Twilio/Rest/Bulkexports/V1/Export/JobResource.cs +++ b/src/Twilio/Rest/Bulkexports/V1/Export/JobResource.cs @@ -30,6 +30,8 @@ public class JobResource : Resource { + + /// delete /// Delete Job parameters diff --git a/src/Twilio/Rest/Bulkexports/V1/ExportConfigurationOptions.cs b/src/Twilio/Rest/Bulkexports/V1/ExportConfigurationOptions.cs index f8437927f..ef61a8f9c 100644 --- a/src/Twilio/Rest/Bulkexports/V1/ExportConfigurationOptions.cs +++ b/src/Twilio/Rest/Bulkexports/V1/ExportConfigurationOptions.cs @@ -41,7 +41,7 @@ public FetchExportConfigurationOptions(string pathResourceType) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -79,7 +79,7 @@ public UpdateExportConfigurationOptions(string pathResourceType) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Bulkexports/V1/ExportConfigurationResource.cs b/src/Twilio/Rest/Bulkexports/V1/ExportConfigurationResource.cs index 736577897..ad69978ec 100644 --- a/src/Twilio/Rest/Bulkexports/V1/ExportConfigurationResource.cs +++ b/src/Twilio/Rest/Bulkexports/V1/ExportConfigurationResource.cs @@ -30,6 +30,8 @@ public class ExportConfigurationResource : Resource { + + private static Request BuildFetchRequest(FetchExportConfigurationOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Bulkexports/V1/ExportOptions.cs b/src/Twilio/Rest/Bulkexports/V1/ExportOptions.cs index 9b7387945..0783d6974 100644 --- a/src/Twilio/Rest/Bulkexports/V1/ExportOptions.cs +++ b/src/Twilio/Rest/Bulkexports/V1/ExportOptions.cs @@ -41,7 +41,7 @@ public FetchExportOptions(string pathResourceType) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Bulkexports/V1/ExportResource.cs b/src/Twilio/Rest/Bulkexports/V1/ExportResource.cs index 30d2cbd98..a7537854f 100644 --- a/src/Twilio/Rest/Bulkexports/V1/ExportResource.cs +++ b/src/Twilio/Rest/Bulkexports/V1/ExportResource.cs @@ -30,6 +30,8 @@ public class ExportResource : Resource { + + private static Request BuildFetchRequest(FetchExportOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Chat/V1/CredentialOptions.cs b/src/Twilio/Rest/Chat/V1/CredentialOptions.cs index c288744c7..e6ca1563b 100644 --- a/src/Twilio/Rest/Chat/V1/CredentialOptions.cs +++ b/src/Twilio/Rest/Chat/V1/CredentialOptions.cs @@ -59,7 +59,7 @@ public CreateCredentialOptions(CredentialResource.PushServiceEnum type) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -114,7 +114,7 @@ public DeleteCredentialOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -143,7 +143,7 @@ public FetchCredentialOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -163,7 +163,7 @@ public class ReadCredentialOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -213,7 +213,7 @@ public UpdateCredentialOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Chat/V1/CredentialResource.cs b/src/Twilio/Rest/Chat/V1/CredentialResource.cs index 6f3a1820a..8e7fd9167 100644 --- a/src/Twilio/Rest/Chat/V1/CredentialResource.cs +++ b/src/Twilio/Rest/Chat/V1/CredentialResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Chat.V1 public class CredentialResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class PushServiceEnum : StringEnum { diff --git a/src/Twilio/Rest/Chat/V1/Service/Channel/InviteOptions.cs b/src/Twilio/Rest/Chat/V1/Service/Channel/InviteOptions.cs index fa4f305c3..0a6fa4436 100644 --- a/src/Twilio/Rest/Chat/V1/Service/Channel/InviteOptions.cs +++ b/src/Twilio/Rest/Chat/V1/Service/Channel/InviteOptions.cs @@ -54,7 +54,7 @@ public CreateInviteOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -99,7 +99,7 @@ public DeleteInviteOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -138,7 +138,7 @@ public FetchInviteOptions(string pathServiceSid, string pathChannelSid, string p /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -176,7 +176,7 @@ public ReadInviteOptions(string pathServiceSid, string pathChannelSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Chat/V1/Service/Channel/InviteResource.cs b/src/Twilio/Rest/Chat/V1/Service/Channel/InviteResource.cs index bf0445fc4..2d012341e 100644 --- a/src/Twilio/Rest/Chat/V1/Service/Channel/InviteResource.cs +++ b/src/Twilio/Rest/Chat/V1/Service/Channel/InviteResource.cs @@ -30,6 +30,8 @@ public class InviteResource : Resource { + + private static Request BuildCreateRequest(CreateInviteOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Chat/V1/Service/Channel/MemberOptions.cs b/src/Twilio/Rest/Chat/V1/Service/Channel/MemberOptions.cs index 14219ca20..01142ed2a 100644 --- a/src/Twilio/Rest/Chat/V1/Service/Channel/MemberOptions.cs +++ b/src/Twilio/Rest/Chat/V1/Service/Channel/MemberOptions.cs @@ -54,7 +54,7 @@ public CreateMemberOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -99,7 +99,7 @@ public DeleteMemberOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -138,7 +138,7 @@ public FetchMemberOptions(string pathServiceSid, string pathChannelSid, string p /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -176,7 +176,7 @@ public ReadMemberOptions(string pathServiceSid, string pathChannelSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -228,7 +228,7 @@ public UpdateMemberOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Chat/V1/Service/Channel/MemberResource.cs b/src/Twilio/Rest/Chat/V1/Service/Channel/MemberResource.cs index e77309d4a..4282d1e88 100644 --- a/src/Twilio/Rest/Chat/V1/Service/Channel/MemberResource.cs +++ b/src/Twilio/Rest/Chat/V1/Service/Channel/MemberResource.cs @@ -30,6 +30,8 @@ public class MemberResource : Resource { + + private static Request BuildCreateRequest(CreateMemberOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Chat/V1/Service/Channel/MessageOptions.cs b/src/Twilio/Rest/Chat/V1/Service/Channel/MessageOptions.cs index c3f1810bc..3d4fc3193 100644 --- a/src/Twilio/Rest/Chat/V1/Service/Channel/MessageOptions.cs +++ b/src/Twilio/Rest/Chat/V1/Service/Channel/MessageOptions.cs @@ -57,7 +57,7 @@ public CreateMessageOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -106,7 +106,7 @@ public DeleteMessageOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -145,7 +145,7 @@ public FetchMessageOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -182,7 +182,7 @@ public ReadMessageOptions(string pathServiceSid, string pathChannelSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -234,7 +234,7 @@ public UpdateMessageOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Chat/V1/Service/Channel/MessageResource.cs b/src/Twilio/Rest/Chat/V1/Service/Channel/MessageResource.cs index 916681b53..f8e95ce20 100644 --- a/src/Twilio/Rest/Chat/V1/Service/Channel/MessageResource.cs +++ b/src/Twilio/Rest/Chat/V1/Service/Channel/MessageResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Chat.V1.Service.Channel public class MessageResource : Resource { + + public sealed class OrderTypeEnum : StringEnum { private OrderTypeEnum(string value) : base(value) {} diff --git a/src/Twilio/Rest/Chat/V1/Service/ChannelOptions.cs b/src/Twilio/Rest/Chat/V1/Service/ChannelOptions.cs index bc6e7d9e3..6aa777c79 100644 --- a/src/Twilio/Rest/Chat/V1/Service/ChannelOptions.cs +++ b/src/Twilio/Rest/Chat/V1/Service/ChannelOptions.cs @@ -53,7 +53,7 @@ public CreateChannelOptions(string pathServiceSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -101,7 +101,7 @@ public DeleteChannelOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -135,7 +135,7 @@ public FetchChannelOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -168,7 +168,7 @@ public ReadChannelOptions(string pathServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -218,7 +218,7 @@ public UpdateChannelOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Chat/V1/Service/ChannelResource.cs b/src/Twilio/Rest/Chat/V1/Service/ChannelResource.cs index b8e4d7fdd..cda23a744 100644 --- a/src/Twilio/Rest/Chat/V1/Service/ChannelResource.cs +++ b/src/Twilio/Rest/Chat/V1/Service/ChannelResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Chat.V1.Service public class ChannelResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class ChannelTypeEnum : StringEnum { diff --git a/src/Twilio/Rest/Chat/V1/Service/RoleOptions.cs b/src/Twilio/Rest/Chat/V1/Service/RoleOptions.cs index 37b98a5d2..6686851d9 100644 --- a/src/Twilio/Rest/Chat/V1/Service/RoleOptions.cs +++ b/src/Twilio/Rest/Chat/V1/Service/RoleOptions.cs @@ -56,7 +56,7 @@ public CreateRoleOptions(string pathServiceSid, string friendlyName, RoleResourc /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -100,7 +100,7 @@ public DeleteRoleOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -134,7 +134,7 @@ public FetchRoleOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -163,7 +163,7 @@ public ReadRoleOptions(string pathServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -205,7 +205,7 @@ public UpdateRoleOptions(string pathServiceSid, string pathSid, List per /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Chat/V1/Service/RoleResource.cs b/src/Twilio/Rest/Chat/V1/Service/RoleResource.cs index f213853bf..61d2402cd 100644 --- a/src/Twilio/Rest/Chat/V1/Service/RoleResource.cs +++ b/src/Twilio/Rest/Chat/V1/Service/RoleResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Chat.V1.Service public class RoleResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class RoleTypeEnum : StringEnum { diff --git a/src/Twilio/Rest/Chat/V1/Service/User/UserChannelOptions.cs b/src/Twilio/Rest/Chat/V1/Service/User/UserChannelOptions.cs index 247fd9451..a591db257 100644 --- a/src/Twilio/Rest/Chat/V1/Service/User/UserChannelOptions.cs +++ b/src/Twilio/Rest/Chat/V1/Service/User/UserChannelOptions.cs @@ -46,7 +46,7 @@ public ReadUserChannelOptions(string pathServiceSid, string pathUserSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Chat/V1/Service/User/UserChannelResource.cs b/src/Twilio/Rest/Chat/V1/Service/User/UserChannelResource.cs index 270652246..acdb06de7 100644 --- a/src/Twilio/Rest/Chat/V1/Service/User/UserChannelResource.cs +++ b/src/Twilio/Rest/Chat/V1/Service/User/UserChannelResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Chat.V1.Service.User public class UserChannelResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class ChannelStatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Chat/V1/Service/UserOptions.cs b/src/Twilio/Rest/Chat/V1/Service/UserOptions.cs index 9f4b52ea5..f6ae4a8e5 100644 --- a/src/Twilio/Rest/Chat/V1/Service/UserOptions.cs +++ b/src/Twilio/Rest/Chat/V1/Service/UserOptions.cs @@ -55,7 +55,7 @@ public CreateUserOptions(string pathServiceSid, string identity) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -103,7 +103,7 @@ public DeleteUserOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -137,7 +137,7 @@ public FetchUserOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -166,7 +166,7 @@ public ReadUserOptions(string pathServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -212,7 +212,7 @@ public UpdateUserOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Chat/V1/Service/UserResource.cs b/src/Twilio/Rest/Chat/V1/Service/UserResource.cs index 91f5c17a2..1542360ce 100644 --- a/src/Twilio/Rest/Chat/V1/Service/UserResource.cs +++ b/src/Twilio/Rest/Chat/V1/Service/UserResource.cs @@ -30,6 +30,8 @@ public class UserResource : Resource { + + private static Request BuildCreateRequest(CreateUserOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Chat/V1/ServiceOptions.cs b/src/Twilio/Rest/Chat/V1/ServiceOptions.cs index 24d272d4d..c0df9d989 100644 --- a/src/Twilio/Rest/Chat/V1/ServiceOptions.cs +++ b/src/Twilio/Rest/Chat/V1/ServiceOptions.cs @@ -41,7 +41,7 @@ public CreateServiceOptions(string friendlyName) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -72,7 +72,7 @@ public DeleteServiceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -101,7 +101,7 @@ public FetchServiceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -121,7 +121,7 @@ public class ReadServiceOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -316,7 +316,7 @@ public UpdateServiceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Chat/V1/ServiceResource.cs b/src/Twilio/Rest/Chat/V1/ServiceResource.cs index 5f2daa4e2..0b547fa9b 100644 --- a/src/Twilio/Rest/Chat/V1/ServiceResource.cs +++ b/src/Twilio/Rest/Chat/V1/ServiceResource.cs @@ -30,6 +30,8 @@ public class ServiceResource : Resource { + + private static Request BuildCreateRequest(CreateServiceOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Chat/V2/CredentialOptions.cs b/src/Twilio/Rest/Chat/V2/CredentialOptions.cs index 673288de4..fae2af98b 100644 --- a/src/Twilio/Rest/Chat/V2/CredentialOptions.cs +++ b/src/Twilio/Rest/Chat/V2/CredentialOptions.cs @@ -59,7 +59,7 @@ public CreateCredentialOptions(CredentialResource.PushServiceEnum type) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -114,7 +114,7 @@ public DeleteCredentialOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -143,7 +143,7 @@ public FetchCredentialOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -163,7 +163,7 @@ public class ReadCredentialOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -213,7 +213,7 @@ public UpdateCredentialOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Chat/V2/CredentialResource.cs b/src/Twilio/Rest/Chat/V2/CredentialResource.cs index d9e43ff6b..af186316c 100644 --- a/src/Twilio/Rest/Chat/V2/CredentialResource.cs +++ b/src/Twilio/Rest/Chat/V2/CredentialResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Chat.V2 public class CredentialResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class PushServiceEnum : StringEnum { diff --git a/src/Twilio/Rest/Chat/V2/Service/BindingOptions.cs b/src/Twilio/Rest/Chat/V2/Service/BindingOptions.cs index c603c5749..476b18244 100644 --- a/src/Twilio/Rest/Chat/V2/Service/BindingOptions.cs +++ b/src/Twilio/Rest/Chat/V2/Service/BindingOptions.cs @@ -46,7 +46,7 @@ public DeleteBindingOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -80,7 +80,7 @@ public FetchBindingOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -117,7 +117,7 @@ public ReadBindingOptions(string pathServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Chat/V2/Service/BindingResource.cs b/src/Twilio/Rest/Chat/V2/Service/BindingResource.cs index 31db22b5f..7c49e9c73 100644 --- a/src/Twilio/Rest/Chat/V2/Service/BindingResource.cs +++ b/src/Twilio/Rest/Chat/V2/Service/BindingResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Chat.V2.Service public class BindingResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class BindingTypeEnum : StringEnum { diff --git a/src/Twilio/Rest/Chat/V2/Service/Channel/InviteOptions.cs b/src/Twilio/Rest/Chat/V2/Service/Channel/InviteOptions.cs index 79348e0bd..f78f36627 100644 --- a/src/Twilio/Rest/Chat/V2/Service/Channel/InviteOptions.cs +++ b/src/Twilio/Rest/Chat/V2/Service/Channel/InviteOptions.cs @@ -54,7 +54,7 @@ public CreateInviteOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -99,7 +99,7 @@ public DeleteInviteOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -138,7 +138,7 @@ public FetchInviteOptions(string pathServiceSid, string pathChannelSid, string p /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -176,7 +176,7 @@ public ReadInviteOptions(string pathServiceSid, string pathChannelSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Chat/V2/Service/Channel/InviteResource.cs b/src/Twilio/Rest/Chat/V2/Service/Channel/InviteResource.cs index a0415a2db..ba12e1d79 100644 --- a/src/Twilio/Rest/Chat/V2/Service/Channel/InviteResource.cs +++ b/src/Twilio/Rest/Chat/V2/Service/Channel/InviteResource.cs @@ -30,6 +30,8 @@ public class InviteResource : Resource { + + private static Request BuildCreateRequest(CreateInviteOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Chat/V2/Service/Channel/MemberOptions.cs b/src/Twilio/Rest/Chat/V2/Service/Channel/MemberOptions.cs index 2e8ab84f3..06a79ecca 100644 --- a/src/Twilio/Rest/Chat/V2/Service/Channel/MemberOptions.cs +++ b/src/Twilio/Rest/Chat/V2/Service/Channel/MemberOptions.cs @@ -72,7 +72,7 @@ public CreateMemberOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -150,7 +150,7 @@ public DeleteMemberOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -199,7 +199,7 @@ public FetchMemberOptions(string pathServiceSid, string pathChannelSid, string p /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -237,7 +237,7 @@ public ReadMemberOptions(string pathServiceSid, string pathChannelSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -304,7 +304,7 @@ public UpdateMemberOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Chat/V2/Service/Channel/MemberResource.cs b/src/Twilio/Rest/Chat/V2/Service/Channel/MemberResource.cs index f5813d7b1..6c5f0a38c 100644 --- a/src/Twilio/Rest/Chat/V2/Service/Channel/MemberResource.cs +++ b/src/Twilio/Rest/Chat/V2/Service/Channel/MemberResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Chat.V2.Service.Channel public class MemberResource : Resource { + + public sealed class WebhookEnabledTypeEnum : StringEnum { private WebhookEnabledTypeEnum(string value) : base(value) {} diff --git a/src/Twilio/Rest/Chat/V2/Service/Channel/MessageOptions.cs b/src/Twilio/Rest/Chat/V2/Service/Channel/MessageOptions.cs index c954a2dc9..90a59cfb3 100644 --- a/src/Twilio/Rest/Chat/V2/Service/Channel/MessageOptions.cs +++ b/src/Twilio/Rest/Chat/V2/Service/Channel/MessageOptions.cs @@ -70,7 +70,7 @@ public CreateMessageOptions(string pathServiceSid, string pathChannelSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -148,7 +148,7 @@ public DeleteMessageOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -197,7 +197,7 @@ public FetchMessageOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -234,7 +234,7 @@ public ReadMessageOptions(string pathServiceSid, string pathChannelSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -301,7 +301,7 @@ public UpdateMessageOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Chat/V2/Service/Channel/MessageResource.cs b/src/Twilio/Rest/Chat/V2/Service/Channel/MessageResource.cs index ce0dc4b60..2a44e7c64 100644 --- a/src/Twilio/Rest/Chat/V2/Service/Channel/MessageResource.cs +++ b/src/Twilio/Rest/Chat/V2/Service/Channel/MessageResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Chat.V2.Service.Channel public class MessageResource : Resource { + + public sealed class WebhookEnabledTypeEnum : StringEnum { private WebhookEnabledTypeEnum(string value) : base(value) {} diff --git a/src/Twilio/Rest/Chat/V2/Service/Channel/WebhookOptions.cs b/src/Twilio/Rest/Chat/V2/Service/Channel/WebhookOptions.cs index 557fbfbc7..449c07c64 100644 --- a/src/Twilio/Rest/Chat/V2/Service/Channel/WebhookOptions.cs +++ b/src/Twilio/Rest/Chat/V2/Service/Channel/WebhookOptions.cs @@ -71,7 +71,7 @@ public CreateWebhookOptions(string pathServiceSid, string pathChannelSid, Webhoo /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -136,7 +136,7 @@ public DeleteWebhookOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -175,7 +175,7 @@ public FetchWebhookOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -209,7 +209,7 @@ public ReadWebhookOptions(string pathServiceSid, string pathChannelSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -271,7 +271,7 @@ public UpdateWebhookOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Chat/V2/Service/Channel/WebhookResource.cs b/src/Twilio/Rest/Chat/V2/Service/Channel/WebhookResource.cs index aec5f97b1..7abc75de3 100644 --- a/src/Twilio/Rest/Chat/V2/Service/Channel/WebhookResource.cs +++ b/src/Twilio/Rest/Chat/V2/Service/Channel/WebhookResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Chat.V2.Service.Channel public class WebhookResource : Resource { + + public sealed class MethodEnum : StringEnum { private MethodEnum(string value) : base(value) {} diff --git a/src/Twilio/Rest/Chat/V2/Service/ChannelOptions.cs b/src/Twilio/Rest/Chat/V2/Service/ChannelOptions.cs index 1bee47b87..85b3f61fa 100644 --- a/src/Twilio/Rest/Chat/V2/Service/ChannelOptions.cs +++ b/src/Twilio/Rest/Chat/V2/Service/ChannelOptions.cs @@ -65,7 +65,7 @@ public CreateChannelOptions(string pathServiceSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -138,7 +138,7 @@ public DeleteChannelOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -182,7 +182,7 @@ public FetchChannelOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -215,7 +215,7 @@ public ReadChannelOptions(string pathServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -277,7 +277,7 @@ public UpdateChannelOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Chat/V2/Service/ChannelResource.cs b/src/Twilio/Rest/Chat/V2/Service/ChannelResource.cs index 12e52982f..b03fdc5bd 100644 --- a/src/Twilio/Rest/Chat/V2/Service/ChannelResource.cs +++ b/src/Twilio/Rest/Chat/V2/Service/ChannelResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Chat.V2.Service public class ChannelResource : Resource { + + public sealed class WebhookEnabledTypeEnum : StringEnum { private WebhookEnabledTypeEnum(string value) : base(value) {} diff --git a/src/Twilio/Rest/Chat/V2/Service/RoleOptions.cs b/src/Twilio/Rest/Chat/V2/Service/RoleOptions.cs index b01e9ea2b..9e8fadef2 100644 --- a/src/Twilio/Rest/Chat/V2/Service/RoleOptions.cs +++ b/src/Twilio/Rest/Chat/V2/Service/RoleOptions.cs @@ -56,7 +56,7 @@ public CreateRoleOptions(string pathServiceSid, string friendlyName, RoleResourc /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -100,7 +100,7 @@ public DeleteRoleOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -134,7 +134,7 @@ public FetchRoleOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -163,7 +163,7 @@ public ReadRoleOptions(string pathServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -205,7 +205,7 @@ public UpdateRoleOptions(string pathServiceSid, string pathSid, List per /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Chat/V2/Service/RoleResource.cs b/src/Twilio/Rest/Chat/V2/Service/RoleResource.cs index c26190d7e..d243a07e3 100644 --- a/src/Twilio/Rest/Chat/V2/Service/RoleResource.cs +++ b/src/Twilio/Rest/Chat/V2/Service/RoleResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Chat.V2.Service public class RoleResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class RoleTypeEnum : StringEnum { diff --git a/src/Twilio/Rest/Chat/V2/Service/User/UserBindingOptions.cs b/src/Twilio/Rest/Chat/V2/Service/User/UserBindingOptions.cs index 4f5a2a0b9..3238b69a8 100644 --- a/src/Twilio/Rest/Chat/V2/Service/User/UserBindingOptions.cs +++ b/src/Twilio/Rest/Chat/V2/Service/User/UserBindingOptions.cs @@ -51,7 +51,7 @@ public DeleteUserBindingOptions(string pathServiceSid, string pathUserSid, strin /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -90,7 +90,7 @@ public FetchUserBindingOptions(string pathServiceSid, string pathUserSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -128,7 +128,7 @@ public ReadUserBindingOptions(string pathServiceSid, string pathUserSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Chat/V2/Service/User/UserBindingResource.cs b/src/Twilio/Rest/Chat/V2/Service/User/UserBindingResource.cs index 26cb04e2f..6b53cbcbc 100644 --- a/src/Twilio/Rest/Chat/V2/Service/User/UserBindingResource.cs +++ b/src/Twilio/Rest/Chat/V2/Service/User/UserBindingResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Chat.V2.Service.User public class UserBindingResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class BindingTypeEnum : StringEnum { diff --git a/src/Twilio/Rest/Chat/V2/Service/User/UserChannelOptions.cs b/src/Twilio/Rest/Chat/V2/Service/User/UserChannelOptions.cs index de1bffa6e..c7c459850 100644 --- a/src/Twilio/Rest/Chat/V2/Service/User/UserChannelOptions.cs +++ b/src/Twilio/Rest/Chat/V2/Service/User/UserChannelOptions.cs @@ -54,7 +54,7 @@ public DeleteUserChannelOptions(string pathServiceSid, string pathUserSid, strin /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -103,7 +103,7 @@ public FetchUserChannelOptions(string pathServiceSid, string pathUserSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -137,7 +137,7 @@ public ReadUserChannelOptions(string pathServiceSid, string pathUserSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -188,7 +188,7 @@ public UpdateUserChannelOptions(string pathServiceSid, string pathUserSid, strin /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Chat/V2/Service/User/UserChannelResource.cs b/src/Twilio/Rest/Chat/V2/Service/User/UserChannelResource.cs index 067c9e1ac..39026a823 100644 --- a/src/Twilio/Rest/Chat/V2/Service/User/UserChannelResource.cs +++ b/src/Twilio/Rest/Chat/V2/Service/User/UserChannelResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Chat.V2.Service.User public class UserChannelResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class NotificationLevelEnum : StringEnum { diff --git a/src/Twilio/Rest/Chat/V2/Service/UserOptions.cs b/src/Twilio/Rest/Chat/V2/Service/UserOptions.cs index 8455a7b4d..16227563d 100644 --- a/src/Twilio/Rest/Chat/V2/Service/UserOptions.cs +++ b/src/Twilio/Rest/Chat/V2/Service/UserOptions.cs @@ -58,7 +58,7 @@ public CreateUserOptions(string pathServiceSid, string identity) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -116,7 +116,7 @@ public DeleteUserOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -150,7 +150,7 @@ public FetchUserOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -179,7 +179,7 @@ public ReadUserOptions(string pathServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -228,7 +228,7 @@ public UpdateUserOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Chat/V2/Service/UserResource.cs b/src/Twilio/Rest/Chat/V2/Service/UserResource.cs index 568d92458..857765400 100644 --- a/src/Twilio/Rest/Chat/V2/Service/UserResource.cs +++ b/src/Twilio/Rest/Chat/V2/Service/UserResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Chat.V2.Service public class UserResource : Resource { + + public sealed class WebhookEnabledTypeEnum : StringEnum { private WebhookEnabledTypeEnum(string value) : base(value) {} diff --git a/src/Twilio/Rest/Chat/V2/ServiceOptions.cs b/src/Twilio/Rest/Chat/V2/ServiceOptions.cs index 64838ebb1..6a1e07058 100644 --- a/src/Twilio/Rest/Chat/V2/ServiceOptions.cs +++ b/src/Twilio/Rest/Chat/V2/ServiceOptions.cs @@ -41,7 +41,7 @@ public CreateServiceOptions(string friendlyName) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -72,7 +72,7 @@ public DeleteServiceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -101,7 +101,7 @@ public FetchServiceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -121,7 +121,7 @@ public class ReadServiceOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -247,7 +247,7 @@ public UpdateServiceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Chat/V2/ServiceResource.cs b/src/Twilio/Rest/Chat/V2/ServiceResource.cs index 9beff2c7d..23c3235a0 100644 --- a/src/Twilio/Rest/Chat/V2/ServiceResource.cs +++ b/src/Twilio/Rest/Chat/V2/ServiceResource.cs @@ -30,6 +30,8 @@ public class ServiceResource : Resource { + + private static Request BuildCreateRequest(CreateServiceOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Chat/V3/ChannelOptions.cs b/src/Twilio/Rest/Chat/V3/ChannelOptions.cs index a28e9ff39..a4f7f039e 100644 --- a/src/Twilio/Rest/Chat/V3/ChannelOptions.cs +++ b/src/Twilio/Rest/Chat/V3/ChannelOptions.cs @@ -55,7 +55,7 @@ public UpdateChannelOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Chat/V3/ChannelResource.cs b/src/Twilio/Rest/Chat/V3/ChannelResource.cs index b852f1587..b5de15a1f 100644 --- a/src/Twilio/Rest/Chat/V3/ChannelResource.cs +++ b/src/Twilio/Rest/Chat/V3/ChannelResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Chat.V3 public class ChannelResource : Resource { + + public sealed class WebhookEnabledTypeEnum : StringEnum { private WebhookEnabledTypeEnum(string value) : base(value) {} diff --git a/src/Twilio/Rest/Content/V1/Content/ApprovalFetchOptions.cs b/src/Twilio/Rest/Content/V1/Content/ApprovalFetchOptions.cs index 919e7f18a..773c7c804 100644 --- a/src/Twilio/Rest/Content/V1/Content/ApprovalFetchOptions.cs +++ b/src/Twilio/Rest/Content/V1/Content/ApprovalFetchOptions.cs @@ -41,7 +41,7 @@ public FetchApprovalFetchOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Content/V1/Content/ApprovalFetchResource.cs b/src/Twilio/Rest/Content/V1/Content/ApprovalFetchResource.cs index 0cb20b379..b7145b25f 100644 --- a/src/Twilio/Rest/Content/V1/Content/ApprovalFetchResource.cs +++ b/src/Twilio/Rest/Content/V1/Content/ApprovalFetchResource.cs @@ -30,6 +30,8 @@ public class ApprovalFetchResource : Resource { + + private static Request BuildFetchRequest(FetchApprovalFetchOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Content/V1/ContentAndApprovalsOptions.cs b/src/Twilio/Rest/Content/V1/ContentAndApprovalsOptions.cs index 85afe24da..27bc7c789 100644 --- a/src/Twilio/Rest/Content/V1/ContentAndApprovalsOptions.cs +++ b/src/Twilio/Rest/Content/V1/ContentAndApprovalsOptions.cs @@ -32,7 +32,7 @@ public class ReadContentAndApprovalsOptions : ReadOptions Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Content/V1/ContentAndApprovalsResource.cs b/src/Twilio/Rest/Content/V1/ContentAndApprovalsResource.cs index 9e8df9429..dc9fd843c 100644 --- a/src/Twilio/Rest/Content/V1/ContentAndApprovalsResource.cs +++ b/src/Twilio/Rest/Content/V1/ContentAndApprovalsResource.cs @@ -30,6 +30,8 @@ public class ContentAndApprovalsResource : Resource { + + private static Request BuildReadRequest(ReadContentAndApprovalsOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Content/V1/ContentOptions.cs b/src/Twilio/Rest/Content/V1/ContentOptions.cs index 1f819ba27..b1993f871 100644 --- a/src/Twilio/Rest/Content/V1/ContentOptions.cs +++ b/src/Twilio/Rest/Content/V1/ContentOptions.cs @@ -41,7 +41,7 @@ public DeleteContentOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -70,7 +70,7 @@ public FetchContentOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -90,7 +90,7 @@ public class ReadContentOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Content/V1/ContentResource.cs b/src/Twilio/Rest/Content/V1/ContentResource.cs index a06168942..06b1922e7 100644 --- a/src/Twilio/Rest/Content/V1/ContentResource.cs +++ b/src/Twilio/Rest/Content/V1/ContentResource.cs @@ -30,6 +30,8 @@ public class ContentResource : Resource { + + /// Deletes a Content resource /// Delete Content parameters diff --git a/src/Twilio/Rest/Content/V1/LegacyContentOptions.cs b/src/Twilio/Rest/Content/V1/LegacyContentOptions.cs index 78607e9e3..f97752294 100644 --- a/src/Twilio/Rest/Content/V1/LegacyContentOptions.cs +++ b/src/Twilio/Rest/Content/V1/LegacyContentOptions.cs @@ -32,7 +32,7 @@ public class ReadLegacyContentOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Content/V1/LegacyContentResource.cs b/src/Twilio/Rest/Content/V1/LegacyContentResource.cs index 0a5baec19..7ce732109 100644 --- a/src/Twilio/Rest/Content/V1/LegacyContentResource.cs +++ b/src/Twilio/Rest/Content/V1/LegacyContentResource.cs @@ -30,6 +30,8 @@ public class LegacyContentResource : Resource { + + private static Request BuildReadRequest(ReadLegacyContentOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Conversations/V1/AddressConfigurationOptions.cs b/src/Twilio/Rest/Conversations/V1/AddressConfigurationOptions.cs index 05075225e..43f940ad2 100644 --- a/src/Twilio/Rest/Conversations/V1/AddressConfigurationOptions.cs +++ b/src/Twilio/Rest/Conversations/V1/AddressConfigurationOptions.cs @@ -77,7 +77,7 @@ public CreateAddressConfigurationOptions(AddressConfigurationResource.TypeEnum t /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -152,7 +152,7 @@ public DeleteAddressConfigurationOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -181,7 +181,7 @@ public FetchAddressConfigurationOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -204,7 +204,7 @@ public class ReadAddressConfigurationOptions : ReadOptions Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -268,7 +268,7 @@ public UpdateAddressConfigurationOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Conversations/V1/AddressConfigurationResource.cs b/src/Twilio/Rest/Conversations/V1/AddressConfigurationResource.cs index 892f29fec..f0817d165 100644 --- a/src/Twilio/Rest/Conversations/V1/AddressConfigurationResource.cs +++ b/src/Twilio/Rest/Conversations/V1/AddressConfigurationResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Conversations.V1 public class AddressConfigurationResource : Resource { + + public sealed class MethodEnum : StringEnum { private MethodEnum(string value) : base(value) {} diff --git a/src/Twilio/Rest/Conversations/V1/Configuration/WebhookOptions.cs b/src/Twilio/Rest/Conversations/V1/Configuration/WebhookOptions.cs index f5cbbc3f5..c6fa659fe 100644 --- a/src/Twilio/Rest/Conversations/V1/Configuration/WebhookOptions.cs +++ b/src/Twilio/Rest/Conversations/V1/Configuration/WebhookOptions.cs @@ -32,7 +32,7 @@ public class FetchWebhookOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -67,7 +67,7 @@ public class UpdateWebhookOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Conversations/V1/Configuration/WebhookResource.cs b/src/Twilio/Rest/Conversations/V1/Configuration/WebhookResource.cs index 5d06f30b7..e21a24ae7 100644 --- a/src/Twilio/Rest/Conversations/V1/Configuration/WebhookResource.cs +++ b/src/Twilio/Rest/Conversations/V1/Configuration/WebhookResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Conversations.V1.Configuration public class WebhookResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class MethodEnum : StringEnum { diff --git a/src/Twilio/Rest/Conversations/V1/ConfigurationOptions.cs b/src/Twilio/Rest/Conversations/V1/ConfigurationOptions.cs index 94f5ac243..49e8961f5 100644 --- a/src/Twilio/Rest/Conversations/V1/ConfigurationOptions.cs +++ b/src/Twilio/Rest/Conversations/V1/ConfigurationOptions.cs @@ -32,7 +32,7 @@ public class FetchConfigurationOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -64,7 +64,7 @@ public class UpdateConfigurationOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Conversations/V1/ConfigurationResource.cs b/src/Twilio/Rest/Conversations/V1/ConfigurationResource.cs index 73b364328..0d2b0ae27 100644 --- a/src/Twilio/Rest/Conversations/V1/ConfigurationResource.cs +++ b/src/Twilio/Rest/Conversations/V1/ConfigurationResource.cs @@ -30,6 +30,8 @@ public class ConfigurationResource : Resource { + + private static Request BuildFetchRequest(FetchConfigurationOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Conversations/V1/Conversation/Message/DeliveryReceiptOptions.cs b/src/Twilio/Rest/Conversations/V1/Conversation/Message/DeliveryReceiptOptions.cs index 5e8cffb1e..0d41dc3c8 100644 --- a/src/Twilio/Rest/Conversations/V1/Conversation/Message/DeliveryReceiptOptions.cs +++ b/src/Twilio/Rest/Conversations/V1/Conversation/Message/DeliveryReceiptOptions.cs @@ -51,7 +51,7 @@ public FetchDeliveryReceiptOptions(string pathConversationSid, string pathMessag /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -85,7 +85,7 @@ public ReadDeliveryReceiptOptions(string pathConversationSid, string pathMessage /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Conversations/V1/Conversation/Message/DeliveryReceiptResource.cs b/src/Twilio/Rest/Conversations/V1/Conversation/Message/DeliveryReceiptResource.cs index 5de25c27b..5dab9159c 100644 --- a/src/Twilio/Rest/Conversations/V1/Conversation/Message/DeliveryReceiptResource.cs +++ b/src/Twilio/Rest/Conversations/V1/Conversation/Message/DeliveryReceiptResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Conversations.V1.Conversation.Message public class DeliveryReceiptResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class DeliveryStatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Conversations/V1/Conversation/MessageOptions.cs b/src/Twilio/Rest/Conversations/V1/Conversation/MessageOptions.cs index 3017b1858..9f7e13b65 100644 --- a/src/Twilio/Rest/Conversations/V1/Conversation/MessageOptions.cs +++ b/src/Twilio/Rest/Conversations/V1/Conversation/MessageOptions.cs @@ -68,7 +68,7 @@ public CreateMessageOptions(string pathConversationSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -145,7 +145,7 @@ public DeleteMessageOptions(string pathConversationSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -189,7 +189,7 @@ public FetchMessageOptions(string pathConversationSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -221,7 +221,7 @@ public ReadMessageOptions(string pathConversationSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -280,7 +280,7 @@ public UpdateMessageOptions(string pathConversationSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Conversations/V1/Conversation/MessageResource.cs b/src/Twilio/Rest/Conversations/V1/Conversation/MessageResource.cs index c043badc9..f908e34a1 100644 --- a/src/Twilio/Rest/Conversations/V1/Conversation/MessageResource.cs +++ b/src/Twilio/Rest/Conversations/V1/Conversation/MessageResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Conversations.V1.Conversation public class MessageResource : Resource { + + public sealed class WebhookEnabledTypeEnum : StringEnum { private WebhookEnabledTypeEnum(string value) : base(value) {} diff --git a/src/Twilio/Rest/Conversations/V1/Conversation/ParticipantOptions.cs b/src/Twilio/Rest/Conversations/V1/Conversation/ParticipantOptions.cs index 8153a599f..fc32d1c63 100644 --- a/src/Twilio/Rest/Conversations/V1/Conversation/ParticipantOptions.cs +++ b/src/Twilio/Rest/Conversations/V1/Conversation/ParticipantOptions.cs @@ -68,7 +68,7 @@ public CreateParticipantOptions(string pathConversationSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -145,7 +145,7 @@ public DeleteParticipantOptions(string pathConversationSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -189,7 +189,7 @@ public FetchParticipantOptions(string pathConversationSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -218,7 +218,7 @@ public ReadParticipantOptions(string pathConversationSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -285,7 +285,7 @@ public UpdateParticipantOptions(string pathConversationSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Conversations/V1/Conversation/ParticipantResource.cs b/src/Twilio/Rest/Conversations/V1/Conversation/ParticipantResource.cs index d01e2794c..94d43384d 100644 --- a/src/Twilio/Rest/Conversations/V1/Conversation/ParticipantResource.cs +++ b/src/Twilio/Rest/Conversations/V1/Conversation/ParticipantResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Conversations.V1.Conversation public class ParticipantResource : Resource { + + public sealed class WebhookEnabledTypeEnum : StringEnum { private WebhookEnabledTypeEnum(string value) : base(value) {} diff --git a/src/Twilio/Rest/Conversations/V1/Conversation/WebhookOptions.cs b/src/Twilio/Rest/Conversations/V1/Conversation/WebhookOptions.cs index 76c9bd9e4..0ff0bcf72 100644 --- a/src/Twilio/Rest/Conversations/V1/Conversation/WebhookOptions.cs +++ b/src/Twilio/Rest/Conversations/V1/Conversation/WebhookOptions.cs @@ -66,7 +66,7 @@ public CreateWebhookOptions(string pathConversationSid, WebhookResource.TargetEn /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -126,7 +126,7 @@ public DeleteWebhookOptions(string pathConversationSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -160,7 +160,7 @@ public FetchWebhookOptions(string pathConversationSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -189,7 +189,7 @@ public ReadWebhookOptions(string pathConversationSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -243,7 +243,7 @@ public UpdateWebhookOptions(string pathConversationSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Conversations/V1/Conversation/WebhookResource.cs b/src/Twilio/Rest/Conversations/V1/Conversation/WebhookResource.cs index 017c0f443..a34f37f0d 100644 --- a/src/Twilio/Rest/Conversations/V1/Conversation/WebhookResource.cs +++ b/src/Twilio/Rest/Conversations/V1/Conversation/WebhookResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Conversations.V1.Conversation public class WebhookResource : Resource { + + public sealed class MethodEnum : StringEnum { private MethodEnum(string value) : base(value) {} diff --git a/src/Twilio/Rest/Conversations/V1/ConversationOptions.cs b/src/Twilio/Rest/Conversations/V1/ConversationOptions.cs index dca917846..9dda2d26c 100644 --- a/src/Twilio/Rest/Conversations/V1/ConversationOptions.cs +++ b/src/Twilio/Rest/Conversations/V1/ConversationOptions.cs @@ -62,7 +62,7 @@ public class CreateConversationOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -138,7 +138,7 @@ public DeleteConversationOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -177,7 +177,7 @@ public FetchConversationOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -206,7 +206,7 @@ public class ReadConversationOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -280,7 +280,7 @@ public UpdateConversationOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Conversations/V1/ConversationResource.cs b/src/Twilio/Rest/Conversations/V1/ConversationResource.cs index efd13b562..031cf2c55 100644 --- a/src/Twilio/Rest/Conversations/V1/ConversationResource.cs +++ b/src/Twilio/Rest/Conversations/V1/ConversationResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Conversations.V1 public class ConversationResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StateEnum : StringEnum { diff --git a/src/Twilio/Rest/Conversations/V1/CredentialOptions.cs b/src/Twilio/Rest/Conversations/V1/CredentialOptions.cs index 3bd8967a9..8a770b73d 100644 --- a/src/Twilio/Rest/Conversations/V1/CredentialOptions.cs +++ b/src/Twilio/Rest/Conversations/V1/CredentialOptions.cs @@ -59,7 +59,7 @@ public CreateCredentialOptions(CredentialResource.PushTypeEnum type) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -114,7 +114,7 @@ public DeleteCredentialOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -143,7 +143,7 @@ public FetchCredentialOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -163,7 +163,7 @@ public class ReadCredentialOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -216,7 +216,7 @@ public UpdateCredentialOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Conversations/V1/CredentialResource.cs b/src/Twilio/Rest/Conversations/V1/CredentialResource.cs index 65f3d3619..4a813fed3 100644 --- a/src/Twilio/Rest/Conversations/V1/CredentialResource.cs +++ b/src/Twilio/Rest/Conversations/V1/CredentialResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Conversations.V1 public class CredentialResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class PushTypeEnum : StringEnum { diff --git a/src/Twilio/Rest/Conversations/V1/ParticipantConversationOptions.cs b/src/Twilio/Rest/Conversations/V1/ParticipantConversationOptions.cs index 596216658..de21b70ae 100644 --- a/src/Twilio/Rest/Conversations/V1/ParticipantConversationOptions.cs +++ b/src/Twilio/Rest/Conversations/V1/ParticipantConversationOptions.cs @@ -38,7 +38,7 @@ public class ReadParticipantConversationOptions : ReadOptions Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Conversations/V1/ParticipantConversationResource.cs b/src/Twilio/Rest/Conversations/V1/ParticipantConversationResource.cs index 188ca1db5..0b797bd75 100644 --- a/src/Twilio/Rest/Conversations/V1/ParticipantConversationResource.cs +++ b/src/Twilio/Rest/Conversations/V1/ParticipantConversationResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Conversations.V1 public class ParticipantConversationResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StateEnum : StringEnum { diff --git a/src/Twilio/Rest/Conversations/V1/RoleOptions.cs b/src/Twilio/Rest/Conversations/V1/RoleOptions.cs index 549872612..440a2ba5c 100644 --- a/src/Twilio/Rest/Conversations/V1/RoleOptions.cs +++ b/src/Twilio/Rest/Conversations/V1/RoleOptions.cs @@ -51,7 +51,7 @@ public CreateRoleOptions(string friendlyName, RoleResource.RoleTypeEnum type, Li /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -90,7 +90,7 @@ public DeleteRoleOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -119,7 +119,7 @@ public FetchRoleOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -139,7 +139,7 @@ public class ReadRoleOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -176,7 +176,7 @@ public UpdateRoleOptions(string pathSid, List permission) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Conversations/V1/RoleResource.cs b/src/Twilio/Rest/Conversations/V1/RoleResource.cs index a513e819b..616f070cd 100644 --- a/src/Twilio/Rest/Conversations/V1/RoleResource.cs +++ b/src/Twilio/Rest/Conversations/V1/RoleResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Conversations.V1 public class RoleResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class RoleTypeEnum : StringEnum { diff --git a/src/Twilio/Rest/Conversations/V1/Service/BindingOptions.cs b/src/Twilio/Rest/Conversations/V1/Service/BindingOptions.cs index b5391e761..bdd103285 100644 --- a/src/Twilio/Rest/Conversations/V1/Service/BindingOptions.cs +++ b/src/Twilio/Rest/Conversations/V1/Service/BindingOptions.cs @@ -46,7 +46,7 @@ public DeleteBindingOptions(string pathChatServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -80,7 +80,7 @@ public FetchBindingOptions(string pathChatServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -117,7 +117,7 @@ public ReadBindingOptions(string pathChatServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Conversations/V1/Service/BindingResource.cs b/src/Twilio/Rest/Conversations/V1/Service/BindingResource.cs index f50bfb8d2..ab136892a 100644 --- a/src/Twilio/Rest/Conversations/V1/Service/BindingResource.cs +++ b/src/Twilio/Rest/Conversations/V1/Service/BindingResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Conversations.V1.Service public class BindingResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class BindingTypeEnum : StringEnum { diff --git a/src/Twilio/Rest/Conversations/V1/Service/Configuration/NotificationOptions.cs b/src/Twilio/Rest/Conversations/V1/Service/Configuration/NotificationOptions.cs index 064156522..72e9ee70d 100644 --- a/src/Twilio/Rest/Conversations/V1/Service/Configuration/NotificationOptions.cs +++ b/src/Twilio/Rest/Conversations/V1/Service/Configuration/NotificationOptions.cs @@ -41,7 +41,7 @@ public FetchNotificationOptions(string pathChatServiceSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -109,7 +109,7 @@ public UpdateNotificationOptions(string pathChatServiceSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Conversations/V1/Service/Configuration/NotificationResource.cs b/src/Twilio/Rest/Conversations/V1/Service/Configuration/NotificationResource.cs index 3b5f6d1cb..2cdde8958 100644 --- a/src/Twilio/Rest/Conversations/V1/Service/Configuration/NotificationResource.cs +++ b/src/Twilio/Rest/Conversations/V1/Service/Configuration/NotificationResource.cs @@ -30,6 +30,8 @@ public class NotificationResource : Resource { + + private static Request BuildFetchRequest(FetchNotificationOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Conversations/V1/Service/Configuration/WebhookOptions.cs b/src/Twilio/Rest/Conversations/V1/Service/Configuration/WebhookOptions.cs index 763bf55a1..5d64da2af 100644 --- a/src/Twilio/Rest/Conversations/V1/Service/Configuration/WebhookOptions.cs +++ b/src/Twilio/Rest/Conversations/V1/Service/Configuration/WebhookOptions.cs @@ -41,7 +41,7 @@ public FetchWebhookOptions(string pathChatServiceSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -83,7 +83,7 @@ public UpdateWebhookOptions(string pathChatServiceSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Conversations/V1/Service/Configuration/WebhookResource.cs b/src/Twilio/Rest/Conversations/V1/Service/Configuration/WebhookResource.cs index 073acb6a6..cd8ff18bd 100644 --- a/src/Twilio/Rest/Conversations/V1/Service/Configuration/WebhookResource.cs +++ b/src/Twilio/Rest/Conversations/V1/Service/Configuration/WebhookResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Conversations.V1.Service.Configuration public class WebhookResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class MethodEnum : StringEnum { diff --git a/src/Twilio/Rest/Conversations/V1/Service/ConfigurationOptions.cs b/src/Twilio/Rest/Conversations/V1/Service/ConfigurationOptions.cs index 28788118f..6e8451906 100644 --- a/src/Twilio/Rest/Conversations/V1/Service/ConfigurationOptions.cs +++ b/src/Twilio/Rest/Conversations/V1/Service/ConfigurationOptions.cs @@ -41,7 +41,7 @@ public FetchConfigurationOptions(string pathChatServiceSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -82,7 +82,7 @@ public UpdateConfigurationOptions(string pathChatServiceSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Conversations/V1/Service/ConfigurationResource.cs b/src/Twilio/Rest/Conversations/V1/Service/ConfigurationResource.cs index 88f734615..6f67accbc 100644 --- a/src/Twilio/Rest/Conversations/V1/Service/ConfigurationResource.cs +++ b/src/Twilio/Rest/Conversations/V1/Service/ConfigurationResource.cs @@ -30,6 +30,8 @@ public class ConfigurationResource : Resource { + + private static Request BuildFetchRequest(FetchConfigurationOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Conversations/V1/Service/Conversation/Message/DeliveryReceiptOptions.cs b/src/Twilio/Rest/Conversations/V1/Service/Conversation/Message/DeliveryReceiptOptions.cs index 245c92d8e..83765507e 100644 --- a/src/Twilio/Rest/Conversations/V1/Service/Conversation/Message/DeliveryReceiptOptions.cs +++ b/src/Twilio/Rest/Conversations/V1/Service/Conversation/Message/DeliveryReceiptOptions.cs @@ -56,7 +56,7 @@ public FetchDeliveryReceiptOptions(string pathChatServiceSid, string pathConvers /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -95,7 +95,7 @@ public ReadDeliveryReceiptOptions(string pathChatServiceSid, string pathConversa /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Conversations/V1/Service/Conversation/Message/DeliveryReceiptResource.cs b/src/Twilio/Rest/Conversations/V1/Service/Conversation/Message/DeliveryReceiptResource.cs index 001acce5e..d7f05a822 100644 --- a/src/Twilio/Rest/Conversations/V1/Service/Conversation/Message/DeliveryReceiptResource.cs +++ b/src/Twilio/Rest/Conversations/V1/Service/Conversation/Message/DeliveryReceiptResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Conversations.V1.Service.Conversation.Message public class DeliveryReceiptResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class DeliveryStatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Conversations/V1/Service/Conversation/MessageOptions.cs b/src/Twilio/Rest/Conversations/V1/Service/Conversation/MessageOptions.cs index 7d42290cf..cb1a9b7c5 100644 --- a/src/Twilio/Rest/Conversations/V1/Service/Conversation/MessageOptions.cs +++ b/src/Twilio/Rest/Conversations/V1/Service/Conversation/MessageOptions.cs @@ -73,7 +73,7 @@ public CreateMessageOptions(string pathChatServiceSid, string pathConversationSi /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -155,7 +155,7 @@ public DeleteMessageOptions(string pathChatServiceSid, string pathConversationSi /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -204,7 +204,7 @@ public FetchMessageOptions(string pathChatServiceSid, string pathConversationSid /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -241,7 +241,7 @@ public ReadMessageOptions(string pathChatServiceSid, string pathConversationSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -305,7 +305,7 @@ public UpdateMessageOptions(string pathChatServiceSid, string pathConversationSi /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Conversations/V1/Service/Conversation/MessageResource.cs b/src/Twilio/Rest/Conversations/V1/Service/Conversation/MessageResource.cs index 9626cc866..d60a5f483 100644 --- a/src/Twilio/Rest/Conversations/V1/Service/Conversation/MessageResource.cs +++ b/src/Twilio/Rest/Conversations/V1/Service/Conversation/MessageResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Conversations.V1.Service.Conversation public class MessageResource : Resource { + + public sealed class WebhookEnabledTypeEnum : StringEnum { private WebhookEnabledTypeEnum(string value) : base(value) {} diff --git a/src/Twilio/Rest/Conversations/V1/Service/Conversation/ParticipantOptions.cs b/src/Twilio/Rest/Conversations/V1/Service/Conversation/ParticipantOptions.cs index 9fcb16908..b58bae770 100644 --- a/src/Twilio/Rest/Conversations/V1/Service/Conversation/ParticipantOptions.cs +++ b/src/Twilio/Rest/Conversations/V1/Service/Conversation/ParticipantOptions.cs @@ -73,7 +73,7 @@ public CreateParticipantOptions(string pathChatServiceSid, string pathConversati /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -155,7 +155,7 @@ public DeleteParticipantOptions(string pathChatServiceSid, string pathConversati /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -204,7 +204,7 @@ public FetchParticipantOptions(string pathChatServiceSid, string pathConversatio /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -238,7 +238,7 @@ public ReadParticipantOptions(string pathChatServiceSid, string pathConversation /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -310,7 +310,7 @@ public UpdateParticipantOptions(string pathChatServiceSid, string pathConversati /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Conversations/V1/Service/Conversation/ParticipantResource.cs b/src/Twilio/Rest/Conversations/V1/Service/Conversation/ParticipantResource.cs index a3f5bde6e..326e36489 100644 --- a/src/Twilio/Rest/Conversations/V1/Service/Conversation/ParticipantResource.cs +++ b/src/Twilio/Rest/Conversations/V1/Service/Conversation/ParticipantResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Conversations.V1.Service.Conversation public class ParticipantResource : Resource { + + public sealed class WebhookEnabledTypeEnum : StringEnum { private WebhookEnabledTypeEnum(string value) : base(value) {} diff --git a/src/Twilio/Rest/Conversations/V1/Service/Conversation/WebhookOptions.cs b/src/Twilio/Rest/Conversations/V1/Service/Conversation/WebhookOptions.cs index 06f80c94b..9bd207121 100644 --- a/src/Twilio/Rest/Conversations/V1/Service/Conversation/WebhookOptions.cs +++ b/src/Twilio/Rest/Conversations/V1/Service/Conversation/WebhookOptions.cs @@ -71,7 +71,7 @@ public CreateWebhookOptions(string pathChatServiceSid, string pathConversationSi /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -136,7 +136,7 @@ public DeleteWebhookOptions(string pathChatServiceSid, string pathConversationSi /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -175,7 +175,7 @@ public FetchWebhookOptions(string pathChatServiceSid, string pathConversationSid /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -209,7 +209,7 @@ public ReadWebhookOptions(string pathChatServiceSid, string pathConversationSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -268,7 +268,7 @@ public UpdateWebhookOptions(string pathChatServiceSid, string pathConversationSi /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Conversations/V1/Service/Conversation/WebhookResource.cs b/src/Twilio/Rest/Conversations/V1/Service/Conversation/WebhookResource.cs index f09ece7ff..7ebea499e 100644 --- a/src/Twilio/Rest/Conversations/V1/Service/Conversation/WebhookResource.cs +++ b/src/Twilio/Rest/Conversations/V1/Service/Conversation/WebhookResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Conversations.V1.Service.Conversation public class WebhookResource : Resource { + + public sealed class MethodEnum : StringEnum { private MethodEnum(string value) : base(value) {} diff --git a/src/Twilio/Rest/Conversations/V1/Service/ConversationOptions.cs b/src/Twilio/Rest/Conversations/V1/Service/ConversationOptions.cs index 0ead1f3eb..4351d335a 100644 --- a/src/Twilio/Rest/Conversations/V1/Service/ConversationOptions.cs +++ b/src/Twilio/Rest/Conversations/V1/Service/ConversationOptions.cs @@ -71,7 +71,7 @@ public CreateConversationOptions(string pathChatServiceSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -152,7 +152,7 @@ public DeleteConversationOptions(string pathChatServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -196,7 +196,7 @@ public FetchConversationOptions(string pathChatServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -234,7 +234,7 @@ public ReadConversationOptions(string pathChatServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -313,7 +313,7 @@ public UpdateConversationOptions(string pathChatServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Conversations/V1/Service/ConversationResource.cs b/src/Twilio/Rest/Conversations/V1/Service/ConversationResource.cs index 2cf8be889..793265ffb 100644 --- a/src/Twilio/Rest/Conversations/V1/Service/ConversationResource.cs +++ b/src/Twilio/Rest/Conversations/V1/Service/ConversationResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Conversations.V1.Service public class ConversationResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StateEnum : StringEnum { diff --git a/src/Twilio/Rest/Conversations/V1/Service/ParticipantConversationOptions.cs b/src/Twilio/Rest/Conversations/V1/Service/ParticipantConversationOptions.cs index 6d0992ad0..1b73ba231 100644 --- a/src/Twilio/Rest/Conversations/V1/Service/ParticipantConversationOptions.cs +++ b/src/Twilio/Rest/Conversations/V1/Service/ParticipantConversationOptions.cs @@ -47,7 +47,7 @@ public ReadParticipantConversationOptions(string pathChatServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Conversations/V1/Service/ParticipantConversationResource.cs b/src/Twilio/Rest/Conversations/V1/Service/ParticipantConversationResource.cs index 8b0609fc1..b2db3329c 100644 --- a/src/Twilio/Rest/Conversations/V1/Service/ParticipantConversationResource.cs +++ b/src/Twilio/Rest/Conversations/V1/Service/ParticipantConversationResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Conversations.V1.Service public class ParticipantConversationResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StateEnum : StringEnum { diff --git a/src/Twilio/Rest/Conversations/V1/Service/RoleOptions.cs b/src/Twilio/Rest/Conversations/V1/Service/RoleOptions.cs index 24abcfa40..fa7eae161 100644 --- a/src/Twilio/Rest/Conversations/V1/Service/RoleOptions.cs +++ b/src/Twilio/Rest/Conversations/V1/Service/RoleOptions.cs @@ -56,7 +56,7 @@ public CreateRoleOptions(string pathChatServiceSid, string friendlyName, RoleRes /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -100,7 +100,7 @@ public DeleteRoleOptions(string pathChatServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -134,7 +134,7 @@ public FetchRoleOptions(string pathChatServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -163,7 +163,7 @@ public ReadRoleOptions(string pathChatServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -205,7 +205,7 @@ public UpdateRoleOptions(string pathChatServiceSid, string pathSid, List /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Conversations/V1/Service/RoleResource.cs b/src/Twilio/Rest/Conversations/V1/Service/RoleResource.cs index 27209bead..c8975a418 100644 --- a/src/Twilio/Rest/Conversations/V1/Service/RoleResource.cs +++ b/src/Twilio/Rest/Conversations/V1/Service/RoleResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Conversations.V1.Service public class RoleResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class RoleTypeEnum : StringEnum { diff --git a/src/Twilio/Rest/Conversations/V1/Service/User/UserConversationOptions.cs b/src/Twilio/Rest/Conversations/V1/Service/User/UserConversationOptions.cs index fe7668ee9..9242e642c 100644 --- a/src/Twilio/Rest/Conversations/V1/Service/User/UserConversationOptions.cs +++ b/src/Twilio/Rest/Conversations/V1/Service/User/UserConversationOptions.cs @@ -51,7 +51,7 @@ public DeleteUserConversationOptions(string pathChatServiceSid, string pathUserS /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -90,7 +90,7 @@ public FetchUserConversationOptions(string pathChatServiceSid, string pathUserSi /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -124,7 +124,7 @@ public ReadUserConversationOptions(string pathChatServiceSid, string pathUserSid /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -175,7 +175,7 @@ public UpdateUserConversationOptions(string pathChatServiceSid, string pathUserS /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Conversations/V1/Service/User/UserConversationResource.cs b/src/Twilio/Rest/Conversations/V1/Service/User/UserConversationResource.cs index 9ff54a283..061bb3d96 100644 --- a/src/Twilio/Rest/Conversations/V1/Service/User/UserConversationResource.cs +++ b/src/Twilio/Rest/Conversations/V1/Service/User/UserConversationResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Conversations.V1.Service.User public class UserConversationResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class NotificationLevelEnum : StringEnum { diff --git a/src/Twilio/Rest/Conversations/V1/Service/UserOptions.cs b/src/Twilio/Rest/Conversations/V1/Service/UserOptions.cs index d2b1d9cbe..8e26c3f9e 100644 --- a/src/Twilio/Rest/Conversations/V1/Service/UserOptions.cs +++ b/src/Twilio/Rest/Conversations/V1/Service/UserOptions.cs @@ -58,7 +58,7 @@ public CreateUserOptions(string pathChatServiceSid, string identity) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -119,7 +119,7 @@ public DeleteUserOptions(string pathChatServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -163,7 +163,7 @@ public FetchUserOptions(string pathChatServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -192,7 +192,7 @@ public ReadUserOptions(string pathChatServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -241,7 +241,7 @@ public UpdateUserOptions(string pathChatServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Conversations/V1/Service/UserResource.cs b/src/Twilio/Rest/Conversations/V1/Service/UserResource.cs index 72b8d4de3..4a355e496 100644 --- a/src/Twilio/Rest/Conversations/V1/Service/UserResource.cs +++ b/src/Twilio/Rest/Conversations/V1/Service/UserResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Conversations.V1.Service public class UserResource : Resource { + + public sealed class WebhookEnabledTypeEnum : StringEnum { private WebhookEnabledTypeEnum(string value) : base(value) {} diff --git a/src/Twilio/Rest/Conversations/V1/ServiceOptions.cs b/src/Twilio/Rest/Conversations/V1/ServiceOptions.cs index 9dad56204..0a47847c2 100644 --- a/src/Twilio/Rest/Conversations/V1/ServiceOptions.cs +++ b/src/Twilio/Rest/Conversations/V1/ServiceOptions.cs @@ -41,7 +41,7 @@ public CreateServiceOptions(string friendlyName) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -72,7 +72,7 @@ public DeleteServiceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -101,7 +101,7 @@ public FetchServiceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -121,7 +121,7 @@ public class ReadServiceOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Conversations/V1/ServiceResource.cs b/src/Twilio/Rest/Conversations/V1/ServiceResource.cs index dc3515f7c..382cee45c 100644 --- a/src/Twilio/Rest/Conversations/V1/ServiceResource.cs +++ b/src/Twilio/Rest/Conversations/V1/ServiceResource.cs @@ -30,6 +30,8 @@ public class ServiceResource : Resource { + + private static Request BuildCreateRequest(CreateServiceOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Conversations/V1/User/UserConversationOptions.cs b/src/Twilio/Rest/Conversations/V1/User/UserConversationOptions.cs index 294471d21..90edb3f32 100644 --- a/src/Twilio/Rest/Conversations/V1/User/UserConversationOptions.cs +++ b/src/Twilio/Rest/Conversations/V1/User/UserConversationOptions.cs @@ -46,7 +46,7 @@ public DeleteUserConversationOptions(string pathUserSid, string pathConversation /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -80,7 +80,7 @@ public FetchUserConversationOptions(string pathUserSid, string pathConversationS /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -109,7 +109,7 @@ public ReadUserConversationOptions(string pathUserSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -155,7 +155,7 @@ public UpdateUserConversationOptions(string pathUserSid, string pathConversation /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Conversations/V1/User/UserConversationResource.cs b/src/Twilio/Rest/Conversations/V1/User/UserConversationResource.cs index 83e20c0e0..d833f73f9 100644 --- a/src/Twilio/Rest/Conversations/V1/User/UserConversationResource.cs +++ b/src/Twilio/Rest/Conversations/V1/User/UserConversationResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Conversations.V1.User public class UserConversationResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class NotificationLevelEnum : StringEnum { diff --git a/src/Twilio/Rest/Conversations/V1/UserOptions.cs b/src/Twilio/Rest/Conversations/V1/UserOptions.cs index c39381edf..a2d142a03 100644 --- a/src/Twilio/Rest/Conversations/V1/UserOptions.cs +++ b/src/Twilio/Rest/Conversations/V1/UserOptions.cs @@ -53,7 +53,7 @@ public CreateUserOptions(string identity) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -109,7 +109,7 @@ public DeleteUserOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -148,7 +148,7 @@ public FetchUserOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -168,7 +168,7 @@ public class ReadUserOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -212,7 +212,7 @@ public UpdateUserOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Conversations/V1/UserResource.cs b/src/Twilio/Rest/Conversations/V1/UserResource.cs index b95e78379..205c2f133 100644 --- a/src/Twilio/Rest/Conversations/V1/UserResource.cs +++ b/src/Twilio/Rest/Conversations/V1/UserResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Conversations.V1 public class UserResource : Resource { + + public sealed class WebhookEnabledTypeEnum : StringEnum { private WebhookEnabledTypeEnum(string value) : base(value) {} diff --git a/src/Twilio/Rest/Events/V1/EventTypeOptions.cs b/src/Twilio/Rest/Events/V1/EventTypeOptions.cs index b6c53331c..64503653a 100644 --- a/src/Twilio/Rest/Events/V1/EventTypeOptions.cs +++ b/src/Twilio/Rest/Events/V1/EventTypeOptions.cs @@ -41,7 +41,7 @@ public FetchEventTypeOptions(string pathType) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -64,7 +64,7 @@ public class ReadEventTypeOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Events/V1/EventTypeResource.cs b/src/Twilio/Rest/Events/V1/EventTypeResource.cs index aba7c3774..cbe2d1434 100644 --- a/src/Twilio/Rest/Events/V1/EventTypeResource.cs +++ b/src/Twilio/Rest/Events/V1/EventTypeResource.cs @@ -30,6 +30,8 @@ public class EventTypeResource : Resource { + + private static Request BuildFetchRequest(FetchEventTypeOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Events/V1/Schema/SchemaVersionOptions.cs b/src/Twilio/Rest/Events/V1/Schema/SchemaVersionOptions.cs index df02cbb84..1af8983dd 100644 --- a/src/Twilio/Rest/Events/V1/Schema/SchemaVersionOptions.cs +++ b/src/Twilio/Rest/Events/V1/Schema/SchemaVersionOptions.cs @@ -46,7 +46,7 @@ public FetchSchemaVersionOptions(string pathId, int? pathSchemaVersion) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -75,7 +75,7 @@ public ReadSchemaVersionOptions(string pathId) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Events/V1/Schema/SchemaVersionResource.cs b/src/Twilio/Rest/Events/V1/Schema/SchemaVersionResource.cs index f5dc49b3f..769801382 100644 --- a/src/Twilio/Rest/Events/V1/Schema/SchemaVersionResource.cs +++ b/src/Twilio/Rest/Events/V1/Schema/SchemaVersionResource.cs @@ -30,6 +30,8 @@ public class SchemaVersionResource : Resource { + + private static Request BuildFetchRequest(FetchSchemaVersionOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Events/V1/SchemaOptions.cs b/src/Twilio/Rest/Events/V1/SchemaOptions.cs index 2ab677eb6..d460c2776 100644 --- a/src/Twilio/Rest/Events/V1/SchemaOptions.cs +++ b/src/Twilio/Rest/Events/V1/SchemaOptions.cs @@ -41,7 +41,7 @@ public FetchSchemaOptions(string pathId) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Events/V1/SchemaResource.cs b/src/Twilio/Rest/Events/V1/SchemaResource.cs index 0a6910d7b..758c2fc48 100644 --- a/src/Twilio/Rest/Events/V1/SchemaResource.cs +++ b/src/Twilio/Rest/Events/V1/SchemaResource.cs @@ -30,6 +30,8 @@ public class SchemaResource : Resource { + + private static Request BuildFetchRequest(FetchSchemaOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Events/V1/Sink/SinkTestOptions.cs b/src/Twilio/Rest/Events/V1/Sink/SinkTestOptions.cs index 585b820ba..005222943 100644 --- a/src/Twilio/Rest/Events/V1/Sink/SinkTestOptions.cs +++ b/src/Twilio/Rest/Events/V1/Sink/SinkTestOptions.cs @@ -41,7 +41,7 @@ public CreateSinkTestOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Events/V1/Sink/SinkTestResource.cs b/src/Twilio/Rest/Events/V1/Sink/SinkTestResource.cs index 697df4da0..98a292a00 100644 --- a/src/Twilio/Rest/Events/V1/Sink/SinkTestResource.cs +++ b/src/Twilio/Rest/Events/V1/Sink/SinkTestResource.cs @@ -30,6 +30,8 @@ public class SinkTestResource : Resource { + + private static Request BuildCreateRequest(CreateSinkTestOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Events/V1/Sink/SinkValidateOptions.cs b/src/Twilio/Rest/Events/V1/Sink/SinkValidateOptions.cs index 3f651ade0..97ba904fd 100644 --- a/src/Twilio/Rest/Events/V1/Sink/SinkValidateOptions.cs +++ b/src/Twilio/Rest/Events/V1/Sink/SinkValidateOptions.cs @@ -46,7 +46,7 @@ public CreateSinkValidateOptions(string pathSid, string testId) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Events/V1/Sink/SinkValidateResource.cs b/src/Twilio/Rest/Events/V1/Sink/SinkValidateResource.cs index d5c25e45b..0185daa0d 100644 --- a/src/Twilio/Rest/Events/V1/Sink/SinkValidateResource.cs +++ b/src/Twilio/Rest/Events/V1/Sink/SinkValidateResource.cs @@ -30,6 +30,8 @@ public class SinkValidateResource : Resource { + + private static Request BuildCreateRequest(CreateSinkValidateOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Events/V1/SinkOptions.cs b/src/Twilio/Rest/Events/V1/SinkOptions.cs index 7a74dca4b..6abc574c8 100644 --- a/src/Twilio/Rest/Events/V1/SinkOptions.cs +++ b/src/Twilio/Rest/Events/V1/SinkOptions.cs @@ -51,7 +51,7 @@ public CreateSinkOptions(string description, object sinkConfiguration, SinkResou /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -90,7 +90,7 @@ public DeleteSinkOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -119,7 +119,7 @@ public FetchSinkOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -145,7 +145,7 @@ public class ReadSinkOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -190,7 +190,7 @@ public UpdateSinkOptions(string pathSid, string description) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Events/V1/SinkResource.cs b/src/Twilio/Rest/Events/V1/SinkResource.cs index 9b524fb54..48f49b112 100644 --- a/src/Twilio/Rest/Events/V1/SinkResource.cs +++ b/src/Twilio/Rest/Events/V1/SinkResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Events.V1 public class SinkResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Events/V1/Subscription/SubscribedEventOptions.cs b/src/Twilio/Rest/Events/V1/Subscription/SubscribedEventOptions.cs index 88abd0194..4fd5d47c6 100644 --- a/src/Twilio/Rest/Events/V1/Subscription/SubscribedEventOptions.cs +++ b/src/Twilio/Rest/Events/V1/Subscription/SubscribedEventOptions.cs @@ -49,7 +49,7 @@ public CreateSubscribedEventOptions(string pathSubscriptionSid, string type) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -89,7 +89,7 @@ public DeleteSubscribedEventOptions(string pathSubscriptionSid, string pathType) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -123,7 +123,7 @@ public FetchSubscribedEventOptions(string pathSubscriptionSid, string pathType) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -152,7 +152,7 @@ public ReadSubscribedEventOptions(string pathSubscriptionSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -192,7 +192,7 @@ public UpdateSubscribedEventOptions(string pathSubscriptionSid, string pathType) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Events/V1/Subscription/SubscribedEventResource.cs b/src/Twilio/Rest/Events/V1/Subscription/SubscribedEventResource.cs index a51164b66..42eb8dc3c 100644 --- a/src/Twilio/Rest/Events/V1/Subscription/SubscribedEventResource.cs +++ b/src/Twilio/Rest/Events/V1/Subscription/SubscribedEventResource.cs @@ -30,6 +30,8 @@ public class SubscribedEventResource : Resource { + + private static Request BuildCreateRequest(CreateSubscribedEventOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Events/V1/SubscriptionOptions.cs b/src/Twilio/Rest/Events/V1/SubscriptionOptions.cs index 620b9cc19..9f173c297 100644 --- a/src/Twilio/Rest/Events/V1/SubscriptionOptions.cs +++ b/src/Twilio/Rest/Events/V1/SubscriptionOptions.cs @@ -51,7 +51,7 @@ public CreateSubscriptionOptions(string description, string sinkSid, List Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -90,7 +90,7 @@ public DeleteSubscriptionOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -119,7 +119,7 @@ public FetchSubscriptionOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -142,7 +142,7 @@ public class ReadSubscriptionOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -184,7 +184,7 @@ public UpdateSubscriptionOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Events/V1/SubscriptionResource.cs b/src/Twilio/Rest/Events/V1/SubscriptionResource.cs index 838214d84..c3313b86f 100644 --- a/src/Twilio/Rest/Events/V1/SubscriptionResource.cs +++ b/src/Twilio/Rest/Events/V1/SubscriptionResource.cs @@ -30,6 +30,8 @@ public class SubscriptionResource : Resource { + + private static Request BuildCreateRequest(CreateSubscriptionOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/FlexApi/V1/AssessmentsOptions.cs b/src/Twilio/Rest/FlexApi/V1/AssessmentsOptions.cs index 16c257e14..9c803ae5d 100644 --- a/src/Twilio/Rest/FlexApi/V1/AssessmentsOptions.cs +++ b/src/Twilio/Rest/FlexApi/V1/AssessmentsOptions.cs @@ -89,7 +89,7 @@ public CreateAssessmentsOptions(string categorySid, string categoryName, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -163,7 +163,7 @@ public class ReadAssessmentsOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -227,7 +227,7 @@ public UpdateAssessmentsOptions(string pathAssessmentSid, decimal? offset, strin /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/FlexApi/V1/AssessmentsResource.cs b/src/Twilio/Rest/FlexApi/V1/AssessmentsResource.cs index 3351f09e5..25fe229fe 100644 --- a/src/Twilio/Rest/FlexApi/V1/AssessmentsResource.cs +++ b/src/Twilio/Rest/FlexApi/V1/AssessmentsResource.cs @@ -30,6 +30,8 @@ public class AssessmentsResource : Resource { + + private static Request BuildCreateRequest(CreateAssessmentsOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/FlexApi/V1/ChannelOptions.cs b/src/Twilio/Rest/FlexApi/V1/ChannelOptions.cs index 1ef9baa06..bbf1f14a7 100644 --- a/src/Twilio/Rest/FlexApi/V1/ChannelOptions.cs +++ b/src/Twilio/Rest/FlexApi/V1/ChannelOptions.cs @@ -74,7 +74,7 @@ public CreateChannelOptions(string flexFlowSid, string identity, string chatUser /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -141,7 +141,7 @@ public DeleteChannelOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -170,7 +170,7 @@ public FetchChannelOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -190,7 +190,7 @@ public class ReadChannelOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/FlexApi/V1/ChannelResource.cs b/src/Twilio/Rest/FlexApi/V1/ChannelResource.cs index 8814ce7a2..935ca1f7e 100644 --- a/src/Twilio/Rest/FlexApi/V1/ChannelResource.cs +++ b/src/Twilio/Rest/FlexApi/V1/ChannelResource.cs @@ -30,6 +30,8 @@ public class ChannelResource : Resource { + + private static Request BuildCreateRequest(CreateChannelOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/FlexApi/V1/ConfigurationOptions.cs b/src/Twilio/Rest/FlexApi/V1/ConfigurationOptions.cs index 14b3aceab..350100e84 100644 --- a/src/Twilio/Rest/FlexApi/V1/ConfigurationOptions.cs +++ b/src/Twilio/Rest/FlexApi/V1/ConfigurationOptions.cs @@ -35,7 +35,7 @@ public class FetchConfigurationOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/FlexApi/V1/ConfigurationResource.cs b/src/Twilio/Rest/FlexApi/V1/ConfigurationResource.cs index 379b25b90..98d39b850 100644 --- a/src/Twilio/Rest/FlexApi/V1/ConfigurationResource.cs +++ b/src/Twilio/Rest/FlexApi/V1/ConfigurationResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.FlexApi.V1 public class ConfigurationResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { @@ -306,6 +308,10 @@ public static ConfigurationResource FromJson(string json) [JsonProperty("flex_ui_status_report")] public object FlexUiStatusReport { get; private set; } + /// Agent conversation end methods. + [JsonProperty("agent_conv_end_methods")] + public object AgentConvEndMethods { get; private set; } + private ConfigurationResource() { diff --git a/src/Twilio/Rest/FlexApi/V1/FlexFlowOptions.cs b/src/Twilio/Rest/FlexApi/V1/FlexFlowOptions.cs index e9781ca58..a7b3cc441 100644 --- a/src/Twilio/Rest/FlexApi/V1/FlexFlowOptions.cs +++ b/src/Twilio/Rest/FlexApi/V1/FlexFlowOptions.cs @@ -93,7 +93,7 @@ public CreateFlexFlowOptions(string friendlyName, string chatServiceSid, FlexFlo /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -188,7 +188,7 @@ public DeleteFlexFlowOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -217,7 +217,7 @@ public FetchFlexFlowOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -240,7 +240,7 @@ public class ReadFlexFlowOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -327,7 +327,7 @@ public UpdateFlexFlowOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/FlexApi/V1/FlexFlowResource.cs b/src/Twilio/Rest/FlexApi/V1/FlexFlowResource.cs index 73cce2864..13701a390 100644 --- a/src/Twilio/Rest/FlexApi/V1/FlexFlowResource.cs +++ b/src/Twilio/Rest/FlexApi/V1/FlexFlowResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.FlexApi.V1 public class FlexFlowResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class IntegrationTypeEnum : StringEnum { diff --git a/src/Twilio/Rest/FlexApi/V1/InsightsAssessmentsCommentOptions.cs b/src/Twilio/Rest/FlexApi/V1/InsightsAssessmentsCommentOptions.cs index 07271d41e..3ece0bd87 100644 --- a/src/Twilio/Rest/FlexApi/V1/InsightsAssessmentsCommentOptions.cs +++ b/src/Twilio/Rest/FlexApi/V1/InsightsAssessmentsCommentOptions.cs @@ -69,7 +69,7 @@ public CreateInsightsAssessmentsCommentOptions(string categoryId, string categor /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -130,7 +130,7 @@ public class ReadInsightsAssessmentsCommentOptions : ReadOptions Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/FlexApi/V1/InsightsAssessmentsCommentResource.cs b/src/Twilio/Rest/FlexApi/V1/InsightsAssessmentsCommentResource.cs index 895ef4878..94b17ce4f 100644 --- a/src/Twilio/Rest/FlexApi/V1/InsightsAssessmentsCommentResource.cs +++ b/src/Twilio/Rest/FlexApi/V1/InsightsAssessmentsCommentResource.cs @@ -30,6 +30,8 @@ public class InsightsAssessmentsCommentResource : Resource { + + private static Request BuildCreateRequest(CreateInsightsAssessmentsCommentOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/FlexApi/V1/InsightsConversationsOptions.cs b/src/Twilio/Rest/FlexApi/V1/InsightsConversationsOptions.cs index 5508693ee..913fa7628 100644 --- a/src/Twilio/Rest/FlexApi/V1/InsightsConversationsOptions.cs +++ b/src/Twilio/Rest/FlexApi/V1/InsightsConversationsOptions.cs @@ -38,7 +38,7 @@ public class ReadInsightsConversationsOptions : ReadOptions Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/FlexApi/V1/InsightsConversationsResource.cs b/src/Twilio/Rest/FlexApi/V1/InsightsConversationsResource.cs index 1216f3e82..155dfd373 100644 --- a/src/Twilio/Rest/FlexApi/V1/InsightsConversationsResource.cs +++ b/src/Twilio/Rest/FlexApi/V1/InsightsConversationsResource.cs @@ -30,6 +30,8 @@ public class InsightsConversationsResource : Resource { + + private static Request BuildReadRequest(ReadInsightsConversationsOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/FlexApi/V1/InsightsQuestionnairesCategoryOptions.cs b/src/Twilio/Rest/FlexApi/V1/InsightsQuestionnairesCategoryOptions.cs index fe2b2226f..37a7587a4 100644 --- a/src/Twilio/Rest/FlexApi/V1/InsightsQuestionnairesCategoryOptions.cs +++ b/src/Twilio/Rest/FlexApi/V1/InsightsQuestionnairesCategoryOptions.cs @@ -44,7 +44,7 @@ public CreateInsightsQuestionnairesCategoryOptions(string name) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -88,7 +88,7 @@ public DeleteInsightsQuestionnairesCategoryOptions(string pathCategorySid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -121,7 +121,7 @@ public class ReadInsightsQuestionnairesCategoryOptions : ReadOptions Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -171,7 +171,7 @@ public UpdateInsightsQuestionnairesCategoryOptions(string pathCategorySid, strin /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/FlexApi/V1/InsightsQuestionnairesCategoryResource.cs b/src/Twilio/Rest/FlexApi/V1/InsightsQuestionnairesCategoryResource.cs index 1e4ab1710..168b8088b 100644 --- a/src/Twilio/Rest/FlexApi/V1/InsightsQuestionnairesCategoryResource.cs +++ b/src/Twilio/Rest/FlexApi/V1/InsightsQuestionnairesCategoryResource.cs @@ -30,6 +30,8 @@ public class InsightsQuestionnairesCategoryResource : Resource { + + private static Request BuildCreateRequest(CreateInsightsQuestionnairesCategoryOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/FlexApi/V1/InsightsQuestionnairesOptions.cs b/src/Twilio/Rest/FlexApi/V1/InsightsQuestionnairesOptions.cs index 244e1778e..3b5438541 100644 --- a/src/Twilio/Rest/FlexApi/V1/InsightsQuestionnairesOptions.cs +++ b/src/Twilio/Rest/FlexApi/V1/InsightsQuestionnairesOptions.cs @@ -54,7 +54,7 @@ public CreateInsightsQuestionnairesOptions(string name) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -110,7 +110,7 @@ public DeleteInsightsQuestionnairesOptions(string pathQuestionnaireSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -152,7 +152,7 @@ public FetchInsightsQuestionnairesOptions(string pathQuestionnaireSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -188,7 +188,7 @@ public class ReadInsightsQuestionnairesOptions : ReadOptions Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -252,7 +252,7 @@ public UpdateInsightsQuestionnairesOptions(string pathQuestionnaireSid, bool? ac /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/FlexApi/V1/InsightsQuestionnairesQuestionOptions.cs b/src/Twilio/Rest/FlexApi/V1/InsightsQuestionnairesQuestionOptions.cs index be0ebc5e8..b64e5f876 100644 --- a/src/Twilio/Rest/FlexApi/V1/InsightsQuestionnairesQuestionOptions.cs +++ b/src/Twilio/Rest/FlexApi/V1/InsightsQuestionnairesQuestionOptions.cs @@ -62,7 +62,7 @@ public CreateInsightsQuestionnairesQuestionOptions(string categorySid, string qu /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -122,7 +122,7 @@ public DeleteInsightsQuestionnairesQuestionOptions(string pathQuestionSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -158,7 +158,7 @@ public class ReadInsightsQuestionnairesQuestionOptions : ReadOptions Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -224,7 +224,7 @@ public UpdateInsightsQuestionnairesQuestionOptions(string pathQuestionSid, bool? /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/FlexApi/V1/InsightsQuestionnairesQuestionResource.cs b/src/Twilio/Rest/FlexApi/V1/InsightsQuestionnairesQuestionResource.cs index 2dc00d39c..dcde54627 100644 --- a/src/Twilio/Rest/FlexApi/V1/InsightsQuestionnairesQuestionResource.cs +++ b/src/Twilio/Rest/FlexApi/V1/InsightsQuestionnairesQuestionResource.cs @@ -30,6 +30,8 @@ public class InsightsQuestionnairesQuestionResource : Resource { + + private static Request BuildCreateRequest(CreateInsightsQuestionnairesQuestionOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/FlexApi/V1/InsightsQuestionnairesResource.cs b/src/Twilio/Rest/FlexApi/V1/InsightsQuestionnairesResource.cs index 82f6a4308..b572428d6 100644 --- a/src/Twilio/Rest/FlexApi/V1/InsightsQuestionnairesResource.cs +++ b/src/Twilio/Rest/FlexApi/V1/InsightsQuestionnairesResource.cs @@ -30,6 +30,8 @@ public class InsightsQuestionnairesResource : Resource { + + private static Request BuildCreateRequest(CreateInsightsQuestionnairesOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/FlexApi/V1/InsightsSegmentsOptions.cs b/src/Twilio/Rest/FlexApi/V1/InsightsSegmentsOptions.cs index cf6fa11af..e17f4d3cf 100644 --- a/src/Twilio/Rest/FlexApi/V1/InsightsSegmentsOptions.cs +++ b/src/Twilio/Rest/FlexApi/V1/InsightsSegmentsOptions.cs @@ -41,7 +41,7 @@ public class ReadInsightsSegmentsOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/FlexApi/V1/InsightsSegmentsResource.cs b/src/Twilio/Rest/FlexApi/V1/InsightsSegmentsResource.cs index 44120cfd4..d514bbb8a 100644 --- a/src/Twilio/Rest/FlexApi/V1/InsightsSegmentsResource.cs +++ b/src/Twilio/Rest/FlexApi/V1/InsightsSegmentsResource.cs @@ -30,6 +30,8 @@ public class InsightsSegmentsResource : Resource { + + private static Request BuildReadRequest(ReadInsightsSegmentsOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/FlexApi/V1/InsightsSessionOptions.cs b/src/Twilio/Rest/FlexApi/V1/InsightsSessionOptions.cs index 031291b3a..bc4f472c3 100644 --- a/src/Twilio/Rest/FlexApi/V1/InsightsSessionOptions.cs +++ b/src/Twilio/Rest/FlexApi/V1/InsightsSessionOptions.cs @@ -35,7 +35,7 @@ public class CreateInsightsSessionOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/FlexApi/V1/InsightsSessionResource.cs b/src/Twilio/Rest/FlexApi/V1/InsightsSessionResource.cs index 0b19aa123..b08ad0795 100644 --- a/src/Twilio/Rest/FlexApi/V1/InsightsSessionResource.cs +++ b/src/Twilio/Rest/FlexApi/V1/InsightsSessionResource.cs @@ -30,6 +30,8 @@ public class InsightsSessionResource : Resource { + + private static Request BuildCreateRequest(CreateInsightsSessionOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/FlexApi/V1/InsightsSettingsAnswerSetsOptions.cs b/src/Twilio/Rest/FlexApi/V1/InsightsSettingsAnswerSetsOptions.cs index 5dbe8de03..7bd3d50c0 100644 --- a/src/Twilio/Rest/FlexApi/V1/InsightsSettingsAnswerSetsOptions.cs +++ b/src/Twilio/Rest/FlexApi/V1/InsightsSettingsAnswerSetsOptions.cs @@ -35,7 +35,7 @@ public class FetchInsightsSettingsAnswerSetsOptions : IOptions Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/FlexApi/V1/InsightsSettingsAnswerSetsResource.cs b/src/Twilio/Rest/FlexApi/V1/InsightsSettingsAnswerSetsResource.cs index 5bbb74ba3..3a29cdc99 100644 --- a/src/Twilio/Rest/FlexApi/V1/InsightsSettingsAnswerSetsResource.cs +++ b/src/Twilio/Rest/FlexApi/V1/InsightsSettingsAnswerSetsResource.cs @@ -30,6 +30,8 @@ public class InsightsSettingsAnswerSetsResource : Resource { + + private static Request BuildFetchRequest(FetchInsightsSettingsAnswerSetsOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/FlexApi/V1/InsightsSettingsCommentOptions.cs b/src/Twilio/Rest/FlexApi/V1/InsightsSettingsCommentOptions.cs index cdd4b42fa..59d61ae83 100644 --- a/src/Twilio/Rest/FlexApi/V1/InsightsSettingsCommentOptions.cs +++ b/src/Twilio/Rest/FlexApi/V1/InsightsSettingsCommentOptions.cs @@ -35,7 +35,7 @@ public class FetchInsightsSettingsCommentOptions : IOptions Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/FlexApi/V1/InsightsSettingsCommentResource.cs b/src/Twilio/Rest/FlexApi/V1/InsightsSettingsCommentResource.cs index 71af57b76..874a595d7 100644 --- a/src/Twilio/Rest/FlexApi/V1/InsightsSettingsCommentResource.cs +++ b/src/Twilio/Rest/FlexApi/V1/InsightsSettingsCommentResource.cs @@ -30,6 +30,8 @@ public class InsightsSettingsCommentResource : Resource { + + private static Request BuildFetchRequest(FetchInsightsSettingsCommentOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/FlexApi/V1/InsightsUserRolesOptions.cs b/src/Twilio/Rest/FlexApi/V1/InsightsUserRolesOptions.cs index 60ece6a69..9861a8783 100644 --- a/src/Twilio/Rest/FlexApi/V1/InsightsUserRolesOptions.cs +++ b/src/Twilio/Rest/FlexApi/V1/InsightsUserRolesOptions.cs @@ -35,7 +35,7 @@ public class FetchInsightsUserRolesOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/FlexApi/V1/InsightsUserRolesResource.cs b/src/Twilio/Rest/FlexApi/V1/InsightsUserRolesResource.cs index fbf980854..d6937bb15 100644 --- a/src/Twilio/Rest/FlexApi/V1/InsightsUserRolesResource.cs +++ b/src/Twilio/Rest/FlexApi/V1/InsightsUserRolesResource.cs @@ -30,6 +30,8 @@ public class InsightsUserRolesResource : Resource { + + private static Request BuildFetchRequest(FetchInsightsUserRolesOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/FlexApi/V1/Interaction/InteractionChannel/InteractionChannelInviteOptions.cs b/src/Twilio/Rest/FlexApi/V1/Interaction/InteractionChannel/InteractionChannelInviteOptions.cs index ce132eaf8..5b3cc79fb 100644 --- a/src/Twilio/Rest/FlexApi/V1/Interaction/InteractionChannel/InteractionChannelInviteOptions.cs +++ b/src/Twilio/Rest/FlexApi/V1/Interaction/InteractionChannel/InteractionChannelInviteOptions.cs @@ -51,7 +51,7 @@ public CreateInteractionChannelInviteOptions(string pathInteractionSid, string p /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -87,7 +87,7 @@ public ReadInteractionChannelInviteOptions(string pathInteractionSid, string pat /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/FlexApi/V1/Interaction/InteractionChannel/InteractionChannelInviteResource.cs b/src/Twilio/Rest/FlexApi/V1/Interaction/InteractionChannel/InteractionChannelInviteResource.cs index 674780da9..bff8c1122 100644 --- a/src/Twilio/Rest/FlexApi/V1/Interaction/InteractionChannel/InteractionChannelInviteResource.cs +++ b/src/Twilio/Rest/FlexApi/V1/Interaction/InteractionChannel/InteractionChannelInviteResource.cs @@ -30,6 +30,8 @@ public class InteractionChannelInviteResource : Resource { + + private static Request BuildCreateRequest(CreateInteractionChannelInviteOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/FlexApi/V1/Interaction/InteractionChannel/InteractionChannelParticipantOptions.cs b/src/Twilio/Rest/FlexApi/V1/Interaction/InteractionChannel/InteractionChannelParticipantOptions.cs index 362582665..b77244725 100644 --- a/src/Twilio/Rest/FlexApi/V1/Interaction/InteractionChannel/InteractionChannelParticipantOptions.cs +++ b/src/Twilio/Rest/FlexApi/V1/Interaction/InteractionChannel/InteractionChannelParticipantOptions.cs @@ -56,7 +56,7 @@ public CreateInteractionChannelParticipantOptions(string pathInteractionSid, str /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -96,7 +96,7 @@ public ReadInteractionChannelParticipantOptions(string pathInteractionSid, strin /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -143,7 +143,7 @@ public UpdateInteractionChannelParticipantOptions(string pathInteractionSid, str /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/FlexApi/V1/Interaction/InteractionChannel/InteractionChannelParticipantResource.cs b/src/Twilio/Rest/FlexApi/V1/Interaction/InteractionChannel/InteractionChannelParticipantResource.cs index 2361a7d3e..655aa7c94 100644 --- a/src/Twilio/Rest/FlexApi/V1/Interaction/InteractionChannel/InteractionChannelParticipantResource.cs +++ b/src/Twilio/Rest/FlexApi/V1/Interaction/InteractionChannel/InteractionChannelParticipantResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.FlexApi.V1.Interaction.InteractionChannel public class InteractionChannelParticipantResource : Resource { + + public sealed class StatusEnum : StringEnum { private StatusEnum(string value) : base(value) {} diff --git a/src/Twilio/Rest/FlexApi/V1/Interaction/InteractionChannelOptions.cs b/src/Twilio/Rest/FlexApi/V1/Interaction/InteractionChannelOptions.cs index cdea83985..25066d400 100644 --- a/src/Twilio/Rest/FlexApi/V1/Interaction/InteractionChannelOptions.cs +++ b/src/Twilio/Rest/FlexApi/V1/Interaction/InteractionChannelOptions.cs @@ -46,7 +46,7 @@ public FetchInteractionChannelOptions(string pathInteractionSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -75,7 +75,7 @@ public ReadInteractionChannelOptions(string pathInteractionSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -120,7 +120,7 @@ public UpdateInteractionChannelOptions(string pathInteractionSid, string pathSid /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/FlexApi/V1/Interaction/InteractionChannelResource.cs b/src/Twilio/Rest/FlexApi/V1/Interaction/InteractionChannelResource.cs index 9d1ee536c..150e39a59 100644 --- a/src/Twilio/Rest/FlexApi/V1/Interaction/InteractionChannelResource.cs +++ b/src/Twilio/Rest/FlexApi/V1/Interaction/InteractionChannelResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.FlexApi.V1.Interaction public class InteractionChannelResource : Resource { + + public sealed class StatusEnum : StringEnum { private StatusEnum(string value) : base(value) {} diff --git a/src/Twilio/Rest/FlexApi/V1/InteractionOptions.cs b/src/Twilio/Rest/FlexApi/V1/InteractionOptions.cs index fd165fcc5..342ea8e70 100644 --- a/src/Twilio/Rest/FlexApi/V1/InteractionOptions.cs +++ b/src/Twilio/Rest/FlexApi/V1/InteractionOptions.cs @@ -49,7 +49,7 @@ public CreateInteractionOptions(object channel, object routing) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -88,7 +88,7 @@ public FetchInteractionOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/FlexApi/V1/InteractionResource.cs b/src/Twilio/Rest/FlexApi/V1/InteractionResource.cs index 1673c98d9..3d1027f03 100644 --- a/src/Twilio/Rest/FlexApi/V1/InteractionResource.cs +++ b/src/Twilio/Rest/FlexApi/V1/InteractionResource.cs @@ -30,6 +30,8 @@ public class InteractionResource : Resource { + + private static Request BuildCreateRequest(CreateInteractionOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/FlexApi/V1/WebChannelOptions.cs b/src/Twilio/Rest/FlexApi/V1/WebChannelOptions.cs index 1374afa69..3b1255c66 100644 --- a/src/Twilio/Rest/FlexApi/V1/WebChannelOptions.cs +++ b/src/Twilio/Rest/FlexApi/V1/WebChannelOptions.cs @@ -62,7 +62,7 @@ public CreateWebChannelOptions(string flexFlowSid, string identity, string custo /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -113,7 +113,7 @@ public DeleteWebChannelOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -142,7 +142,7 @@ public FetchWebChannelOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -162,7 +162,7 @@ public class ReadWebChannelOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -200,7 +200,7 @@ public UpdateWebChannelOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/FlexApi/V1/WebChannelResource.cs b/src/Twilio/Rest/FlexApi/V1/WebChannelResource.cs index 272c28f15..cc6361247 100644 --- a/src/Twilio/Rest/FlexApi/V1/WebChannelResource.cs +++ b/src/Twilio/Rest/FlexApi/V1/WebChannelResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.FlexApi.V1 public class WebChannelResource : Resource { + + public sealed class ChatStatusEnum : StringEnum { private ChatStatusEnum(string value) : base(value) {} diff --git a/src/Twilio/Rest/FlexApi/V2/WebChannelsOptions.cs b/src/Twilio/Rest/FlexApi/V2/WebChannelsOptions.cs index 51eb29057..e67f38bea 100644 --- a/src/Twilio/Rest/FlexApi/V2/WebChannelsOptions.cs +++ b/src/Twilio/Rest/FlexApi/V2/WebChannelsOptions.cs @@ -50,7 +50,7 @@ public CreateWebChannelsOptions(string addressSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/FlexApi/V2/WebChannelsResource.cs b/src/Twilio/Rest/FlexApi/V2/WebChannelsResource.cs index 47903d5d2..302867c60 100644 --- a/src/Twilio/Rest/FlexApi/V2/WebChannelsResource.cs +++ b/src/Twilio/Rest/FlexApi/V2/WebChannelsResource.cs @@ -30,6 +30,8 @@ public class WebChannelsResource : Resource { + + private static Request BuildCreateRequest(CreateWebChannelsOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/FrontlineApi/V1/UserOptions.cs b/src/Twilio/Rest/FrontlineApi/V1/UserOptions.cs index 46c3624c5..a502d3759 100644 --- a/src/Twilio/Rest/FrontlineApi/V1/UserOptions.cs +++ b/src/Twilio/Rest/FrontlineApi/V1/UserOptions.cs @@ -41,7 +41,7 @@ public FetchUserOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -82,7 +82,7 @@ public UpdateUserOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/FrontlineApi/V1/UserResource.cs b/src/Twilio/Rest/FrontlineApi/V1/UserResource.cs index 25a7ec995..cbabdd45e 100644 --- a/src/Twilio/Rest/FrontlineApi/V1/UserResource.cs +++ b/src/Twilio/Rest/FrontlineApi/V1/UserResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.FrontlineApi.V1 public class UserResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StateTypeEnum : StringEnum { diff --git a/src/Twilio/Rest/Insights/V1/Call/AnnotationOptions.cs b/src/Twilio/Rest/Insights/V1/Call/AnnotationOptions.cs index 78ea7dda4..f5dbf4591 100644 --- a/src/Twilio/Rest/Insights/V1/Call/AnnotationOptions.cs +++ b/src/Twilio/Rest/Insights/V1/Call/AnnotationOptions.cs @@ -41,7 +41,7 @@ public FetchAnnotationOptions(string pathCallSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -91,7 +91,7 @@ public UpdateAnnotationOptions(string pathCallSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Insights/V1/Call/AnnotationResource.cs b/src/Twilio/Rest/Insights/V1/Call/AnnotationResource.cs index ad47f3f18..24cc18f8a 100644 --- a/src/Twilio/Rest/Insights/V1/Call/AnnotationResource.cs +++ b/src/Twilio/Rest/Insights/V1/Call/AnnotationResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Insights.V1.Call public class AnnotationResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class ConnectivityIssueEnum : StringEnum { diff --git a/src/Twilio/Rest/Insights/V1/Call/CallSummaryOptions.cs b/src/Twilio/Rest/Insights/V1/Call/CallSummaryOptions.cs index 87209cd60..930fc343e 100644 --- a/src/Twilio/Rest/Insights/V1/Call/CallSummaryOptions.cs +++ b/src/Twilio/Rest/Insights/V1/Call/CallSummaryOptions.cs @@ -44,7 +44,7 @@ public FetchCallSummaryOptions(string pathCallSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Insights/V1/Call/CallSummaryResource.cs b/src/Twilio/Rest/Insights/V1/Call/CallSummaryResource.cs index 75f8a38b5..997e146f9 100644 --- a/src/Twilio/Rest/Insights/V1/Call/CallSummaryResource.cs +++ b/src/Twilio/Rest/Insights/V1/Call/CallSummaryResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Insights.V1.Call public class CallSummaryResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class ProcessingStateEnum : StringEnum { diff --git a/src/Twilio/Rest/Insights/V1/Call/EventOptions.cs b/src/Twilio/Rest/Insights/V1/Call/EventOptions.cs index 950b7ff31..b5cf3468c 100644 --- a/src/Twilio/Rest/Insights/V1/Call/EventOptions.cs +++ b/src/Twilio/Rest/Insights/V1/Call/EventOptions.cs @@ -44,7 +44,7 @@ public ReadEventOptions(string pathCallSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Insights/V1/Call/EventResource.cs b/src/Twilio/Rest/Insights/V1/Call/EventResource.cs index 655dd8d21..74df5cf27 100644 --- a/src/Twilio/Rest/Insights/V1/Call/EventResource.cs +++ b/src/Twilio/Rest/Insights/V1/Call/EventResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Insights.V1.Call public class EventResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class LevelEnum : StringEnum { diff --git a/src/Twilio/Rest/Insights/V1/Call/MetricOptions.cs b/src/Twilio/Rest/Insights/V1/Call/MetricOptions.cs index 9ffe19958..9c3fcbd8e 100644 --- a/src/Twilio/Rest/Insights/V1/Call/MetricOptions.cs +++ b/src/Twilio/Rest/Insights/V1/Call/MetricOptions.cs @@ -47,7 +47,7 @@ public ReadMetricOptions(string pathCallSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Insights/V1/Call/MetricResource.cs b/src/Twilio/Rest/Insights/V1/Call/MetricResource.cs index b63018211..3c302b2a8 100644 --- a/src/Twilio/Rest/Insights/V1/Call/MetricResource.cs +++ b/src/Twilio/Rest/Insights/V1/Call/MetricResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Insights.V1.Call public class MetricResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StreamDirectionEnum : StringEnum { diff --git a/src/Twilio/Rest/Insights/V1/CallOptions.cs b/src/Twilio/Rest/Insights/V1/CallOptions.cs index a59a1006c..f81c19c5c 100644 --- a/src/Twilio/Rest/Insights/V1/CallOptions.cs +++ b/src/Twilio/Rest/Insights/V1/CallOptions.cs @@ -41,7 +41,7 @@ public FetchCallOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Insights/V1/CallResource.cs b/src/Twilio/Rest/Insights/V1/CallResource.cs index bb147646b..3d96bc6dd 100644 --- a/src/Twilio/Rest/Insights/V1/CallResource.cs +++ b/src/Twilio/Rest/Insights/V1/CallResource.cs @@ -30,6 +30,8 @@ public class CallResource : Resource { + + private static Request BuildFetchRequest(FetchCallOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Insights/V1/CallSummariesOptions.cs b/src/Twilio/Rest/Insights/V1/CallSummariesOptions.cs index 85148106e..2b061c21d 100644 --- a/src/Twilio/Rest/Insights/V1/CallSummariesOptions.cs +++ b/src/Twilio/Rest/Insights/V1/CallSummariesOptions.cs @@ -104,7 +104,7 @@ public class ReadCallSummariesOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Insights/V1/CallSummariesResource.cs b/src/Twilio/Rest/Insights/V1/CallSummariesResource.cs index 910303896..e3b4f6c9d 100644 --- a/src/Twilio/Rest/Insights/V1/CallSummariesResource.cs +++ b/src/Twilio/Rest/Insights/V1/CallSummariesResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Insights.V1 public class CallSummariesResource : Resource { + + public sealed class ProcessingStateRequestEnum : StringEnum { private ProcessingStateRequestEnum(string value) : base(value) {} diff --git a/src/Twilio/Rest/Insights/V1/Conference/ConferenceParticipantOptions.cs b/src/Twilio/Rest/Insights/V1/Conference/ConferenceParticipantOptions.cs index 61b246e9a..06cc27912 100644 --- a/src/Twilio/Rest/Insights/V1/Conference/ConferenceParticipantOptions.cs +++ b/src/Twilio/Rest/Insights/V1/Conference/ConferenceParticipantOptions.cs @@ -52,7 +52,7 @@ public FetchConferenceParticipantOptions(string pathConferenceSid, string pathPa /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -98,7 +98,7 @@ public ReadConferenceParticipantOptions(string pathConferenceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Insights/V1/Conference/ConferenceParticipantResource.cs b/src/Twilio/Rest/Insights/V1/Conference/ConferenceParticipantResource.cs index e40f00a85..15b64364b 100644 --- a/src/Twilio/Rest/Insights/V1/Conference/ConferenceParticipantResource.cs +++ b/src/Twilio/Rest/Insights/V1/Conference/ConferenceParticipantResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Insights.V1.Conference public class ConferenceParticipantResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class CallStatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Insights/V1/ConferenceOptions.cs b/src/Twilio/Rest/Insights/V1/ConferenceOptions.cs index 7d49fe943..af515a514 100644 --- a/src/Twilio/Rest/Insights/V1/ConferenceOptions.cs +++ b/src/Twilio/Rest/Insights/V1/ConferenceOptions.cs @@ -41,7 +41,7 @@ public FetchConferenceOptions(string pathConferenceSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -91,7 +91,7 @@ public class ReadConferenceOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Insights/V1/ConferenceResource.cs b/src/Twilio/Rest/Insights/V1/ConferenceResource.cs index 57584059f..cdb232d84 100644 --- a/src/Twilio/Rest/Insights/V1/ConferenceResource.cs +++ b/src/Twilio/Rest/Insights/V1/ConferenceResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Insights.V1 public class ConferenceResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class RegionEnum : StringEnum { diff --git a/src/Twilio/Rest/Insights/V1/Room/ParticipantOptions.cs b/src/Twilio/Rest/Insights/V1/Room/ParticipantOptions.cs index e7448eedc..dffa1b31e 100644 --- a/src/Twilio/Rest/Insights/V1/Room/ParticipantOptions.cs +++ b/src/Twilio/Rest/Insights/V1/Room/ParticipantOptions.cs @@ -46,7 +46,7 @@ public FetchParticipantOptions(string pathRoomSid, string pathParticipantSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -75,7 +75,7 @@ public ReadParticipantOptions(string pathRoomSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Insights/V1/Room/ParticipantResource.cs b/src/Twilio/Rest/Insights/V1/Room/ParticipantResource.cs index 6b3af9bae..a21e64038 100644 --- a/src/Twilio/Rest/Insights/V1/Room/ParticipantResource.cs +++ b/src/Twilio/Rest/Insights/V1/Room/ParticipantResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Insights.V1.Room public class ParticipantResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class TwilioRealmEnum : StringEnum { diff --git a/src/Twilio/Rest/Insights/V1/RoomOptions.cs b/src/Twilio/Rest/Insights/V1/RoomOptions.cs index f506e8dff..7ef63686f 100644 --- a/src/Twilio/Rest/Insights/V1/RoomOptions.cs +++ b/src/Twilio/Rest/Insights/V1/RoomOptions.cs @@ -41,7 +41,7 @@ public FetchRoomOptions(string pathRoomSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -76,7 +76,7 @@ public class ReadRoomOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Insights/V1/RoomResource.cs b/src/Twilio/Rest/Insights/V1/RoomResource.cs index 34722819c..f9faf0433 100644 --- a/src/Twilio/Rest/Insights/V1/RoomResource.cs +++ b/src/Twilio/Rest/Insights/V1/RoomResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Insights.V1 public class RoomResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class TwilioRealmEnum : StringEnum { diff --git a/src/Twilio/Rest/Insights/V1/SettingOptions.cs b/src/Twilio/Rest/Insights/V1/SettingOptions.cs index 1eeb5e6dc..dcce27f09 100644 --- a/src/Twilio/Rest/Insights/V1/SettingOptions.cs +++ b/src/Twilio/Rest/Insights/V1/SettingOptions.cs @@ -35,7 +35,7 @@ public class FetchSettingOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -68,7 +68,7 @@ public class UpdateSettingOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Insights/V1/SettingResource.cs b/src/Twilio/Rest/Insights/V1/SettingResource.cs index 8369d5d7d..ecf9e3e1c 100644 --- a/src/Twilio/Rest/Insights/V1/SettingResource.cs +++ b/src/Twilio/Rest/Insights/V1/SettingResource.cs @@ -30,6 +30,8 @@ public class SettingResource : Resource { + + private static Request BuildFetchRequest(FetchSettingOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Intelligence/V2/ServiceOptions.cs b/src/Twilio/Rest/Intelligence/V2/ServiceOptions.cs index 044a4a50a..deca451a6 100644 --- a/src/Twilio/Rest/Intelligence/V2/ServiceOptions.cs +++ b/src/Twilio/Rest/Intelligence/V2/ServiceOptions.cs @@ -65,7 +65,7 @@ public CreateServiceOptions(string uniqueName) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -128,7 +128,7 @@ public DeleteServiceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -157,7 +157,7 @@ public FetchServiceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -177,7 +177,7 @@ public class ReadServiceOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -239,7 +239,7 @@ public UpdateServiceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Intelligence/V2/ServiceResource.cs b/src/Twilio/Rest/Intelligence/V2/ServiceResource.cs index fe6ad4e12..cd05d10f2 100644 --- a/src/Twilio/Rest/Intelligence/V2/ServiceResource.cs +++ b/src/Twilio/Rest/Intelligence/V2/ServiceResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Intelligence.V2 public class ServiceResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class HttpMethodEnum : StringEnum { diff --git a/src/Twilio/Rest/Intelligence/V2/Transcript/MediaOptions.cs b/src/Twilio/Rest/Intelligence/V2/Transcript/MediaOptions.cs index 854ccd743..f37728c8b 100644 --- a/src/Twilio/Rest/Intelligence/V2/Transcript/MediaOptions.cs +++ b/src/Twilio/Rest/Intelligence/V2/Transcript/MediaOptions.cs @@ -44,7 +44,7 @@ public FetchMediaOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Intelligence/V2/Transcript/MediaResource.cs b/src/Twilio/Rest/Intelligence/V2/Transcript/MediaResource.cs index b7a44da56..7f665d59b 100644 --- a/src/Twilio/Rest/Intelligence/V2/Transcript/MediaResource.cs +++ b/src/Twilio/Rest/Intelligence/V2/Transcript/MediaResource.cs @@ -30,6 +30,8 @@ public class MediaResource : Resource { + + private static Request BuildFetchRequest(FetchMediaOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Intelligence/V2/Transcript/OperatorResultOptions.cs b/src/Twilio/Rest/Intelligence/V2/Transcript/OperatorResultOptions.cs index 416684348..3fd7dad48 100644 --- a/src/Twilio/Rest/Intelligence/V2/Transcript/OperatorResultOptions.cs +++ b/src/Twilio/Rest/Intelligence/V2/Transcript/OperatorResultOptions.cs @@ -49,7 +49,7 @@ public FetchOperatorResultOptions(string pathTranscriptSid, string pathOperatorS /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -85,7 +85,7 @@ public ReadOperatorResultOptions(string pathTranscriptSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Intelligence/V2/Transcript/OperatorResultResource.cs b/src/Twilio/Rest/Intelligence/V2/Transcript/OperatorResultResource.cs index e4198a72d..f7f35dc7c 100644 --- a/src/Twilio/Rest/Intelligence/V2/Transcript/OperatorResultResource.cs +++ b/src/Twilio/Rest/Intelligence/V2/Transcript/OperatorResultResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Intelligence.V2.Transcript public class OperatorResultResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class OperatorTypeEnum : StringEnum { diff --git a/src/Twilio/Rest/Intelligence/V2/Transcript/SentenceOptions.cs b/src/Twilio/Rest/Intelligence/V2/Transcript/SentenceOptions.cs index d763e6019..cd5326f64 100644 --- a/src/Twilio/Rest/Intelligence/V2/Transcript/SentenceOptions.cs +++ b/src/Twilio/Rest/Intelligence/V2/Transcript/SentenceOptions.cs @@ -44,7 +44,7 @@ public ReadSentenceOptions(string pathTranscriptSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Intelligence/V2/Transcript/SentenceResource.cs b/src/Twilio/Rest/Intelligence/V2/Transcript/SentenceResource.cs index 1095571f6..cff9f92e3 100644 --- a/src/Twilio/Rest/Intelligence/V2/Transcript/SentenceResource.cs +++ b/src/Twilio/Rest/Intelligence/V2/Transcript/SentenceResource.cs @@ -30,6 +30,8 @@ public class SentenceResource : Resource { + + private static Request BuildReadRequest(ReadSentenceOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Intelligence/V2/TranscriptOptions.cs b/src/Twilio/Rest/Intelligence/V2/TranscriptOptions.cs index 9e3c84226..95616b29e 100644 --- a/src/Twilio/Rest/Intelligence/V2/TranscriptOptions.cs +++ b/src/Twilio/Rest/Intelligence/V2/TranscriptOptions.cs @@ -52,7 +52,7 @@ public CreateTranscriptOptions(string serviceSid, object channel) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -95,7 +95,7 @@ public DeleteTranscriptOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -127,7 +127,7 @@ public FetchTranscriptOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -175,7 +175,7 @@ public class ReadTranscriptOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Intelligence/V2/TranscriptResource.cs b/src/Twilio/Rest/Intelligence/V2/TranscriptResource.cs index 25da8b814..c9b95cfc3 100644 --- a/src/Twilio/Rest/Intelligence/V2/TranscriptResource.cs +++ b/src/Twilio/Rest/Intelligence/V2/TranscriptResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Intelligence.V2 public class TranscriptResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/IpMessaging/V1/CredentialOptions.cs b/src/Twilio/Rest/IpMessaging/V1/CredentialOptions.cs index 80a401ef9..2715c7274 100644 --- a/src/Twilio/Rest/IpMessaging/V1/CredentialOptions.cs +++ b/src/Twilio/Rest/IpMessaging/V1/CredentialOptions.cs @@ -59,7 +59,7 @@ public CreateCredentialOptions(CredentialResource.PushServiceEnum type) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -114,7 +114,7 @@ public DeleteCredentialOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -143,7 +143,7 @@ public FetchCredentialOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -163,7 +163,7 @@ public class ReadCredentialOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -213,7 +213,7 @@ public UpdateCredentialOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/IpMessaging/V1/CredentialResource.cs b/src/Twilio/Rest/IpMessaging/V1/CredentialResource.cs index e3f031420..664ae8c34 100644 --- a/src/Twilio/Rest/IpMessaging/V1/CredentialResource.cs +++ b/src/Twilio/Rest/IpMessaging/V1/CredentialResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.IpMessaging.V1 public class CredentialResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class PushServiceEnum : StringEnum { diff --git a/src/Twilio/Rest/IpMessaging/V1/Service/Channel/InviteOptions.cs b/src/Twilio/Rest/IpMessaging/V1/Service/Channel/InviteOptions.cs index 19b9eba8d..c2a32c574 100644 --- a/src/Twilio/Rest/IpMessaging/V1/Service/Channel/InviteOptions.cs +++ b/src/Twilio/Rest/IpMessaging/V1/Service/Channel/InviteOptions.cs @@ -54,7 +54,7 @@ public CreateInviteOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -99,7 +99,7 @@ public DeleteInviteOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -138,7 +138,7 @@ public FetchInviteOptions(string pathServiceSid, string pathChannelSid, string p /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -176,7 +176,7 @@ public ReadInviteOptions(string pathServiceSid, string pathChannelSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/IpMessaging/V1/Service/Channel/InviteResource.cs b/src/Twilio/Rest/IpMessaging/V1/Service/Channel/InviteResource.cs index bc0d0e6c2..3bac23d12 100644 --- a/src/Twilio/Rest/IpMessaging/V1/Service/Channel/InviteResource.cs +++ b/src/Twilio/Rest/IpMessaging/V1/Service/Channel/InviteResource.cs @@ -30,6 +30,8 @@ public class InviteResource : Resource { + + private static Request BuildCreateRequest(CreateInviteOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/IpMessaging/V1/Service/Channel/MemberOptions.cs b/src/Twilio/Rest/IpMessaging/V1/Service/Channel/MemberOptions.cs index 1ab9015c7..6753e5236 100644 --- a/src/Twilio/Rest/IpMessaging/V1/Service/Channel/MemberOptions.cs +++ b/src/Twilio/Rest/IpMessaging/V1/Service/Channel/MemberOptions.cs @@ -54,7 +54,7 @@ public CreateMemberOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -99,7 +99,7 @@ public DeleteMemberOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -138,7 +138,7 @@ public FetchMemberOptions(string pathServiceSid, string pathChannelSid, string p /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -176,7 +176,7 @@ public ReadMemberOptions(string pathServiceSid, string pathChannelSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -228,7 +228,7 @@ public UpdateMemberOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/IpMessaging/V1/Service/Channel/MemberResource.cs b/src/Twilio/Rest/IpMessaging/V1/Service/Channel/MemberResource.cs index 2db464770..c865013b8 100644 --- a/src/Twilio/Rest/IpMessaging/V1/Service/Channel/MemberResource.cs +++ b/src/Twilio/Rest/IpMessaging/V1/Service/Channel/MemberResource.cs @@ -30,6 +30,8 @@ public class MemberResource : Resource { + + private static Request BuildCreateRequest(CreateMemberOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/IpMessaging/V1/Service/Channel/MessageOptions.cs b/src/Twilio/Rest/IpMessaging/V1/Service/Channel/MessageOptions.cs index 2572f581f..c02fc3fe4 100644 --- a/src/Twilio/Rest/IpMessaging/V1/Service/Channel/MessageOptions.cs +++ b/src/Twilio/Rest/IpMessaging/V1/Service/Channel/MessageOptions.cs @@ -57,7 +57,7 @@ public CreateMessageOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -106,7 +106,7 @@ public DeleteMessageOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -145,7 +145,7 @@ public FetchMessageOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -182,7 +182,7 @@ public ReadMessageOptions(string pathServiceSid, string pathChannelSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -234,7 +234,7 @@ public UpdateMessageOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/IpMessaging/V1/Service/Channel/MessageResource.cs b/src/Twilio/Rest/IpMessaging/V1/Service/Channel/MessageResource.cs index 89ec3ce84..03f9c40d6 100644 --- a/src/Twilio/Rest/IpMessaging/V1/Service/Channel/MessageResource.cs +++ b/src/Twilio/Rest/IpMessaging/V1/Service/Channel/MessageResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.IpMessaging.V1.Service.Channel public class MessageResource : Resource { + + public sealed class OrderTypeEnum : StringEnum { private OrderTypeEnum(string value) : base(value) {} diff --git a/src/Twilio/Rest/IpMessaging/V1/Service/ChannelOptions.cs b/src/Twilio/Rest/IpMessaging/V1/Service/ChannelOptions.cs index 906f6cea0..463a905c0 100644 --- a/src/Twilio/Rest/IpMessaging/V1/Service/ChannelOptions.cs +++ b/src/Twilio/Rest/IpMessaging/V1/Service/ChannelOptions.cs @@ -53,7 +53,7 @@ public CreateChannelOptions(string pathServiceSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -101,7 +101,7 @@ public DeleteChannelOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -135,7 +135,7 @@ public FetchChannelOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -168,7 +168,7 @@ public ReadChannelOptions(string pathServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -218,7 +218,7 @@ public UpdateChannelOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/IpMessaging/V1/Service/ChannelResource.cs b/src/Twilio/Rest/IpMessaging/V1/Service/ChannelResource.cs index 21e2ce46b..19ffbe92f 100644 --- a/src/Twilio/Rest/IpMessaging/V1/Service/ChannelResource.cs +++ b/src/Twilio/Rest/IpMessaging/V1/Service/ChannelResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.IpMessaging.V1.Service public class ChannelResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class ChannelTypeEnum : StringEnum { diff --git a/src/Twilio/Rest/IpMessaging/V1/Service/RoleOptions.cs b/src/Twilio/Rest/IpMessaging/V1/Service/RoleOptions.cs index 8a4cd9713..6c2c4a45c 100644 --- a/src/Twilio/Rest/IpMessaging/V1/Service/RoleOptions.cs +++ b/src/Twilio/Rest/IpMessaging/V1/Service/RoleOptions.cs @@ -56,7 +56,7 @@ public CreateRoleOptions(string pathServiceSid, string friendlyName, RoleResourc /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -100,7 +100,7 @@ public DeleteRoleOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -134,7 +134,7 @@ public FetchRoleOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -163,7 +163,7 @@ public ReadRoleOptions(string pathServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -205,7 +205,7 @@ public UpdateRoleOptions(string pathServiceSid, string pathSid, List per /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/IpMessaging/V1/Service/RoleResource.cs b/src/Twilio/Rest/IpMessaging/V1/Service/RoleResource.cs index 29f3be9b0..8ff67e137 100644 --- a/src/Twilio/Rest/IpMessaging/V1/Service/RoleResource.cs +++ b/src/Twilio/Rest/IpMessaging/V1/Service/RoleResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.IpMessaging.V1.Service public class RoleResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class RoleTypeEnum : StringEnum { diff --git a/src/Twilio/Rest/IpMessaging/V1/Service/User/UserChannelOptions.cs b/src/Twilio/Rest/IpMessaging/V1/Service/User/UserChannelOptions.cs index 43b4b3f5d..8258433d4 100644 --- a/src/Twilio/Rest/IpMessaging/V1/Service/User/UserChannelOptions.cs +++ b/src/Twilio/Rest/IpMessaging/V1/Service/User/UserChannelOptions.cs @@ -46,7 +46,7 @@ public ReadUserChannelOptions(string pathServiceSid, string pathUserSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/IpMessaging/V1/Service/User/UserChannelResource.cs b/src/Twilio/Rest/IpMessaging/V1/Service/User/UserChannelResource.cs index 9b2e42763..c41dfc811 100644 --- a/src/Twilio/Rest/IpMessaging/V1/Service/User/UserChannelResource.cs +++ b/src/Twilio/Rest/IpMessaging/V1/Service/User/UserChannelResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.IpMessaging.V1.Service.User public class UserChannelResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class ChannelStatusEnum : StringEnum { diff --git a/src/Twilio/Rest/IpMessaging/V1/Service/UserOptions.cs b/src/Twilio/Rest/IpMessaging/V1/Service/UserOptions.cs index 190b82ba1..bb064fccf 100644 --- a/src/Twilio/Rest/IpMessaging/V1/Service/UserOptions.cs +++ b/src/Twilio/Rest/IpMessaging/V1/Service/UserOptions.cs @@ -55,7 +55,7 @@ public CreateUserOptions(string pathServiceSid, string identity) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -103,7 +103,7 @@ public DeleteUserOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -137,7 +137,7 @@ public FetchUserOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -166,7 +166,7 @@ public ReadUserOptions(string pathServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -212,7 +212,7 @@ public UpdateUserOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/IpMessaging/V1/Service/UserResource.cs b/src/Twilio/Rest/IpMessaging/V1/Service/UserResource.cs index edd384f51..d10557ec5 100644 --- a/src/Twilio/Rest/IpMessaging/V1/Service/UserResource.cs +++ b/src/Twilio/Rest/IpMessaging/V1/Service/UserResource.cs @@ -30,6 +30,8 @@ public class UserResource : Resource { + + private static Request BuildCreateRequest(CreateUserOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/IpMessaging/V1/ServiceOptions.cs b/src/Twilio/Rest/IpMessaging/V1/ServiceOptions.cs index 051c22850..6ec23bfad 100644 --- a/src/Twilio/Rest/IpMessaging/V1/ServiceOptions.cs +++ b/src/Twilio/Rest/IpMessaging/V1/ServiceOptions.cs @@ -41,7 +41,7 @@ public CreateServiceOptions(string friendlyName) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -72,7 +72,7 @@ public DeleteServiceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -101,7 +101,7 @@ public FetchServiceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -121,7 +121,7 @@ public class ReadServiceOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -316,7 +316,7 @@ public UpdateServiceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/IpMessaging/V1/ServiceResource.cs b/src/Twilio/Rest/IpMessaging/V1/ServiceResource.cs index 5308e8fb0..e8bd67048 100644 --- a/src/Twilio/Rest/IpMessaging/V1/ServiceResource.cs +++ b/src/Twilio/Rest/IpMessaging/V1/ServiceResource.cs @@ -30,6 +30,8 @@ public class ServiceResource : Resource { + + private static Request BuildCreateRequest(CreateServiceOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/IpMessaging/V2/CredentialOptions.cs b/src/Twilio/Rest/IpMessaging/V2/CredentialOptions.cs index db3df803c..1ce043394 100644 --- a/src/Twilio/Rest/IpMessaging/V2/CredentialOptions.cs +++ b/src/Twilio/Rest/IpMessaging/V2/CredentialOptions.cs @@ -59,7 +59,7 @@ public CreateCredentialOptions(CredentialResource.PushServiceEnum type) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -114,7 +114,7 @@ public DeleteCredentialOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -143,7 +143,7 @@ public FetchCredentialOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -163,7 +163,7 @@ public class ReadCredentialOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -213,7 +213,7 @@ public UpdateCredentialOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/IpMessaging/V2/CredentialResource.cs b/src/Twilio/Rest/IpMessaging/V2/CredentialResource.cs index d40717391..ca472d0bd 100644 --- a/src/Twilio/Rest/IpMessaging/V2/CredentialResource.cs +++ b/src/Twilio/Rest/IpMessaging/V2/CredentialResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.IpMessaging.V2 public class CredentialResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class PushServiceEnum : StringEnum { diff --git a/src/Twilio/Rest/IpMessaging/V2/Service/BindingOptions.cs b/src/Twilio/Rest/IpMessaging/V2/Service/BindingOptions.cs index 19b9ae86a..836bf89ef 100644 --- a/src/Twilio/Rest/IpMessaging/V2/Service/BindingOptions.cs +++ b/src/Twilio/Rest/IpMessaging/V2/Service/BindingOptions.cs @@ -46,7 +46,7 @@ public DeleteBindingOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -80,7 +80,7 @@ public FetchBindingOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -117,7 +117,7 @@ public ReadBindingOptions(string pathServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/IpMessaging/V2/Service/BindingResource.cs b/src/Twilio/Rest/IpMessaging/V2/Service/BindingResource.cs index a1e266603..31495aea8 100644 --- a/src/Twilio/Rest/IpMessaging/V2/Service/BindingResource.cs +++ b/src/Twilio/Rest/IpMessaging/V2/Service/BindingResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.IpMessaging.V2.Service public class BindingResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class BindingTypeEnum : StringEnum { diff --git a/src/Twilio/Rest/IpMessaging/V2/Service/Channel/InviteOptions.cs b/src/Twilio/Rest/IpMessaging/V2/Service/Channel/InviteOptions.cs index b201ba50b..ec40930f9 100644 --- a/src/Twilio/Rest/IpMessaging/V2/Service/Channel/InviteOptions.cs +++ b/src/Twilio/Rest/IpMessaging/V2/Service/Channel/InviteOptions.cs @@ -54,7 +54,7 @@ public CreateInviteOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -99,7 +99,7 @@ public DeleteInviteOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -138,7 +138,7 @@ public FetchInviteOptions(string pathServiceSid, string pathChannelSid, string p /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -176,7 +176,7 @@ public ReadInviteOptions(string pathServiceSid, string pathChannelSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/IpMessaging/V2/Service/Channel/InviteResource.cs b/src/Twilio/Rest/IpMessaging/V2/Service/Channel/InviteResource.cs index c23797b58..088412884 100644 --- a/src/Twilio/Rest/IpMessaging/V2/Service/Channel/InviteResource.cs +++ b/src/Twilio/Rest/IpMessaging/V2/Service/Channel/InviteResource.cs @@ -30,6 +30,8 @@ public class InviteResource : Resource { + + private static Request BuildCreateRequest(CreateInviteOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/IpMessaging/V2/Service/Channel/MemberOptions.cs b/src/Twilio/Rest/IpMessaging/V2/Service/Channel/MemberOptions.cs index 6075abb68..8fce78d0b 100644 --- a/src/Twilio/Rest/IpMessaging/V2/Service/Channel/MemberOptions.cs +++ b/src/Twilio/Rest/IpMessaging/V2/Service/Channel/MemberOptions.cs @@ -72,7 +72,7 @@ public CreateMemberOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -150,7 +150,7 @@ public DeleteMemberOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -199,7 +199,7 @@ public FetchMemberOptions(string pathServiceSid, string pathChannelSid, string p /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -237,7 +237,7 @@ public ReadMemberOptions(string pathServiceSid, string pathChannelSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -304,7 +304,7 @@ public UpdateMemberOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/IpMessaging/V2/Service/Channel/MemberResource.cs b/src/Twilio/Rest/IpMessaging/V2/Service/Channel/MemberResource.cs index 7404d8bee..876d68eaf 100644 --- a/src/Twilio/Rest/IpMessaging/V2/Service/Channel/MemberResource.cs +++ b/src/Twilio/Rest/IpMessaging/V2/Service/Channel/MemberResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.IpMessaging.V2.Service.Channel public class MemberResource : Resource { + + public sealed class WebhookEnabledTypeEnum : StringEnum { private WebhookEnabledTypeEnum(string value) : base(value) {} diff --git a/src/Twilio/Rest/IpMessaging/V2/Service/Channel/MessageOptions.cs b/src/Twilio/Rest/IpMessaging/V2/Service/Channel/MessageOptions.cs index ac0f338da..8fe58f2aa 100644 --- a/src/Twilio/Rest/IpMessaging/V2/Service/Channel/MessageOptions.cs +++ b/src/Twilio/Rest/IpMessaging/V2/Service/Channel/MessageOptions.cs @@ -70,7 +70,7 @@ public CreateMessageOptions(string pathServiceSid, string pathChannelSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -148,7 +148,7 @@ public DeleteMessageOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -197,7 +197,7 @@ public FetchMessageOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -234,7 +234,7 @@ public ReadMessageOptions(string pathServiceSid, string pathChannelSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -301,7 +301,7 @@ public UpdateMessageOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/IpMessaging/V2/Service/Channel/MessageResource.cs b/src/Twilio/Rest/IpMessaging/V2/Service/Channel/MessageResource.cs index 3a998785e..e05db5d5e 100644 --- a/src/Twilio/Rest/IpMessaging/V2/Service/Channel/MessageResource.cs +++ b/src/Twilio/Rest/IpMessaging/V2/Service/Channel/MessageResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.IpMessaging.V2.Service.Channel public class MessageResource : Resource { + + public sealed class WebhookEnabledTypeEnum : StringEnum { private WebhookEnabledTypeEnum(string value) : base(value) {} diff --git a/src/Twilio/Rest/IpMessaging/V2/Service/Channel/WebhookOptions.cs b/src/Twilio/Rest/IpMessaging/V2/Service/Channel/WebhookOptions.cs index e80ee8721..5be164dbd 100644 --- a/src/Twilio/Rest/IpMessaging/V2/Service/Channel/WebhookOptions.cs +++ b/src/Twilio/Rest/IpMessaging/V2/Service/Channel/WebhookOptions.cs @@ -71,7 +71,7 @@ public CreateWebhookOptions(string pathServiceSid, string pathChannelSid, Webhoo /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -136,7 +136,7 @@ public DeleteWebhookOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -175,7 +175,7 @@ public FetchWebhookOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -209,7 +209,7 @@ public ReadWebhookOptions(string pathServiceSid, string pathChannelSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -271,7 +271,7 @@ public UpdateWebhookOptions(string pathServiceSid, string pathChannelSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/IpMessaging/V2/Service/Channel/WebhookResource.cs b/src/Twilio/Rest/IpMessaging/V2/Service/Channel/WebhookResource.cs index 629ee7912..7dd5f643c 100644 --- a/src/Twilio/Rest/IpMessaging/V2/Service/Channel/WebhookResource.cs +++ b/src/Twilio/Rest/IpMessaging/V2/Service/Channel/WebhookResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.IpMessaging.V2.Service.Channel public class WebhookResource : Resource { + + public sealed class MethodEnum : StringEnum { private MethodEnum(string value) : base(value) {} diff --git a/src/Twilio/Rest/IpMessaging/V2/Service/ChannelOptions.cs b/src/Twilio/Rest/IpMessaging/V2/Service/ChannelOptions.cs index ffefd10ce..ecc5f0f94 100644 --- a/src/Twilio/Rest/IpMessaging/V2/Service/ChannelOptions.cs +++ b/src/Twilio/Rest/IpMessaging/V2/Service/ChannelOptions.cs @@ -65,7 +65,7 @@ public CreateChannelOptions(string pathServiceSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -138,7 +138,7 @@ public DeleteChannelOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -182,7 +182,7 @@ public FetchChannelOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -215,7 +215,7 @@ public ReadChannelOptions(string pathServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -277,7 +277,7 @@ public UpdateChannelOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/IpMessaging/V2/Service/ChannelResource.cs b/src/Twilio/Rest/IpMessaging/V2/Service/ChannelResource.cs index 07e4c350b..169588fab 100644 --- a/src/Twilio/Rest/IpMessaging/V2/Service/ChannelResource.cs +++ b/src/Twilio/Rest/IpMessaging/V2/Service/ChannelResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.IpMessaging.V2.Service public class ChannelResource : Resource { + + public sealed class WebhookEnabledTypeEnum : StringEnum { private WebhookEnabledTypeEnum(string value) : base(value) {} diff --git a/src/Twilio/Rest/IpMessaging/V2/Service/RoleOptions.cs b/src/Twilio/Rest/IpMessaging/V2/Service/RoleOptions.cs index 27eebdbfc..c9f59e0a8 100644 --- a/src/Twilio/Rest/IpMessaging/V2/Service/RoleOptions.cs +++ b/src/Twilio/Rest/IpMessaging/V2/Service/RoleOptions.cs @@ -56,7 +56,7 @@ public CreateRoleOptions(string pathServiceSid, string friendlyName, RoleResourc /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -100,7 +100,7 @@ public DeleteRoleOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -134,7 +134,7 @@ public FetchRoleOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -163,7 +163,7 @@ public ReadRoleOptions(string pathServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -205,7 +205,7 @@ public UpdateRoleOptions(string pathServiceSid, string pathSid, List per /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/IpMessaging/V2/Service/RoleResource.cs b/src/Twilio/Rest/IpMessaging/V2/Service/RoleResource.cs index db576afee..17e8a77de 100644 --- a/src/Twilio/Rest/IpMessaging/V2/Service/RoleResource.cs +++ b/src/Twilio/Rest/IpMessaging/V2/Service/RoleResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.IpMessaging.V2.Service public class RoleResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class RoleTypeEnum : StringEnum { diff --git a/src/Twilio/Rest/IpMessaging/V2/Service/User/UserBindingOptions.cs b/src/Twilio/Rest/IpMessaging/V2/Service/User/UserBindingOptions.cs index da8ab114f..ec2e515f4 100644 --- a/src/Twilio/Rest/IpMessaging/V2/Service/User/UserBindingOptions.cs +++ b/src/Twilio/Rest/IpMessaging/V2/Service/User/UserBindingOptions.cs @@ -51,7 +51,7 @@ public DeleteUserBindingOptions(string pathServiceSid, string pathUserSid, strin /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -90,7 +90,7 @@ public FetchUserBindingOptions(string pathServiceSid, string pathUserSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -128,7 +128,7 @@ public ReadUserBindingOptions(string pathServiceSid, string pathUserSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/IpMessaging/V2/Service/User/UserBindingResource.cs b/src/Twilio/Rest/IpMessaging/V2/Service/User/UserBindingResource.cs index 3c99d5691..c3bb793b5 100644 --- a/src/Twilio/Rest/IpMessaging/V2/Service/User/UserBindingResource.cs +++ b/src/Twilio/Rest/IpMessaging/V2/Service/User/UserBindingResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.IpMessaging.V2.Service.User public class UserBindingResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class BindingTypeEnum : StringEnum { diff --git a/src/Twilio/Rest/IpMessaging/V2/Service/User/UserChannelOptions.cs b/src/Twilio/Rest/IpMessaging/V2/Service/User/UserChannelOptions.cs index 6b9e5f132..c9b6cf297 100644 --- a/src/Twilio/Rest/IpMessaging/V2/Service/User/UserChannelOptions.cs +++ b/src/Twilio/Rest/IpMessaging/V2/Service/User/UserChannelOptions.cs @@ -51,7 +51,7 @@ public DeleteUserChannelOptions(string pathServiceSid, string pathUserSid, strin /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -90,7 +90,7 @@ public FetchUserChannelOptions(string pathServiceSid, string pathUserSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -124,7 +124,7 @@ public ReadUserChannelOptions(string pathServiceSid, string pathUserSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -175,7 +175,7 @@ public UpdateUserChannelOptions(string pathServiceSid, string pathUserSid, strin /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/IpMessaging/V2/Service/User/UserChannelResource.cs b/src/Twilio/Rest/IpMessaging/V2/Service/User/UserChannelResource.cs index babfdc414..d64d23482 100644 --- a/src/Twilio/Rest/IpMessaging/V2/Service/User/UserChannelResource.cs +++ b/src/Twilio/Rest/IpMessaging/V2/Service/User/UserChannelResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.IpMessaging.V2.Service.User public class UserChannelResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class NotificationLevelEnum : StringEnum { diff --git a/src/Twilio/Rest/IpMessaging/V2/Service/UserOptions.cs b/src/Twilio/Rest/IpMessaging/V2/Service/UserOptions.cs index 7bb06be1c..bd73f21cc 100644 --- a/src/Twilio/Rest/IpMessaging/V2/Service/UserOptions.cs +++ b/src/Twilio/Rest/IpMessaging/V2/Service/UserOptions.cs @@ -58,7 +58,7 @@ public CreateUserOptions(string pathServiceSid, string identity) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -116,7 +116,7 @@ public DeleteUserOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -150,7 +150,7 @@ public FetchUserOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -179,7 +179,7 @@ public ReadUserOptions(string pathServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -228,7 +228,7 @@ public UpdateUserOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/IpMessaging/V2/Service/UserResource.cs b/src/Twilio/Rest/IpMessaging/V2/Service/UserResource.cs index 1d8467292..5d264e047 100644 --- a/src/Twilio/Rest/IpMessaging/V2/Service/UserResource.cs +++ b/src/Twilio/Rest/IpMessaging/V2/Service/UserResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.IpMessaging.V2.Service public class UserResource : Resource { + + public sealed class WebhookEnabledTypeEnum : StringEnum { private WebhookEnabledTypeEnum(string value) : base(value) {} diff --git a/src/Twilio/Rest/IpMessaging/V2/ServiceOptions.cs b/src/Twilio/Rest/IpMessaging/V2/ServiceOptions.cs index 066e4d082..207c3f440 100644 --- a/src/Twilio/Rest/IpMessaging/V2/ServiceOptions.cs +++ b/src/Twilio/Rest/IpMessaging/V2/ServiceOptions.cs @@ -41,7 +41,7 @@ public CreateServiceOptions(string friendlyName) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -72,7 +72,7 @@ public DeleteServiceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -101,7 +101,7 @@ public FetchServiceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -121,7 +121,7 @@ public class ReadServiceOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -247,7 +247,7 @@ public UpdateServiceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/IpMessaging/V2/ServiceResource.cs b/src/Twilio/Rest/IpMessaging/V2/ServiceResource.cs index d4243e4eb..82dcd5928 100644 --- a/src/Twilio/Rest/IpMessaging/V2/ServiceResource.cs +++ b/src/Twilio/Rest/IpMessaging/V2/ServiceResource.cs @@ -30,6 +30,8 @@ public class ServiceResource : Resource { + + private static Request BuildCreateRequest(CreateServiceOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Lookups/V1/PhoneNumberOptions.cs b/src/Twilio/Rest/Lookups/V1/PhoneNumberOptions.cs index f3073429c..5a4f0baae 100644 --- a/src/Twilio/Rest/Lookups/V1/PhoneNumberOptions.cs +++ b/src/Twilio/Rest/Lookups/V1/PhoneNumberOptions.cs @@ -55,7 +55,7 @@ public FetchPhoneNumberOptions(Types.PhoneNumber pathPhoneNumber) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Lookups/V1/PhoneNumberResource.cs b/src/Twilio/Rest/Lookups/V1/PhoneNumberResource.cs index 4f1a0b831..acee38b01 100644 --- a/src/Twilio/Rest/Lookups/V1/PhoneNumberResource.cs +++ b/src/Twilio/Rest/Lookups/V1/PhoneNumberResource.cs @@ -30,6 +30,8 @@ public class PhoneNumberResource : Resource { + + private static Request BuildFetchRequest(FetchPhoneNumberOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Lookups/V2/PhoneNumberOptions.cs b/src/Twilio/Rest/Lookups/V2/PhoneNumberOptions.cs index 0f614ad1c..ec088a7e4 100644 --- a/src/Twilio/Rest/Lookups/V2/PhoneNumberOptions.cs +++ b/src/Twilio/Rest/Lookups/V2/PhoneNumberOptions.cs @@ -80,7 +80,7 @@ public FetchPhoneNumberOptions(string pathPhoneNumber) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Lookups/V2/PhoneNumberResource.cs b/src/Twilio/Rest/Lookups/V2/PhoneNumberResource.cs index 18449caf2..c03994117 100644 --- a/src/Twilio/Rest/Lookups/V2/PhoneNumberResource.cs +++ b/src/Twilio/Rest/Lookups/V2/PhoneNumberResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Lookups.V2 public class PhoneNumberResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class ValidationErrorEnum : StringEnum { diff --git a/src/Twilio/Rest/Media/V1/MediaProcessorOptions.cs b/src/Twilio/Rest/Media/V1/MediaProcessorOptions.cs index eeb25671e..b73f44f64 100644 --- a/src/Twilio/Rest/Media/V1/MediaProcessorOptions.cs +++ b/src/Twilio/Rest/Media/V1/MediaProcessorOptions.cs @@ -58,7 +58,7 @@ public CreateMediaProcessorOptions(string extension, string extensionContext) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -109,7 +109,7 @@ public FetchMediaProcessorOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -135,7 +135,7 @@ public class ReadMediaProcessorOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -180,7 +180,7 @@ public UpdateMediaProcessorOptions(string pathSid, MediaProcessorResource.Update /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Media/V1/MediaProcessorResource.cs b/src/Twilio/Rest/Media/V1/MediaProcessorResource.cs index 6e486a42b..708bef0c6 100644 --- a/src/Twilio/Rest/Media/V1/MediaProcessorResource.cs +++ b/src/Twilio/Rest/Media/V1/MediaProcessorResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Media.V1 public class MediaProcessorResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Media/V1/MediaRecordingOptions.cs b/src/Twilio/Rest/Media/V1/MediaRecordingOptions.cs index fbcde09a5..9ac42564f 100644 --- a/src/Twilio/Rest/Media/V1/MediaRecordingOptions.cs +++ b/src/Twilio/Rest/Media/V1/MediaRecordingOptions.cs @@ -41,7 +41,7 @@ public DeleteMediaRecordingOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -70,7 +70,7 @@ public FetchMediaRecordingOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -102,7 +102,7 @@ public class ReadMediaRecordingOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Media/V1/MediaRecordingResource.cs b/src/Twilio/Rest/Media/V1/MediaRecordingResource.cs index 1ff48a864..524985515 100644 --- a/src/Twilio/Rest/Media/V1/MediaRecordingResource.cs +++ b/src/Twilio/Rest/Media/V1/MediaRecordingResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Media.V1 public class MediaRecordingResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Media/V1/PlayerStreamer/PlaybackGrantOptions.cs b/src/Twilio/Rest/Media/V1/PlayerStreamer/PlaybackGrantOptions.cs index 5f5ee101e..728f1a004 100644 --- a/src/Twilio/Rest/Media/V1/PlayerStreamer/PlaybackGrantOptions.cs +++ b/src/Twilio/Rest/Media/V1/PlayerStreamer/PlaybackGrantOptions.cs @@ -47,7 +47,7 @@ public CreatePlaybackGrantOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -82,7 +82,7 @@ public FetchPlaybackGrantOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Media/V1/PlayerStreamer/PlaybackGrantResource.cs b/src/Twilio/Rest/Media/V1/PlayerStreamer/PlaybackGrantResource.cs index 8cd025a4c..dae6c91a1 100644 --- a/src/Twilio/Rest/Media/V1/PlayerStreamer/PlaybackGrantResource.cs +++ b/src/Twilio/Rest/Media/V1/PlayerStreamer/PlaybackGrantResource.cs @@ -30,6 +30,8 @@ public class PlaybackGrantResource : Resource { + + private static Request BuildCreateRequest(CreatePlaybackGrantOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Media/V1/PlayerStreamerOptions.cs b/src/Twilio/Rest/Media/V1/PlayerStreamerOptions.cs index 13e3bf6bd..656106092 100644 --- a/src/Twilio/Rest/Media/V1/PlayerStreamerOptions.cs +++ b/src/Twilio/Rest/Media/V1/PlayerStreamerOptions.cs @@ -44,7 +44,7 @@ public class CreatePlayerStreamerOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -87,7 +87,7 @@ public FetchPlayerStreamerOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -113,7 +113,7 @@ public class ReadPlayerStreamerOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -158,7 +158,7 @@ public UpdatePlayerStreamerOptions(string pathSid, PlayerStreamerResource.Update /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Media/V1/PlayerStreamerResource.cs b/src/Twilio/Rest/Media/V1/PlayerStreamerResource.cs index 6c324e97b..e3b8382b7 100644 --- a/src/Twilio/Rest/Media/V1/PlayerStreamerResource.cs +++ b/src/Twilio/Rest/Media/V1/PlayerStreamerResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Media.V1 public class PlayerStreamerResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Messaging/V1/BrandRegistration/BrandRegistrationOtpOptions.cs b/src/Twilio/Rest/Messaging/V1/BrandRegistration/BrandRegistrationOtpOptions.cs index 6196b4a2f..8c301e824 100644 --- a/src/Twilio/Rest/Messaging/V1/BrandRegistration/BrandRegistrationOtpOptions.cs +++ b/src/Twilio/Rest/Messaging/V1/BrandRegistration/BrandRegistrationOtpOptions.cs @@ -41,7 +41,7 @@ public CreateBrandRegistrationOtpOptions(string pathBrandRegistrationSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Messaging/V1/BrandRegistration/BrandRegistrationOtpResource.cs b/src/Twilio/Rest/Messaging/V1/BrandRegistration/BrandRegistrationOtpResource.cs index ff30423a5..639708389 100644 --- a/src/Twilio/Rest/Messaging/V1/BrandRegistration/BrandRegistrationOtpResource.cs +++ b/src/Twilio/Rest/Messaging/V1/BrandRegistration/BrandRegistrationOtpResource.cs @@ -30,6 +30,8 @@ public class BrandRegistrationOtpResource : Resource { + + private static Request BuildCreateRequest(CreateBrandRegistrationOtpOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Messaging/V1/BrandRegistration/BrandVettingOptions.cs b/src/Twilio/Rest/Messaging/V1/BrandRegistration/BrandVettingOptions.cs index 04a02cc17..9e8009c44 100644 --- a/src/Twilio/Rest/Messaging/V1/BrandRegistration/BrandVettingOptions.cs +++ b/src/Twilio/Rest/Messaging/V1/BrandRegistration/BrandVettingOptions.cs @@ -49,7 +49,7 @@ public CreateBrandVettingOptions(string pathBrandSid, BrandVettingResource.Vetti /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -89,7 +89,7 @@ public FetchBrandVettingOptions(string pathBrandSid, string pathBrandVettingSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -121,7 +121,7 @@ public ReadBrandVettingOptions(string pathBrandSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Messaging/V1/BrandRegistration/BrandVettingResource.cs b/src/Twilio/Rest/Messaging/V1/BrandRegistration/BrandVettingResource.cs index 8fba0c62f..3d8b558b7 100644 --- a/src/Twilio/Rest/Messaging/V1/BrandRegistration/BrandVettingResource.cs +++ b/src/Twilio/Rest/Messaging/V1/BrandRegistration/BrandVettingResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Messaging.V1.BrandRegistration public class BrandVettingResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class VettingProviderEnum : StringEnum { diff --git a/src/Twilio/Rest/Messaging/V1/BrandRegistrationOptions.cs b/src/Twilio/Rest/Messaging/V1/BrandRegistrationOptions.cs index 50c6350c7..d5bd49e6e 100644 --- a/src/Twilio/Rest/Messaging/V1/BrandRegistrationOptions.cs +++ b/src/Twilio/Rest/Messaging/V1/BrandRegistrationOptions.cs @@ -55,7 +55,7 @@ public CreateBrandRegistrationOptions(string customerProfileBundleSid, string a2 /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -102,7 +102,7 @@ public FetchBrandRegistrationOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -122,7 +122,7 @@ public class ReadBrandRegistrationOptions : ReadOptions Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -154,7 +154,7 @@ public UpdateBrandRegistrationOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Messaging/V1/BrandRegistrationResource.cs b/src/Twilio/Rest/Messaging/V1/BrandRegistrationResource.cs index e94c9d4a7..fd871821b 100644 --- a/src/Twilio/Rest/Messaging/V1/BrandRegistrationResource.cs +++ b/src/Twilio/Rest/Messaging/V1/BrandRegistrationResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Messaging.V1 public class BrandRegistrationResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Messaging/V1/DeactivationsOptions.cs b/src/Twilio/Rest/Messaging/V1/DeactivationsOptions.cs index 21699d6dc..d6f084b7f 100644 --- a/src/Twilio/Rest/Messaging/V1/DeactivationsOptions.cs +++ b/src/Twilio/Rest/Messaging/V1/DeactivationsOptions.cs @@ -35,7 +35,7 @@ public class FetchDeactivationsOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Messaging/V1/DeactivationsResource.cs b/src/Twilio/Rest/Messaging/V1/DeactivationsResource.cs index d65ad488b..9fb5ff82a 100644 --- a/src/Twilio/Rest/Messaging/V1/DeactivationsResource.cs +++ b/src/Twilio/Rest/Messaging/V1/DeactivationsResource.cs @@ -30,6 +30,8 @@ public class DeactivationsResource : Resource { + + private static Request BuildFetchRequest(FetchDeactivationsOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Messaging/V1/DomainCertsOptions.cs b/src/Twilio/Rest/Messaging/V1/DomainCertsOptions.cs index 33a89c50e..6a92da388 100644 --- a/src/Twilio/Rest/Messaging/V1/DomainCertsOptions.cs +++ b/src/Twilio/Rest/Messaging/V1/DomainCertsOptions.cs @@ -41,7 +41,7 @@ public DeleteDomainCertsOptions(string pathDomainSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -70,7 +70,7 @@ public FetchDomainCertsOptions(string pathDomainSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -104,7 +104,7 @@ public UpdateDomainCertsOptions(string pathDomainSid, string tlsCert) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Messaging/V1/DomainCertsResource.cs b/src/Twilio/Rest/Messaging/V1/DomainCertsResource.cs index be8fb633c..e3eeae06d 100644 --- a/src/Twilio/Rest/Messaging/V1/DomainCertsResource.cs +++ b/src/Twilio/Rest/Messaging/V1/DomainCertsResource.cs @@ -30,6 +30,8 @@ public class DomainCertsResource : Resource { + + /// delete /// Delete DomainCerts parameters diff --git a/src/Twilio/Rest/Messaging/V1/DomainConfigMessagingServiceOptions.cs b/src/Twilio/Rest/Messaging/V1/DomainConfigMessagingServiceOptions.cs index e6ec004d7..bfc7b3d5b 100644 --- a/src/Twilio/Rest/Messaging/V1/DomainConfigMessagingServiceOptions.cs +++ b/src/Twilio/Rest/Messaging/V1/DomainConfigMessagingServiceOptions.cs @@ -41,7 +41,7 @@ public FetchDomainConfigMessagingServiceOptions(string pathMessagingServiceSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Messaging/V1/DomainConfigMessagingServiceResource.cs b/src/Twilio/Rest/Messaging/V1/DomainConfigMessagingServiceResource.cs index 3c65f31d5..ff5da02e6 100644 --- a/src/Twilio/Rest/Messaging/V1/DomainConfigMessagingServiceResource.cs +++ b/src/Twilio/Rest/Messaging/V1/DomainConfigMessagingServiceResource.cs @@ -30,6 +30,8 @@ public class DomainConfigMessagingServiceResource : Resource { + + private static Request BuildFetchRequest(FetchDomainConfigMessagingServiceOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Messaging/V1/DomainConfigOptions.cs b/src/Twilio/Rest/Messaging/V1/DomainConfigOptions.cs index 36e84d1cf..c0ff7d80a 100644 --- a/src/Twilio/Rest/Messaging/V1/DomainConfigOptions.cs +++ b/src/Twilio/Rest/Messaging/V1/DomainConfigOptions.cs @@ -41,7 +41,7 @@ public FetchDomainConfigOptions(string pathDomainSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -82,7 +82,7 @@ public UpdateDomainConfigOptions(string pathDomainSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Messaging/V1/DomainConfigResource.cs b/src/Twilio/Rest/Messaging/V1/DomainConfigResource.cs index 13ef3c78c..d9f5b0680 100644 --- a/src/Twilio/Rest/Messaging/V1/DomainConfigResource.cs +++ b/src/Twilio/Rest/Messaging/V1/DomainConfigResource.cs @@ -30,6 +30,8 @@ public class DomainConfigResource : Resource { + + private static Request BuildFetchRequest(FetchDomainConfigOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Messaging/V1/ExternalCampaignOptions.cs b/src/Twilio/Rest/Messaging/V1/ExternalCampaignOptions.cs index a6678d0ed..ae1897e2f 100644 --- a/src/Twilio/Rest/Messaging/V1/ExternalCampaignOptions.cs +++ b/src/Twilio/Rest/Messaging/V1/ExternalCampaignOptions.cs @@ -46,7 +46,7 @@ public CreateExternalCampaignOptions(string campaignId, string messagingServiceS /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Messaging/V1/ExternalCampaignResource.cs b/src/Twilio/Rest/Messaging/V1/ExternalCampaignResource.cs index 385e40aba..b35e32109 100644 --- a/src/Twilio/Rest/Messaging/V1/ExternalCampaignResource.cs +++ b/src/Twilio/Rest/Messaging/V1/ExternalCampaignResource.cs @@ -30,6 +30,8 @@ public class ExternalCampaignResource : Resource { + + private static Request BuildCreateRequest(CreateExternalCampaignOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Messaging/V1/LinkshorteningMessagingServiceDomainAssociationOptions.cs b/src/Twilio/Rest/Messaging/V1/LinkshorteningMessagingServiceDomainAssociationOptions.cs index df05c6377..3fe8e6de3 100644 --- a/src/Twilio/Rest/Messaging/V1/LinkshorteningMessagingServiceDomainAssociationOptions.cs +++ b/src/Twilio/Rest/Messaging/V1/LinkshorteningMessagingServiceDomainAssociationOptions.cs @@ -41,7 +41,7 @@ public FetchLinkshorteningMessagingServiceDomainAssociationOptions(string pathMe /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Messaging/V1/LinkshorteningMessagingServiceDomainAssociationResource.cs b/src/Twilio/Rest/Messaging/V1/LinkshorteningMessagingServiceDomainAssociationResource.cs index 2d9f05bd9..1662e3450 100644 --- a/src/Twilio/Rest/Messaging/V1/LinkshorteningMessagingServiceDomainAssociationResource.cs +++ b/src/Twilio/Rest/Messaging/V1/LinkshorteningMessagingServiceDomainAssociationResource.cs @@ -30,6 +30,8 @@ public class LinkshorteningMessagingServiceDomainAssociationResource : Resource { + + private static Request BuildFetchRequest(FetchLinkshorteningMessagingServiceDomainAssociationOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Messaging/V1/LinkshorteningMessagingServiceOptions.cs b/src/Twilio/Rest/Messaging/V1/LinkshorteningMessagingServiceOptions.cs index d9f41e209..8cf19c8db 100644 --- a/src/Twilio/Rest/Messaging/V1/LinkshorteningMessagingServiceOptions.cs +++ b/src/Twilio/Rest/Messaging/V1/LinkshorteningMessagingServiceOptions.cs @@ -46,7 +46,7 @@ public CreateLinkshorteningMessagingServiceOptions(string pathDomainSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -78,7 +78,7 @@ public DeleteLinkshorteningMessagingServiceOptions(string pathDomainSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Messaging/V1/LinkshorteningMessagingServiceResource.cs b/src/Twilio/Rest/Messaging/V1/LinkshorteningMessagingServiceResource.cs index 10f1d121b..c0074f10b 100644 --- a/src/Twilio/Rest/Messaging/V1/LinkshorteningMessagingServiceResource.cs +++ b/src/Twilio/Rest/Messaging/V1/LinkshorteningMessagingServiceResource.cs @@ -30,6 +30,8 @@ public class LinkshorteningMessagingServiceResource : Resource { + + private static Request BuildCreateRequest(CreateLinkshorteningMessagingServiceOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Messaging/V1/Service/AlphaSenderOptions.cs b/src/Twilio/Rest/Messaging/V1/Service/AlphaSenderOptions.cs index 852663200..059a2f800 100644 --- a/src/Twilio/Rest/Messaging/V1/Service/AlphaSenderOptions.cs +++ b/src/Twilio/Rest/Messaging/V1/Service/AlphaSenderOptions.cs @@ -46,7 +46,7 @@ public CreateAlphaSenderOptions(string pathServiceSid, string alphaSender) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -82,7 +82,7 @@ public DeleteAlphaSenderOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -116,7 +116,7 @@ public FetchAlphaSenderOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -145,7 +145,7 @@ public ReadAlphaSenderOptions(string pathServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Messaging/V1/Service/AlphaSenderResource.cs b/src/Twilio/Rest/Messaging/V1/Service/AlphaSenderResource.cs index be502a4c9..fdea4ff62 100644 --- a/src/Twilio/Rest/Messaging/V1/Service/AlphaSenderResource.cs +++ b/src/Twilio/Rest/Messaging/V1/Service/AlphaSenderResource.cs @@ -30,6 +30,8 @@ public class AlphaSenderResource : Resource { + + private static Request BuildCreateRequest(CreateAlphaSenderOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Messaging/V1/Service/ChannelSenderOptions.cs b/src/Twilio/Rest/Messaging/V1/Service/ChannelSenderOptions.cs index 103ae76d6..9d9dcbd38 100644 --- a/src/Twilio/Rest/Messaging/V1/Service/ChannelSenderOptions.cs +++ b/src/Twilio/Rest/Messaging/V1/Service/ChannelSenderOptions.cs @@ -46,7 +46,7 @@ public FetchChannelSenderOptions(string pathMessagingServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -75,7 +75,7 @@ public ReadChannelSenderOptions(string pathMessagingServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Messaging/V1/Service/ChannelSenderResource.cs b/src/Twilio/Rest/Messaging/V1/Service/ChannelSenderResource.cs index 266be90ca..629289e39 100644 --- a/src/Twilio/Rest/Messaging/V1/Service/ChannelSenderResource.cs +++ b/src/Twilio/Rest/Messaging/V1/Service/ChannelSenderResource.cs @@ -30,6 +30,8 @@ public class ChannelSenderResource : Resource { + + private static Request BuildFetchRequest(FetchChannelSenderOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Messaging/V1/Service/PhoneNumberOptions.cs b/src/Twilio/Rest/Messaging/V1/Service/PhoneNumberOptions.cs index b97c9d693..c231186e9 100644 --- a/src/Twilio/Rest/Messaging/V1/Service/PhoneNumberOptions.cs +++ b/src/Twilio/Rest/Messaging/V1/Service/PhoneNumberOptions.cs @@ -46,7 +46,7 @@ public CreatePhoneNumberOptions(string pathServiceSid, string phoneNumberSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -82,7 +82,7 @@ public DeletePhoneNumberOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -116,7 +116,7 @@ public FetchPhoneNumberOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -145,7 +145,7 @@ public ReadPhoneNumberOptions(string pathServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Messaging/V1/Service/PhoneNumberResource.cs b/src/Twilio/Rest/Messaging/V1/Service/PhoneNumberResource.cs index 9d939db4a..96f70d773 100644 --- a/src/Twilio/Rest/Messaging/V1/Service/PhoneNumberResource.cs +++ b/src/Twilio/Rest/Messaging/V1/Service/PhoneNumberResource.cs @@ -30,6 +30,8 @@ public class PhoneNumberResource : Resource { + + private static Request BuildCreateRequest(CreatePhoneNumberOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Messaging/V1/Service/ShortCodeOptions.cs b/src/Twilio/Rest/Messaging/V1/Service/ShortCodeOptions.cs index 8aa66dd5a..861f5d884 100644 --- a/src/Twilio/Rest/Messaging/V1/Service/ShortCodeOptions.cs +++ b/src/Twilio/Rest/Messaging/V1/Service/ShortCodeOptions.cs @@ -46,7 +46,7 @@ public CreateShortCodeOptions(string pathServiceSid, string shortCodeSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -82,7 +82,7 @@ public DeleteShortCodeOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -116,7 +116,7 @@ public FetchShortCodeOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -145,7 +145,7 @@ public ReadShortCodeOptions(string pathServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Messaging/V1/Service/ShortCodeResource.cs b/src/Twilio/Rest/Messaging/V1/Service/ShortCodeResource.cs index 01d479bc0..5554015bc 100644 --- a/src/Twilio/Rest/Messaging/V1/Service/ShortCodeResource.cs +++ b/src/Twilio/Rest/Messaging/V1/Service/ShortCodeResource.cs @@ -30,6 +30,8 @@ public class ShortCodeResource : Resource { + + private static Request BuildCreateRequest(CreateShortCodeOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Messaging/V1/Service/UsAppToPersonOptions.cs b/src/Twilio/Rest/Messaging/V1/Service/UsAppToPersonOptions.cs index 52dbd2071..1f3061a33 100644 --- a/src/Twilio/Rest/Messaging/V1/Service/UsAppToPersonOptions.cs +++ b/src/Twilio/Rest/Messaging/V1/Service/UsAppToPersonOptions.cs @@ -97,7 +97,7 @@ public CreateUsAppToPersonOptions(string pathMessagingServiceSid, string brandRe /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -181,7 +181,7 @@ public DeleteUsAppToPersonOptions(string pathMessagingServiceSid, string pathSid /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -215,7 +215,7 @@ public FetchUsAppToPersonOptions(string pathMessagingServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -244,7 +244,7 @@ public ReadUsAppToPersonOptions(string pathMessagingServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Messaging/V1/Service/UsAppToPersonResource.cs b/src/Twilio/Rest/Messaging/V1/Service/UsAppToPersonResource.cs index 40306c2df..536591fc9 100644 --- a/src/Twilio/Rest/Messaging/V1/Service/UsAppToPersonResource.cs +++ b/src/Twilio/Rest/Messaging/V1/Service/UsAppToPersonResource.cs @@ -30,6 +30,8 @@ public class UsAppToPersonResource : Resource { + + private static Request BuildCreateRequest(CreateUsAppToPersonOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Messaging/V1/Service/UsAppToPersonUsecaseOptions.cs b/src/Twilio/Rest/Messaging/V1/Service/UsAppToPersonUsecaseOptions.cs index a7e501148..fc6dbf608 100644 --- a/src/Twilio/Rest/Messaging/V1/Service/UsAppToPersonUsecaseOptions.cs +++ b/src/Twilio/Rest/Messaging/V1/Service/UsAppToPersonUsecaseOptions.cs @@ -44,7 +44,7 @@ public FetchUsAppToPersonUsecaseOptions(string pathMessagingServiceSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Messaging/V1/Service/UsAppToPersonUsecaseResource.cs b/src/Twilio/Rest/Messaging/V1/Service/UsAppToPersonUsecaseResource.cs index 54cdd7135..e7b640987 100644 --- a/src/Twilio/Rest/Messaging/V1/Service/UsAppToPersonUsecaseResource.cs +++ b/src/Twilio/Rest/Messaging/V1/Service/UsAppToPersonUsecaseResource.cs @@ -30,6 +30,8 @@ public class UsAppToPersonUsecaseResource : Resource { + + private static Request BuildFetchRequest(FetchUsAppToPersonUsecaseOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Messaging/V1/ServiceOptions.cs b/src/Twilio/Rest/Messaging/V1/ServiceOptions.cs index d19dd3548..1f23db302 100644 --- a/src/Twilio/Rest/Messaging/V1/ServiceOptions.cs +++ b/src/Twilio/Rest/Messaging/V1/ServiceOptions.cs @@ -58,7 +58,7 @@ public class CreateServiceOptions : IOptions public ServiceResource.ScanMessageContentEnum ScanMessageContent { get; set; } - /// Whether to enable [Fallback to Long Code](https://www.twilio.com/docs/messaging/services#fallback-to-long-code) for messages sent through the Service instance. + /// [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures. public bool? FallbackToLongCode { get; set; } /// Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance. @@ -86,7 +86,7 @@ public CreateServiceOptions(string friendlyName) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -177,7 +177,7 @@ public DeleteServiceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -206,7 +206,7 @@ public FetchServiceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -226,7 +226,7 @@ public class ReadServiceOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -277,7 +277,7 @@ public class UpdateServiceOptions : IOptions public ServiceResource.ScanMessageContentEnum ScanMessageContent { get; set; } - /// Whether to enable [Fallback to Long Code](https://www.twilio.com/docs/messaging/services#fallback-to-long-code) for messages sent through the Service instance. + /// [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures. public bool? FallbackToLongCode { get; set; } /// Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance. @@ -306,7 +306,7 @@ public UpdateServiceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Messaging/V1/ServiceResource.cs b/src/Twilio/Rest/Messaging/V1/ServiceResource.cs index 62e073647..404f0658a 100644 --- a/src/Twilio/Rest/Messaging/V1/ServiceResource.cs +++ b/src/Twilio/Rest/Messaging/V1/ServiceResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Messaging.V1 public class ServiceResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class ScanMessageContentEnum : StringEnum { @@ -96,7 +98,7 @@ public static async System.Threading.Tasks.Task CreateAsync(Cre /// Whether to enable the [MMS Converter](https://www.twilio.com/docs/messaging/services#mms-converter) for messages sent through the Service instance. /// Whether to enable [Smart Encoding](https://www.twilio.com/docs/messaging/services#smart-encoding) for messages sent through the Service instance. /// - /// Whether to enable [Fallback to Long Code](https://www.twilio.com/docs/messaging/services#fallback-to-long-code) for messages sent through the Service instance. + /// [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures. /// Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance. /// How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`. /// Reserved. @@ -139,7 +141,7 @@ public static ServiceResource Create( /// Whether to enable the [MMS Converter](https://www.twilio.com/docs/messaging/services#mms-converter) for messages sent through the Service instance. /// Whether to enable [Smart Encoding](https://www.twilio.com/docs/messaging/services#smart-encoding) for messages sent through the Service instance. /// - /// Whether to enable [Fallback to Long Code](https://www.twilio.com/docs/messaging/services#fallback-to-long-code) for messages sent through the Service instance. + /// [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures. /// Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance. /// How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`. /// Reserved. @@ -478,7 +480,7 @@ public static async System.Threading.Tasks.Task UpdateAsync(Upd /// Whether to enable the [MMS Converter](https://www.twilio.com/docs/messaging/services#mms-converter) for messages sent through the Service instance. /// Whether to enable [Smart Encoding](https://www.twilio.com/docs/messaging/services#smart-encoding) for messages sent through the Service instance. /// - /// Whether to enable [Fallback to Long Code](https://www.twilio.com/docs/messaging/services#fallback-to-long-code) for messages sent through the Service instance. + /// [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures. /// Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance. /// How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`. /// Reserved. @@ -523,7 +525,7 @@ public static ServiceResource Update( /// Whether to enable the [MMS Converter](https://www.twilio.com/docs/messaging/services#mms-converter) for messages sent through the Service instance. /// Whether to enable [Smart Encoding](https://www.twilio.com/docs/messaging/services#smart-encoding) for messages sent through the Service instance. /// - /// Whether to enable [Fallback to Long Code](https://www.twilio.com/docs/messaging/services#fallback-to-long-code) for messages sent through the Service instance. + /// [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures. /// Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance. /// How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`. /// Reserved. @@ -630,7 +632,7 @@ public static ServiceResource FromJson(string json) [JsonProperty("scan_message_content")] public ServiceResource.ScanMessageContentEnum ScanMessageContent { get; private set; } - /// Whether to enable [Fallback to Long Code](https://www.twilio.com/docs/messaging/services#fallback-to-long-code) for messages sent through the Service instance. + /// [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures. [JsonProperty("fallback_to_long_code")] public bool? FallbackToLongCode { get; private set; } diff --git a/src/Twilio/Rest/Messaging/V1/TollfreeVerificationOptions.cs b/src/Twilio/Rest/Messaging/V1/TollfreeVerificationOptions.cs index 3d04ed152..892b425a9 100644 --- a/src/Twilio/Rest/Messaging/V1/TollfreeVerificationOptions.cs +++ b/src/Twilio/Rest/Messaging/V1/TollfreeVerificationOptions.cs @@ -125,7 +125,7 @@ public CreateTollfreeVerificationOptions(string businessName, string businessWeb /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -244,7 +244,7 @@ public FetchTollfreeVerificationOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -270,7 +270,7 @@ public class ReadTollfreeVerificationOptions : ReadOptions Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -372,7 +372,7 @@ public UpdateTollfreeVerificationOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Messaging/V1/TollfreeVerificationResource.cs b/src/Twilio/Rest/Messaging/V1/TollfreeVerificationResource.cs index 69f5c636c..75d7b014e 100644 --- a/src/Twilio/Rest/Messaging/V1/TollfreeVerificationResource.cs +++ b/src/Twilio/Rest/Messaging/V1/TollfreeVerificationResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Messaging.V1 public class TollfreeVerificationResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Messaging/V1/UsecaseOptions.cs b/src/Twilio/Rest/Messaging/V1/UsecaseOptions.cs index 41e0e32d8..026f6eaf1 100644 --- a/src/Twilio/Rest/Messaging/V1/UsecaseOptions.cs +++ b/src/Twilio/Rest/Messaging/V1/UsecaseOptions.cs @@ -32,7 +32,7 @@ public class FetchUsecaseOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Messaging/V1/UsecaseResource.cs b/src/Twilio/Rest/Messaging/V1/UsecaseResource.cs index 52703fc71..3b3aa2816 100644 --- a/src/Twilio/Rest/Messaging/V1/UsecaseResource.cs +++ b/src/Twilio/Rest/Messaging/V1/UsecaseResource.cs @@ -30,6 +30,8 @@ public class UsecaseResource : Resource { + + private static Request BuildFetchRequest(FetchUsecaseOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Microvisor/V1/AccountConfigOptions.cs b/src/Twilio/Rest/Microvisor/V1/AccountConfigOptions.cs index 9cce7840a..850f1997a 100644 --- a/src/Twilio/Rest/Microvisor/V1/AccountConfigOptions.cs +++ b/src/Twilio/Rest/Microvisor/V1/AccountConfigOptions.cs @@ -46,7 +46,7 @@ public CreateAccountConfigOptions(string key, string value) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -81,7 +81,7 @@ public DeleteAccountConfigOptions(string pathKey) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -110,7 +110,7 @@ public FetchAccountConfigOptions(string pathKey) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -130,7 +130,7 @@ public class ReadAccountConfigOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -167,7 +167,7 @@ public UpdateAccountConfigOptions(string pathKey, string value) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Microvisor/V1/AccountConfigResource.cs b/src/Twilio/Rest/Microvisor/V1/AccountConfigResource.cs index 980edd1f6..8bfc89eaa 100644 --- a/src/Twilio/Rest/Microvisor/V1/AccountConfigResource.cs +++ b/src/Twilio/Rest/Microvisor/V1/AccountConfigResource.cs @@ -30,6 +30,8 @@ public class AccountConfigResource : Resource { + + private static Request BuildCreateRequest(CreateAccountConfigOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Microvisor/V1/AccountSecretOptions.cs b/src/Twilio/Rest/Microvisor/V1/AccountSecretOptions.cs index 585680243..aabc3398c 100644 --- a/src/Twilio/Rest/Microvisor/V1/AccountSecretOptions.cs +++ b/src/Twilio/Rest/Microvisor/V1/AccountSecretOptions.cs @@ -46,7 +46,7 @@ public CreateAccountSecretOptions(string key, string value) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -81,7 +81,7 @@ public DeleteAccountSecretOptions(string pathKey) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -110,7 +110,7 @@ public FetchAccountSecretOptions(string pathKey) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -130,7 +130,7 @@ public class ReadAccountSecretOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -167,7 +167,7 @@ public UpdateAccountSecretOptions(string pathKey, string value) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Microvisor/V1/AccountSecretResource.cs b/src/Twilio/Rest/Microvisor/V1/AccountSecretResource.cs index 8d065aa34..1f4b2767b 100644 --- a/src/Twilio/Rest/Microvisor/V1/AccountSecretResource.cs +++ b/src/Twilio/Rest/Microvisor/V1/AccountSecretResource.cs @@ -30,6 +30,8 @@ public class AccountSecretResource : Resource { + + private static Request BuildCreateRequest(CreateAccountSecretOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Microvisor/V1/App/AppManifestOptions.cs b/src/Twilio/Rest/Microvisor/V1/App/AppManifestOptions.cs index f168244cf..e024a611e 100644 --- a/src/Twilio/Rest/Microvisor/V1/App/AppManifestOptions.cs +++ b/src/Twilio/Rest/Microvisor/V1/App/AppManifestOptions.cs @@ -41,7 +41,7 @@ public FetchAppManifestOptions(string pathAppSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Microvisor/V1/App/AppManifestResource.cs b/src/Twilio/Rest/Microvisor/V1/App/AppManifestResource.cs index 682ebb3d8..766880fd6 100644 --- a/src/Twilio/Rest/Microvisor/V1/App/AppManifestResource.cs +++ b/src/Twilio/Rest/Microvisor/V1/App/AppManifestResource.cs @@ -30,6 +30,8 @@ public class AppManifestResource : Resource { + + private static Request BuildFetchRequest(FetchAppManifestOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Microvisor/V1/AppOptions.cs b/src/Twilio/Rest/Microvisor/V1/AppOptions.cs index 6e519cf44..2ad6a8e01 100644 --- a/src/Twilio/Rest/Microvisor/V1/AppOptions.cs +++ b/src/Twilio/Rest/Microvisor/V1/AppOptions.cs @@ -41,7 +41,7 @@ public DeleteAppOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -70,7 +70,7 @@ public FetchAppOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -90,7 +90,7 @@ public class ReadAppOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Microvisor/V1/AppResource.cs b/src/Twilio/Rest/Microvisor/V1/AppResource.cs index 1d430acfc..a9aa98e55 100644 --- a/src/Twilio/Rest/Microvisor/V1/AppResource.cs +++ b/src/Twilio/Rest/Microvisor/V1/AppResource.cs @@ -30,6 +30,8 @@ public class AppResource : Resource { + + /// Delete a specific App. /// Delete App parameters diff --git a/src/Twilio/Rest/Microvisor/V1/Device/DeviceConfigOptions.cs b/src/Twilio/Rest/Microvisor/V1/Device/DeviceConfigOptions.cs index 67dfb2905..df9e42f74 100644 --- a/src/Twilio/Rest/Microvisor/V1/Device/DeviceConfigOptions.cs +++ b/src/Twilio/Rest/Microvisor/V1/Device/DeviceConfigOptions.cs @@ -51,7 +51,7 @@ public CreateDeviceConfigOptions(string pathDeviceSid, string key, string value) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -91,7 +91,7 @@ public DeleteDeviceConfigOptions(string pathDeviceSid, string pathKey) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -125,7 +125,7 @@ public FetchDeviceConfigOptions(string pathDeviceSid, string pathKey) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -154,7 +154,7 @@ public ReadDeviceConfigOptions(string pathDeviceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -196,7 +196,7 @@ public UpdateDeviceConfigOptions(string pathDeviceSid, string pathKey, string va /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Microvisor/V1/Device/DeviceConfigResource.cs b/src/Twilio/Rest/Microvisor/V1/Device/DeviceConfigResource.cs index a8eab8075..5b9b90cf5 100644 --- a/src/Twilio/Rest/Microvisor/V1/Device/DeviceConfigResource.cs +++ b/src/Twilio/Rest/Microvisor/V1/Device/DeviceConfigResource.cs @@ -30,6 +30,8 @@ public class DeviceConfigResource : Resource { + + private static Request BuildCreateRequest(CreateDeviceConfigOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Microvisor/V1/Device/DeviceSecretOptions.cs b/src/Twilio/Rest/Microvisor/V1/Device/DeviceSecretOptions.cs index e3eb34fe7..c243c6295 100644 --- a/src/Twilio/Rest/Microvisor/V1/Device/DeviceSecretOptions.cs +++ b/src/Twilio/Rest/Microvisor/V1/Device/DeviceSecretOptions.cs @@ -51,7 +51,7 @@ public CreateDeviceSecretOptions(string pathDeviceSid, string key, string value) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -91,7 +91,7 @@ public DeleteDeviceSecretOptions(string pathDeviceSid, string pathKey) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -125,7 +125,7 @@ public FetchDeviceSecretOptions(string pathDeviceSid, string pathKey) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -154,7 +154,7 @@ public ReadDeviceSecretOptions(string pathDeviceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -196,7 +196,7 @@ public UpdateDeviceSecretOptions(string pathDeviceSid, string pathKey, string va /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Microvisor/V1/Device/DeviceSecretResource.cs b/src/Twilio/Rest/Microvisor/V1/Device/DeviceSecretResource.cs index db77a73a0..5bb593c11 100644 --- a/src/Twilio/Rest/Microvisor/V1/Device/DeviceSecretResource.cs +++ b/src/Twilio/Rest/Microvisor/V1/Device/DeviceSecretResource.cs @@ -30,6 +30,8 @@ public class DeviceSecretResource : Resource { + + private static Request BuildCreateRequest(CreateDeviceSecretOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Microvisor/V1/DeviceOptions.cs b/src/Twilio/Rest/Microvisor/V1/DeviceOptions.cs index 288e62c57..8adec539d 100644 --- a/src/Twilio/Rest/Microvisor/V1/DeviceOptions.cs +++ b/src/Twilio/Rest/Microvisor/V1/DeviceOptions.cs @@ -41,7 +41,7 @@ public FetchDeviceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -61,7 +61,7 @@ public class ReadDeviceOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -105,7 +105,7 @@ public UpdateDeviceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Microvisor/V1/DeviceResource.cs b/src/Twilio/Rest/Microvisor/V1/DeviceResource.cs index c9be39775..5427317c8 100644 --- a/src/Twilio/Rest/Microvisor/V1/DeviceResource.cs +++ b/src/Twilio/Rest/Microvisor/V1/DeviceResource.cs @@ -30,6 +30,8 @@ public class DeviceResource : Resource { + + private static Request BuildFetchRequest(FetchDeviceOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Monitor/V1/AlertOptions.cs b/src/Twilio/Rest/Monitor/V1/AlertOptions.cs index 0f5af246d..c03ef9cf0 100644 --- a/src/Twilio/Rest/Monitor/V1/AlertOptions.cs +++ b/src/Twilio/Rest/Monitor/V1/AlertOptions.cs @@ -41,7 +41,7 @@ public FetchAlertOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -70,7 +70,7 @@ public class ReadAlertOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Monitor/V1/AlertResource.cs b/src/Twilio/Rest/Monitor/V1/AlertResource.cs index 2985449b9..22f04d235 100644 --- a/src/Twilio/Rest/Monitor/V1/AlertResource.cs +++ b/src/Twilio/Rest/Monitor/V1/AlertResource.cs @@ -30,6 +30,8 @@ public class AlertResource : Resource { + + private static Request BuildFetchRequest(FetchAlertOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Monitor/V1/EventOptions.cs b/src/Twilio/Rest/Monitor/V1/EventOptions.cs index 4e1275799..1eb8be510 100644 --- a/src/Twilio/Rest/Monitor/V1/EventOptions.cs +++ b/src/Twilio/Rest/Monitor/V1/EventOptions.cs @@ -41,7 +41,7 @@ public FetchEventOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -79,7 +79,7 @@ public class ReadEventOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Monitor/V1/EventResource.cs b/src/Twilio/Rest/Monitor/V1/EventResource.cs index e18c2bc76..ca39008d3 100644 --- a/src/Twilio/Rest/Monitor/V1/EventResource.cs +++ b/src/Twilio/Rest/Monitor/V1/EventResource.cs @@ -30,6 +30,8 @@ public class EventResource : Resource { + + private static Request BuildFetchRequest(FetchEventOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Notify/V1/CredentialOptions.cs b/src/Twilio/Rest/Notify/V1/CredentialOptions.cs index 5605fdf75..f16c8f797 100644 --- a/src/Twilio/Rest/Notify/V1/CredentialOptions.cs +++ b/src/Twilio/Rest/Notify/V1/CredentialOptions.cs @@ -59,7 +59,7 @@ public CreateCredentialOptions(CredentialResource.PushServiceEnum type) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -114,7 +114,7 @@ public DeleteCredentialOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -143,7 +143,7 @@ public FetchCredentialOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -163,7 +163,7 @@ public class ReadCredentialOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -213,7 +213,7 @@ public UpdateCredentialOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Notify/V1/CredentialResource.cs b/src/Twilio/Rest/Notify/V1/CredentialResource.cs index e71d35ec3..c791e2003 100644 --- a/src/Twilio/Rest/Notify/V1/CredentialResource.cs +++ b/src/Twilio/Rest/Notify/V1/CredentialResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Notify.V1 public class CredentialResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class PushServiceEnum : StringEnum { diff --git a/src/Twilio/Rest/Notify/V1/Service/BindingOptions.cs b/src/Twilio/Rest/Notify/V1/Service/BindingOptions.cs index 00e7b39fc..048d24dae 100644 --- a/src/Twilio/Rest/Notify/V1/Service/BindingOptions.cs +++ b/src/Twilio/Rest/Notify/V1/Service/BindingOptions.cs @@ -69,7 +69,7 @@ public CreateBindingOptions(string pathServiceSid, string identity, BindingResou /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -129,7 +129,7 @@ public DeleteBindingOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -163,7 +163,7 @@ public FetchBindingOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -206,7 +206,7 @@ public ReadBindingOptions(string pathServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Notify/V1/Service/BindingResource.cs b/src/Twilio/Rest/Notify/V1/Service/BindingResource.cs index 619633be9..71500edd8 100644 --- a/src/Twilio/Rest/Notify/V1/Service/BindingResource.cs +++ b/src/Twilio/Rest/Notify/V1/Service/BindingResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Notify.V1.Service public class BindingResource : Resource { + + public sealed class BindingTypeEnum : StringEnum { private BindingTypeEnum(string value) : base(value) {} diff --git a/src/Twilio/Rest/Notify/V1/Service/NotificationOptions.cs b/src/Twilio/Rest/Notify/V1/Service/NotificationOptions.cs index 5ccb0cdc8..863895f4a 100644 --- a/src/Twilio/Rest/Notify/V1/Service/NotificationOptions.cs +++ b/src/Twilio/Rest/Notify/V1/Service/NotificationOptions.cs @@ -99,7 +99,7 @@ public CreateNotificationOptions(string pathServiceSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Notify/V1/Service/NotificationResource.cs b/src/Twilio/Rest/Notify/V1/Service/NotificationResource.cs index 91c61cf67..385dbae2f 100644 --- a/src/Twilio/Rest/Notify/V1/Service/NotificationResource.cs +++ b/src/Twilio/Rest/Notify/V1/Service/NotificationResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Notify.V1.Service public class NotificationResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class PriorityEnum : StringEnum { diff --git a/src/Twilio/Rest/Notify/V1/ServiceOptions.cs b/src/Twilio/Rest/Notify/V1/ServiceOptions.cs index e048b27ec..535d1bf37 100644 --- a/src/Twilio/Rest/Notify/V1/ServiceOptions.cs +++ b/src/Twilio/Rest/Notify/V1/ServiceOptions.cs @@ -74,7 +74,7 @@ public class CreateServiceOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -157,7 +157,7 @@ public DeleteServiceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -186,7 +186,7 @@ public FetchServiceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -209,7 +209,7 @@ public class ReadServiceOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -287,7 +287,7 @@ public UpdateServiceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Notify/V1/ServiceResource.cs b/src/Twilio/Rest/Notify/V1/ServiceResource.cs index d5c5c8df1..c67e1602c 100644 --- a/src/Twilio/Rest/Notify/V1/ServiceResource.cs +++ b/src/Twilio/Rest/Notify/V1/ServiceResource.cs @@ -30,6 +30,8 @@ public class ServiceResource : Resource { + + private static Request BuildCreateRequest(CreateServiceOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Numbers/V1/BulkEligibilityOptions.cs b/src/Twilio/Rest/Numbers/V1/BulkEligibilityOptions.cs index 2a6a1d690..e2242082c 100644 --- a/src/Twilio/Rest/Numbers/V1/BulkEligibilityOptions.cs +++ b/src/Twilio/Rest/Numbers/V1/BulkEligibilityOptions.cs @@ -41,7 +41,7 @@ public FetchBulkEligibilityOptions(string pathRequestId) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Numbers/V1/BulkEligibilityResource.cs b/src/Twilio/Rest/Numbers/V1/BulkEligibilityResource.cs index dc19c109a..83cf86de6 100644 --- a/src/Twilio/Rest/Numbers/V1/BulkEligibilityResource.cs +++ b/src/Twilio/Rest/Numbers/V1/BulkEligibilityResource.cs @@ -30,6 +30,8 @@ public class BulkEligibilityResource : Resource { + + private static Request BuildFetchRequest(FetchBulkEligibilityOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Numbers/V1/PortingBulkPortabilityOptions.cs b/src/Twilio/Rest/Numbers/V1/PortingBulkPortabilityOptions.cs index d17ec20b1..65c2bf196 100644 --- a/src/Twilio/Rest/Numbers/V1/PortingBulkPortabilityOptions.cs +++ b/src/Twilio/Rest/Numbers/V1/PortingBulkPortabilityOptions.cs @@ -41,7 +41,7 @@ public CreatePortingBulkPortabilityOptions(List phoneNumbers) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -72,7 +72,7 @@ public FetchPortingBulkPortabilityOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Numbers/V1/PortingBulkPortabilityResource.cs b/src/Twilio/Rest/Numbers/V1/PortingBulkPortabilityResource.cs index 4bf0bc3f9..0c720c99c 100644 --- a/src/Twilio/Rest/Numbers/V1/PortingBulkPortabilityResource.cs +++ b/src/Twilio/Rest/Numbers/V1/PortingBulkPortabilityResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Numbers.V1 public class PortingBulkPortabilityResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Numbers/V1/PortingPortabilityOptions.cs b/src/Twilio/Rest/Numbers/V1/PortingPortabilityOptions.cs index 4bdd2558e..f3d59d1b2 100644 --- a/src/Twilio/Rest/Numbers/V1/PortingPortabilityOptions.cs +++ b/src/Twilio/Rest/Numbers/V1/PortingPortabilityOptions.cs @@ -44,7 +44,7 @@ public FetchPortingPortabilityOptions(Types.PhoneNumber pathPhoneNumber) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Numbers/V1/PortingPortabilityResource.cs b/src/Twilio/Rest/Numbers/V1/PortingPortabilityResource.cs index dae7c59a5..bb8ee984e 100644 --- a/src/Twilio/Rest/Numbers/V1/PortingPortabilityResource.cs +++ b/src/Twilio/Rest/Numbers/V1/PortingPortabilityResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Numbers.V1 public class PortingPortabilityResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class NumberTypeEnum : StringEnum { diff --git a/src/Twilio/Rest/Numbers/V2/AuthorizationDocument/DependentHostedNumberOrderOptions.cs b/src/Twilio/Rest/Numbers/V2/AuthorizationDocument/DependentHostedNumberOrderOptions.cs index c1fd06593..edbdce328 100644 --- a/src/Twilio/Rest/Numbers/V2/AuthorizationDocument/DependentHostedNumberOrderOptions.cs +++ b/src/Twilio/Rest/Numbers/V2/AuthorizationDocument/DependentHostedNumberOrderOptions.cs @@ -53,7 +53,7 @@ public ReadDependentHostedNumberOrderOptions(string pathSigningDocumentSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Numbers/V2/AuthorizationDocument/DependentHostedNumberOrderResource.cs b/src/Twilio/Rest/Numbers/V2/AuthorizationDocument/DependentHostedNumberOrderResource.cs index 0a46bf070..ad18738ce 100644 --- a/src/Twilio/Rest/Numbers/V2/AuthorizationDocument/DependentHostedNumberOrderResource.cs +++ b/src/Twilio/Rest/Numbers/V2/AuthorizationDocument/DependentHostedNumberOrderResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Numbers.V2.AuthorizationDocument public class DependentHostedNumberOrderResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Numbers/V2/AuthorizationDocumentOptions.cs b/src/Twilio/Rest/Numbers/V2/AuthorizationDocumentOptions.cs index f8714e0b2..e4a832ed9 100644 --- a/src/Twilio/Rest/Numbers/V2/AuthorizationDocumentOptions.cs +++ b/src/Twilio/Rest/Numbers/V2/AuthorizationDocumentOptions.cs @@ -63,7 +63,7 @@ public CreateAuthorizationDocumentOptions(string addressSid, string email, Types /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -114,7 +114,7 @@ public DeleteAuthorizationDocumentOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -143,7 +143,7 @@ public FetchAuthorizationDocumentOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -169,7 +169,7 @@ public class ReadAuthorizationDocumentOptions : ReadOptions Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Numbers/V2/AuthorizationDocumentResource.cs b/src/Twilio/Rest/Numbers/V2/AuthorizationDocumentResource.cs index ad0ff91a0..0b8368d5b 100644 --- a/src/Twilio/Rest/Numbers/V2/AuthorizationDocumentResource.cs +++ b/src/Twilio/Rest/Numbers/V2/AuthorizationDocumentResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Numbers.V2 public class AuthorizationDocumentResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Numbers/V2/BulkHostedNumberOrderOptions.cs b/src/Twilio/Rest/Numbers/V2/BulkHostedNumberOrderOptions.cs index 5520d4008..989c7da5a 100644 --- a/src/Twilio/Rest/Numbers/V2/BulkHostedNumberOrderOptions.cs +++ b/src/Twilio/Rest/Numbers/V2/BulkHostedNumberOrderOptions.cs @@ -28,7 +28,7 @@ public class FetchBulkHostedNumberOrderOptions : IOptions A 34 character string that uniquely identifies this BulkHostedNumberOrder. - public string PathSid { get; } + public string PathBulkHostingSid { get; } /// Order status can be used for filtering on Hosted Number Order status values. To see a complete list of order statuses, please check 'https://www.twilio.com/docs/phone-numbers/hosted-numbers/hosted-numbers-api/hosted-number-order-resource#status-values'. public string OrderStatus { get; set; } @@ -36,15 +36,15 @@ public class FetchBulkHostedNumberOrderOptions : IOptions Construct a new FetchBulkHostedNumberOrderOptions - /// A 34 character string that uniquely identifies this BulkHostedNumberOrder. - public FetchBulkHostedNumberOrderOptions(string pathSid) + /// A 34 character string that uniquely identifies this BulkHostedNumberOrder. + public FetchBulkHostedNumberOrderOptions(string pathBulkHostingSid) { - PathSid = pathSid; + PathBulkHostingSid = pathBulkHostingSid; } /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Numbers/V2/BulkHostedNumberOrderResource.cs b/src/Twilio/Rest/Numbers/V2/BulkHostedNumberOrderResource.cs index 98ebbf075..9872708c4 100644 --- a/src/Twilio/Rest/Numbers/V2/BulkHostedNumberOrderResource.cs +++ b/src/Twilio/Rest/Numbers/V2/BulkHostedNumberOrderResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Numbers.V2 public class BulkHostedNumberOrderResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class RequestStatusEnum : StringEnum { @@ -48,10 +50,10 @@ public static implicit operator RequestStatusEnum(string value) private static Request BuildFetchRequest(FetchBulkHostedNumberOrderOptions options, ITwilioRestClient client) { - string path = "/v2/HostedNumber/Orders/Bulk/{Sid}"; + string path = "/v2/HostedNumber/Orders/Bulk/{BulkHostingSid}"; - string PathSid = options.PathSid; - path = path.Replace("{"+"Sid"+"}", PathSid); + string PathBulkHostingSid = options.PathBulkHostingSid; + path = path.Replace("{"+"BulkHostingSid"+"}", PathBulkHostingSid); return new Request( HttpMethod.Get, @@ -87,28 +89,28 @@ public static async System.Threading.Tasks.Task F } #endif /// Fetch a specific BulkHostedNumberOrder. - /// A 34 character string that uniquely identifies this BulkHostedNumberOrder. + /// A 34 character string that uniquely identifies this BulkHostedNumberOrder. /// Order status can be used for filtering on Hosted Number Order status values. To see a complete list of order statuses, please check 'https://www.twilio.com/docs/phone-numbers/hosted-numbers/hosted-numbers-api/hosted-number-order-resource#status-values'. /// Client to make requests to Twilio /// A single instance of BulkHostedNumberOrder public static BulkHostedNumberOrderResource Fetch( - string pathSid, + string pathBulkHostingSid, string orderStatus = null, ITwilioRestClient client = null) { - var options = new FetchBulkHostedNumberOrderOptions(pathSid){ OrderStatus = orderStatus }; + var options = new FetchBulkHostedNumberOrderOptions(pathBulkHostingSid){ OrderStatus = orderStatus }; return Fetch(options, client); } #if !NET35 /// Fetch a specific BulkHostedNumberOrder. - /// A 34 character string that uniquely identifies this BulkHostedNumberOrder. + /// A 34 character string that uniquely identifies this BulkHostedNumberOrder. /// Order status can be used for filtering on Hosted Number Order status values. To see a complete list of order statuses, please check 'https://www.twilio.com/docs/phone-numbers/hosted-numbers/hosted-numbers-api/hosted-number-order-resource#status-values'. /// Client to make requests to Twilio /// Task that resolves to A single instance of BulkHostedNumberOrder - public static async System.Threading.Tasks.Task FetchAsync(string pathSid, string orderStatus = null, ITwilioRestClient client = null) + public static async System.Threading.Tasks.Task FetchAsync(string pathBulkHostingSid, string orderStatus = null, ITwilioRestClient client = null) { - var options = new FetchBulkHostedNumberOrderOptions(pathSid){ OrderStatus = orderStatus }; + var options = new FetchBulkHostedNumberOrderOptions(pathBulkHostingSid){ OrderStatus = orderStatus }; return await FetchAsync(options, client); } #endif @@ -132,12 +134,8 @@ public static BulkHostedNumberOrderResource FromJson(string json) /// A 34 character string that uniquely identifies this BulkHostedNumberOrder. - [JsonProperty("sid")] - public string Sid { get; private set; } - - /// A 34 character string that uniquely identifies the account. - [JsonProperty("account_sid")] - public string AccountSid { get; private set; } + [JsonProperty("bulk_hosting_sid")] + public string BulkHostingSid { get; private set; } [JsonProperty("request_status")] diff --git a/src/Twilio/Rest/Numbers/V2/HostedNumberOrderOptions.cs b/src/Twilio/Rest/Numbers/V2/HostedNumberOrderOptions.cs index 5300ca5f5..c80a1c779 100644 --- a/src/Twilio/Rest/Numbers/V2/HostedNumberOrderOptions.cs +++ b/src/Twilio/Rest/Numbers/V2/HostedNumberOrderOptions.cs @@ -93,7 +93,7 @@ public CreateHostedNumberOrderOptions(Types.PhoneNumber phoneNumber, Types.Phone /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -184,7 +184,7 @@ public DeleteHostedNumberOrderOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -213,7 +213,7 @@ public FetchHostedNumberOrderOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -248,7 +248,7 @@ public class ReadHostedNumberOrderOptions : ReadOptions Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Numbers/V2/HostedNumberOrderResource.cs b/src/Twilio/Rest/Numbers/V2/HostedNumberOrderResource.cs index ffcd72b55..7b8395ca1 100644 --- a/src/Twilio/Rest/Numbers/V2/HostedNumberOrderResource.cs +++ b/src/Twilio/Rest/Numbers/V2/HostedNumberOrderResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Numbers.V2 public class HostedNumberOrderResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/Bundle/BundleCopyOptions.cs b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/Bundle/BundleCopyOptions.cs index 5b7ae647a..58e77da9c 100644 --- a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/Bundle/BundleCopyOptions.cs +++ b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/Bundle/BundleCopyOptions.cs @@ -44,7 +44,7 @@ public CreateBundleCopyOptions(string pathBundleSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -75,7 +75,7 @@ public ReadBundleCopyOptions(string pathBundleSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/Bundle/BundleCopyResource.cs b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/Bundle/BundleCopyResource.cs index c6ffa8b6e..be1a37b2c 100644 --- a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/Bundle/BundleCopyResource.cs +++ b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/Bundle/BundleCopyResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Numbers.V2.RegulatoryCompliance.Bundle public class BundleCopyResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/Bundle/EvaluationOptions.cs b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/Bundle/EvaluationOptions.cs index 5c80528d3..6f0ba7178 100644 --- a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/Bundle/EvaluationOptions.cs +++ b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/Bundle/EvaluationOptions.cs @@ -41,7 +41,7 @@ public CreateEvaluationOptions(string pathBundleSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -73,7 +73,7 @@ public FetchEvaluationOptions(string pathBundleSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -102,7 +102,7 @@ public ReadEvaluationOptions(string pathBundleSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/Bundle/EvaluationResource.cs b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/Bundle/EvaluationResource.cs index 9988dbb75..081641ca7 100644 --- a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/Bundle/EvaluationResource.cs +++ b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/Bundle/EvaluationResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Numbers.V2.RegulatoryCompliance.Bundle public class EvaluationResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/Bundle/ItemAssignmentOptions.cs b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/Bundle/ItemAssignmentOptions.cs index ed560d3f8..45bbec66f 100644 --- a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/Bundle/ItemAssignmentOptions.cs +++ b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/Bundle/ItemAssignmentOptions.cs @@ -46,7 +46,7 @@ public CreateItemAssignmentOptions(string pathBundleSid, string objectSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -82,7 +82,7 @@ public DeleteItemAssignmentOptions(string pathBundleSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -116,7 +116,7 @@ public FetchItemAssignmentOptions(string pathBundleSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -145,7 +145,7 @@ public ReadItemAssignmentOptions(string pathBundleSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/Bundle/ItemAssignmentResource.cs b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/Bundle/ItemAssignmentResource.cs index ba85c88b1..e6dd03797 100644 --- a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/Bundle/ItemAssignmentResource.cs +++ b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/Bundle/ItemAssignmentResource.cs @@ -30,6 +30,8 @@ public class ItemAssignmentResource : Resource { + + private static Request BuildCreateRequest(CreateItemAssignmentOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/Bundle/ReplaceItemsOptions.cs b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/Bundle/ReplaceItemsOptions.cs index 2e9837536..154040aeb 100644 --- a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/Bundle/ReplaceItemsOptions.cs +++ b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/Bundle/ReplaceItemsOptions.cs @@ -46,7 +46,7 @@ public CreateReplaceItemsOptions(string pathBundleSid, string fromBundleSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/Bundle/ReplaceItemsResource.cs b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/Bundle/ReplaceItemsResource.cs index 3e9196ae4..4df27f6e3 100644 --- a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/Bundle/ReplaceItemsResource.cs +++ b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/Bundle/ReplaceItemsResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Numbers.V2.RegulatoryCompliance.Bundle public class ReplaceItemsResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/BundleOptions.cs b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/BundleOptions.cs index da448018b..405b748b2 100644 --- a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/BundleOptions.cs +++ b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/BundleOptions.cs @@ -61,7 +61,7 @@ public CreateBundleOptions(string friendlyName, string email) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -116,7 +116,7 @@ public DeleteBundleOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -145,7 +145,7 @@ public FetchBundleOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -198,7 +198,7 @@ public class ReadBundleOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -289,7 +289,7 @@ public UpdateBundleOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/BundleResource.cs b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/BundleResource.cs index f04a25960..3ee8764da 100644 --- a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/BundleResource.cs +++ b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/BundleResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Numbers.V2.RegulatoryCompliance public class BundleResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/EndUserOptions.cs b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/EndUserOptions.cs index 01686312a..28a38d3c3 100644 --- a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/EndUserOptions.cs +++ b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/EndUserOptions.cs @@ -49,7 +49,7 @@ public CreateEndUserOptions(string friendlyName, EndUserResource.TypeEnum type) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -88,7 +88,7 @@ public DeleteEndUserOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -117,7 +117,7 @@ public FetchEndUserOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -137,7 +137,7 @@ public class ReadEndUserOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -175,7 +175,7 @@ public UpdateEndUserOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/EndUserResource.cs b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/EndUserResource.cs index d92653223..860904d08 100644 --- a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/EndUserResource.cs +++ b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/EndUserResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Numbers.V2.RegulatoryCompliance public class EndUserResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class TypeEnum : StringEnum { diff --git a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/EndUserTypeOptions.cs b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/EndUserTypeOptions.cs index fb0b0ab79..e32fd1519 100644 --- a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/EndUserTypeOptions.cs +++ b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/EndUserTypeOptions.cs @@ -41,7 +41,7 @@ public FetchEndUserTypeOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -61,7 +61,7 @@ public class ReadEndUserTypeOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/EndUserTypeResource.cs b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/EndUserTypeResource.cs index 8fc33bc75..d19d7d713 100644 --- a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/EndUserTypeResource.cs +++ b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/EndUserTypeResource.cs @@ -30,6 +30,8 @@ public class EndUserTypeResource : Resource { + + private static Request BuildFetchRequest(FetchEndUserTypeOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/RegulationOptions.cs b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/RegulationOptions.cs index 84765b61f..991e4527d 100644 --- a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/RegulationOptions.cs +++ b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/RegulationOptions.cs @@ -41,7 +41,7 @@ public FetchRegulationOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -70,7 +70,7 @@ public class ReadRegulationOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/RegulationResource.cs b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/RegulationResource.cs index 0eba847c6..e73fa9bf7 100644 --- a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/RegulationResource.cs +++ b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/RegulationResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Numbers.V2.RegulatoryCompliance public class RegulationResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class EndUserTypeEnum : StringEnum { diff --git a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/SupportingDocumentOptions.cs b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/SupportingDocumentOptions.cs index f93b8c6e7..ecaed869f 100644 --- a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/SupportingDocumentOptions.cs +++ b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/SupportingDocumentOptions.cs @@ -49,7 +49,7 @@ public CreateSupportingDocumentOptions(string friendlyName, string type) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -88,7 +88,7 @@ public DeleteSupportingDocumentOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -117,7 +117,7 @@ public FetchSupportingDocumentOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -137,7 +137,7 @@ public class ReadSupportingDocumentOptions : ReadOptions Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -175,7 +175,7 @@ public UpdateSupportingDocumentOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/SupportingDocumentResource.cs b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/SupportingDocumentResource.cs index f058eb5d4..3068b7af4 100644 --- a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/SupportingDocumentResource.cs +++ b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/SupportingDocumentResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Numbers.V2.RegulatoryCompliance public class SupportingDocumentResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/SupportingDocumentTypeOptions.cs b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/SupportingDocumentTypeOptions.cs index 7fecf6466..c8d322564 100644 --- a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/SupportingDocumentTypeOptions.cs +++ b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/SupportingDocumentTypeOptions.cs @@ -41,7 +41,7 @@ public FetchSupportingDocumentTypeOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -61,7 +61,7 @@ public class ReadSupportingDocumentTypeOptions : ReadOptions Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/SupportingDocumentTypeResource.cs b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/SupportingDocumentTypeResource.cs index 4ec0bf1e5..ed87ed44a 100644 --- a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/SupportingDocumentTypeResource.cs +++ b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/SupportingDocumentTypeResource.cs @@ -30,6 +30,8 @@ public class SupportingDocumentTypeResource : Resource { + + private static Request BuildFetchRequest(FetchSupportingDocumentTypeOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Oauth/V1/DeviceCodeOptions.cs b/src/Twilio/Rest/Oauth/V1/DeviceCodeOptions.cs index bbee41562..2e3f6f226 100644 --- a/src/Twilio/Rest/Oauth/V1/DeviceCodeOptions.cs +++ b/src/Twilio/Rest/Oauth/V1/DeviceCodeOptions.cs @@ -50,7 +50,7 @@ public CreateDeviceCodeOptions(string clientSid, List scopes) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Oauth/V1/DeviceCodeResource.cs b/src/Twilio/Rest/Oauth/V1/DeviceCodeResource.cs index 1991b39f7..1a7185d7a 100644 --- a/src/Twilio/Rest/Oauth/V1/DeviceCodeResource.cs +++ b/src/Twilio/Rest/Oauth/V1/DeviceCodeResource.cs @@ -30,6 +30,8 @@ public class DeviceCodeResource : Resource { + + private static Request BuildCreateRequest(CreateDeviceCodeOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Oauth/V1/OauthOptions.cs b/src/Twilio/Rest/Oauth/V1/OauthOptions.cs index 9282c72f8..ab1015aa8 100644 --- a/src/Twilio/Rest/Oauth/V1/OauthOptions.cs +++ b/src/Twilio/Rest/Oauth/V1/OauthOptions.cs @@ -32,7 +32,7 @@ public class FetchOauthOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Oauth/V1/OauthResource.cs b/src/Twilio/Rest/Oauth/V1/OauthResource.cs index 89af71c62..aa32d3da2 100644 --- a/src/Twilio/Rest/Oauth/V1/OauthResource.cs +++ b/src/Twilio/Rest/Oauth/V1/OauthResource.cs @@ -30,6 +30,8 @@ public class OauthResource : Resource { + + private static Request BuildFetchRequest(FetchOauthOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Oauth/V1/OpenidDiscoveryOptions.cs b/src/Twilio/Rest/Oauth/V1/OpenidDiscoveryOptions.cs index 52380c3fe..f7016b467 100644 --- a/src/Twilio/Rest/Oauth/V1/OpenidDiscoveryOptions.cs +++ b/src/Twilio/Rest/Oauth/V1/OpenidDiscoveryOptions.cs @@ -32,7 +32,7 @@ public class FetchOpenidDiscoveryOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Oauth/V1/OpenidDiscoveryResource.cs b/src/Twilio/Rest/Oauth/V1/OpenidDiscoveryResource.cs index 63f50d875..6c63446b0 100644 --- a/src/Twilio/Rest/Oauth/V1/OpenidDiscoveryResource.cs +++ b/src/Twilio/Rest/Oauth/V1/OpenidDiscoveryResource.cs @@ -30,6 +30,8 @@ public class OpenidDiscoveryResource : Resource { + + private static Request BuildFetchRequest(FetchOpenidDiscoveryOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Oauth/V1/TokenOptions.cs b/src/Twilio/Rest/Oauth/V1/TokenOptions.cs index fb587fbc4..9a848b7e1 100644 --- a/src/Twilio/Rest/Oauth/V1/TokenOptions.cs +++ b/src/Twilio/Rest/Oauth/V1/TokenOptions.cs @@ -64,7 +64,7 @@ public CreateTokenOptions(string grantType, string clientSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Oauth/V1/TokenResource.cs b/src/Twilio/Rest/Oauth/V1/TokenResource.cs index b93ec76a6..df070ee5c 100644 --- a/src/Twilio/Rest/Oauth/V1/TokenResource.cs +++ b/src/Twilio/Rest/Oauth/V1/TokenResource.cs @@ -30,6 +30,8 @@ public class TokenResource : Resource { + + private static Request BuildCreateRequest(CreateTokenOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Oauth/V1/UserInfoOptions.cs b/src/Twilio/Rest/Oauth/V1/UserInfoOptions.cs index 3a99b46cf..319b7745c 100644 --- a/src/Twilio/Rest/Oauth/V1/UserInfoOptions.cs +++ b/src/Twilio/Rest/Oauth/V1/UserInfoOptions.cs @@ -32,7 +32,7 @@ public class FetchUserInfoOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Oauth/V1/UserInfoResource.cs b/src/Twilio/Rest/Oauth/V1/UserInfoResource.cs index 8629cc8ea..354e8b265 100644 --- a/src/Twilio/Rest/Oauth/V1/UserInfoResource.cs +++ b/src/Twilio/Rest/Oauth/V1/UserInfoResource.cs @@ -30,6 +30,8 @@ public class UserInfoResource : Resource { + + private static Request BuildFetchRequest(FetchUserInfoOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Preview/DeployedDevices/Fleet/CertificateOptions.cs b/src/Twilio/Rest/Preview/DeployedDevices/Fleet/CertificateOptions.cs index d90fc7e43..34ee9fe4d 100644 --- a/src/Twilio/Rest/Preview/DeployedDevices/Fleet/CertificateOptions.cs +++ b/src/Twilio/Rest/Preview/DeployedDevices/Fleet/CertificateOptions.cs @@ -52,7 +52,7 @@ public CreateCertificateOptions(string pathFleetSid, string certificateData) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -96,7 +96,7 @@ public DeleteCertificateOptions(string pathFleetSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -130,7 +130,7 @@ public FetchCertificateOptions(string pathFleetSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -162,7 +162,7 @@ public ReadCertificateOptions(string pathFleetSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -209,7 +209,7 @@ public UpdateCertificateOptions(string pathFleetSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Preview/DeployedDevices/Fleet/CertificateResource.cs b/src/Twilio/Rest/Preview/DeployedDevices/Fleet/CertificateResource.cs index 47e4113ce..0e5b92864 100644 --- a/src/Twilio/Rest/Preview/DeployedDevices/Fleet/CertificateResource.cs +++ b/src/Twilio/Rest/Preview/DeployedDevices/Fleet/CertificateResource.cs @@ -30,6 +30,8 @@ public class CertificateResource : Resource { + + private static Request BuildCreateRequest(CreateCertificateOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Preview/DeployedDevices/Fleet/DeploymentOptions.cs b/src/Twilio/Rest/Preview/DeployedDevices/Fleet/DeploymentOptions.cs index a28781b60..d71f261ca 100644 --- a/src/Twilio/Rest/Preview/DeployedDevices/Fleet/DeploymentOptions.cs +++ b/src/Twilio/Rest/Preview/DeployedDevices/Fleet/DeploymentOptions.cs @@ -47,7 +47,7 @@ public CreateDeploymentOptions(string pathFleetSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -87,7 +87,7 @@ public DeleteDeploymentOptions(string pathFleetSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -121,7 +121,7 @@ public FetchDeploymentOptions(string pathFleetSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -150,7 +150,7 @@ public ReadDeploymentOptions(string pathFleetSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -193,7 +193,7 @@ public UpdateDeploymentOptions(string pathFleetSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Preview/DeployedDevices/Fleet/DeploymentResource.cs b/src/Twilio/Rest/Preview/DeployedDevices/Fleet/DeploymentResource.cs index 08e947931..cb23d4569 100644 --- a/src/Twilio/Rest/Preview/DeployedDevices/Fleet/DeploymentResource.cs +++ b/src/Twilio/Rest/Preview/DeployedDevices/Fleet/DeploymentResource.cs @@ -30,6 +30,8 @@ public class DeploymentResource : Resource { + + private static Request BuildCreateRequest(CreateDeploymentOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Preview/DeployedDevices/Fleet/DeviceOptions.cs b/src/Twilio/Rest/Preview/DeployedDevices/Fleet/DeviceOptions.cs index d530a8ae7..38285e3f0 100644 --- a/src/Twilio/Rest/Preview/DeployedDevices/Fleet/DeviceOptions.cs +++ b/src/Twilio/Rest/Preview/DeployedDevices/Fleet/DeviceOptions.cs @@ -56,7 +56,7 @@ public CreateDeviceOptions(string pathFleetSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -108,7 +108,7 @@ public DeleteDeviceOptions(string pathFleetSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -142,7 +142,7 @@ public FetchDeviceOptions(string pathFleetSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -174,7 +174,7 @@ public ReadDeviceOptions(string pathFleetSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -227,7 +227,7 @@ public UpdateDeviceOptions(string pathFleetSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Preview/DeployedDevices/Fleet/DeviceResource.cs b/src/Twilio/Rest/Preview/DeployedDevices/Fleet/DeviceResource.cs index 7c678e667..0ff722e35 100644 --- a/src/Twilio/Rest/Preview/DeployedDevices/Fleet/DeviceResource.cs +++ b/src/Twilio/Rest/Preview/DeployedDevices/Fleet/DeviceResource.cs @@ -30,6 +30,8 @@ public class DeviceResource : Resource { + + private static Request BuildCreateRequest(CreateDeviceOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Preview/DeployedDevices/Fleet/KeyOptions.cs b/src/Twilio/Rest/Preview/DeployedDevices/Fleet/KeyOptions.cs index b3126807f..14382d285 100644 --- a/src/Twilio/Rest/Preview/DeployedDevices/Fleet/KeyOptions.cs +++ b/src/Twilio/Rest/Preview/DeployedDevices/Fleet/KeyOptions.cs @@ -47,7 +47,7 @@ public CreateKeyOptions(string pathFleetSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -87,7 +87,7 @@ public DeleteKeyOptions(string pathFleetSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -121,7 +121,7 @@ public FetchKeyOptions(string pathFleetSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -153,7 +153,7 @@ public ReadKeyOptions(string pathFleetSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -200,7 +200,7 @@ public UpdateKeyOptions(string pathFleetSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Preview/DeployedDevices/Fleet/KeyResource.cs b/src/Twilio/Rest/Preview/DeployedDevices/Fleet/KeyResource.cs index 7bee6d6ad..fe7054b4e 100644 --- a/src/Twilio/Rest/Preview/DeployedDevices/Fleet/KeyResource.cs +++ b/src/Twilio/Rest/Preview/DeployedDevices/Fleet/KeyResource.cs @@ -30,6 +30,8 @@ public class KeyResource : Resource { + + private static Request BuildCreateRequest(CreateKeyOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Preview/DeployedDevices/FleetOptions.cs b/src/Twilio/Rest/Preview/DeployedDevices/FleetOptions.cs index eabc84212..3170aa257 100644 --- a/src/Twilio/Rest/Preview/DeployedDevices/FleetOptions.cs +++ b/src/Twilio/Rest/Preview/DeployedDevices/FleetOptions.cs @@ -35,7 +35,7 @@ public class CreateFleetOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -66,7 +66,7 @@ public DeleteFleetOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -95,7 +95,7 @@ public FetchFleetOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -115,7 +115,7 @@ public class ReadFleetOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -153,7 +153,7 @@ public UpdateFleetOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Preview/DeployedDevices/FleetResource.cs b/src/Twilio/Rest/Preview/DeployedDevices/FleetResource.cs index f0825460a..2962ba5dc 100644 --- a/src/Twilio/Rest/Preview/DeployedDevices/FleetResource.cs +++ b/src/Twilio/Rest/Preview/DeployedDevices/FleetResource.cs @@ -30,6 +30,8 @@ public class FleetResource : Resource { + + private static Request BuildCreateRequest(CreateFleetOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocument/DependentHostedNumberOrderOptions.cs b/src/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocument/DependentHostedNumberOrderOptions.cs index 0e68962ff..11573e1a9 100644 --- a/src/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocument/DependentHostedNumberOrderOptions.cs +++ b/src/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocument/DependentHostedNumberOrderOptions.cs @@ -56,7 +56,7 @@ public ReadDependentHostedNumberOrderOptions(string pathSigningDocumentSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocument/DependentHostedNumberOrderResource.cs b/src/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocument/DependentHostedNumberOrderResource.cs index 8db5b3ae2..952dba416 100644 --- a/src/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocument/DependentHostedNumberOrderResource.cs +++ b/src/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocument/DependentHostedNumberOrderResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Preview.HostedNumbers.AuthorizationDocument public class DependentHostedNumberOrderResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentOptions.cs b/src/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentOptions.cs index ecdd740e3..7101e3926 100644 --- a/src/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentOptions.cs +++ b/src/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentOptions.cs @@ -65,7 +65,7 @@ public CreateAuthorizationDocumentOptions(List hostedNumberOrderSids, st /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -116,7 +116,7 @@ public FetchAuthorizationDocumentOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -142,7 +142,7 @@ public class ReadAuthorizationDocumentOptions : ReadOptions Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -205,7 +205,7 @@ public UpdateAuthorizationDocumentOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentResource.cs b/src/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentResource.cs index 5147e36a5..95ae00d85 100644 --- a/src/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentResource.cs +++ b/src/Twilio/Rest/Preview/HostedNumbers/AuthorizationDocumentResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Preview.HostedNumbers public class AuthorizationDocumentResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderOptions.cs b/src/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderOptions.cs index 0c0defbf4..51a886aad 100644 --- a/src/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderOptions.cs +++ b/src/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderOptions.cs @@ -92,7 +92,7 @@ public CreateHostedNumberOrderOptions(Types.PhoneNumber phoneNumber, bool? smsCa /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -187,7 +187,7 @@ public DeleteHostedNumberOrderOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -216,7 +216,7 @@ public FetchHostedNumberOrderOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -251,7 +251,7 @@ public class ReadHostedNumberOrderOptions : ReadOptions Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -334,7 +334,7 @@ public UpdateHostedNumberOrderOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderResource.cs b/src/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderResource.cs index 3548747cb..a1b7c21c6 100644 --- a/src/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderResource.cs +++ b/src/Twilio/Rest/Preview/HostedNumbers/HostedNumberOrderResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Preview.HostedNumbers public class HostedNumberOrderResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Preview/Marketplace/AvailableAddOn/AvailableAddOnExtensionOptions.cs b/src/Twilio/Rest/Preview/Marketplace/AvailableAddOn/AvailableAddOnExtensionOptions.cs index 66a933156..4ba649bf4 100644 --- a/src/Twilio/Rest/Preview/Marketplace/AvailableAddOn/AvailableAddOnExtensionOptions.cs +++ b/src/Twilio/Rest/Preview/Marketplace/AvailableAddOn/AvailableAddOnExtensionOptions.cs @@ -46,7 +46,7 @@ public FetchAvailableAddOnExtensionOptions(string pathAvailableAddOnSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -75,7 +75,7 @@ public ReadAvailableAddOnExtensionOptions(string pathAvailableAddOnSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Preview/Marketplace/AvailableAddOn/AvailableAddOnExtensionResource.cs b/src/Twilio/Rest/Preview/Marketplace/AvailableAddOn/AvailableAddOnExtensionResource.cs index c7b20a25a..c44ea4c5b 100644 --- a/src/Twilio/Rest/Preview/Marketplace/AvailableAddOn/AvailableAddOnExtensionResource.cs +++ b/src/Twilio/Rest/Preview/Marketplace/AvailableAddOn/AvailableAddOnExtensionResource.cs @@ -30,6 +30,8 @@ public class AvailableAddOnExtensionResource : Resource { + + private static Request BuildFetchRequest(FetchAvailableAddOnExtensionOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Preview/Marketplace/AvailableAddOnOptions.cs b/src/Twilio/Rest/Preview/Marketplace/AvailableAddOnOptions.cs index cf6521389..5caddd8bc 100644 --- a/src/Twilio/Rest/Preview/Marketplace/AvailableAddOnOptions.cs +++ b/src/Twilio/Rest/Preview/Marketplace/AvailableAddOnOptions.cs @@ -41,7 +41,7 @@ public FetchAvailableAddOnOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -61,7 +61,7 @@ public class ReadAvailableAddOnOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Preview/Marketplace/AvailableAddOnResource.cs b/src/Twilio/Rest/Preview/Marketplace/AvailableAddOnResource.cs index d69126ac9..b22a3f5e4 100644 --- a/src/Twilio/Rest/Preview/Marketplace/AvailableAddOnResource.cs +++ b/src/Twilio/Rest/Preview/Marketplace/AvailableAddOnResource.cs @@ -30,6 +30,8 @@ public class AvailableAddOnResource : Resource { + + private static Request BuildFetchRequest(FetchAvailableAddOnOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Preview/Marketplace/InstalledAddOn/InstalledAddOnExtensionOptions.cs b/src/Twilio/Rest/Preview/Marketplace/InstalledAddOn/InstalledAddOnExtensionOptions.cs index 3593d45fd..803cbb692 100644 --- a/src/Twilio/Rest/Preview/Marketplace/InstalledAddOn/InstalledAddOnExtensionOptions.cs +++ b/src/Twilio/Rest/Preview/Marketplace/InstalledAddOn/InstalledAddOnExtensionOptions.cs @@ -46,7 +46,7 @@ public FetchInstalledAddOnExtensionOptions(string pathInstalledAddOnSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -75,7 +75,7 @@ public ReadInstalledAddOnExtensionOptions(string pathInstalledAddOnSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -117,7 +117,7 @@ public UpdateInstalledAddOnExtensionOptions(string pathInstalledAddOnSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Preview/Marketplace/InstalledAddOn/InstalledAddOnExtensionResource.cs b/src/Twilio/Rest/Preview/Marketplace/InstalledAddOn/InstalledAddOnExtensionResource.cs index 3509f7cc2..af8cac1d8 100644 --- a/src/Twilio/Rest/Preview/Marketplace/InstalledAddOn/InstalledAddOnExtensionResource.cs +++ b/src/Twilio/Rest/Preview/Marketplace/InstalledAddOn/InstalledAddOnExtensionResource.cs @@ -30,6 +30,8 @@ public class InstalledAddOnExtensionResource : Resource { + + private static Request BuildFetchRequest(FetchInstalledAddOnExtensionOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Preview/Marketplace/InstalledAddOnOptions.cs b/src/Twilio/Rest/Preview/Marketplace/InstalledAddOnOptions.cs index d6378765a..ff260e4f1 100644 --- a/src/Twilio/Rest/Preview/Marketplace/InstalledAddOnOptions.cs +++ b/src/Twilio/Rest/Preview/Marketplace/InstalledAddOnOptions.cs @@ -52,7 +52,7 @@ public CreateInstalledAddOnOptions(string availableAddOnSid, bool? acceptTermsOf /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -95,7 +95,7 @@ public DeleteInstalledAddOnOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -124,7 +124,7 @@ public FetchInstalledAddOnOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -144,7 +144,7 @@ public class ReadInstalledAddOnOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -182,7 +182,7 @@ public UpdateInstalledAddOnOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Preview/Marketplace/InstalledAddOnResource.cs b/src/Twilio/Rest/Preview/Marketplace/InstalledAddOnResource.cs index 51f16ef74..62926df73 100644 --- a/src/Twilio/Rest/Preview/Marketplace/InstalledAddOnResource.cs +++ b/src/Twilio/Rest/Preview/Marketplace/InstalledAddOnResource.cs @@ -30,6 +30,8 @@ public class InstalledAddOnResource : Resource { + + private static Request BuildCreateRequest(CreateInstalledAddOnOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Preview/Sync/Service/Document/DocumentPermissionOptions.cs b/src/Twilio/Rest/Preview/Sync/Service/Document/DocumentPermissionOptions.cs index 800facecd..7696e6658 100644 --- a/src/Twilio/Rest/Preview/Sync/Service/Document/DocumentPermissionOptions.cs +++ b/src/Twilio/Rest/Preview/Sync/Service/Document/DocumentPermissionOptions.cs @@ -51,7 +51,7 @@ public DeleteDocumentPermissionOptions(string pathServiceSid, string pathDocumen /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -90,7 +90,7 @@ public FetchDocumentPermissionOptions(string pathServiceSid, string pathDocument /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -124,7 +124,7 @@ public ReadDocumentPermissionOptions(string pathServiceSid, string pathDocumentS /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -181,7 +181,7 @@ public UpdateDocumentPermissionOptions(string pathServiceSid, string pathDocumen /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Preview/Sync/Service/Document/DocumentPermissionResource.cs b/src/Twilio/Rest/Preview/Sync/Service/Document/DocumentPermissionResource.cs index da82d219d..a99803cd7 100644 --- a/src/Twilio/Rest/Preview/Sync/Service/Document/DocumentPermissionResource.cs +++ b/src/Twilio/Rest/Preview/Sync/Service/Document/DocumentPermissionResource.cs @@ -30,6 +30,8 @@ public class DocumentPermissionResource : Resource { + + /// Delete a specific Sync Document Permission. /// Delete DocumentPermission parameters diff --git a/src/Twilio/Rest/Preview/Sync/Service/DocumentOptions.cs b/src/Twilio/Rest/Preview/Sync/Service/DocumentOptions.cs index c54ae94dd..46f816d3e 100644 --- a/src/Twilio/Rest/Preview/Sync/Service/DocumentOptions.cs +++ b/src/Twilio/Rest/Preview/Sync/Service/DocumentOptions.cs @@ -47,7 +47,7 @@ public CreateDocumentOptions(string pathServiceSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -87,7 +87,7 @@ public DeleteDocumentOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -121,7 +121,7 @@ public FetchDocumentOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -150,7 +150,7 @@ public ReadDocumentOptions(string pathServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -195,7 +195,7 @@ public UpdateDocumentOptions(string pathServiceSid, string pathSid, object data) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Preview/Sync/Service/DocumentResource.cs b/src/Twilio/Rest/Preview/Sync/Service/DocumentResource.cs index c4652180a..859bcbb8e 100644 --- a/src/Twilio/Rest/Preview/Sync/Service/DocumentResource.cs +++ b/src/Twilio/Rest/Preview/Sync/Service/DocumentResource.cs @@ -30,6 +30,8 @@ public class DocumentResource : Resource { + + private static Request BuildCreateRequest(CreateDocumentOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListItemOptions.cs b/src/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListItemOptions.cs index 51468ffc7..e4a6016c6 100644 --- a/src/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListItemOptions.cs +++ b/src/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListItemOptions.cs @@ -51,7 +51,7 @@ public CreateSyncListItemOptions(string pathServiceSid, string pathListSid, obje /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -95,7 +95,7 @@ public DeleteSyncListItemOptions(string pathServiceSid, string pathListSid, int? /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -144,7 +144,7 @@ public FetchSyncListItemOptions(string pathServiceSid, string pathListSid, int? /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -187,7 +187,7 @@ public ReadSyncListItemOptions(string pathServiceSid, string pathListSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -249,7 +249,7 @@ public UpdateSyncListItemOptions(string pathServiceSid, string pathListSid, int? /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListItemResource.cs b/src/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListItemResource.cs index 569474c79..bddd83597 100644 --- a/src/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListItemResource.cs +++ b/src/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListItemResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Preview.Sync.Service.SyncList public class SyncListItemResource : Resource { + + public sealed class QueryFromBoundTypeEnum : StringEnum { private QueryFromBoundTypeEnum(string value) : base(value) {} diff --git a/src/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListPermissionOptions.cs b/src/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListPermissionOptions.cs index 5d37ca96c..f05dbd99b 100644 --- a/src/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListPermissionOptions.cs +++ b/src/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListPermissionOptions.cs @@ -51,7 +51,7 @@ public DeleteSyncListPermissionOptions(string pathServiceSid, string pathListSid /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -90,7 +90,7 @@ public FetchSyncListPermissionOptions(string pathServiceSid, string pathListSid, /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -124,7 +124,7 @@ public ReadSyncListPermissionOptions(string pathServiceSid, string pathListSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -181,7 +181,7 @@ public UpdateSyncListPermissionOptions(string pathServiceSid, string pathListSid /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListPermissionResource.cs b/src/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListPermissionResource.cs index 82591056c..3d70cb8d5 100644 --- a/src/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListPermissionResource.cs +++ b/src/Twilio/Rest/Preview/Sync/Service/SyncList/SyncListPermissionResource.cs @@ -30,6 +30,8 @@ public class SyncListPermissionResource : Resource { + + /// Delete a specific Sync List Permission. /// Delete SyncListPermission parameters diff --git a/src/Twilio/Rest/Preview/Sync/Service/SyncListOptions.cs b/src/Twilio/Rest/Preview/Sync/Service/SyncListOptions.cs index 4d47f0a95..09ba99832 100644 --- a/src/Twilio/Rest/Preview/Sync/Service/SyncListOptions.cs +++ b/src/Twilio/Rest/Preview/Sync/Service/SyncListOptions.cs @@ -44,7 +44,7 @@ public CreateSyncListOptions(string pathServiceSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -80,7 +80,7 @@ public DeleteSyncListOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -114,7 +114,7 @@ public FetchSyncListOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -143,7 +143,7 @@ public ReadSyncListOptions(string pathServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Preview/Sync/Service/SyncListResource.cs b/src/Twilio/Rest/Preview/Sync/Service/SyncListResource.cs index 3626d3104..9a3a669ab 100644 --- a/src/Twilio/Rest/Preview/Sync/Service/SyncListResource.cs +++ b/src/Twilio/Rest/Preview/Sync/Service/SyncListResource.cs @@ -30,6 +30,8 @@ public class SyncListResource : Resource { + + private static Request BuildCreateRequest(CreateSyncListOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapItemOptions.cs b/src/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapItemOptions.cs index 39b4344b0..ae164780e 100644 --- a/src/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapItemOptions.cs +++ b/src/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapItemOptions.cs @@ -56,7 +56,7 @@ public CreateSyncMapItemOptions(string pathServiceSid, string pathMapSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -104,7 +104,7 @@ public DeleteSyncMapItemOptions(string pathServiceSid, string pathMapSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -153,7 +153,7 @@ public FetchSyncMapItemOptions(string pathServiceSid, string pathMapSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -196,7 +196,7 @@ public ReadSyncMapItemOptions(string pathServiceSid, string pathMapSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -258,7 +258,7 @@ public UpdateSyncMapItemOptions(string pathServiceSid, string pathMapSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapItemResource.cs b/src/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapItemResource.cs index 9d8c5233f..dac55eb64 100644 --- a/src/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapItemResource.cs +++ b/src/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapItemResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Preview.Sync.Service.SyncMap public class SyncMapItemResource : Resource { + + public sealed class QueryFromBoundTypeEnum : StringEnum { private QueryFromBoundTypeEnum(string value) : base(value) {} diff --git a/src/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapPermissionOptions.cs b/src/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapPermissionOptions.cs index fdcb33595..b5c39b0f4 100644 --- a/src/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapPermissionOptions.cs +++ b/src/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapPermissionOptions.cs @@ -51,7 +51,7 @@ public DeleteSyncMapPermissionOptions(string pathServiceSid, string pathMapSid, /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -90,7 +90,7 @@ public FetchSyncMapPermissionOptions(string pathServiceSid, string pathMapSid, s /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -124,7 +124,7 @@ public ReadSyncMapPermissionOptions(string pathServiceSid, string pathMapSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -181,7 +181,7 @@ public UpdateSyncMapPermissionOptions(string pathServiceSid, string pathMapSid, /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapPermissionResource.cs b/src/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapPermissionResource.cs index c4a2a14ab..31de9772b 100644 --- a/src/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapPermissionResource.cs +++ b/src/Twilio/Rest/Preview/Sync/Service/SyncMap/SyncMapPermissionResource.cs @@ -30,6 +30,8 @@ public class SyncMapPermissionResource : Resource { + + /// Delete a specific Sync Map Permission. /// Delete SyncMapPermission parameters diff --git a/src/Twilio/Rest/Preview/Sync/Service/SyncMapOptions.cs b/src/Twilio/Rest/Preview/Sync/Service/SyncMapOptions.cs index 1e1d5e233..1bdf10769 100644 --- a/src/Twilio/Rest/Preview/Sync/Service/SyncMapOptions.cs +++ b/src/Twilio/Rest/Preview/Sync/Service/SyncMapOptions.cs @@ -44,7 +44,7 @@ public CreateSyncMapOptions(string pathServiceSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -80,7 +80,7 @@ public DeleteSyncMapOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -114,7 +114,7 @@ public FetchSyncMapOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -143,7 +143,7 @@ public ReadSyncMapOptions(string pathServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Preview/Sync/Service/SyncMapResource.cs b/src/Twilio/Rest/Preview/Sync/Service/SyncMapResource.cs index d0d082cc2..dfe745bd8 100644 --- a/src/Twilio/Rest/Preview/Sync/Service/SyncMapResource.cs +++ b/src/Twilio/Rest/Preview/Sync/Service/SyncMapResource.cs @@ -30,6 +30,8 @@ public class SyncMapResource : Resource { + + private static Request BuildCreateRequest(CreateSyncMapOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Preview/Sync/ServiceOptions.cs b/src/Twilio/Rest/Preview/Sync/ServiceOptions.cs index 289351e6d..5d93b8967 100644 --- a/src/Twilio/Rest/Preview/Sync/ServiceOptions.cs +++ b/src/Twilio/Rest/Preview/Sync/ServiceOptions.cs @@ -44,7 +44,7 @@ public class CreateServiceOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -87,7 +87,7 @@ public DeleteServiceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -116,7 +116,7 @@ public FetchServiceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -136,7 +136,7 @@ public class ReadServiceOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -180,7 +180,7 @@ public UpdateServiceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Preview/Sync/ServiceResource.cs b/src/Twilio/Rest/Preview/Sync/ServiceResource.cs index a9dab7735..fc88d5237 100644 --- a/src/Twilio/Rest/Preview/Sync/ServiceResource.cs +++ b/src/Twilio/Rest/Preview/Sync/ServiceResource.cs @@ -30,6 +30,8 @@ public class ServiceResource : Resource { + + private static Request BuildCreateRequest(CreateServiceOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Preview/Understand/Assistant/AssistantFallbackActionsOptions.cs b/src/Twilio/Rest/Preview/Understand/Assistant/AssistantFallbackActionsOptions.cs index ece8631ff..aa4a2baef 100644 --- a/src/Twilio/Rest/Preview/Understand/Assistant/AssistantFallbackActionsOptions.cs +++ b/src/Twilio/Rest/Preview/Understand/Assistant/AssistantFallbackActionsOptions.cs @@ -41,7 +41,7 @@ public FetchAssistantFallbackActionsOptions(string pathAssistantSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -73,7 +73,7 @@ public UpdateAssistantFallbackActionsOptions(string pathAssistantSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Preview/Understand/Assistant/AssistantFallbackActionsResource.cs b/src/Twilio/Rest/Preview/Understand/Assistant/AssistantFallbackActionsResource.cs index 81f718511..ed0cac9c7 100644 --- a/src/Twilio/Rest/Preview/Understand/Assistant/AssistantFallbackActionsResource.cs +++ b/src/Twilio/Rest/Preview/Understand/Assistant/AssistantFallbackActionsResource.cs @@ -30,6 +30,8 @@ public class AssistantFallbackActionsResource : Resource { + + private static Request BuildFetchRequest(FetchAssistantFallbackActionsOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Preview/Understand/Assistant/AssistantInitiationActionsOptions.cs b/src/Twilio/Rest/Preview/Understand/Assistant/AssistantInitiationActionsOptions.cs index 7e3596901..0e0c17a10 100644 --- a/src/Twilio/Rest/Preview/Understand/Assistant/AssistantInitiationActionsOptions.cs +++ b/src/Twilio/Rest/Preview/Understand/Assistant/AssistantInitiationActionsOptions.cs @@ -41,7 +41,7 @@ public FetchAssistantInitiationActionsOptions(string pathAssistantSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -73,7 +73,7 @@ public UpdateAssistantInitiationActionsOptions(string pathAssistantSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Preview/Understand/Assistant/AssistantInitiationActionsResource.cs b/src/Twilio/Rest/Preview/Understand/Assistant/AssistantInitiationActionsResource.cs index ba61666ac..75fe7501d 100644 --- a/src/Twilio/Rest/Preview/Understand/Assistant/AssistantInitiationActionsResource.cs +++ b/src/Twilio/Rest/Preview/Understand/Assistant/AssistantInitiationActionsResource.cs @@ -30,6 +30,8 @@ public class AssistantInitiationActionsResource : Resource { + + private static Request BuildFetchRequest(FetchAssistantInitiationActionsOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Preview/Understand/Assistant/DialogueOptions.cs b/src/Twilio/Rest/Preview/Understand/Assistant/DialogueOptions.cs index 7fa7438c4..e11a8b738 100644 --- a/src/Twilio/Rest/Preview/Understand/Assistant/DialogueOptions.cs +++ b/src/Twilio/Rest/Preview/Understand/Assistant/DialogueOptions.cs @@ -46,7 +46,7 @@ public FetchDialogueOptions(string pathAssistantSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Preview/Understand/Assistant/DialogueResource.cs b/src/Twilio/Rest/Preview/Understand/Assistant/DialogueResource.cs index 936055ddf..5946fd86d 100644 --- a/src/Twilio/Rest/Preview/Understand/Assistant/DialogueResource.cs +++ b/src/Twilio/Rest/Preview/Understand/Assistant/DialogueResource.cs @@ -30,6 +30,8 @@ public class DialogueResource : Resource { + + private static Request BuildFetchRequest(FetchDialogueOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Preview/Understand/Assistant/FieldType/FieldValueOptions.cs b/src/Twilio/Rest/Preview/Understand/Assistant/FieldType/FieldValueOptions.cs index 85ce1f9be..f3594b883 100644 --- a/src/Twilio/Rest/Preview/Understand/Assistant/FieldType/FieldValueOptions.cs +++ b/src/Twilio/Rest/Preview/Understand/Assistant/FieldType/FieldValueOptions.cs @@ -59,7 +59,7 @@ public CreateFieldValueOptions(string pathAssistantSid, string pathFieldTypeSid, /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -108,7 +108,7 @@ public DeleteFieldValueOptions(string pathAssistantSid, string pathFieldTypeSid, /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -147,7 +147,7 @@ public FetchFieldValueOptions(string pathAssistantSid, string pathFieldTypeSid, /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -184,7 +184,7 @@ public ReadFieldValueOptions(string pathAssistantSid, string pathFieldTypeSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Preview/Understand/Assistant/FieldType/FieldValueResource.cs b/src/Twilio/Rest/Preview/Understand/Assistant/FieldType/FieldValueResource.cs index 21157b000..defb79432 100644 --- a/src/Twilio/Rest/Preview/Understand/Assistant/FieldType/FieldValueResource.cs +++ b/src/Twilio/Rest/Preview/Understand/Assistant/FieldType/FieldValueResource.cs @@ -30,6 +30,8 @@ public class FieldValueResource : Resource { + + private static Request BuildCreateRequest(CreateFieldValueOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Preview/Understand/Assistant/FieldTypeOptions.cs b/src/Twilio/Rest/Preview/Understand/Assistant/FieldTypeOptions.cs index ff79939d5..e798654ca 100644 --- a/src/Twilio/Rest/Preview/Understand/Assistant/FieldTypeOptions.cs +++ b/src/Twilio/Rest/Preview/Understand/Assistant/FieldTypeOptions.cs @@ -49,7 +49,7 @@ public CreateFieldTypeOptions(string pathAssistantSid, string uniqueName) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -89,7 +89,7 @@ public DeleteFieldTypeOptions(string pathAssistantSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -123,7 +123,7 @@ public FetchFieldTypeOptions(string pathAssistantSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -152,7 +152,7 @@ public ReadFieldTypeOptions(string pathAssistantSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -195,7 +195,7 @@ public UpdateFieldTypeOptions(string pathAssistantSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Preview/Understand/Assistant/FieldTypeResource.cs b/src/Twilio/Rest/Preview/Understand/Assistant/FieldTypeResource.cs index d33a87f7e..59c2de9ea 100644 --- a/src/Twilio/Rest/Preview/Understand/Assistant/FieldTypeResource.cs +++ b/src/Twilio/Rest/Preview/Understand/Assistant/FieldTypeResource.cs @@ -30,6 +30,8 @@ public class FieldTypeResource : Resource { + + private static Request BuildCreateRequest(CreateFieldTypeOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Preview/Understand/Assistant/ModelBuildOptions.cs b/src/Twilio/Rest/Preview/Understand/Assistant/ModelBuildOptions.cs index 9ddf08e2c..c9039e2ec 100644 --- a/src/Twilio/Rest/Preview/Understand/Assistant/ModelBuildOptions.cs +++ b/src/Twilio/Rest/Preview/Understand/Assistant/ModelBuildOptions.cs @@ -47,7 +47,7 @@ public CreateModelBuildOptions(string pathAssistantSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -87,7 +87,7 @@ public DeleteModelBuildOptions(string pathAssistantSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -121,7 +121,7 @@ public FetchModelBuildOptions(string pathAssistantSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -150,7 +150,7 @@ public ReadModelBuildOptions(string pathAssistantSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -190,7 +190,7 @@ public UpdateModelBuildOptions(string pathAssistantSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Preview/Understand/Assistant/ModelBuildResource.cs b/src/Twilio/Rest/Preview/Understand/Assistant/ModelBuildResource.cs index 90fd76760..e30209178 100644 --- a/src/Twilio/Rest/Preview/Understand/Assistant/ModelBuildResource.cs +++ b/src/Twilio/Rest/Preview/Understand/Assistant/ModelBuildResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Preview.Understand.Assistant public class ModelBuildResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Preview/Understand/Assistant/QueryOptions.cs b/src/Twilio/Rest/Preview/Understand/Assistant/QueryOptions.cs index 5efb0e23a..9617c1fe5 100644 --- a/src/Twilio/Rest/Preview/Understand/Assistant/QueryOptions.cs +++ b/src/Twilio/Rest/Preview/Understand/Assistant/QueryOptions.cs @@ -60,7 +60,7 @@ public CreateQueryOptions(string pathAssistantSid, string language, string query /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -112,7 +112,7 @@ public DeleteQueryOptions(string pathAssistantSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -146,7 +146,7 @@ public FetchQueryOptions(string pathAssistantSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -184,7 +184,7 @@ public ReadQueryOptions(string pathAssistantSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -239,7 +239,7 @@ public UpdateQueryOptions(string pathAssistantSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Preview/Understand/Assistant/QueryResource.cs b/src/Twilio/Rest/Preview/Understand/Assistant/QueryResource.cs index 8532e2f53..62ec1e0c2 100644 --- a/src/Twilio/Rest/Preview/Understand/Assistant/QueryResource.cs +++ b/src/Twilio/Rest/Preview/Understand/Assistant/QueryResource.cs @@ -30,6 +30,8 @@ public class QueryResource : Resource { + + private static Request BuildCreateRequest(CreateQueryOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Preview/Understand/Assistant/StyleSheetOptions.cs b/src/Twilio/Rest/Preview/Understand/Assistant/StyleSheetOptions.cs index a09e3a088..803aed58d 100644 --- a/src/Twilio/Rest/Preview/Understand/Assistant/StyleSheetOptions.cs +++ b/src/Twilio/Rest/Preview/Understand/Assistant/StyleSheetOptions.cs @@ -41,7 +41,7 @@ public FetchStyleSheetOptions(string pathAssistantSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -73,7 +73,7 @@ public UpdateStyleSheetOptions(string pathAssistantSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Preview/Understand/Assistant/StyleSheetResource.cs b/src/Twilio/Rest/Preview/Understand/Assistant/StyleSheetResource.cs index 42fd01f7b..dce504c94 100644 --- a/src/Twilio/Rest/Preview/Understand/Assistant/StyleSheetResource.cs +++ b/src/Twilio/Rest/Preview/Understand/Assistant/StyleSheetResource.cs @@ -30,6 +30,8 @@ public class StyleSheetResource : Resource { + + private static Request BuildFetchRequest(FetchStyleSheetOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Preview/Understand/Assistant/Task/FieldOptions.cs b/src/Twilio/Rest/Preview/Understand/Assistant/Task/FieldOptions.cs index 904e0ecc9..fde637128 100644 --- a/src/Twilio/Rest/Preview/Understand/Assistant/Task/FieldOptions.cs +++ b/src/Twilio/Rest/Preview/Understand/Assistant/Task/FieldOptions.cs @@ -56,7 +56,7 @@ public CreateFieldOptions(string pathAssistantSid, string pathTaskSid, string fi /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -101,7 +101,7 @@ public DeleteFieldOptions(string pathAssistantSid, string pathTaskSid, string pa /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -140,7 +140,7 @@ public FetchFieldOptions(string pathAssistantSid, string pathTaskSid, string pat /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -174,7 +174,7 @@ public ReadFieldOptions(string pathAssistantSid, string pathTaskSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Preview/Understand/Assistant/Task/FieldResource.cs b/src/Twilio/Rest/Preview/Understand/Assistant/Task/FieldResource.cs index 912f6ffa8..90a5fe5e6 100644 --- a/src/Twilio/Rest/Preview/Understand/Assistant/Task/FieldResource.cs +++ b/src/Twilio/Rest/Preview/Understand/Assistant/Task/FieldResource.cs @@ -30,6 +30,8 @@ public class FieldResource : Resource { + + private static Request BuildCreateRequest(CreateFieldOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Preview/Understand/Assistant/Task/SampleOptions.cs b/src/Twilio/Rest/Preview/Understand/Assistant/Task/SampleOptions.cs index be86c7324..6e04a40c4 100644 --- a/src/Twilio/Rest/Preview/Understand/Assistant/Task/SampleOptions.cs +++ b/src/Twilio/Rest/Preview/Understand/Assistant/Task/SampleOptions.cs @@ -59,7 +59,7 @@ public CreateSampleOptions(string pathAssistantSid, string pathTaskSid, string l /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -108,7 +108,7 @@ public DeleteSampleOptions(string pathAssistantSid, string pathTaskSid, string p /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -147,7 +147,7 @@ public FetchSampleOptions(string pathAssistantSid, string pathTaskSid, string pa /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -184,7 +184,7 @@ public ReadSampleOptions(string pathAssistantSid, string pathTaskSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -239,7 +239,7 @@ public UpdateSampleOptions(string pathAssistantSid, string pathTaskSid, string p /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Preview/Understand/Assistant/Task/SampleResource.cs b/src/Twilio/Rest/Preview/Understand/Assistant/Task/SampleResource.cs index 9f1ef9253..9055e7f69 100644 --- a/src/Twilio/Rest/Preview/Understand/Assistant/Task/SampleResource.cs +++ b/src/Twilio/Rest/Preview/Understand/Assistant/Task/SampleResource.cs @@ -30,6 +30,8 @@ public class SampleResource : Resource { + + private static Request BuildCreateRequest(CreateSampleOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Preview/Understand/Assistant/Task/TaskActionsOptions.cs b/src/Twilio/Rest/Preview/Understand/Assistant/Task/TaskActionsOptions.cs index dfbb8a2bd..42be06c2c 100644 --- a/src/Twilio/Rest/Preview/Understand/Assistant/Task/TaskActionsOptions.cs +++ b/src/Twilio/Rest/Preview/Understand/Assistant/Task/TaskActionsOptions.cs @@ -46,7 +46,7 @@ public FetchTaskActionsOptions(string pathAssistantSid, string pathTaskSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -83,7 +83,7 @@ public UpdateTaskActionsOptions(string pathAssistantSid, string pathTaskSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Preview/Understand/Assistant/Task/TaskActionsResource.cs b/src/Twilio/Rest/Preview/Understand/Assistant/Task/TaskActionsResource.cs index a648fd85a..e87b7e349 100644 --- a/src/Twilio/Rest/Preview/Understand/Assistant/Task/TaskActionsResource.cs +++ b/src/Twilio/Rest/Preview/Understand/Assistant/Task/TaskActionsResource.cs @@ -30,6 +30,8 @@ public class TaskActionsResource : Resource { + + private static Request BuildFetchRequest(FetchTaskActionsOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Preview/Understand/Assistant/Task/TaskStatisticsOptions.cs b/src/Twilio/Rest/Preview/Understand/Assistant/Task/TaskStatisticsOptions.cs index a6983fca4..6e4721912 100644 --- a/src/Twilio/Rest/Preview/Understand/Assistant/Task/TaskStatisticsOptions.cs +++ b/src/Twilio/Rest/Preview/Understand/Assistant/Task/TaskStatisticsOptions.cs @@ -46,7 +46,7 @@ public FetchTaskStatisticsOptions(string pathAssistantSid, string pathTaskSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Preview/Understand/Assistant/Task/TaskStatisticsResource.cs b/src/Twilio/Rest/Preview/Understand/Assistant/Task/TaskStatisticsResource.cs index 9cde7b7cd..3e8329097 100644 --- a/src/Twilio/Rest/Preview/Understand/Assistant/Task/TaskStatisticsResource.cs +++ b/src/Twilio/Rest/Preview/Understand/Assistant/Task/TaskStatisticsResource.cs @@ -30,6 +30,8 @@ public class TaskStatisticsResource : Resource { + + private static Request BuildFetchRequest(FetchTaskStatisticsOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Preview/Understand/Assistant/TaskOptions.cs b/src/Twilio/Rest/Preview/Understand/Assistant/TaskOptions.cs index 8f51d4982..dec50f42a 100644 --- a/src/Twilio/Rest/Preview/Understand/Assistant/TaskOptions.cs +++ b/src/Twilio/Rest/Preview/Understand/Assistant/TaskOptions.cs @@ -55,7 +55,7 @@ public CreateTaskOptions(string pathAssistantSid, string uniqueName) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -103,7 +103,7 @@ public DeleteTaskOptions(string pathAssistantSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -137,7 +137,7 @@ public FetchTaskOptions(string pathAssistantSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -166,7 +166,7 @@ public ReadTaskOptions(string pathAssistantSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -215,7 +215,7 @@ public UpdateTaskOptions(string pathAssistantSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Preview/Understand/Assistant/TaskResource.cs b/src/Twilio/Rest/Preview/Understand/Assistant/TaskResource.cs index 8f1e0add8..edf1cfc0a 100644 --- a/src/Twilio/Rest/Preview/Understand/Assistant/TaskResource.cs +++ b/src/Twilio/Rest/Preview/Understand/Assistant/TaskResource.cs @@ -30,6 +30,8 @@ public class TaskResource : Resource { + + private static Request BuildCreateRequest(CreateTaskOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Preview/Understand/AssistantOptions.cs b/src/Twilio/Rest/Preview/Understand/AssistantOptions.cs index c8d8447e0..8bd0279e6 100644 --- a/src/Twilio/Rest/Preview/Understand/AssistantOptions.cs +++ b/src/Twilio/Rest/Preview/Understand/AssistantOptions.cs @@ -56,7 +56,7 @@ public class CreateAssistantOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -115,7 +115,7 @@ public DeleteAssistantOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -144,7 +144,7 @@ public FetchAssistantOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -164,7 +164,7 @@ public class ReadAssistantOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -220,7 +220,7 @@ public UpdateAssistantOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Preview/Understand/AssistantResource.cs b/src/Twilio/Rest/Preview/Understand/AssistantResource.cs index 74323bd58..7dc86e742 100644 --- a/src/Twilio/Rest/Preview/Understand/AssistantResource.cs +++ b/src/Twilio/Rest/Preview/Understand/AssistantResource.cs @@ -30,6 +30,8 @@ public class AssistantResource : Resource { + + private static Request BuildCreateRequest(CreateAssistantOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Preview/Wireless/CommandOptions.cs b/src/Twilio/Rest/Preview/Wireless/CommandOptions.cs index 427bde4b3..acd1a5f67 100644 --- a/src/Twilio/Rest/Preview/Wireless/CommandOptions.cs +++ b/src/Twilio/Rest/Preview/Wireless/CommandOptions.cs @@ -59,7 +59,7 @@ public CreateCommandOptions(string command) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -114,7 +114,7 @@ public FetchCommandOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -146,7 +146,7 @@ public class ReadCommandOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Preview/Wireless/CommandResource.cs b/src/Twilio/Rest/Preview/Wireless/CommandResource.cs index 08401b6ca..a4cd5161c 100644 --- a/src/Twilio/Rest/Preview/Wireless/CommandResource.cs +++ b/src/Twilio/Rest/Preview/Wireless/CommandResource.cs @@ -30,6 +30,8 @@ public class CommandResource : Resource { + + private static Request BuildCreateRequest(CreateCommandOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Preview/Wireless/RatePlanOptions.cs b/src/Twilio/Rest/Preview/Wireless/RatePlanOptions.cs index 8e143e3fe..a5f4d77d9 100644 --- a/src/Twilio/Rest/Preview/Wireless/RatePlanOptions.cs +++ b/src/Twilio/Rest/Preview/Wireless/RatePlanOptions.cs @@ -62,7 +62,7 @@ public class CreateRatePlanOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -129,7 +129,7 @@ public DeleteRatePlanOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -158,7 +158,7 @@ public FetchRatePlanOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -178,7 +178,7 @@ public class ReadRatePlanOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -216,7 +216,7 @@ public UpdateRatePlanOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Preview/Wireless/RatePlanResource.cs b/src/Twilio/Rest/Preview/Wireless/RatePlanResource.cs index 08507754f..e4d0c263e 100644 --- a/src/Twilio/Rest/Preview/Wireless/RatePlanResource.cs +++ b/src/Twilio/Rest/Preview/Wireless/RatePlanResource.cs @@ -30,6 +30,8 @@ public class RatePlanResource : Resource { + + private static Request BuildCreateRequest(CreateRatePlanOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Preview/Wireless/Sim/UsageOptions.cs b/src/Twilio/Rest/Preview/Wireless/Sim/UsageOptions.cs index a47a4a033..e6e2a3027 100644 --- a/src/Twilio/Rest/Preview/Wireless/Sim/UsageOptions.cs +++ b/src/Twilio/Rest/Preview/Wireless/Sim/UsageOptions.cs @@ -47,7 +47,7 @@ public FetchUsageOptions(string pathSimSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Preview/Wireless/Sim/UsageResource.cs b/src/Twilio/Rest/Preview/Wireless/Sim/UsageResource.cs index 26f3c2cd4..b55b12f93 100644 --- a/src/Twilio/Rest/Preview/Wireless/Sim/UsageResource.cs +++ b/src/Twilio/Rest/Preview/Wireless/Sim/UsageResource.cs @@ -30,6 +30,8 @@ public class UsageResource : Resource { + + private static Request BuildFetchRequest(FetchUsageOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Preview/Wireless/SimOptions.cs b/src/Twilio/Rest/Preview/Wireless/SimOptions.cs index e693fe421..f6f2ed387 100644 --- a/src/Twilio/Rest/Preview/Wireless/SimOptions.cs +++ b/src/Twilio/Rest/Preview/Wireless/SimOptions.cs @@ -41,7 +41,7 @@ public FetchSimOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -76,7 +76,7 @@ public class ReadSimOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -176,7 +176,7 @@ public UpdateSimOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Preview/Wireless/SimResource.cs b/src/Twilio/Rest/Preview/Wireless/SimResource.cs index 9705dcb7a..7d9e3ecae 100644 --- a/src/Twilio/Rest/Preview/Wireless/SimResource.cs +++ b/src/Twilio/Rest/Preview/Wireless/SimResource.cs @@ -30,6 +30,8 @@ public class SimResource : Resource { + + private static Request BuildFetchRequest(FetchSimOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Pricing/V1/Messaging/CountryOptions.cs b/src/Twilio/Rest/Pricing/V1/Messaging/CountryOptions.cs index add7410d3..5fc3475ba 100644 --- a/src/Twilio/Rest/Pricing/V1/Messaging/CountryOptions.cs +++ b/src/Twilio/Rest/Pricing/V1/Messaging/CountryOptions.cs @@ -41,7 +41,7 @@ public FetchCountryOptions(string pathIsoCountry) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -61,7 +61,7 @@ public class ReadCountryOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Pricing/V1/Messaging/CountryResource.cs b/src/Twilio/Rest/Pricing/V1/Messaging/CountryResource.cs index 898cd05af..82ff7e038 100644 --- a/src/Twilio/Rest/Pricing/V1/Messaging/CountryResource.cs +++ b/src/Twilio/Rest/Pricing/V1/Messaging/CountryResource.cs @@ -30,6 +30,8 @@ public class CountryResource : Resource { + + private static Request BuildFetchRequest(FetchCountryOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Pricing/V1/PhoneNumber/CountryOptions.cs b/src/Twilio/Rest/Pricing/V1/PhoneNumber/CountryOptions.cs index f7e1f11ac..91888e15b 100644 --- a/src/Twilio/Rest/Pricing/V1/PhoneNumber/CountryOptions.cs +++ b/src/Twilio/Rest/Pricing/V1/PhoneNumber/CountryOptions.cs @@ -41,7 +41,7 @@ public FetchCountryOptions(string pathIsoCountry) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -61,7 +61,7 @@ public class ReadCountryOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Pricing/V1/PhoneNumber/CountryResource.cs b/src/Twilio/Rest/Pricing/V1/PhoneNumber/CountryResource.cs index a76f74d1a..f4aa97e8a 100644 --- a/src/Twilio/Rest/Pricing/V1/PhoneNumber/CountryResource.cs +++ b/src/Twilio/Rest/Pricing/V1/PhoneNumber/CountryResource.cs @@ -30,6 +30,8 @@ public class CountryResource : Resource { + + private static Request BuildFetchRequest(FetchCountryOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Pricing/V1/Voice/CountryOptions.cs b/src/Twilio/Rest/Pricing/V1/Voice/CountryOptions.cs index f68c95e4f..951abbdc7 100644 --- a/src/Twilio/Rest/Pricing/V1/Voice/CountryOptions.cs +++ b/src/Twilio/Rest/Pricing/V1/Voice/CountryOptions.cs @@ -41,7 +41,7 @@ public FetchCountryOptions(string pathIsoCountry) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -61,7 +61,7 @@ public class ReadCountryOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Pricing/V1/Voice/CountryResource.cs b/src/Twilio/Rest/Pricing/V1/Voice/CountryResource.cs index d36cc08a6..c18a635bb 100644 --- a/src/Twilio/Rest/Pricing/V1/Voice/CountryResource.cs +++ b/src/Twilio/Rest/Pricing/V1/Voice/CountryResource.cs @@ -30,6 +30,8 @@ public class CountryResource : Resource { + + private static Request BuildFetchRequest(FetchCountryOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Pricing/V1/Voice/NumberOptions.cs b/src/Twilio/Rest/Pricing/V1/Voice/NumberOptions.cs index 84fc72414..214b9f614 100644 --- a/src/Twilio/Rest/Pricing/V1/Voice/NumberOptions.cs +++ b/src/Twilio/Rest/Pricing/V1/Voice/NumberOptions.cs @@ -41,7 +41,7 @@ public FetchNumberOptions(Types.PhoneNumber pathNumber) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Pricing/V1/Voice/NumberResource.cs b/src/Twilio/Rest/Pricing/V1/Voice/NumberResource.cs index 727d8c201..15d1497aa 100644 --- a/src/Twilio/Rest/Pricing/V1/Voice/NumberResource.cs +++ b/src/Twilio/Rest/Pricing/V1/Voice/NumberResource.cs @@ -30,6 +30,8 @@ public class NumberResource : Resource { + + private static Request BuildFetchRequest(FetchNumberOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Pricing/V2/CountryOptions.cs b/src/Twilio/Rest/Pricing/V2/CountryOptions.cs index 2717694d4..921d7af86 100644 --- a/src/Twilio/Rest/Pricing/V2/CountryOptions.cs +++ b/src/Twilio/Rest/Pricing/V2/CountryOptions.cs @@ -41,7 +41,7 @@ public FetchCountryOptions(string pathIsoCountry) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -61,7 +61,7 @@ public class ReadCountryOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Pricing/V2/CountryResource.cs b/src/Twilio/Rest/Pricing/V2/CountryResource.cs index e1854fa4c..1dcb9e2c3 100644 --- a/src/Twilio/Rest/Pricing/V2/CountryResource.cs +++ b/src/Twilio/Rest/Pricing/V2/CountryResource.cs @@ -30,6 +30,8 @@ public class CountryResource : Resource { + + private static Request BuildFetchRequest(FetchCountryOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Pricing/V2/NumberOptions.cs b/src/Twilio/Rest/Pricing/V2/NumberOptions.cs index f83e77d6b..e12ce1b37 100644 --- a/src/Twilio/Rest/Pricing/V2/NumberOptions.cs +++ b/src/Twilio/Rest/Pricing/V2/NumberOptions.cs @@ -44,7 +44,7 @@ public FetchNumberOptions(Types.PhoneNumber pathDestinationNumber) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Pricing/V2/NumberResource.cs b/src/Twilio/Rest/Pricing/V2/NumberResource.cs index aae80c72f..1333230ed 100644 --- a/src/Twilio/Rest/Pricing/V2/NumberResource.cs +++ b/src/Twilio/Rest/Pricing/V2/NumberResource.cs @@ -30,6 +30,8 @@ public class NumberResource : Resource { + + private static Request BuildFetchRequest(FetchNumberOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Pricing/V2/Voice/CountryOptions.cs b/src/Twilio/Rest/Pricing/V2/Voice/CountryOptions.cs index 2daf25881..6e989b86c 100644 --- a/src/Twilio/Rest/Pricing/V2/Voice/CountryOptions.cs +++ b/src/Twilio/Rest/Pricing/V2/Voice/CountryOptions.cs @@ -41,7 +41,7 @@ public FetchCountryOptions(string pathIsoCountry) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -61,7 +61,7 @@ public class ReadCountryOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Pricing/V2/Voice/CountryResource.cs b/src/Twilio/Rest/Pricing/V2/Voice/CountryResource.cs index 7d0a7433e..ef1f11c2a 100644 --- a/src/Twilio/Rest/Pricing/V2/Voice/CountryResource.cs +++ b/src/Twilio/Rest/Pricing/V2/Voice/CountryResource.cs @@ -30,6 +30,8 @@ public class CountryResource : Resource { + + private static Request BuildFetchRequest(FetchCountryOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Pricing/V2/Voice/NumberOptions.cs b/src/Twilio/Rest/Pricing/V2/Voice/NumberOptions.cs index 016217e75..cfcfd5a47 100644 --- a/src/Twilio/Rest/Pricing/V2/Voice/NumberOptions.cs +++ b/src/Twilio/Rest/Pricing/V2/Voice/NumberOptions.cs @@ -44,7 +44,7 @@ public FetchNumberOptions(Types.PhoneNumber pathDestinationNumber) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Pricing/V2/Voice/NumberResource.cs b/src/Twilio/Rest/Pricing/V2/Voice/NumberResource.cs index 667913732..a8fd4de9d 100644 --- a/src/Twilio/Rest/Pricing/V2/Voice/NumberResource.cs +++ b/src/Twilio/Rest/Pricing/V2/Voice/NumberResource.cs @@ -30,6 +30,8 @@ public class NumberResource : Resource { + + private static Request BuildFetchRequest(FetchNumberOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Proxy/V1/Service/PhoneNumberOptions.cs b/src/Twilio/Rest/Proxy/V1/Service/PhoneNumberOptions.cs index ccef0acca..ba2799617 100644 --- a/src/Twilio/Rest/Proxy/V1/Service/PhoneNumberOptions.cs +++ b/src/Twilio/Rest/Proxy/V1/Service/PhoneNumberOptions.cs @@ -50,7 +50,7 @@ public CreatePhoneNumberOptions(string pathServiceSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -94,7 +94,7 @@ public DeletePhoneNumberOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -128,7 +128,7 @@ public FetchPhoneNumberOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -157,7 +157,7 @@ public ReadPhoneNumberOptions(string pathServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -197,7 +197,7 @@ public UpdatePhoneNumberOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Proxy/V1/Service/PhoneNumberResource.cs b/src/Twilio/Rest/Proxy/V1/Service/PhoneNumberResource.cs index fa51146bb..1cc1caeb1 100644 --- a/src/Twilio/Rest/Proxy/V1/Service/PhoneNumberResource.cs +++ b/src/Twilio/Rest/Proxy/V1/Service/PhoneNumberResource.cs @@ -30,6 +30,8 @@ public class PhoneNumberResource : Resource { + + private static Request BuildCreateRequest(CreatePhoneNumberOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Proxy/V1/Service/Session/InteractionOptions.cs b/src/Twilio/Rest/Proxy/V1/Service/Session/InteractionOptions.cs index 9dc296321..f90bd2c09 100644 --- a/src/Twilio/Rest/Proxy/V1/Service/Session/InteractionOptions.cs +++ b/src/Twilio/Rest/Proxy/V1/Service/Session/InteractionOptions.cs @@ -51,7 +51,7 @@ public DeleteInteractionOptions(string pathServiceSid, string pathSessionSid, st /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -90,7 +90,7 @@ public FetchInteractionOptions(string pathServiceSid, string pathSessionSid, str /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -124,7 +124,7 @@ public ReadInteractionOptions(string pathServiceSid, string pathSessionSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Proxy/V1/Service/Session/InteractionResource.cs b/src/Twilio/Rest/Proxy/V1/Service/Session/InteractionResource.cs index 6fa417910..73f057ad6 100644 --- a/src/Twilio/Rest/Proxy/V1/Service/Session/InteractionResource.cs +++ b/src/Twilio/Rest/Proxy/V1/Service/Session/InteractionResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Proxy.V1.Service.Session public class InteractionResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class TypeEnum : StringEnum { diff --git a/src/Twilio/Rest/Proxy/V1/Service/Session/Participant/MessageInteractionOptions.cs b/src/Twilio/Rest/Proxy/V1/Service/Session/Participant/MessageInteractionOptions.cs index a910a609e..67c20df1b 100644 --- a/src/Twilio/Rest/Proxy/V1/Service/Session/Participant/MessageInteractionOptions.cs +++ b/src/Twilio/Rest/Proxy/V1/Service/Session/Participant/MessageInteractionOptions.cs @@ -58,7 +58,7 @@ public CreateMessageInteractionOptions(string pathServiceSid, string pathSession /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -108,7 +108,7 @@ public FetchMessageInteractionOptions(string pathServiceSid, string pathSessionS /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -147,7 +147,7 @@ public ReadMessageInteractionOptions(string pathServiceSid, string pathSessionSi /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Proxy/V1/Service/Session/Participant/MessageInteractionResource.cs b/src/Twilio/Rest/Proxy/V1/Service/Session/Participant/MessageInteractionResource.cs index 91888f69d..096878ad0 100644 --- a/src/Twilio/Rest/Proxy/V1/Service/Session/Participant/MessageInteractionResource.cs +++ b/src/Twilio/Rest/Proxy/V1/Service/Session/Participant/MessageInteractionResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Proxy.V1.Service.Session.Participant public class MessageInteractionResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class TypeEnum : StringEnum { diff --git a/src/Twilio/Rest/Proxy/V1/Service/Session/ParticipantOptions.cs b/src/Twilio/Rest/Proxy/V1/Service/Session/ParticipantOptions.cs index 0e365efad..97c109a3c 100644 --- a/src/Twilio/Rest/Proxy/V1/Service/Session/ParticipantOptions.cs +++ b/src/Twilio/Rest/Proxy/V1/Service/Session/ParticipantOptions.cs @@ -60,7 +60,7 @@ public CreateParticipantOptions(string pathServiceSid, string pathSessionSid, st /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -113,7 +113,7 @@ public DeleteParticipantOptions(string pathServiceSid, string pathSessionSid, st /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -152,7 +152,7 @@ public FetchParticipantOptions(string pathServiceSid, string pathSessionSid, str /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -186,7 +186,7 @@ public ReadParticipantOptions(string pathServiceSid, string pathSessionSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Proxy/V1/Service/Session/ParticipantResource.cs b/src/Twilio/Rest/Proxy/V1/Service/Session/ParticipantResource.cs index 820ca14a1..029716943 100644 --- a/src/Twilio/Rest/Proxy/V1/Service/Session/ParticipantResource.cs +++ b/src/Twilio/Rest/Proxy/V1/Service/Session/ParticipantResource.cs @@ -30,6 +30,8 @@ public class ParticipantResource : Resource { + + private static Request BuildCreateRequest(CreateParticipantOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Proxy/V1/Service/SessionOptions.cs b/src/Twilio/Rest/Proxy/V1/Service/SessionOptions.cs index b079621fe..cc8b47bc6 100644 --- a/src/Twilio/Rest/Proxy/V1/Service/SessionOptions.cs +++ b/src/Twilio/Rest/Proxy/V1/Service/SessionOptions.cs @@ -60,7 +60,7 @@ public CreateSessionOptions(string pathServiceSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -116,7 +116,7 @@ public DeleteSessionOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -150,7 +150,7 @@ public FetchSessionOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -179,7 +179,7 @@ public ReadSessionOptions(string pathServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -225,7 +225,7 @@ public UpdateSessionOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Proxy/V1/Service/SessionResource.cs b/src/Twilio/Rest/Proxy/V1/Service/SessionResource.cs index 39fa68512..bedb8a814 100644 --- a/src/Twilio/Rest/Proxy/V1/Service/SessionResource.cs +++ b/src/Twilio/Rest/Proxy/V1/Service/SessionResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Proxy.V1.Service public class SessionResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Proxy/V1/Service/ShortCodeOptions.cs b/src/Twilio/Rest/Proxy/V1/Service/ShortCodeOptions.cs index e8b602dd1..6c9eb86ce 100644 --- a/src/Twilio/Rest/Proxy/V1/Service/ShortCodeOptions.cs +++ b/src/Twilio/Rest/Proxy/V1/Service/ShortCodeOptions.cs @@ -46,7 +46,7 @@ public CreateShortCodeOptions(string pathServiceSid, string sid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -82,7 +82,7 @@ public DeleteShortCodeOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -116,7 +116,7 @@ public FetchShortCodeOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -145,7 +145,7 @@ public ReadShortCodeOptions(string pathServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -185,7 +185,7 @@ public UpdateShortCodeOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Proxy/V1/Service/ShortCodeResource.cs b/src/Twilio/Rest/Proxy/V1/Service/ShortCodeResource.cs index f348337cb..44eb83a18 100644 --- a/src/Twilio/Rest/Proxy/V1/Service/ShortCodeResource.cs +++ b/src/Twilio/Rest/Proxy/V1/Service/ShortCodeResource.cs @@ -30,6 +30,8 @@ public class ShortCodeResource : Resource { + + private static Request BuildCreateRequest(CreateShortCodeOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Proxy/V1/ServiceOptions.cs b/src/Twilio/Rest/Proxy/V1/ServiceOptions.cs index 495013065..802f19186 100644 --- a/src/Twilio/Rest/Proxy/V1/ServiceOptions.cs +++ b/src/Twilio/Rest/Proxy/V1/ServiceOptions.cs @@ -62,7 +62,7 @@ public CreateServiceOptions(string uniqueName) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -121,7 +121,7 @@ public DeleteServiceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -150,7 +150,7 @@ public FetchServiceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -170,7 +170,7 @@ public class ReadServiceOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -226,7 +226,7 @@ public UpdateServiceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Proxy/V1/ServiceResource.cs b/src/Twilio/Rest/Proxy/V1/ServiceResource.cs index 800e8f5c2..0566d7a16 100644 --- a/src/Twilio/Rest/Proxy/V1/ServiceResource.cs +++ b/src/Twilio/Rest/Proxy/V1/ServiceResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Proxy.V1 public class ServiceResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class GeoMatchLevelEnum : StringEnum { diff --git a/src/Twilio/Rest/Routes/V2/PhoneNumberOptions.cs b/src/Twilio/Rest/Routes/V2/PhoneNumberOptions.cs index 937551bcc..4590b8482 100644 --- a/src/Twilio/Rest/Routes/V2/PhoneNumberOptions.cs +++ b/src/Twilio/Rest/Routes/V2/PhoneNumberOptions.cs @@ -41,7 +41,7 @@ public FetchPhoneNumberOptions(string pathPhoneNumber) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -76,7 +76,7 @@ public UpdatePhoneNumberOptions(string pathPhoneNumber) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Routes/V2/PhoneNumberResource.cs b/src/Twilio/Rest/Routes/V2/PhoneNumberResource.cs index 529b0a1e9..868ecf525 100644 --- a/src/Twilio/Rest/Routes/V2/PhoneNumberResource.cs +++ b/src/Twilio/Rest/Routes/V2/PhoneNumberResource.cs @@ -30,6 +30,8 @@ public class PhoneNumberResource : Resource { + + private static Request BuildFetchRequest(FetchPhoneNumberOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Routes/V2/SipDomainOptions.cs b/src/Twilio/Rest/Routes/V2/SipDomainOptions.cs index aac48222c..b738e25e0 100644 --- a/src/Twilio/Rest/Routes/V2/SipDomainOptions.cs +++ b/src/Twilio/Rest/Routes/V2/SipDomainOptions.cs @@ -41,7 +41,7 @@ public FetchSipDomainOptions(string pathSipDomain) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -76,7 +76,7 @@ public UpdateSipDomainOptions(string pathSipDomain) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Routes/V2/SipDomainResource.cs b/src/Twilio/Rest/Routes/V2/SipDomainResource.cs index f54daf57f..303c7b851 100644 --- a/src/Twilio/Rest/Routes/V2/SipDomainResource.cs +++ b/src/Twilio/Rest/Routes/V2/SipDomainResource.cs @@ -30,6 +30,8 @@ public class SipDomainResource : Resource { + + private static Request BuildFetchRequest(FetchSipDomainOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Routes/V2/TrunkOptions.cs b/src/Twilio/Rest/Routes/V2/TrunkOptions.cs index f5f384891..f9a94310a 100644 --- a/src/Twilio/Rest/Routes/V2/TrunkOptions.cs +++ b/src/Twilio/Rest/Routes/V2/TrunkOptions.cs @@ -41,7 +41,7 @@ public FetchTrunkOptions(string pathSipTrunkDomain) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -76,7 +76,7 @@ public UpdateTrunkOptions(string pathSipTrunkDomain) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Routes/V2/TrunkResource.cs b/src/Twilio/Rest/Routes/V2/TrunkResource.cs index ee04f6018..66074faa0 100644 --- a/src/Twilio/Rest/Routes/V2/TrunkResource.cs +++ b/src/Twilio/Rest/Routes/V2/TrunkResource.cs @@ -30,6 +30,8 @@ public class TrunkResource : Resource { + + private static Request BuildFetchRequest(FetchTrunkOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Serverless/V1/Service/Asset/AssetVersionOptions.cs b/src/Twilio/Rest/Serverless/V1/Service/Asset/AssetVersionOptions.cs index e50c68809..507849d55 100644 --- a/src/Twilio/Rest/Serverless/V1/Service/Asset/AssetVersionOptions.cs +++ b/src/Twilio/Rest/Serverless/V1/Service/Asset/AssetVersionOptions.cs @@ -51,7 +51,7 @@ public FetchAssetVersionOptions(string pathServiceSid, string pathAssetSid, stri /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -85,7 +85,7 @@ public ReadAssetVersionOptions(string pathServiceSid, string pathAssetSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Serverless/V1/Service/Asset/AssetVersionResource.cs b/src/Twilio/Rest/Serverless/V1/Service/Asset/AssetVersionResource.cs index 27cb68f3e..297f8f114 100644 --- a/src/Twilio/Rest/Serverless/V1/Service/Asset/AssetVersionResource.cs +++ b/src/Twilio/Rest/Serverless/V1/Service/Asset/AssetVersionResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Serverless.V1.Service.Asset public class AssetVersionResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class VisibilityEnum : StringEnum { diff --git a/src/Twilio/Rest/Serverless/V1/Service/AssetOptions.cs b/src/Twilio/Rest/Serverless/V1/Service/AssetOptions.cs index 3d2f46794..26a3d0d73 100644 --- a/src/Twilio/Rest/Serverless/V1/Service/AssetOptions.cs +++ b/src/Twilio/Rest/Serverless/V1/Service/AssetOptions.cs @@ -46,7 +46,7 @@ public CreateAssetOptions(string pathServiceSid, string friendlyName) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -82,7 +82,7 @@ public DeleteAssetOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -116,7 +116,7 @@ public FetchAssetOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -145,7 +145,7 @@ public ReadAssetOptions(string pathServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -187,7 +187,7 @@ public UpdateAssetOptions(string pathServiceSid, string pathSid, string friendly /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Serverless/V1/Service/AssetResource.cs b/src/Twilio/Rest/Serverless/V1/Service/AssetResource.cs index 8abbe96d5..9021edd00 100644 --- a/src/Twilio/Rest/Serverless/V1/Service/AssetResource.cs +++ b/src/Twilio/Rest/Serverless/V1/Service/AssetResource.cs @@ -30,6 +30,8 @@ public class AssetResource : Resource { + + private static Request BuildCreateRequest(CreateAssetOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Serverless/V1/Service/Build/BuildStatusOptions.cs b/src/Twilio/Rest/Serverless/V1/Service/Build/BuildStatusOptions.cs index ddad3a204..49fb65cbc 100644 --- a/src/Twilio/Rest/Serverless/V1/Service/Build/BuildStatusOptions.cs +++ b/src/Twilio/Rest/Serverless/V1/Service/Build/BuildStatusOptions.cs @@ -46,7 +46,7 @@ public FetchBuildStatusOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Serverless/V1/Service/Build/BuildStatusResource.cs b/src/Twilio/Rest/Serverless/V1/Service/Build/BuildStatusResource.cs index ff20ffe8b..a06f5774e 100644 --- a/src/Twilio/Rest/Serverless/V1/Service/Build/BuildStatusResource.cs +++ b/src/Twilio/Rest/Serverless/V1/Service/Build/BuildStatusResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Serverless.V1.Service.Build public class BuildStatusResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Serverless/V1/Service/BuildOptions.cs b/src/Twilio/Rest/Serverless/V1/Service/BuildOptions.cs index 8ad147219..303cffaa9 100644 --- a/src/Twilio/Rest/Serverless/V1/Service/BuildOptions.cs +++ b/src/Twilio/Rest/Serverless/V1/Service/BuildOptions.cs @@ -55,7 +55,7 @@ public CreateBuildOptions(string pathServiceSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -103,7 +103,7 @@ public DeleteBuildOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -137,7 +137,7 @@ public FetchBuildOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -166,7 +166,7 @@ public ReadBuildOptions(string pathServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Serverless/V1/Service/BuildResource.cs b/src/Twilio/Rest/Serverless/V1/Service/BuildResource.cs index 9b141f66b..3142ca682 100644 --- a/src/Twilio/Rest/Serverless/V1/Service/BuildResource.cs +++ b/src/Twilio/Rest/Serverless/V1/Service/BuildResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Serverless.V1.Service public class BuildResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Serverless/V1/Service/Environment/DeploymentOptions.cs b/src/Twilio/Rest/Serverless/V1/Service/Environment/DeploymentOptions.cs index 966273576..6ad486092 100644 --- a/src/Twilio/Rest/Serverless/V1/Service/Environment/DeploymentOptions.cs +++ b/src/Twilio/Rest/Serverless/V1/Service/Environment/DeploymentOptions.cs @@ -49,7 +49,7 @@ public CreateDeploymentOptions(string pathServiceSid, string pathEnvironmentSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -90,7 +90,7 @@ public FetchDeploymentOptions(string pathServiceSid, string pathEnvironmentSid, /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -124,7 +124,7 @@ public ReadDeploymentOptions(string pathServiceSid, string pathEnvironmentSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Serverless/V1/Service/Environment/DeploymentResource.cs b/src/Twilio/Rest/Serverless/V1/Service/Environment/DeploymentResource.cs index 3be2c1e44..01d7a1719 100644 --- a/src/Twilio/Rest/Serverless/V1/Service/Environment/DeploymentResource.cs +++ b/src/Twilio/Rest/Serverless/V1/Service/Environment/DeploymentResource.cs @@ -30,6 +30,8 @@ public class DeploymentResource : Resource { + + private static Request BuildCreateRequest(CreateDeploymentOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Serverless/V1/Service/Environment/LogOptions.cs b/src/Twilio/Rest/Serverless/V1/Service/Environment/LogOptions.cs index 637428dfd..e38c85548 100644 --- a/src/Twilio/Rest/Serverless/V1/Service/Environment/LogOptions.cs +++ b/src/Twilio/Rest/Serverless/V1/Service/Environment/LogOptions.cs @@ -51,7 +51,7 @@ public FetchLogOptions(string pathServiceSid, string pathEnvironmentSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -94,7 +94,7 @@ public ReadLogOptions(string pathServiceSid, string pathEnvironmentSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Serverless/V1/Service/Environment/LogResource.cs b/src/Twilio/Rest/Serverless/V1/Service/Environment/LogResource.cs index eb7ee2c8e..5fad473fd 100644 --- a/src/Twilio/Rest/Serverless/V1/Service/Environment/LogResource.cs +++ b/src/Twilio/Rest/Serverless/V1/Service/Environment/LogResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Serverless.V1.Service.Environment public class LogResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class LevelEnum : StringEnum { diff --git a/src/Twilio/Rest/Serverless/V1/Service/Environment/VariableOptions.cs b/src/Twilio/Rest/Serverless/V1/Service/Environment/VariableOptions.cs index b1507230b..f64015a01 100644 --- a/src/Twilio/Rest/Serverless/V1/Service/Environment/VariableOptions.cs +++ b/src/Twilio/Rest/Serverless/V1/Service/Environment/VariableOptions.cs @@ -56,7 +56,7 @@ public CreateVariableOptions(string pathServiceSid, string pathEnvironmentSid, s /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -101,7 +101,7 @@ public DeleteVariableOptions(string pathServiceSid, string pathEnvironmentSid, s /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -140,7 +140,7 @@ public FetchVariableOptions(string pathServiceSid, string pathEnvironmentSid, st /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -174,7 +174,7 @@ public ReadVariableOptions(string pathServiceSid, string pathEnvironmentSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -222,7 +222,7 @@ public UpdateVariableOptions(string pathServiceSid, string pathEnvironmentSid, s /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Serverless/V1/Service/Environment/VariableResource.cs b/src/Twilio/Rest/Serverless/V1/Service/Environment/VariableResource.cs index 9d88682a9..50346cd02 100644 --- a/src/Twilio/Rest/Serverless/V1/Service/Environment/VariableResource.cs +++ b/src/Twilio/Rest/Serverless/V1/Service/Environment/VariableResource.cs @@ -30,6 +30,8 @@ public class VariableResource : Resource { + + private static Request BuildCreateRequest(CreateVariableOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Serverless/V1/Service/EnvironmentOptions.cs b/src/Twilio/Rest/Serverless/V1/Service/EnvironmentOptions.cs index 0935ca37a..fd5bb1f4f 100644 --- a/src/Twilio/Rest/Serverless/V1/Service/EnvironmentOptions.cs +++ b/src/Twilio/Rest/Serverless/V1/Service/EnvironmentOptions.cs @@ -49,7 +49,7 @@ public CreateEnvironmentOptions(string pathServiceSid, string uniqueName) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -89,7 +89,7 @@ public DeleteEnvironmentOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -123,7 +123,7 @@ public FetchEnvironmentOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -152,7 +152,7 @@ public ReadEnvironmentOptions(string pathServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Serverless/V1/Service/EnvironmentResource.cs b/src/Twilio/Rest/Serverless/V1/Service/EnvironmentResource.cs index 675a7c150..ac9715ab4 100644 --- a/src/Twilio/Rest/Serverless/V1/Service/EnvironmentResource.cs +++ b/src/Twilio/Rest/Serverless/V1/Service/EnvironmentResource.cs @@ -30,6 +30,8 @@ public class EnvironmentResource : Resource { + + private static Request BuildCreateRequest(CreateEnvironmentOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Serverless/V1/Service/Function/FunctionVersion/FunctionVersionContentOptions.cs b/src/Twilio/Rest/Serverless/V1/Service/Function/FunctionVersion/FunctionVersionContentOptions.cs index f480dc1bc..e59275485 100644 --- a/src/Twilio/Rest/Serverless/V1/Service/Function/FunctionVersion/FunctionVersionContentOptions.cs +++ b/src/Twilio/Rest/Serverless/V1/Service/Function/FunctionVersion/FunctionVersionContentOptions.cs @@ -51,7 +51,7 @@ public FetchFunctionVersionContentOptions(string pathServiceSid, string pathFunc /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Serverless/V1/Service/Function/FunctionVersion/FunctionVersionContentResource.cs b/src/Twilio/Rest/Serverless/V1/Service/Function/FunctionVersion/FunctionVersionContentResource.cs index ff811c44c..4308646fe 100644 --- a/src/Twilio/Rest/Serverless/V1/Service/Function/FunctionVersion/FunctionVersionContentResource.cs +++ b/src/Twilio/Rest/Serverless/V1/Service/Function/FunctionVersion/FunctionVersionContentResource.cs @@ -30,6 +30,8 @@ public class FunctionVersionContentResource : Resource { + + private static Request BuildFetchRequest(FetchFunctionVersionContentOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Serverless/V1/Service/Function/FunctionVersionOptions.cs b/src/Twilio/Rest/Serverless/V1/Service/Function/FunctionVersionOptions.cs index 12f2c3537..3db0ea443 100644 --- a/src/Twilio/Rest/Serverless/V1/Service/Function/FunctionVersionOptions.cs +++ b/src/Twilio/Rest/Serverless/V1/Service/Function/FunctionVersionOptions.cs @@ -51,7 +51,7 @@ public FetchFunctionVersionOptions(string pathServiceSid, string pathFunctionSid /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -85,7 +85,7 @@ public ReadFunctionVersionOptions(string pathServiceSid, string pathFunctionSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Serverless/V1/Service/Function/FunctionVersionResource.cs b/src/Twilio/Rest/Serverless/V1/Service/Function/FunctionVersionResource.cs index 88be78fcc..f208cf049 100644 --- a/src/Twilio/Rest/Serverless/V1/Service/Function/FunctionVersionResource.cs +++ b/src/Twilio/Rest/Serverless/V1/Service/Function/FunctionVersionResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Serverless.V1.Service.Function public class FunctionVersionResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class VisibilityEnum : StringEnum { diff --git a/src/Twilio/Rest/Serverless/V1/Service/FunctionOptions.cs b/src/Twilio/Rest/Serverless/V1/Service/FunctionOptions.cs index 5a825261a..9f0281111 100644 --- a/src/Twilio/Rest/Serverless/V1/Service/FunctionOptions.cs +++ b/src/Twilio/Rest/Serverless/V1/Service/FunctionOptions.cs @@ -46,7 +46,7 @@ public CreateFunctionOptions(string pathServiceSid, string friendlyName) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -82,7 +82,7 @@ public DeleteFunctionOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -116,7 +116,7 @@ public FetchFunctionOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -145,7 +145,7 @@ public ReadFunctionOptions(string pathServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -187,7 +187,7 @@ public UpdateFunctionOptions(string pathServiceSid, string pathSid, string frien /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Serverless/V1/Service/FunctionResource.cs b/src/Twilio/Rest/Serverless/V1/Service/FunctionResource.cs index f433dc813..6a17ee4e5 100644 --- a/src/Twilio/Rest/Serverless/V1/Service/FunctionResource.cs +++ b/src/Twilio/Rest/Serverless/V1/Service/FunctionResource.cs @@ -30,6 +30,8 @@ public class FunctionResource : Resource { + + private static Request BuildCreateRequest(CreateFunctionOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Serverless/V1/ServiceOptions.cs b/src/Twilio/Rest/Serverless/V1/ServiceOptions.cs index 263c6d52d..9bc7f71c5 100644 --- a/src/Twilio/Rest/Serverless/V1/ServiceOptions.cs +++ b/src/Twilio/Rest/Serverless/V1/ServiceOptions.cs @@ -52,7 +52,7 @@ public CreateServiceOptions(string uniqueName, string friendlyName) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -95,7 +95,7 @@ public DeleteServiceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -124,7 +124,7 @@ public FetchServiceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -144,7 +144,7 @@ public class ReadServiceOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -185,7 +185,7 @@ public UpdateServiceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Serverless/V1/ServiceResource.cs b/src/Twilio/Rest/Serverless/V1/ServiceResource.cs index f5a960fc5..68a82b462 100644 --- a/src/Twilio/Rest/Serverless/V1/ServiceResource.cs +++ b/src/Twilio/Rest/Serverless/V1/ServiceResource.cs @@ -30,6 +30,8 @@ public class ServiceResource : Resource { + + private static Request BuildCreateRequest(CreateServiceOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Studio/V1/Flow/Engagement/EngagementContextOptions.cs b/src/Twilio/Rest/Studio/V1/Flow/Engagement/EngagementContextOptions.cs index 5fcd65701..997b9e3da 100644 --- a/src/Twilio/Rest/Studio/V1/Flow/Engagement/EngagementContextOptions.cs +++ b/src/Twilio/Rest/Studio/V1/Flow/Engagement/EngagementContextOptions.cs @@ -46,7 +46,7 @@ public FetchEngagementContextOptions(string pathFlowSid, string pathEngagementSi /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Studio/V1/Flow/Engagement/EngagementContextResource.cs b/src/Twilio/Rest/Studio/V1/Flow/Engagement/EngagementContextResource.cs index 97cd52bba..4bb41d5af 100644 --- a/src/Twilio/Rest/Studio/V1/Flow/Engagement/EngagementContextResource.cs +++ b/src/Twilio/Rest/Studio/V1/Flow/Engagement/EngagementContextResource.cs @@ -30,6 +30,8 @@ public class EngagementContextResource : Resource { + + private static Request BuildFetchRequest(FetchEngagementContextOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Studio/V1/Flow/Engagement/Step/StepContextOptions.cs b/src/Twilio/Rest/Studio/V1/Flow/Engagement/Step/StepContextOptions.cs index 24e56b97e..565298b1b 100644 --- a/src/Twilio/Rest/Studio/V1/Flow/Engagement/Step/StepContextOptions.cs +++ b/src/Twilio/Rest/Studio/V1/Flow/Engagement/Step/StepContextOptions.cs @@ -51,7 +51,7 @@ public FetchStepContextOptions(string pathFlowSid, string pathEngagementSid, str /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Studio/V1/Flow/Engagement/Step/StepContextResource.cs b/src/Twilio/Rest/Studio/V1/Flow/Engagement/Step/StepContextResource.cs index e933e9ac4..9dc20e183 100644 --- a/src/Twilio/Rest/Studio/V1/Flow/Engagement/Step/StepContextResource.cs +++ b/src/Twilio/Rest/Studio/V1/Flow/Engagement/Step/StepContextResource.cs @@ -30,6 +30,8 @@ public class StepContextResource : Resource { + + private static Request BuildFetchRequest(FetchStepContextOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Studio/V1/Flow/Engagement/StepOptions.cs b/src/Twilio/Rest/Studio/V1/Flow/Engagement/StepOptions.cs index 481c0fec8..69777eac9 100644 --- a/src/Twilio/Rest/Studio/V1/Flow/Engagement/StepOptions.cs +++ b/src/Twilio/Rest/Studio/V1/Flow/Engagement/StepOptions.cs @@ -51,7 +51,7 @@ public FetchStepOptions(string pathFlowSid, string pathEngagementSid, string pat /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -85,7 +85,7 @@ public ReadStepOptions(string pathFlowSid, string pathEngagementSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Studio/V1/Flow/Engagement/StepResource.cs b/src/Twilio/Rest/Studio/V1/Flow/Engagement/StepResource.cs index 4e2b63a2b..addb6cabf 100644 --- a/src/Twilio/Rest/Studio/V1/Flow/Engagement/StepResource.cs +++ b/src/Twilio/Rest/Studio/V1/Flow/Engagement/StepResource.cs @@ -30,6 +30,8 @@ public class StepResource : Resource { + + private static Request BuildFetchRequest(FetchStepOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Studio/V1/Flow/EngagementOptions.cs b/src/Twilio/Rest/Studio/V1/Flow/EngagementOptions.cs index 38aa23bdd..0894e8013 100644 --- a/src/Twilio/Rest/Studio/V1/Flow/EngagementOptions.cs +++ b/src/Twilio/Rest/Studio/V1/Flow/EngagementOptions.cs @@ -54,7 +54,7 @@ public CreateEngagementOptions(string pathFlowSid, Types.PhoneNumber to, Types.P /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -98,7 +98,7 @@ public DeleteEngagementOptions(string pathFlowSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -132,7 +132,7 @@ public FetchEngagementOptions(string pathFlowSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -161,7 +161,7 @@ public ReadEngagementOptions(string pathFlowSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Studio/V1/Flow/EngagementResource.cs b/src/Twilio/Rest/Studio/V1/Flow/EngagementResource.cs index 5e2f6e0e5..3347fc374 100644 --- a/src/Twilio/Rest/Studio/V1/Flow/EngagementResource.cs +++ b/src/Twilio/Rest/Studio/V1/Flow/EngagementResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Studio.V1.Flow public class EngagementResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionContextOptions.cs b/src/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionContextOptions.cs index dffe1702e..a1c294507 100644 --- a/src/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionContextOptions.cs +++ b/src/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionContextOptions.cs @@ -46,7 +46,7 @@ public FetchExecutionContextOptions(string pathFlowSid, string pathExecutionSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionContextResource.cs b/src/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionContextResource.cs index 436c9fee4..8e751cc12 100644 --- a/src/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionContextResource.cs +++ b/src/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionContextResource.cs @@ -30,6 +30,8 @@ public class ExecutionContextResource : Resource { + + private static Request BuildFetchRequest(FetchExecutionContextOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStep/ExecutionStepContextOptions.cs b/src/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStep/ExecutionStepContextOptions.cs index 7b97831d6..f18610152 100644 --- a/src/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStep/ExecutionStepContextOptions.cs +++ b/src/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStep/ExecutionStepContextOptions.cs @@ -51,7 +51,7 @@ public FetchExecutionStepContextOptions(string pathFlowSid, string pathExecution /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStep/ExecutionStepContextResource.cs b/src/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStep/ExecutionStepContextResource.cs index 12f6b2394..c33ea92d3 100644 --- a/src/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStep/ExecutionStepContextResource.cs +++ b/src/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStep/ExecutionStepContextResource.cs @@ -30,6 +30,8 @@ public class ExecutionStepContextResource : Resource { + + private static Request BuildFetchRequest(FetchExecutionStepContextOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStepOptions.cs b/src/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStepOptions.cs index ce94eb33f..16d640e0f 100644 --- a/src/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStepOptions.cs +++ b/src/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStepOptions.cs @@ -51,7 +51,7 @@ public FetchExecutionStepOptions(string pathFlowSid, string pathExecutionSid, st /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -85,7 +85,7 @@ public ReadExecutionStepOptions(string pathFlowSid, string pathExecutionSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStepResource.cs b/src/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStepResource.cs index 49cd44dcd..8ea8804ef 100644 --- a/src/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStepResource.cs +++ b/src/Twilio/Rest/Studio/V1/Flow/Execution/ExecutionStepResource.cs @@ -30,6 +30,8 @@ public class ExecutionStepResource : Resource { + + private static Request BuildFetchRequest(FetchExecutionStepOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Studio/V1/Flow/ExecutionOptions.cs b/src/Twilio/Rest/Studio/V1/Flow/ExecutionOptions.cs index 85bd86260..ad3734e7b 100644 --- a/src/Twilio/Rest/Studio/V1/Flow/ExecutionOptions.cs +++ b/src/Twilio/Rest/Studio/V1/Flow/ExecutionOptions.cs @@ -54,7 +54,7 @@ public CreateExecutionOptions(string pathFlowSid, Types.PhoneNumber to, Types.Ph /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -98,7 +98,7 @@ public DeleteExecutionOptions(string pathFlowSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -132,7 +132,7 @@ public FetchExecutionOptions(string pathFlowSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -167,7 +167,7 @@ public ReadExecutionOptions(string pathFlowSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -217,7 +217,7 @@ public UpdateExecutionOptions(string pathFlowSid, string pathSid, ExecutionResou /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Studio/V1/Flow/ExecutionResource.cs b/src/Twilio/Rest/Studio/V1/Flow/ExecutionResource.cs index 592074847..21cbdd051 100644 --- a/src/Twilio/Rest/Studio/V1/Flow/ExecutionResource.cs +++ b/src/Twilio/Rest/Studio/V1/Flow/ExecutionResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Studio.V1.Flow public class ExecutionResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Studio/V1/FlowOptions.cs b/src/Twilio/Rest/Studio/V1/FlowOptions.cs index 03d3d72fc..d64f25443 100644 --- a/src/Twilio/Rest/Studio/V1/FlowOptions.cs +++ b/src/Twilio/Rest/Studio/V1/FlowOptions.cs @@ -41,7 +41,7 @@ public DeleteFlowOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -70,7 +70,7 @@ public FetchFlowOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -90,7 +90,7 @@ public class ReadFlowOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Studio/V1/FlowResource.cs b/src/Twilio/Rest/Studio/V1/FlowResource.cs index a0cad470f..38bc2f439 100644 --- a/src/Twilio/Rest/Studio/V1/FlowResource.cs +++ b/src/Twilio/Rest/Studio/V1/FlowResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Studio.V1 public class FlowResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Studio/V2/Flow/Execution/ExecutionContextOptions.cs b/src/Twilio/Rest/Studio/V2/Flow/Execution/ExecutionContextOptions.cs index a8ea65e03..1e341a71b 100644 --- a/src/Twilio/Rest/Studio/V2/Flow/Execution/ExecutionContextOptions.cs +++ b/src/Twilio/Rest/Studio/V2/Flow/Execution/ExecutionContextOptions.cs @@ -46,7 +46,7 @@ public FetchExecutionContextOptions(string pathFlowSid, string pathExecutionSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Studio/V2/Flow/Execution/ExecutionContextResource.cs b/src/Twilio/Rest/Studio/V2/Flow/Execution/ExecutionContextResource.cs index b360b08a6..35079f97a 100644 --- a/src/Twilio/Rest/Studio/V2/Flow/Execution/ExecutionContextResource.cs +++ b/src/Twilio/Rest/Studio/V2/Flow/Execution/ExecutionContextResource.cs @@ -30,6 +30,8 @@ public class ExecutionContextResource : Resource { + + private static Request BuildFetchRequest(FetchExecutionContextOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Studio/V2/Flow/Execution/ExecutionStep/ExecutionStepContextOptions.cs b/src/Twilio/Rest/Studio/V2/Flow/Execution/ExecutionStep/ExecutionStepContextOptions.cs index 64c3349cf..7674a3f9a 100644 --- a/src/Twilio/Rest/Studio/V2/Flow/Execution/ExecutionStep/ExecutionStepContextOptions.cs +++ b/src/Twilio/Rest/Studio/V2/Flow/Execution/ExecutionStep/ExecutionStepContextOptions.cs @@ -51,7 +51,7 @@ public FetchExecutionStepContextOptions(string pathFlowSid, string pathExecution /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Studio/V2/Flow/Execution/ExecutionStep/ExecutionStepContextResource.cs b/src/Twilio/Rest/Studio/V2/Flow/Execution/ExecutionStep/ExecutionStepContextResource.cs index e6344c8af..bab774d1c 100644 --- a/src/Twilio/Rest/Studio/V2/Flow/Execution/ExecutionStep/ExecutionStepContextResource.cs +++ b/src/Twilio/Rest/Studio/V2/Flow/Execution/ExecutionStep/ExecutionStepContextResource.cs @@ -30,6 +30,8 @@ public class ExecutionStepContextResource : Resource { + + private static Request BuildFetchRequest(FetchExecutionStepContextOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Studio/V2/Flow/Execution/ExecutionStepOptions.cs b/src/Twilio/Rest/Studio/V2/Flow/Execution/ExecutionStepOptions.cs index 278fe70e7..d110593a8 100644 --- a/src/Twilio/Rest/Studio/V2/Flow/Execution/ExecutionStepOptions.cs +++ b/src/Twilio/Rest/Studio/V2/Flow/Execution/ExecutionStepOptions.cs @@ -51,7 +51,7 @@ public FetchExecutionStepOptions(string pathFlowSid, string pathExecutionSid, st /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -85,7 +85,7 @@ public ReadExecutionStepOptions(string pathFlowSid, string pathExecutionSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Studio/V2/Flow/Execution/ExecutionStepResource.cs b/src/Twilio/Rest/Studio/V2/Flow/Execution/ExecutionStepResource.cs index 3f9fc76ed..69854c3de 100644 --- a/src/Twilio/Rest/Studio/V2/Flow/Execution/ExecutionStepResource.cs +++ b/src/Twilio/Rest/Studio/V2/Flow/Execution/ExecutionStepResource.cs @@ -30,6 +30,8 @@ public class ExecutionStepResource : Resource { + + private static Request BuildFetchRequest(FetchExecutionStepOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Studio/V2/Flow/ExecutionOptions.cs b/src/Twilio/Rest/Studio/V2/Flow/ExecutionOptions.cs index ef57d02d0..b5e74698f 100644 --- a/src/Twilio/Rest/Studio/V2/Flow/ExecutionOptions.cs +++ b/src/Twilio/Rest/Studio/V2/Flow/ExecutionOptions.cs @@ -54,7 +54,7 @@ public CreateExecutionOptions(string pathFlowSid, Types.PhoneNumber to, Types.Ph /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -98,7 +98,7 @@ public DeleteExecutionOptions(string pathFlowSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -132,7 +132,7 @@ public FetchExecutionOptions(string pathFlowSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -167,7 +167,7 @@ public ReadExecutionOptions(string pathFlowSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -217,7 +217,7 @@ public UpdateExecutionOptions(string pathFlowSid, string pathSid, ExecutionResou /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Studio/V2/Flow/ExecutionResource.cs b/src/Twilio/Rest/Studio/V2/Flow/ExecutionResource.cs index 8afe86c05..13129ac49 100644 --- a/src/Twilio/Rest/Studio/V2/Flow/ExecutionResource.cs +++ b/src/Twilio/Rest/Studio/V2/Flow/ExecutionResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Studio.V2.Flow public class ExecutionResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Studio/V2/Flow/FlowRevisionOptions.cs b/src/Twilio/Rest/Studio/V2/Flow/FlowRevisionOptions.cs index 9a547e765..031a82537 100644 --- a/src/Twilio/Rest/Studio/V2/Flow/FlowRevisionOptions.cs +++ b/src/Twilio/Rest/Studio/V2/Flow/FlowRevisionOptions.cs @@ -46,7 +46,7 @@ public FetchFlowRevisionOptions(string pathSid, string pathRevision) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -75,7 +75,7 @@ public ReadFlowRevisionOptions(string pathSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Studio/V2/Flow/FlowRevisionResource.cs b/src/Twilio/Rest/Studio/V2/Flow/FlowRevisionResource.cs index 47e1f317f..6d88cc769 100644 --- a/src/Twilio/Rest/Studio/V2/Flow/FlowRevisionResource.cs +++ b/src/Twilio/Rest/Studio/V2/Flow/FlowRevisionResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Studio.V2.Flow public class FlowRevisionResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Studio/V2/Flow/FlowTestUserOptions.cs b/src/Twilio/Rest/Studio/V2/Flow/FlowTestUserOptions.cs index 88fd71024..2bd930188 100644 --- a/src/Twilio/Rest/Studio/V2/Flow/FlowTestUserOptions.cs +++ b/src/Twilio/Rest/Studio/V2/Flow/FlowTestUserOptions.cs @@ -41,7 +41,7 @@ public FetchFlowTestUserOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -75,7 +75,7 @@ public UpdateFlowTestUserOptions(string pathSid, List testUsers) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Studio/V2/Flow/FlowTestUserResource.cs b/src/Twilio/Rest/Studio/V2/Flow/FlowTestUserResource.cs index 649a32661..c787f4c09 100644 --- a/src/Twilio/Rest/Studio/V2/Flow/FlowTestUserResource.cs +++ b/src/Twilio/Rest/Studio/V2/Flow/FlowTestUserResource.cs @@ -30,6 +30,8 @@ public class FlowTestUserResource : Resource { + + private static Request BuildFetchRequest(FetchFlowTestUserOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Studio/V2/FlowOptions.cs b/src/Twilio/Rest/Studio/V2/FlowOptions.cs index e522ac2f0..a6d020489 100644 --- a/src/Twilio/Rest/Studio/V2/FlowOptions.cs +++ b/src/Twilio/Rest/Studio/V2/FlowOptions.cs @@ -54,7 +54,7 @@ public CreateFlowOptions(string friendlyName, FlowResource.StatusEnum status, ob /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -97,7 +97,7 @@ public DeleteFlowOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -126,7 +126,7 @@ public FetchFlowOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -146,7 +146,7 @@ public class ReadFlowOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -192,7 +192,7 @@ public UpdateFlowOptions(string pathSid, FlowResource.StatusEnum status) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Studio/V2/FlowResource.cs b/src/Twilio/Rest/Studio/V2/FlowResource.cs index 172eba41f..5746293a5 100644 --- a/src/Twilio/Rest/Studio/V2/FlowResource.cs +++ b/src/Twilio/Rest/Studio/V2/FlowResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Studio.V2 public class FlowResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Studio/V2/FlowValidateOptions.cs b/src/Twilio/Rest/Studio/V2/FlowValidateOptions.cs index c004ebb76..1cee133df 100644 --- a/src/Twilio/Rest/Studio/V2/FlowValidateOptions.cs +++ b/src/Twilio/Rest/Studio/V2/FlowValidateOptions.cs @@ -54,7 +54,7 @@ public UpdateFlowValidateOptions(string friendlyName, FlowValidateResource.Statu /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Studio/V2/FlowValidateResource.cs b/src/Twilio/Rest/Studio/V2/FlowValidateResource.cs index 729aec4c7..83e9d2297 100644 --- a/src/Twilio/Rest/Studio/V2/FlowValidateResource.cs +++ b/src/Twilio/Rest/Studio/V2/FlowValidateResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Studio.V2 public class FlowValidateResource : Resource { + + public sealed class StatusEnum : StringEnum { private StatusEnum(string value) : base(value) {} diff --git a/src/Twilio/Rest/Supersim/V1/EsimProfileOptions.cs b/src/Twilio/Rest/Supersim/V1/EsimProfileOptions.cs index 1fb1483a2..54f9c5e3f 100644 --- a/src/Twilio/Rest/Supersim/V1/EsimProfileOptions.cs +++ b/src/Twilio/Rest/Supersim/V1/EsimProfileOptions.cs @@ -44,7 +44,7 @@ public class CreateEsimProfileOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -87,7 +87,7 @@ public FetchEsimProfileOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -116,7 +116,7 @@ public class ReadEsimProfileOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Supersim/V1/EsimProfileResource.cs b/src/Twilio/Rest/Supersim/V1/EsimProfileResource.cs index c5232789a..0596172cb 100644 --- a/src/Twilio/Rest/Supersim/V1/EsimProfileResource.cs +++ b/src/Twilio/Rest/Supersim/V1/EsimProfileResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Supersim.V1 public class EsimProfileResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Supersim/V1/FleetOptions.cs b/src/Twilio/Rest/Supersim/V1/FleetOptions.cs index 1f917f890..2bb42e4af 100644 --- a/src/Twilio/Rest/Supersim/V1/FleetOptions.cs +++ b/src/Twilio/Rest/Supersim/V1/FleetOptions.cs @@ -65,7 +65,7 @@ public CreateFleetOptions(string networkAccessProfile) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -128,7 +128,7 @@ public FetchFleetOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -151,7 +151,7 @@ public class ReadFleetOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -208,7 +208,7 @@ public UpdateFleetOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Supersim/V1/FleetResource.cs b/src/Twilio/Rest/Supersim/V1/FleetResource.cs index 207c7b4c8..fe625af49 100644 --- a/src/Twilio/Rest/Supersim/V1/FleetResource.cs +++ b/src/Twilio/Rest/Supersim/V1/FleetResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Supersim.V1 public class FleetResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class DataMeteringEnum : StringEnum { diff --git a/src/Twilio/Rest/Supersim/V1/IpCommandOptions.cs b/src/Twilio/Rest/Supersim/V1/IpCommandOptions.cs index efbca8816..28727f4a2 100644 --- a/src/Twilio/Rest/Supersim/V1/IpCommandOptions.cs +++ b/src/Twilio/Rest/Supersim/V1/IpCommandOptions.cs @@ -60,7 +60,7 @@ public CreateIpCommandOptions(string sim, string payload, int? devicePort) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -111,7 +111,7 @@ public FetchIpCommandOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -143,7 +143,7 @@ public class ReadIpCommandOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Supersim/V1/IpCommandResource.cs b/src/Twilio/Rest/Supersim/V1/IpCommandResource.cs index 2a8cf718c..e5f2c48ab 100644 --- a/src/Twilio/Rest/Supersim/V1/IpCommandResource.cs +++ b/src/Twilio/Rest/Supersim/V1/IpCommandResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Supersim.V1 public class IpCommandResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Supersim/V1/NetworkAccessProfile/NetworkAccessProfileNetworkOptions.cs b/src/Twilio/Rest/Supersim/V1/NetworkAccessProfile/NetworkAccessProfileNetworkOptions.cs index a237e5d0a..b6373639b 100644 --- a/src/Twilio/Rest/Supersim/V1/NetworkAccessProfile/NetworkAccessProfileNetworkOptions.cs +++ b/src/Twilio/Rest/Supersim/V1/NetworkAccessProfile/NetworkAccessProfileNetworkOptions.cs @@ -46,7 +46,7 @@ public CreateNetworkAccessProfileNetworkOptions(string pathNetworkAccessProfileS /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -82,7 +82,7 @@ public DeleteNetworkAccessProfileNetworkOptions(string pathNetworkAccessProfileS /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -116,7 +116,7 @@ public FetchNetworkAccessProfileNetworkOptions(string pathNetworkAccessProfileSi /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -145,7 +145,7 @@ public ReadNetworkAccessProfileNetworkOptions(string pathNetworkAccessProfileSid /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Supersim/V1/NetworkAccessProfile/NetworkAccessProfileNetworkResource.cs b/src/Twilio/Rest/Supersim/V1/NetworkAccessProfile/NetworkAccessProfileNetworkResource.cs index 22264d3aa..0f9c0dff2 100644 --- a/src/Twilio/Rest/Supersim/V1/NetworkAccessProfile/NetworkAccessProfileNetworkResource.cs +++ b/src/Twilio/Rest/Supersim/V1/NetworkAccessProfile/NetworkAccessProfileNetworkResource.cs @@ -30,6 +30,8 @@ public class NetworkAccessProfileNetworkResource : Resource { + + private static Request BuildCreateRequest(CreateNetworkAccessProfileNetworkOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Supersim/V1/NetworkAccessProfileOptions.cs b/src/Twilio/Rest/Supersim/V1/NetworkAccessProfileOptions.cs index f2c756e71..f067cf777 100644 --- a/src/Twilio/Rest/Supersim/V1/NetworkAccessProfileOptions.cs +++ b/src/Twilio/Rest/Supersim/V1/NetworkAccessProfileOptions.cs @@ -38,7 +38,7 @@ public class CreateNetworkAccessProfileOptions : IOptions Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -73,7 +73,7 @@ public FetchNetworkAccessProfileOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -93,7 +93,7 @@ public class ReadNetworkAccessProfileOptions : ReadOptions Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -128,7 +128,7 @@ public UpdateNetworkAccessProfileOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Supersim/V1/NetworkAccessProfileResource.cs b/src/Twilio/Rest/Supersim/V1/NetworkAccessProfileResource.cs index 57a39334f..74984ea73 100644 --- a/src/Twilio/Rest/Supersim/V1/NetworkAccessProfileResource.cs +++ b/src/Twilio/Rest/Supersim/V1/NetworkAccessProfileResource.cs @@ -30,6 +30,8 @@ public class NetworkAccessProfileResource : Resource { + + private static Request BuildCreateRequest(CreateNetworkAccessProfileOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Supersim/V1/NetworkOptions.cs b/src/Twilio/Rest/Supersim/V1/NetworkOptions.cs index 57cd5aceb..c428c7f73 100644 --- a/src/Twilio/Rest/Supersim/V1/NetworkOptions.cs +++ b/src/Twilio/Rest/Supersim/V1/NetworkOptions.cs @@ -41,7 +41,7 @@ public FetchNetworkOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -70,7 +70,7 @@ public class ReadNetworkOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Supersim/V1/NetworkResource.cs b/src/Twilio/Rest/Supersim/V1/NetworkResource.cs index afe1f7764..852eb0051 100644 --- a/src/Twilio/Rest/Supersim/V1/NetworkResource.cs +++ b/src/Twilio/Rest/Supersim/V1/NetworkResource.cs @@ -30,6 +30,8 @@ public class NetworkResource : Resource { + + private static Request BuildFetchRequest(FetchNetworkOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Supersim/V1/SettingsUpdateOptions.cs b/src/Twilio/Rest/Supersim/V1/SettingsUpdateOptions.cs index cdf6cce86..95426b7c6 100644 --- a/src/Twilio/Rest/Supersim/V1/SettingsUpdateOptions.cs +++ b/src/Twilio/Rest/Supersim/V1/SettingsUpdateOptions.cs @@ -38,7 +38,7 @@ public class ReadSettingsUpdateOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Supersim/V1/SettingsUpdateResource.cs b/src/Twilio/Rest/Supersim/V1/SettingsUpdateResource.cs index 711ec406f..44935d3a0 100644 --- a/src/Twilio/Rest/Supersim/V1/SettingsUpdateResource.cs +++ b/src/Twilio/Rest/Supersim/V1/SettingsUpdateResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Supersim.V1 public class SettingsUpdateResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Supersim/V1/Sim/BillingPeriodOptions.cs b/src/Twilio/Rest/Supersim/V1/Sim/BillingPeriodOptions.cs index 794065d48..6ea939fea 100644 --- a/src/Twilio/Rest/Supersim/V1/Sim/BillingPeriodOptions.cs +++ b/src/Twilio/Rest/Supersim/V1/Sim/BillingPeriodOptions.cs @@ -41,7 +41,7 @@ public ReadBillingPeriodOptions(string pathSimSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Supersim/V1/Sim/BillingPeriodResource.cs b/src/Twilio/Rest/Supersim/V1/Sim/BillingPeriodResource.cs index e68492988..a1068ac01 100644 --- a/src/Twilio/Rest/Supersim/V1/Sim/BillingPeriodResource.cs +++ b/src/Twilio/Rest/Supersim/V1/Sim/BillingPeriodResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Supersim.V1.Sim public class BillingPeriodResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class BpTypeEnum : StringEnum { diff --git a/src/Twilio/Rest/Supersim/V1/Sim/SimIpAddressOptions.cs b/src/Twilio/Rest/Supersim/V1/Sim/SimIpAddressOptions.cs index bbd9b0bd3..922318530 100644 --- a/src/Twilio/Rest/Supersim/V1/Sim/SimIpAddressOptions.cs +++ b/src/Twilio/Rest/Supersim/V1/Sim/SimIpAddressOptions.cs @@ -41,7 +41,7 @@ public ReadSimIpAddressOptions(string pathSimSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Supersim/V1/Sim/SimIpAddressResource.cs b/src/Twilio/Rest/Supersim/V1/Sim/SimIpAddressResource.cs index 6fa3a145c..85ecb2bb6 100644 --- a/src/Twilio/Rest/Supersim/V1/Sim/SimIpAddressResource.cs +++ b/src/Twilio/Rest/Supersim/V1/Sim/SimIpAddressResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Supersim.V1.Sim public class SimIpAddressResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class IpAddressVersionEnum : StringEnum { diff --git a/src/Twilio/Rest/Supersim/V1/SimOptions.cs b/src/Twilio/Rest/Supersim/V1/SimOptions.cs index 675ede232..09bd12d54 100644 --- a/src/Twilio/Rest/Supersim/V1/SimOptions.cs +++ b/src/Twilio/Rest/Supersim/V1/SimOptions.cs @@ -46,7 +46,7 @@ public CreateSimOptions(string iccid, string registrationCode) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -81,7 +81,7 @@ public FetchSimOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -110,7 +110,7 @@ public class ReadSimOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -172,7 +172,7 @@ public UpdateSimOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Supersim/V1/SimResource.cs b/src/Twilio/Rest/Supersim/V1/SimResource.cs index 43cf92331..c18f4b6f2 100644 --- a/src/Twilio/Rest/Supersim/V1/SimResource.cs +++ b/src/Twilio/Rest/Supersim/V1/SimResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Supersim.V1 public class SimResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Supersim/V1/SmsCommandOptions.cs b/src/Twilio/Rest/Supersim/V1/SmsCommandOptions.cs index e7e1d8310..83ff10aad 100644 --- a/src/Twilio/Rest/Supersim/V1/SmsCommandOptions.cs +++ b/src/Twilio/Rest/Supersim/V1/SmsCommandOptions.cs @@ -52,7 +52,7 @@ public CreateSmsCommandOptions(string sim, string payload) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -95,7 +95,7 @@ public FetchSmsCommandOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -124,7 +124,7 @@ public class ReadSmsCommandOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Supersim/V1/SmsCommandResource.cs b/src/Twilio/Rest/Supersim/V1/SmsCommandResource.cs index fb72783ad..2193d9538 100644 --- a/src/Twilio/Rest/Supersim/V1/SmsCommandResource.cs +++ b/src/Twilio/Rest/Supersim/V1/SmsCommandResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Supersim.V1 public class SmsCommandResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Supersim/V1/UsageRecordOptions.cs b/src/Twilio/Rest/Supersim/V1/UsageRecordOptions.cs index 4c61c0fef..84414449a 100644 --- a/src/Twilio/Rest/Supersim/V1/UsageRecordOptions.cs +++ b/src/Twilio/Rest/Supersim/V1/UsageRecordOptions.cs @@ -56,7 +56,7 @@ public class ReadUsageRecordOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Supersim/V1/UsageRecordResource.cs b/src/Twilio/Rest/Supersim/V1/UsageRecordResource.cs index 18e868ad1..984c79c64 100644 --- a/src/Twilio/Rest/Supersim/V1/UsageRecordResource.cs +++ b/src/Twilio/Rest/Supersim/V1/UsageRecordResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Supersim.V1 public class UsageRecordResource : Resource { + + public sealed class GroupEnum : StringEnum { private GroupEnum(string value) : base(value) {} diff --git a/src/Twilio/Rest/Sync/V1/Service/Document/DocumentPermissionOptions.cs b/src/Twilio/Rest/Sync/V1/Service/Document/DocumentPermissionOptions.cs index 853c81326..96887e440 100644 --- a/src/Twilio/Rest/Sync/V1/Service/Document/DocumentPermissionOptions.cs +++ b/src/Twilio/Rest/Sync/V1/Service/Document/DocumentPermissionOptions.cs @@ -51,7 +51,7 @@ public DeleteDocumentPermissionOptions(string pathServiceSid, string pathDocumen /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -90,7 +90,7 @@ public FetchDocumentPermissionOptions(string pathServiceSid, string pathDocument /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -124,7 +124,7 @@ public ReadDocumentPermissionOptions(string pathServiceSid, string pathDocumentS /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -181,7 +181,7 @@ public UpdateDocumentPermissionOptions(string pathServiceSid, string pathDocumen /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Sync/V1/Service/Document/DocumentPermissionResource.cs b/src/Twilio/Rest/Sync/V1/Service/Document/DocumentPermissionResource.cs index eb49748a3..5e6791db2 100644 --- a/src/Twilio/Rest/Sync/V1/Service/Document/DocumentPermissionResource.cs +++ b/src/Twilio/Rest/Sync/V1/Service/Document/DocumentPermissionResource.cs @@ -30,6 +30,8 @@ public class DocumentPermissionResource : Resource { + + /// Delete a specific Sync Document Permission. /// Delete DocumentPermission parameters diff --git a/src/Twilio/Rest/Sync/V1/Service/DocumentOptions.cs b/src/Twilio/Rest/Sync/V1/Service/DocumentOptions.cs index be9ddb2f5..4a779ed61 100644 --- a/src/Twilio/Rest/Sync/V1/Service/DocumentOptions.cs +++ b/src/Twilio/Rest/Sync/V1/Service/DocumentOptions.cs @@ -50,7 +50,7 @@ public CreateDocumentOptions(string pathServiceSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -94,7 +94,7 @@ public DeleteDocumentOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -128,7 +128,7 @@ public FetchDocumentOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -157,7 +157,7 @@ public ReadDocumentOptions(string pathServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -203,7 +203,7 @@ public UpdateDocumentOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Sync/V1/Service/DocumentResource.cs b/src/Twilio/Rest/Sync/V1/Service/DocumentResource.cs index b30dc3435..55112242e 100644 --- a/src/Twilio/Rest/Sync/V1/Service/DocumentResource.cs +++ b/src/Twilio/Rest/Sync/V1/Service/DocumentResource.cs @@ -30,6 +30,8 @@ public class DocumentResource : Resource { + + private static Request BuildCreateRequest(CreateDocumentOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Sync/V1/Service/SyncList/SyncListItemOptions.cs b/src/Twilio/Rest/Sync/V1/Service/SyncList/SyncListItemOptions.cs index a7ef61346..b5f6201de 100644 --- a/src/Twilio/Rest/Sync/V1/Service/SyncList/SyncListItemOptions.cs +++ b/src/Twilio/Rest/Sync/V1/Service/SyncList/SyncListItemOptions.cs @@ -60,7 +60,7 @@ public CreateSyncListItemOptions(string pathServiceSid, string pathListSid, obje /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -116,7 +116,7 @@ public DeleteSyncListItemOptions(string pathServiceSid, string pathListSid, int? /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -165,7 +165,7 @@ public FetchSyncListItemOptions(string pathServiceSid, string pathListSid, int? /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -208,7 +208,7 @@ public ReadSyncListItemOptions(string pathServiceSid, string pathListSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -277,7 +277,7 @@ public UpdateSyncListItemOptions(string pathServiceSid, string pathListSid, int? /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Sync/V1/Service/SyncList/SyncListItemResource.cs b/src/Twilio/Rest/Sync/V1/Service/SyncList/SyncListItemResource.cs index e6b20d0f1..ab29c4479 100644 --- a/src/Twilio/Rest/Sync/V1/Service/SyncList/SyncListItemResource.cs +++ b/src/Twilio/Rest/Sync/V1/Service/SyncList/SyncListItemResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Sync.V1.Service.SyncList public class SyncListItemResource : Resource { + + public sealed class QueryFromBoundTypeEnum : StringEnum { private QueryFromBoundTypeEnum(string value) : base(value) {} diff --git a/src/Twilio/Rest/Sync/V1/Service/SyncList/SyncListPermissionOptions.cs b/src/Twilio/Rest/Sync/V1/Service/SyncList/SyncListPermissionOptions.cs index ef0763867..bc77b7808 100644 --- a/src/Twilio/Rest/Sync/V1/Service/SyncList/SyncListPermissionOptions.cs +++ b/src/Twilio/Rest/Sync/V1/Service/SyncList/SyncListPermissionOptions.cs @@ -51,7 +51,7 @@ public DeleteSyncListPermissionOptions(string pathServiceSid, string pathListSid /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -90,7 +90,7 @@ public FetchSyncListPermissionOptions(string pathServiceSid, string pathListSid, /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -124,7 +124,7 @@ public ReadSyncListPermissionOptions(string pathServiceSid, string pathListSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -181,7 +181,7 @@ public UpdateSyncListPermissionOptions(string pathServiceSid, string pathListSid /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Sync/V1/Service/SyncList/SyncListPermissionResource.cs b/src/Twilio/Rest/Sync/V1/Service/SyncList/SyncListPermissionResource.cs index 0d275f15d..b6340b380 100644 --- a/src/Twilio/Rest/Sync/V1/Service/SyncList/SyncListPermissionResource.cs +++ b/src/Twilio/Rest/Sync/V1/Service/SyncList/SyncListPermissionResource.cs @@ -30,6 +30,8 @@ public class SyncListPermissionResource : Resource { + + /// Delete a specific Sync List Permission. /// Delete SyncListPermission parameters diff --git a/src/Twilio/Rest/Sync/V1/Service/SyncListOptions.cs b/src/Twilio/Rest/Sync/V1/Service/SyncListOptions.cs index 1c6ff23b1..5a4c7b4ea 100644 --- a/src/Twilio/Rest/Sync/V1/Service/SyncListOptions.cs +++ b/src/Twilio/Rest/Sync/V1/Service/SyncListOptions.cs @@ -50,7 +50,7 @@ public CreateSyncListOptions(string pathServiceSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -94,7 +94,7 @@ public DeleteSyncListOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -128,7 +128,7 @@ public FetchSyncListOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -157,7 +157,7 @@ public ReadSyncListOptions(string pathServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -200,7 +200,7 @@ public UpdateSyncListOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Sync/V1/Service/SyncListResource.cs b/src/Twilio/Rest/Sync/V1/Service/SyncListResource.cs index 4932d416c..bd13e5b3a 100644 --- a/src/Twilio/Rest/Sync/V1/Service/SyncListResource.cs +++ b/src/Twilio/Rest/Sync/V1/Service/SyncListResource.cs @@ -30,6 +30,8 @@ public class SyncListResource : Resource { + + private static Request BuildCreateRequest(CreateSyncListOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapItemOptions.cs b/src/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapItemOptions.cs index 0b926edee..169992bc3 100644 --- a/src/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapItemOptions.cs +++ b/src/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapItemOptions.cs @@ -65,7 +65,7 @@ public CreateSyncMapItemOptions(string pathServiceSid, string pathMapSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -125,7 +125,7 @@ public DeleteSyncMapItemOptions(string pathServiceSid, string pathMapSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -174,7 +174,7 @@ public FetchSyncMapItemOptions(string pathServiceSid, string pathMapSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -217,7 +217,7 @@ public ReadSyncMapItemOptions(string pathServiceSid, string pathMapSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -286,7 +286,7 @@ public UpdateSyncMapItemOptions(string pathServiceSid, string pathMapSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapItemResource.cs b/src/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapItemResource.cs index 39c353f26..275354d2a 100644 --- a/src/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapItemResource.cs +++ b/src/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapItemResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Sync.V1.Service.SyncMap public class SyncMapItemResource : Resource { + + public sealed class QueryFromBoundTypeEnum : StringEnum { private QueryFromBoundTypeEnum(string value) : base(value) {} diff --git a/src/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapPermissionOptions.cs b/src/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapPermissionOptions.cs index d23e3493b..2dc5e75a3 100644 --- a/src/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapPermissionOptions.cs +++ b/src/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapPermissionOptions.cs @@ -51,7 +51,7 @@ public DeleteSyncMapPermissionOptions(string pathServiceSid, string pathMapSid, /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -90,7 +90,7 @@ public FetchSyncMapPermissionOptions(string pathServiceSid, string pathMapSid, s /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -124,7 +124,7 @@ public ReadSyncMapPermissionOptions(string pathServiceSid, string pathMapSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -181,7 +181,7 @@ public UpdateSyncMapPermissionOptions(string pathServiceSid, string pathMapSid, /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapPermissionResource.cs b/src/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapPermissionResource.cs index 15318d1b3..e67c16f65 100644 --- a/src/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapPermissionResource.cs +++ b/src/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapPermissionResource.cs @@ -30,6 +30,8 @@ public class SyncMapPermissionResource : Resource { + + /// Delete a specific Sync Map Permission. /// Delete SyncMapPermission parameters diff --git a/src/Twilio/Rest/Sync/V1/Service/SyncMapOptions.cs b/src/Twilio/Rest/Sync/V1/Service/SyncMapOptions.cs index 5c29e0cd8..70ba00c77 100644 --- a/src/Twilio/Rest/Sync/V1/Service/SyncMapOptions.cs +++ b/src/Twilio/Rest/Sync/V1/Service/SyncMapOptions.cs @@ -50,7 +50,7 @@ public CreateSyncMapOptions(string pathServiceSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -94,7 +94,7 @@ public DeleteSyncMapOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -128,7 +128,7 @@ public FetchSyncMapOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -157,7 +157,7 @@ public ReadSyncMapOptions(string pathServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -200,7 +200,7 @@ public UpdateSyncMapOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Sync/V1/Service/SyncMapResource.cs b/src/Twilio/Rest/Sync/V1/Service/SyncMapResource.cs index 91d62dcf2..274a5139e 100644 --- a/src/Twilio/Rest/Sync/V1/Service/SyncMapResource.cs +++ b/src/Twilio/Rest/Sync/V1/Service/SyncMapResource.cs @@ -30,6 +30,8 @@ public class SyncMapResource : Resource { + + private static Request BuildCreateRequest(CreateSyncMapOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Sync/V1/Service/SyncStream/StreamMessageOptions.cs b/src/Twilio/Rest/Sync/V1/Service/SyncStream/StreamMessageOptions.cs index c5e917e30..b1926681a 100644 --- a/src/Twilio/Rest/Sync/V1/Service/SyncStream/StreamMessageOptions.cs +++ b/src/Twilio/Rest/Sync/V1/Service/SyncStream/StreamMessageOptions.cs @@ -51,7 +51,7 @@ public CreateStreamMessageOptions(string pathServiceSid, string pathStreamSid, o /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Sync/V1/Service/SyncStream/StreamMessageResource.cs b/src/Twilio/Rest/Sync/V1/Service/SyncStream/StreamMessageResource.cs index b37cbd26e..ded3a064c 100644 --- a/src/Twilio/Rest/Sync/V1/Service/SyncStream/StreamMessageResource.cs +++ b/src/Twilio/Rest/Sync/V1/Service/SyncStream/StreamMessageResource.cs @@ -30,6 +30,8 @@ public class StreamMessageResource : Resource { + + private static Request BuildCreateRequest(CreateStreamMessageOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Sync/V1/Service/SyncStreamOptions.cs b/src/Twilio/Rest/Sync/V1/Service/SyncStreamOptions.cs index 5d813b752..39e71e831 100644 --- a/src/Twilio/Rest/Sync/V1/Service/SyncStreamOptions.cs +++ b/src/Twilio/Rest/Sync/V1/Service/SyncStreamOptions.cs @@ -47,7 +47,7 @@ public CreateSyncStreamOptions(string pathServiceSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -87,7 +87,7 @@ public DeleteSyncStreamOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -121,7 +121,7 @@ public FetchSyncStreamOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -150,7 +150,7 @@ public ReadSyncStreamOptions(string pathServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -190,7 +190,7 @@ public UpdateSyncStreamOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Sync/V1/Service/SyncStreamResource.cs b/src/Twilio/Rest/Sync/V1/Service/SyncStreamResource.cs index 41477016a..e1f018306 100644 --- a/src/Twilio/Rest/Sync/V1/Service/SyncStreamResource.cs +++ b/src/Twilio/Rest/Sync/V1/Service/SyncStreamResource.cs @@ -30,6 +30,8 @@ public class SyncStreamResource : Resource { + + private static Request BuildCreateRequest(CreateSyncStreamOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Sync/V1/ServiceOptions.cs b/src/Twilio/Rest/Sync/V1/ServiceOptions.cs index 1ef623723..934e154ad 100644 --- a/src/Twilio/Rest/Sync/V1/ServiceOptions.cs +++ b/src/Twilio/Rest/Sync/V1/ServiceOptions.cs @@ -53,7 +53,7 @@ public class CreateServiceOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -108,7 +108,7 @@ public DeleteServiceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -137,7 +137,7 @@ public FetchServiceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -157,7 +157,7 @@ public class ReadServiceOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -210,7 +210,7 @@ public UpdateServiceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Sync/V1/ServiceResource.cs b/src/Twilio/Rest/Sync/V1/ServiceResource.cs index 52efec820..8ec278e69 100644 --- a/src/Twilio/Rest/Sync/V1/ServiceResource.cs +++ b/src/Twilio/Rest/Sync/V1/ServiceResource.cs @@ -30,6 +30,8 @@ public class ServiceResource : Resource { + + private static Request BuildCreateRequest(CreateServiceOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/ActivityOptions.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/ActivityOptions.cs index 051d2c877..1d8d3eefd 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/ActivityOptions.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/ActivityOptions.cs @@ -49,7 +49,7 @@ public CreateActivityOptions(string pathWorkspaceSid, string friendlyName) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -89,7 +89,7 @@ public DeleteActivityOptions(string pathWorkspaceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -123,7 +123,7 @@ public FetchActivityOptions(string pathWorkspaceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -158,7 +158,7 @@ public ReadActivityOptions(string pathWorkspaceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -206,7 +206,7 @@ public UpdateActivityOptions(string pathWorkspaceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/ActivityResource.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/ActivityResource.cs index 5156557c7..2a2b4a2fe 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/ActivityResource.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/ActivityResource.cs @@ -30,6 +30,8 @@ public class ActivityResource : Resource { + + private static Request BuildCreateRequest(CreateActivityOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/EventOptions.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/EventOptions.cs index 3166834f6..5c62e7106 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/EventOptions.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/EventOptions.cs @@ -46,7 +46,7 @@ public FetchEventOptions(string pathWorkspaceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -108,7 +108,7 @@ public ReadEventOptions(string pathWorkspaceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/EventResource.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/EventResource.cs index eed4d4de1..f05885c84 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/EventResource.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/EventResource.cs @@ -30,6 +30,8 @@ public class EventResource : Resource { + + private static Request BuildFetchRequest(FetchEventOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/Task/ReservationOptions.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/Task/ReservationOptions.cs index c770cad4c..9845b0c10 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/Task/ReservationOptions.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/Task/ReservationOptions.cs @@ -51,7 +51,7 @@ public FetchReservationOptions(string pathWorkspaceSid, string pathTaskSid, stri /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -91,7 +91,7 @@ public ReadReservationOptions(string pathWorkspaceSid, string pathTaskSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -306,7 +306,7 @@ public UpdateReservationOptions(string pathWorkspaceSid, string pathTaskSid, str /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/Task/ReservationResource.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/Task/ReservationResource.cs index e79c8fe58..d5d77349e 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/Task/ReservationResource.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/Task/ReservationResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Taskrouter.V1.Workspace.Task public class ReservationResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskChannelOptions.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskChannelOptions.cs index ee73b5382..4f836e82b 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskChannelOptions.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskChannelOptions.cs @@ -54,7 +54,7 @@ public CreateTaskChannelOptions(string pathWorkspaceSid, string friendlyName, st /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -98,7 +98,7 @@ public DeleteTaskChannelOptions(string pathWorkspaceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -132,7 +132,7 @@ public FetchTaskChannelOptions(string pathWorkspaceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -161,7 +161,7 @@ public ReadTaskChannelOptions(string pathWorkspaceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -204,7 +204,7 @@ public UpdateTaskChannelOptions(string pathWorkspaceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskChannelResource.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskChannelResource.cs index a93847e54..aa7eafee7 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskChannelResource.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskChannelResource.cs @@ -30,6 +30,8 @@ public class TaskChannelResource : Resource { + + private static Request BuildCreateRequest(CreateTaskChannelOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskOptions.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskOptions.cs index c8391bec7..6f0c1b0a1 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskOptions.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskOptions.cs @@ -56,7 +56,7 @@ public CreateTaskOptions(string pathWorkspaceSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -111,7 +111,7 @@ public DeleteTaskOptions(string pathWorkspaceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -155,7 +155,7 @@ public FetchTaskOptions(string pathWorkspaceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -212,7 +212,7 @@ public ReadTaskOptions(string pathWorkspaceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -303,7 +303,7 @@ public UpdateTaskOptions(string pathWorkspaceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueCumulativeStatisticsOptions.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueCumulativeStatisticsOptions.cs index 6fc887b1d..79a212cc5 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueCumulativeStatisticsOptions.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueCumulativeStatisticsOptions.cs @@ -61,7 +61,7 @@ public FetchTaskQueueCumulativeStatisticsOptions(string pathWorkspaceSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueCumulativeStatisticsResource.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueCumulativeStatisticsResource.cs index f969f1212..38ba2c2a2 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueCumulativeStatisticsResource.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueCumulativeStatisticsResource.cs @@ -30,6 +30,8 @@ public class TaskQueueCumulativeStatisticsResource : Resource { + + private static Request BuildFetchRequest(FetchTaskQueueCumulativeStatisticsOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueRealTimeStatisticsOptions.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueRealTimeStatisticsOptions.cs index 4cdad0c33..601534528 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueRealTimeStatisticsOptions.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueRealTimeStatisticsOptions.cs @@ -49,7 +49,7 @@ public FetchTaskQueueRealTimeStatisticsOptions(string pathWorkspaceSid, string p /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueRealTimeStatisticsResource.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueRealTimeStatisticsResource.cs index e0c759809..0068219bf 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueRealTimeStatisticsResource.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueRealTimeStatisticsResource.cs @@ -30,6 +30,8 @@ public class TaskQueueRealTimeStatisticsResource : Resource { + + private static Request BuildFetchRequest(FetchTaskQueueRealTimeStatisticsOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueStatisticsOptions.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueStatisticsOptions.cs index 5a4d4238a..b53aa3d13 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueStatisticsOptions.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueStatisticsOptions.cs @@ -61,7 +61,7 @@ public FetchTaskQueueStatisticsOptions(string pathWorkspaceSid, string pathTaskQ /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueStatisticsResource.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueStatisticsResource.cs index 18380e09a..c4c03185b 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueStatisticsResource.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueueStatisticsResource.cs @@ -30,6 +30,8 @@ public class TaskQueueStatisticsResource : Resource { + + private static Request BuildFetchRequest(FetchTaskQueueStatisticsOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueuesStatisticsOptions.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueuesStatisticsOptions.cs index 11394a8af..16cd705b2 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueuesStatisticsOptions.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueuesStatisticsOptions.cs @@ -59,7 +59,7 @@ public ReadTaskQueuesStatisticsOptions(string pathWorkspaceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueuesStatisticsResource.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueuesStatisticsResource.cs index 000b6ebb2..82e7c6379 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueuesStatisticsResource.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueue/TaskQueuesStatisticsResource.cs @@ -30,6 +30,8 @@ public class TaskQueuesStatisticsResource : Resource { + + private static Request BuildReadRequest(ReadTaskQueuesStatisticsOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueueOptions.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueueOptions.cs index 0be54d6b9..200456cae 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueueOptions.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueueOptions.cs @@ -61,7 +61,7 @@ public CreateTaskQueueOptions(string pathWorkspaceSid, string friendlyName) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -117,7 +117,7 @@ public DeleteTaskQueueOptions(string pathWorkspaceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -151,7 +151,7 @@ public FetchTaskQueueOptions(string pathWorkspaceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -192,7 +192,7 @@ public ReadTaskQueueOptions(string pathWorkspaceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -263,7 +263,7 @@ public UpdateTaskQueueOptions(string pathWorkspaceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueueResource.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueueResource.cs index 7fdc7031e..7d6523f36 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueueResource.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskQueueResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Taskrouter.V1.Workspace public class TaskQueueResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class TaskOrderEnum : StringEnum { diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskResource.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskResource.cs index 4afb21f86..698bcb07e 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskResource.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Taskrouter.V1.Workspace public class TaskResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/ReservationOptions.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/ReservationOptions.cs index 12771bee0..08b92c553 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/ReservationOptions.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/ReservationOptions.cs @@ -51,7 +51,7 @@ public FetchReservationOptions(string pathWorkspaceSid, string pathWorkerSid, st /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -88,7 +88,7 @@ public ReadReservationOptions(string pathWorkspaceSid, string pathWorkerSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -293,7 +293,7 @@ public UpdateReservationOptions(string pathWorkspaceSid, string pathWorkerSid, s /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/ReservationResource.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/ReservationResource.cs index d6130a6e2..bfc78479a 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/ReservationResource.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/ReservationResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Taskrouter.V1.Workspace.Worker public class ReservationResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerChannelOptions.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerChannelOptions.cs index 46594d012..0eb1bae35 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerChannelOptions.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerChannelOptions.cs @@ -51,7 +51,7 @@ public FetchWorkerChannelOptions(string pathWorkspaceSid, string pathWorkerSid, /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -85,7 +85,7 @@ public ReadWorkerChannelOptions(string pathWorkspaceSid, string pathWorkerSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -133,7 +133,7 @@ public UpdateWorkerChannelOptions(string pathWorkspaceSid, string pathWorkerSid, /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerChannelResource.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerChannelResource.cs index ff20e9ac3..c1b5ebc71 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerChannelResource.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerChannelResource.cs @@ -30,6 +30,8 @@ public class WorkerChannelResource : Resource { + + private static Request BuildFetchRequest(FetchWorkerChannelOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerStatisticsOptions.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerStatisticsOptions.cs index 4d2b0a380..f1daf63ba 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerStatisticsOptions.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerStatisticsOptions.cs @@ -58,7 +58,7 @@ public FetchWorkerStatisticsOptions(string pathWorkspaceSid, string pathWorkerSi /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerStatisticsResource.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerStatisticsResource.cs index 9b25092ce..decb9ef43 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerStatisticsResource.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkerStatisticsResource.cs @@ -30,6 +30,8 @@ public class WorkerStatisticsResource : Resource { + + private static Request BuildFetchRequest(FetchWorkerStatisticsOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersCumulativeStatisticsOptions.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersCumulativeStatisticsOptions.cs index c4e573f98..8e22d65e8 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersCumulativeStatisticsOptions.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersCumulativeStatisticsOptions.cs @@ -53,7 +53,7 @@ public FetchWorkersCumulativeStatisticsOptions(string pathWorkspaceSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersCumulativeStatisticsResource.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersCumulativeStatisticsResource.cs index a3a5d9052..6e3d7765c 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersCumulativeStatisticsResource.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersCumulativeStatisticsResource.cs @@ -30,6 +30,8 @@ public class WorkersCumulativeStatisticsResource : Resource { + + private static Request BuildFetchRequest(FetchWorkersCumulativeStatisticsOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersRealTimeStatisticsOptions.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersRealTimeStatisticsOptions.cs index 1a9627be9..7ecdec100 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersRealTimeStatisticsOptions.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersRealTimeStatisticsOptions.cs @@ -44,7 +44,7 @@ public FetchWorkersRealTimeStatisticsOptions(string pathWorkspaceSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersRealTimeStatisticsResource.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersRealTimeStatisticsResource.cs index 7fae9a72e..d792a8f93 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersRealTimeStatisticsResource.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersRealTimeStatisticsResource.cs @@ -30,6 +30,8 @@ public class WorkersRealTimeStatisticsResource : Resource { + + private static Request BuildFetchRequest(FetchWorkersRealTimeStatisticsOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersStatisticsOptions.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersStatisticsOptions.cs index 44c579a84..ab1beb08c 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersStatisticsOptions.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersStatisticsOptions.cs @@ -62,7 +62,7 @@ public FetchWorkersStatisticsOptions(string pathWorkspaceSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersStatisticsResource.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersStatisticsResource.cs index bd6fca233..6af7161c6 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersStatisticsResource.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersStatisticsResource.cs @@ -30,6 +30,8 @@ public class WorkersStatisticsResource : Resource { + + private static Request BuildFetchRequest(FetchWorkersStatisticsOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkerOptions.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkerOptions.cs index b80d4a838..b46aad044 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkerOptions.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkerOptions.cs @@ -52,7 +52,7 @@ public CreateWorkerOptions(string pathWorkspaceSid, string friendlyName) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -99,7 +99,7 @@ public DeleteWorkerOptions(string pathWorkspaceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -143,7 +143,7 @@ public FetchWorkerOptions(string pathWorkspaceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -196,7 +196,7 @@ public ReadWorkerOptions(string pathWorkspaceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -280,7 +280,7 @@ public UpdateWorkerOptions(string pathWorkspaceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkerResource.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkerResource.cs index e585d9b06..7a5253386 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkerResource.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkerResource.cs @@ -30,6 +30,8 @@ public class WorkerResource : Resource { + + private static Request BuildCreateRequest(CreateWorkerOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowCumulativeStatisticsOptions.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowCumulativeStatisticsOptions.cs index 27fa685d6..85c545f12 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowCumulativeStatisticsOptions.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowCumulativeStatisticsOptions.cs @@ -61,7 +61,7 @@ public FetchWorkflowCumulativeStatisticsOptions(string pathWorkspaceSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowCumulativeStatisticsResource.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowCumulativeStatisticsResource.cs index 1bca00e34..53d2c400c 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowCumulativeStatisticsResource.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowCumulativeStatisticsResource.cs @@ -30,6 +30,8 @@ public class WorkflowCumulativeStatisticsResource : Resource { + + private static Request BuildFetchRequest(FetchWorkflowCumulativeStatisticsOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowRealTimeStatisticsOptions.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowRealTimeStatisticsOptions.cs index e7d954016..aa69e7d04 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowRealTimeStatisticsOptions.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowRealTimeStatisticsOptions.cs @@ -49,7 +49,7 @@ public FetchWorkflowRealTimeStatisticsOptions(string pathWorkspaceSid, string pa /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowRealTimeStatisticsResource.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowRealTimeStatisticsResource.cs index c41cf08b1..5789c8183 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowRealTimeStatisticsResource.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowRealTimeStatisticsResource.cs @@ -30,6 +30,8 @@ public class WorkflowRealTimeStatisticsResource : Resource { + + private static Request BuildFetchRequest(FetchWorkflowRealTimeStatisticsOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowStatisticsOptions.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowStatisticsOptions.cs index 914aa4e8b..1a3030a16 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowStatisticsOptions.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowStatisticsOptions.cs @@ -61,7 +61,7 @@ public FetchWorkflowStatisticsOptions(string pathWorkspaceSid, string pathWorkfl /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowStatisticsResource.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowStatisticsResource.cs index 096548c40..8ca80ab13 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowStatisticsResource.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/Workflow/WorkflowStatisticsResource.cs @@ -30,6 +30,8 @@ public class WorkflowStatisticsResource : Resource { + + private static Request BuildFetchRequest(FetchWorkflowStatisticsOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkflowOptions.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkflowOptions.cs index 94618554e..2ffb0573a 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkflowOptions.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkflowOptions.cs @@ -60,7 +60,7 @@ public CreateWorkflowOptions(string pathWorkspaceSid, string friendlyName, strin /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -112,7 +112,7 @@ public DeleteWorkflowOptions(string pathWorkspaceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -146,7 +146,7 @@ public FetchWorkflowOptions(string pathWorkspaceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -178,7 +178,7 @@ public ReadWorkflowOptions(string pathWorkspaceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -237,7 +237,7 @@ public UpdateWorkflowOptions(string pathWorkspaceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkflowResource.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkflowResource.cs index b39bdf287..0268427c2 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkflowResource.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkflowResource.cs @@ -30,6 +30,8 @@ public class WorkflowResource : Resource { + + private static Request BuildCreateRequest(CreateWorkflowOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceCumulativeStatisticsOptions.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceCumulativeStatisticsOptions.cs index 7cba78374..cc2902904 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceCumulativeStatisticsOptions.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceCumulativeStatisticsOptions.cs @@ -56,7 +56,7 @@ public FetchWorkspaceCumulativeStatisticsOptions(string pathWorkspaceSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceCumulativeStatisticsResource.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceCumulativeStatisticsResource.cs index cebbc8c0f..0daedfcc4 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceCumulativeStatisticsResource.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceCumulativeStatisticsResource.cs @@ -30,6 +30,8 @@ public class WorkspaceCumulativeStatisticsResource : Resource { + + private static Request BuildFetchRequest(FetchWorkspaceCumulativeStatisticsOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceRealTimeStatisticsOptions.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceRealTimeStatisticsOptions.cs index 50ba156f7..6a07a703b 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceRealTimeStatisticsOptions.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceRealTimeStatisticsOptions.cs @@ -44,7 +44,7 @@ public FetchWorkspaceRealTimeStatisticsOptions(string pathWorkspaceSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceRealTimeStatisticsResource.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceRealTimeStatisticsResource.cs index 1695690fc..cf1ce3908 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceRealTimeStatisticsResource.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceRealTimeStatisticsResource.cs @@ -30,6 +30,8 @@ public class WorkspaceRealTimeStatisticsResource : Resource { + + private static Request BuildFetchRequest(FetchWorkspaceRealTimeStatisticsOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceStatisticsOptions.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceStatisticsOptions.cs index ab6651821..77bd7d253 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceStatisticsOptions.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceStatisticsOptions.cs @@ -56,7 +56,7 @@ public FetchWorkspaceStatisticsOptions(string pathWorkspaceSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceStatisticsResource.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceStatisticsResource.cs index fc6d2d765..dfd79ade0 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceStatisticsResource.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceStatisticsResource.cs @@ -30,6 +30,8 @@ public class WorkspaceStatisticsResource : Resource { + + private static Request BuildFetchRequest(FetchWorkspaceStatisticsOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Taskrouter/V1/WorkspaceOptions.cs b/src/Twilio/Rest/Taskrouter/V1/WorkspaceOptions.cs index 9eaa14731..b9dbad150 100644 --- a/src/Twilio/Rest/Taskrouter/V1/WorkspaceOptions.cs +++ b/src/Twilio/Rest/Taskrouter/V1/WorkspaceOptions.cs @@ -56,7 +56,7 @@ public CreateWorkspaceOptions(string friendlyName) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -107,7 +107,7 @@ public DeleteWorkspaceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -136,7 +136,7 @@ public FetchWorkspaceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -159,7 +159,7 @@ public class ReadWorkspaceOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -216,7 +216,7 @@ public UpdateWorkspaceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Taskrouter/V1/WorkspaceResource.cs b/src/Twilio/Rest/Taskrouter/V1/WorkspaceResource.cs index 55f7bb834..7be9a5215 100644 --- a/src/Twilio/Rest/Taskrouter/V1/WorkspaceResource.cs +++ b/src/Twilio/Rest/Taskrouter/V1/WorkspaceResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Taskrouter.V1 public class WorkspaceResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class QueueOrderEnum : StringEnum { diff --git a/src/Twilio/Rest/Trunking/V1/Trunk/CredentialListOptions.cs b/src/Twilio/Rest/Trunking/V1/Trunk/CredentialListOptions.cs index a5debab08..7c66a24ce 100644 --- a/src/Twilio/Rest/Trunking/V1/Trunk/CredentialListOptions.cs +++ b/src/Twilio/Rest/Trunking/V1/Trunk/CredentialListOptions.cs @@ -46,7 +46,7 @@ public CreateCredentialListOptions(string pathTrunkSid, string credentialListSid /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -82,7 +82,7 @@ public DeleteCredentialListOptions(string pathTrunkSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -116,7 +116,7 @@ public FetchCredentialListOptions(string pathTrunkSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -145,7 +145,7 @@ public ReadCredentialListOptions(string pathTrunkSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Trunking/V1/Trunk/CredentialListResource.cs b/src/Twilio/Rest/Trunking/V1/Trunk/CredentialListResource.cs index a9805b96d..55df21b4f 100644 --- a/src/Twilio/Rest/Trunking/V1/Trunk/CredentialListResource.cs +++ b/src/Twilio/Rest/Trunking/V1/Trunk/CredentialListResource.cs @@ -30,6 +30,8 @@ public class CredentialListResource : Resource { + + private static Request BuildCreateRequest(CreateCredentialListOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Trunking/V1/Trunk/IpAccessControlListOptions.cs b/src/Twilio/Rest/Trunking/V1/Trunk/IpAccessControlListOptions.cs index 801cdecc5..b4891e81e 100644 --- a/src/Twilio/Rest/Trunking/V1/Trunk/IpAccessControlListOptions.cs +++ b/src/Twilio/Rest/Trunking/V1/Trunk/IpAccessControlListOptions.cs @@ -46,7 +46,7 @@ public CreateIpAccessControlListOptions(string pathTrunkSid, string ipAccessCont /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -82,7 +82,7 @@ public DeleteIpAccessControlListOptions(string pathTrunkSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -116,7 +116,7 @@ public FetchIpAccessControlListOptions(string pathTrunkSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -145,7 +145,7 @@ public ReadIpAccessControlListOptions(string pathTrunkSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Trunking/V1/Trunk/IpAccessControlListResource.cs b/src/Twilio/Rest/Trunking/V1/Trunk/IpAccessControlListResource.cs index b5f5942c9..a189a381e 100644 --- a/src/Twilio/Rest/Trunking/V1/Trunk/IpAccessControlListResource.cs +++ b/src/Twilio/Rest/Trunking/V1/Trunk/IpAccessControlListResource.cs @@ -30,6 +30,8 @@ public class IpAccessControlListResource : Resource { + + private static Request BuildCreateRequest(CreateIpAccessControlListOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Trunking/V1/Trunk/OriginationUrlOptions.cs b/src/Twilio/Rest/Trunking/V1/Trunk/OriginationUrlOptions.cs index 02a3408fb..ff2c20369 100644 --- a/src/Twilio/Rest/Trunking/V1/Trunk/OriginationUrlOptions.cs +++ b/src/Twilio/Rest/Trunking/V1/Trunk/OriginationUrlOptions.cs @@ -66,7 +66,7 @@ public CreateOriginationUrlOptions(string pathTrunkSid, int? weight, int? priori /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -118,7 +118,7 @@ public DeleteOriginationUrlOptions(string pathTrunkSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -152,7 +152,7 @@ public FetchOriginationUrlOptions(string pathTrunkSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -181,7 +181,7 @@ public ReadOriginationUrlOptions(string pathTrunkSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -233,7 +233,7 @@ public UpdateOriginationUrlOptions(string pathTrunkSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Trunking/V1/Trunk/OriginationUrlResource.cs b/src/Twilio/Rest/Trunking/V1/Trunk/OriginationUrlResource.cs index e7efdab57..3d829da52 100644 --- a/src/Twilio/Rest/Trunking/V1/Trunk/OriginationUrlResource.cs +++ b/src/Twilio/Rest/Trunking/V1/Trunk/OriginationUrlResource.cs @@ -30,6 +30,8 @@ public class OriginationUrlResource : Resource { + + private static Request BuildCreateRequest(CreateOriginationUrlOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Trunking/V1/Trunk/PhoneNumberOptions.cs b/src/Twilio/Rest/Trunking/V1/Trunk/PhoneNumberOptions.cs index 8b6096214..4c8f07074 100644 --- a/src/Twilio/Rest/Trunking/V1/Trunk/PhoneNumberOptions.cs +++ b/src/Twilio/Rest/Trunking/V1/Trunk/PhoneNumberOptions.cs @@ -46,7 +46,7 @@ public CreatePhoneNumberOptions(string pathTrunkSid, string phoneNumberSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -82,7 +82,7 @@ public DeletePhoneNumberOptions(string pathTrunkSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -116,7 +116,7 @@ public FetchPhoneNumberOptions(string pathTrunkSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -145,7 +145,7 @@ public ReadPhoneNumberOptions(string pathTrunkSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Trunking/V1/Trunk/PhoneNumberResource.cs b/src/Twilio/Rest/Trunking/V1/Trunk/PhoneNumberResource.cs index e720b82ac..f69482869 100644 --- a/src/Twilio/Rest/Trunking/V1/Trunk/PhoneNumberResource.cs +++ b/src/Twilio/Rest/Trunking/V1/Trunk/PhoneNumberResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Trunking.V1.Trunk public class PhoneNumberResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class AddressRequirementEnum : StringEnum { diff --git a/src/Twilio/Rest/Trunking/V1/Trunk/RecordingOptions.cs b/src/Twilio/Rest/Trunking/V1/Trunk/RecordingOptions.cs index ddea61602..b0072f70c 100644 --- a/src/Twilio/Rest/Trunking/V1/Trunk/RecordingOptions.cs +++ b/src/Twilio/Rest/Trunking/V1/Trunk/RecordingOptions.cs @@ -41,7 +41,7 @@ public FetchRecordingOptions(string pathTrunkSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -76,7 +76,7 @@ public UpdateRecordingOptions(string pathTrunkSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Trunking/V1/Trunk/RecordingResource.cs b/src/Twilio/Rest/Trunking/V1/Trunk/RecordingResource.cs index cd76a569a..235cd1d2b 100644 --- a/src/Twilio/Rest/Trunking/V1/Trunk/RecordingResource.cs +++ b/src/Twilio/Rest/Trunking/V1/Trunk/RecordingResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Trunking.V1.Trunk public class RecordingResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class RecordingTrimEnum : StringEnum { diff --git a/src/Twilio/Rest/Trunking/V1/TrunkOptions.cs b/src/Twilio/Rest/Trunking/V1/TrunkOptions.cs index 9d071d6d3..906ff362b 100644 --- a/src/Twilio/Rest/Trunking/V1/TrunkOptions.cs +++ b/src/Twilio/Rest/Trunking/V1/TrunkOptions.cs @@ -56,7 +56,7 @@ public class CreateTrunkOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -115,7 +115,7 @@ public DeleteTrunkOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -144,7 +144,7 @@ public FetchTrunkOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -164,7 +164,7 @@ public class ReadTrunkOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -220,7 +220,7 @@ public UpdateTrunkOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Trunking/V1/TrunkResource.cs b/src/Twilio/Rest/Trunking/V1/TrunkResource.cs index bd87cc83a..bdf68be32 100644 --- a/src/Twilio/Rest/Trunking/V1/TrunkResource.cs +++ b/src/Twilio/Rest/Trunking/V1/TrunkResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Trunking.V1 public class TrunkResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class TransferSettingEnum : StringEnum { diff --git a/src/Twilio/Rest/Trusthub/V1/CustomerProfiles/CustomerProfilesChannelEndpointAssignmentOptions.cs b/src/Twilio/Rest/Trusthub/V1/CustomerProfiles/CustomerProfilesChannelEndpointAssignmentOptions.cs index ae0e1d2c0..53159deec 100644 --- a/src/Twilio/Rest/Trusthub/V1/CustomerProfiles/CustomerProfilesChannelEndpointAssignmentOptions.cs +++ b/src/Twilio/Rest/Trusthub/V1/CustomerProfiles/CustomerProfilesChannelEndpointAssignmentOptions.cs @@ -51,7 +51,7 @@ public CreateCustomerProfilesChannelEndpointAssignmentOptions(string pathCustome /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -91,7 +91,7 @@ public DeleteCustomerProfilesChannelEndpointAssignmentOptions(string pathCustome /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -125,7 +125,7 @@ public FetchCustomerProfilesChannelEndpointAssignmentOptions(string pathCustomer /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -160,7 +160,7 @@ public ReadCustomerProfilesChannelEndpointAssignmentOptions(string pathCustomerP /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Trusthub/V1/CustomerProfiles/CustomerProfilesChannelEndpointAssignmentResource.cs b/src/Twilio/Rest/Trusthub/V1/CustomerProfiles/CustomerProfilesChannelEndpointAssignmentResource.cs index 5468a913e..b4b96eea2 100644 --- a/src/Twilio/Rest/Trusthub/V1/CustomerProfiles/CustomerProfilesChannelEndpointAssignmentResource.cs +++ b/src/Twilio/Rest/Trusthub/V1/CustomerProfiles/CustomerProfilesChannelEndpointAssignmentResource.cs @@ -30,6 +30,8 @@ public class CustomerProfilesChannelEndpointAssignmentResource : Resource { + + private static Request BuildCreateRequest(CreateCustomerProfilesChannelEndpointAssignmentOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Trusthub/V1/CustomerProfiles/CustomerProfilesEntityAssignmentsOptions.cs b/src/Twilio/Rest/Trusthub/V1/CustomerProfiles/CustomerProfilesEntityAssignmentsOptions.cs index e2351c6d9..dbd2ef393 100644 --- a/src/Twilio/Rest/Trusthub/V1/CustomerProfiles/CustomerProfilesEntityAssignmentsOptions.cs +++ b/src/Twilio/Rest/Trusthub/V1/CustomerProfiles/CustomerProfilesEntityAssignmentsOptions.cs @@ -46,7 +46,7 @@ public CreateCustomerProfilesEntityAssignmentsOptions(string pathCustomerProfile /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -82,7 +82,7 @@ public DeleteCustomerProfilesEntityAssignmentsOptions(string pathCustomerProfile /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -116,7 +116,7 @@ public FetchCustomerProfilesEntityAssignmentsOptions(string pathCustomerProfileS /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -145,7 +145,7 @@ public ReadCustomerProfilesEntityAssignmentsOptions(string pathCustomerProfileSi /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Trusthub/V1/CustomerProfiles/CustomerProfilesEntityAssignmentsResource.cs b/src/Twilio/Rest/Trusthub/V1/CustomerProfiles/CustomerProfilesEntityAssignmentsResource.cs index d32183684..6e61ca736 100644 --- a/src/Twilio/Rest/Trusthub/V1/CustomerProfiles/CustomerProfilesEntityAssignmentsResource.cs +++ b/src/Twilio/Rest/Trusthub/V1/CustomerProfiles/CustomerProfilesEntityAssignmentsResource.cs @@ -30,6 +30,8 @@ public class CustomerProfilesEntityAssignmentsResource : Resource { + + private static Request BuildCreateRequest(CreateCustomerProfilesEntityAssignmentsOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Trusthub/V1/CustomerProfiles/CustomerProfilesEvaluationsOptions.cs b/src/Twilio/Rest/Trusthub/V1/CustomerProfiles/CustomerProfilesEvaluationsOptions.cs index ca6e11f7d..08be22f64 100644 --- a/src/Twilio/Rest/Trusthub/V1/CustomerProfiles/CustomerProfilesEvaluationsOptions.cs +++ b/src/Twilio/Rest/Trusthub/V1/CustomerProfiles/CustomerProfilesEvaluationsOptions.cs @@ -46,7 +46,7 @@ public CreateCustomerProfilesEvaluationsOptions(string pathCustomerProfileSid, s /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -82,7 +82,7 @@ public FetchCustomerProfilesEvaluationsOptions(string pathCustomerProfileSid, st /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -111,7 +111,7 @@ public ReadCustomerProfilesEvaluationsOptions(string pathCustomerProfileSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Trusthub/V1/CustomerProfiles/CustomerProfilesEvaluationsResource.cs b/src/Twilio/Rest/Trusthub/V1/CustomerProfiles/CustomerProfilesEvaluationsResource.cs index c3d748384..1690bb01d 100644 --- a/src/Twilio/Rest/Trusthub/V1/CustomerProfiles/CustomerProfilesEvaluationsResource.cs +++ b/src/Twilio/Rest/Trusthub/V1/CustomerProfiles/CustomerProfilesEvaluationsResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Trusthub.V1.CustomerProfiles public class CustomerProfilesEvaluationsResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Trusthub/V1/CustomerProfilesOptions.cs b/src/Twilio/Rest/Trusthub/V1/CustomerProfilesOptions.cs index b12ca6388..da3f4b75d 100644 --- a/src/Twilio/Rest/Trusthub/V1/CustomerProfilesOptions.cs +++ b/src/Twilio/Rest/Trusthub/V1/CustomerProfilesOptions.cs @@ -54,7 +54,7 @@ public CreateCustomerProfilesOptions(string friendlyName, string email, string p /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -97,7 +97,7 @@ public DeleteCustomerProfilesOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -126,7 +126,7 @@ public FetchCustomerProfilesOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -155,7 +155,7 @@ public class ReadCustomerProfilesOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -211,7 +211,7 @@ public UpdateCustomerProfilesOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Trusthub/V1/CustomerProfilesResource.cs b/src/Twilio/Rest/Trusthub/V1/CustomerProfilesResource.cs index 1cf7a48c5..104e748ec 100644 --- a/src/Twilio/Rest/Trusthub/V1/CustomerProfilesResource.cs +++ b/src/Twilio/Rest/Trusthub/V1/CustomerProfilesResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Trusthub.V1 public class CustomerProfilesResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Trusthub/V1/EndUserOptions.cs b/src/Twilio/Rest/Trusthub/V1/EndUserOptions.cs index 6b1460cc1..604cd9de5 100644 --- a/src/Twilio/Rest/Trusthub/V1/EndUserOptions.cs +++ b/src/Twilio/Rest/Trusthub/V1/EndUserOptions.cs @@ -49,7 +49,7 @@ public CreateEndUserOptions(string friendlyName, string type) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -88,7 +88,7 @@ public DeleteEndUserOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -117,7 +117,7 @@ public FetchEndUserOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -137,7 +137,7 @@ public class ReadEndUserOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -175,7 +175,7 @@ public UpdateEndUserOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Trusthub/V1/EndUserResource.cs b/src/Twilio/Rest/Trusthub/V1/EndUserResource.cs index 072776c88..adcb144f3 100644 --- a/src/Twilio/Rest/Trusthub/V1/EndUserResource.cs +++ b/src/Twilio/Rest/Trusthub/V1/EndUserResource.cs @@ -30,6 +30,8 @@ public class EndUserResource : Resource { + + private static Request BuildCreateRequest(CreateEndUserOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Trusthub/V1/EndUserTypeOptions.cs b/src/Twilio/Rest/Trusthub/V1/EndUserTypeOptions.cs index 98b08071d..1aa9a3b41 100644 --- a/src/Twilio/Rest/Trusthub/V1/EndUserTypeOptions.cs +++ b/src/Twilio/Rest/Trusthub/V1/EndUserTypeOptions.cs @@ -41,7 +41,7 @@ public FetchEndUserTypeOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -61,7 +61,7 @@ public class ReadEndUserTypeOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Trusthub/V1/EndUserTypeResource.cs b/src/Twilio/Rest/Trusthub/V1/EndUserTypeResource.cs index 56bb08104..bc972b693 100644 --- a/src/Twilio/Rest/Trusthub/V1/EndUserTypeResource.cs +++ b/src/Twilio/Rest/Trusthub/V1/EndUserTypeResource.cs @@ -30,6 +30,8 @@ public class EndUserTypeResource : Resource { + + private static Request BuildFetchRequest(FetchEndUserTypeOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Trusthub/V1/PoliciesOptions.cs b/src/Twilio/Rest/Trusthub/V1/PoliciesOptions.cs index 154b2bfad..236adaac0 100644 --- a/src/Twilio/Rest/Trusthub/V1/PoliciesOptions.cs +++ b/src/Twilio/Rest/Trusthub/V1/PoliciesOptions.cs @@ -41,7 +41,7 @@ public FetchPoliciesOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -61,7 +61,7 @@ public class ReadPoliciesOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Trusthub/V1/PoliciesResource.cs b/src/Twilio/Rest/Trusthub/V1/PoliciesResource.cs index 02166c922..6ee6401b0 100644 --- a/src/Twilio/Rest/Trusthub/V1/PoliciesResource.cs +++ b/src/Twilio/Rest/Trusthub/V1/PoliciesResource.cs @@ -30,6 +30,8 @@ public class PoliciesResource : Resource { + + private static Request BuildFetchRequest(FetchPoliciesOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Trusthub/V1/SupportingDocumentOptions.cs b/src/Twilio/Rest/Trusthub/V1/SupportingDocumentOptions.cs index b2e2a72bc..fcc0e3008 100644 --- a/src/Twilio/Rest/Trusthub/V1/SupportingDocumentOptions.cs +++ b/src/Twilio/Rest/Trusthub/V1/SupportingDocumentOptions.cs @@ -49,7 +49,7 @@ public CreateSupportingDocumentOptions(string friendlyName, string type) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -88,7 +88,7 @@ public DeleteSupportingDocumentOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -117,7 +117,7 @@ public FetchSupportingDocumentOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -137,7 +137,7 @@ public class ReadSupportingDocumentOptions : ReadOptions Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -175,7 +175,7 @@ public UpdateSupportingDocumentOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Trusthub/V1/SupportingDocumentResource.cs b/src/Twilio/Rest/Trusthub/V1/SupportingDocumentResource.cs index 294005b6e..a43bfea7e 100644 --- a/src/Twilio/Rest/Trusthub/V1/SupportingDocumentResource.cs +++ b/src/Twilio/Rest/Trusthub/V1/SupportingDocumentResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Trusthub.V1 public class SupportingDocumentResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Trusthub/V1/SupportingDocumentTypeOptions.cs b/src/Twilio/Rest/Trusthub/V1/SupportingDocumentTypeOptions.cs index 79a49af98..b51068a33 100644 --- a/src/Twilio/Rest/Trusthub/V1/SupportingDocumentTypeOptions.cs +++ b/src/Twilio/Rest/Trusthub/V1/SupportingDocumentTypeOptions.cs @@ -41,7 +41,7 @@ public FetchSupportingDocumentTypeOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -61,7 +61,7 @@ public class ReadSupportingDocumentTypeOptions : ReadOptions Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Trusthub/V1/SupportingDocumentTypeResource.cs b/src/Twilio/Rest/Trusthub/V1/SupportingDocumentTypeResource.cs index 863a41745..e100f10f2 100644 --- a/src/Twilio/Rest/Trusthub/V1/SupportingDocumentTypeResource.cs +++ b/src/Twilio/Rest/Trusthub/V1/SupportingDocumentTypeResource.cs @@ -30,6 +30,8 @@ public class SupportingDocumentTypeResource : Resource { + + private static Request BuildFetchRequest(FetchSupportingDocumentTypeOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Trusthub/V1/TrustProducts/TrustProductsChannelEndpointAssignmentOptions.cs b/src/Twilio/Rest/Trusthub/V1/TrustProducts/TrustProductsChannelEndpointAssignmentOptions.cs index 7201cba1b..37f1749b4 100644 --- a/src/Twilio/Rest/Trusthub/V1/TrustProducts/TrustProductsChannelEndpointAssignmentOptions.cs +++ b/src/Twilio/Rest/Trusthub/V1/TrustProducts/TrustProductsChannelEndpointAssignmentOptions.cs @@ -51,7 +51,7 @@ public CreateTrustProductsChannelEndpointAssignmentOptions(string pathTrustProdu /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -91,7 +91,7 @@ public DeleteTrustProductsChannelEndpointAssignmentOptions(string pathTrustProdu /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -125,7 +125,7 @@ public FetchTrustProductsChannelEndpointAssignmentOptions(string pathTrustProduc /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -160,7 +160,7 @@ public ReadTrustProductsChannelEndpointAssignmentOptions(string pathTrustProduct /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Trusthub/V1/TrustProducts/TrustProductsChannelEndpointAssignmentResource.cs b/src/Twilio/Rest/Trusthub/V1/TrustProducts/TrustProductsChannelEndpointAssignmentResource.cs index 42bdf31ba..955422231 100644 --- a/src/Twilio/Rest/Trusthub/V1/TrustProducts/TrustProductsChannelEndpointAssignmentResource.cs +++ b/src/Twilio/Rest/Trusthub/V1/TrustProducts/TrustProductsChannelEndpointAssignmentResource.cs @@ -30,6 +30,8 @@ public class TrustProductsChannelEndpointAssignmentResource : Resource { + + private static Request BuildCreateRequest(CreateTrustProductsChannelEndpointAssignmentOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Trusthub/V1/TrustProducts/TrustProductsEntityAssignmentsOptions.cs b/src/Twilio/Rest/Trusthub/V1/TrustProducts/TrustProductsEntityAssignmentsOptions.cs index f0fe8e3a9..176dea8a4 100644 --- a/src/Twilio/Rest/Trusthub/V1/TrustProducts/TrustProductsEntityAssignmentsOptions.cs +++ b/src/Twilio/Rest/Trusthub/V1/TrustProducts/TrustProductsEntityAssignmentsOptions.cs @@ -46,7 +46,7 @@ public CreateTrustProductsEntityAssignmentsOptions(string pathTrustProductSid, s /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -82,7 +82,7 @@ public DeleteTrustProductsEntityAssignmentsOptions(string pathTrustProductSid, s /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -116,7 +116,7 @@ public FetchTrustProductsEntityAssignmentsOptions(string pathTrustProductSid, st /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -145,7 +145,7 @@ public ReadTrustProductsEntityAssignmentsOptions(string pathTrustProductSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Trusthub/V1/TrustProducts/TrustProductsEntityAssignmentsResource.cs b/src/Twilio/Rest/Trusthub/V1/TrustProducts/TrustProductsEntityAssignmentsResource.cs index bacf346e2..3b79d962d 100644 --- a/src/Twilio/Rest/Trusthub/V1/TrustProducts/TrustProductsEntityAssignmentsResource.cs +++ b/src/Twilio/Rest/Trusthub/V1/TrustProducts/TrustProductsEntityAssignmentsResource.cs @@ -30,6 +30,8 @@ public class TrustProductsEntityAssignmentsResource : Resource { + + private static Request BuildCreateRequest(CreateTrustProductsEntityAssignmentsOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Trusthub/V1/TrustProducts/TrustProductsEvaluationsOptions.cs b/src/Twilio/Rest/Trusthub/V1/TrustProducts/TrustProductsEvaluationsOptions.cs index 54982e9b6..ed99a8dcb 100644 --- a/src/Twilio/Rest/Trusthub/V1/TrustProducts/TrustProductsEvaluationsOptions.cs +++ b/src/Twilio/Rest/Trusthub/V1/TrustProducts/TrustProductsEvaluationsOptions.cs @@ -46,7 +46,7 @@ public CreateTrustProductsEvaluationsOptions(string pathTrustProductSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -82,7 +82,7 @@ public FetchTrustProductsEvaluationsOptions(string pathTrustProductSid, string p /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -111,7 +111,7 @@ public ReadTrustProductsEvaluationsOptions(string pathTrustProductSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Trusthub/V1/TrustProducts/TrustProductsEvaluationsResource.cs b/src/Twilio/Rest/Trusthub/V1/TrustProducts/TrustProductsEvaluationsResource.cs index c034bd9f2..3c9203c4b 100644 --- a/src/Twilio/Rest/Trusthub/V1/TrustProducts/TrustProductsEvaluationsResource.cs +++ b/src/Twilio/Rest/Trusthub/V1/TrustProducts/TrustProductsEvaluationsResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Trusthub.V1.TrustProducts public class TrustProductsEvaluationsResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Trusthub/V1/TrustProductsOptions.cs b/src/Twilio/Rest/Trusthub/V1/TrustProductsOptions.cs index cfcb11044..76d228042 100644 --- a/src/Twilio/Rest/Trusthub/V1/TrustProductsOptions.cs +++ b/src/Twilio/Rest/Trusthub/V1/TrustProductsOptions.cs @@ -54,7 +54,7 @@ public CreateTrustProductsOptions(string friendlyName, string email, string poli /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -97,7 +97,7 @@ public DeleteTrustProductsOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -126,7 +126,7 @@ public FetchTrustProductsOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -155,7 +155,7 @@ public class ReadTrustProductsOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -211,7 +211,7 @@ public UpdateTrustProductsOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Trusthub/V1/TrustProductsResource.cs b/src/Twilio/Rest/Trusthub/V1/TrustProductsResource.cs index 1c4b38a2a..3ef12e1ac 100644 --- a/src/Twilio/Rest/Trusthub/V1/TrustProductsResource.cs +++ b/src/Twilio/Rest/Trusthub/V1/TrustProductsResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Trusthub.V1 public class TrustProductsResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Verify/V2/FormOptions.cs b/src/Twilio/Rest/Verify/V2/FormOptions.cs index a23d56205..2e86a88dc 100644 --- a/src/Twilio/Rest/Verify/V2/FormOptions.cs +++ b/src/Twilio/Rest/Verify/V2/FormOptions.cs @@ -41,7 +41,7 @@ public FetchFormOptions(FormResource.FormTypesEnum pathFormType) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Verify/V2/FormResource.cs b/src/Twilio/Rest/Verify/V2/FormResource.cs index ff92dded0..6b00f74cb 100644 --- a/src/Twilio/Rest/Verify/V2/FormResource.cs +++ b/src/Twilio/Rest/Verify/V2/FormResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Verify.V2 public class FormResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class FormTypesEnum : StringEnum { diff --git a/src/Twilio/Rest/Verify/V2/SafelistOptions.cs b/src/Twilio/Rest/Verify/V2/SafelistOptions.cs index 28dd5a743..87c5cffdf 100644 --- a/src/Twilio/Rest/Verify/V2/SafelistOptions.cs +++ b/src/Twilio/Rest/Verify/V2/SafelistOptions.cs @@ -41,7 +41,7 @@ public CreateSafelistOptions(string phoneNumber) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -72,7 +72,7 @@ public DeleteSafelistOptions(string pathPhoneNumber) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -101,7 +101,7 @@ public FetchSafelistOptions(string pathPhoneNumber) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Verify/V2/SafelistResource.cs b/src/Twilio/Rest/Verify/V2/SafelistResource.cs index 909d3f294..8605275c9 100644 --- a/src/Twilio/Rest/Verify/V2/SafelistResource.cs +++ b/src/Twilio/Rest/Verify/V2/SafelistResource.cs @@ -30,6 +30,8 @@ public class SafelistResource : Resource { + + private static Request BuildCreateRequest(CreateSafelistOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Verify/V2/Service/AccessTokenOptions.cs b/src/Twilio/Rest/Verify/V2/Service/AccessTokenOptions.cs index b19cbbef0..813bfbed0 100644 --- a/src/Twilio/Rest/Verify/V2/Service/AccessTokenOptions.cs +++ b/src/Twilio/Rest/Verify/V2/Service/AccessTokenOptions.cs @@ -57,7 +57,7 @@ public CreateAccessTokenOptions(string pathServiceSid, string identity, AccessTo /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -105,7 +105,7 @@ public FetchAccessTokenOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Verify/V2/Service/AccessTokenResource.cs b/src/Twilio/Rest/Verify/V2/Service/AccessTokenResource.cs index 026d21a0e..de818f303 100644 --- a/src/Twilio/Rest/Verify/V2/Service/AccessTokenResource.cs +++ b/src/Twilio/Rest/Verify/V2/Service/AccessTokenResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Verify.V2.Service public class AccessTokenResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class FactorTypesEnum : StringEnum { diff --git a/src/Twilio/Rest/Verify/V2/Service/Entity/Challenge/NotificationOptions.cs b/src/Twilio/Rest/Verify/V2/Service/Entity/Challenge/NotificationOptions.cs index 4d98a4e54..72f1ed074 100644 --- a/src/Twilio/Rest/Verify/V2/Service/Entity/Challenge/NotificationOptions.cs +++ b/src/Twilio/Rest/Verify/V2/Service/Entity/Challenge/NotificationOptions.cs @@ -54,7 +54,7 @@ public CreateNotificationOptions(string pathServiceSid, string pathIdentity, str /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Verify/V2/Service/Entity/Challenge/NotificationResource.cs b/src/Twilio/Rest/Verify/V2/Service/Entity/Challenge/NotificationResource.cs index 6f4d3ff55..69abbadf0 100644 --- a/src/Twilio/Rest/Verify/V2/Service/Entity/Challenge/NotificationResource.cs +++ b/src/Twilio/Rest/Verify/V2/Service/Entity/Challenge/NotificationResource.cs @@ -30,6 +30,8 @@ public class NotificationResource : Resource { + + private static Request BuildCreateRequest(CreateNotificationOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Verify/V2/Service/Entity/ChallengeOptions.cs b/src/Twilio/Rest/Verify/V2/Service/Entity/ChallengeOptions.cs index 5e86a66e0..184278cf2 100644 --- a/src/Twilio/Rest/Verify/V2/Service/Entity/ChallengeOptions.cs +++ b/src/Twilio/Rest/Verify/V2/Service/Entity/ChallengeOptions.cs @@ -67,7 +67,7 @@ public CreateChallengeOptions(string pathServiceSid, string pathIdentity, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -128,7 +128,7 @@ public FetchChallengeOptions(string pathServiceSid, string pathIdentity, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -171,7 +171,7 @@ public ReadChallengeOptions(string pathServiceSid, string pathIdentity) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -231,7 +231,7 @@ public UpdateChallengeOptions(string pathServiceSid, string pathIdentity, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Verify/V2/Service/Entity/ChallengeResource.cs b/src/Twilio/Rest/Verify/V2/Service/Entity/ChallengeResource.cs index 49b5f87e3..66c98b8a8 100644 --- a/src/Twilio/Rest/Verify/V2/Service/Entity/ChallengeResource.cs +++ b/src/Twilio/Rest/Verify/V2/Service/Entity/ChallengeResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Verify.V2.Service.Entity public class ChallengeResource : Resource { + + public sealed class ListOrdersEnum : StringEnum { private ListOrdersEnum(string value) : base(value) {} diff --git a/src/Twilio/Rest/Verify/V2/Service/Entity/FactorOptions.cs b/src/Twilio/Rest/Verify/V2/Service/Entity/FactorOptions.cs index 11c4d7f0d..8128a1e03 100644 --- a/src/Twilio/Rest/Verify/V2/Service/Entity/FactorOptions.cs +++ b/src/Twilio/Rest/Verify/V2/Service/Entity/FactorOptions.cs @@ -51,7 +51,7 @@ public DeleteFactorOptions(string pathServiceSid, string pathIdentity, string pa /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -90,7 +90,7 @@ public FetchFactorOptions(string pathServiceSid, string pathIdentity, string pat /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -124,7 +124,7 @@ public ReadFactorOptions(string pathServiceSid, string pathIdentity) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -193,7 +193,7 @@ public UpdateFactorOptions(string pathServiceSid, string pathIdentity, string pa /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Verify/V2/Service/Entity/FactorResource.cs b/src/Twilio/Rest/Verify/V2/Service/Entity/FactorResource.cs index a2731463d..9d40bc119 100644 --- a/src/Twilio/Rest/Verify/V2/Service/Entity/FactorResource.cs +++ b/src/Twilio/Rest/Verify/V2/Service/Entity/FactorResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Verify.V2.Service.Entity public class FactorResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class FactorTypesEnum : StringEnum { diff --git a/src/Twilio/Rest/Verify/V2/Service/Entity/NewFactorOptions.cs b/src/Twilio/Rest/Verify/V2/Service/Entity/NewFactorOptions.cs index 852b2ad99..0ad8a332a 100644 --- a/src/Twilio/Rest/Verify/V2/Service/Entity/NewFactorOptions.cs +++ b/src/Twilio/Rest/Verify/V2/Service/Entity/NewFactorOptions.cs @@ -92,7 +92,7 @@ public CreateNewFactorOptions(string pathServiceSid, string pathIdentity, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Verify/V2/Service/Entity/NewFactorResource.cs b/src/Twilio/Rest/Verify/V2/Service/Entity/NewFactorResource.cs index 0de465d83..6cdb6d579 100644 --- a/src/Twilio/Rest/Verify/V2/Service/Entity/NewFactorResource.cs +++ b/src/Twilio/Rest/Verify/V2/Service/Entity/NewFactorResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Verify.V2.Service.Entity public class NewFactorResource : Resource { + + public sealed class NotificationPlatformsEnum : StringEnum { private NotificationPlatformsEnum(string value) : base(value) {} diff --git a/src/Twilio/Rest/Verify/V2/Service/EntityOptions.cs b/src/Twilio/Rest/Verify/V2/Service/EntityOptions.cs index dda7d419f..8dd71dfc6 100644 --- a/src/Twilio/Rest/Verify/V2/Service/EntityOptions.cs +++ b/src/Twilio/Rest/Verify/V2/Service/EntityOptions.cs @@ -46,7 +46,7 @@ public CreateEntityOptions(string pathServiceSid, string identity) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -82,7 +82,7 @@ public DeleteEntityOptions(string pathServiceSid, string pathIdentity) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -116,7 +116,7 @@ public FetchEntityOptions(string pathServiceSid, string pathIdentity) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -145,7 +145,7 @@ public ReadEntityOptions(string pathServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Verify/V2/Service/EntityResource.cs b/src/Twilio/Rest/Verify/V2/Service/EntityResource.cs index f6301ae0f..64a248183 100644 --- a/src/Twilio/Rest/Verify/V2/Service/EntityResource.cs +++ b/src/Twilio/Rest/Verify/V2/Service/EntityResource.cs @@ -30,6 +30,8 @@ public class EntityResource : Resource { + + private static Request BuildCreateRequest(CreateEntityOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Verify/V2/Service/MessagingConfigurationOptions.cs b/src/Twilio/Rest/Verify/V2/Service/MessagingConfigurationOptions.cs index 570f5d21d..446f2e957 100644 --- a/src/Twilio/Rest/Verify/V2/Service/MessagingConfigurationOptions.cs +++ b/src/Twilio/Rest/Verify/V2/Service/MessagingConfigurationOptions.cs @@ -51,7 +51,7 @@ public CreateMessagingConfigurationOptions(string pathServiceSid, string country /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -91,7 +91,7 @@ public DeleteMessagingConfigurationOptions(string pathServiceSid, string pathCou /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -125,7 +125,7 @@ public FetchMessagingConfigurationOptions(string pathServiceSid, string pathCoun /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -154,7 +154,7 @@ public ReadMessagingConfigurationOptions(string pathServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -196,7 +196,7 @@ public UpdateMessagingConfigurationOptions(string pathServiceSid, string pathCou /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Verify/V2/Service/MessagingConfigurationResource.cs b/src/Twilio/Rest/Verify/V2/Service/MessagingConfigurationResource.cs index 127a79231..263829aa9 100644 --- a/src/Twilio/Rest/Verify/V2/Service/MessagingConfigurationResource.cs +++ b/src/Twilio/Rest/Verify/V2/Service/MessagingConfigurationResource.cs @@ -30,6 +30,8 @@ public class MessagingConfigurationResource : Resource { + + private static Request BuildCreateRequest(CreateMessagingConfigurationOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Verify/V2/Service/RateLimit/BucketOptions.cs b/src/Twilio/Rest/Verify/V2/Service/RateLimit/BucketOptions.cs index f9701b4ea..5f10a5830 100644 --- a/src/Twilio/Rest/Verify/V2/Service/RateLimit/BucketOptions.cs +++ b/src/Twilio/Rest/Verify/V2/Service/RateLimit/BucketOptions.cs @@ -56,7 +56,7 @@ public CreateBucketOptions(string pathServiceSid, string pathRateLimitSid, int? /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -101,7 +101,7 @@ public DeleteBucketOptions(string pathServiceSid, string pathRateLimitSid, strin /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -140,7 +140,7 @@ public FetchBucketOptions(string pathServiceSid, string pathRateLimitSid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -174,7 +174,7 @@ public ReadBucketOptions(string pathServiceSid, string pathRateLimitSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -222,7 +222,7 @@ public UpdateBucketOptions(string pathServiceSid, string pathRateLimitSid, strin /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Verify/V2/Service/RateLimit/BucketResource.cs b/src/Twilio/Rest/Verify/V2/Service/RateLimit/BucketResource.cs index 11aef1acf..27951ba6e 100644 --- a/src/Twilio/Rest/Verify/V2/Service/RateLimit/BucketResource.cs +++ b/src/Twilio/Rest/Verify/V2/Service/RateLimit/BucketResource.cs @@ -30,6 +30,8 @@ public class BucketResource : Resource { + + private static Request BuildCreateRequest(CreateBucketOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Verify/V2/Service/RateLimitOptions.cs b/src/Twilio/Rest/Verify/V2/Service/RateLimitOptions.cs index 355673c18..a3c5ad498 100644 --- a/src/Twilio/Rest/Verify/V2/Service/RateLimitOptions.cs +++ b/src/Twilio/Rest/Verify/V2/Service/RateLimitOptions.cs @@ -49,7 +49,7 @@ public CreateRateLimitOptions(string pathServiceSid, string uniqueName) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -89,7 +89,7 @@ public DeleteRateLimitOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -123,7 +123,7 @@ public FetchRateLimitOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -152,7 +152,7 @@ public ReadRateLimitOptions(string pathServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -192,7 +192,7 @@ public UpdateRateLimitOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Verify/V2/Service/RateLimitResource.cs b/src/Twilio/Rest/Verify/V2/Service/RateLimitResource.cs index d025347df..f376ab362 100644 --- a/src/Twilio/Rest/Verify/V2/Service/RateLimitResource.cs +++ b/src/Twilio/Rest/Verify/V2/Service/RateLimitResource.cs @@ -30,6 +30,8 @@ public class RateLimitResource : Resource { + + private static Request BuildCreateRequest(CreateRateLimitOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Verify/V2/Service/VerificationCheckOptions.cs b/src/Twilio/Rest/Verify/V2/Service/VerificationCheckOptions.cs index a2218e639..f3dfa5c07 100644 --- a/src/Twilio/Rest/Verify/V2/Service/VerificationCheckOptions.cs +++ b/src/Twilio/Rest/Verify/V2/Service/VerificationCheckOptions.cs @@ -56,7 +56,7 @@ public CreateVerificationCheckOptions(string pathServiceSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Verify/V2/Service/VerificationCheckResource.cs b/src/Twilio/Rest/Verify/V2/Service/VerificationCheckResource.cs index 330425f6b..9943a226c 100644 --- a/src/Twilio/Rest/Verify/V2/Service/VerificationCheckResource.cs +++ b/src/Twilio/Rest/Verify/V2/Service/VerificationCheckResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Verify.V2.Service public class VerificationCheckResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class ChannelEnum : StringEnum { diff --git a/src/Twilio/Rest/Verify/V2/Service/VerificationOptions.cs b/src/Twilio/Rest/Verify/V2/Service/VerificationOptions.cs index 50d2ce959..aefe8aa6c 100644 --- a/src/Twilio/Rest/Verify/V2/Service/VerificationOptions.cs +++ b/src/Twilio/Rest/Verify/V2/Service/VerificationOptions.cs @@ -93,7 +93,7 @@ public CreateVerificationOptions(string pathServiceSid, string to, string channe /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -189,7 +189,7 @@ public FetchVerificationOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -228,7 +228,7 @@ public UpdateVerificationOptions(string pathServiceSid, string pathSid, Verifica /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Verify/V2/Service/VerificationResource.cs b/src/Twilio/Rest/Verify/V2/Service/VerificationResource.cs index ec999fc65..2b3d4fd02 100644 --- a/src/Twilio/Rest/Verify/V2/Service/VerificationResource.cs +++ b/src/Twilio/Rest/Verify/V2/Service/VerificationResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Verify.V2.Service public class VerificationResource : Resource { + + public sealed class StatusEnum : StringEnum { private StatusEnum(string value) : base(value) {} diff --git a/src/Twilio/Rest/Verify/V2/Service/WebhookOptions.cs b/src/Twilio/Rest/Verify/V2/Service/WebhookOptions.cs index 546384860..a9f18c380 100644 --- a/src/Twilio/Rest/Verify/V2/Service/WebhookOptions.cs +++ b/src/Twilio/Rest/Verify/V2/Service/WebhookOptions.cs @@ -62,7 +62,7 @@ public CreateWebhookOptions(string pathServiceSid, string friendlyName, List Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -114,7 +114,7 @@ public DeleteWebhookOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -148,7 +148,7 @@ public FetchWebhookOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -177,7 +177,7 @@ public ReadWebhookOptions(string pathServiceSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -230,7 +230,7 @@ public UpdateWebhookOptions(string pathServiceSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Verify/V2/Service/WebhookResource.cs b/src/Twilio/Rest/Verify/V2/Service/WebhookResource.cs index a33d94f25..54c19554d 100644 --- a/src/Twilio/Rest/Verify/V2/Service/WebhookResource.cs +++ b/src/Twilio/Rest/Verify/V2/Service/WebhookResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Verify.V2.Service public class WebhookResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Verify/V2/ServiceOptions.cs b/src/Twilio/Rest/Verify/V2/ServiceOptions.cs index 9fe1b24a9..206ecb4dd 100644 --- a/src/Twilio/Rest/Verify/V2/ServiceOptions.cs +++ b/src/Twilio/Rest/Verify/V2/ServiceOptions.cs @@ -89,7 +89,7 @@ public CreateServiceOptions(string friendlyName) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -184,7 +184,7 @@ public DeleteServiceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -213,7 +213,7 @@ public FetchServiceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -233,7 +233,7 @@ public class ReadServiceOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -316,7 +316,7 @@ public UpdateServiceOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Verify/V2/ServiceResource.cs b/src/Twilio/Rest/Verify/V2/ServiceResource.cs index c330d7532..74f328036 100644 --- a/src/Twilio/Rest/Verify/V2/ServiceResource.cs +++ b/src/Twilio/Rest/Verify/V2/ServiceResource.cs @@ -30,6 +30,8 @@ public class ServiceResource : Resource { + + private static Request BuildCreateRequest(CreateServiceOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Verify/V2/TemplateOptions.cs b/src/Twilio/Rest/Verify/V2/TemplateOptions.cs index 676f65c7a..fdae48877 100644 --- a/src/Twilio/Rest/Verify/V2/TemplateOptions.cs +++ b/src/Twilio/Rest/Verify/V2/TemplateOptions.cs @@ -35,7 +35,7 @@ public class ReadTemplateOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Verify/V2/TemplateResource.cs b/src/Twilio/Rest/Verify/V2/TemplateResource.cs index e2e5c2ee9..b34581d65 100644 --- a/src/Twilio/Rest/Verify/V2/TemplateResource.cs +++ b/src/Twilio/Rest/Verify/V2/TemplateResource.cs @@ -30,6 +30,8 @@ public class TemplateResource : Resource { + + private static Request BuildReadRequest(ReadTemplateOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Verify/V2/VerificationAttemptOptions.cs b/src/Twilio/Rest/Verify/V2/VerificationAttemptOptions.cs index 1a95a0ee3..b573ee03f 100644 --- a/src/Twilio/Rest/Verify/V2/VerificationAttemptOptions.cs +++ b/src/Twilio/Rest/Verify/V2/VerificationAttemptOptions.cs @@ -41,7 +41,7 @@ public FetchVerificationAttemptOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -85,7 +85,7 @@ public class ReadVerificationAttemptOptions : ReadOptions Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Verify/V2/VerificationAttemptResource.cs b/src/Twilio/Rest/Verify/V2/VerificationAttemptResource.cs index e0182b673..85cbcf5c8 100644 --- a/src/Twilio/Rest/Verify/V2/VerificationAttemptResource.cs +++ b/src/Twilio/Rest/Verify/V2/VerificationAttemptResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Verify.V2 public class VerificationAttemptResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class ChannelsEnum : StringEnum { diff --git a/src/Twilio/Rest/Verify/V2/VerificationAttemptsSummaryOptions.cs b/src/Twilio/Rest/Verify/V2/VerificationAttemptsSummaryOptions.cs index 880573b2d..9ab74101a 100644 --- a/src/Twilio/Rest/Verify/V2/VerificationAttemptsSummaryOptions.cs +++ b/src/Twilio/Rest/Verify/V2/VerificationAttemptsSummaryOptions.cs @@ -50,7 +50,7 @@ public class FetchVerificationAttemptsSummaryOptions : IOptions Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Verify/V2/VerificationAttemptsSummaryResource.cs b/src/Twilio/Rest/Verify/V2/VerificationAttemptsSummaryResource.cs index 680814655..7ba829bae 100644 --- a/src/Twilio/Rest/Verify/V2/VerificationAttemptsSummaryResource.cs +++ b/src/Twilio/Rest/Verify/V2/VerificationAttemptsSummaryResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Verify.V2 public class VerificationAttemptsSummaryResource : Resource { + + public sealed class ChannelsEnum : StringEnum { private ChannelsEnum(string value) : base(value) {} diff --git a/src/Twilio/Rest/Video/V1/CompositionHookOptions.cs b/src/Twilio/Rest/Video/V1/CompositionHookOptions.cs index 16438bd43..a3bb11aac 100644 --- a/src/Twilio/Rest/Video/V1/CompositionHookOptions.cs +++ b/src/Twilio/Rest/Video/V1/CompositionHookOptions.cs @@ -70,7 +70,7 @@ public CreateCompositionHookOptions(string friendlyName) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -137,7 +137,7 @@ public DeleteCompositionHookOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -166,7 +166,7 @@ public FetchCompositionHookOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -198,7 +198,7 @@ public class ReadCompositionHookOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -280,7 +280,7 @@ public UpdateCompositionHookOptions(string pathSid, string friendlyName) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Video/V1/CompositionHookResource.cs b/src/Twilio/Rest/Video/V1/CompositionHookResource.cs index 669ceca1a..6c4211d88 100644 --- a/src/Twilio/Rest/Video/V1/CompositionHookResource.cs +++ b/src/Twilio/Rest/Video/V1/CompositionHookResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Video.V1 public class CompositionHookResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class FormatEnum : StringEnum { diff --git a/src/Twilio/Rest/Video/V1/CompositionOptions.cs b/src/Twilio/Rest/Video/V1/CompositionOptions.cs index 927faf978..b25bbc7a5 100644 --- a/src/Twilio/Rest/Video/V1/CompositionOptions.cs +++ b/src/Twilio/Rest/Video/V1/CompositionOptions.cs @@ -67,7 +67,7 @@ public CreateCompositionOptions(string roomSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -130,7 +130,7 @@ public DeleteCompositionOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -159,7 +159,7 @@ public FetchCompositionOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -191,7 +191,7 @@ public class ReadCompositionOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Video/V1/CompositionResource.cs b/src/Twilio/Rest/Video/V1/CompositionResource.cs index f87f44071..fd89e24c6 100644 --- a/src/Twilio/Rest/Video/V1/CompositionResource.cs +++ b/src/Twilio/Rest/Video/V1/CompositionResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Video.V1 public class CompositionResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class FormatEnum : StringEnum { diff --git a/src/Twilio/Rest/Video/V1/CompositionSettingsOptions.cs b/src/Twilio/Rest/Video/V1/CompositionSettingsOptions.cs index b4e261c96..162d8a77a 100644 --- a/src/Twilio/Rest/Video/V1/CompositionSettingsOptions.cs +++ b/src/Twilio/Rest/Video/V1/CompositionSettingsOptions.cs @@ -56,7 +56,7 @@ public CreateCompositionSettingsOptions(string friendlyName) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -98,7 +98,7 @@ public class FetchCompositionSettingsOptions : IOptions Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Video/V1/CompositionSettingsResource.cs b/src/Twilio/Rest/Video/V1/CompositionSettingsResource.cs index b795fb52f..f1e72ee04 100644 --- a/src/Twilio/Rest/Video/V1/CompositionSettingsResource.cs +++ b/src/Twilio/Rest/Video/V1/CompositionSettingsResource.cs @@ -30,6 +30,8 @@ public class CompositionSettingsResource : Resource { + + private static Request BuildCreateRequest(CreateCompositionSettingsOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Video/V1/RecordingOptions.cs b/src/Twilio/Rest/Video/V1/RecordingOptions.cs index 5b032099a..de3378f47 100644 --- a/src/Twilio/Rest/Video/V1/RecordingOptions.cs +++ b/src/Twilio/Rest/Video/V1/RecordingOptions.cs @@ -41,7 +41,7 @@ public DeleteRecordingOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -70,7 +70,7 @@ public FetchRecordingOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -108,7 +108,7 @@ public class ReadRecordingOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Video/V1/RecordingResource.cs b/src/Twilio/Rest/Video/V1/RecordingResource.cs index 05d85e3a7..f96bb98e9 100644 --- a/src/Twilio/Rest/Video/V1/RecordingResource.cs +++ b/src/Twilio/Rest/Video/V1/RecordingResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Video.V1 public class RecordingResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Video/V1/RecordingSettingsOptions.cs b/src/Twilio/Rest/Video/V1/RecordingSettingsOptions.cs index a0da6e0a5..871da57bc 100644 --- a/src/Twilio/Rest/Video/V1/RecordingSettingsOptions.cs +++ b/src/Twilio/Rest/Video/V1/RecordingSettingsOptions.cs @@ -56,7 +56,7 @@ public CreateRecordingSettingsOptions(string friendlyName) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -98,7 +98,7 @@ public class FetchRecordingSettingsOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Video/V1/RecordingSettingsResource.cs b/src/Twilio/Rest/Video/V1/RecordingSettingsResource.cs index 49217de2b..aba5ddb78 100644 --- a/src/Twilio/Rest/Video/V1/RecordingSettingsResource.cs +++ b/src/Twilio/Rest/Video/V1/RecordingSettingsResource.cs @@ -30,6 +30,8 @@ public class RecordingSettingsResource : Resource { + + private static Request BuildCreateRequest(CreateRecordingSettingsOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Video/V1/Room/Participant/AnonymizeOptions.cs b/src/Twilio/Rest/Video/V1/Room/Participant/AnonymizeOptions.cs index 339cbdc40..db4e7c972 100644 --- a/src/Twilio/Rest/Video/V1/Room/Participant/AnonymizeOptions.cs +++ b/src/Twilio/Rest/Video/V1/Room/Participant/AnonymizeOptions.cs @@ -46,7 +46,7 @@ public UpdateAnonymizeOptions(string pathRoomSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Video/V1/Room/Participant/AnonymizeResource.cs b/src/Twilio/Rest/Video/V1/Room/Participant/AnonymizeResource.cs index 4d68258eb..c7f442398 100644 --- a/src/Twilio/Rest/Video/V1/Room/Participant/AnonymizeResource.cs +++ b/src/Twilio/Rest/Video/V1/Room/Participant/AnonymizeResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Video.V1.Room.Participant public class AnonymizeResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Video/V1/Room/Participant/PublishedTrackOptions.cs b/src/Twilio/Rest/Video/V1/Room/Participant/PublishedTrackOptions.cs index 5f8495551..a6f8686e8 100644 --- a/src/Twilio/Rest/Video/V1/Room/Participant/PublishedTrackOptions.cs +++ b/src/Twilio/Rest/Video/V1/Room/Participant/PublishedTrackOptions.cs @@ -51,7 +51,7 @@ public FetchPublishedTrackOptions(string pathRoomSid, string pathParticipantSid, /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -85,7 +85,7 @@ public ReadPublishedTrackOptions(string pathRoomSid, string pathParticipantSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Video/V1/Room/Participant/PublishedTrackResource.cs b/src/Twilio/Rest/Video/V1/Room/Participant/PublishedTrackResource.cs index 728de5878..a6c442000 100644 --- a/src/Twilio/Rest/Video/V1/Room/Participant/PublishedTrackResource.cs +++ b/src/Twilio/Rest/Video/V1/Room/Participant/PublishedTrackResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Video.V1.Room.Participant public class PublishedTrackResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class KindEnum : StringEnum { diff --git a/src/Twilio/Rest/Video/V1/Room/Participant/SubscribeRulesOptions.cs b/src/Twilio/Rest/Video/V1/Room/Participant/SubscribeRulesOptions.cs index a9a665b21..3500a362e 100644 --- a/src/Twilio/Rest/Video/V1/Room/Participant/SubscribeRulesOptions.cs +++ b/src/Twilio/Rest/Video/V1/Room/Participant/SubscribeRulesOptions.cs @@ -46,7 +46,7 @@ public FetchSubscribeRulesOptions(string pathRoomSid, string pathParticipantSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -83,7 +83,7 @@ public UpdateSubscribeRulesOptions(string pathRoomSid, string pathParticipantSid /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Video/V1/Room/Participant/SubscribeRulesResource.cs b/src/Twilio/Rest/Video/V1/Room/Participant/SubscribeRulesResource.cs index ce287f9ab..f36f709f6 100644 --- a/src/Twilio/Rest/Video/V1/Room/Participant/SubscribeRulesResource.cs +++ b/src/Twilio/Rest/Video/V1/Room/Participant/SubscribeRulesResource.cs @@ -30,6 +30,8 @@ public class SubscribeRulesResource : Resource { + + private static Request BuildFetchRequest(FetchSubscribeRulesOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Video/V1/Room/Participant/SubscribedTrackOptions.cs b/src/Twilio/Rest/Video/V1/Room/Participant/SubscribedTrackOptions.cs index a3fb732bd..7eeb5ac9e 100644 --- a/src/Twilio/Rest/Video/V1/Room/Participant/SubscribedTrackOptions.cs +++ b/src/Twilio/Rest/Video/V1/Room/Participant/SubscribedTrackOptions.cs @@ -51,7 +51,7 @@ public FetchSubscribedTrackOptions(string pathRoomSid, string pathParticipantSid /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -85,7 +85,7 @@ public ReadSubscribedTrackOptions(string pathRoomSid, string pathParticipantSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Video/V1/Room/Participant/SubscribedTrackResource.cs b/src/Twilio/Rest/Video/V1/Room/Participant/SubscribedTrackResource.cs index 128b12285..5c021690a 100644 --- a/src/Twilio/Rest/Video/V1/Room/Participant/SubscribedTrackResource.cs +++ b/src/Twilio/Rest/Video/V1/Room/Participant/SubscribedTrackResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Video.V1.Room.Participant public class SubscribedTrackResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class KindEnum : StringEnum { diff --git a/src/Twilio/Rest/Video/V1/Room/ParticipantOptions.cs b/src/Twilio/Rest/Video/V1/Room/ParticipantOptions.cs index 28d8b69f6..1b93399b1 100644 --- a/src/Twilio/Rest/Video/V1/Room/ParticipantOptions.cs +++ b/src/Twilio/Rest/Video/V1/Room/ParticipantOptions.cs @@ -46,7 +46,7 @@ public FetchParticipantOptions(string pathRoomSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -87,7 +87,7 @@ public ReadParticipantOptions(string pathRoomSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -143,7 +143,7 @@ public UpdateParticipantOptions(string pathRoomSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Video/V1/Room/ParticipantResource.cs b/src/Twilio/Rest/Video/V1/Room/ParticipantResource.cs index 64fcf7a40..7b2d7a646 100644 --- a/src/Twilio/Rest/Video/V1/Room/ParticipantResource.cs +++ b/src/Twilio/Rest/Video/V1/Room/ParticipantResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Video.V1.Room public class ParticipantResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Video/V1/Room/RecordingRulesOptions.cs b/src/Twilio/Rest/Video/V1/Room/RecordingRulesOptions.cs index b0ba0cbba..b021b4b65 100644 --- a/src/Twilio/Rest/Video/V1/Room/RecordingRulesOptions.cs +++ b/src/Twilio/Rest/Video/V1/Room/RecordingRulesOptions.cs @@ -41,7 +41,7 @@ public FetchRecordingRulesOptions(string pathRoomSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -73,7 +73,7 @@ public UpdateRecordingRulesOptions(string pathRoomSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Video/V1/Room/RecordingRulesResource.cs b/src/Twilio/Rest/Video/V1/Room/RecordingRulesResource.cs index 655493cc0..ac033a9fb 100644 --- a/src/Twilio/Rest/Video/V1/Room/RecordingRulesResource.cs +++ b/src/Twilio/Rest/Video/V1/Room/RecordingRulesResource.cs @@ -30,6 +30,8 @@ public class RecordingRulesResource : Resource { + + private static Request BuildFetchRequest(FetchRecordingRulesOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Video/V1/Room/RoomRecordingOptions.cs b/src/Twilio/Rest/Video/V1/Room/RoomRecordingOptions.cs index 453e1ad03..ddd527dd3 100644 --- a/src/Twilio/Rest/Video/V1/Room/RoomRecordingOptions.cs +++ b/src/Twilio/Rest/Video/V1/Room/RoomRecordingOptions.cs @@ -46,7 +46,7 @@ public DeleteRoomRecordingOptions(string pathRoomSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -80,7 +80,7 @@ public FetchRoomRecordingOptions(string pathRoomSid, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -121,7 +121,7 @@ public ReadRoomRecordingOptions(string pathRoomSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Video/V1/Room/RoomRecordingResource.cs b/src/Twilio/Rest/Video/V1/Room/RoomRecordingResource.cs index 1e291dd08..2365f759e 100644 --- a/src/Twilio/Rest/Video/V1/Room/RoomRecordingResource.cs +++ b/src/Twilio/Rest/Video/V1/Room/RoomRecordingResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Video.V1.Room public class RoomRecordingResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Video/V1/RoomOptions.cs b/src/Twilio/Rest/Video/V1/RoomOptions.cs index 4aa45a7a8..014d93a82 100644 --- a/src/Twilio/Rest/Video/V1/RoomOptions.cs +++ b/src/Twilio/Rest/Video/V1/RoomOptions.cs @@ -77,7 +77,7 @@ public class CreateRoomOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -164,7 +164,7 @@ public FetchRoomOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -196,7 +196,7 @@ public class ReadRoomOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -249,7 +249,7 @@ public UpdateRoomOptions(string pathSid, RoomResource.RoomStatusEnum status) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Video/V1/RoomResource.cs b/src/Twilio/Rest/Video/V1/RoomResource.cs index 5b20bab43..d67f4abe2 100644 --- a/src/Twilio/Rest/Video/V1/RoomResource.cs +++ b/src/Twilio/Rest/Video/V1/RoomResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Video.V1 public class RoomResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class VideoCodecEnum : StringEnum { diff --git a/src/Twilio/Rest/Voice/V1/ArchivedCallOptions.cs b/src/Twilio/Rest/Voice/V1/ArchivedCallOptions.cs index 08f5e56aa..984f33a38 100644 --- a/src/Twilio/Rest/Voice/V1/ArchivedCallOptions.cs +++ b/src/Twilio/Rest/Voice/V1/ArchivedCallOptions.cs @@ -46,7 +46,7 @@ public DeleteArchivedCallOptions(DateTime? pathDate, string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Voice/V1/ArchivedCallResource.cs b/src/Twilio/Rest/Voice/V1/ArchivedCallResource.cs index c68b5d137..e2f0f67c8 100644 --- a/src/Twilio/Rest/Voice/V1/ArchivedCallResource.cs +++ b/src/Twilio/Rest/Voice/V1/ArchivedCallResource.cs @@ -30,6 +30,8 @@ public class ArchivedCallResource : Resource { + + /// Delete an archived call record from Bulk Export. Note: this does not also delete the record from the Voice API. /// Delete ArchivedCall parameters diff --git a/src/Twilio/Rest/Voice/V1/ByocTrunkOptions.cs b/src/Twilio/Rest/Voice/V1/ByocTrunkOptions.cs index b563834ac..9d2cdebb8 100644 --- a/src/Twilio/Rest/Voice/V1/ByocTrunkOptions.cs +++ b/src/Twilio/Rest/Voice/V1/ByocTrunkOptions.cs @@ -62,7 +62,7 @@ public class CreateByocTrunkOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -129,7 +129,7 @@ public DeleteByocTrunkOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -158,7 +158,7 @@ public FetchByocTrunkOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -178,7 +178,7 @@ public class ReadByocTrunkOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -240,7 +240,7 @@ public UpdateByocTrunkOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Voice/V1/ByocTrunkResource.cs b/src/Twilio/Rest/Voice/V1/ByocTrunkResource.cs index cd6a45f9e..96db87ed3 100644 --- a/src/Twilio/Rest/Voice/V1/ByocTrunkResource.cs +++ b/src/Twilio/Rest/Voice/V1/ByocTrunkResource.cs @@ -30,6 +30,8 @@ public class ByocTrunkResource : Resource { + + private static Request BuildCreateRequest(CreateByocTrunkOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Voice/V1/ConnectionPolicy/ConnectionPolicyTargetOptions.cs b/src/Twilio/Rest/Voice/V1/ConnectionPolicy/ConnectionPolicyTargetOptions.cs index 3ce27c19d..945265ee1 100644 --- a/src/Twilio/Rest/Voice/V1/ConnectionPolicy/ConnectionPolicyTargetOptions.cs +++ b/src/Twilio/Rest/Voice/V1/ConnectionPolicy/ConnectionPolicyTargetOptions.cs @@ -58,7 +58,7 @@ public CreateConnectionPolicyTargetOptions(string pathConnectionPolicySid, Uri t /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -110,7 +110,7 @@ public DeleteConnectionPolicyTargetOptions(string pathConnectionPolicySid, strin /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -144,7 +144,7 @@ public FetchConnectionPolicyTargetOptions(string pathConnectionPolicySid, string /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -173,7 +173,7 @@ public ReadConnectionPolicyTargetOptions(string pathConnectionPolicySid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -225,7 +225,7 @@ public UpdateConnectionPolicyTargetOptions(string pathConnectionPolicySid, strin /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Voice/V1/ConnectionPolicy/ConnectionPolicyTargetResource.cs b/src/Twilio/Rest/Voice/V1/ConnectionPolicy/ConnectionPolicyTargetResource.cs index 7613bd23d..5582a3842 100644 --- a/src/Twilio/Rest/Voice/V1/ConnectionPolicy/ConnectionPolicyTargetResource.cs +++ b/src/Twilio/Rest/Voice/V1/ConnectionPolicy/ConnectionPolicyTargetResource.cs @@ -30,6 +30,8 @@ public class ConnectionPolicyTargetResource : Resource { + + private static Request BuildCreateRequest(CreateConnectionPolicyTargetOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Voice/V1/ConnectionPolicyOptions.cs b/src/Twilio/Rest/Voice/V1/ConnectionPolicyOptions.cs index f07fec47b..f66f1218d 100644 --- a/src/Twilio/Rest/Voice/V1/ConnectionPolicyOptions.cs +++ b/src/Twilio/Rest/Voice/V1/ConnectionPolicyOptions.cs @@ -35,7 +35,7 @@ public class CreateConnectionPolicyOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -66,7 +66,7 @@ public DeleteConnectionPolicyOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -95,7 +95,7 @@ public FetchConnectionPolicyOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -115,7 +115,7 @@ public class ReadConnectionPolicyOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -150,7 +150,7 @@ public UpdateConnectionPolicyOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Voice/V1/ConnectionPolicyResource.cs b/src/Twilio/Rest/Voice/V1/ConnectionPolicyResource.cs index 3fd1277a5..591390af7 100644 --- a/src/Twilio/Rest/Voice/V1/ConnectionPolicyResource.cs +++ b/src/Twilio/Rest/Voice/V1/ConnectionPolicyResource.cs @@ -30,6 +30,8 @@ public class ConnectionPolicyResource : Resource { + + private static Request BuildCreateRequest(CreateConnectionPolicyOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Voice/V1/DialingPermissions/BulkCountryUpdateOptions.cs b/src/Twilio/Rest/Voice/V1/DialingPermissions/BulkCountryUpdateOptions.cs index 23fca61aa..e048c55c6 100644 --- a/src/Twilio/Rest/Voice/V1/DialingPermissions/BulkCountryUpdateOptions.cs +++ b/src/Twilio/Rest/Voice/V1/DialingPermissions/BulkCountryUpdateOptions.cs @@ -41,7 +41,7 @@ public CreateBulkCountryUpdateOptions(string updateRequest) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Voice/V1/DialingPermissions/BulkCountryUpdateResource.cs b/src/Twilio/Rest/Voice/V1/DialingPermissions/BulkCountryUpdateResource.cs index 7befef798..a93925163 100644 --- a/src/Twilio/Rest/Voice/V1/DialingPermissions/BulkCountryUpdateResource.cs +++ b/src/Twilio/Rest/Voice/V1/DialingPermissions/BulkCountryUpdateResource.cs @@ -30,6 +30,8 @@ public class BulkCountryUpdateResource : Resource { + + private static Request BuildCreateRequest(CreateBulkCountryUpdateOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Voice/V1/DialingPermissions/Country/HighriskSpecialPrefixOptions.cs b/src/Twilio/Rest/Voice/V1/DialingPermissions/Country/HighriskSpecialPrefixOptions.cs index 6c1bdcf0e..55862dd99 100644 --- a/src/Twilio/Rest/Voice/V1/DialingPermissions/Country/HighriskSpecialPrefixOptions.cs +++ b/src/Twilio/Rest/Voice/V1/DialingPermissions/Country/HighriskSpecialPrefixOptions.cs @@ -41,7 +41,7 @@ public ReadHighriskSpecialPrefixOptions(string pathIsoCode) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Voice/V1/DialingPermissions/Country/HighriskSpecialPrefixResource.cs b/src/Twilio/Rest/Voice/V1/DialingPermissions/Country/HighriskSpecialPrefixResource.cs index 830be332f..bbe8fe139 100644 --- a/src/Twilio/Rest/Voice/V1/DialingPermissions/Country/HighriskSpecialPrefixResource.cs +++ b/src/Twilio/Rest/Voice/V1/DialingPermissions/Country/HighriskSpecialPrefixResource.cs @@ -30,6 +30,8 @@ public class HighriskSpecialPrefixResource : Resource { + + private static Request BuildReadRequest(ReadHighriskSpecialPrefixOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Voice/V1/DialingPermissions/CountryOptions.cs b/src/Twilio/Rest/Voice/V1/DialingPermissions/CountryOptions.cs index 9dc753d3b..635ea02a6 100644 --- a/src/Twilio/Rest/Voice/V1/DialingPermissions/CountryOptions.cs +++ b/src/Twilio/Rest/Voice/V1/DialingPermissions/CountryOptions.cs @@ -41,7 +41,7 @@ public FetchCountryOptions(string pathIsoCode) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -79,7 +79,7 @@ public class ReadCountryOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Voice/V1/DialingPermissions/CountryResource.cs b/src/Twilio/Rest/Voice/V1/DialingPermissions/CountryResource.cs index 7c337a469..f07b1818a 100644 --- a/src/Twilio/Rest/Voice/V1/DialingPermissions/CountryResource.cs +++ b/src/Twilio/Rest/Voice/V1/DialingPermissions/CountryResource.cs @@ -30,6 +30,8 @@ public class CountryResource : Resource { + + private static Request BuildFetchRequest(FetchCountryOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Voice/V1/DialingPermissions/SettingsOptions.cs b/src/Twilio/Rest/Voice/V1/DialingPermissions/SettingsOptions.cs index c03e5be01..7ad5afd62 100644 --- a/src/Twilio/Rest/Voice/V1/DialingPermissions/SettingsOptions.cs +++ b/src/Twilio/Rest/Voice/V1/DialingPermissions/SettingsOptions.cs @@ -32,7 +32,7 @@ public class FetchSettingsOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -55,7 +55,7 @@ public class UpdateSettingsOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Voice/V1/DialingPermissions/SettingsResource.cs b/src/Twilio/Rest/Voice/V1/DialingPermissions/SettingsResource.cs index bf9ce92d0..0b663acb0 100644 --- a/src/Twilio/Rest/Voice/V1/DialingPermissions/SettingsResource.cs +++ b/src/Twilio/Rest/Voice/V1/DialingPermissions/SettingsResource.cs @@ -30,6 +30,8 @@ public class SettingsResource : Resource { + + private static Request BuildFetchRequest(FetchSettingsOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Voice/V1/IpRecordOptions.cs b/src/Twilio/Rest/Voice/V1/IpRecordOptions.cs index 71ff85d06..ca800641f 100644 --- a/src/Twilio/Rest/Voice/V1/IpRecordOptions.cs +++ b/src/Twilio/Rest/Voice/V1/IpRecordOptions.cs @@ -47,7 +47,7 @@ public CreateIpRecordOptions(string ipAddress) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -86,7 +86,7 @@ public DeleteIpRecordOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -115,7 +115,7 @@ public FetchIpRecordOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -135,7 +135,7 @@ public class ReadIpRecordOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -170,7 +170,7 @@ public UpdateIpRecordOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Voice/V1/IpRecordResource.cs b/src/Twilio/Rest/Voice/V1/IpRecordResource.cs index ff49b6b5a..0963d016a 100644 --- a/src/Twilio/Rest/Voice/V1/IpRecordResource.cs +++ b/src/Twilio/Rest/Voice/V1/IpRecordResource.cs @@ -30,6 +30,8 @@ public class IpRecordResource : Resource { + + private static Request BuildCreateRequest(CreateIpRecordOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Voice/V1/SourceIpMappingOptions.cs b/src/Twilio/Rest/Voice/V1/SourceIpMappingOptions.cs index bf8ccf3a0..38d53ab51 100644 --- a/src/Twilio/Rest/Voice/V1/SourceIpMappingOptions.cs +++ b/src/Twilio/Rest/Voice/V1/SourceIpMappingOptions.cs @@ -46,7 +46,7 @@ public CreateSourceIpMappingOptions(string ipRecordSid, string sipDomainSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -81,7 +81,7 @@ public DeleteSourceIpMappingOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -110,7 +110,7 @@ public FetchSourceIpMappingOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -130,7 +130,7 @@ public class ReadSourceIpMappingOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -167,7 +167,7 @@ public UpdateSourceIpMappingOptions(string pathSid, string sipDomainSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Voice/V1/SourceIpMappingResource.cs b/src/Twilio/Rest/Voice/V1/SourceIpMappingResource.cs index 71418c1cf..5e9d24d3c 100644 --- a/src/Twilio/Rest/Voice/V1/SourceIpMappingResource.cs +++ b/src/Twilio/Rest/Voice/V1/SourceIpMappingResource.cs @@ -30,6 +30,8 @@ public class SourceIpMappingResource : Resource { + + private static Request BuildCreateRequest(CreateSourceIpMappingOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Wireless/V1/CommandOptions.cs b/src/Twilio/Rest/Wireless/V1/CommandOptions.cs index e4afa82c5..1d95cc3ac 100644 --- a/src/Twilio/Rest/Wireless/V1/CommandOptions.cs +++ b/src/Twilio/Rest/Wireless/V1/CommandOptions.cs @@ -59,7 +59,7 @@ public CreateCommandOptions(string command) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -114,7 +114,7 @@ public DeleteCommandOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -143,7 +143,7 @@ public FetchCommandOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -175,7 +175,7 @@ public class ReadCommandOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Wireless/V1/CommandResource.cs b/src/Twilio/Rest/Wireless/V1/CommandResource.cs index a6f1d27db..1ed93c229 100644 --- a/src/Twilio/Rest/Wireless/V1/CommandResource.cs +++ b/src/Twilio/Rest/Wireless/V1/CommandResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Wireless.V1 public class CommandResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Wireless/V1/RatePlanOptions.cs b/src/Twilio/Rest/Wireless/V1/RatePlanOptions.cs index 4dcc63539..6e109ae12 100644 --- a/src/Twilio/Rest/Wireless/V1/RatePlanOptions.cs +++ b/src/Twilio/Rest/Wireless/V1/RatePlanOptions.cs @@ -65,7 +65,7 @@ public class CreateRatePlanOptions : IOptions /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -136,7 +136,7 @@ public DeleteRatePlanOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -165,7 +165,7 @@ public FetchRatePlanOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -185,7 +185,7 @@ public class ReadRatePlanOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -223,7 +223,7 @@ public UpdateRatePlanOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Wireless/V1/RatePlanResource.cs b/src/Twilio/Rest/Wireless/V1/RatePlanResource.cs index 888c9a283..f1cca73af 100644 --- a/src/Twilio/Rest/Wireless/V1/RatePlanResource.cs +++ b/src/Twilio/Rest/Wireless/V1/RatePlanResource.cs @@ -30,6 +30,8 @@ public class RatePlanResource : Resource { + + private static Request BuildCreateRequest(CreateRatePlanOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Wireless/V1/Sim/DataSessionOptions.cs b/src/Twilio/Rest/Wireless/V1/Sim/DataSessionOptions.cs index 7ac6393ab..98d3b746e 100644 --- a/src/Twilio/Rest/Wireless/V1/Sim/DataSessionOptions.cs +++ b/src/Twilio/Rest/Wireless/V1/Sim/DataSessionOptions.cs @@ -41,7 +41,7 @@ public ReadDataSessionOptions(string pathSimSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Wireless/V1/Sim/DataSessionResource.cs b/src/Twilio/Rest/Wireless/V1/Sim/DataSessionResource.cs index 155f92e4b..44f5cab24 100644 --- a/src/Twilio/Rest/Wireless/V1/Sim/DataSessionResource.cs +++ b/src/Twilio/Rest/Wireless/V1/Sim/DataSessionResource.cs @@ -30,6 +30,8 @@ public class DataSessionResource : Resource { + + private static Request BuildReadRequest(ReadDataSessionOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Wireless/V1/Sim/UsageRecordOptions.cs b/src/Twilio/Rest/Wireless/V1/Sim/UsageRecordOptions.cs index 6b3e6fcca..9e7ace392 100644 --- a/src/Twilio/Rest/Wireless/V1/Sim/UsageRecordOptions.cs +++ b/src/Twilio/Rest/Wireless/V1/Sim/UsageRecordOptions.cs @@ -50,7 +50,7 @@ public ReadUsageRecordOptions(string pathSimSid) /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Wireless/V1/Sim/UsageRecordResource.cs b/src/Twilio/Rest/Wireless/V1/Sim/UsageRecordResource.cs index 6d38e990e..458871e21 100644 --- a/src/Twilio/Rest/Wireless/V1/Sim/UsageRecordResource.cs +++ b/src/Twilio/Rest/Wireless/V1/Sim/UsageRecordResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Wireless.V1.Sim public class UsageRecordResource : Resource { + + public sealed class GranularityEnum : StringEnum { private GranularityEnum(string value) : base(value) {} diff --git a/src/Twilio/Rest/Wireless/V1/SimOptions.cs b/src/Twilio/Rest/Wireless/V1/SimOptions.cs index dd92e026c..5602110da 100644 --- a/src/Twilio/Rest/Wireless/V1/SimOptions.cs +++ b/src/Twilio/Rest/Wireless/V1/SimOptions.cs @@ -41,7 +41,7 @@ public DeleteSimOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -70,7 +70,7 @@ public FetchSimOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); @@ -105,7 +105,7 @@ public class ReadSimOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); @@ -211,7 +211,7 @@ public UpdateSimOptions(string pathSid) /// Generate the necessary parameters - public List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Wireless/V1/SimResource.cs b/src/Twilio/Rest/Wireless/V1/SimResource.cs index cd7dbb50e..8acb850ad 100644 --- a/src/Twilio/Rest/Wireless/V1/SimResource.cs +++ b/src/Twilio/Rest/Wireless/V1/SimResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Wireless.V1 public class SimResource : Resource { + + [JsonConverter(typeof(StringEnumConverter))] public sealed class StatusEnum : StringEnum { diff --git a/src/Twilio/Rest/Wireless/V1/UsageRecordOptions.cs b/src/Twilio/Rest/Wireless/V1/UsageRecordOptions.cs index 507a2d152..84790bb9e 100644 --- a/src/Twilio/Rest/Wireless/V1/UsageRecordOptions.cs +++ b/src/Twilio/Rest/Wireless/V1/UsageRecordOptions.cs @@ -41,7 +41,7 @@ public class ReadUsageRecordOptions : ReadOptions /// Generate the necessary parameters - public override List> GetParams() + public List> GetParams() { var p = new List>(); diff --git a/src/Twilio/Rest/Wireless/V1/UsageRecordResource.cs b/src/Twilio/Rest/Wireless/V1/UsageRecordResource.cs index 84069a6e8..ef8819823 100644 --- a/src/Twilio/Rest/Wireless/V1/UsageRecordResource.cs +++ b/src/Twilio/Rest/Wireless/V1/UsageRecordResource.cs @@ -29,6 +29,8 @@ namespace Twilio.Rest.Wireless.V1 public class UsageRecordResource : Resource { + + public sealed class GranularityEnum : StringEnum { private GranularityEnum(string value) : base(value) {} diff --git a/test/Twilio.Test/Constant/EnumConstantsTest.cs b/test/Twilio.Test/Constant/EnumConstantsTest.cs index af1b70683..f43b6100c 100644 --- a/test/Twilio.Test/Constant/EnumConstantsTest.cs +++ b/test/Twilio.Test/Constant/EnumConstantsTest.cs @@ -6,13 +6,12 @@ namespace Twilio.Tests.Constant [TestFixture] public class EnumConstantsTest { - [Test] public void EnumConstantComparison() { var jsonContentType = EnumConstants.ContentTypeEnum.JSON; var formUrlEncodedType = EnumConstants.ContentTypeEnum.FORM_URLENCODED; - + Assert.AreEqual("application/json", jsonContentType.ToString()); Assert.AreEqual("application/x-www-form-urlencoded", formUrlEncodedType.ToString()); } diff --git a/test/Twilio.Test/Twilio.Test.csproj b/test/Twilio.Test/Twilio.Test.csproj index 51ddadd27..45587db74 100644 --- a/test/Twilio.Test/Twilio.Test.csproj +++ b/test/Twilio.Test/Twilio.Test.csproj @@ -1,4 +1,4 @@ - + Exe Twilio.Tests @@ -21,4 +21,4 @@ - \ No newline at end of file +