From 3aeb020b921baae82b53ea261f2544462bd44757 Mon Sep 17 00:00:00 2001 From: Twilio Date: Mon, 26 Aug 2024 11:18:24 +0000 Subject: [PATCH] [Librarian] Regenerated @ c8ce9820730ef3b2a48912311d45afb8c26b9ee7 2ee5b1fa49840dd67929ff69952e93618b74425b --- CHANGES.md | 40 + .../Account/Call/TranscriptionOptions.cs | 1394 +---------------- .../Account/Call/TranscriptionResource.cs | 812 +--------- .../Rest/Api/V2010/Account/MessageResource.cs | 4 +- .../AddOnResult/Payload/DataOptions.cs | 70 + .../AddOnResult/Payload/DataResource.cs | 162 ++ .../V1/Content/ApprovalCreateOptions.cs | 2 +- .../V1/Content/ApprovalFetchOptions.cs | 2 +- src/Twilio/Rest/Content/V1/ContentResource.cs | 144 ++ src/Twilio/Rest/Domain.cs | 2 +- src/Twilio/Rest/FlexApi/V2/FlexUserOptions.cs | 77 + .../Rest/FlexApi/V2/FlexUserResource.cs | 107 ++ .../Rest/Insights/V1/CallSummariesOptions.cs | 72 +- .../Rest/Insights/V1/CallSummariesResource.cs | 48 +- .../Intelligence/V2/OperatorTypeOptions.cs | 4 +- .../Intelligence/V2/OperatorTypeResource.cs | 4 +- .../V2/Transcript/SentenceOptions.cs | 7 + .../V2/Transcript/SentenceResource.cs | 12 +- .../InstalledAddOnUsageOptions.cs | 12 +- .../InstalledAddOnUsageResource.cs | 42 +- .../V1/ModuleDataManagementOptions.cs | 13 +- .../V1/ModuleDataManagementResource.cs | 38 +- .../V1/ReferralConversionOptions.cs | 58 + .../V1/ReferralConversionResource.cs | 172 ++ .../Messaging/V1/ExternalCampaignOptions.cs | 7 + .../Messaging/V1/ExternalCampaignResource.cs | 8 +- .../V1/Service/ChannelSenderOptions.cs | 72 + .../V1/Service/ChannelSenderResource.cs | 145 ++ .../V1/PortingPortInPhoneNumberResource.cs | 38 +- .../Rest/Numbers/V1/PortingPortInResource.cs | 16 +- .../Numbers/V1/PortingPortabilityOptions.cs | 8 +- .../Numbers/V1/PortingPortabilityResource.cs | 24 +- ...ortingWebhookConfigurationDeleteOptions.cs | 4 +- ...rtingWebhookConfigurationDeleteResource.cs | 4 +- ...ortingWebhookConfigurationFetchOptions.cs} | 2 +- ...rtingWebhookConfigurationFetchResource.cs} | 44 +- .../V1/PortingWebhookConfigurationOptions.cs | 2 +- .../V1/PortingWebhookConfigurationResource.cs | 14 +- .../V1/SigningRequestConfigurationOptions.cs | 38 + .../V1/SigningRequestConfigurationResource.cs | 128 ++ .../Rest/Numbers/V2/BundleCloneOptions.cs | 78 + .../Rest/Numbers/V2/BundleCloneResource.cs | 220 +++ .../V2/RegulatoryCompliance/BundleOptions.cs | 7 + .../V2/RegulatoryCompliance/BundleResource.cs | 8 +- .../Taskrouter/V1/Workspace/TaskOptions.cs | 2 +- .../Taskrouter/V1/Workspace/TaskResource.cs | 6 +- .../Trusthub/V1/ComplianceInquiriesOptions.cs | 14 + .../V1/ComplianceInquiriesResource.cs | 16 +- src/Twilio/Rest/Verify/V2/ServiceOptions.cs | 4 +- src/Twilio/Rest/Verify/V2/ServiceResource.cs | 10 +- 50 files changed, 1858 insertions(+), 2359 deletions(-) create mode 100644 src/Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/Payload/DataOptions.cs create mode 100644 src/Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/Payload/DataResource.cs create mode 100644 src/Twilio/Rest/Marketplace/V1/ReferralConversionOptions.cs create mode 100644 src/Twilio/Rest/Marketplace/V1/ReferralConversionResource.cs rename src/Twilio/Rest/Numbers/V1/{WebhookOptions.cs => PortingWebhookConfigurationFetchOptions.cs} (89%) rename src/Twilio/Rest/Numbers/V1/{WebhookResource.cs => PortingWebhookConfigurationFetchResource.cs} (64%) create mode 100644 src/Twilio/Rest/Numbers/V2/BundleCloneOptions.cs create mode 100644 src/Twilio/Rest/Numbers/V2/BundleCloneResource.cs diff --git a/CHANGES.md b/CHANGES.md index 5128658e8..283ce790e 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,46 @@ twilio-csharp Changelog ======================= +[2024-08-26] Version 7.2.3 +-------------------------- +**Library - Fix** +- [PR #752](https://github.com/twilio/twilio-csharp/pull/752): Update Domain.cs to remove orgs api entry. Thanks to [@AsabuHere](https://github.com/AsabuHere)! + +**Api** +- Update documentation of `error_code` and `error_message` on the Message resource. +- Remove generic parameters from `transcription` resource +- Added public documentation for Payload Data retrieval API + +**Flex** +- Adding update Flex User api + +**Insights** +- Added 'branded', 'business_profile' and 'voice_integrity' fields in List Call Summary + +**Intelligence** +- Add `words` array information to the Sentences v2 entity. +- Add `X-Rate-Limit-Limit`, `X-Rate-Limit-Remaining`, and `X-Rate-Limit-Config` headers for Operator Results. +- Change the path parameter when fetching an `/OperatorType/{}` from `sid` to `string` to support searching by SID or by name +- Add `X-Rate-Limit-Limit`, `X-Rate-Limit-Remaining`, and `X-Rate-Limit-Config` headers for Transcript and Service endpoints. + +**Messaging** +- Adds two new channel senders api to add/remove channel senders to/from a messaging service +- Extend ERC api to accept an optional attribute in request body to indicate CNP migration for an ERC + +**Numbers** +- Modify visibility to public in bundle clone API +- Add `port_date` field to Port In Request and Port In Phone Numbers Fetch APIs +- Change properties docs for port in phone numbers api +- Add is_test body param to the Bundle Create API +- Change properties docs for port in api + +**Trusthub** +- Add new field in themeSetId in compliance_inquiry. + +**Verify** +- Update `custom_code_enabled` description on verification docs + + [2024-07-02] Version 7.2.2 -------------------------- **Intelligence** diff --git a/src/Twilio/Rest/Api/V2010/Account/Call/TranscriptionOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Call/TranscriptionOptions.cs index 006155f9b..8bc745265 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Call/TranscriptionOptions.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Call/TranscriptionOptions.cs @@ -52,621 +52,27 @@ public class CreateTranscriptionOptions : IOptions /// Friendly name given to the Outbound Track public string OutboundTrackLabel { get; set; } - /// Indicates if partial results are going to be send to the customer + /// Indicates if partial results are going to be sent to the customer public bool? PartialResults { get; set; } /// Language code used by the transcription engine, specified in [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) format public string LanguageCode { get; set; } - /// Definition of the transcription engine to be used, between those supported by Twilio + /// Definition of the transcription engine to be used, among those supported by Twilio public string TranscriptionEngine { get; set; } /// indicates if the server will attempt to filter out profanities, replacing all but the initial character in each filtered word with asterisks public bool? ProfanityFilter { get; set; } - /// Recognition model used by the transcription engine, between those supported by the provider + /// Recognition model used by the transcription engine, among those supported by the provider public string SpeechModel { get; set; } /// A Phrase contains words and phrase \\\"hints\\\" so that the speech recognition engine is more likely to recognize them. public string Hints { get; set; } - /// The provider will adds punctuation to recognition result hypotheses + /// The provider will add punctuation to recognition result public bool? EnableAutomaticPunctuation { get; set; } - /// Parameter name - public string Parameter1Name { get; set; } - - /// Parameter value - public string Parameter1Value { get; set; } - - /// Parameter name - public string Parameter2Name { get; set; } - - /// Parameter value - public string Parameter2Value { get; set; } - - /// Parameter name - public string Parameter3Name { get; set; } - - /// Parameter value - public string Parameter3Value { get; set; } - - /// Parameter name - public string Parameter4Name { get; set; } - - /// Parameter value - public string Parameter4Value { get; set; } - - /// Parameter name - public string Parameter5Name { get; set; } - - /// Parameter value - public string Parameter5Value { get; set; } - - /// Parameter name - public string Parameter6Name { get; set; } - - /// Parameter value - public string Parameter6Value { get; set; } - - /// Parameter name - public string Parameter7Name { get; set; } - - /// Parameter value - public string Parameter7Value { get; set; } - - /// Parameter name - public string Parameter8Name { get; set; } - - /// Parameter value - public string Parameter8Value { get; set; } - - /// Parameter name - public string Parameter9Name { get; set; } - - /// Parameter value - public string Parameter9Value { get; set; } - - /// Parameter name - public string Parameter10Name { get; set; } - - /// Parameter value - public string Parameter10Value { get; set; } - - /// Parameter name - public string Parameter11Name { get; set; } - - /// Parameter value - public string Parameter11Value { get; set; } - - /// Parameter name - public string Parameter12Name { get; set; } - - /// Parameter value - public string Parameter12Value { get; set; } - - /// Parameter name - public string Parameter13Name { get; set; } - - /// Parameter value - public string Parameter13Value { get; set; } - - /// Parameter name - public string Parameter14Name { get; set; } - - /// Parameter value - public string Parameter14Value { get; set; } - - /// Parameter name - public string Parameter15Name { get; set; } - - /// Parameter value - public string Parameter15Value { get; set; } - - /// Parameter name - public string Parameter16Name { get; set; } - - /// Parameter value - public string Parameter16Value { get; set; } - - /// Parameter name - public string Parameter17Name { get; set; } - - /// Parameter value - public string Parameter17Value { get; set; } - - /// Parameter name - public string Parameter18Name { get; set; } - - /// Parameter value - public string Parameter18Value { get; set; } - - /// Parameter name - public string Parameter19Name { get; set; } - - /// Parameter value - public string Parameter19Value { get; set; } - - /// Parameter name - public string Parameter20Name { get; set; } - - /// Parameter value - public string Parameter20Value { get; set; } - - /// Parameter name - public string Parameter21Name { get; set; } - - /// Parameter value - public string Parameter21Value { get; set; } - - /// Parameter name - public string Parameter22Name { get; set; } - - /// Parameter value - public string Parameter22Value { get; set; } - - /// Parameter name - public string Parameter23Name { get; set; } - - /// Parameter value - public string Parameter23Value { get; set; } - - /// Parameter name - public string Parameter24Name { get; set; } - - /// Parameter value - public string Parameter24Value { get; set; } - - /// Parameter name - public string Parameter25Name { get; set; } - - /// Parameter value - public string Parameter25Value { get; set; } - - /// Parameter name - public string Parameter26Name { get; set; } - - /// Parameter value - public string Parameter26Value { get; set; } - - /// Parameter name - public string Parameter27Name { get; set; } - - /// Parameter value - public string Parameter27Value { get; set; } - - /// Parameter name - public string Parameter28Name { get; set; } - - /// Parameter value - public string Parameter28Value { get; set; } - - /// Parameter name - public string Parameter29Name { get; set; } - - /// Parameter value - public string Parameter29Value { get; set; } - - /// Parameter name - public string Parameter30Name { get; set; } - - /// Parameter value - public string Parameter30Value { get; set; } - - /// Parameter name - public string Parameter31Name { get; set; } - - /// Parameter value - public string Parameter31Value { get; set; } - - /// Parameter name - public string Parameter32Name { get; set; } - - /// Parameter value - public string Parameter32Value { get; set; } - - /// Parameter name - public string Parameter33Name { get; set; } - - /// Parameter value - public string Parameter33Value { get; set; } - - /// Parameter name - public string Parameter34Name { get; set; } - - /// Parameter value - public string Parameter34Value { get; set; } - - /// Parameter name - public string Parameter35Name { get; set; } - - /// Parameter value - public string Parameter35Value { get; set; } - - /// Parameter name - public string Parameter36Name { get; set; } - - /// Parameter value - public string Parameter36Value { get; set; } - - /// Parameter name - public string Parameter37Name { get; set; } - - /// Parameter value - public string Parameter37Value { get; set; } - - /// Parameter name - public string Parameter38Name { get; set; } - - /// Parameter value - public string Parameter38Value { get; set; } - - /// Parameter name - public string Parameter39Name { get; set; } - - /// Parameter value - public string Parameter39Value { get; set; } - - /// Parameter name - public string Parameter40Name { get; set; } - - /// Parameter value - public string Parameter40Value { get; set; } - - /// Parameter name - public string Parameter41Name { get; set; } - - /// Parameter value - public string Parameter41Value { get; set; } - - /// Parameter name - public string Parameter42Name { get; set; } - - /// Parameter value - public string Parameter42Value { get; set; } - - /// Parameter name - public string Parameter43Name { get; set; } - - /// Parameter value - public string Parameter43Value { get; set; } - - /// Parameter name - public string Parameter44Name { get; set; } - - /// Parameter value - public string Parameter44Value { get; set; } - - /// Parameter name - public string Parameter45Name { get; set; } - - /// Parameter value - public string Parameter45Value { get; set; } - - /// Parameter name - public string Parameter46Name { get; set; } - - /// Parameter value - public string Parameter46Value { get; set; } - - /// Parameter name - public string Parameter47Name { get; set; } - - /// Parameter value - public string Parameter47Value { get; set; } - - /// Parameter name - public string Parameter48Name { get; set; } - - /// Parameter value - public string Parameter48Value { get; set; } - - /// Parameter name - public string Parameter49Name { get; set; } - - /// Parameter value - public string Parameter49Value { get; set; } - - /// Parameter name - public string Parameter50Name { get; set; } - - /// Parameter value - public string Parameter50Value { get; set; } - - /// Parameter name - public string Parameter51Name { get; set; } - - /// Parameter value - public string Parameter51Value { get; set; } - - /// Parameter name - public string Parameter52Name { get; set; } - - /// Parameter value - public string Parameter52Value { get; set; } - - /// Parameter name - public string Parameter53Name { get; set; } - - /// Parameter value - public string Parameter53Value { get; set; } - - /// Parameter name - public string Parameter54Name { get; set; } - - /// Parameter value - public string Parameter54Value { get; set; } - - /// Parameter name - public string Parameter55Name { get; set; } - - /// Parameter value - public string Parameter55Value { get; set; } - - /// Parameter name - public string Parameter56Name { get; set; } - - /// Parameter value - public string Parameter56Value { get; set; } - - /// Parameter name - public string Parameter57Name { get; set; } - - /// Parameter value - public string Parameter57Value { get; set; } - - /// Parameter name - public string Parameter58Name { get; set; } - - /// Parameter value - public string Parameter58Value { get; set; } - - /// Parameter name - public string Parameter59Name { get; set; } - - /// Parameter value - public string Parameter59Value { get; set; } - - /// Parameter name - public string Parameter60Name { get; set; } - - /// Parameter value - public string Parameter60Value { get; set; } - - /// Parameter name - public string Parameter61Name { get; set; } - - /// Parameter value - public string Parameter61Value { get; set; } - - /// Parameter name - public string Parameter62Name { get; set; } - - /// Parameter value - public string Parameter62Value { get; set; } - - /// Parameter name - public string Parameter63Name { get; set; } - - /// Parameter value - public string Parameter63Value { get; set; } - - /// Parameter name - public string Parameter64Name { get; set; } - - /// Parameter value - public string Parameter64Value { get; set; } - - /// Parameter name - public string Parameter65Name { get; set; } - - /// Parameter value - public string Parameter65Value { get; set; } - - /// Parameter name - public string Parameter66Name { get; set; } - - /// Parameter value - public string Parameter66Value { get; set; } - - /// Parameter name - public string Parameter67Name { get; set; } - - /// Parameter value - public string Parameter67Value { get; set; } - - /// Parameter name - public string Parameter68Name { get; set; } - - /// Parameter value - public string Parameter68Value { get; set; } - - /// Parameter name - public string Parameter69Name { get; set; } - - /// Parameter value - public string Parameter69Value { get; set; } - - /// Parameter name - public string Parameter70Name { get; set; } - - /// Parameter value - public string Parameter70Value { get; set; } - - /// Parameter name - public string Parameter71Name { get; set; } - - /// Parameter value - public string Parameter71Value { get; set; } - - /// Parameter name - public string Parameter72Name { get; set; } - - /// Parameter value - public string Parameter72Value { get; set; } - - /// Parameter name - public string Parameter73Name { get; set; } - - /// Parameter value - public string Parameter73Value { get; set; } - - /// Parameter name - public string Parameter74Name { get; set; } - - /// Parameter value - public string Parameter74Value { get; set; } - - /// Parameter name - public string Parameter75Name { get; set; } - - /// Parameter value - public string Parameter75Value { get; set; } - - /// Parameter name - public string Parameter76Name { get; set; } - - /// Parameter value - public string Parameter76Value { get; set; } - - /// Parameter name - public string Parameter77Name { get; set; } - - /// Parameter value - public string Parameter77Value { get; set; } - - /// Parameter name - public string Parameter78Name { get; set; } - - /// Parameter value - public string Parameter78Value { get; set; } - - /// Parameter name - public string Parameter79Name { get; set; } - - /// Parameter value - public string Parameter79Value { get; set; } - - /// Parameter name - public string Parameter80Name { get; set; } - - /// Parameter value - public string Parameter80Value { get; set; } - - /// Parameter name - public string Parameter81Name { get; set; } - - /// Parameter value - public string Parameter81Value { get; set; } - - /// Parameter name - public string Parameter82Name { get; set; } - - /// Parameter value - public string Parameter82Value { get; set; } - - /// Parameter name - public string Parameter83Name { get; set; } - - /// Parameter value - public string Parameter83Value { get; set; } - - /// Parameter name - public string Parameter84Name { get; set; } - - /// Parameter value - public string Parameter84Value { get; set; } - - /// Parameter name - public string Parameter85Name { get; set; } - - /// Parameter value - public string Parameter85Value { get; set; } - - /// Parameter name - public string Parameter86Name { get; set; } - - /// Parameter value - public string Parameter86Value { get; set; } - - /// Parameter name - public string Parameter87Name { get; set; } - - /// Parameter value - public string Parameter87Value { get; set; } - - /// Parameter name - public string Parameter88Name { get; set; } - - /// Parameter value - public string Parameter88Value { get; set; } - - /// Parameter name - public string Parameter89Name { get; set; } - - /// Parameter value - public string Parameter89Value { get; set; } - - /// Parameter name - public string Parameter90Name { get; set; } - - /// Parameter value - public string Parameter90Value { get; set; } - - /// Parameter name - public string Parameter91Name { get; set; } - - /// Parameter value - public string Parameter91Value { get; set; } - - /// Parameter name - public string Parameter92Name { get; set; } - - /// Parameter value - public string Parameter92Value { get; set; } - - /// Parameter name - public string Parameter93Name { get; set; } - - /// Parameter value - public string Parameter93Value { get; set; } - - /// Parameter name - public string Parameter94Name { get; set; } - - /// Parameter value - public string Parameter94Value { get; set; } - - /// Parameter name - public string Parameter95Name { get; set; } - - /// Parameter value - public string Parameter95Value { get; set; } - - /// Parameter name - public string Parameter96Name { get; set; } - - /// Parameter value - public string Parameter96Value { get; set; } - - /// Parameter name - public string Parameter97Name { get; set; } - - /// Parameter value - public string Parameter97Value { get; set; } - - /// Parameter name - public string Parameter98Name { get; set; } - - /// Parameter value - public string Parameter98Value { get; set; } - - /// Parameter name - public string Parameter99Name { get; set; } - - /// Parameter value - public string Parameter99Value { get; set; } - /// Construct a new CreateRealtimeTranscriptionOptions /// The SID of the [Call](https://www.twilio.com/docs/voice/api/call-resource) the Transcription resource is associated with. @@ -733,798 +139,6 @@ public List> GetParams() { p.Add(new KeyValuePair("EnableAutomaticPunctuation", EnableAutomaticPunctuation.Value.ToString().ToLower())); } - if (Parameter1Name != null) - { - p.Add(new KeyValuePair("Parameter1.Name", Parameter1Name)); - } - if (Parameter1Value != null) - { - p.Add(new KeyValuePair("Parameter1.Value", Parameter1Value)); - } - if (Parameter2Name != null) - { - p.Add(new KeyValuePair("Parameter2.Name", Parameter2Name)); - } - if (Parameter2Value != null) - { - p.Add(new KeyValuePair("Parameter2.Value", Parameter2Value)); - } - if (Parameter3Name != null) - { - p.Add(new KeyValuePair("Parameter3.Name", Parameter3Name)); - } - if (Parameter3Value != null) - { - p.Add(new KeyValuePair("Parameter3.Value", Parameter3Value)); - } - if (Parameter4Name != null) - { - p.Add(new KeyValuePair("Parameter4.Name", Parameter4Name)); - } - if (Parameter4Value != null) - { - p.Add(new KeyValuePair("Parameter4.Value", Parameter4Value)); - } - if (Parameter5Name != null) - { - p.Add(new KeyValuePair("Parameter5.Name", Parameter5Name)); - } - if (Parameter5Value != null) - { - p.Add(new KeyValuePair("Parameter5.Value", Parameter5Value)); - } - if (Parameter6Name != null) - { - p.Add(new KeyValuePair("Parameter6.Name", Parameter6Name)); - } - if (Parameter6Value != null) - { - p.Add(new KeyValuePair("Parameter6.Value", Parameter6Value)); - } - if (Parameter7Name != null) - { - p.Add(new KeyValuePair("Parameter7.Name", Parameter7Name)); - } - if (Parameter7Value != null) - { - p.Add(new KeyValuePair("Parameter7.Value", Parameter7Value)); - } - if (Parameter8Name != null) - { - p.Add(new KeyValuePair("Parameter8.Name", Parameter8Name)); - } - if (Parameter8Value != null) - { - p.Add(new KeyValuePair("Parameter8.Value", Parameter8Value)); - } - if (Parameter9Name != null) - { - p.Add(new KeyValuePair("Parameter9.Name", Parameter9Name)); - } - if (Parameter9Value != null) - { - p.Add(new KeyValuePair("Parameter9.Value", Parameter9Value)); - } - if (Parameter10Name != null) - { - p.Add(new KeyValuePair("Parameter10.Name", Parameter10Name)); - } - if (Parameter10Value != null) - { - p.Add(new KeyValuePair("Parameter10.Value", Parameter10Value)); - } - if (Parameter11Name != null) - { - p.Add(new KeyValuePair("Parameter11.Name", Parameter11Name)); - } - if (Parameter11Value != null) - { - p.Add(new KeyValuePair("Parameter11.Value", Parameter11Value)); - } - if (Parameter12Name != null) - { - p.Add(new KeyValuePair("Parameter12.Name", Parameter12Name)); - } - if (Parameter12Value != null) - { - p.Add(new KeyValuePair("Parameter12.Value", Parameter12Value)); - } - if (Parameter13Name != null) - { - p.Add(new KeyValuePair("Parameter13.Name", Parameter13Name)); - } - if (Parameter13Value != null) - { - p.Add(new KeyValuePair("Parameter13.Value", Parameter13Value)); - } - if (Parameter14Name != null) - { - p.Add(new KeyValuePair("Parameter14.Name", Parameter14Name)); - } - if (Parameter14Value != null) - { - p.Add(new KeyValuePair("Parameter14.Value", Parameter14Value)); - } - if (Parameter15Name != null) - { - p.Add(new KeyValuePair("Parameter15.Name", Parameter15Name)); - } - if (Parameter15Value != null) - { - p.Add(new KeyValuePair("Parameter15.Value", Parameter15Value)); - } - if (Parameter16Name != null) - { - p.Add(new KeyValuePair("Parameter16.Name", Parameter16Name)); - } - if (Parameter16Value != null) - { - p.Add(new KeyValuePair("Parameter16.Value", Parameter16Value)); - } - if (Parameter17Name != null) - { - p.Add(new KeyValuePair("Parameter17.Name", Parameter17Name)); - } - if (Parameter17Value != null) - { - p.Add(new KeyValuePair("Parameter17.Value", Parameter17Value)); - } - if (Parameter18Name != null) - { - p.Add(new KeyValuePair("Parameter18.Name", Parameter18Name)); - } - if (Parameter18Value != null) - { - p.Add(new KeyValuePair("Parameter18.Value", Parameter18Value)); - } - if (Parameter19Name != null) - { - p.Add(new KeyValuePair("Parameter19.Name", Parameter19Name)); - } - if (Parameter19Value != null) - { - p.Add(new KeyValuePair("Parameter19.Value", Parameter19Value)); - } - if (Parameter20Name != null) - { - p.Add(new KeyValuePair("Parameter20.Name", Parameter20Name)); - } - if (Parameter20Value != null) - { - p.Add(new KeyValuePair("Parameter20.Value", Parameter20Value)); - } - if (Parameter21Name != null) - { - p.Add(new KeyValuePair("Parameter21.Name", Parameter21Name)); - } - if (Parameter21Value != null) - { - p.Add(new KeyValuePair("Parameter21.Value", Parameter21Value)); - } - if (Parameter22Name != null) - { - p.Add(new KeyValuePair("Parameter22.Name", Parameter22Name)); - } - if (Parameter22Value != null) - { - p.Add(new KeyValuePair("Parameter22.Value", Parameter22Value)); - } - if (Parameter23Name != null) - { - p.Add(new KeyValuePair("Parameter23.Name", Parameter23Name)); - } - if (Parameter23Value != null) - { - p.Add(new KeyValuePair("Parameter23.Value", Parameter23Value)); - } - if (Parameter24Name != null) - { - p.Add(new KeyValuePair("Parameter24.Name", Parameter24Name)); - } - if (Parameter24Value != null) - { - p.Add(new KeyValuePair("Parameter24.Value", Parameter24Value)); - } - if (Parameter25Name != null) - { - p.Add(new KeyValuePair("Parameter25.Name", Parameter25Name)); - } - if (Parameter25Value != null) - { - p.Add(new KeyValuePair("Parameter25.Value", Parameter25Value)); - } - if (Parameter26Name != null) - { - p.Add(new KeyValuePair("Parameter26.Name", Parameter26Name)); - } - if (Parameter26Value != null) - { - p.Add(new KeyValuePair("Parameter26.Value", Parameter26Value)); - } - if (Parameter27Name != null) - { - p.Add(new KeyValuePair("Parameter27.Name", Parameter27Name)); - } - if (Parameter27Value != null) - { - p.Add(new KeyValuePair("Parameter27.Value", Parameter27Value)); - } - if (Parameter28Name != null) - { - p.Add(new KeyValuePair("Parameter28.Name", Parameter28Name)); - } - if (Parameter28Value != null) - { - p.Add(new KeyValuePair("Parameter28.Value", Parameter28Value)); - } - if (Parameter29Name != null) - { - p.Add(new KeyValuePair("Parameter29.Name", Parameter29Name)); - } - if (Parameter29Value != null) - { - p.Add(new KeyValuePair("Parameter29.Value", Parameter29Value)); - } - if (Parameter30Name != null) - { - p.Add(new KeyValuePair("Parameter30.Name", Parameter30Name)); - } - if (Parameter30Value != null) - { - p.Add(new KeyValuePair("Parameter30.Value", Parameter30Value)); - } - if (Parameter31Name != null) - { - p.Add(new KeyValuePair("Parameter31.Name", Parameter31Name)); - } - if (Parameter31Value != null) - { - p.Add(new KeyValuePair("Parameter31.Value", Parameter31Value)); - } - if (Parameter32Name != null) - { - p.Add(new KeyValuePair("Parameter32.Name", Parameter32Name)); - } - if (Parameter32Value != null) - { - p.Add(new KeyValuePair("Parameter32.Value", Parameter32Value)); - } - if (Parameter33Name != null) - { - p.Add(new KeyValuePair("Parameter33.Name", Parameter33Name)); - } - if (Parameter33Value != null) - { - p.Add(new KeyValuePair("Parameter33.Value", Parameter33Value)); - } - if (Parameter34Name != null) - { - p.Add(new KeyValuePair("Parameter34.Name", Parameter34Name)); - } - if (Parameter34Value != null) - { - p.Add(new KeyValuePair("Parameter34.Value", Parameter34Value)); - } - if (Parameter35Name != null) - { - p.Add(new KeyValuePair("Parameter35.Name", Parameter35Name)); - } - if (Parameter35Value != null) - { - p.Add(new KeyValuePair("Parameter35.Value", Parameter35Value)); - } - if (Parameter36Name != null) - { - p.Add(new KeyValuePair("Parameter36.Name", Parameter36Name)); - } - if (Parameter36Value != null) - { - p.Add(new KeyValuePair("Parameter36.Value", Parameter36Value)); - } - if (Parameter37Name != null) - { - p.Add(new KeyValuePair("Parameter37.Name", Parameter37Name)); - } - if (Parameter37Value != null) - { - p.Add(new KeyValuePair("Parameter37.Value", Parameter37Value)); - } - if (Parameter38Name != null) - { - p.Add(new KeyValuePair("Parameter38.Name", Parameter38Name)); - } - if (Parameter38Value != null) - { - p.Add(new KeyValuePair("Parameter38.Value", Parameter38Value)); - } - if (Parameter39Name != null) - { - p.Add(new KeyValuePair("Parameter39.Name", Parameter39Name)); - } - if (Parameter39Value != null) - { - p.Add(new KeyValuePair("Parameter39.Value", Parameter39Value)); - } - if (Parameter40Name != null) - { - p.Add(new KeyValuePair("Parameter40.Name", Parameter40Name)); - } - if (Parameter40Value != null) - { - p.Add(new KeyValuePair("Parameter40.Value", Parameter40Value)); - } - if (Parameter41Name != null) - { - p.Add(new KeyValuePair("Parameter41.Name", Parameter41Name)); - } - if (Parameter41Value != null) - { - p.Add(new KeyValuePair("Parameter41.Value", Parameter41Value)); - } - if (Parameter42Name != null) - { - p.Add(new KeyValuePair("Parameter42.Name", Parameter42Name)); - } - if (Parameter42Value != null) - { - p.Add(new KeyValuePair("Parameter42.Value", Parameter42Value)); - } - if (Parameter43Name != null) - { - p.Add(new KeyValuePair("Parameter43.Name", Parameter43Name)); - } - if (Parameter43Value != null) - { - p.Add(new KeyValuePair("Parameter43.Value", Parameter43Value)); - } - if (Parameter44Name != null) - { - p.Add(new KeyValuePair("Parameter44.Name", Parameter44Name)); - } - if (Parameter44Value != null) - { - p.Add(new KeyValuePair("Parameter44.Value", Parameter44Value)); - } - if (Parameter45Name != null) - { - p.Add(new KeyValuePair("Parameter45.Name", Parameter45Name)); - } - if (Parameter45Value != null) - { - p.Add(new KeyValuePair("Parameter45.Value", Parameter45Value)); - } - if (Parameter46Name != null) - { - p.Add(new KeyValuePair("Parameter46.Name", Parameter46Name)); - } - if (Parameter46Value != null) - { - p.Add(new KeyValuePair("Parameter46.Value", Parameter46Value)); - } - if (Parameter47Name != null) - { - p.Add(new KeyValuePair("Parameter47.Name", Parameter47Name)); - } - if (Parameter47Value != null) - { - p.Add(new KeyValuePair("Parameter47.Value", Parameter47Value)); - } - if (Parameter48Name != null) - { - p.Add(new KeyValuePair("Parameter48.Name", Parameter48Name)); - } - if (Parameter48Value != null) - { - p.Add(new KeyValuePair("Parameter48.Value", Parameter48Value)); - } - if (Parameter49Name != null) - { - p.Add(new KeyValuePair("Parameter49.Name", Parameter49Name)); - } - if (Parameter49Value != null) - { - p.Add(new KeyValuePair("Parameter49.Value", Parameter49Value)); - } - if (Parameter50Name != null) - { - p.Add(new KeyValuePair("Parameter50.Name", Parameter50Name)); - } - if (Parameter50Value != null) - { - p.Add(new KeyValuePair("Parameter50.Value", Parameter50Value)); - } - if (Parameter51Name != null) - { - p.Add(new KeyValuePair("Parameter51.Name", Parameter51Name)); - } - if (Parameter51Value != null) - { - p.Add(new KeyValuePair("Parameter51.Value", Parameter51Value)); - } - if (Parameter52Name != null) - { - p.Add(new KeyValuePair("Parameter52.Name", Parameter52Name)); - } - if (Parameter52Value != null) - { - p.Add(new KeyValuePair("Parameter52.Value", Parameter52Value)); - } - if (Parameter53Name != null) - { - p.Add(new KeyValuePair("Parameter53.Name", Parameter53Name)); - } - if (Parameter53Value != null) - { - p.Add(new KeyValuePair("Parameter53.Value", Parameter53Value)); - } - if (Parameter54Name != null) - { - p.Add(new KeyValuePair("Parameter54.Name", Parameter54Name)); - } - if (Parameter54Value != null) - { - p.Add(new KeyValuePair("Parameter54.Value", Parameter54Value)); - } - if (Parameter55Name != null) - { - p.Add(new KeyValuePair("Parameter55.Name", Parameter55Name)); - } - if (Parameter55Value != null) - { - p.Add(new KeyValuePair("Parameter55.Value", Parameter55Value)); - } - if (Parameter56Name != null) - { - p.Add(new KeyValuePair("Parameter56.Name", Parameter56Name)); - } - if (Parameter56Value != null) - { - p.Add(new KeyValuePair("Parameter56.Value", Parameter56Value)); - } - if (Parameter57Name != null) - { - p.Add(new KeyValuePair("Parameter57.Name", Parameter57Name)); - } - if (Parameter57Value != null) - { - p.Add(new KeyValuePair("Parameter57.Value", Parameter57Value)); - } - if (Parameter58Name != null) - { - p.Add(new KeyValuePair("Parameter58.Name", Parameter58Name)); - } - if (Parameter58Value != null) - { - p.Add(new KeyValuePair("Parameter58.Value", Parameter58Value)); - } - if (Parameter59Name != null) - { - p.Add(new KeyValuePair("Parameter59.Name", Parameter59Name)); - } - if (Parameter59Value != null) - { - p.Add(new KeyValuePair("Parameter59.Value", Parameter59Value)); - } - if (Parameter60Name != null) - { - p.Add(new KeyValuePair("Parameter60.Name", Parameter60Name)); - } - if (Parameter60Value != null) - { - p.Add(new KeyValuePair("Parameter60.Value", Parameter60Value)); - } - if (Parameter61Name != null) - { - p.Add(new KeyValuePair("Parameter61.Name", Parameter61Name)); - } - if (Parameter61Value != null) - { - p.Add(new KeyValuePair("Parameter61.Value", Parameter61Value)); - } - if (Parameter62Name != null) - { - p.Add(new KeyValuePair("Parameter62.Name", Parameter62Name)); - } - if (Parameter62Value != null) - { - p.Add(new KeyValuePair("Parameter62.Value", Parameter62Value)); - } - if (Parameter63Name != null) - { - p.Add(new KeyValuePair("Parameter63.Name", Parameter63Name)); - } - if (Parameter63Value != null) - { - p.Add(new KeyValuePair("Parameter63.Value", Parameter63Value)); - } - if (Parameter64Name != null) - { - p.Add(new KeyValuePair("Parameter64.Name", Parameter64Name)); - } - if (Parameter64Value != null) - { - p.Add(new KeyValuePair("Parameter64.Value", Parameter64Value)); - } - if (Parameter65Name != null) - { - p.Add(new KeyValuePair("Parameter65.Name", Parameter65Name)); - } - if (Parameter65Value != null) - { - p.Add(new KeyValuePair("Parameter65.Value", Parameter65Value)); - } - if (Parameter66Name != null) - { - p.Add(new KeyValuePair("Parameter66.Name", Parameter66Name)); - } - if (Parameter66Value != null) - { - p.Add(new KeyValuePair("Parameter66.Value", Parameter66Value)); - } - if (Parameter67Name != null) - { - p.Add(new KeyValuePair("Parameter67.Name", Parameter67Name)); - } - if (Parameter67Value != null) - { - p.Add(new KeyValuePair("Parameter67.Value", Parameter67Value)); - } - if (Parameter68Name != null) - { - p.Add(new KeyValuePair("Parameter68.Name", Parameter68Name)); - } - if (Parameter68Value != null) - { - p.Add(new KeyValuePair("Parameter68.Value", Parameter68Value)); - } - if (Parameter69Name != null) - { - p.Add(new KeyValuePair("Parameter69.Name", Parameter69Name)); - } - if (Parameter69Value != null) - { - p.Add(new KeyValuePair("Parameter69.Value", Parameter69Value)); - } - if (Parameter70Name != null) - { - p.Add(new KeyValuePair("Parameter70.Name", Parameter70Name)); - } - if (Parameter70Value != null) - { - p.Add(new KeyValuePair("Parameter70.Value", Parameter70Value)); - } - if (Parameter71Name != null) - { - p.Add(new KeyValuePair("Parameter71.Name", Parameter71Name)); - } - if (Parameter71Value != null) - { - p.Add(new KeyValuePair("Parameter71.Value", Parameter71Value)); - } - if (Parameter72Name != null) - { - p.Add(new KeyValuePair("Parameter72.Name", Parameter72Name)); - } - if (Parameter72Value != null) - { - p.Add(new KeyValuePair("Parameter72.Value", Parameter72Value)); - } - if (Parameter73Name != null) - { - p.Add(new KeyValuePair("Parameter73.Name", Parameter73Name)); - } - if (Parameter73Value != null) - { - p.Add(new KeyValuePair("Parameter73.Value", Parameter73Value)); - } - if (Parameter74Name != null) - { - p.Add(new KeyValuePair("Parameter74.Name", Parameter74Name)); - } - if (Parameter74Value != null) - { - p.Add(new KeyValuePair("Parameter74.Value", Parameter74Value)); - } - if (Parameter75Name != null) - { - p.Add(new KeyValuePair("Parameter75.Name", Parameter75Name)); - } - if (Parameter75Value != null) - { - p.Add(new KeyValuePair("Parameter75.Value", Parameter75Value)); - } - if (Parameter76Name != null) - { - p.Add(new KeyValuePair("Parameter76.Name", Parameter76Name)); - } - if (Parameter76Value != null) - { - p.Add(new KeyValuePair("Parameter76.Value", Parameter76Value)); - } - if (Parameter77Name != null) - { - p.Add(new KeyValuePair("Parameter77.Name", Parameter77Name)); - } - if (Parameter77Value != null) - { - p.Add(new KeyValuePair("Parameter77.Value", Parameter77Value)); - } - if (Parameter78Name != null) - { - p.Add(new KeyValuePair("Parameter78.Name", Parameter78Name)); - } - if (Parameter78Value != null) - { - p.Add(new KeyValuePair("Parameter78.Value", Parameter78Value)); - } - if (Parameter79Name != null) - { - p.Add(new KeyValuePair("Parameter79.Name", Parameter79Name)); - } - if (Parameter79Value != null) - { - p.Add(new KeyValuePair("Parameter79.Value", Parameter79Value)); - } - if (Parameter80Name != null) - { - p.Add(new KeyValuePair("Parameter80.Name", Parameter80Name)); - } - if (Parameter80Value != null) - { - p.Add(new KeyValuePair("Parameter80.Value", Parameter80Value)); - } - if (Parameter81Name != null) - { - p.Add(new KeyValuePair("Parameter81.Name", Parameter81Name)); - } - if (Parameter81Value != null) - { - p.Add(new KeyValuePair("Parameter81.Value", Parameter81Value)); - } - if (Parameter82Name != null) - { - p.Add(new KeyValuePair("Parameter82.Name", Parameter82Name)); - } - if (Parameter82Value != null) - { - p.Add(new KeyValuePair("Parameter82.Value", Parameter82Value)); - } - if (Parameter83Name != null) - { - p.Add(new KeyValuePair("Parameter83.Name", Parameter83Name)); - } - if (Parameter83Value != null) - { - p.Add(new KeyValuePair("Parameter83.Value", Parameter83Value)); - } - if (Parameter84Name != null) - { - p.Add(new KeyValuePair("Parameter84.Name", Parameter84Name)); - } - if (Parameter84Value != null) - { - p.Add(new KeyValuePair("Parameter84.Value", Parameter84Value)); - } - if (Parameter85Name != null) - { - p.Add(new KeyValuePair("Parameter85.Name", Parameter85Name)); - } - if (Parameter85Value != null) - { - p.Add(new KeyValuePair("Parameter85.Value", Parameter85Value)); - } - if (Parameter86Name != null) - { - p.Add(new KeyValuePair("Parameter86.Name", Parameter86Name)); - } - if (Parameter86Value != null) - { - p.Add(new KeyValuePair("Parameter86.Value", Parameter86Value)); - } - if (Parameter87Name != null) - { - p.Add(new KeyValuePair("Parameter87.Name", Parameter87Name)); - } - if (Parameter87Value != null) - { - p.Add(new KeyValuePair("Parameter87.Value", Parameter87Value)); - } - if (Parameter88Name != null) - { - p.Add(new KeyValuePair("Parameter88.Name", Parameter88Name)); - } - if (Parameter88Value != null) - { - p.Add(new KeyValuePair("Parameter88.Value", Parameter88Value)); - } - if (Parameter89Name != null) - { - p.Add(new KeyValuePair("Parameter89.Name", Parameter89Name)); - } - if (Parameter89Value != null) - { - p.Add(new KeyValuePair("Parameter89.Value", Parameter89Value)); - } - if (Parameter90Name != null) - { - p.Add(new KeyValuePair("Parameter90.Name", Parameter90Name)); - } - if (Parameter90Value != null) - { - p.Add(new KeyValuePair("Parameter90.Value", Parameter90Value)); - } - if (Parameter91Name != null) - { - p.Add(new KeyValuePair("Parameter91.Name", Parameter91Name)); - } - if (Parameter91Value != null) - { - p.Add(new KeyValuePair("Parameter91.Value", Parameter91Value)); - } - if (Parameter92Name != null) - { - p.Add(new KeyValuePair("Parameter92.Name", Parameter92Name)); - } - if (Parameter92Value != null) - { - p.Add(new KeyValuePair("Parameter92.Value", Parameter92Value)); - } - if (Parameter93Name != null) - { - p.Add(new KeyValuePair("Parameter93.Name", Parameter93Name)); - } - if (Parameter93Value != null) - { - p.Add(new KeyValuePair("Parameter93.Value", Parameter93Value)); - } - if (Parameter94Name != null) - { - p.Add(new KeyValuePair("Parameter94.Name", Parameter94Name)); - } - if (Parameter94Value != null) - { - p.Add(new KeyValuePair("Parameter94.Value", Parameter94Value)); - } - if (Parameter95Name != null) - { - p.Add(new KeyValuePair("Parameter95.Name", Parameter95Name)); - } - if (Parameter95Value != null) - { - p.Add(new KeyValuePair("Parameter95.Value", Parameter95Value)); - } - if (Parameter96Name != null) - { - p.Add(new KeyValuePair("Parameter96.Name", Parameter96Name)); - } - if (Parameter96Value != null) - { - p.Add(new KeyValuePair("Parameter96.Value", Parameter96Value)); - } - if (Parameter97Name != null) - { - p.Add(new KeyValuePair("Parameter97.Name", Parameter97Name)); - } - if (Parameter97Value != null) - { - p.Add(new KeyValuePair("Parameter97.Value", Parameter97Value)); - } - if (Parameter98Name != null) - { - p.Add(new KeyValuePair("Parameter98.Name", Parameter98Name)); - } - if (Parameter98Value != null) - { - p.Add(new KeyValuePair("Parameter98.Value", Parameter98Value)); - } - if (Parameter99Name != null) - { - p.Add(new KeyValuePair("Parameter99.Name", Parameter99Name)); - } - if (Parameter99Value != null) - { - p.Add(new KeyValuePair("Parameter99.Value", Parameter99Value)); - } return p; } diff --git a/src/Twilio/Rest/Api/V2010/Account/Call/TranscriptionResource.cs b/src/Twilio/Rest/Api/V2010/Account/Call/TranscriptionResource.cs index 59640ecea..80d3b3072 100644 --- a/src/Twilio/Rest/Api/V2010/Account/Call/TranscriptionResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/Call/TranscriptionResource.cs @@ -125,211 +125,13 @@ public static async System.Threading.Tasks.Task CreateAsy /// The http method for the status_callback (one of GET, POST). /// Friendly name given to the Inbound Track /// Friendly name given to the Outbound Track - /// Indicates if partial results are going to be send to the customer + /// Indicates if partial results are going to be sent to the customer /// Language code used by the transcription engine, specified in [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) format - /// Definition of the transcription engine to be used, between those supported by Twilio + /// Definition of the transcription engine to be used, among those supported by Twilio /// indicates if the server will attempt to filter out profanities, replacing all but the initial character in each filtered word with asterisks - /// Recognition model used by the transcription engine, between those supported by the provider + /// Recognition model used by the transcription engine, among those supported by the provider /// A Phrase contains words and phrase \\\"hints\\\" so that the speech recognition engine is more likely to recognize them. - /// The provider will adds punctuation to recognition result hypotheses - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value + /// The provider will add punctuation to recognition result /// Client to make requests to Twilio /// A single instance of Transcription public static TranscriptionResource Create( @@ -348,207 +150,9 @@ public static TranscriptionResource Create( string speechModel = null, string hints = null, bool? enableAutomaticPunctuation = null, - string parameter1Name = null, - string parameter1Value = null, - string parameter2Name = null, - string parameter2Value = null, - string parameter3Name = null, - string parameter3Value = null, - string parameter4Name = null, - string parameter4Value = null, - string parameter5Name = null, - string parameter5Value = null, - string parameter6Name = null, - string parameter6Value = null, - string parameter7Name = null, - string parameter7Value = null, - string parameter8Name = null, - string parameter8Value = null, - string parameter9Name = null, - string parameter9Value = null, - string parameter10Name = null, - string parameter10Value = null, - string parameter11Name = null, - string parameter11Value = null, - string parameter12Name = null, - string parameter12Value = null, - string parameter13Name = null, - string parameter13Value = null, - string parameter14Name = null, - string parameter14Value = null, - string parameter15Name = null, - string parameter15Value = null, - string parameter16Name = null, - string parameter16Value = null, - string parameter17Name = null, - string parameter17Value = null, - string parameter18Name = null, - string parameter18Value = null, - string parameter19Name = null, - string parameter19Value = null, - string parameter20Name = null, - string parameter20Value = null, - string parameter21Name = null, - string parameter21Value = null, - string parameter22Name = null, - string parameter22Value = null, - string parameter23Name = null, - string parameter23Value = null, - string parameter24Name = null, - string parameter24Value = null, - string parameter25Name = null, - string parameter25Value = null, - string parameter26Name = null, - string parameter26Value = null, - string parameter27Name = null, - string parameter27Value = null, - string parameter28Name = null, - string parameter28Value = null, - string parameter29Name = null, - string parameter29Value = null, - string parameter30Name = null, - string parameter30Value = null, - string parameter31Name = null, - string parameter31Value = null, - string parameter32Name = null, - string parameter32Value = null, - string parameter33Name = null, - string parameter33Value = null, - string parameter34Name = null, - string parameter34Value = null, - string parameter35Name = null, - string parameter35Value = null, - string parameter36Name = null, - string parameter36Value = null, - string parameter37Name = null, - string parameter37Value = null, - string parameter38Name = null, - string parameter38Value = null, - string parameter39Name = null, - string parameter39Value = null, - string parameter40Name = null, - string parameter40Value = null, - string parameter41Name = null, - string parameter41Value = null, - string parameter42Name = null, - string parameter42Value = null, - string parameter43Name = null, - string parameter43Value = null, - string parameter44Name = null, - string parameter44Value = null, - string parameter45Name = null, - string parameter45Value = null, - string parameter46Name = null, - string parameter46Value = null, - string parameter47Name = null, - string parameter47Value = null, - string parameter48Name = null, - string parameter48Value = null, - string parameter49Name = null, - string parameter49Value = null, - string parameter50Name = null, - string parameter50Value = null, - string parameter51Name = null, - string parameter51Value = null, - string parameter52Name = null, - string parameter52Value = null, - string parameter53Name = null, - string parameter53Value = null, - string parameter54Name = null, - string parameter54Value = null, - string parameter55Name = null, - string parameter55Value = null, - string parameter56Name = null, - string parameter56Value = null, - string parameter57Name = null, - string parameter57Value = null, - string parameter58Name = null, - string parameter58Value = null, - string parameter59Name = null, - string parameter59Value = null, - string parameter60Name = null, - string parameter60Value = null, - string parameter61Name = null, - string parameter61Value = null, - string parameter62Name = null, - string parameter62Value = null, - string parameter63Name = null, - string parameter63Value = null, - string parameter64Name = null, - string parameter64Value = null, - string parameter65Name = null, - string parameter65Value = null, - string parameter66Name = null, - string parameter66Value = null, - string parameter67Name = null, - string parameter67Value = null, - string parameter68Name = null, - string parameter68Value = null, - string parameter69Name = null, - string parameter69Value = null, - string parameter70Name = null, - string parameter70Value = null, - string parameter71Name = null, - string parameter71Value = null, - string parameter72Name = null, - string parameter72Value = null, - string parameter73Name = null, - string parameter73Value = null, - string parameter74Name = null, - string parameter74Value = null, - string parameter75Name = null, - string parameter75Value = null, - string parameter76Name = null, - string parameter76Value = null, - string parameter77Name = null, - string parameter77Value = null, - string parameter78Name = null, - string parameter78Value = null, - string parameter79Name = null, - string parameter79Value = null, - string parameter80Name = null, - string parameter80Value = null, - string parameter81Name = null, - string parameter81Value = null, - string parameter82Name = null, - string parameter82Value = null, - string parameter83Name = null, - string parameter83Value = null, - string parameter84Name = null, - string parameter84Value = null, - string parameter85Name = null, - string parameter85Value = null, - string parameter86Name = null, - string parameter86Value = null, - string parameter87Name = null, - string parameter87Value = null, - string parameter88Name = null, - string parameter88Value = null, - string parameter89Name = null, - string parameter89Value = null, - string parameter90Name = null, - string parameter90Value = null, - string parameter91Name = null, - string parameter91Value = null, - string parameter92Name = null, - string parameter92Value = null, - string parameter93Name = null, - string parameter93Value = null, - string parameter94Name = null, - string parameter94Value = null, - string parameter95Name = null, - string parameter95Value = null, - string parameter96Name = null, - string parameter96Value = null, - string parameter97Name = null, - string parameter97Value = null, - string parameter98Name = null, - string parameter98Value = null, - string parameter99Name = null, - string parameter99Value = null, ITwilioRestClient client = null) { - var options = new CreateTranscriptionOptions(pathCallSid){ PathAccountSid = pathAccountSid, Name = name, Track = track, StatusCallbackUrl = statusCallbackUrl, StatusCallbackMethod = statusCallbackMethod, InboundTrackLabel = inboundTrackLabel, OutboundTrackLabel = outboundTrackLabel, PartialResults = partialResults, LanguageCode = languageCode, TranscriptionEngine = transcriptionEngine, ProfanityFilter = profanityFilter, SpeechModel = speechModel, Hints = hints, EnableAutomaticPunctuation = enableAutomaticPunctuation, Parameter1Name = parameter1Name, Parameter1Value = parameter1Value, Parameter2Name = parameter2Name, Parameter2Value = parameter2Value, Parameter3Name = parameter3Name, Parameter3Value = parameter3Value, Parameter4Name = parameter4Name, Parameter4Value = parameter4Value, Parameter5Name = parameter5Name, Parameter5Value = parameter5Value, Parameter6Name = parameter6Name, Parameter6Value = parameter6Value, Parameter7Name = parameter7Name, Parameter7Value = parameter7Value, Parameter8Name = parameter8Name, Parameter8Value = parameter8Value, Parameter9Name = parameter9Name, Parameter9Value = parameter9Value, Parameter10Name = parameter10Name, Parameter10Value = parameter10Value, Parameter11Name = parameter11Name, Parameter11Value = parameter11Value, Parameter12Name = parameter12Name, Parameter12Value = parameter12Value, Parameter13Name = parameter13Name, Parameter13Value = parameter13Value, Parameter14Name = parameter14Name, Parameter14Value = parameter14Value, Parameter15Name = parameter15Name, Parameter15Value = parameter15Value, Parameter16Name = parameter16Name, Parameter16Value = parameter16Value, Parameter17Name = parameter17Name, Parameter17Value = parameter17Value, Parameter18Name = parameter18Name, Parameter18Value = parameter18Value, Parameter19Name = parameter19Name, Parameter19Value = parameter19Value, Parameter20Name = parameter20Name, Parameter20Value = parameter20Value, Parameter21Name = parameter21Name, Parameter21Value = parameter21Value, Parameter22Name = parameter22Name, Parameter22Value = parameter22Value, Parameter23Name = parameter23Name, Parameter23Value = parameter23Value, Parameter24Name = parameter24Name, Parameter24Value = parameter24Value, Parameter25Name = parameter25Name, Parameter25Value = parameter25Value, Parameter26Name = parameter26Name, Parameter26Value = parameter26Value, Parameter27Name = parameter27Name, Parameter27Value = parameter27Value, Parameter28Name = parameter28Name, Parameter28Value = parameter28Value, Parameter29Name = parameter29Name, Parameter29Value = parameter29Value, Parameter30Name = parameter30Name, Parameter30Value = parameter30Value, Parameter31Name = parameter31Name, Parameter31Value = parameter31Value, Parameter32Name = parameter32Name, Parameter32Value = parameter32Value, Parameter33Name = parameter33Name, Parameter33Value = parameter33Value, Parameter34Name = parameter34Name, Parameter34Value = parameter34Value, Parameter35Name = parameter35Name, Parameter35Value = parameter35Value, Parameter36Name = parameter36Name, Parameter36Value = parameter36Value, Parameter37Name = parameter37Name, Parameter37Value = parameter37Value, Parameter38Name = parameter38Name, Parameter38Value = parameter38Value, Parameter39Name = parameter39Name, Parameter39Value = parameter39Value, Parameter40Name = parameter40Name, Parameter40Value = parameter40Value, Parameter41Name = parameter41Name, Parameter41Value = parameter41Value, Parameter42Name = parameter42Name, Parameter42Value = parameter42Value, Parameter43Name = parameter43Name, Parameter43Value = parameter43Value, Parameter44Name = parameter44Name, Parameter44Value = parameter44Value, Parameter45Name = parameter45Name, Parameter45Value = parameter45Value, Parameter46Name = parameter46Name, Parameter46Value = parameter46Value, Parameter47Name = parameter47Name, Parameter47Value = parameter47Value, Parameter48Name = parameter48Name, Parameter48Value = parameter48Value, Parameter49Name = parameter49Name, Parameter49Value = parameter49Value, Parameter50Name = parameter50Name, Parameter50Value = parameter50Value, Parameter51Name = parameter51Name, Parameter51Value = parameter51Value, Parameter52Name = parameter52Name, Parameter52Value = parameter52Value, Parameter53Name = parameter53Name, Parameter53Value = parameter53Value, Parameter54Name = parameter54Name, Parameter54Value = parameter54Value, Parameter55Name = parameter55Name, Parameter55Value = parameter55Value, Parameter56Name = parameter56Name, Parameter56Value = parameter56Value, Parameter57Name = parameter57Name, Parameter57Value = parameter57Value, Parameter58Name = parameter58Name, Parameter58Value = parameter58Value, Parameter59Name = parameter59Name, Parameter59Value = parameter59Value, Parameter60Name = parameter60Name, Parameter60Value = parameter60Value, Parameter61Name = parameter61Name, Parameter61Value = parameter61Value, Parameter62Name = parameter62Name, Parameter62Value = parameter62Value, Parameter63Name = parameter63Name, Parameter63Value = parameter63Value, Parameter64Name = parameter64Name, Parameter64Value = parameter64Value, Parameter65Name = parameter65Name, Parameter65Value = parameter65Value, Parameter66Name = parameter66Name, Parameter66Value = parameter66Value, Parameter67Name = parameter67Name, Parameter67Value = parameter67Value, Parameter68Name = parameter68Name, Parameter68Value = parameter68Value, Parameter69Name = parameter69Name, Parameter69Value = parameter69Value, Parameter70Name = parameter70Name, Parameter70Value = parameter70Value, Parameter71Name = parameter71Name, Parameter71Value = parameter71Value, Parameter72Name = parameter72Name, Parameter72Value = parameter72Value, Parameter73Name = parameter73Name, Parameter73Value = parameter73Value, Parameter74Name = parameter74Name, Parameter74Value = parameter74Value, Parameter75Name = parameter75Name, Parameter75Value = parameter75Value, Parameter76Name = parameter76Name, Parameter76Value = parameter76Value, Parameter77Name = parameter77Name, Parameter77Value = parameter77Value, Parameter78Name = parameter78Name, Parameter78Value = parameter78Value, Parameter79Name = parameter79Name, Parameter79Value = parameter79Value, Parameter80Name = parameter80Name, Parameter80Value = parameter80Value, Parameter81Name = parameter81Name, Parameter81Value = parameter81Value, Parameter82Name = parameter82Name, Parameter82Value = parameter82Value, Parameter83Name = parameter83Name, Parameter83Value = parameter83Value, Parameter84Name = parameter84Name, Parameter84Value = parameter84Value, Parameter85Name = parameter85Name, Parameter85Value = parameter85Value, Parameter86Name = parameter86Name, Parameter86Value = parameter86Value, Parameter87Name = parameter87Name, Parameter87Value = parameter87Value, Parameter88Name = parameter88Name, Parameter88Value = parameter88Value, Parameter89Name = parameter89Name, Parameter89Value = parameter89Value, Parameter90Name = parameter90Name, Parameter90Value = parameter90Value, Parameter91Name = parameter91Name, Parameter91Value = parameter91Value, Parameter92Name = parameter92Name, Parameter92Value = parameter92Value, Parameter93Name = parameter93Name, Parameter93Value = parameter93Value, Parameter94Name = parameter94Name, Parameter94Value = parameter94Value, Parameter95Name = parameter95Name, Parameter95Value = parameter95Value, Parameter96Name = parameter96Name, Parameter96Value = parameter96Value, Parameter97Name = parameter97Name, Parameter97Value = parameter97Value, Parameter98Name = parameter98Name, Parameter98Value = parameter98Value, Parameter99Name = parameter99Name, Parameter99Value = parameter99Value }; + var options = new CreateTranscriptionOptions(pathCallSid){ PathAccountSid = pathAccountSid, Name = name, Track = track, StatusCallbackUrl = statusCallbackUrl, StatusCallbackMethod = statusCallbackMethod, InboundTrackLabel = inboundTrackLabel, OutboundTrackLabel = outboundTrackLabel, PartialResults = partialResults, LanguageCode = languageCode, TranscriptionEngine = transcriptionEngine, ProfanityFilter = profanityFilter, SpeechModel = speechModel, Hints = hints, EnableAutomaticPunctuation = enableAutomaticPunctuation }; return Create(options, client); } @@ -562,211 +166,13 @@ public static TranscriptionResource Create( /// The http method for the status_callback (one of GET, POST). /// Friendly name given to the Inbound Track /// Friendly name given to the Outbound Track - /// Indicates if partial results are going to be send to the customer + /// Indicates if partial results are going to be sent to the customer /// Language code used by the transcription engine, specified in [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) format - /// Definition of the transcription engine to be used, between those supported by Twilio + /// Definition of the transcription engine to be used, among those supported by Twilio /// indicates if the server will attempt to filter out profanities, replacing all but the initial character in each filtered word with asterisks - /// Recognition model used by the transcription engine, between those supported by the provider + /// Recognition model used by the transcription engine, among those supported by the provider /// A Phrase contains words and phrase \\\"hints\\\" so that the speech recognition engine is more likely to recognize them. - /// The provider will adds punctuation to recognition result hypotheses - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value - /// Parameter name - /// Parameter value + /// The provider will add punctuation to recognition result /// Client to make requests to Twilio /// Task that resolves to A single instance of Transcription public static async System.Threading.Tasks.Task CreateAsync( @@ -785,207 +191,9 @@ public static async System.Threading.Tasks.Task CreateAsy string speechModel = null, string hints = null, bool? enableAutomaticPunctuation = null, - string parameter1Name = null, - string parameter1Value = null, - string parameter2Name = null, - string parameter2Value = null, - string parameter3Name = null, - string parameter3Value = null, - string parameter4Name = null, - string parameter4Value = null, - string parameter5Name = null, - string parameter5Value = null, - string parameter6Name = null, - string parameter6Value = null, - string parameter7Name = null, - string parameter7Value = null, - string parameter8Name = null, - string parameter8Value = null, - string parameter9Name = null, - string parameter9Value = null, - string parameter10Name = null, - string parameter10Value = null, - string parameter11Name = null, - string parameter11Value = null, - string parameter12Name = null, - string parameter12Value = null, - string parameter13Name = null, - string parameter13Value = null, - string parameter14Name = null, - string parameter14Value = null, - string parameter15Name = null, - string parameter15Value = null, - string parameter16Name = null, - string parameter16Value = null, - string parameter17Name = null, - string parameter17Value = null, - string parameter18Name = null, - string parameter18Value = null, - string parameter19Name = null, - string parameter19Value = null, - string parameter20Name = null, - string parameter20Value = null, - string parameter21Name = null, - string parameter21Value = null, - string parameter22Name = null, - string parameter22Value = null, - string parameter23Name = null, - string parameter23Value = null, - string parameter24Name = null, - string parameter24Value = null, - string parameter25Name = null, - string parameter25Value = null, - string parameter26Name = null, - string parameter26Value = null, - string parameter27Name = null, - string parameter27Value = null, - string parameter28Name = null, - string parameter28Value = null, - string parameter29Name = null, - string parameter29Value = null, - string parameter30Name = null, - string parameter30Value = null, - string parameter31Name = null, - string parameter31Value = null, - string parameter32Name = null, - string parameter32Value = null, - string parameter33Name = null, - string parameter33Value = null, - string parameter34Name = null, - string parameter34Value = null, - string parameter35Name = null, - string parameter35Value = null, - string parameter36Name = null, - string parameter36Value = null, - string parameter37Name = null, - string parameter37Value = null, - string parameter38Name = null, - string parameter38Value = null, - string parameter39Name = null, - string parameter39Value = null, - string parameter40Name = null, - string parameter40Value = null, - string parameter41Name = null, - string parameter41Value = null, - string parameter42Name = null, - string parameter42Value = null, - string parameter43Name = null, - string parameter43Value = null, - string parameter44Name = null, - string parameter44Value = null, - string parameter45Name = null, - string parameter45Value = null, - string parameter46Name = null, - string parameter46Value = null, - string parameter47Name = null, - string parameter47Value = null, - string parameter48Name = null, - string parameter48Value = null, - string parameter49Name = null, - string parameter49Value = null, - string parameter50Name = null, - string parameter50Value = null, - string parameter51Name = null, - string parameter51Value = null, - string parameter52Name = null, - string parameter52Value = null, - string parameter53Name = null, - string parameter53Value = null, - string parameter54Name = null, - string parameter54Value = null, - string parameter55Name = null, - string parameter55Value = null, - string parameter56Name = null, - string parameter56Value = null, - string parameter57Name = null, - string parameter57Value = null, - string parameter58Name = null, - string parameter58Value = null, - string parameter59Name = null, - string parameter59Value = null, - string parameter60Name = null, - string parameter60Value = null, - string parameter61Name = null, - string parameter61Value = null, - string parameter62Name = null, - string parameter62Value = null, - string parameter63Name = null, - string parameter63Value = null, - string parameter64Name = null, - string parameter64Value = null, - string parameter65Name = null, - string parameter65Value = null, - string parameter66Name = null, - string parameter66Value = null, - string parameter67Name = null, - string parameter67Value = null, - string parameter68Name = null, - string parameter68Value = null, - string parameter69Name = null, - string parameter69Value = null, - string parameter70Name = null, - string parameter70Value = null, - string parameter71Name = null, - string parameter71Value = null, - string parameter72Name = null, - string parameter72Value = null, - string parameter73Name = null, - string parameter73Value = null, - string parameter74Name = null, - string parameter74Value = null, - string parameter75Name = null, - string parameter75Value = null, - string parameter76Name = null, - string parameter76Value = null, - string parameter77Name = null, - string parameter77Value = null, - string parameter78Name = null, - string parameter78Value = null, - string parameter79Name = null, - string parameter79Value = null, - string parameter80Name = null, - string parameter80Value = null, - string parameter81Name = null, - string parameter81Value = null, - string parameter82Name = null, - string parameter82Value = null, - string parameter83Name = null, - string parameter83Value = null, - string parameter84Name = null, - string parameter84Value = null, - string parameter85Name = null, - string parameter85Value = null, - string parameter86Name = null, - string parameter86Value = null, - string parameter87Name = null, - string parameter87Value = null, - string parameter88Name = null, - string parameter88Value = null, - string parameter89Name = null, - string parameter89Value = null, - string parameter90Name = null, - string parameter90Value = null, - string parameter91Name = null, - string parameter91Value = null, - string parameter92Name = null, - string parameter92Value = null, - string parameter93Name = null, - string parameter93Value = null, - string parameter94Name = null, - string parameter94Value = null, - string parameter95Name = null, - string parameter95Value = null, - string parameter96Name = null, - string parameter96Value = null, - string parameter97Name = null, - string parameter97Value = null, - string parameter98Name = null, - string parameter98Value = null, - string parameter99Name = null, - string parameter99Value = null, ITwilioRestClient client = null) { - var options = new CreateTranscriptionOptions(pathCallSid){ PathAccountSid = pathAccountSid, Name = name, Track = track, StatusCallbackUrl = statusCallbackUrl, StatusCallbackMethod = statusCallbackMethod, InboundTrackLabel = inboundTrackLabel, OutboundTrackLabel = outboundTrackLabel, PartialResults = partialResults, LanguageCode = languageCode, TranscriptionEngine = transcriptionEngine, ProfanityFilter = profanityFilter, SpeechModel = speechModel, Hints = hints, EnableAutomaticPunctuation = enableAutomaticPunctuation, Parameter1Name = parameter1Name, Parameter1Value = parameter1Value, Parameter2Name = parameter2Name, Parameter2Value = parameter2Value, Parameter3Name = parameter3Name, Parameter3Value = parameter3Value, Parameter4Name = parameter4Name, Parameter4Value = parameter4Value, Parameter5Name = parameter5Name, Parameter5Value = parameter5Value, Parameter6Name = parameter6Name, Parameter6Value = parameter6Value, Parameter7Name = parameter7Name, Parameter7Value = parameter7Value, Parameter8Name = parameter8Name, Parameter8Value = parameter8Value, Parameter9Name = parameter9Name, Parameter9Value = parameter9Value, Parameter10Name = parameter10Name, Parameter10Value = parameter10Value, Parameter11Name = parameter11Name, Parameter11Value = parameter11Value, Parameter12Name = parameter12Name, Parameter12Value = parameter12Value, Parameter13Name = parameter13Name, Parameter13Value = parameter13Value, Parameter14Name = parameter14Name, Parameter14Value = parameter14Value, Parameter15Name = parameter15Name, Parameter15Value = parameter15Value, Parameter16Name = parameter16Name, Parameter16Value = parameter16Value, Parameter17Name = parameter17Name, Parameter17Value = parameter17Value, Parameter18Name = parameter18Name, Parameter18Value = parameter18Value, Parameter19Name = parameter19Name, Parameter19Value = parameter19Value, Parameter20Name = parameter20Name, Parameter20Value = parameter20Value, Parameter21Name = parameter21Name, Parameter21Value = parameter21Value, Parameter22Name = parameter22Name, Parameter22Value = parameter22Value, Parameter23Name = parameter23Name, Parameter23Value = parameter23Value, Parameter24Name = parameter24Name, Parameter24Value = parameter24Value, Parameter25Name = parameter25Name, Parameter25Value = parameter25Value, Parameter26Name = parameter26Name, Parameter26Value = parameter26Value, Parameter27Name = parameter27Name, Parameter27Value = parameter27Value, Parameter28Name = parameter28Name, Parameter28Value = parameter28Value, Parameter29Name = parameter29Name, Parameter29Value = parameter29Value, Parameter30Name = parameter30Name, Parameter30Value = parameter30Value, Parameter31Name = parameter31Name, Parameter31Value = parameter31Value, Parameter32Name = parameter32Name, Parameter32Value = parameter32Value, Parameter33Name = parameter33Name, Parameter33Value = parameter33Value, Parameter34Name = parameter34Name, Parameter34Value = parameter34Value, Parameter35Name = parameter35Name, Parameter35Value = parameter35Value, Parameter36Name = parameter36Name, Parameter36Value = parameter36Value, Parameter37Name = parameter37Name, Parameter37Value = parameter37Value, Parameter38Name = parameter38Name, Parameter38Value = parameter38Value, Parameter39Name = parameter39Name, Parameter39Value = parameter39Value, Parameter40Name = parameter40Name, Parameter40Value = parameter40Value, Parameter41Name = parameter41Name, Parameter41Value = parameter41Value, Parameter42Name = parameter42Name, Parameter42Value = parameter42Value, Parameter43Name = parameter43Name, Parameter43Value = parameter43Value, Parameter44Name = parameter44Name, Parameter44Value = parameter44Value, Parameter45Name = parameter45Name, Parameter45Value = parameter45Value, Parameter46Name = parameter46Name, Parameter46Value = parameter46Value, Parameter47Name = parameter47Name, Parameter47Value = parameter47Value, Parameter48Name = parameter48Name, Parameter48Value = parameter48Value, Parameter49Name = parameter49Name, Parameter49Value = parameter49Value, Parameter50Name = parameter50Name, Parameter50Value = parameter50Value, Parameter51Name = parameter51Name, Parameter51Value = parameter51Value, Parameter52Name = parameter52Name, Parameter52Value = parameter52Value, Parameter53Name = parameter53Name, Parameter53Value = parameter53Value, Parameter54Name = parameter54Name, Parameter54Value = parameter54Value, Parameter55Name = parameter55Name, Parameter55Value = parameter55Value, Parameter56Name = parameter56Name, Parameter56Value = parameter56Value, Parameter57Name = parameter57Name, Parameter57Value = parameter57Value, Parameter58Name = parameter58Name, Parameter58Value = parameter58Value, Parameter59Name = parameter59Name, Parameter59Value = parameter59Value, Parameter60Name = parameter60Name, Parameter60Value = parameter60Value, Parameter61Name = parameter61Name, Parameter61Value = parameter61Value, Parameter62Name = parameter62Name, Parameter62Value = parameter62Value, Parameter63Name = parameter63Name, Parameter63Value = parameter63Value, Parameter64Name = parameter64Name, Parameter64Value = parameter64Value, Parameter65Name = parameter65Name, Parameter65Value = parameter65Value, Parameter66Name = parameter66Name, Parameter66Value = parameter66Value, Parameter67Name = parameter67Name, Parameter67Value = parameter67Value, Parameter68Name = parameter68Name, Parameter68Value = parameter68Value, Parameter69Name = parameter69Name, Parameter69Value = parameter69Value, Parameter70Name = parameter70Name, Parameter70Value = parameter70Value, Parameter71Name = parameter71Name, Parameter71Value = parameter71Value, Parameter72Name = parameter72Name, Parameter72Value = parameter72Value, Parameter73Name = parameter73Name, Parameter73Value = parameter73Value, Parameter74Name = parameter74Name, Parameter74Value = parameter74Value, Parameter75Name = parameter75Name, Parameter75Value = parameter75Value, Parameter76Name = parameter76Name, Parameter76Value = parameter76Value, Parameter77Name = parameter77Name, Parameter77Value = parameter77Value, Parameter78Name = parameter78Name, Parameter78Value = parameter78Value, Parameter79Name = parameter79Name, Parameter79Value = parameter79Value, Parameter80Name = parameter80Name, Parameter80Value = parameter80Value, Parameter81Name = parameter81Name, Parameter81Value = parameter81Value, Parameter82Name = parameter82Name, Parameter82Value = parameter82Value, Parameter83Name = parameter83Name, Parameter83Value = parameter83Value, Parameter84Name = parameter84Name, Parameter84Value = parameter84Value, Parameter85Name = parameter85Name, Parameter85Value = parameter85Value, Parameter86Name = parameter86Name, Parameter86Value = parameter86Value, Parameter87Name = parameter87Name, Parameter87Value = parameter87Value, Parameter88Name = parameter88Name, Parameter88Value = parameter88Value, Parameter89Name = parameter89Name, Parameter89Value = parameter89Value, Parameter90Name = parameter90Name, Parameter90Value = parameter90Value, Parameter91Name = parameter91Name, Parameter91Value = parameter91Value, Parameter92Name = parameter92Name, Parameter92Value = parameter92Value, Parameter93Name = parameter93Name, Parameter93Value = parameter93Value, Parameter94Name = parameter94Name, Parameter94Value = parameter94Value, Parameter95Name = parameter95Name, Parameter95Value = parameter95Value, Parameter96Name = parameter96Name, Parameter96Value = parameter96Value, Parameter97Name = parameter97Name, Parameter97Value = parameter97Value, Parameter98Name = parameter98Name, Parameter98Value = parameter98Value, Parameter99Name = parameter99Name, Parameter99Value = parameter99Value }; + var options = new CreateTranscriptionOptions(pathCallSid){ PathAccountSid = pathAccountSid, Name = name, Track = track, StatusCallbackUrl = statusCallbackUrl, StatusCallbackMethod = statusCallbackMethod, InboundTrackLabel = inboundTrackLabel, OutboundTrackLabel = outboundTrackLabel, PartialResults = partialResults, LanguageCode = languageCode, TranscriptionEngine = transcriptionEngine, ProfanityFilter = profanityFilter, SpeechModel = speechModel, Hints = hints, EnableAutomaticPunctuation = enableAutomaticPunctuation }; return await CreateAsync(options, client); } #endif diff --git a/src/Twilio/Rest/Api/V2010/Account/MessageResource.cs b/src/Twilio/Rest/Api/V2010/Account/MessageResource.cs index f2830094a..147b3f36f 100644 --- a/src/Twilio/Rest/Api/V2010/Account/MessageResource.cs +++ b/src/Twilio/Rest/Api/V2010/Account/MessageResource.cs @@ -726,7 +726,7 @@ public static string ToJson(object model) [JsonProperty("price")] public string Price { get; private set; } - /// The description of the `error_code` if the Message `status` is `failed` or `undelivered`. If no error was encountered, the value is `null`. + /// The description of the `error_code` if the Message `status` is `failed` or `undelivered`. If no error was encountered, the value is `null`. The value returned in this field for a specific error cause is subject to change as Twilio improves errors. Users should not use the `error_code` and `error_message` fields programmatically. [JsonProperty("error_message")] public string ErrorMessage { get; private set; } @@ -762,7 +762,7 @@ public static string ToJson(object model) [JsonProperty("date_created")] public DateTime? DateCreated { get; private set; } - /// The [error code](https://www.twilio.com/docs/api/errors) returned if the Message `status` is `failed` or `undelivered`. If no error was encountered, the value is `null`. + /// The [error code](https://www.twilio.com/docs/api/errors) returned if the Message `status` is `failed` or `undelivered`. If no error was encountered, the value is `null`. The value returned in this field for a specific error cause is subject to change as Twilio improves errors. Users should not use the `error_code` and `error_message` fields programmatically. [JsonProperty("error_code")] public int? ErrorCode { get; private set; } diff --git a/src/Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/Payload/DataOptions.cs b/src/Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/Payload/DataOptions.cs new file mode 100644 index 000000000..8706f6c21 --- /dev/null +++ b/src/Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/Payload/DataOptions.cs @@ -0,0 +1,70 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * This is the public Twilio REST API. + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +using System; +using System.Collections.Generic; +using Twilio.Base; +using Twilio.Converters; + + + + +namespace Twilio.Rest.Api.V2010.Account.Recording.AddOnResult.Payload +{ + /// Fetch an instance of a result payload + public class FetchDataOptions : IOptions + { + + /// The SID of the recording to which the AddOnResult resource that contains the payload to fetch belongs. + public string PathReferenceSid { get; } + + /// The SID of the AddOnResult to which the payload to fetch belongs. + public string PathAddOnResultSid { get; } + + /// The Twilio-provided string that uniquely identifies the Recording AddOnResult Payload resource to fetch. + public string PathPayloadSid { get; } + + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult Payload resource to fetch. + public string PathAccountSid { get; set; } + + + + /// Construct a new FetchRecordingAddOnResultPayloadDataOptions + /// The SID of the recording to which the AddOnResult resource that contains the payload to fetch belongs. + /// The SID of the AddOnResult to which the payload to fetch belongs. + /// The Twilio-provided string that uniquely identifies the Recording AddOnResult Payload resource to fetch. + public FetchDataOptions(string pathReferenceSid, string pathAddOnResultSid, string pathPayloadSid) + { + PathReferenceSid = pathReferenceSid; + PathAddOnResultSid = pathAddOnResultSid; + PathPayloadSid = pathPayloadSid; + } + + + /// Generate the necessary parameters + public List> GetParams() + { + var p = new List>(); + + return p; + } + + + + } + + +} + diff --git a/src/Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/Payload/DataResource.cs b/src/Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/Payload/DataResource.cs new file mode 100644 index 000000000..cbcb5c94b --- /dev/null +++ b/src/Twilio/Rest/Api/V2010/Account/Recording/AddOnResult/Payload/DataResource.cs @@ -0,0 +1,162 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Api + * This is the public Twilio REST API. + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +using Newtonsoft.Json; +using System; +using System.Collections.Generic; +using Twilio.Base; +using Twilio.Clients; +using Twilio.Constant; +using Twilio.Converters; +using Twilio.Exceptions; +using Twilio.Http; + + + +namespace Twilio.Rest.Api.V2010.Account.Recording.AddOnResult.Payload +{ + public class DataResource : Resource + { + + + + + + private static Request BuildFetchRequest(FetchDataOptions options, ITwilioRestClient client) + { + + string path = "/2010-04-01/Accounts/{AccountSid}/Recordings/{ReferenceSid}/AddOnResults/{AddOnResultSid}/Payloads/{PayloadSid}/Data.json"; + + string PathAccountSid = options.PathAccountSid ?? client.AccountSid; + path = path.Replace("{"+"AccountSid"+"}", PathAccountSid); + string PathReferenceSid = options.PathReferenceSid; + path = path.Replace("{"+"ReferenceSid"+"}", PathReferenceSid); + string PathAddOnResultSid = options.PathAddOnResultSid; + path = path.Replace("{"+"AddOnResultSid"+"}", PathAddOnResultSid); + string PathPayloadSid = options.PathPayloadSid; + path = path.Replace("{"+"PayloadSid"+"}", PathPayloadSid); + + return new Request( + HttpMethod.Get, + Rest.Domain.Api, + path, + queryParams: options.GetParams(), + headerParams: null + ); + } + + /// Fetch an instance of a result payload + /// Fetch Data parameters + /// Client to make requests to Twilio + /// A single instance of Data + public static DataResource Fetch(FetchDataOptions options, ITwilioRestClient client = null) + { + client = client ?? TwilioClient.GetRestClient(); + var response = client.Request(BuildFetchRequest(options, client)); + return FromJson(response.Content); + } + + #if !NET35 + /// Fetch an instance of a result payload + /// Fetch Data parameters + /// Client to make requests to Twilio + /// Task that resolves to A single instance of Data + public static async System.Threading.Tasks.Task FetchAsync(FetchDataOptions options, + ITwilioRestClient client = null) + { + client = client ?? TwilioClient.GetRestClient(); + var response = await client.RequestAsync(BuildFetchRequest(options, client)); + return FromJson(response.Content); + } + #endif + /// Fetch an instance of a result payload + /// The SID of the recording to which the AddOnResult resource that contains the payload to fetch belongs. + /// The SID of the AddOnResult to which the payload to fetch belongs. + /// The Twilio-provided string that uniquely identifies the Recording AddOnResult Payload resource to fetch. + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult Payload resource to fetch. + /// Client to make requests to Twilio + /// A single instance of Data + public static DataResource Fetch( + string pathReferenceSid, + string pathAddOnResultSid, + string pathPayloadSid, + string pathAccountSid = null, + ITwilioRestClient client = null) + { + var options = new FetchDataOptions(pathReferenceSid, pathAddOnResultSid, pathPayloadSid){ PathAccountSid = pathAccountSid }; + return Fetch(options, client); + } + + #if !NET35 + /// Fetch an instance of a result payload + /// The SID of the recording to which the AddOnResult resource that contains the payload to fetch belongs. + /// The SID of the AddOnResult to which the payload to fetch belongs. + /// The Twilio-provided string that uniquely identifies the Recording AddOnResult Payload resource to fetch. + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Recording AddOnResult Payload resource to fetch. + /// Client to make requests to Twilio + /// Task that resolves to A single instance of Data + public static async System.Threading.Tasks.Task FetchAsync(string pathReferenceSid, string pathAddOnResultSid, string pathPayloadSid, string pathAccountSid = null, ITwilioRestClient client = null) + { + var options = new FetchDataOptions(pathReferenceSid, pathAddOnResultSid, pathPayloadSid){ PathAccountSid = pathAccountSid }; + return await FetchAsync(options, client); + } + #endif + + /// + /// Converts a JSON string into a DataResource object + /// + /// Raw JSON string + /// DataResource object represented by the provided JSON + public static DataResource FromJson(string json) + { + try + { + return JsonConvert.DeserializeObject(json); + } + catch (JsonException e) + { + throw new ApiException(e.Message, e); + } + } + /// + /// Converts an object into a json string + /// + /// C# model + /// JSON string + public static string ToJson(object model) + { + try + { + return JsonConvert.SerializeObject(model); + } + catch (JsonException e) + { + throw new ApiException(e.Message, e); + } + } + + + /// The URL to redirect to to get the data returned by the AddOn that was previously stored. + [JsonProperty("redirect_to")] + public Uri RedirectTo { get; private set; } + + + + private DataResource() { + + } + } +} + diff --git a/src/Twilio/Rest/Content/V1/Content/ApprovalCreateOptions.cs b/src/Twilio/Rest/Content/V1/Content/ApprovalCreateOptions.cs index 70c1a2423..721f37b39 100644 --- a/src/Twilio/Rest/Content/V1/Content/ApprovalCreateOptions.cs +++ b/src/Twilio/Rest/Content/V1/Content/ApprovalCreateOptions.cs @@ -35,7 +35,7 @@ public class CreateApprovalCreateOptions : IOptions public ApprovalCreateResource.ContentApprovalRequest ContentApprovalRequest { get; } - /// Construct a new CreateContentApprovalRequestOptions + /// Construct a new CreateApprovalCreateOptions /// /// public CreateApprovalCreateOptions(string pathContentSid, ApprovalCreateResource.ContentApprovalRequest contentApprovalRequest) diff --git a/src/Twilio/Rest/Content/V1/Content/ApprovalFetchOptions.cs b/src/Twilio/Rest/Content/V1/Content/ApprovalFetchOptions.cs index ed5daeb57..4efb9540d 100644 --- a/src/Twilio/Rest/Content/V1/Content/ApprovalFetchOptions.cs +++ b/src/Twilio/Rest/Content/V1/Content/ApprovalFetchOptions.cs @@ -32,7 +32,7 @@ public class FetchApprovalFetchOptions : IOptions - /// Construct a new FetchApprovalOptions + /// Construct a new FetchApprovalFetchOptions /// The Twilio-provided string that uniquely identifies the Content resource whose approval information to fetch. public FetchApprovalFetchOptions(string pathContentSid) { diff --git a/src/Twilio/Rest/Content/V1/ContentResource.cs b/src/Twilio/Rest/Content/V1/ContentResource.cs index 41477df7a..9a6ca0902 100644 --- a/src/Twilio/Rest/Content/V1/ContentResource.cs +++ b/src/Twilio/Rest/Content/V1/ContentResource.cs @@ -543,6 +543,129 @@ public TwilioCatalog Build() } } } + public class CarouselAction + { + [JsonConverter(typeof(StringEnumConverter))] + [JsonProperty("type")] + private ContentResource.CarouselActionType Type {get; set;} + [JsonProperty("title")] + private string Title {get; set;} + [JsonProperty("url")] + private string Url {get; set;} + [JsonProperty("phone")] + private string Phone {get; set;} + [JsonProperty("id")] + private string Id {get; set;} + public CarouselAction() { } + public class Builder + { + private CarouselAction _carouselAction = new CarouselAction(); + public Builder() + { + } + public Builder WithType(ContentResource.CarouselActionType type) + { + _carouselAction.Type= type; + return this; + } + public Builder WithTitle(string title) + { + _carouselAction.Title= title; + return this; + } + public Builder WithUrl(string url) + { + _carouselAction.Url= url; + return this; + } + public Builder WithPhone(string phone) + { + _carouselAction.Phone= phone; + return this; + } + public Builder WithId(string id) + { + _carouselAction.Id= id; + return this; + } + public CarouselAction Build() + { + return _carouselAction; + } + } + } + public class CarouselCard + { + [JsonProperty("title")] + private string Title {get; set;} + [JsonProperty("body")] + private string Body {get; set;} + [JsonProperty("media")] + private string Media {get; set;} + [JsonProperty("actions")] + private List Actions {get; set;} + public CarouselCard() { } + public class Builder + { + private CarouselCard _carouselCard = new CarouselCard(); + public Builder() + { + } + public Builder WithTitle(string title) + { + _carouselCard.Title= title; + return this; + } + public Builder WithBody(string body) + { + _carouselCard.Body= body; + return this; + } + public Builder WithMedia(string media) + { + _carouselCard.Media= media; + return this; + } + public Builder WithActions(List actions) + { + _carouselCard.Actions= actions; + return this; + } + public CarouselCard Build() + { + return _carouselCard; + } + } + } + public class TwilioCarousel + { + [JsonProperty("body")] + private string Body {get; set;} + [JsonProperty("cards")] + private List Cards {get; set;} + public TwilioCarousel() { } + public class Builder + { + private TwilioCarousel _twilioCarousel = new TwilioCarousel(); + public Builder() + { + } + public Builder WithBody(string body) + { + _twilioCarousel.Body= body; + return this; + } + public Builder WithCards(List cards) + { + _twilioCarousel.Cards= cards; + return this; + } + public TwilioCarousel Build() + { + return _twilioCarousel; + } + } + } public class WhatsappCard { [JsonProperty("body")] @@ -677,6 +800,8 @@ public class Types private TwilioCard TwilioCard {get; set;} [JsonProperty("twilio/catalog")] private TwilioCatalog TwilioCatalog {get; set;} + [JsonProperty("twilio/carousel")] + private TwilioCarousel TwilioCarousel {get; set;} [JsonProperty("whatsapp/card")] private WhatsappCard WhatsappCard {get; set;} [JsonProperty("whatsapp/authentication")] @@ -728,6 +853,11 @@ public Builder WithTwilioCatalog(TwilioCatalog twilioCatalog) _types.TwilioCatalog= twilioCatalog; return this; } + public Builder WithTwilioCarousel(TwilioCarousel twilioCarousel) + { + _types.TwilioCarousel= twilioCarousel; + return this; + } public Builder WithWhatsappCard(WhatsappCard whatsappCard) { _types.WhatsappCard= whatsappCard; @@ -789,6 +919,20 @@ public ContentCreateRequest Build() } + [JsonConverter(typeof(StringEnumConverter))] + public sealed class CarouselActionType : StringEnum + { + private CarouselActionType(string value) : base(value) {} + public CarouselActionType() {} + public static implicit operator CarouselActionType(string value) + { + return new CarouselActionType(value); + } + public static readonly CarouselActionType Url = new CarouselActionType("URL"); + public static readonly CarouselActionType PhoneNumber = new CarouselActionType("PHONE_NUMBER"); + public static readonly CarouselActionType QuickReply = new CarouselActionType("QUICK_REPLY"); + + } [JsonConverter(typeof(StringEnumConverter))] public sealed class AuthenticationActionType : StringEnum { diff --git a/src/Twilio/Rest/Domain.cs b/src/Twilio/Rest/Domain.cs index e842a8eee..f4b114690 100644 --- a/src/Twilio/Rest/Domain.cs +++ b/src/Twilio/Rest/Domain.cs @@ -59,4 +59,4 @@ public static implicit operator Domain(string value) public static readonly Domain Wireless = new Domain("wireless"); } -} +} \ No newline at end of file diff --git a/src/Twilio/Rest/FlexApi/V2/FlexUserOptions.cs b/src/Twilio/Rest/FlexApi/V2/FlexUserOptions.cs index c62c094bd..8d2a96430 100644 --- a/src/Twilio/Rest/FlexApi/V2/FlexUserOptions.cs +++ b/src/Twilio/Rest/FlexApi/V2/FlexUserOptions.cs @@ -58,5 +58,82 @@ public List> GetParams() } + /// Update flex user for the given flex user sid + public class UpdateFlexUserOptions : IOptions + { + + /// The unique ID created by Twilio to identify a Flex instance. + public string PathInstanceSid { get; } + + /// The unique id for the flex user. + public string PathFlexUserSid { get; } + + /// First name of the User. + public string FirstName { get; set; } + + /// Last name of the User. + public string LastName { get; set; } + + /// Email of the User. + public string Email { get; set; } + + /// Friendly name of the User. + public string FriendlyName { get; set; } + + /// The unique SID identifier of the Twilio Unified User. + public string UserSid { get; set; } + + /// The locale preference of the user. + public string Locale { get; set; } + + + + /// Construct a new UpdateFlexUserOptions + /// The unique ID created by Twilio to identify a Flex instance. + /// The unique id for the flex user. + public UpdateFlexUserOptions(string pathInstanceSid, string pathFlexUserSid) + { + PathInstanceSid = pathInstanceSid; + PathFlexUserSid = pathFlexUserSid; + } + + + /// Generate the necessary parameters + public List> GetParams() + { + var p = new List>(); + + if (FirstName != null) + { + p.Add(new KeyValuePair("FirstName", FirstName)); + } + if (LastName != null) + { + p.Add(new KeyValuePair("LastName", LastName)); + } + if (Email != null) + { + p.Add(new KeyValuePair("Email", Email)); + } + if (FriendlyName != null) + { + p.Add(new KeyValuePair("FriendlyName", FriendlyName)); + } + if (UserSid != null) + { + p.Add(new KeyValuePair("UserSid", UserSid)); + } + if (Locale != null) + { + p.Add(new KeyValuePair("Locale", Locale)); + } + return p; + } + + + + } + + } diff --git a/src/Twilio/Rest/FlexApi/V2/FlexUserResource.cs b/src/Twilio/Rest/FlexApi/V2/FlexUserResource.cs index d6cfb5200..53f764d64 100644 --- a/src/Twilio/Rest/FlexApi/V2/FlexUserResource.cs +++ b/src/Twilio/Rest/FlexApi/V2/FlexUserResource.cs @@ -103,6 +103,105 @@ public static async System.Threading.Tasks.Task FetchAsync(str return await FetchAsync(options, client); } #endif + + private static Request BuildUpdateRequest(UpdateFlexUserOptions options, ITwilioRestClient client) + { + + string path = "/v2/Instances/{InstanceSid}/Users/{FlexUserSid}"; + + string PathInstanceSid = options.PathInstanceSid; + path = path.Replace("{"+"InstanceSid"+"}", PathInstanceSid); + string PathFlexUserSid = options.PathFlexUserSid; + path = path.Replace("{"+"FlexUserSid"+"}", PathFlexUserSid); + + return new Request( + HttpMethod.Post, + Rest.Domain.FlexApi, + path, + contentType: EnumConstants.ContentTypeEnum.FORM_URLENCODED, + postParams: options.GetParams(), + headerParams: null + ); + } + + /// Update flex user for the given flex user sid + /// Update FlexUser parameters + /// Client to make requests to Twilio + /// A single instance of FlexUser + public static FlexUserResource Update(UpdateFlexUserOptions options, ITwilioRestClient client = null) + { + client = client ?? TwilioClient.GetRestClient(); + var response = client.Request(BuildUpdateRequest(options, client)); + return FromJson(response.Content); + } + + /// Update flex user for the given flex user sid + /// Update FlexUser parameters + /// Client to make requests to Twilio + /// Task that resolves to A single instance of FlexUser + #if !NET35 + public static async System.Threading.Tasks.Task UpdateAsync(UpdateFlexUserOptions options, + ITwilioRestClient client = null) + { + client = client ?? TwilioClient.GetRestClient(); + var response = await client.RequestAsync(BuildUpdateRequest(options, client)); + return FromJson(response.Content); + } + #endif + + /// Update flex user for the given flex user sid + /// The unique ID created by Twilio to identify a Flex instance. + /// The unique id for the flex user. + /// First name of the User. + /// Last name of the User. + /// Email of the User. + /// Friendly name of the User. + /// The unique SID identifier of the Twilio Unified User. + /// The locale preference of the user. + /// Client to make requests to Twilio + /// A single instance of FlexUser + public static FlexUserResource Update( + string pathInstanceSid, + string pathFlexUserSid, + string firstName = null, + string lastName = null, + string email = null, + string friendlyName = null, + string userSid = null, + string locale = null, + ITwilioRestClient client = null) + { + var options = new UpdateFlexUserOptions(pathInstanceSid, pathFlexUserSid){ FirstName = firstName, LastName = lastName, Email = email, FriendlyName = friendlyName, UserSid = userSid, Locale = locale }; + return Update(options, client); + } + + #if !NET35 + /// Update flex user for the given flex user sid + /// The unique ID created by Twilio to identify a Flex instance. + /// The unique id for the flex user. + /// First name of the User. + /// Last name of the User. + /// Email of the User. + /// Friendly name of the User. + /// The unique SID identifier of the Twilio Unified User. + /// The locale preference of the user. + /// Client to make requests to Twilio + /// Task that resolves to A single instance of FlexUser + public static async System.Threading.Tasks.Task UpdateAsync( + string pathInstanceSid, + string pathFlexUserSid, + string firstName = null, + string lastName = null, + string email = null, + string friendlyName = null, + string userSid = null, + string locale = null, + ITwilioRestClient client = null) + { + var options = new UpdateFlexUserOptions(pathInstanceSid, pathFlexUserSid){ FirstName = firstName, LastName = lastName, Email = email, FriendlyName = friendlyName, UserSid = userSid, Locale = locale }; + return await UpdateAsync(options, client); + } + #endif /// /// Converts a JSON string into a FlexUserResource object @@ -186,6 +285,14 @@ public static string ToJson(object model) [JsonProperty("friendly_name")] public string FriendlyName { get; private set; } + /// The locale preference of the user. + [JsonProperty("locale")] + public string Locale { get; private set; } + + /// The roles of the user. + [JsonProperty("roles")] + public List Roles { get; private set; } + /// The date that this user was created, given in ISO 8601 format. [JsonProperty("created_date")] public DateTime? CreatedDate { get; private set; } diff --git a/src/Twilio/Rest/Insights/V1/CallSummariesOptions.cs b/src/Twilio/Rest/Insights/V1/CallSummariesOptions.cs index f8496c520..69375ac53 100644 --- a/src/Twilio/Rest/Insights/V1/CallSummariesOptions.cs +++ b/src/Twilio/Rest/Insights/V1/CallSummariesOptions.cs @@ -45,10 +45,7 @@ public class ReadCallSummariesOptions : ReadOptions /// A destination country code. Based on phone number in To. public string ToCountryCode { get; set; } - /// A boolean flag indicating whether or not the calls were branded using Twilio Branded Calls. - public bool? Branded { get; set; } - - /// A boolean flag indicating whether or not the caller was verified using SHAKEN/STIR. + /// A boolean flag indicating whether or not the caller was verified using SHAKEN/STIR.One of 'true' or 'false'. public bool? VerifiedCaller { get; set; } /// A boolean flag indicating the presence of one or more [Voice Insights Call Tags](https://www.twilio.com/docs/voice/voice-insights/api/call/details-call-tags). @@ -99,6 +96,33 @@ public class ReadCallSummariesOptions : ReadOptions /// A Call Score of the calls. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for the rated call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad]. public string CallScoreAnnotation { get; set; } + /// A boolean flag indicating whether or not the calls were branded using Twilio Branded Calls. One of 'true' or 'false' + public bool? BrandedEnabled { get; set; } + + /// A boolean flag indicating whether or not the phone number had voice integrity enabled.One of 'true' or 'false' + public bool? VoiceIntegrityEnabled { get; set; } + + /// A unique SID identifier of the Branded Call. + public string BrandedBundleSid { get; set; } + + /// A unique SID identifier of the Voice Integrity Profile. + public string VoiceIntegrityBundleSid { get; set; } + + /// A Voice Integrity Use Case . Is of type enum. One of 'abandoned_cart', 'appointment_reminders', 'appointment_scheduling', 'asset_management', 'automated_support', 'call_tracking', 'click_to_call', 'contact_tracing', 'contactless_delivery', 'customer_support', 'dating/social', 'delivery_notifications', 'distance_learning', 'emergency_notifications', 'employee_notifications', 'exam_proctoring', 'field_notifications', 'first_responder', 'fraud_alerts', 'group_messaging', 'identify_&_verification', 'intelligent_routing', 'lead_alerts', 'lead_distribution', 'lead_generation', 'lead_management', 'lead_nurturing', 'marketing_events', 'mass_alerts', 'meetings/collaboration', 'order_notifications', 'outbound_dialer', 'pharmacy', 'phone_system', 'purchase_confirmation', 'remote_appointments', 'rewards_program', 'self-service', 'service_alerts', 'shift_management', 'survey/research', 'telehealth', 'telemarketing', 'therapy_(individual+group)'. + public string VoiceIntegrityUseCase { get; set; } + + /// A Business Identity of the calls. Is of type enum. One of 'direct_customer', 'isv_reseller_or_partner'. + public string BusinessProfileIdentity { get; set; } + + /// A Business Industry of the calls. Is of type enum. One of 'automotive', 'agriculture', 'banking', 'consumer', 'construction', 'education', 'engineering', 'energy', 'oil_and_gas', 'fast_moving_consumer_goods', 'financial', 'fintech', 'food_and_beverage', 'government', 'healthcare', 'hospitality', 'insurance', 'legal', 'manufacturing', 'media', 'online', 'professional_services', 'raw_materials', 'real_estate', 'religion', 'retail', 'jewelry', 'technology', 'telecommunications', 'transportation', 'travel', 'electronics', 'not_for_profit' + public string BusinessProfileIndustry { get; set; } + + /// A unique SID identifier of the Business Profile. + public string BusinessProfileBundleSid { get; set; } + + /// A Business Profile Type of the calls. Is of type enum. One of 'primary', 'secondary'. + public string BusinessProfileType { get; set; } + @@ -132,10 +156,6 @@ public List> GetParams() { p.Add(new KeyValuePair("ToCountryCode", ToCountryCode)); } - if (Branded != null) - { - p.Add(new KeyValuePair("Branded", Branded.Value.ToString().ToLower())); - } if (VerifiedCaller != null) { p.Add(new KeyValuePair("VerifiedCaller", VerifiedCaller.Value.ToString().ToLower())); @@ -204,6 +224,42 @@ public List> GetParams() { p.Add(new KeyValuePair("CallScoreAnnotation", CallScoreAnnotation)); } + if (BrandedEnabled != null) + { + p.Add(new KeyValuePair("BrandedEnabled", BrandedEnabled.Value.ToString().ToLower())); + } + if (VoiceIntegrityEnabled != null) + { + p.Add(new KeyValuePair("VoiceIntegrityEnabled", VoiceIntegrityEnabled.Value.ToString().ToLower())); + } + if (BrandedBundleSid != null) + { + p.Add(new KeyValuePair("BrandedBundleSid", BrandedBundleSid)); + } + if (VoiceIntegrityBundleSid != null) + { + p.Add(new KeyValuePair("VoiceIntegrityBundleSid", VoiceIntegrityBundleSid)); + } + if (VoiceIntegrityUseCase != null) + { + p.Add(new KeyValuePair("VoiceIntegrityUseCase", VoiceIntegrityUseCase)); + } + if (BusinessProfileIdentity != null) + { + p.Add(new KeyValuePair("BusinessProfileIdentity", BusinessProfileIdentity)); + } + if (BusinessProfileIndustry != null) + { + p.Add(new KeyValuePair("BusinessProfileIndustry", BusinessProfileIndustry)); + } + if (BusinessProfileBundleSid != null) + { + p.Add(new KeyValuePair("BusinessProfileBundleSid", BusinessProfileBundleSid)); + } + if (BusinessProfileType != null) + { + p.Add(new KeyValuePair("BusinessProfileType", BusinessProfileType)); + } if (PageSize != null) { p.Add(new KeyValuePair("PageSize", PageSize.ToString())); diff --git a/src/Twilio/Rest/Insights/V1/CallSummariesResource.cs b/src/Twilio/Rest/Insights/V1/CallSummariesResource.cs index e12d42f96..4ca1ecdae 100644 --- a/src/Twilio/Rest/Insights/V1/CallSummariesResource.cs +++ b/src/Twilio/Rest/Insights/V1/CallSummariesResource.cs @@ -173,8 +173,7 @@ public static async System.Threading.Tasks.Task A destination carrier. /// A source country code based on phone number in From. /// A destination country code. Based on phone number in To. - /// A boolean flag indicating whether or not the calls were branded using Twilio Branded Calls. - /// A boolean flag indicating whether or not the caller was verified using SHAKEN/STIR. + /// A boolean flag indicating whether or not the caller was verified using SHAKEN/STIR.One of 'true' or 'false'. /// A boolean flag indicating the presence of one or more [Voice Insights Call Tags](https://www.twilio.com/docs/voice/voice-insights/api/call/details-call-tags). /// A Start time of the calls. xm (x minutes), xh (x hours), xd (x days), 1w, 30m, 3d, 4w or datetime-ISO. Defaults to 4h. /// An End Time of the calls. xm (x minutes), xh (x hours), xd (x days), 1w, 30m, 3d, 4w or datetime-ISO. Defaults to 0m. @@ -191,6 +190,15 @@ public static async System.Threading.Tasks.Task A subjective Quality Issue with the calls. One of `no_quality_issue`, `low_volume`, `choppy_robotic`, `echo`, `dtmf`, `latency`, `owa`, `static_noise`. /// A boolean flag indicating spam calls. /// A Call Score of the calls. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for the rated call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad]. + /// A boolean flag indicating whether or not the calls were branded using Twilio Branded Calls. One of 'true' or 'false' + /// A boolean flag indicating whether or not the phone number had voice integrity enabled.One of 'true' or 'false' + /// A unique SID identifier of the Branded Call. + /// A unique SID identifier of the Voice Integrity Profile. + /// A Voice Integrity Use Case . Is of type enum. One of 'abandoned_cart', 'appointment_reminders', 'appointment_scheduling', 'asset_management', 'automated_support', 'call_tracking', 'click_to_call', 'contact_tracing', 'contactless_delivery', 'customer_support', 'dating/social', 'delivery_notifications', 'distance_learning', 'emergency_notifications', 'employee_notifications', 'exam_proctoring', 'field_notifications', 'first_responder', 'fraud_alerts', 'group_messaging', 'identify_&_verification', 'intelligent_routing', 'lead_alerts', 'lead_distribution', 'lead_generation', 'lead_management', 'lead_nurturing', 'marketing_events', 'mass_alerts', 'meetings/collaboration', 'order_notifications', 'outbound_dialer', 'pharmacy', 'phone_system', 'purchase_confirmation', 'remote_appointments', 'rewards_program', 'self-service', 'service_alerts', 'shift_management', 'survey/research', 'telehealth', 'telemarketing', 'therapy_(individual+group)'. + /// A Business Identity of the calls. Is of type enum. One of 'direct_customer', 'isv_reseller_or_partner'. + /// A Business Industry of the calls. Is of type enum. One of 'automotive', 'agriculture', 'banking', 'consumer', 'construction', 'education', 'engineering', 'energy', 'oil_and_gas', 'fast_moving_consumer_goods', 'financial', 'fintech', 'food_and_beverage', 'government', 'healthcare', 'hospitality', 'insurance', 'legal', 'manufacturing', 'media', 'online', 'professional_services', 'raw_materials', 'real_estate', 'religion', 'retail', 'jewelry', 'technology', 'telecommunications', 'transportation', 'travel', 'electronics', 'not_for_profit' + /// A unique SID identifier of the Business Profile. + /// A Business Profile Type of the calls. Is of type enum. One of 'primary', 'secondary'. /// How many resources to return in each list page. The default is 50, and the maximum is 1000. /// Record limit /// Client to make requests to Twilio @@ -202,7 +210,6 @@ public static ResourceSet Read( string toCarrier = null, string fromCountryCode = null, string toCountryCode = null, - bool? branded = null, bool? verifiedCaller = null, bool? hasTag = null, string startTime = null, @@ -220,11 +227,20 @@ public static ResourceSet Read( string qualityIssueAnnotation = null, bool? spamAnnotation = null, string callScoreAnnotation = null, + bool? brandedEnabled = null, + bool? voiceIntegrityEnabled = null, + string brandedBundleSid = null, + string voiceIntegrityBundleSid = null, + string voiceIntegrityUseCase = null, + string businessProfileIdentity = null, + string businessProfileIndustry = null, + string businessProfileBundleSid = null, + string businessProfileType = null, int? pageSize = null, long? limit = null, ITwilioRestClient client = null) { - var options = new ReadCallSummariesOptions(){ From = from, To = to, FromCarrier = fromCarrier, ToCarrier = toCarrier, FromCountryCode = fromCountryCode, ToCountryCode = toCountryCode, Branded = branded, VerifiedCaller = verifiedCaller, HasTag = hasTag, StartTime = startTime, EndTime = endTime, CallType = callType, CallState = callState, Direction = direction, ProcessingState = processingState, SortBy = sortBy, Subaccount = subaccount, AbnormalSession = abnormalSession, AnsweredBy = answeredBy, AnsweredByAnnotation = answeredByAnnotation, ConnectivityIssueAnnotation = connectivityIssueAnnotation, QualityIssueAnnotation = qualityIssueAnnotation, SpamAnnotation = spamAnnotation, CallScoreAnnotation = callScoreAnnotation, PageSize = pageSize, Limit = limit}; + var options = new ReadCallSummariesOptions(){ From = from, To = to, FromCarrier = fromCarrier, ToCarrier = toCarrier, FromCountryCode = fromCountryCode, ToCountryCode = toCountryCode, VerifiedCaller = verifiedCaller, HasTag = hasTag, StartTime = startTime, EndTime = endTime, CallType = callType, CallState = callState, Direction = direction, ProcessingState = processingState, SortBy = sortBy, Subaccount = subaccount, AbnormalSession = abnormalSession, AnsweredBy = answeredBy, AnsweredByAnnotation = answeredByAnnotation, ConnectivityIssueAnnotation = connectivityIssueAnnotation, QualityIssueAnnotation = qualityIssueAnnotation, SpamAnnotation = spamAnnotation, CallScoreAnnotation = callScoreAnnotation, BrandedEnabled = brandedEnabled, VoiceIntegrityEnabled = voiceIntegrityEnabled, BrandedBundleSid = brandedBundleSid, VoiceIntegrityBundleSid = voiceIntegrityBundleSid, VoiceIntegrityUseCase = voiceIntegrityUseCase, BusinessProfileIdentity = businessProfileIdentity, BusinessProfileIndustry = businessProfileIndustry, BusinessProfileBundleSid = businessProfileBundleSid, BusinessProfileType = businessProfileType, PageSize = pageSize, Limit = limit}; return Read(options, client); } @@ -236,8 +252,7 @@ public static ResourceSet Read( /// A destination carrier. /// A source country code based on phone number in From. /// A destination country code. Based on phone number in To. - /// A boolean flag indicating whether or not the calls were branded using Twilio Branded Calls. - /// A boolean flag indicating whether or not the caller was verified using SHAKEN/STIR. + /// A boolean flag indicating whether or not the caller was verified using SHAKEN/STIR.One of 'true' or 'false'. /// A boolean flag indicating the presence of one or more [Voice Insights Call Tags](https://www.twilio.com/docs/voice/voice-insights/api/call/details-call-tags). /// A Start time of the calls. xm (x minutes), xh (x hours), xd (x days), 1w, 30m, 3d, 4w or datetime-ISO. Defaults to 4h. /// An End Time of the calls. xm (x minutes), xh (x hours), xd (x days), 1w, 30m, 3d, 4w or datetime-ISO. Defaults to 0m. @@ -254,6 +269,15 @@ public static ResourceSet Read( /// A subjective Quality Issue with the calls. One of `no_quality_issue`, `low_volume`, `choppy_robotic`, `echo`, `dtmf`, `latency`, `owa`, `static_noise`. /// A boolean flag indicating spam calls. /// A Call Score of the calls. Use a range of 1-5 to indicate the call experience score, with the following mapping as a reference for the rated call [5: Excellent, 4: Good, 3 : Fair, 2 : Poor, 1: Bad]. + /// A boolean flag indicating whether or not the calls were branded using Twilio Branded Calls. One of 'true' or 'false' + /// A boolean flag indicating whether or not the phone number had voice integrity enabled.One of 'true' or 'false' + /// A unique SID identifier of the Branded Call. + /// A unique SID identifier of the Voice Integrity Profile. + /// A Voice Integrity Use Case . Is of type enum. One of 'abandoned_cart', 'appointment_reminders', 'appointment_scheduling', 'asset_management', 'automated_support', 'call_tracking', 'click_to_call', 'contact_tracing', 'contactless_delivery', 'customer_support', 'dating/social', 'delivery_notifications', 'distance_learning', 'emergency_notifications', 'employee_notifications', 'exam_proctoring', 'field_notifications', 'first_responder', 'fraud_alerts', 'group_messaging', 'identify_&_verification', 'intelligent_routing', 'lead_alerts', 'lead_distribution', 'lead_generation', 'lead_management', 'lead_nurturing', 'marketing_events', 'mass_alerts', 'meetings/collaboration', 'order_notifications', 'outbound_dialer', 'pharmacy', 'phone_system', 'purchase_confirmation', 'remote_appointments', 'rewards_program', 'self-service', 'service_alerts', 'shift_management', 'survey/research', 'telehealth', 'telemarketing', 'therapy_(individual+group)'. + /// A Business Identity of the calls. Is of type enum. One of 'direct_customer', 'isv_reseller_or_partner'. + /// A Business Industry of the calls. Is of type enum. One of 'automotive', 'agriculture', 'banking', 'consumer', 'construction', 'education', 'engineering', 'energy', 'oil_and_gas', 'fast_moving_consumer_goods', 'financial', 'fintech', 'food_and_beverage', 'government', 'healthcare', 'hospitality', 'insurance', 'legal', 'manufacturing', 'media', 'online', 'professional_services', 'raw_materials', 'real_estate', 'religion', 'retail', 'jewelry', 'technology', 'telecommunications', 'transportation', 'travel', 'electronics', 'not_for_profit' + /// A unique SID identifier of the Business Profile. + /// A Business Profile Type of the calls. Is of type enum. One of 'primary', 'secondary'. /// How many resources to return in each list page. The default is 50, and the maximum is 1000. /// Record limit /// Client to make requests to Twilio @@ -265,7 +289,6 @@ public static async System.Threading.Tasks.Task { - /// A 34 character string that uniquely identifies this Operator Type. + /// Either a 34 character string that uniquely identifies this Operator Type or the unique name that references an Operator Type. public string PathSid { get; } /// Construct a new FetchOperatorTypeOptions - /// A 34 character string that uniquely identifies this Operator Type. + /// Either a 34 character string that uniquely identifies this Operator Type or the unique name that references an Operator Type. public FetchOperatorTypeOptions(string pathSid) { PathSid = pathSid; diff --git a/src/Twilio/Rest/Intelligence/V2/OperatorTypeResource.cs b/src/Twilio/Rest/Intelligence/V2/OperatorTypeResource.cs index 43fb2e03a..72d4382e9 100644 --- a/src/Twilio/Rest/Intelligence/V2/OperatorTypeResource.cs +++ b/src/Twilio/Rest/Intelligence/V2/OperatorTypeResource.cs @@ -120,7 +120,7 @@ public static async System.Threading.Tasks.Task FetchAsync } #endif /// Fetch a specific Operator Type. - /// A 34 character string that uniquely identifies this Operator Type. + /// Either a 34 character string that uniquely identifies this Operator Type or the unique name that references an Operator Type. /// Client to make requests to Twilio /// A single instance of OperatorType public static OperatorTypeResource Fetch( @@ -133,7 +133,7 @@ public static OperatorTypeResource Fetch( #if !NET35 /// Fetch a specific Operator Type. - /// A 34 character string that uniquely identifies this Operator Type. + /// Either a 34 character string that uniquely identifies this Operator Type or the unique name that references an Operator Type. /// Client to make requests to Twilio /// Task that resolves to A single instance of OperatorType public static async System.Threading.Tasks.Task FetchAsync(string pathSid, ITwilioRestClient client = null) diff --git a/src/Twilio/Rest/Intelligence/V2/Transcript/SentenceOptions.cs b/src/Twilio/Rest/Intelligence/V2/Transcript/SentenceOptions.cs index e16b54175..4884413d7 100644 --- a/src/Twilio/Rest/Intelligence/V2/Transcript/SentenceOptions.cs +++ b/src/Twilio/Rest/Intelligence/V2/Transcript/SentenceOptions.cs @@ -33,6 +33,9 @@ public class ReadSentenceOptions : ReadOptions /// Grant access to PII Redacted/Unredacted Sentences. If redaction is enabled, the default is `true` to access redacted sentences. public bool? Redacted { get; set; } + /// Returns word level timestamps information, if word_timestamps is enabled. The default is `false`. + public bool? WordTimestamps { get; set; } + /// Construct a new ListSentenceOptions @@ -52,6 +55,10 @@ public List> GetParams() { p.Add(new KeyValuePair("Redacted", Redacted.Value.ToString().ToLower())); } + if (WordTimestamps != null) + { + p.Add(new KeyValuePair("WordTimestamps", WordTimestamps.Value.ToString().ToLower())); + } if (PageSize != null) { p.Add(new KeyValuePair("PageSize", PageSize.ToString())); diff --git a/src/Twilio/Rest/Intelligence/V2/Transcript/SentenceResource.cs b/src/Twilio/Rest/Intelligence/V2/Transcript/SentenceResource.cs index e13ef317c..efe1cf175 100644 --- a/src/Twilio/Rest/Intelligence/V2/Transcript/SentenceResource.cs +++ b/src/Twilio/Rest/Intelligence/V2/Transcript/SentenceResource.cs @@ -80,6 +80,7 @@ public static async System.Threading.Tasks.Task> R /// Get all Transcript Sentences by TranscriptSid /// The unique SID identifier of the Transcript. /// Grant access to PII Redacted/Unredacted Sentences. If redaction is enabled, the default is `true` to access redacted sentences. + /// Returns word level timestamps information, if word_timestamps is enabled. The default is `false`. /// How many resources to return in each list page. The default is 50, and the maximum is 1000. /// Record limit /// Client to make requests to Twilio @@ -87,11 +88,12 @@ public static async System.Threading.Tasks.Task> R public static ResourceSet Read( string pathTranscriptSid, bool? redacted = null, + bool? wordTimestamps = null, int? pageSize = null, long? limit = null, ITwilioRestClient client = null) { - var options = new ReadSentenceOptions(pathTranscriptSid){ Redacted = redacted, PageSize = pageSize, Limit = limit}; + var options = new ReadSentenceOptions(pathTranscriptSid){ Redacted = redacted, WordTimestamps = wordTimestamps, PageSize = pageSize, Limit = limit}; return Read(options, client); } @@ -99,6 +101,7 @@ public static ResourceSet Read( /// Get all Transcript Sentences by TranscriptSid /// The unique SID identifier of the Transcript. /// Grant access to PII Redacted/Unredacted Sentences. If redaction is enabled, the default is `true` to access redacted sentences. + /// Returns word level timestamps information, if word_timestamps is enabled. The default is `false`. /// How many resources to return in each list page. The default is 50, and the maximum is 1000. /// Record limit /// Client to make requests to Twilio @@ -106,11 +109,12 @@ public static ResourceSet Read( public static async System.Threading.Tasks.Task> ReadAsync( string pathTranscriptSid, bool? redacted = null, + bool? wordTimestamps = null, int? pageSize = null, long? limit = null, ITwilioRestClient client = null) { - var options = new ReadSentenceOptions(pathTranscriptSid){ Redacted = redacted, PageSize = pageSize, Limit = limit}; + var options = new ReadSentenceOptions(pathTranscriptSid){ Redacted = redacted, WordTimestamps = wordTimestamps, PageSize = pageSize, Limit = limit}; return await ReadAsync(options, client); } #endif @@ -226,6 +230,10 @@ public static string ToJson(object model) [JsonProperty("confidence")] public decimal? Confidence { get; private set; } + /// Detailed information for each of the words of the given Sentence. + [JsonProperty("words")] + public List Words { get; private set; } + private SentenceResource() { diff --git a/src/Twilio/Rest/Marketplace/V1/InstalledAddOn/InstalledAddOnUsageOptions.cs b/src/Twilio/Rest/Marketplace/V1/InstalledAddOn/InstalledAddOnUsageOptions.cs index 188f62ea9..20df1f0cf 100644 --- a/src/Twilio/Rest/Marketplace/V1/InstalledAddOn/InstalledAddOnUsageOptions.cs +++ b/src/Twilio/Rest/Marketplace/V1/InstalledAddOn/InstalledAddOnUsageOptions.cs @@ -32,16 +32,16 @@ public class CreateInstalledAddOnUsageOptions : IOptions Construct a new CreateBillingUsageOptions /// - /// - public CreateInstalledAddOnUsageOptions(string pathInstalledAddOnSid, InstalledAddOnUsageResource.CreateBillingUsageRequest createBillingUsageRequest) + /// + public CreateInstalledAddOnUsageOptions(string pathInstalledAddOnSid, InstalledAddOnUsageResource.MarketplaceV1InstalledAddOnInstalledAddOnUsage marketplaceV1InstalledAddOnInstalledAddOnUsage) { PathInstalledAddOnSid = pathInstalledAddOnSid; - CreateBillingUsageRequest = createBillingUsageRequest; + MarketplaceV1InstalledAddOnInstalledAddOnUsage = marketplaceV1InstalledAddOnInstalledAddOnUsage; } @@ -50,9 +50,9 @@ public string GetBody() { string body = ""; - if (CreateBillingUsageRequest != null) + if (MarketplaceV1InstalledAddOnInstalledAddOnUsage != null) { - body = InstalledAddOnUsageResource.ToJson(CreateBillingUsageRequest); + body = InstalledAddOnUsageResource.ToJson(MarketplaceV1InstalledAddOnInstalledAddOnUsage); } return body; } diff --git a/src/Twilio/Rest/Marketplace/V1/InstalledAddOn/InstalledAddOnUsageResource.cs b/src/Twilio/Rest/Marketplace/V1/InstalledAddOn/InstalledAddOnUsageResource.cs index d32f11eea..3d0aae88b 100644 --- a/src/Twilio/Rest/Marketplace/V1/InstalledAddOn/InstalledAddOnUsageResource.cs +++ b/src/Twilio/Rest/Marketplace/V1/InstalledAddOn/InstalledAddOnUsageResource.cs @@ -30,54 +30,54 @@ namespace Twilio.Rest.Marketplace.V1.InstalledAddOn public class InstalledAddOnUsageResource : Resource { - public class CreateBillingUsageRequestBillableItems + public class MarketplaceV1InstalledAddOnInstalledAddOnUsageBillableItems { [JsonProperty("quantity")] private decimal? Quantity {get; set;} [JsonProperty("sid")] private string Sid {get; set;} - public CreateBillingUsageRequestBillableItems() { } + public MarketplaceV1InstalledAddOnInstalledAddOnUsageBillableItems() { } public class Builder { - private CreateBillingUsageRequestBillableItems _createBillingUsageRequestBillableItems = new CreateBillingUsageRequestBillableItems(); + private MarketplaceV1InstalledAddOnInstalledAddOnUsageBillableItems _marketplaceV1InstalledAddOnInstalledAddOnUsageBillableItems = new MarketplaceV1InstalledAddOnInstalledAddOnUsageBillableItems(); public Builder() { } public Builder WithQuantity(decimal? quantity) { - _createBillingUsageRequestBillableItems.Quantity= quantity; + _marketplaceV1InstalledAddOnInstalledAddOnUsageBillableItems.Quantity= quantity; return this; } public Builder WithSid(string sid) { - _createBillingUsageRequestBillableItems.Sid= sid; + _marketplaceV1InstalledAddOnInstalledAddOnUsageBillableItems.Sid= sid; return this; } - public CreateBillingUsageRequestBillableItems Build() + public MarketplaceV1InstalledAddOnInstalledAddOnUsageBillableItems Build() { - return _createBillingUsageRequestBillableItems; + return _marketplaceV1InstalledAddOnInstalledAddOnUsageBillableItems; } } } - public class CreateBillingUsageRequest + public class MarketplaceV1InstalledAddOnInstalledAddOnUsage { [JsonProperty("billable_items")] - private List BillableItems {get; set;} - public CreateBillingUsageRequest() { } + private List BillableItems {get; set;} + public MarketplaceV1InstalledAddOnInstalledAddOnUsage() { } public class Builder { - private CreateBillingUsageRequest _createBillingUsageRequest = new CreateBillingUsageRequest(); + private MarketplaceV1InstalledAddOnInstalledAddOnUsage _marketplaceV1InstalledAddOnInstalledAddOnUsage = new MarketplaceV1InstalledAddOnInstalledAddOnUsage(); public Builder() { } - public Builder WithBillableItems(List billableItems) + public Builder WithBillableItems(List billableItems) { - _createBillingUsageRequest.BillableItems= billableItems; + _marketplaceV1InstalledAddOnInstalledAddOnUsage.BillableItems= billableItems; return this; } - public CreateBillingUsageRequest Build() + public MarketplaceV1InstalledAddOnInstalledAddOnUsage Build() { - return _createBillingUsageRequest; + return _marketplaceV1InstalledAddOnInstalledAddOnUsage; } } } @@ -167,30 +167,30 @@ public static async System.Threading.Tasks.Task Cre /// create /// - /// + /// /// Client to make requests to Twilio /// A single instance of InstalledAddOnUsage public static InstalledAddOnUsageResource Create( string pathInstalledAddOnSid, - InstalledAddOnUsageResource.CreateBillingUsageRequest createBillingUsageRequest, + InstalledAddOnUsageResource.MarketplaceV1InstalledAddOnInstalledAddOnUsage marketplaceV1InstalledAddOnInstalledAddOnUsage, ITwilioRestClient client = null) { - var options = new CreateInstalledAddOnUsageOptions(pathInstalledAddOnSid, createBillingUsageRequest){ }; + var options = new CreateInstalledAddOnUsageOptions(pathInstalledAddOnSid, marketplaceV1InstalledAddOnInstalledAddOnUsage){ }; return Create(options, client); } #if !NET35 /// create /// - /// + /// /// Client to make requests to Twilio /// Task that resolves to A single instance of InstalledAddOnUsage public static async System.Threading.Tasks.Task CreateAsync( string pathInstalledAddOnSid, - InstalledAddOnUsageResource.CreateBillingUsageRequest createBillingUsageRequest, + InstalledAddOnUsageResource.MarketplaceV1InstalledAddOnInstalledAddOnUsage marketplaceV1InstalledAddOnInstalledAddOnUsage, ITwilioRestClient client = null) { - var options = new CreateInstalledAddOnUsageOptions(pathInstalledAddOnSid, createBillingUsageRequest){ }; + var options = new CreateInstalledAddOnUsageOptions(pathInstalledAddOnSid, marketplaceV1InstalledAddOnInstalledAddOnUsage){ }; return await CreateAsync(options, client); } #endif diff --git a/src/Twilio/Rest/Marketplace/V1/ModuleDataManagementOptions.cs b/src/Twilio/Rest/Marketplace/V1/ModuleDataManagementOptions.cs index 533ef6874..8d1846fac 100644 --- a/src/Twilio/Rest/Marketplace/V1/ModuleDataManagementOptions.cs +++ b/src/Twilio/Rest/Marketplace/V1/ModuleDataManagementOptions.cs @@ -23,17 +23,17 @@ namespace Twilio.Rest.Marketplace.V1 { - /// fetch + /// This endpoint returns the data of a given Listing. To find a Listing's SID, use the [Available Add-ons resource](/docs/marketplace/api/available-add-ons) or view its Listing details page in the Console by visiting the [Catalog](https://console.twilio.com/us1/develop/add-ons/catalog) or the [My Listings tab](https://console.twilio.com/us1/develop/add-ons/publish/my-listings) and selecting the Listing. public class FetchModuleDataManagementOptions : IOptions { - + /// The unique identifier of a Listing. public string PathSid { get; } /// Construct a new FetchModuleDataManagementOptions - /// + /// The unique identifier of a Listing. public FetchModuleDataManagementOptions(string pathSid) { PathSid = pathSid; @@ -75,6 +75,9 @@ public class UpdateModuleDataManagementOptions : IOptions Construct a new UpdateModuleDataManagementOptions @@ -110,6 +113,10 @@ public List> GetParams() { p.Add(new KeyValuePair("Support", Support)); } + if (Configuration != null) + { + p.Add(new KeyValuePair("Configuration", Configuration)); + } return p; } diff --git a/src/Twilio/Rest/Marketplace/V1/ModuleDataManagementResource.cs b/src/Twilio/Rest/Marketplace/V1/ModuleDataManagementResource.cs index 0a1224242..6665075ae 100644 --- a/src/Twilio/Rest/Marketplace/V1/ModuleDataManagementResource.cs +++ b/src/Twilio/Rest/Marketplace/V1/ModuleDataManagementResource.cs @@ -51,7 +51,7 @@ private static Request BuildFetchRequest(FetchModuleDataManagementOptions option ); } - /// fetch + /// This endpoint returns the data of a given Listing. To find a Listing's SID, use the [Available Add-ons resource](/docs/marketplace/api/available-add-ons) or view its Listing details page in the Console by visiting the [Catalog](https://console.twilio.com/us1/develop/add-ons/catalog) or the [My Listings tab](https://console.twilio.com/us1/develop/add-ons/publish/my-listings) and selecting the Listing. /// Fetch ModuleDataManagement parameters /// Client to make requests to Twilio /// A single instance of ModuleDataManagement @@ -63,7 +63,7 @@ public static ModuleDataManagementResource Fetch(FetchModuleDataManagementOption } #if !NET35 - /// fetch + /// This endpoint returns the data of a given Listing. To find a Listing's SID, use the [Available Add-ons resource](/docs/marketplace/api/available-add-ons) or view its Listing details page in the Console by visiting the [Catalog](https://console.twilio.com/us1/develop/add-ons/catalog) or the [My Listings tab](https://console.twilio.com/us1/develop/add-ons/publish/my-listings) and selecting the Listing. /// Fetch ModuleDataManagement parameters /// Client to make requests to Twilio /// Task that resolves to A single instance of ModuleDataManagement @@ -75,8 +75,8 @@ public static async System.Threading.Tasks.Task Fe return FromJson(response.Content); } #endif - /// fetch - /// + /// This endpoint returns the data of a given Listing. To find a Listing's SID, use the [Available Add-ons resource](/docs/marketplace/api/available-add-ons) or view its Listing details page in the Console by visiting the [Catalog](https://console.twilio.com/us1/develop/add-ons/catalog) or the [My Listings tab](https://console.twilio.com/us1/develop/add-ons/publish/my-listings) and selecting the Listing. + /// The unique identifier of a Listing. /// Client to make requests to Twilio /// A single instance of ModuleDataManagement public static ModuleDataManagementResource Fetch( @@ -88,8 +88,8 @@ public static ModuleDataManagementResource Fetch( } #if !NET35 - /// fetch - /// + /// This endpoint returns the data of a given Listing. To find a Listing's SID, use the [Available Add-ons resource](/docs/marketplace/api/available-add-ons) or view its Listing details page in the Console by visiting the [Catalog](https://console.twilio.com/us1/develop/add-ons/catalog) or the [My Listings tab](https://console.twilio.com/us1/develop/add-ons/publish/my-listings) and selecting the Listing. + /// The unique identifier of a Listing. /// Client to make requests to Twilio /// Task that resolves to A single instance of ModuleDataManagement public static async System.Threading.Tasks.Task FetchAsync(string pathSid, ITwilioRestClient client = null) @@ -149,6 +149,7 @@ public static async System.Threading.Tasks.Task Up /// /// /// + /// /// Client to make requests to Twilio /// A single instance of ModuleDataManagement public static ModuleDataManagementResource Update( @@ -158,9 +159,10 @@ public static ModuleDataManagementResource Update( string documentation = null, string policies = null, string support = null, + string configuration = null, ITwilioRestClient client = null) { - var options = new UpdateModuleDataManagementOptions(pathSid){ ModuleInfo = moduleInfo, Description = description, Documentation = documentation, Policies = policies, Support = support }; + var options = new UpdateModuleDataManagementOptions(pathSid){ ModuleInfo = moduleInfo, Description = description, Documentation = documentation, Policies = policies, Support = support, Configuration = configuration }; return Update(options, client); } @@ -172,6 +174,7 @@ public static ModuleDataManagementResource Update( /// /// /// + /// /// Client to make requests to Twilio /// Task that resolves to A single instance of ModuleDataManagement public static async System.Threading.Tasks.Task UpdateAsync( @@ -181,9 +184,10 @@ public static async System.Threading.Tasks.Task Up string documentation = null, string policies = null, string support = null, + string configuration = null, ITwilioRestClient client = null) { - var options = new UpdateModuleDataManagementOptions(pathSid){ ModuleInfo = moduleInfo, Description = description, Documentation = documentation, Policies = policies, Support = support }; + var options = new UpdateModuleDataManagementOptions(pathSid){ ModuleInfo = moduleInfo, Description = description, Documentation = documentation, Policies = policies, Support = support, Configuration = configuration }; return await UpdateAsync(options, client); } #endif @@ -222,34 +226,38 @@ public static string ToJson(object model) } - /// The url + /// URL to query the subresource. [JsonProperty("url")] public Uri Url { get; private set; } - /// The sid + /// ModuleSid that identifies this Listing. [JsonProperty("sid")] public string Sid { get; private set; } - /// The description + /// A JSON object describing the module and is displayed under the Description tab of the Module detail page. You can define the main body of the description, highlight key features or aspects of the module and if applicable, provide code samples for developers [JsonProperty("description")] public object Description { get; private set; } - /// The support + /// A JSON object containing information on how customers can obtain support for the module. Use this parameter to provide details such as contact information and support description. [JsonProperty("support")] public object Support { get; private set; } - /// The policies + /// A JSON object describing the module's privacy and legal policies and is displayed under the Policies tab of the Module detail page. The maximum file size for Policies is 5MB [JsonProperty("policies")] public object Policies { get; private set; } - /// The module_info + /// A JSON object containing essential attributes that define a module. This information is presented on the Module detail page in the Twilio Marketplace Catalog. You can pass the following attributes in the JSON object [JsonProperty("module_info")] public object ModuleInfo { get; private set; } - /// The documentation + /// A JSON object for providing comprehensive information, instructions, and resources related to the module [JsonProperty("documentation")] public object Documentation { get; private set; } + /// A JSON object for providing listing specific configuration. Contains button setup, notification url, among others. + [JsonProperty("configuration")] + public object Configuration { get; private set; } + private ModuleDataManagementResource() { diff --git a/src/Twilio/Rest/Marketplace/V1/ReferralConversionOptions.cs b/src/Twilio/Rest/Marketplace/V1/ReferralConversionOptions.cs new file mode 100644 index 000000000..b4290634c --- /dev/null +++ b/src/Twilio/Rest/Marketplace/V1/ReferralConversionOptions.cs @@ -0,0 +1,58 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Marketplace + * This is the public Twilio REST API. + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +using System; +using System.Collections.Generic; +using Twilio.Base; +using Twilio.Converters; + + + + +namespace Twilio.Rest.Marketplace.V1 +{ + + /// create + public class CreateReferralConversionOptions : IOptions + { + + + public ReferralConversionResource.CreateReferralConversionRequest CreateReferralConversionRequest { get; } + + + /// Construct a new CreateReferralConversionOptions + /// + public CreateReferralConversionOptions(ReferralConversionResource.CreateReferralConversionRequest createReferralConversionRequest) + { + CreateReferralConversionRequest = createReferralConversionRequest; + } + + + /// Generate the request body + public string GetBody() + { + string body = ""; + + if (CreateReferralConversionRequest != null) + { + body = ReferralConversionResource.ToJson(CreateReferralConversionRequest); + } + return body; + } + + + } +} + diff --git a/src/Twilio/Rest/Marketplace/V1/ReferralConversionResource.cs b/src/Twilio/Rest/Marketplace/V1/ReferralConversionResource.cs new file mode 100644 index 000000000..960acc595 --- /dev/null +++ b/src/Twilio/Rest/Marketplace/V1/ReferralConversionResource.cs @@ -0,0 +1,172 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Marketplace + * This is the public Twilio REST API. + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +using Newtonsoft.Json; +using System; +using System.Collections.Generic; +using Twilio.Base; +using Twilio.Clients; +using Twilio.Constant; +using Twilio.Converters; +using Twilio.Exceptions; +using Twilio.Http; + + + +namespace Twilio.Rest.Marketplace.V1 +{ + public class ReferralConversionResource : Resource + { + + public class CreateReferralConversionRequest + { + [JsonProperty("referral_account_sid")] + private string ReferralAccountSid {get; set;} + public CreateReferralConversionRequest() { } + public class Builder + { + private CreateReferralConversionRequest _createReferralConversionRequest = new CreateReferralConversionRequest(); + public Builder() + { + } + public Builder WithReferralAccountSid(string referralAccountSid) + { + _createReferralConversionRequest.ReferralAccountSid= referralAccountSid; + return this; + } + public CreateReferralConversionRequest Build() + { + return _createReferralConversionRequest; + } + } + } + + + + + private static Request BuildCreateRequest(CreateReferralConversionOptions options, ITwilioRestClient client) + { + + string path = "/v1/ReferralConversion"; + + + return new Request( + HttpMethod.Post, + Rest.Domain.Marketplace, + path, + + contentType: EnumConstants.ContentTypeEnum.JSON, + body: options.GetBody(), + headerParams: null + ); + } + + /// create + /// Create ReferralConversion parameters + /// Client to make requests to Twilio + /// A single instance of ReferralConversion + public static ReferralConversionResource Create(CreateReferralConversionOptions options, ITwilioRestClient client = null) + { + client = client ?? TwilioClient.GetRestClient(); + var response = client.Request(BuildCreateRequest(options, client)); + return FromJson(response.Content); + } + + #if !NET35 + /// create + /// Create ReferralConversion parameters + /// Client to make requests to Twilio + /// Task that resolves to A single instance of ReferralConversion + public static async System.Threading.Tasks.Task CreateAsync(CreateReferralConversionOptions options, + ITwilioRestClient client = null) + { + client = client ?? TwilioClient.GetRestClient(); + var response = await client.RequestAsync(BuildCreateRequest(options, client)); + return FromJson(response.Content); + } + #endif + + /// create + /// + /// Client to make requests to Twilio + /// A single instance of ReferralConversion + public static ReferralConversionResource Create( + ReferralConversionResource.CreateReferralConversionRequest createReferralConversionRequest, + ITwilioRestClient client = null) + { + var options = new CreateReferralConversionOptions(createReferralConversionRequest){ }; + return Create(options, client); + } + + #if !NET35 + /// create + /// + /// Client to make requests to Twilio + /// Task that resolves to A single instance of ReferralConversion + public static async System.Threading.Tasks.Task CreateAsync( + ReferralConversionResource.CreateReferralConversionRequest createReferralConversionRequest, + ITwilioRestClient client = null) + { + var options = new CreateReferralConversionOptions(createReferralConversionRequest){ }; + return await CreateAsync(options, client); + } + #endif + + /// + /// Converts a JSON string into a ReferralConversionResource object + /// + /// Raw JSON string + /// ReferralConversionResource object represented by the provided JSON + public static ReferralConversionResource FromJson(string json) + { + try + { + return JsonConvert.DeserializeObject(json); + } + catch (JsonException e) + { + throw new ApiException(e.Message, e); + } + } + /// + /// Converts an object into a json string + /// + /// C# model + /// JSON string + public static string ToJson(object model) + { + try + { + return JsonConvert.SerializeObject(model); + } + catch (JsonException e) + { + throw new ApiException(e.Message, e); + } + } + + + /// The converted_account_sid + [JsonProperty("converted_account_sid")] + public string ConvertedAccountSid { get; private set; } + + + + private ReferralConversionResource() { + + } + } +} + diff --git a/src/Twilio/Rest/Messaging/V1/ExternalCampaignOptions.cs b/src/Twilio/Rest/Messaging/V1/ExternalCampaignOptions.cs index dadf77b8c..bd2eca6b2 100644 --- a/src/Twilio/Rest/Messaging/V1/ExternalCampaignOptions.cs +++ b/src/Twilio/Rest/Messaging/V1/ExternalCampaignOptions.cs @@ -34,6 +34,9 @@ public class CreateExternalCampaignOptions : IOptions /// The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) that the resource is associated with. public string MessagingServiceSid { get; } + /// Customers should use this flag during the ERC registration process to indicate to Twilio that the campaign being registered is undergoing CNP migration. It is important for the user to first trigger the CNP migration process for said campaign in their CSP portal and have Twilio accept the sharing request, before making this api call. + public bool? CnpMigration { get; set; } + /// Construct a new CreateExternalCampaignOptions /// ID of the preregistered campaign. @@ -58,6 +61,10 @@ public List> GetParams() { p.Add(new KeyValuePair("MessagingServiceSid", MessagingServiceSid)); } + if (CnpMigration != null) + { + p.Add(new KeyValuePair("CnpMigration", CnpMigration.Value.ToString().ToLower())); + } return p; } diff --git a/src/Twilio/Rest/Messaging/V1/ExternalCampaignResource.cs b/src/Twilio/Rest/Messaging/V1/ExternalCampaignResource.cs index c77a2b7c8..df90fcee6 100644 --- a/src/Twilio/Rest/Messaging/V1/ExternalCampaignResource.cs +++ b/src/Twilio/Rest/Messaging/V1/ExternalCampaignResource.cs @@ -78,14 +78,16 @@ public static async System.Threading.Tasks.Task Create /// create /// ID of the preregistered campaign. /// The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) that the resource is associated with. + /// Customers should use this flag during the ERC registration process to indicate to Twilio that the campaign being registered is undergoing CNP migration. It is important for the user to first trigger the CNP migration process for said campaign in their CSP portal and have Twilio accept the sharing request, before making this api call. /// Client to make requests to Twilio /// A single instance of ExternalCampaign public static ExternalCampaignResource Create( string campaignId, string messagingServiceSid, + bool? cnpMigration = null, ITwilioRestClient client = null) { - var options = new CreateExternalCampaignOptions(campaignId, messagingServiceSid){ }; + var options = new CreateExternalCampaignOptions(campaignId, messagingServiceSid){ CnpMigration = cnpMigration }; return Create(options, client); } @@ -93,14 +95,16 @@ public static ExternalCampaignResource Create( /// create /// ID of the preregistered campaign. /// The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) that the resource is associated with. + /// Customers should use this flag during the ERC registration process to indicate to Twilio that the campaign being registered is undergoing CNP migration. It is important for the user to first trigger the CNP migration process for said campaign in their CSP portal and have Twilio accept the sharing request, before making this api call. /// Client to make requests to Twilio /// Task that resolves to A single instance of ExternalCampaign public static async System.Threading.Tasks.Task CreateAsync( string campaignId, string messagingServiceSid, + bool? cnpMigration = null, ITwilioRestClient client = null) { - var options = new CreateExternalCampaignOptions(campaignId, messagingServiceSid){ }; + var options = new CreateExternalCampaignOptions(campaignId, messagingServiceSid){ CnpMigration = cnpMigration }; return await CreateAsync(options, client); } #endif diff --git a/src/Twilio/Rest/Messaging/V1/Service/ChannelSenderOptions.cs b/src/Twilio/Rest/Messaging/V1/Service/ChannelSenderOptions.cs index c3f26ada5..3739aeadc 100644 --- a/src/Twilio/Rest/Messaging/V1/Service/ChannelSenderOptions.cs +++ b/src/Twilio/Rest/Messaging/V1/Service/ChannelSenderOptions.cs @@ -23,6 +23,78 @@ namespace Twilio.Rest.Messaging.V1.Service { + + /// create + public class CreateChannelSenderOptions : IOptions + { + + /// The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the resource under. + public string PathMessagingServiceSid { get; } + + /// The SID of the Channel Sender being added to the Service. + public string Sid { get; } + + + /// Construct a new CreateChannelSenderOptions + /// The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the resource under. + /// The SID of the Channel Sender being added to the Service. + public CreateChannelSenderOptions(string pathMessagingServiceSid, string sid) + { + PathMessagingServiceSid = pathMessagingServiceSid; + Sid = sid; + } + + + /// Generate the necessary parameters + public List> GetParams() + { + var p = new List>(); + + if (Sid != null) + { + p.Add(new KeyValuePair("Sid", Sid)); + } + return p; + } + + + + } + /// delete + public class DeleteChannelSenderOptions : IOptions + { + + /// The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the resource from. + public string PathMessagingServiceSid { get; } + + /// The SID of the Channel Sender resource to delete. + public string PathSid { get; } + + + + /// Construct a new DeleteChannelSenderOptions + /// The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the resource from. + /// The SID of the Channel Sender resource to delete. + public DeleteChannelSenderOptions(string pathMessagingServiceSid, string pathSid) + { + PathMessagingServiceSid = pathMessagingServiceSid; + PathSid = pathSid; + } + + + /// Generate the necessary parameters + public List> GetParams() + { + var p = new List>(); + + return p; + } + + + + } + + /// fetch public class FetchChannelSenderOptions : IOptions { diff --git a/src/Twilio/Rest/Messaging/V1/Service/ChannelSenderResource.cs b/src/Twilio/Rest/Messaging/V1/Service/ChannelSenderResource.cs index 1ba0ed783..34d07f9a9 100644 --- a/src/Twilio/Rest/Messaging/V1/Service/ChannelSenderResource.cs +++ b/src/Twilio/Rest/Messaging/V1/Service/ChannelSenderResource.cs @@ -34,6 +34,151 @@ public class ChannelSenderResource : Resource + private static Request BuildCreateRequest(CreateChannelSenderOptions options, ITwilioRestClient client) + { + + string path = "/v1/Services/{MessagingServiceSid}/ChannelSenders"; + + string PathMessagingServiceSid = options.PathMessagingServiceSid; + path = path.Replace("{"+"MessagingServiceSid"+"}", PathMessagingServiceSid); + + return new Request( + HttpMethod.Post, + Rest.Domain.Messaging, + path, + contentType: EnumConstants.ContentTypeEnum.FORM_URLENCODED, + postParams: options.GetParams(), + headerParams: null + ); + } + + /// create + /// Create ChannelSender parameters + /// Client to make requests to Twilio + /// A single instance of ChannelSender + public static ChannelSenderResource Create(CreateChannelSenderOptions options, ITwilioRestClient client = null) + { + client = client ?? TwilioClient.GetRestClient(); + var response = client.Request(BuildCreateRequest(options, client)); + return FromJson(response.Content); + } + + #if !NET35 + /// create + /// Create ChannelSender parameters + /// Client to make requests to Twilio + /// Task that resolves to A single instance of ChannelSender + public static async System.Threading.Tasks.Task CreateAsync(CreateChannelSenderOptions options, + ITwilioRestClient client = null) + { + client = client ?? TwilioClient.GetRestClient(); + var response = await client.RequestAsync(BuildCreateRequest(options, client)); + return FromJson(response.Content); + } + #endif + + /// create + /// The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the resource under. + /// The SID of the Channel Sender being added to the Service. + /// Client to make requests to Twilio + /// A single instance of ChannelSender + public static ChannelSenderResource Create( + string pathMessagingServiceSid, + string sid, + ITwilioRestClient client = null) + { + var options = new CreateChannelSenderOptions(pathMessagingServiceSid, sid){ }; + return Create(options, client); + } + + #if !NET35 + /// create + /// The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to create the resource under. + /// The SID of the Channel Sender being added to the Service. + /// Client to make requests to Twilio + /// Task that resolves to A single instance of ChannelSender + public static async System.Threading.Tasks.Task CreateAsync( + string pathMessagingServiceSid, + string sid, + ITwilioRestClient client = null) + { + var options = new CreateChannelSenderOptions(pathMessagingServiceSid, sid){ }; + return await CreateAsync(options, client); + } + #endif + + /// delete + /// Delete ChannelSender parameters + /// Client to make requests to Twilio + /// A single instance of ChannelSender + private static Request BuildDeleteRequest(DeleteChannelSenderOptions options, ITwilioRestClient client) + { + + string path = "/v1/Services/{MessagingServiceSid}/ChannelSenders/{Sid}"; + + string PathMessagingServiceSid = options.PathMessagingServiceSid; + path = path.Replace("{"+"MessagingServiceSid"+"}", PathMessagingServiceSid); + string PathSid = options.PathSid; + path = path.Replace("{"+"Sid"+"}", PathSid); + + return new Request( + HttpMethod.Delete, + Rest.Domain.Messaging, + path, + queryParams: options.GetParams(), + headerParams: null + ); + } + + /// delete + /// Delete ChannelSender parameters + /// Client to make requests to Twilio + /// A single instance of ChannelSender + public static bool Delete(DeleteChannelSenderOptions options, ITwilioRestClient client = null) + { + client = client ?? TwilioClient.GetRestClient(); + var response = client.Request(BuildDeleteRequest(options, client)); + return response.StatusCode == System.Net.HttpStatusCode.NoContent; + } + + #if !NET35 + /// delete + /// Delete ChannelSender parameters + /// Client to make requests to Twilio + /// Task that resolves to A single instance of ChannelSender + public static async System.Threading.Tasks.Task DeleteAsync(DeleteChannelSenderOptions options, + ITwilioRestClient client = null) + { + client = client ?? TwilioClient.GetRestClient(); + var response = await client.RequestAsync(BuildDeleteRequest(options, client)); + return response.StatusCode == System.Net.HttpStatusCode.NoContent; + } + #endif + + /// delete + /// The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the resource from. + /// The SID of the Channel Sender resource to delete. + /// Client to make requests to Twilio + /// A single instance of ChannelSender + public static bool Delete(string pathMessagingServiceSid, string pathSid, ITwilioRestClient client = null) + { + var options = new DeleteChannelSenderOptions(pathMessagingServiceSid, pathSid) ; + return Delete(options, client); + } + + #if !NET35 + /// delete + /// The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) to delete the resource from. + /// The SID of the Channel Sender resource to delete. + /// Client to make requests to Twilio + /// Task that resolves to A single instance of ChannelSender + public static async System.Threading.Tasks.Task DeleteAsync(string pathMessagingServiceSid, string pathSid, ITwilioRestClient client = null) + { + var options = new DeleteChannelSenderOptions(pathMessagingServiceSid, pathSid) ; + return await DeleteAsync(options, client); + } + #endif + private static Request BuildFetchRequest(FetchChannelSenderOptions options, ITwilioRestClient client) { diff --git a/src/Twilio/Rest/Numbers/V1/PortingPortInPhoneNumberResource.cs b/src/Twilio/Rest/Numbers/V1/PortingPortInPhoneNumberResource.cs index b67938b8c..1c6b29045 100644 --- a/src/Twilio/Rest/Numbers/V1/PortingPortInPhoneNumberResource.cs +++ b/src/Twilio/Rest/Numbers/V1/PortingPortInPhoneNumberResource.cs @@ -210,75 +210,79 @@ public static string ToJson(object model) } - /// The SID of the Port In request. This is a unique identifier of the port in request. + /// The unique identifier for the port in request that this phone number is associated with. [JsonProperty("port_in_request_sid")] public string PortInRequestSid { get; private set; } - /// The SID of the Port In request phone number. This is a unique identifier of the phone number. + /// The unique identifier for this phone number associated with this port in request. [JsonProperty("phone_number_sid")] public string PhoneNumberSid { get; private set; } - /// The url + /// URL reference for this resource. [JsonProperty("url")] public Uri Url { get; private set; } - /// The SID of the account that the phone number belongs to. + /// Account Sid or subaccount where the phone number(s) will be Ported. [JsonProperty("account_sid")] public string AccountSid { get; private set; } - /// The type of the phone number. + /// The number type of the phone number. This can be: toll-free, local, mobile or unknown. This field may be null if the number is not portable or if the portability for a number has not yet been evaluated. [JsonProperty("phone_number_type")] public string PhoneNumberType { get; private set; } - /// The date when the phone number was created. + /// The timestamp for when this port in phone number was created. [JsonProperty("date_created")] public DateTime? DateCreated { get; private set; } - /// The country of the phone number. + /// The ISO country code that this number is associated with. This field may be null if the number is not portable or if the portability for a number has not yet been evaluated. [JsonProperty("country")] public string Country { get; private set; } - /// The phone number is missing required fields. + /// Indicates if the phone number is missing required fields such as a PIN or account number. This field may be null if the number is not portable or if the portability for a number has not yet been evaluated. [JsonProperty("missing_required_fields")] public bool? MissingRequiredFields { get; private set; } - /// The timestamp when the status was last updated. + /// Timestamp indicating when the Port In Phone Number resource was last modified. [JsonProperty("last_updated")] public DateTime? LastUpdated { get; private set; } - /// The phone number. + /// Phone number to be ported. This will be in the E164 Format. [JsonProperty("phone_number")] [JsonConverter(typeof(PhoneNumberConverter))] public Types.PhoneNumber PhoneNumber { get; private set; } - /// The phone number is portable. + /// If the number is portable by Twilio or not. This field may be null if the number portability has not yet been evaluated. If a number is not portable reference the `not_portability_reason_code` and `not_portability_reason` fields for more details [JsonProperty("portable")] public bool? Portable { get; private set; } - /// The reason why the phone number is not portable. + /// The not portability reason code description. This field may be null if the number is portable or if the portability for a number has not yet been evaluated. [JsonProperty("not_portability_reason")] public string NotPortabilityReason { get; private set; } - /// The code of the reason why the phone number is not portable. + /// The not portability reason code. This field may be null if the number is portable or if the portability for a number has not yet been evaluated. [JsonProperty("not_portability_reason_code")] public int? NotPortabilityReasonCode { get; private set; } - /// The status of the phone number in the port in request. + /// The status of the port in phone number. [JsonProperty("port_in_phone_number_status")] public string PortInPhoneNumberStatus { get; private set; } - /// The pin required for the losing carrier to port out the phone number. + /// The pin required by the losing carrier to do the port out. [JsonProperty("port_out_pin")] public int? PortOutPin { get; private set; } - /// The rejection reason returned by the vendor. + /// The description of the rejection reason provided by the losing carrier. This field may be null if the number has not been rejected by the losing carrier. [JsonProperty("rejection_reason")] public string RejectionReason { get; private set; } - /// The rejection reason code returned by the vendor. + /// The code for the rejection reason provided by the losing carrier. This field may be null if the number has not been rejected by the losing carrier. [JsonProperty("rejection_reason_code")] public int? RejectionReasonCode { get; private set; } + /// The timestamp the phone number will be ported. This will only be set once a port date has been confirmed. Not all carriers can guarantee a specific time on the port date. Twilio will try its best to get the port completed by this time on the port date. Please subscribe to webhooks for confirmation on when a port has actually been completed. + [JsonProperty("port_date")] + public DateTime? PortDate { get; private set; } + private PortingPortInPhoneNumberResource() { diff --git a/src/Twilio/Rest/Numbers/V1/PortingPortInResource.cs b/src/Twilio/Rest/Numbers/V1/PortingPortInResource.cs index 9436312b1..ede0864e2 100644 --- a/src/Twilio/Rest/Numbers/V1/PortingPortInResource.cs +++ b/src/Twilio/Rest/Numbers/V1/PortingPortInResource.cs @@ -273,23 +273,23 @@ public static string ToJson(object model) [JsonProperty("url")] public Uri Url { get; private set; } - /// The Account SID that the numbers will be added to after they are ported into Twilio. + /// Account Sid or subaccount where the phone number(s) will be Ported [JsonProperty("account_sid")] public string AccountSid { get; private set; } - /// List of emails for getting notifications about the LOA signing process. Allowed Max 10 emails. + /// Additional emails to send a copy of the signed LOA to. [JsonProperty("notification_emails")] public List NotificationEmails { get; private set; } - /// Minimum number of days in the future (at least 2 days) needs to be established with the Ops team for validation. + /// Target date to port the number. We cannot guarantee that this date will be honored by the other carriers, please work with Ops to get a confirmation of the firm order commitment (FOC) date. Expected format is ISO Local Date, example: ‘2011-12-03`. This date must be at least 7 days in the future for US ports and 10 days in the future for Japanese ports. (This value is only available for custom porting customers.) [JsonProperty("target_port_in_date")] public DateTime? TargetPortInDate { get; private set; } - /// Minimum hour in the future needs to be established with the Ops team for validation. + /// The earliest time that the port should occur on the target port in date. Expected format is ISO Offset Time, example: ‘10:15:00-08:00'. (This value is only available for custom porting customers.) [JsonProperty("target_port_in_time_range_start")] public string TargetPortInTimeRangeStart { get; private set; } - /// Maximum hour in the future needs to be established with the Ops team for validation. + /// The latest time that the port should occur on the target port in date. Expected format is ISO Offset Time, example: ‘10:15:00-08:00'. (This value is only available for custom porting customers.) [JsonProperty("target_port_in_time_range_end")] public string TargetPortInTimeRangeEnd { get; private set; } @@ -297,15 +297,15 @@ public static string ToJson(object model) [JsonProperty("port_in_request_status")] public string PortInRequestStatus { get; private set; } - /// The information for the losing carrier. + /// Details regarding the customer’s information with the losing carrier. These values will be used to generate the letter of authorization and should match the losing carrier’s data as closely as possible to ensure the port is accepted. [JsonProperty("losing_carrier_information")] public object LosingCarrierInformation { get; private set; } - /// The list of phone numbers to Port in. Phone numbers are in E.164 format (e.g. +16175551212). + /// The phone_numbers [JsonProperty("phone_numbers")] public List PhoneNumbers { get; private set; } - /// The list of documents SID referencing a utility bills + /// List of document SIDs for all phone numbers included in the port in request. At least one document SID referring to a document of the type Utility Bill is required. [JsonProperty("documents")] public List Documents { get; private set; } diff --git a/src/Twilio/Rest/Numbers/V1/PortingPortabilityOptions.cs b/src/Twilio/Rest/Numbers/V1/PortingPortabilityOptions.cs index 3d861ea74..8693f1362 100644 --- a/src/Twilio/Rest/Numbers/V1/PortingPortabilityOptions.cs +++ b/src/Twilio/Rest/Numbers/V1/PortingPortabilityOptions.cs @@ -23,20 +23,20 @@ namespace Twilio.Rest.Numbers.V1 { - /// Allows to check if a single phone number can be ported to Twilio or not. + /// Check if a single phone number can be ported to Twilio public class FetchPortingPortabilityOptions : IOptions { - /// The phone number which portability is to be checked. Phone numbers are in E.164 format (e.g. +16175551212). + /// Phone number to check portability in e164 format. public Types.PhoneNumber PathPhoneNumber { get; } - /// The SID of the account where the phone number(s) will be ported. + /// Account Sid to which the number will be ported. This can be used to determine if a sub account already has the number in its inventory or a different sub account. If this is not provided, the authenticated account will be assumed to be the target account. public string TargetAccountSid { get; set; } /// Construct a new FetchPortingPortabilityOptions - /// The phone number which portability is to be checked. Phone numbers are in E.164 format (e.g. +16175551212). + /// Phone number to check portability in e164 format. public FetchPortingPortabilityOptions(Types.PhoneNumber pathPhoneNumber) { PathPhoneNumber = pathPhoneNumber; diff --git a/src/Twilio/Rest/Numbers/V1/PortingPortabilityResource.cs b/src/Twilio/Rest/Numbers/V1/PortingPortabilityResource.cs index a7b13a82b..220a75d64 100644 --- a/src/Twilio/Rest/Numbers/V1/PortingPortabilityResource.cs +++ b/src/Twilio/Rest/Numbers/V1/PortingPortabilityResource.cs @@ -66,7 +66,7 @@ private static Request BuildFetchRequest(FetchPortingPortabilityOptions options, ); } - /// Allows to check if a single phone number can be ported to Twilio or not. + /// Check if a single phone number can be ported to Twilio /// Fetch PortingPortability parameters /// Client to make requests to Twilio /// A single instance of PortingPortability @@ -78,7 +78,7 @@ public static PortingPortabilityResource Fetch(FetchPortingPortabilityOptions op } #if !NET35 - /// Allows to check if a single phone number can be ported to Twilio or not. + /// Check if a single phone number can be ported to Twilio /// Fetch PortingPortability parameters /// Client to make requests to Twilio /// Task that resolves to A single instance of PortingPortability @@ -90,9 +90,9 @@ public static async System.Threading.Tasks.Task Fetc return FromJson(response.Content); } #endif - /// Allows to check if a single phone number can be ported to Twilio or not. - /// The phone number which portability is to be checked. Phone numbers are in E.164 format (e.g. +16175551212). - /// The SID of the account where the phone number(s) will be ported. + /// Check if a single phone number can be ported to Twilio + /// Phone number to check portability in e164 format. + /// Account Sid to which the number will be ported. This can be used to determine if a sub account already has the number in its inventory or a different sub account. If this is not provided, the authenticated account will be assumed to be the target account. /// Client to make requests to Twilio /// A single instance of PortingPortability public static PortingPortabilityResource Fetch( @@ -105,9 +105,9 @@ public static PortingPortabilityResource Fetch( } #if !NET35 - /// Allows to check if a single phone number can be ported to Twilio or not. - /// The phone number which portability is to be checked. Phone numbers are in E.164 format (e.g. +16175551212). - /// The SID of the account where the phone number(s) will be ported. + /// Check if a single phone number can be ported to Twilio + /// Phone number to check portability in e164 format. + /// Account Sid to which the number will be ported. This can be used to determine if a sub account already has the number in its inventory or a different sub account. If this is not provided, the authenticated account will be assumed to be the target account. /// Client to make requests to Twilio /// Task that resolves to A single instance of PortingPortability public static async System.Threading.Tasks.Task FetchAsync(Types.PhoneNumber pathPhoneNumber, string targetAccountSid = null, ITwilioRestClient client = null) @@ -156,15 +156,15 @@ public static string ToJson(object model) [JsonConverter(typeof(PhoneNumberConverter))] public Types.PhoneNumber PhoneNumber { get; private set; } - /// The target account sid to which the number will be ported + /// Account Sid that the phone number belongs to in Twilio. This is only returned for phone numbers that already exist in Twilio’s inventory and belong to your account or sub account. [JsonProperty("account_sid")] public string AccountSid { get; private set; } - /// Boolean flag specifying if phone number is portable or not. + /// Boolean flag indicates if the phone number can be ported into Twilio through the Porting API or not. [JsonProperty("portable")] public bool? Portable { get; private set; } - /// Boolean flag specifying if PIN and account number is required for the phone number. + /// Indicates if the port in process will require a personal identification number (PIN) and an account number for this phone number. If this is true you will be required to submit both a PIN and account number from the losing carrier for this number when opening a port in request. These fields will be required in order to complete the port in process to Twilio. [JsonProperty("pin_and_account_number_required")] public bool? PinAndAccountNumberRequired { get; private set; } @@ -172,7 +172,7 @@ public static string ToJson(object model) [JsonProperty("not_portable_reason")] public string NotPortableReason { get; private set; } - /// The Portability Reason Code for the phone number if it cannot be ported into Twilio, `null` otherwise. One of `22131`, `22132`, `22130`, `22133`, `22102` or `22135`. + /// The Portability Reason Code for the phone number if it cannot be ported into Twilio, `null` otherwise. [JsonProperty("not_portable_reason_code")] public int? NotPortableReasonCode { get; private set; } diff --git a/src/Twilio/Rest/Numbers/V1/PortingWebhookConfigurationDeleteOptions.cs b/src/Twilio/Rest/Numbers/V1/PortingWebhookConfigurationDeleteOptions.cs index bc0fa61f5..93871ddde 100644 --- a/src/Twilio/Rest/Numbers/V1/PortingWebhookConfigurationDeleteOptions.cs +++ b/src/Twilio/Rest/Numbers/V1/PortingWebhookConfigurationDeleteOptions.cs @@ -27,13 +27,13 @@ namespace Twilio.Rest.Numbers.V1 public class DeletePortingWebhookConfigurationDeleteOptions : IOptions { - /// The of the webhook type of the configuration to be deleted + /// The webhook type for the configuration to be delete. `PORT_IN`, `PORT_OUT` public PortingWebhookConfigurationDeleteResource.WebhookTypeEnum PathWebhookType { get; } /// Construct a new DeletePortingWebhookConfigurationDeleteOptions - /// The of the webhook type of the configuration to be deleted + /// The webhook type for the configuration to be delete. `PORT_IN`, `PORT_OUT` public DeletePortingWebhookConfigurationDeleteOptions(PortingWebhookConfigurationDeleteResource.WebhookTypeEnum pathWebhookType) { PathWebhookType = pathWebhookType; diff --git a/src/Twilio/Rest/Numbers/V1/PortingWebhookConfigurationDeleteResource.cs b/src/Twilio/Rest/Numbers/V1/PortingWebhookConfigurationDeleteResource.cs index 64f1b3002..5b811cab6 100644 --- a/src/Twilio/Rest/Numbers/V1/PortingWebhookConfigurationDeleteResource.cs +++ b/src/Twilio/Rest/Numbers/V1/PortingWebhookConfigurationDeleteResource.cs @@ -93,7 +93,7 @@ public static async System.Threading.Tasks.Task DeleteAsync(DeletePortingW #endif /// Allows the client to delete a webhook configuration. - /// The of the webhook type of the configuration to be deleted + /// The webhook type for the configuration to be delete. `PORT_IN`, `PORT_OUT` /// Client to make requests to Twilio /// A single instance of PortingWebhookConfigurationDelete public static bool Delete(PortingWebhookConfigurationDeleteResource.WebhookTypeEnum pathWebhookType, ITwilioRestClient client = null) @@ -104,7 +104,7 @@ public static bool Delete(PortingWebhookConfigurationDeleteResource.WebhookTypeE #if !NET35 /// Allows the client to delete a webhook configuration. - /// The of the webhook type of the configuration to be deleted + /// The webhook type for the configuration to be delete. `PORT_IN`, `PORT_OUT` /// Client to make requests to Twilio /// Task that resolves to A single instance of PortingWebhookConfigurationDelete public static async System.Threading.Tasks.Task DeleteAsync(PortingWebhookConfigurationDeleteResource.WebhookTypeEnum pathWebhookType, ITwilioRestClient client = null) diff --git a/src/Twilio/Rest/Numbers/V1/WebhookOptions.cs b/src/Twilio/Rest/Numbers/V1/PortingWebhookConfigurationFetchOptions.cs similarity index 89% rename from src/Twilio/Rest/Numbers/V1/WebhookOptions.cs rename to src/Twilio/Rest/Numbers/V1/PortingWebhookConfigurationFetchOptions.cs index b4189689b..cf42e711a 100644 --- a/src/Twilio/Rest/Numbers/V1/WebhookOptions.cs +++ b/src/Twilio/Rest/Numbers/V1/PortingWebhookConfigurationFetchOptions.cs @@ -24,7 +24,7 @@ namespace Twilio.Rest.Numbers.V1 { /// Allows to fetch the webhook configuration - public class FetchWebhookOptions : IOptions + public class FetchPortingWebhookConfigurationFetchOptions : IOptions { diff --git a/src/Twilio/Rest/Numbers/V1/WebhookResource.cs b/src/Twilio/Rest/Numbers/V1/PortingWebhookConfigurationFetchResource.cs similarity index 64% rename from src/Twilio/Rest/Numbers/V1/WebhookResource.cs rename to src/Twilio/Rest/Numbers/V1/PortingWebhookConfigurationFetchResource.cs index ab2a27e81..342e8393d 100644 --- a/src/Twilio/Rest/Numbers/V1/WebhookResource.cs +++ b/src/Twilio/Rest/Numbers/V1/PortingWebhookConfigurationFetchResource.cs @@ -27,14 +27,14 @@ namespace Twilio.Rest.Numbers.V1 { - public class WebhookResource : Resource + public class PortingWebhookConfigurationFetchResource : Resource { - private static Request BuildFetchRequest(FetchWebhookOptions options, ITwilioRestClient client) + private static Request BuildFetchRequest(FetchPortingWebhookConfigurationFetchOptions options, ITwilioRestClient client) { string path = "/v1/Porting/Configuration/Webhook"; @@ -50,10 +50,10 @@ private static Request BuildFetchRequest(FetchWebhookOptions options, ITwilioRes } /// Allows to fetch the webhook configuration - /// Fetch Webhook parameters + /// Fetch PortingWebhookConfigurationFetch parameters /// Client to make requests to Twilio - /// A single instance of Webhook - public static WebhookResource Fetch(FetchWebhookOptions options, ITwilioRestClient client = null) + /// A single instance of PortingWebhookConfigurationFetch + public static PortingWebhookConfigurationFetchResource Fetch(FetchPortingWebhookConfigurationFetchOptions options, ITwilioRestClient client = null) { client = client ?? TwilioClient.GetRestClient(); var response = client.Request(BuildFetchRequest(options, client)); @@ -62,10 +62,10 @@ public static WebhookResource Fetch(FetchWebhookOptions options, ITwilioRestClie #if !NET35 /// Allows to fetch the webhook configuration - /// Fetch Webhook parameters + /// Fetch PortingWebhookConfigurationFetch parameters /// Client to make requests to Twilio - /// Task that resolves to A single instance of Webhook - public static async System.Threading.Tasks.Task FetchAsync(FetchWebhookOptions options, + /// Task that resolves to A single instance of PortingWebhookConfigurationFetch + public static async System.Threading.Tasks.Task FetchAsync(FetchPortingWebhookConfigurationFetchOptions options, ITwilioRestClient client = null) { client = client ?? TwilioClient.GetRestClient(); @@ -75,35 +75,35 @@ public static async System.Threading.Tasks.Task FetchAsync(Fetc #endif /// Allows to fetch the webhook configuration /// Client to make requests to Twilio - /// A single instance of Webhook - public static WebhookResource Fetch( + /// A single instance of PortingWebhookConfigurationFetch + public static PortingWebhookConfigurationFetchResource Fetch( ITwilioRestClient client = null) { - var options = new FetchWebhookOptions(){ }; + var options = new FetchPortingWebhookConfigurationFetchOptions(){ }; return Fetch(options, client); } #if !NET35 /// Allows to fetch the webhook configuration /// Client to make requests to Twilio - /// Task that resolves to A single instance of Webhook - public static async System.Threading.Tasks.Task FetchAsync(ITwilioRestClient client = null) + /// Task that resolves to A single instance of PortingWebhookConfigurationFetch + public static async System.Threading.Tasks.Task FetchAsync(ITwilioRestClient client = null) { - var options = new FetchWebhookOptions(){ }; + var options = new FetchPortingWebhookConfigurationFetchOptions(){ }; return await FetchAsync(options, client); } #endif /// - /// Converts a JSON string into a WebhookResource object + /// Converts a JSON string into a PortingWebhookConfigurationFetchResource object /// /// Raw JSON string - /// WebhookResource object represented by the provided JSON - public static WebhookResource FromJson(string json) + /// PortingWebhookConfigurationFetchResource object represented by the provided JSON + public static PortingWebhookConfigurationFetchResource FromJson(string json) { try { - return JsonConvert.DeserializeObject(json); + return JsonConvert.DeserializeObject(json); } catch (JsonException e) { @@ -132,15 +132,15 @@ public static string ToJson(object model) [JsonProperty("url")] public Uri Url { get; private set; } - /// Webhook URL to send a request when a port in request or port in phone number event happens + /// The complete webhook url that will be called when a notification event for port in request or port in phone number happens [JsonProperty("port_in_target_url")] public Uri PortInTargetUrl { get; private set; } - /// Webhook URL to send a request when a port out phone number event happens + /// The complete webhook url that will be called when a notification event for a port out phone number happens. [JsonProperty("port_out_target_url")] public Uri PortOutTargetUrl { get; private set; } - /// List of notification events to send a request to the webhook URL + /// A list to filter what notification events to receive for this account and its sub accounts. If it is an empty list, then it means that there are no filters for the notifications events to send in each webhook and all events will get sent. [JsonProperty("notifications_of")] public List NotificationsOf { get; private set; } @@ -154,7 +154,7 @@ public static string ToJson(object model) - private WebhookResource() { + private PortingWebhookConfigurationFetchResource() { } } diff --git a/src/Twilio/Rest/Numbers/V1/PortingWebhookConfigurationOptions.cs b/src/Twilio/Rest/Numbers/V1/PortingWebhookConfigurationOptions.cs index 26f94cfa7..5fc8d6dc9 100644 --- a/src/Twilio/Rest/Numbers/V1/PortingWebhookConfigurationOptions.cs +++ b/src/Twilio/Rest/Numbers/V1/PortingWebhookConfigurationOptions.cs @@ -24,7 +24,7 @@ namespace Twilio.Rest.Numbers.V1 { - /// Allows to create a new webhook configuration + /// Create a Webhook Configuration public class CreatePortingWebhookConfigurationOptions : IOptions { diff --git a/src/Twilio/Rest/Numbers/V1/PortingWebhookConfigurationResource.cs b/src/Twilio/Rest/Numbers/V1/PortingWebhookConfigurationResource.cs index 6082421b3..ef75540dd 100644 --- a/src/Twilio/Rest/Numbers/V1/PortingWebhookConfigurationResource.cs +++ b/src/Twilio/Rest/Numbers/V1/PortingWebhookConfigurationResource.cs @@ -51,7 +51,7 @@ private static Request BuildCreateRequest(CreatePortingWebhookConfigurationOptio ); } - /// Allows to create a new webhook configuration + /// Create a Webhook Configuration /// Create PortingWebhookConfiguration parameters /// Client to make requests to Twilio /// A single instance of PortingWebhookConfiguration @@ -63,7 +63,7 @@ public static PortingWebhookConfigurationResource Create(CreatePortingWebhookCon } #if !NET35 - /// Allows to create a new webhook configuration + /// Create a Webhook Configuration /// Create PortingWebhookConfiguration parameters /// Client to make requests to Twilio /// Task that resolves to A single instance of PortingWebhookConfiguration @@ -76,7 +76,7 @@ public static async System.Threading.Tasks.Task Allows to create a new webhook configuration + /// Create a Webhook Configuration /// Client to make requests to Twilio /// A single instance of PortingWebhookConfiguration public static PortingWebhookConfigurationResource Create( @@ -87,7 +87,7 @@ public static PortingWebhookConfigurationResource Create( } #if !NET35 - /// Allows to create a new webhook configuration + /// Create a Webhook Configuration /// Client to make requests to Twilio /// Task that resolves to A single instance of PortingWebhookConfiguration public static async System.Threading.Tasks.Task CreateAsync( @@ -136,15 +136,15 @@ public static string ToJson(object model) [JsonProperty("url")] public Uri Url { get; private set; } - /// Webhook URL to send a request when a port in request or port in phone number event happens + /// The complete webhook url that will be called when a notification event for port in request or port in phone number happens [JsonProperty("port_in_target_url")] public Uri PortInTargetUrl { get; private set; } - /// Webhook URL to send a request when a port out phone number event happens + /// The complete webhook url that will be called when a notification event for a port out phone number happens. [JsonProperty("port_out_target_url")] public Uri PortOutTargetUrl { get; private set; } - /// List of notification events to send a request to the webhook URL + /// A list to filter what notification events to receive for this account and its sub accounts. If it is an empty list, then it means that there are no filters for the notifications events to send in each webhook and all events will get sent. [JsonProperty("notifications_of")] public List NotificationsOf { get; private set; } diff --git a/src/Twilio/Rest/Numbers/V1/SigningRequestConfigurationOptions.cs b/src/Twilio/Rest/Numbers/V1/SigningRequestConfigurationOptions.cs index a880664e0..7d3d515f9 100644 --- a/src/Twilio/Rest/Numbers/V1/SigningRequestConfigurationOptions.cs +++ b/src/Twilio/Rest/Numbers/V1/SigningRequestConfigurationOptions.cs @@ -48,5 +48,43 @@ public string GetBody() } + /// Synchronous operation to retrieve configurations for the customer. + public class ReadSigningRequestConfigurationOptions : ReadOptions + { + + /// The country ISO code to apply this configuration, this is an optional field, Example: US, MX + public string Country { get; set; } + + /// The product or service for which is requesting the signature, this is an optional field, Example: Porting, Hosting + public string Product { get; set; } + + + + + + /// Generate the necessary parameters + public List> GetParams() + { + var p = new List>(); + + if (Country != null) + { + p.Add(new KeyValuePair("Country", Country)); + } + if (Product != null) + { + p.Add(new KeyValuePair("Product", Product)); + } + if (PageSize != null) + { + p.Add(new KeyValuePair("PageSize", PageSize.ToString())); + } + return p; + } + + + + } + } diff --git a/src/Twilio/Rest/Numbers/V1/SigningRequestConfigurationResource.cs b/src/Twilio/Rest/Numbers/V1/SigningRequestConfigurationResource.cs index 2fa96a9e3..1b7fca613 100644 --- a/src/Twilio/Rest/Numbers/V1/SigningRequestConfigurationResource.cs +++ b/src/Twilio/Rest/Numbers/V1/SigningRequestConfigurationResource.cs @@ -97,6 +97,134 @@ public static async System.Threading.Tasks.Task Synchronous operation to retrieve configurations for the customer. + /// Read SigningRequestConfiguration parameters + /// Client to make requests to Twilio + /// A single instance of SigningRequestConfiguration + public static ResourceSet Read(ReadSigningRequestConfigurationOptions options, ITwilioRestClient client = null) + { + client = client ?? TwilioClient.GetRestClient(); + var response = client.Request(BuildReadRequest(options, client)); + var page = Page.FromJson("configurations", response.Content); + return new ResourceSet(page, options, client); + } + + #if !NET35 + /// Synchronous operation to retrieve configurations for the customer. + /// Read SigningRequestConfiguration parameters + /// Client to make requests to Twilio + /// Task that resolves to A single instance of SigningRequestConfiguration + public static async System.Threading.Tasks.Task> ReadAsync(ReadSigningRequestConfigurationOptions options, + ITwilioRestClient client = null) + { + client = client ?? TwilioClient.GetRestClient(); + var response = await client.RequestAsync(BuildReadRequest(options, client)); + + var page = Page.FromJson("configurations", response.Content); + return new ResourceSet(page, options, client); + } + #endif + /// Synchronous operation to retrieve configurations for the customer. + /// The country ISO code to apply this configuration, this is an optional field, Example: US, MX + /// The product or service for which is requesting the signature, this is an optional field, Example: Porting, Hosting + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + /// Record limit + /// Client to make requests to Twilio + /// A single instance of SigningRequestConfiguration + public static ResourceSet Read( + string country = null, + string product = null, + int? pageSize = null, + long? limit = null, + ITwilioRestClient client = null) + { + var options = new ReadSigningRequestConfigurationOptions(){ Country = country, Product = product, PageSize = pageSize, Limit = limit}; + return Read(options, client); + } + + #if !NET35 + /// Synchronous operation to retrieve configurations for the customer. + /// The country ISO code to apply this configuration, this is an optional field, Example: US, MX + /// The product or service for which is requesting the signature, this is an optional field, Example: Porting, Hosting + /// How many resources to return in each list page. The default is 50, and the maximum is 1000. + /// Record limit + /// Client to make requests to Twilio + /// Task that resolves to A single instance of SigningRequestConfiguration + public static async System.Threading.Tasks.Task> ReadAsync( + string country = null, + string product = null, + int? pageSize = null, + long? limit = null, + ITwilioRestClient client = null) + { + var options = new ReadSigningRequestConfigurationOptions(){ Country = country, Product = product, PageSize = pageSize, Limit = limit}; + return await ReadAsync(options, client); + } + #endif + + + /// Fetch the target page of records + /// API-generated URL for the requested results page + /// Client to make requests to Twilio + /// The target page of records + public static Page GetPage(string targetUrl, ITwilioRestClient client) + { + client = client ?? TwilioClient.GetRestClient(); + + var request = new Request( + HttpMethod.Get, + targetUrl + ); + + var response = client.Request(request); + return Page.FromJson("configurations", response.Content); + } + + /// Fetch the next page of records + /// current page of records + /// Client to make requests to Twilio + /// The next page of records + public static Page NextPage(Page page, ITwilioRestClient client) + { + var request = new Request( + HttpMethod.Get, + page.GetNextPageUrl(Rest.Domain.Api) + ); + + var response = client.Request(request); + return Page.FromJson("configurations", response.Content); + } + + /// Fetch the previous page of records + /// current page of records + /// Client to make requests to Twilio + /// The previous page of records + public static Page PreviousPage(Page page, ITwilioRestClient client) + { + var request = new Request( + HttpMethod.Get, + page.GetPreviousPageUrl(Rest.Domain.Api) + ); + + var response = client.Request(request); + return Page.FromJson("configurations", response.Content); + } + /// /// Converts a JSON string into a SigningRequestConfigurationResource object diff --git a/src/Twilio/Rest/Numbers/V2/BundleCloneOptions.cs b/src/Twilio/Rest/Numbers/V2/BundleCloneOptions.cs new file mode 100644 index 000000000..2df6ee68e --- /dev/null +++ b/src/Twilio/Rest/Numbers/V2/BundleCloneOptions.cs @@ -0,0 +1,78 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Numbers + * This is the public Twilio REST API. + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +using System; +using System.Collections.Generic; +using Twilio.Base; +using Twilio.Converters; + + + + +namespace Twilio.Rest.Numbers.V2 +{ + + /// Creates a new clone of the Bundle in target Account. It will internally create clones of all the bundle items (identities and documents) of the original bundle + public class CreateBundleCloneOptions : IOptions + { + + /// The unique string that identifies the Bundle to be cloned. + public string PathBundleSid { get; } + + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) where the bundle needs to be cloned. + public string TargetAccountSid { get; } + + /// This is to determine whether the cloned bundle needs to be in draft state or not. + public bool? MoveToDraft { get; set; } + + /// The string that you assigned to describe the cloned bundle. + public string FriendlyName { get; set; } + + + /// Construct a new CreateBundleCloneOptions + /// The unique string that identifies the Bundle to be cloned. + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) where the bundle needs to be cloned. + public CreateBundleCloneOptions(string pathBundleSid, string targetAccountSid) + { + PathBundleSid = pathBundleSid; + TargetAccountSid = targetAccountSid; + } + + + /// Generate the necessary parameters + public List> GetParams() + { + var p = new List>(); + + if (TargetAccountSid != null) + { + p.Add(new KeyValuePair("TargetAccountSid", TargetAccountSid)); + } + if (MoveToDraft != null) + { + p.Add(new KeyValuePair("MoveToDraft", MoveToDraft.Value.ToString().ToLower())); + } + if (FriendlyName != null) + { + p.Add(new KeyValuePair("FriendlyName", FriendlyName)); + } + return p; + } + + + + } +} + diff --git a/src/Twilio/Rest/Numbers/V2/BundleCloneResource.cs b/src/Twilio/Rest/Numbers/V2/BundleCloneResource.cs new file mode 100644 index 000000000..f1f288d35 --- /dev/null +++ b/src/Twilio/Rest/Numbers/V2/BundleCloneResource.cs @@ -0,0 +1,220 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Numbers + * This is the public Twilio REST API. + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +using Newtonsoft.Json; +using System; +using System.Collections.Generic; +using Twilio.Base; +using Twilio.Clients; +using Twilio.Constant; +using Twilio.Converters; +using Twilio.Exceptions; +using Twilio.Http; +using Twilio.Types; + + +namespace Twilio.Rest.Numbers.V2 +{ + public class BundleCloneResource : Resource + { + + + + [JsonConverter(typeof(StringEnumConverter))] + public sealed class StatusEnum : StringEnum + { + private StatusEnum(string value) : base(value) {} + public StatusEnum() {} + public static implicit operator StatusEnum(string value) + { + return new StatusEnum(value); + } + public static readonly StatusEnum Draft = new StatusEnum("draft"); + public static readonly StatusEnum PendingReview = new StatusEnum("pending-review"); + public static readonly StatusEnum InReview = new StatusEnum("in-review"); + public static readonly StatusEnum TwilioRejected = new StatusEnum("twilio-rejected"); + public static readonly StatusEnum TwilioApproved = new StatusEnum("twilio-approved"); + public static readonly StatusEnum ProvisionallyApproved = new StatusEnum("provisionally-approved"); + + } + + + private static Request BuildCreateRequest(CreateBundleCloneOptions options, ITwilioRestClient client) + { + + string path = "/v2/RegulatoryCompliance/Bundles/{BundleSid}/Clones"; + + string PathBundleSid = options.PathBundleSid; + path = path.Replace("{"+"BundleSid"+"}", PathBundleSid); + + return new Request( + HttpMethod.Post, + Rest.Domain.Numbers, + path, + contentType: EnumConstants.ContentTypeEnum.FORM_URLENCODED, + postParams: options.GetParams(), + headerParams: null + ); + } + + /// Creates a new clone of the Bundle in target Account. It will internally create clones of all the bundle items (identities and documents) of the original bundle + /// Create BundleClone parameters + /// Client to make requests to Twilio + /// A single instance of BundleClone + public static BundleCloneResource Create(CreateBundleCloneOptions options, ITwilioRestClient client = null) + { + client = client ?? TwilioClient.GetRestClient(); + var response = client.Request(BuildCreateRequest(options, client)); + return FromJson(response.Content); + } + + #if !NET35 + /// Creates a new clone of the Bundle in target Account. It will internally create clones of all the bundle items (identities and documents) of the original bundle + /// Create BundleClone parameters + /// Client to make requests to Twilio + /// Task that resolves to A single instance of BundleClone + public static async System.Threading.Tasks.Task CreateAsync(CreateBundleCloneOptions options, + ITwilioRestClient client = null) + { + client = client ?? TwilioClient.GetRestClient(); + var response = await client.RequestAsync(BuildCreateRequest(options, client)); + return FromJson(response.Content); + } + #endif + + /// Creates a new clone of the Bundle in target Account. It will internally create clones of all the bundle items (identities and documents) of the original bundle + /// The unique string that identifies the Bundle to be cloned. + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) where the bundle needs to be cloned. + /// This is to determine whether the cloned bundle needs to be in draft state or not. + /// The string that you assigned to describe the cloned bundle. + /// Client to make requests to Twilio + /// A single instance of BundleClone + public static BundleCloneResource Create( + string pathBundleSid, + string targetAccountSid, + bool? moveToDraft = null, + string friendlyName = null, + ITwilioRestClient client = null) + { + var options = new CreateBundleCloneOptions(pathBundleSid, targetAccountSid){ MoveToDraft = moveToDraft, FriendlyName = friendlyName }; + return Create(options, client); + } + + #if !NET35 + /// Creates a new clone of the Bundle in target Account. It will internally create clones of all the bundle items (identities and documents) of the original bundle + /// The unique string that identifies the Bundle to be cloned. + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) where the bundle needs to be cloned. + /// This is to determine whether the cloned bundle needs to be in draft state or not. + /// The string that you assigned to describe the cloned bundle. + /// Client to make requests to Twilio + /// Task that resolves to A single instance of BundleClone + public static async System.Threading.Tasks.Task CreateAsync( + string pathBundleSid, + string targetAccountSid, + bool? moveToDraft = null, + string friendlyName = null, + ITwilioRestClient client = null) + { + var options = new CreateBundleCloneOptions(pathBundleSid, targetAccountSid){ MoveToDraft = moveToDraft, FriendlyName = friendlyName }; + return await CreateAsync(options, client); + } + #endif + + /// + /// Converts a JSON string into a BundleCloneResource object + /// + /// Raw JSON string + /// BundleCloneResource object represented by the provided JSON + public static BundleCloneResource FromJson(string json) + { + try + { + return JsonConvert.DeserializeObject(json); + } + catch (JsonException e) + { + throw new ApiException(e.Message, e); + } + } + /// + /// Converts an object into a json string + /// + /// C# model + /// JSON string + public static string ToJson(object model) + { + try + { + return JsonConvert.SerializeObject(model); + } + catch (JsonException e) + { + throw new ApiException(e.Message, e); + } + } + + + /// The unique string that we created to identify the Bundle resource. + [JsonProperty("bundle_sid")] + public string BundleSid { get; private set; } + + /// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Bundle resource. + [JsonProperty("account_sid")] + public string AccountSid { get; private set; } + + /// The unique string of a regulation that is associated to the Bundle resource. + [JsonProperty("regulation_sid")] + public string RegulationSid { get; private set; } + + /// The string that you assigned to describe the resource. + [JsonProperty("friendly_name")] + public string FriendlyName { get; private set; } + + + [JsonProperty("status")] + public BundleCloneResource.StatusEnum Status { get; private set; } + + /// The date and time in GMT in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format when the resource will be valid until. + [JsonProperty("valid_until")] + public DateTime? ValidUntil { get; private set; } + + /// The email address that will receive updates when the Bundle resource changes status. + [JsonProperty("email")] + public string Email { get; private set; } + + /// The URL we call to inform your application of status changes. + [JsonProperty("status_callback")] + public Uri StatusCallback { get; private set; } + + /// The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + [JsonProperty("date_created")] + public DateTime? DateCreated { get; private set; } + + /// The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format. + [JsonProperty("date_updated")] + public DateTime? DateUpdated { get; private set; } + + /// The URL of this resource. + [JsonProperty("url")] + public Uri Url { get; private set; } + + + + private BundleCloneResource() { + + } + } +} + diff --git a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/BundleOptions.cs b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/BundleOptions.cs index 612c324ad..a064c67f0 100644 --- a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/BundleOptions.cs +++ b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/BundleOptions.cs @@ -49,6 +49,9 @@ public class CreateBundleOptions : IOptions /// The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `toll free`. public string NumberType { get; set; } + /// Indicates that Bundle is a Test Bundle and will be Auto-Rejected + public bool? IsTest { get; set; } + /// Construct a new CreateBundleOptions /// The string that you assigned to describe the resource. @@ -93,6 +96,10 @@ public List> GetParams() { p.Add(new KeyValuePair("NumberType", NumberType)); } + if (IsTest != null) + { + p.Add(new KeyValuePair("IsTest", IsTest.Value.ToString().ToLower())); + } return p; } diff --git a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/BundleResource.cs b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/BundleResource.cs index 8d109dc03..6d4268ee0 100644 --- a/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/BundleResource.cs +++ b/src/Twilio/Rest/Numbers/V2/RegulatoryCompliance/BundleResource.cs @@ -136,6 +136,7 @@ public static async System.Threading.Tasks.Task CreateAsync(Crea /// The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Bundle's phone number country ownership request. /// /// The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `toll free`. + /// Indicates that Bundle is a Test Bundle and will be Auto-Rejected /// Client to make requests to Twilio /// A single instance of Bundle public static BundleResource Create( @@ -146,9 +147,10 @@ public static BundleResource Create( string isoCountry = null, BundleResource.EndUserTypeEnum endUserType = null, string numberType = null, + bool? isTest = null, ITwilioRestClient client = null) { - var options = new CreateBundleOptions(friendlyName, email){ StatusCallback = statusCallback, RegulationSid = regulationSid, IsoCountry = isoCountry, EndUserType = endUserType, NumberType = numberType }; + var options = new CreateBundleOptions(friendlyName, email){ StatusCallback = statusCallback, RegulationSid = regulationSid, IsoCountry = isoCountry, EndUserType = endUserType, NumberType = numberType, IsTest = isTest }; return Create(options, client); } @@ -161,6 +163,7 @@ public static BundleResource Create( /// The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Bundle's phone number country ownership request. /// /// The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `toll free`. + /// Indicates that Bundle is a Test Bundle and will be Auto-Rejected /// Client to make requests to Twilio /// Task that resolves to A single instance of Bundle public static async System.Threading.Tasks.Task CreateAsync( @@ -171,9 +174,10 @@ public static async System.Threading.Tasks.Task CreateAsync( string isoCountry = null, BundleResource.EndUserTypeEnum endUserType = null, string numberType = null, + bool? isTest = null, ITwilioRestClient client = null) { - var options = new CreateBundleOptions(friendlyName, email){ StatusCallback = statusCallback, RegulationSid = regulationSid, IsoCountry = isoCountry, EndUserType = endUserType, NumberType = numberType }; + var options = new CreateBundleOptions(friendlyName, email){ StatusCallback = statusCallback, RegulationSid = regulationSid, IsoCountry = isoCountry, EndUserType = endUserType, NumberType = numberType, IsTest = isTest }; return await CreateAsync(options, client); } #endif diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskOptions.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskOptions.cs index 5ade4640c..2d4c8d4cc 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskOptions.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskOptions.cs @@ -52,7 +52,7 @@ public class CreateTaskOptions : IOptions /// A SID of a Worker, Queue, or Workflow to route a Task to public string RoutingTarget { get; set; } - /// A boolean indicating if a new task should respect a worker's capacity during assignment + /// A boolean that indicates if the Task should respect a Worker's capacity and availability during assignment. This field can only be used when the `RoutingTarget` field is set to a Worker SID. By setting `IgnoreCapacity` to a value of `true`, `1`, or `yes`, the Task will be routed to the Worker without respecting their capacity and availability. Any other value will enforce the Worker's capacity and availability. The default value of `IgnoreCapacity` is `true` when the `RoutingTarget` is set to a Worker SID. public string IgnoreCapacity { get; set; } /// The SID of the TaskQueue in which the Task belongs diff --git a/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskResource.cs b/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskResource.cs index 732320f76..985b7a641 100644 --- a/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskResource.cs +++ b/src/Twilio/Rest/Taskrouter/V1/Workspace/TaskResource.cs @@ -103,7 +103,7 @@ public static async System.Threading.Tasks.Task CreateAsync(Create /// A URL-encoded JSON string with the attributes of the new task. This value is passed to the Workflow's `assignment_callback_url` when the Task is assigned to a Worker. For example: `{ \\\"task_type\\\": \\\"call\\\", \\\"twilio_call_sid\\\": \\\"CAxxx\\\", \\\"customer_ticket_number\\\": \\\"12345\\\" }`. /// The virtual start time to assign the new task and override the default. When supplied, the new task will have this virtual start time. When not supplied, the new task will have the virtual start time equal to `date_created`. Value can't be in the future. /// A SID of a Worker, Queue, or Workflow to route a Task to - /// A boolean indicating if a new task should respect a worker's capacity during assignment + /// A boolean that indicates if the Task should respect a Worker's capacity and availability during assignment. This field can only be used when the `RoutingTarget` field is set to a Worker SID. By setting `IgnoreCapacity` to a value of `true`, `1`, or `yes`, the Task will be routed to the Worker without respecting their capacity and availability. Any other value will enforce the Worker's capacity and availability. The default value of `IgnoreCapacity` is `true` when the `RoutingTarget` is set to a Worker SID. /// The SID of the TaskQueue in which the Task belongs /// Client to make requests to Twilio /// A single instance of Task @@ -134,7 +134,7 @@ public static TaskResource Create( /// A URL-encoded JSON string with the attributes of the new task. This value is passed to the Workflow's `assignment_callback_url` when the Task is assigned to a Worker. For example: `{ \\\"task_type\\\": \\\"call\\\", \\\"twilio_call_sid\\\": \\\"CAxxx\\\", \\\"customer_ticket_number\\\": \\\"12345\\\" }`. /// The virtual start time to assign the new task and override the default. When supplied, the new task will have this virtual start time. When not supplied, the new task will have the virtual start time equal to `date_created`. Value can't be in the future. /// A SID of a Worker, Queue, or Workflow to route a Task to - /// A boolean indicating if a new task should respect a worker's capacity during assignment + /// A boolean that indicates if the Task should respect a Worker's capacity and availability during assignment. This field can only be used when the `RoutingTarget` field is set to a Worker SID. By setting `IgnoreCapacity` to a value of `true`, `1`, or `yes`, the Task will be routed to the Worker without respecting their capacity and availability. Any other value will enforce the Worker's capacity and availability. The default value of `IgnoreCapacity` is `true` when the `RoutingTarget` is set to a Worker SID. /// The SID of the TaskQueue in which the Task belongs /// Client to make requests to Twilio /// Task that resolves to A single instance of Task @@ -691,7 +691,7 @@ public static string ToJson(object model) [JsonProperty("virtual_start_time")] public DateTime? VirtualStartTime { get; private set; } - /// A boolean indicating if a new task should respect a worker's capacity during assignment + /// A boolean that indicates if the Task should respect a Worker's capacity and availability during assignment. This field can only be used when the `RoutingTarget` field is set to a Worker SID. By setting `IgnoreCapacity` to a value of `true`, `1`, or `yes`, the Task will be routed to the Worker without respecting their capacity and availability. Any other value will enforce the Worker's capacity and availability. The default value of `IgnoreCapacity` is `true` when the `RoutingTarget` is set to a Worker SID. [JsonProperty("ignore_capacity")] public bool? IgnoreCapacity { get; private set; } diff --git a/src/Twilio/Rest/Trusthub/V1/ComplianceInquiriesOptions.cs b/src/Twilio/Rest/Trusthub/V1/ComplianceInquiriesOptions.cs index 4cd5a098d..3bffec7be 100644 --- a/src/Twilio/Rest/Trusthub/V1/ComplianceInquiriesOptions.cs +++ b/src/Twilio/Rest/Trusthub/V1/ComplianceInquiriesOptions.cs @@ -34,6 +34,9 @@ public class CreateComplianceInquiriesOptions : IOptions The email address that approval status updates will be sent to. If not specified, the email address associated with your primary customer profile will be used. public string NotificationEmail { get; set; } + /// Theme id for styling the inquiry form. + public string ThemeSetId { get; set; } + /// Construct a new CreateComplianceInquiryOptions /// The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile. @@ -56,6 +59,10 @@ public List> GetParams() { p.Add(new KeyValuePair("NotificationEmail", NotificationEmail)); } + if (ThemeSetId != null) + { + p.Add(new KeyValuePair("ThemeSetId", ThemeSetId)); + } return p; } @@ -72,6 +79,9 @@ public class UpdateComplianceInquiriesOptions : IOptions The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile. public string PrimaryProfileSid { get; } + /// Theme id for styling the inquiry form. + public string ThemeSetId { get; set; } + /// Construct a new UpdateComplianceInquiryOptions @@ -93,6 +103,10 @@ public List> GetParams() { p.Add(new KeyValuePair("PrimaryProfileSid", PrimaryProfileSid)); } + if (ThemeSetId != null) + { + p.Add(new KeyValuePair("ThemeSetId", ThemeSetId)); + } return p; } diff --git a/src/Twilio/Rest/Trusthub/V1/ComplianceInquiriesResource.cs b/src/Twilio/Rest/Trusthub/V1/ComplianceInquiriesResource.cs index b7e7972d0..607ae67d0 100644 --- a/src/Twilio/Rest/Trusthub/V1/ComplianceInquiriesResource.cs +++ b/src/Twilio/Rest/Trusthub/V1/ComplianceInquiriesResource.cs @@ -78,14 +78,16 @@ public static async System.Threading.Tasks.Task Cre /// Create a new Compliance Inquiry for the authenticated account. This is necessary to start a new embedded session. /// The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile. /// The email address that approval status updates will be sent to. If not specified, the email address associated with your primary customer profile will be used. + /// Theme id for styling the inquiry form. /// Client to make requests to Twilio /// A single instance of ComplianceInquiries public static ComplianceInquiriesResource Create( string primaryProfileSid, string notificationEmail = null, + string themeSetId = null, ITwilioRestClient client = null) { - var options = new CreateComplianceInquiriesOptions(primaryProfileSid){ NotificationEmail = notificationEmail }; + var options = new CreateComplianceInquiriesOptions(primaryProfileSid){ NotificationEmail = notificationEmail, ThemeSetId = themeSetId }; return Create(options, client); } @@ -93,14 +95,16 @@ public static ComplianceInquiriesResource Create( /// Create a new Compliance Inquiry for the authenticated account. This is necessary to start a new embedded session. /// The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile. /// The email address that approval status updates will be sent to. If not specified, the email address associated with your primary customer profile will be used. + /// Theme id for styling the inquiry form. /// Client to make requests to Twilio /// Task that resolves to A single instance of ComplianceInquiries public static async System.Threading.Tasks.Task CreateAsync( string primaryProfileSid, string notificationEmail = null, + string themeSetId = null, ITwilioRestClient client = null) { - var options = new CreateComplianceInquiriesOptions(primaryProfileSid){ NotificationEmail = notificationEmail }; + var options = new CreateComplianceInquiriesOptions(primaryProfileSid){ NotificationEmail = notificationEmail, ThemeSetId = themeSetId }; return await CreateAsync(options, client); } #endif @@ -151,14 +155,16 @@ public static async System.Threading.Tasks.Task Upd /// Resume a specific Compliance Inquiry that has expired, or re-open a rejected Compliance Inquiry for editing. /// The unique CustomerId matching the Customer Profile/Compliance Inquiry that should be resumed or resubmitted. This value will have been returned by the initial Compliance Inquiry creation call. /// The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile. + /// Theme id for styling the inquiry form. /// Client to make requests to Twilio /// A single instance of ComplianceInquiries public static ComplianceInquiriesResource Update( string pathCustomerId, string primaryProfileSid, + string themeSetId = null, ITwilioRestClient client = null) { - var options = new UpdateComplianceInquiriesOptions(pathCustomerId, primaryProfileSid){ }; + var options = new UpdateComplianceInquiriesOptions(pathCustomerId, primaryProfileSid){ ThemeSetId = themeSetId }; return Update(options, client); } @@ -166,14 +172,16 @@ public static ComplianceInquiriesResource Update( /// Resume a specific Compliance Inquiry that has expired, or re-open a rejected Compliance Inquiry for editing. /// The unique CustomerId matching the Customer Profile/Compliance Inquiry that should be resumed or resubmitted. This value will have been returned by the initial Compliance Inquiry creation call. /// The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile. + /// Theme id for styling the inquiry form. /// Client to make requests to Twilio /// Task that resolves to A single instance of ComplianceInquiries public static async System.Threading.Tasks.Task UpdateAsync( string pathCustomerId, string primaryProfileSid, + string themeSetId = null, ITwilioRestClient client = null) { - var options = new UpdateComplianceInquiriesOptions(pathCustomerId, primaryProfileSid){ }; + var options = new UpdateComplianceInquiriesOptions(pathCustomerId, primaryProfileSid){ ThemeSetId = themeSetId }; return await UpdateAsync(options, client); } #endif diff --git a/src/Twilio/Rest/Verify/V2/ServiceOptions.cs b/src/Twilio/Rest/Verify/V2/ServiceOptions.cs index 117311c13..51c685848 100644 --- a/src/Twilio/Rest/Verify/V2/ServiceOptions.cs +++ b/src/Twilio/Rest/Verify/V2/ServiceOptions.cs @@ -52,7 +52,7 @@ public class CreateServiceOptions : IOptions /// Whether to add a security warning at the end of an SMS verification body. Disabled by default and applies only to SMS. Example SMS body: `Your AppName verification code is: 1234. Don’t share this code with anyone; our employees will never ask for the code` public bool? DoNotShareWarningEnabled { get; set; } - /// Whether to allow sending verifications with a custom code instead of a randomly generated one. Not available for all customers. + /// Whether to allow sending verifications with a custom code instead of a randomly generated one. public bool? CustomCodeEnabled { get; set; } /// Optional configuration for the Push factors. If true, include the date in the Challenge's response. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: false. **Deprecated** do not use this parameter. This timestamp value is the same one as the one found in `date_created`, please use that one instead. @@ -303,7 +303,7 @@ public class UpdateServiceOptions : IOptions /// Whether to add a privacy warning at the end of an SMS. **Disabled by default and applies only for SMS.** public bool? DoNotShareWarningEnabled { get; set; } - /// Whether to allow sending verifications with a custom code instead of a randomly generated one. Not available for all customers. + /// Whether to allow sending verifications with a custom code instead of a randomly generated one. public bool? CustomCodeEnabled { get; set; } /// Optional configuration for the Push factors. If true, include the date in the Challenge's response. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: false. **Deprecated** do not use this parameter. diff --git a/src/Twilio/Rest/Verify/V2/ServiceResource.cs b/src/Twilio/Rest/Verify/V2/ServiceResource.cs index 389d234aa..b74fa3e67 100644 --- a/src/Twilio/Rest/Verify/V2/ServiceResource.cs +++ b/src/Twilio/Rest/Verify/V2/ServiceResource.cs @@ -84,7 +84,7 @@ public static async System.Threading.Tasks.Task CreateAsync(Cre /// The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages. /// Whether to pass PSD2 transaction parameters when starting a verification. /// Whether to add a security warning at the end of an SMS verification body. Disabled by default and applies only to SMS. Example SMS body: `Your AppName verification code is: 1234. Don’t share this code with anyone; our employees will never ask for the code` - /// Whether to allow sending verifications with a custom code instead of a randomly generated one. Not available for all customers. + /// Whether to allow sending verifications with a custom code instead of a randomly generated one. /// Optional configuration for the Push factors. If true, include the date in the Challenge's response. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: false. **Deprecated** do not use this parameter. This timestamp value is the same one as the one found in `date_created`, please use that one instead. /// Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) /// Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) @@ -135,7 +135,7 @@ public static ServiceResource Create( /// The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages. /// Whether to pass PSD2 transaction parameters when starting a verification. /// Whether to add a security warning at the end of an SMS verification body. Disabled by default and applies only to SMS. Example SMS body: `Your AppName verification code is: 1234. Don’t share this code with anyone; our employees will never ask for the code` - /// Whether to allow sending verifications with a custom code instead of a randomly generated one. Not available for all customers. + /// Whether to allow sending verifications with a custom code instead of a randomly generated one. /// Optional configuration for the Push factors. If true, include the date in the Challenge's response. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: false. **Deprecated** do not use this parameter. This timestamp value is the same one as the one found in `date_created`, please use that one instead. /// Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) /// Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) @@ -483,7 +483,7 @@ public static async System.Threading.Tasks.Task UpdateAsync(Upd /// The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages. /// Whether to pass PSD2 transaction parameters when starting a verification. /// Whether to add a privacy warning at the end of an SMS. **Disabled by default and applies only for SMS.** - /// Whether to allow sending verifications with a custom code instead of a randomly generated one. Not available for all customers. + /// Whether to allow sending verifications with a custom code instead of a randomly generated one. /// Optional configuration for the Push factors. If true, include the date in the Challenge's response. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: false. **Deprecated** do not use this parameter. /// Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) /// Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) @@ -536,7 +536,7 @@ public static ServiceResource Update( /// The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages. /// Whether to pass PSD2 transaction parameters when starting a verification. /// Whether to add a privacy warning at the end of an SMS. **Disabled by default and applies only for SMS.** - /// Whether to allow sending verifications with a custom code instead of a randomly generated one. Not available for all customers. + /// Whether to allow sending verifications with a custom code instead of a randomly generated one. /// Optional configuration for the Push factors. If true, include the date in the Challenge's response. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: false. **Deprecated** do not use this parameter. /// Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) /// Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource) @@ -653,7 +653,7 @@ public static string ToJson(object model) [JsonProperty("do_not_share_warning_enabled")] public bool? DoNotShareWarningEnabled { get; private set; } - /// Whether to allow sending verifications with a custom code instead of a randomly generated one. Not available for all customers. + /// Whether to allow sending verifications with a custom code instead of a randomly generated one. [JsonProperty("custom_code_enabled")] public bool? CustomCodeEnabled { get; private set; }