twilio-ruby 7.10.1 → 7.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.github/workflows/test-and-deploy.yml +2 -1
- data/CHANGES.md +55 -0
- data/Dockerfile +1 -1
- data/README.md +2 -2
- data/cluster/cluster_oauth_spec.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +14 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb +12 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +8 -8
- data/lib/twilio-ruby/rest/flex_api/v1/create_flex_instance.rb +1 -1
- data/lib/twilio-ruby/rest/intelligence/v2/operator_type.rb +12 -4
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +93 -19
- data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +21 -21
- data/lib/twilio-ruby/rest/messaging/v2/channels_sender.rb +2 -2
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +20 -4
- data/lib/twilio-ruby/rest/video/v1/room/transcriptions.rb +12 -3
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +4 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 13c4709c6208db756865224064d01e60be340e51f1ecc0823fc96f01a8d9ca37
|
|
4
|
+
data.tar.gz: ccd4bb2e2e0d2bbad9a6dd7ab36650b54bda1da402f40dd6f629ad11d404aeac
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e39c2169a525f1f4415b19bd78c195db07fa6cbefa06e84401ebc4273c6d682ccea49005d5ae79e1615bb241947fd8b8148cd33aedd4e8b750c8349b7c42b4c5
|
|
7
|
+
data.tar.gz: 53cc22ff9d0221c5476bbd36d7aa99c4f240c807e59f4d0d2221c4ca418d3083473595d7e56d14a4330996d041e49ff65ea0df3c65c1ddccc0502c92b8a80a74
|
|
@@ -90,7 +90,7 @@ jobs:
|
|
|
90
90
|
- name: Set up Ruby
|
|
91
91
|
uses: ruby/setup-ruby@v1
|
|
92
92
|
with:
|
|
93
|
-
ruby-version: 2
|
|
93
|
+
ruby-version: 3.2
|
|
94
94
|
bundler-cache: true
|
|
95
95
|
|
|
96
96
|
- run: bundle install
|
|
@@ -120,6 +120,7 @@ jobs:
|
|
|
120
120
|
touch $HOME/.gem/credentials
|
|
121
121
|
chmod 0600 $HOME/.gem/credentials
|
|
122
122
|
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
|
123
|
+
gem update --system
|
|
123
124
|
gem build *.gemspec
|
|
124
125
|
gem push *.gem
|
|
125
126
|
|
data/CHANGES.md
CHANGED
|
@@ -1,6 +1,61 @@
|
|
|
1
1
|
twilio-ruby changelog
|
|
2
2
|
=====================
|
|
3
3
|
|
|
4
|
+
[2026-03-10] Version 7.10.3
|
|
5
|
+
---------------------------
|
|
6
|
+
**Library - Chore**
|
|
7
|
+
- [PR #781](https://github.com/twilio/twilio-ruby/pull/781): disable oauth message fetching test. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
|
|
8
|
+
|
|
9
|
+
**Twiml**
|
|
10
|
+
- Rename `recording_configuration` to `recording_configuration_id` attribute in `<Conference>`, `<Dial>`, `<Record>` verbs and `<Recording>` noun
|
|
11
|
+
|
|
12
|
+
**Ace**
|
|
13
|
+
- # ACE Signals API Changes
|
|
14
|
+
- ## 2026-02-18
|
|
15
|
+
- Initial release: POST /signals, GET/POST /signals/{signal_id}/results, GET /health
|
|
16
|
+
- Enables OneAdmin integration for synchronous signal ingestion and policy result polling
|
|
17
|
+
- Supports permission-based authorization for signal operations
|
|
18
|
+
- Health endpoint available for monitoring without authentication
|
|
19
|
+
|
|
20
|
+
**Api**
|
|
21
|
+
- Added optional parameter `Confirmation` to Payments create endpoint to enable payment confirmation prompt before gateway submission
|
|
22
|
+
- Added optional parameter `RequireMatchingInputs` to Payments create endpoint for input confirmation in agent-assisted payment flows
|
|
23
|
+
- Added matcher capture types (`payment-card-number-matcher`, `expiration-date-matcher`, `security-code-matcher`, `postal-code-matcher`) to Payments update endpoint
|
|
24
|
+
|
|
25
|
+
**Memory**
|
|
26
|
+
- ## 2026-03-06
|
|
27
|
+
- **Modified 1 path(s)**:
|
|
28
|
+
- `/v1/Stores/{storeId}/Profiles/{profileId}/ConversationSummaries/{summaryId}` (added patch, get)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
[2026-02-18] Version 7.10.2
|
|
32
|
+
---------------------------
|
|
33
|
+
**Api**
|
|
34
|
+
- Remove inequality examples from Calls StartTime and EndTime filter descriptions
|
|
35
|
+
|
|
36
|
+
**Memory**
|
|
37
|
+
- ## 2026-02-06
|
|
38
|
+
- Minor updates (formatting, metadata)
|
|
39
|
+
- ## 2026-02-06
|
|
40
|
+
- Minor updates (formatting, metadata)
|
|
41
|
+
- ## 2026-02-06
|
|
42
|
+
- ## 2026-01-23
|
|
43
|
+
- ## 2026-01-23
|
|
44
|
+
- **Added 3 new path(s)**:
|
|
45
|
+
- `/v1/Stores/{storeId}/Profiles/Imports` (ListProfileImportsV2, CreateProfilesImportV2)
|
|
46
|
+
- `/v1/Stores/{storeId}/Profiles/Imports/{importId}` (FetchProfileImportV2)
|
|
47
|
+
- **Removed 6 path(s)**:
|
|
48
|
+
- `/v1/KnowledgeBases/{kbId}/Knowledge` (ListKnowledge, CreateKnowledge)
|
|
49
|
+
- `/v1/KnowledgeBases/{kbId}/Search` (KnowledgeSearch)
|
|
50
|
+
- `/v1/KnowledgeBases/{kbId}/Knowledge/{knowledgeId}` (RetrieveKnowledge, PatchKnowledge, DeleteKnowledge)
|
|
51
|
+
- `/v1/KnowledgeBases/{kbId}/Knowledge/{knowledgeId}/Chunks` (ListKnowledgeChunks)
|
|
52
|
+
- `/v1/ControlPlane/KnowledgeBases` (ListKnowledgeBases, CreateKnowledgeBase)
|
|
53
|
+
- `/v1/ControlPlane/KnowledgeBases/{kbId}` (GetKnowledgeBase, UpdateKnowledgeBase, DeleteKnowledgeBase)
|
|
54
|
+
- ## 2026-01-05
|
|
55
|
+
- ## 2026-01-05
|
|
56
|
+
- Initial release with 26 paths and 48 operations
|
|
57
|
+
|
|
58
|
+
|
|
4
59
|
[2026-02-05] Version 7.10.1
|
|
5
60
|
---------------------------
|
|
6
61
|
**Library - Fix**
|
data/Dockerfile
CHANGED
data/README.md
CHANGED
|
@@ -39,13 +39,13 @@ This library supports the following Ruby implementations:
|
|
|
39
39
|
To install using [Bundler][bundler] grab the latest stable version:
|
|
40
40
|
|
|
41
41
|
```ruby
|
|
42
|
-
gem 'twilio-ruby', '~> 7.10.
|
|
42
|
+
gem 'twilio-ruby', '~> 7.10.3'
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
|
|
46
46
|
|
|
47
47
|
```bash
|
|
48
|
-
gem install twilio-ruby -v 7.10.
|
|
48
|
+
gem install twilio-ruby -v 7.10.3
|
|
49
49
|
```
|
|
50
50
|
|
|
51
51
|
To build and install the development branch yourself from the latest source:
|
|
@@ -12,8 +12,8 @@ describe 'Cluster Test' do
|
|
|
12
12
|
@client = Twilio::REST::Client.new(@account_sid).credential_provider(@credential)
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
-
it 'can fetch a message' do
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
end
|
|
15
|
+
# it 'can fetch a message' do
|
|
16
|
+
# response = @client.messages(@message_sid).fetch
|
|
17
|
+
# expect(response).to_not be_nil
|
|
18
|
+
# end
|
|
19
19
|
end
|
|
@@ -52,6 +52,8 @@ module Twilio
|
|
|
52
52
|
# @param [String] timeout The number of seconds that <Pay> should wait for the caller to press a digit between each subsequent digit, after the first one, before moving on to validate the digits captured. The default is `5`, maximum is `600`.
|
|
53
53
|
# @param [TokenType] token_type
|
|
54
54
|
# @param [String] valid_card_types Credit card types separated by space that Pay should accept. The default value is `visa mastercard amex`
|
|
55
|
+
# @param [String] require_matching_inputs A comma-separated list of payment information fields that require the caller to enter the same value twice for confirmation. Supported values are `payment-card-number`, `expiration-date`, `security-code`, and `postal-code`.
|
|
56
|
+
# @param [String] confirmation Whether to prompt the caller to confirm their payment information before submitting to the payment gateway. If `true`, the caller will hear the last 4 digits of their card or account number and must press 1 to confirm or 2 to cancel. Default is `false`.
|
|
55
57
|
# @return [PaymentInstance] Created PaymentInstance
|
|
56
58
|
def create(
|
|
57
59
|
idempotency_key: nil,
|
|
@@ -69,7 +71,9 @@ module Twilio
|
|
|
69
71
|
security_code: :unset,
|
|
70
72
|
timeout: :unset,
|
|
71
73
|
token_type: :unset,
|
|
72
|
-
valid_card_types: :unset
|
|
74
|
+
valid_card_types: :unset,
|
|
75
|
+
require_matching_inputs: :unset,
|
|
76
|
+
confirmation: :unset
|
|
73
77
|
)
|
|
74
78
|
|
|
75
79
|
data = Twilio::Values.of({
|
|
@@ -89,6 +93,8 @@ module Twilio
|
|
|
89
93
|
'Timeout' => timeout,
|
|
90
94
|
'TokenType' => token_type,
|
|
91
95
|
'ValidCardTypes' => valid_card_types,
|
|
96
|
+
'RequireMatchingInputs' => require_matching_inputs,
|
|
97
|
+
'Confirmation' => confirmation,
|
|
92
98
|
})
|
|
93
99
|
|
|
94
100
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
@@ -124,6 +130,8 @@ module Twilio
|
|
|
124
130
|
# @param [String] timeout The number of seconds that <Pay> should wait for the caller to press a digit between each subsequent digit, after the first one, before moving on to validate the digits captured. The default is `5`, maximum is `600`.
|
|
125
131
|
# @param [TokenType] token_type
|
|
126
132
|
# @param [String] valid_card_types Credit card types separated by space that Pay should accept. The default value is `visa mastercard amex`
|
|
133
|
+
# @param [String] require_matching_inputs A comma-separated list of payment information fields that require the caller to enter the same value twice for confirmation. Supported values are `payment-card-number`, `expiration-date`, `security-code`, and `postal-code`.
|
|
134
|
+
# @param [String] confirmation Whether to prompt the caller to confirm their payment information before submitting to the payment gateway. If `true`, the caller will hear the last 4 digits of their card or account number and must press 1 to confirm or 2 to cancel. Default is `false`.
|
|
127
135
|
# @return [PaymentInstance] Created PaymentInstance
|
|
128
136
|
def create_with_metadata(
|
|
129
137
|
idempotency_key: nil,
|
|
@@ -141,7 +149,9 @@ module Twilio
|
|
|
141
149
|
security_code: :unset,
|
|
142
150
|
timeout: :unset,
|
|
143
151
|
token_type: :unset,
|
|
144
|
-
valid_card_types: :unset
|
|
152
|
+
valid_card_types: :unset,
|
|
153
|
+
require_matching_inputs: :unset,
|
|
154
|
+
confirmation: :unset
|
|
145
155
|
)
|
|
146
156
|
|
|
147
157
|
data = Twilio::Values.of({
|
|
@@ -161,6 +171,8 @@ module Twilio
|
|
|
161
171
|
'Timeout' => timeout,
|
|
162
172
|
'TokenType' => token_type,
|
|
163
173
|
'ValidCardTypes' => valid_card_types,
|
|
174
|
+
'RequireMatchingInputs' => require_matching_inputs,
|
|
175
|
+
'Confirmation' => confirmation,
|
|
164
176
|
})
|
|
165
177
|
|
|
166
178
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
@@ -50,6 +50,8 @@ module Twilio
|
|
|
50
50
|
# @param [String] hints A Phrase contains words and phrase \\\"hints\\\" so that the speech recognition engine is more likely to recognize them.
|
|
51
51
|
# @param [Boolean] enable_automatic_punctuation The provider will add punctuation to recognition result
|
|
52
52
|
# @param [String] intelligence_service The SID or unique name of the [Intelligence Service](https://www.twilio.com/docs/conversational-intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators
|
|
53
|
+
# @param [String] conversation_configuration The ID of the Conversations Configuration for customizing conversation behavior in Intelligence Service
|
|
54
|
+
# @param [String] conversation_id The ID of the Conversation for associating this Transcription with an existing Conversation in Intelligence Service
|
|
53
55
|
# @param [Boolean] enable_provider_data Whether the callback includes raw provider data.
|
|
54
56
|
# @return [TranscriptionInstance] Created TranscriptionInstance
|
|
55
57
|
def create(
|
|
@@ -67,6 +69,8 @@ module Twilio
|
|
|
67
69
|
hints: :unset,
|
|
68
70
|
enable_automatic_punctuation: :unset,
|
|
69
71
|
intelligence_service: :unset,
|
|
72
|
+
conversation_configuration: :unset,
|
|
73
|
+
conversation_id: :unset,
|
|
70
74
|
enable_provider_data: :unset
|
|
71
75
|
)
|
|
72
76
|
|
|
@@ -85,6 +89,8 @@ module Twilio
|
|
|
85
89
|
'Hints' => hints,
|
|
86
90
|
'EnableAutomaticPunctuation' => enable_automatic_punctuation,
|
|
87
91
|
'IntelligenceService' => intelligence_service,
|
|
92
|
+
'ConversationConfiguration' => conversation_configuration,
|
|
93
|
+
'ConversationId' => conversation_id,
|
|
88
94
|
'EnableProviderData' => enable_provider_data,
|
|
89
95
|
})
|
|
90
96
|
|
|
@@ -119,6 +125,8 @@ module Twilio
|
|
|
119
125
|
# @param [String] hints A Phrase contains words and phrase \\\"hints\\\" so that the speech recognition engine is more likely to recognize them.
|
|
120
126
|
# @param [Boolean] enable_automatic_punctuation The provider will add punctuation to recognition result
|
|
121
127
|
# @param [String] intelligence_service The SID or unique name of the [Intelligence Service](https://www.twilio.com/docs/conversational-intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators
|
|
128
|
+
# @param [String] conversation_configuration The ID of the Conversations Configuration for customizing conversation behavior in Intelligence Service
|
|
129
|
+
# @param [String] conversation_id The ID of the Conversation for associating this Transcription with an existing Conversation in Intelligence Service
|
|
122
130
|
# @param [Boolean] enable_provider_data Whether the callback includes raw provider data.
|
|
123
131
|
# @return [TranscriptionInstance] Created TranscriptionInstance
|
|
124
132
|
def create_with_metadata(
|
|
@@ -136,6 +144,8 @@ module Twilio
|
|
|
136
144
|
hints: :unset,
|
|
137
145
|
enable_automatic_punctuation: :unset,
|
|
138
146
|
intelligence_service: :unset,
|
|
147
|
+
conversation_configuration: :unset,
|
|
148
|
+
conversation_id: :unset,
|
|
139
149
|
enable_provider_data: :unset
|
|
140
150
|
)
|
|
141
151
|
|
|
@@ -154,6 +164,8 @@ module Twilio
|
|
|
154
164
|
'Hints' => hints,
|
|
155
165
|
'EnableAutomaticPunctuation' => enable_automatic_punctuation,
|
|
156
166
|
'IntelligenceService' => intelligence_service,
|
|
167
|
+
'ConversationConfiguration' => conversation_configuration,
|
|
168
|
+
'ConversationId' => conversation_id,
|
|
157
169
|
'EnableProviderData' => enable_provider_data,
|
|
158
170
|
})
|
|
159
171
|
|
|
@@ -310,10 +310,10 @@ module Twilio
|
|
|
310
310
|
# @param [String] from Only include calls from this phone number, SIP address, Client identifier or SIM SID.
|
|
311
311
|
# @param [String] parent_call_sid Only include calls spawned by calls with this SID.
|
|
312
312
|
# @param [Status] status The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`.
|
|
313
|
-
# @param [Time] start_time Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date.
|
|
313
|
+
# @param [Time] start_time Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date.
|
|
314
314
|
# @param [Time] start_time_before Only include calls that started before this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started before this date.
|
|
315
315
|
# @param [Time] start_time_after Only include calls that started on or after this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on or after this date.
|
|
316
|
-
# @param [Time] end_time Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date.
|
|
316
|
+
# @param [Time] end_time Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date.
|
|
317
317
|
# @param [Time] end_time_before Only include calls that ended before this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended before this date.
|
|
318
318
|
# @param [Time] end_time_after Only include calls that ended on or after this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on or after this date.
|
|
319
319
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
@@ -348,10 +348,10 @@ module Twilio
|
|
|
348
348
|
# @param [String] from Only include calls from this phone number, SIP address, Client identifier or SIM SID.
|
|
349
349
|
# @param [String] parent_call_sid Only include calls spawned by calls with this SID.
|
|
350
350
|
# @param [Status] status The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`.
|
|
351
|
-
# @param [Time] start_time Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date.
|
|
351
|
+
# @param [Time] start_time Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date.
|
|
352
352
|
# @param [Time] start_time_before Only include calls that started before this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started before this date.
|
|
353
353
|
# @param [Time] start_time_after Only include calls that started on or after this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on or after this date.
|
|
354
|
-
# @param [Time] end_time Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date.
|
|
354
|
+
# @param [Time] end_time Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date.
|
|
355
355
|
# @param [Time] end_time_before Only include calls that ended before this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended before this date.
|
|
356
356
|
# @param [Time] end_time_after Only include calls that ended on or after this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on or after this date.
|
|
357
357
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
@@ -386,10 +386,10 @@ module Twilio
|
|
|
386
386
|
# @param [String] from Only include calls from this phone number, SIP address, Client identifier or SIM SID.
|
|
387
387
|
# @param [String] parent_call_sid Only include calls spawned by calls with this SID.
|
|
388
388
|
# @param [Status] status The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`.
|
|
389
|
-
# @param [Time] start_time Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date.
|
|
389
|
+
# @param [Time] start_time Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date.
|
|
390
390
|
# @param [Time] start_time_before Only include calls that started before this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started before this date.
|
|
391
391
|
# @param [Time] start_time_after Only include calls that started on or after this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on or after this date.
|
|
392
|
-
# @param [Time] end_time Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date.
|
|
392
|
+
# @param [Time] end_time Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date.
|
|
393
393
|
# @param [Time] end_time_before Only include calls that ended before this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended before this date.
|
|
394
394
|
# @param [Time] end_time_after Only include calls that ended on or after this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on or after this date.
|
|
395
395
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
@@ -443,10 +443,10 @@ module Twilio
|
|
|
443
443
|
# @param [String] from Only include calls from this phone number, SIP address, Client identifier or SIM SID.
|
|
444
444
|
# @param [String] parent_call_sid Only include calls spawned by calls with this SID.
|
|
445
445
|
# @param [Status] status The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`.
|
|
446
|
-
# @param [Time] start_time Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date.
|
|
446
|
+
# @param [Time] start_time Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on this date.
|
|
447
447
|
# @param [Time] start_time_before Only include calls that started before this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started before this date.
|
|
448
448
|
# @param [Time] start_time_after Only include calls that started on or after this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that started on or after this date.
|
|
449
|
-
# @param [Time] end_time Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date.
|
|
449
|
+
# @param [Time] end_time Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on this date.
|
|
450
450
|
# @param [Time] end_time_before Only include calls that ended before this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended before this date.
|
|
451
451
|
# @param [Time] end_time_after Only include calls that ended on or after this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only calls that ended on or after this date.
|
|
452
452
|
# @param [String] page_token PageToken provided by the API
|
|
@@ -36,6 +36,7 @@ module Twilio
|
|
|
36
36
|
# Lists OperatorTypeInstance records from the API as a list.
|
|
37
37
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
38
38
|
# memory before returning.
|
|
39
|
+
# @param [String] language_code Returns Operator Types that support the provided language code.
|
|
39
40
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
40
41
|
# guarantees to never return more than limit. Default is no limit
|
|
41
42
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -43,8 +44,9 @@ module Twilio
|
|
|
43
44
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
44
45
|
# efficient page size, i.e. min(limit, 1000)
|
|
45
46
|
# @return [Array] Array of up to limit results
|
|
46
|
-
def list(limit: nil, page_size: nil)
|
|
47
|
+
def list(language_code: :unset, limit: nil, page_size: nil)
|
|
47
48
|
self.stream(
|
|
49
|
+
language_code: language_code,
|
|
48
50
|
limit: limit,
|
|
49
51
|
page_size: page_size
|
|
50
52
|
).entries
|
|
@@ -54,6 +56,7 @@ module Twilio
|
|
|
54
56
|
# Streams Instance records from the API as an Enumerable.
|
|
55
57
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
56
58
|
# is reached.
|
|
59
|
+
# @param [String] language_code Returns Operator Types that support the provided language code.
|
|
57
60
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
58
61
|
# guarantees to never return more than limit. Default is no limit
|
|
59
62
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -61,10 +64,11 @@ module Twilio
|
|
|
61
64
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
62
65
|
# efficient page size, i.e. min(limit, 1000)
|
|
63
66
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
64
|
-
def stream(limit: nil, page_size: nil)
|
|
67
|
+
def stream(language_code: :unset, limit: nil, page_size: nil)
|
|
65
68
|
limits = @version.read_limits(limit, page_size)
|
|
66
69
|
|
|
67
70
|
page = self.page(
|
|
71
|
+
language_code: language_code,
|
|
68
72
|
page_size: limits[:page_size], )
|
|
69
73
|
|
|
70
74
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
|
@@ -72,6 +76,7 @@ module Twilio
|
|
|
72
76
|
|
|
73
77
|
##
|
|
74
78
|
# Lists OperatorTypePageMetadata records from the API as a list.
|
|
79
|
+
# @param [String] language_code Returns Operator Types that support the provided language code.
|
|
75
80
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
76
81
|
# guarantees to never return more than limit. Default is no limit
|
|
77
82
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -79,9 +84,10 @@ module Twilio
|
|
|
79
84
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
80
85
|
# efficient page size, i.e. min(limit, 1000)
|
|
81
86
|
# @return [Array] Array of up to limit results
|
|
82
|
-
def list_with_metadata(limit: nil, page_size: nil)
|
|
87
|
+
def list_with_metadata(language_code: :unset, limit: nil, page_size: nil)
|
|
83
88
|
limits = @version.read_limits(limit, page_size)
|
|
84
89
|
params = Twilio::Values.of({
|
|
90
|
+
'LanguageCode' => language_code,
|
|
85
91
|
|
|
86
92
|
'PageSize' => limits[:page_size],
|
|
87
93
|
});
|
|
@@ -109,12 +115,14 @@ module Twilio
|
|
|
109
115
|
##
|
|
110
116
|
# Retrieve a single page of OperatorTypeInstance records from the API.
|
|
111
117
|
# Request is executed immediately.
|
|
118
|
+
# @param [String] language_code Returns Operator Types that support the provided language code.
|
|
112
119
|
# @param [String] page_token PageToken provided by the API
|
|
113
120
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
114
121
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
115
122
|
# @return [Page] Page of OperatorTypeInstance
|
|
116
|
-
def page(page_token: :unset, page_number: :unset,page_size: :unset)
|
|
123
|
+
def page(language_code: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
|
|
117
124
|
params = Twilio::Values.of({
|
|
125
|
+
'LanguageCode' => language_code,
|
|
118
126
|
'PageToken' => page_token,
|
|
119
127
|
'Page' => page_number,
|
|
120
128
|
'PageSize' => page_size,
|
|
@@ -51,6 +51,9 @@ module Twilio
|
|
|
51
51
|
# @param [Boolean] subscriber_opt_in A boolean that specifies whether campaign has Subscriber Optin or not.
|
|
52
52
|
# @param [Boolean] age_gated A boolean that specifies whether campaign is age gated or not.
|
|
53
53
|
# @param [Boolean] direct_lending A boolean that specifies whether campaign allows direct lending or not.
|
|
54
|
+
# @param [String] privacy_policy_url The URL of the privacy policy for the campaign.
|
|
55
|
+
# @param [String] terms_and_conditions_url The URL of the terms and conditions for the campaign.
|
|
56
|
+
# @param [String] x_twilio_api_version The version of the Messaging API to use for this request
|
|
54
57
|
# @return [UsAppToPersonInstance] Created UsAppToPersonInstance
|
|
55
58
|
def create(
|
|
56
59
|
brand_registration_sid: nil,
|
|
@@ -68,7 +71,10 @@ module Twilio
|
|
|
68
71
|
help_keywords: :unset,
|
|
69
72
|
subscriber_opt_in: :unset,
|
|
70
73
|
age_gated: :unset,
|
|
71
|
-
direct_lending: :unset
|
|
74
|
+
direct_lending: :unset,
|
|
75
|
+
privacy_policy_url: :unset,
|
|
76
|
+
terms_and_conditions_url: :unset,
|
|
77
|
+
x_twilio_api_version: :unset
|
|
72
78
|
)
|
|
73
79
|
|
|
74
80
|
data = Twilio::Values.of({
|
|
@@ -88,9 +94,11 @@ module Twilio
|
|
|
88
94
|
'SubscriberOptIn' => subscriber_opt_in,
|
|
89
95
|
'AgeGated' => age_gated,
|
|
90
96
|
'DirectLending' => direct_lending,
|
|
97
|
+
'PrivacyPolicyUrl' => privacy_policy_url,
|
|
98
|
+
'TermsAndConditionsUrl' => terms_and_conditions_url,
|
|
91
99
|
})
|
|
92
100
|
|
|
93
|
-
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
101
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Api-Version' => x_twilio_api_version, })
|
|
94
102
|
|
|
95
103
|
|
|
96
104
|
|
|
@@ -122,6 +130,9 @@ module Twilio
|
|
|
122
130
|
# @param [Boolean] subscriber_opt_in A boolean that specifies whether campaign has Subscriber Optin or not.
|
|
123
131
|
# @param [Boolean] age_gated A boolean that specifies whether campaign is age gated or not.
|
|
124
132
|
# @param [Boolean] direct_lending A boolean that specifies whether campaign allows direct lending or not.
|
|
133
|
+
# @param [String] privacy_policy_url The URL of the privacy policy for the campaign.
|
|
134
|
+
# @param [String] terms_and_conditions_url The URL of the terms and conditions for the campaign.
|
|
135
|
+
# @param [String] x_twilio_api_version The version of the Messaging API to use for this request
|
|
125
136
|
# @return [UsAppToPersonInstance] Created UsAppToPersonInstance
|
|
126
137
|
def create_with_metadata(
|
|
127
138
|
brand_registration_sid: nil,
|
|
@@ -139,7 +150,10 @@ module Twilio
|
|
|
139
150
|
help_keywords: :unset,
|
|
140
151
|
subscriber_opt_in: :unset,
|
|
141
152
|
age_gated: :unset,
|
|
142
|
-
direct_lending: :unset
|
|
153
|
+
direct_lending: :unset,
|
|
154
|
+
privacy_policy_url: :unset,
|
|
155
|
+
terms_and_conditions_url: :unset,
|
|
156
|
+
x_twilio_api_version: :unset
|
|
143
157
|
)
|
|
144
158
|
|
|
145
159
|
data = Twilio::Values.of({
|
|
@@ -159,9 +173,11 @@ module Twilio
|
|
|
159
173
|
'SubscriberOptIn' => subscriber_opt_in,
|
|
160
174
|
'AgeGated' => age_gated,
|
|
161
175
|
'DirectLending' => direct_lending,
|
|
176
|
+
'PrivacyPolicyUrl' => privacy_policy_url,
|
|
177
|
+
'TermsAndConditionsUrl' => terms_and_conditions_url,
|
|
162
178
|
})
|
|
163
179
|
|
|
164
|
-
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
180
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Api-Version' => x_twilio_api_version, })
|
|
165
181
|
|
|
166
182
|
|
|
167
183
|
|
|
@@ -186,6 +202,7 @@ module Twilio
|
|
|
186
202
|
# Lists UsAppToPersonInstance records from the API as a list.
|
|
187
203
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
188
204
|
# memory before returning.
|
|
205
|
+
# @param [String] x_twilio_api_version The version of the Messaging API to use for this request
|
|
189
206
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
190
207
|
# guarantees to never return more than limit. Default is no limit
|
|
191
208
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -193,8 +210,9 @@ module Twilio
|
|
|
193
210
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
194
211
|
# efficient page size, i.e. min(limit, 1000)
|
|
195
212
|
# @return [Array] Array of up to limit results
|
|
196
|
-
def list(limit: nil, page_size: nil)
|
|
213
|
+
def list(x_twilio_api_version: :unset, limit: nil, page_size: nil)
|
|
197
214
|
self.stream(
|
|
215
|
+
x_twilio_api_version: x_twilio_api_version,
|
|
198
216
|
limit: limit,
|
|
199
217
|
page_size: page_size
|
|
200
218
|
).entries
|
|
@@ -204,6 +222,7 @@ module Twilio
|
|
|
204
222
|
# Streams Instance records from the API as an Enumerable.
|
|
205
223
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
206
224
|
# is reached.
|
|
225
|
+
# @param [String] x_twilio_api_version The version of the Messaging API to use for this request
|
|
207
226
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
208
227
|
# guarantees to never return more than limit. Default is no limit
|
|
209
228
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -211,10 +230,11 @@ module Twilio
|
|
|
211
230
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
212
231
|
# efficient page size, i.e. min(limit, 1000)
|
|
213
232
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
214
|
-
def stream(limit: nil, page_size: nil)
|
|
233
|
+
def stream(x_twilio_api_version: :unset, limit: nil, page_size: nil)
|
|
215
234
|
limits = @version.read_limits(limit, page_size)
|
|
216
235
|
|
|
217
236
|
page = self.page(
|
|
237
|
+
x_twilio_api_version: x_twilio_api_version,
|
|
218
238
|
page_size: limits[:page_size], )
|
|
219
239
|
|
|
220
240
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
|
@@ -222,6 +242,7 @@ module Twilio
|
|
|
222
242
|
|
|
223
243
|
##
|
|
224
244
|
# Lists UsAppToPersonPageMetadata records from the API as a list.
|
|
245
|
+
# @param [String] x_twilio_api_version The version of the Messaging API to use for this request
|
|
225
246
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
226
247
|
# guarantees to never return more than limit. Default is no limit
|
|
227
248
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -229,9 +250,10 @@ module Twilio
|
|
|
229
250
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
230
251
|
# efficient page size, i.e. min(limit, 1000)
|
|
231
252
|
# @return [Array] Array of up to limit results
|
|
232
|
-
def list_with_metadata(limit: nil, page_size: nil)
|
|
253
|
+
def list_with_metadata(x_twilio_api_version: :unset, limit: nil, page_size: nil)
|
|
233
254
|
limits = @version.read_limits(limit, page_size)
|
|
234
255
|
params = Twilio::Values.of({
|
|
256
|
+
'X-Twilio-Api-Version' => x_twilio_api_version,
|
|
235
257
|
|
|
236
258
|
'PageSize' => limits[:page_size],
|
|
237
259
|
});
|
|
@@ -259,12 +281,14 @@ module Twilio
|
|
|
259
281
|
##
|
|
260
282
|
# Retrieve a single page of UsAppToPersonInstance records from the API.
|
|
261
283
|
# Request is executed immediately.
|
|
284
|
+
# @param [String] x_twilio_api_version The version of the Messaging API to use for this request
|
|
262
285
|
# @param [String] page_token PageToken provided by the API
|
|
263
286
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
264
287
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
265
288
|
# @return [Page] Page of UsAppToPersonInstance
|
|
266
|
-
def page(page_token: :unset, page_number: :unset,page_size: :unset)
|
|
289
|
+
def page(x_twilio_api_version: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
|
|
267
290
|
params = Twilio::Values.of({
|
|
291
|
+
'X-Twilio-Api-Version' => x_twilio_api_version,
|
|
268
292
|
'PageToken' => page_token,
|
|
269
293
|
'Page' => page_number,
|
|
270
294
|
'PageSize' => page_size,
|
|
@@ -351,10 +375,13 @@ module Twilio
|
|
|
351
375
|
|
|
352
376
|
##
|
|
353
377
|
# Fetch the UsAppToPersonInstance
|
|
378
|
+
# @param [String] x_twilio_api_version The version of the Messaging API to use for this request
|
|
354
379
|
# @return [UsAppToPersonInstance] Fetched UsAppToPersonInstance
|
|
355
|
-
def fetch
|
|
380
|
+
def fetch(
|
|
381
|
+
x_twilio_api_version: :unset
|
|
382
|
+
)
|
|
356
383
|
|
|
357
|
-
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
384
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Api-Version' => x_twilio_api_version, })
|
|
358
385
|
|
|
359
386
|
|
|
360
387
|
|
|
@@ -371,10 +398,13 @@ module Twilio
|
|
|
371
398
|
|
|
372
399
|
##
|
|
373
400
|
# Fetch the UsAppToPersonInstanceMetadata
|
|
401
|
+
# @param [String] x_twilio_api_version The version of the Messaging API to use for this request
|
|
374
402
|
# @return [UsAppToPersonInstance] Fetched UsAppToPersonInstance
|
|
375
|
-
def fetch_with_metadata
|
|
403
|
+
def fetch_with_metadata(
|
|
404
|
+
x_twilio_api_version: :unset
|
|
405
|
+
)
|
|
376
406
|
|
|
377
|
-
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
407
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Api-Version' => x_twilio_api_version, })
|
|
378
408
|
|
|
379
409
|
|
|
380
410
|
|
|
@@ -404,6 +434,9 @@ module Twilio
|
|
|
404
434
|
# @param [String] description A short description of what this SMS campaign does. Min length: 40 characters. Max length: 4096 characters.
|
|
405
435
|
# @param [Boolean] age_gated A boolean that specifies whether campaign requires age gate for federally legal content.
|
|
406
436
|
# @param [Boolean] direct_lending A boolean that specifies whether campaign allows direct lending or not.
|
|
437
|
+
# @param [String] privacy_policy_url The URL of the privacy policy for the campaign.
|
|
438
|
+
# @param [String] terms_and_conditions_url The URL of the terms and conditions for the campaign.
|
|
439
|
+
# @param [String] x_twilio_api_version The version of the Messaging API to use for this request
|
|
407
440
|
# @return [UsAppToPersonInstance] Updated UsAppToPersonInstance
|
|
408
441
|
def update(
|
|
409
442
|
has_embedded_links: nil,
|
|
@@ -412,7 +445,10 @@ module Twilio
|
|
|
412
445
|
message_flow: nil,
|
|
413
446
|
description: nil,
|
|
414
447
|
age_gated: nil,
|
|
415
|
-
direct_lending: nil
|
|
448
|
+
direct_lending: nil,
|
|
449
|
+
privacy_policy_url: :unset,
|
|
450
|
+
terms_and_conditions_url: :unset,
|
|
451
|
+
x_twilio_api_version: :unset
|
|
416
452
|
)
|
|
417
453
|
|
|
418
454
|
data = Twilio::Values.of({
|
|
@@ -423,9 +459,11 @@ module Twilio
|
|
|
423
459
|
'Description' => description,
|
|
424
460
|
'AgeGated' => age_gated,
|
|
425
461
|
'DirectLending' => direct_lending,
|
|
462
|
+
'PrivacyPolicyUrl' => privacy_policy_url,
|
|
463
|
+
'TermsAndConditionsUrl' => terms_and_conditions_url,
|
|
426
464
|
})
|
|
427
465
|
|
|
428
|
-
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
466
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Api-Version' => x_twilio_api_version, })
|
|
429
467
|
|
|
430
468
|
|
|
431
469
|
|
|
@@ -449,6 +487,9 @@ module Twilio
|
|
|
449
487
|
# @param [String] description A short description of what this SMS campaign does. Min length: 40 characters. Max length: 4096 characters.
|
|
450
488
|
# @param [Boolean] age_gated A boolean that specifies whether campaign requires age gate for federally legal content.
|
|
451
489
|
# @param [Boolean] direct_lending A boolean that specifies whether campaign allows direct lending or not.
|
|
490
|
+
# @param [String] privacy_policy_url The URL of the privacy policy for the campaign.
|
|
491
|
+
# @param [String] terms_and_conditions_url The URL of the terms and conditions for the campaign.
|
|
492
|
+
# @param [String] x_twilio_api_version The version of the Messaging API to use for this request
|
|
452
493
|
# @return [UsAppToPersonInstance] Updated UsAppToPersonInstance
|
|
453
494
|
def update_with_metadata(
|
|
454
495
|
has_embedded_links: nil,
|
|
@@ -457,7 +498,10 @@ module Twilio
|
|
|
457
498
|
message_flow: nil,
|
|
458
499
|
description: nil,
|
|
459
500
|
age_gated: nil,
|
|
460
|
-
direct_lending: nil
|
|
501
|
+
direct_lending: nil,
|
|
502
|
+
privacy_policy_url: :unset,
|
|
503
|
+
terms_and_conditions_url: :unset,
|
|
504
|
+
x_twilio_api_version: :unset
|
|
461
505
|
)
|
|
462
506
|
|
|
463
507
|
data = Twilio::Values.of({
|
|
@@ -468,9 +512,11 @@ module Twilio
|
|
|
468
512
|
'Description' => description,
|
|
469
513
|
'AgeGated' => age_gated,
|
|
470
514
|
'DirectLending' => direct_lending,
|
|
515
|
+
'PrivacyPolicyUrl' => privacy_policy_url,
|
|
516
|
+
'TermsAndConditionsUrl' => terms_and_conditions_url,
|
|
471
517
|
})
|
|
472
518
|
|
|
473
|
-
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
519
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', 'X-Twilio-Api-Version' => x_twilio_api_version, })
|
|
474
520
|
|
|
475
521
|
|
|
476
522
|
|
|
@@ -687,6 +733,8 @@ module Twilio
|
|
|
687
733
|
'url' => payload['url'],
|
|
688
734
|
'mock' => payload['mock'],
|
|
689
735
|
'errors' => payload['errors'],
|
|
736
|
+
'privacy_policy_url' => payload['privacy_policy_url'],
|
|
737
|
+
'terms_and_conditions_url' => payload['terms_and_conditions_url'],
|
|
690
738
|
}
|
|
691
739
|
|
|
692
740
|
# Context
|
|
@@ -873,6 +921,18 @@ module Twilio
|
|
|
873
921
|
@properties['errors']
|
|
874
922
|
end
|
|
875
923
|
|
|
924
|
+
##
|
|
925
|
+
# @return [String] The URL of the privacy policy for the campaign.
|
|
926
|
+
def privacy_policy_url
|
|
927
|
+
@properties['privacy_policy_url']
|
|
928
|
+
end
|
|
929
|
+
|
|
930
|
+
##
|
|
931
|
+
# @return [String] The URL of the terms and conditions for the campaign.
|
|
932
|
+
def terms_and_conditions_url
|
|
933
|
+
@properties['terms_and_conditions_url']
|
|
934
|
+
end
|
|
935
|
+
|
|
876
936
|
##
|
|
877
937
|
# Delete the UsAppToPersonInstance
|
|
878
938
|
# @return [Boolean] True if delete succeeds, false otherwise
|
|
@@ -883,10 +943,15 @@ module Twilio
|
|
|
883
943
|
|
|
884
944
|
##
|
|
885
945
|
# Fetch the UsAppToPersonInstance
|
|
946
|
+
# @param [String] x_twilio_api_version The version of the Messaging API to use for this request
|
|
886
947
|
# @return [UsAppToPersonInstance] Fetched UsAppToPersonInstance
|
|
887
|
-
def fetch
|
|
948
|
+
def fetch(
|
|
949
|
+
x_twilio_api_version: :unset
|
|
950
|
+
)
|
|
888
951
|
|
|
889
|
-
context.fetch
|
|
952
|
+
context.fetch(
|
|
953
|
+
x_twilio_api_version: x_twilio_api_version,
|
|
954
|
+
)
|
|
890
955
|
end
|
|
891
956
|
|
|
892
957
|
##
|
|
@@ -898,6 +963,9 @@ module Twilio
|
|
|
898
963
|
# @param [String] description A short description of what this SMS campaign does. Min length: 40 characters. Max length: 4096 characters.
|
|
899
964
|
# @param [Boolean] age_gated A boolean that specifies whether campaign requires age gate for federally legal content.
|
|
900
965
|
# @param [Boolean] direct_lending A boolean that specifies whether campaign allows direct lending or not.
|
|
966
|
+
# @param [String] privacy_policy_url The URL of the privacy policy for the campaign.
|
|
967
|
+
# @param [String] terms_and_conditions_url The URL of the terms and conditions for the campaign.
|
|
968
|
+
# @param [String] x_twilio_api_version The version of the Messaging API to use for this request
|
|
901
969
|
# @return [UsAppToPersonInstance] Updated UsAppToPersonInstance
|
|
902
970
|
def update(
|
|
903
971
|
has_embedded_links: nil,
|
|
@@ -906,7 +974,10 @@ module Twilio
|
|
|
906
974
|
message_flow: nil,
|
|
907
975
|
description: nil,
|
|
908
976
|
age_gated: nil,
|
|
909
|
-
direct_lending: nil
|
|
977
|
+
direct_lending: nil,
|
|
978
|
+
privacy_policy_url: :unset,
|
|
979
|
+
terms_and_conditions_url: :unset,
|
|
980
|
+
x_twilio_api_version: :unset
|
|
910
981
|
)
|
|
911
982
|
|
|
912
983
|
context.update(
|
|
@@ -917,6 +988,9 @@ module Twilio
|
|
|
917
988
|
description: description,
|
|
918
989
|
age_gated: age_gated,
|
|
919
990
|
direct_lending: direct_lending,
|
|
991
|
+
privacy_policy_url: privacy_policy_url,
|
|
992
|
+
terms_and_conditions_url: terms_and_conditions_url,
|
|
993
|
+
x_twilio_api_version: x_twilio_api_version,
|
|
920
994
|
)
|
|
921
995
|
end
|
|
922
996
|
|
|
@@ -36,7 +36,7 @@ module Twilio
|
|
|
36
36
|
# @param [String] business_name The name of the business or organization using the Tollfree number.
|
|
37
37
|
# @param [String] business_website The website of the business or organization using the Tollfree number.
|
|
38
38
|
# @param [String] notification_email The email address to receive the notification about the verification result. .
|
|
39
|
-
# @param [Array[String]] use_case_categories The category of the use case for the Tollfree Number. List as many are applicable
|
|
39
|
+
# @param [Array[String]] use_case_categories The category of the use case for the Tollfree Number. List as many as are applicable.
|
|
40
40
|
# @param [String] use_case_summary Use this to further explain how messaging is used by the business or organization.
|
|
41
41
|
# @param [String] production_message_sample An example of message content, i.e. a sample message.
|
|
42
42
|
# @param [Array[String]] opt_in_image_urls Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL.
|
|
@@ -57,9 +57,9 @@ module Twilio
|
|
|
57
57
|
# @param [String] business_contact_phone The E.164 formatted phone number of the contact for the business or organization using the Tollfree number.
|
|
58
58
|
# @param [String] external_reference_id An optional external reference ID supplied by customer and echoed back on status retrieval.
|
|
59
59
|
# @param [String] business_registration_number A legally recognized business registration number. Required for all business types except SOLE_PROPRIETOR.
|
|
60
|
-
# @param [
|
|
60
|
+
# @param [BusinessRegistrationAuthority] business_registration_authority
|
|
61
61
|
# @param [String] business_registration_country The country where the business is registered. Required for all business types except SOLE_PROPRIETOR.
|
|
62
|
-
# @param [
|
|
62
|
+
# @param [BusinessType] business_type
|
|
63
63
|
# @param [String] business_registration_phone_number The E.164 formatted number associated with the business.
|
|
64
64
|
# @param [String] doing_business_as Trade name, sub entity, or downstream business name of business being submitted for verification
|
|
65
65
|
# @param [String] opt_in_confirmation_message The confirmation message sent to users when they opt in to receive messages.
|
|
@@ -169,7 +169,7 @@ module Twilio
|
|
|
169
169
|
# @param [String] business_name The name of the business or organization using the Tollfree number.
|
|
170
170
|
# @param [String] business_website The website of the business or organization using the Tollfree number.
|
|
171
171
|
# @param [String] notification_email The email address to receive the notification about the verification result. .
|
|
172
|
-
# @param [Array[String]] use_case_categories The category of the use case for the Tollfree Number. List as many are applicable
|
|
172
|
+
# @param [Array[String]] use_case_categories The category of the use case for the Tollfree Number. List as many as are applicable.
|
|
173
173
|
# @param [String] use_case_summary Use this to further explain how messaging is used by the business or organization.
|
|
174
174
|
# @param [String] production_message_sample An example of message content, i.e. a sample message.
|
|
175
175
|
# @param [Array[String]] opt_in_image_urls Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL.
|
|
@@ -190,9 +190,9 @@ module Twilio
|
|
|
190
190
|
# @param [String] business_contact_phone The E.164 formatted phone number of the contact for the business or organization using the Tollfree number.
|
|
191
191
|
# @param [String] external_reference_id An optional external reference ID supplied by customer and echoed back on status retrieval.
|
|
192
192
|
# @param [String] business_registration_number A legally recognized business registration number. Required for all business types except SOLE_PROPRIETOR.
|
|
193
|
-
# @param [
|
|
193
|
+
# @param [BusinessRegistrationAuthority] business_registration_authority
|
|
194
194
|
# @param [String] business_registration_country The country where the business is registered. Required for all business types except SOLE_PROPRIETOR.
|
|
195
|
-
# @param [
|
|
195
|
+
# @param [BusinessType] business_type
|
|
196
196
|
# @param [String] business_registration_phone_number The E.164 formatted number associated with the business.
|
|
197
197
|
# @param [String] doing_business_as Trade name, sub entity, or downstream business name of business being submitted for verification
|
|
198
198
|
# @param [String] opt_in_confirmation_message The confirmation message sent to users when they opt in to receive messages.
|
|
@@ -561,7 +561,7 @@ module Twilio
|
|
|
561
561
|
# @param [String] business_name The name of the business or organization using the Tollfree number.
|
|
562
562
|
# @param [String] business_website The website of the business or organization using the Tollfree number.
|
|
563
563
|
# @param [String] notification_email The email address to receive the notification about the verification result. .
|
|
564
|
-
# @param [Array[String]] use_case_categories The category of the use case for the Tollfree Number. List as many are applicable
|
|
564
|
+
# @param [Array[String]] use_case_categories The category of the use case for the Tollfree Number. List as many as are applicable.
|
|
565
565
|
# @param [String] use_case_summary Use this to further explain how messaging is used by the business or organization.
|
|
566
566
|
# @param [String] production_message_sample An example of message content, i.e. a sample message.
|
|
567
567
|
# @param [Array[String]] opt_in_image_urls Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL.
|
|
@@ -579,10 +579,10 @@ module Twilio
|
|
|
579
579
|
# @param [String] business_contact_email The email address of the contact for the business or organization using the Tollfree number.
|
|
580
580
|
# @param [String] business_contact_phone The E.164 formatted phone number of the contact for the business or organization using the Tollfree number.
|
|
581
581
|
# @param [String] edit_reason Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to 'Website fixed'.
|
|
582
|
-
# @param [String] business_registration_number A
|
|
583
|
-
# @param [
|
|
582
|
+
# @param [String] business_registration_number A legally recognized business registration number
|
|
583
|
+
# @param [BusinessRegistrationAuthority] business_registration_authority
|
|
584
584
|
# @param [String] business_registration_country Country business is registered in
|
|
585
|
-
# @param [
|
|
585
|
+
# @param [BusinessType] business_type
|
|
586
586
|
# @param [String] business_registration_phone_number The E.164 formatted number associated with the business.
|
|
587
587
|
# @param [String] doing_business_as Trade name, sub entity, or downstream business name of business being submitted for verification
|
|
588
588
|
# @param [String] opt_in_confirmation_message The confirmation message sent to users when they opt in to receive messages.
|
|
@@ -689,7 +689,7 @@ module Twilio
|
|
|
689
689
|
# @param [String] business_name The name of the business or organization using the Tollfree number.
|
|
690
690
|
# @param [String] business_website The website of the business or organization using the Tollfree number.
|
|
691
691
|
# @param [String] notification_email The email address to receive the notification about the verification result. .
|
|
692
|
-
# @param [Array[String]] use_case_categories The category of the use case for the Tollfree Number. List as many are applicable
|
|
692
|
+
# @param [Array[String]] use_case_categories The category of the use case for the Tollfree Number. List as many as are applicable.
|
|
693
693
|
# @param [String] use_case_summary Use this to further explain how messaging is used by the business or organization.
|
|
694
694
|
# @param [String] production_message_sample An example of message content, i.e. a sample message.
|
|
695
695
|
# @param [Array[String]] opt_in_image_urls Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL.
|
|
@@ -707,10 +707,10 @@ module Twilio
|
|
|
707
707
|
# @param [String] business_contact_email The email address of the contact for the business or organization using the Tollfree number.
|
|
708
708
|
# @param [String] business_contact_phone The E.164 formatted phone number of the contact for the business or organization using the Tollfree number.
|
|
709
709
|
# @param [String] edit_reason Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to 'Website fixed'.
|
|
710
|
-
# @param [String] business_registration_number A
|
|
711
|
-
# @param [
|
|
710
|
+
# @param [String] business_registration_number A legally recognized business registration number
|
|
711
|
+
# @param [BusinessRegistrationAuthority] business_registration_authority
|
|
712
712
|
# @param [String] business_registration_country Country business is registered in
|
|
713
|
-
# @param [
|
|
713
|
+
# @param [BusinessType] business_type
|
|
714
714
|
# @param [String] business_registration_phone_number The E.164 formatted number associated with the business.
|
|
715
715
|
# @param [String] doing_business_as Trade name, sub entity, or downstream business name of business being submitted for verification
|
|
716
716
|
# @param [String] opt_in_confirmation_message The confirmation message sent to users when they opt in to receive messages.
|
|
@@ -1178,7 +1178,7 @@ module Twilio
|
|
|
1178
1178
|
end
|
|
1179
1179
|
|
|
1180
1180
|
##
|
|
1181
|
-
# @return [Array<String>] The category of the use case for the Tollfree Number. List as many are applicable
|
|
1181
|
+
# @return [Array<String>] The category of the use case for the Tollfree Number. List as many as are applicable.
|
|
1182
1182
|
def use_case_categories
|
|
1183
1183
|
@properties['use_case_categories']
|
|
1184
1184
|
end
|
|
@@ -1274,7 +1274,7 @@ module Twilio
|
|
|
1274
1274
|
end
|
|
1275
1275
|
|
|
1276
1276
|
##
|
|
1277
|
-
# @return [
|
|
1277
|
+
# @return [BusinessRegistrationAuthority]
|
|
1278
1278
|
def business_registration_authority
|
|
1279
1279
|
@properties['business_registration_authority']
|
|
1280
1280
|
end
|
|
@@ -1286,7 +1286,7 @@ module Twilio
|
|
|
1286
1286
|
end
|
|
1287
1287
|
|
|
1288
1288
|
##
|
|
1289
|
-
# @return [
|
|
1289
|
+
# @return [BusinessType]
|
|
1290
1290
|
def business_type
|
|
1291
1291
|
@properties['business_type']
|
|
1292
1292
|
end
|
|
@@ -1396,7 +1396,7 @@ module Twilio
|
|
|
1396
1396
|
# @param [String] business_name The name of the business or organization using the Tollfree number.
|
|
1397
1397
|
# @param [String] business_website The website of the business or organization using the Tollfree number.
|
|
1398
1398
|
# @param [String] notification_email The email address to receive the notification about the verification result. .
|
|
1399
|
-
# @param [Array[String]] use_case_categories The category of the use case for the Tollfree Number. List as many are applicable
|
|
1399
|
+
# @param [Array[String]] use_case_categories The category of the use case for the Tollfree Number. List as many as are applicable.
|
|
1400
1400
|
# @param [String] use_case_summary Use this to further explain how messaging is used by the business or organization.
|
|
1401
1401
|
# @param [String] production_message_sample An example of message content, i.e. a sample message.
|
|
1402
1402
|
# @param [Array[String]] opt_in_image_urls Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL.
|
|
@@ -1414,10 +1414,10 @@ module Twilio
|
|
|
1414
1414
|
# @param [String] business_contact_email The email address of the contact for the business or organization using the Tollfree number.
|
|
1415
1415
|
# @param [String] business_contact_phone The E.164 formatted phone number of the contact for the business or organization using the Tollfree number.
|
|
1416
1416
|
# @param [String] edit_reason Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to 'Website fixed'.
|
|
1417
|
-
# @param [String] business_registration_number A
|
|
1418
|
-
# @param [
|
|
1417
|
+
# @param [String] business_registration_number A legally recognized business registration number
|
|
1418
|
+
# @param [BusinessRegistrationAuthority] business_registration_authority
|
|
1419
1419
|
# @param [String] business_registration_country Country business is registered in
|
|
1420
|
-
# @param [
|
|
1420
|
+
# @param [BusinessType] business_type
|
|
1421
1421
|
# @param [String] business_registration_phone_number The E.164 formatted number associated with the business.
|
|
1422
1422
|
# @param [String] doing_business_as Trade name, sub entity, or downstream business name of business being submitted for verification
|
|
1423
1423
|
# @param [String] opt_in_confirmation_message The confirmation message sent to users when they opt in to receive messages.
|
|
@@ -29,7 +29,7 @@ module Twilio
|
|
|
29
29
|
# @param [privacy_url]: [String] The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender.
|
|
30
30
|
# @param [terms_of_service_url]: [String] The terms of service URL of the sender.
|
|
31
31
|
# @param [accent_color]: [String] The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white.
|
|
32
|
-
# @param [vertical]: [String] The vertical of the sender. Allowed values are: - `Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `
|
|
32
|
+
# @param [vertical]: [String] The vertical of the sender. Allowed values are: - `Alcohol` - `Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Hotel and Lodging` - `Matrimony Service` - `Medical and Health` - `Non-profit` - `Online Gambling` - `OTC Drugs` - `Other` - `Physical Gambling` - `Professional Services` - `Public Service` - `Restaurant` - `Shopping and Retail` - `Travel and Transportation`
|
|
33
33
|
# @param [websites]: [Hash] The websites of the sender.
|
|
34
34
|
# @param [emails]: [Hash] The emails of the sender.
|
|
35
35
|
# @param [phone_numbers]: [Hash] The phone numbers of the sender.
|
|
@@ -206,7 +206,7 @@ module Twilio
|
|
|
206
206
|
# @param [privacy_url]: [String] The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender.
|
|
207
207
|
# @param [terms_of_service_url]: [String] The terms of service URL of the sender.
|
|
208
208
|
# @param [accent_color]: [String] The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white.
|
|
209
|
-
# @param [vertical]: [String] The vertical of the sender. Allowed values are: - `Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `
|
|
209
|
+
# @param [vertical]: [String] The vertical of the sender. Allowed values are: - `Alcohol` - `Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Hotel and Lodging` - `Matrimony Service` - `Medical and Health` - `Non-profit` - `Online Gambling` - `OTC Drugs` - `Other` - `Physical Gambling` - `Professional Services` - `Public Service` - `Restaurant` - `Shopping and Retail` - `Travel and Transportation`
|
|
210
210
|
# @param [websites]: [Hash] The websites of the sender.
|
|
211
211
|
# @param [emails]: [Hash] The emails of the sender.
|
|
212
212
|
# @param [phone_numbers]: [Hash] The phone numbers of the sender.
|
|
@@ -137,10 +137,12 @@ module Twilio
|
|
|
137
137
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
138
138
|
# memory before returning.
|
|
139
139
|
# @param [Status] status The verification status of the Bundle resource. Please refer to [Bundle Statuses](https://www.twilio.com/docs/phone-numbers/regulatory/api/bundles#bundle-statuses) for more details.
|
|
140
|
+
# @param [String] bundle_sids A comma-separated list of Bundle SIDs to filter the results (maximum 20). Each Bundle SID must match `^BU[0-9a-fA-F]{32}$`.
|
|
140
141
|
# @param [String] friendly_name The string that you assigned to describe the resource. The column can contain 255 variable characters.
|
|
141
142
|
# @param [String] regulation_sid The unique string of a [Regulation resource](https://www.twilio.com/docs/phone-numbers/regulatory/api/regulations) that is associated to the Bundle resource.
|
|
142
143
|
# @param [String] iso_country The 2-digit [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Bundle's phone number country ownership request.
|
|
143
144
|
# @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `toll-free`.
|
|
145
|
+
# @param [String] end_user_type The end user type of the regulation of the Bundle. Can be `business` or `individual`.
|
|
144
146
|
# @param [Boolean] has_valid_until_date Indicates that the Bundle is a valid Bundle until a specified expiration date.
|
|
145
147
|
# @param [SortBy] sort_by Can be `valid-until` or `date-updated`. Defaults to `date-created`.
|
|
146
148
|
# @param [SortDirection] sort_direction Default is `DESC`. Can be `ASC` or `DESC`.
|
|
@@ -154,13 +156,15 @@ module Twilio
|
|
|
154
156
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
155
157
|
# efficient page size, i.e. min(limit, 1000)
|
|
156
158
|
# @return [Array] Array of up to limit results
|
|
157
|
-
def list(status: :unset, friendly_name: :unset, regulation_sid: :unset, iso_country: :unset, number_type: :unset, has_valid_until_date: :unset, sort_by: :unset, sort_direction: :unset, valid_until_date: :unset, valid_until_date_before: :unset, valid_until_date_after: :unset, limit: nil, page_size: nil)
|
|
159
|
+
def list(status: :unset, bundle_sids: :unset, friendly_name: :unset, regulation_sid: :unset, iso_country: :unset, number_type: :unset, end_user_type: :unset, has_valid_until_date: :unset, sort_by: :unset, sort_direction: :unset, valid_until_date: :unset, valid_until_date_before: :unset, valid_until_date_after: :unset, limit: nil, page_size: nil)
|
|
158
160
|
self.stream(
|
|
159
161
|
status: status,
|
|
162
|
+
bundle_sids: bundle_sids,
|
|
160
163
|
friendly_name: friendly_name,
|
|
161
164
|
regulation_sid: regulation_sid,
|
|
162
165
|
iso_country: iso_country,
|
|
163
166
|
number_type: number_type,
|
|
167
|
+
end_user_type: end_user_type,
|
|
164
168
|
has_valid_until_date: has_valid_until_date,
|
|
165
169
|
sort_by: sort_by,
|
|
166
170
|
sort_direction: sort_direction,
|
|
@@ -177,10 +181,12 @@ module Twilio
|
|
|
177
181
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
178
182
|
# is reached.
|
|
179
183
|
# @param [Status] status The verification status of the Bundle resource. Please refer to [Bundle Statuses](https://www.twilio.com/docs/phone-numbers/regulatory/api/bundles#bundle-statuses) for more details.
|
|
184
|
+
# @param [String] bundle_sids A comma-separated list of Bundle SIDs to filter the results (maximum 20). Each Bundle SID must match `^BU[0-9a-fA-F]{32}$`.
|
|
180
185
|
# @param [String] friendly_name The string that you assigned to describe the resource. The column can contain 255 variable characters.
|
|
181
186
|
# @param [String] regulation_sid The unique string of a [Regulation resource](https://www.twilio.com/docs/phone-numbers/regulatory/api/regulations) that is associated to the Bundle resource.
|
|
182
187
|
# @param [String] iso_country The 2-digit [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Bundle's phone number country ownership request.
|
|
183
188
|
# @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `toll-free`.
|
|
189
|
+
# @param [String] end_user_type The end user type of the regulation of the Bundle. Can be `business` or `individual`.
|
|
184
190
|
# @param [Boolean] has_valid_until_date Indicates that the Bundle is a valid Bundle until a specified expiration date.
|
|
185
191
|
# @param [SortBy] sort_by Can be `valid-until` or `date-updated`. Defaults to `date-created`.
|
|
186
192
|
# @param [SortDirection] sort_direction Default is `DESC`. Can be `ASC` or `DESC`.
|
|
@@ -194,15 +200,17 @@ module Twilio
|
|
|
194
200
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
195
201
|
# efficient page size, i.e. min(limit, 1000)
|
|
196
202
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
|
197
|
-
def stream(status: :unset, friendly_name: :unset, regulation_sid: :unset, iso_country: :unset, number_type: :unset, has_valid_until_date: :unset, sort_by: :unset, sort_direction: :unset, valid_until_date: :unset, valid_until_date_before: :unset, valid_until_date_after: :unset, limit: nil, page_size: nil)
|
|
203
|
+
def stream(status: :unset, bundle_sids: :unset, friendly_name: :unset, regulation_sid: :unset, iso_country: :unset, number_type: :unset, end_user_type: :unset, has_valid_until_date: :unset, sort_by: :unset, sort_direction: :unset, valid_until_date: :unset, valid_until_date_before: :unset, valid_until_date_after: :unset, limit: nil, page_size: nil)
|
|
198
204
|
limits = @version.read_limits(limit, page_size)
|
|
199
205
|
|
|
200
206
|
page = self.page(
|
|
201
207
|
status: status,
|
|
208
|
+
bundle_sids: bundle_sids,
|
|
202
209
|
friendly_name: friendly_name,
|
|
203
210
|
regulation_sid: regulation_sid,
|
|
204
211
|
iso_country: iso_country,
|
|
205
212
|
number_type: number_type,
|
|
213
|
+
end_user_type: end_user_type,
|
|
206
214
|
has_valid_until_date: has_valid_until_date,
|
|
207
215
|
sort_by: sort_by,
|
|
208
216
|
sort_direction: sort_direction,
|
|
@@ -217,10 +225,12 @@ module Twilio
|
|
|
217
225
|
##
|
|
218
226
|
# Lists BundlePageMetadata records from the API as a list.
|
|
219
227
|
# @param [Status] status The verification status of the Bundle resource. Please refer to [Bundle Statuses](https://www.twilio.com/docs/phone-numbers/regulatory/api/bundles#bundle-statuses) for more details.
|
|
228
|
+
# @param [String] bundle_sids A comma-separated list of Bundle SIDs to filter the results (maximum 20). Each Bundle SID must match `^BU[0-9a-fA-F]{32}$`.
|
|
220
229
|
# @param [String] friendly_name The string that you assigned to describe the resource. The column can contain 255 variable characters.
|
|
221
230
|
# @param [String] regulation_sid The unique string of a [Regulation resource](https://www.twilio.com/docs/phone-numbers/regulatory/api/regulations) that is associated to the Bundle resource.
|
|
222
231
|
# @param [String] iso_country The 2-digit [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Bundle's phone number country ownership request.
|
|
223
232
|
# @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `toll-free`.
|
|
233
|
+
# @param [String] end_user_type The end user type of the regulation of the Bundle. Can be `business` or `individual`.
|
|
224
234
|
# @param [Boolean] has_valid_until_date Indicates that the Bundle is a valid Bundle until a specified expiration date.
|
|
225
235
|
# @param [SortBy] sort_by Can be `valid-until` or `date-updated`. Defaults to `date-created`.
|
|
226
236
|
# @param [SortDirection] sort_direction Default is `DESC`. Can be `ASC` or `DESC`.
|
|
@@ -234,14 +244,16 @@ module Twilio
|
|
|
234
244
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
|
235
245
|
# efficient page size, i.e. min(limit, 1000)
|
|
236
246
|
# @return [Array] Array of up to limit results
|
|
237
|
-
def list_with_metadata(status: :unset, friendly_name: :unset, regulation_sid: :unset, iso_country: :unset, number_type: :unset, has_valid_until_date: :unset, sort_by: :unset, sort_direction: :unset, valid_until_date: :unset, valid_until_date_before: :unset, valid_until_date_after: :unset, limit: nil, page_size: nil)
|
|
247
|
+
def list_with_metadata(status: :unset, bundle_sids: :unset, friendly_name: :unset, regulation_sid: :unset, iso_country: :unset, number_type: :unset, end_user_type: :unset, has_valid_until_date: :unset, sort_by: :unset, sort_direction: :unset, valid_until_date: :unset, valid_until_date_before: :unset, valid_until_date_after: :unset, limit: nil, page_size: nil)
|
|
238
248
|
limits = @version.read_limits(limit, page_size)
|
|
239
249
|
params = Twilio::Values.of({
|
|
240
250
|
'Status' => status,
|
|
251
|
+
'BundleSids' => bundle_sids,
|
|
241
252
|
'FriendlyName' => friendly_name,
|
|
242
253
|
'RegulationSid' => regulation_sid,
|
|
243
254
|
'IsoCountry' => iso_country,
|
|
244
255
|
'NumberType' => number_type,
|
|
256
|
+
'EndUserType' => end_user_type,
|
|
245
257
|
'HasValidUntilDate' => has_valid_until_date,
|
|
246
258
|
'SortBy' => sort_by,
|
|
247
259
|
'SortDirection' => sort_direction,
|
|
@@ -276,10 +288,12 @@ module Twilio
|
|
|
276
288
|
# Retrieve a single page of BundleInstance records from the API.
|
|
277
289
|
# Request is executed immediately.
|
|
278
290
|
# @param [Status] status The verification status of the Bundle resource. Please refer to [Bundle Statuses](https://www.twilio.com/docs/phone-numbers/regulatory/api/bundles#bundle-statuses) for more details.
|
|
291
|
+
# @param [String] bundle_sids A comma-separated list of Bundle SIDs to filter the results (maximum 20). Each Bundle SID must match `^BU[0-9a-fA-F]{32}$`.
|
|
279
292
|
# @param [String] friendly_name The string that you assigned to describe the resource. The column can contain 255 variable characters.
|
|
280
293
|
# @param [String] regulation_sid The unique string of a [Regulation resource](https://www.twilio.com/docs/phone-numbers/regulatory/api/regulations) that is associated to the Bundle resource.
|
|
281
294
|
# @param [String] iso_country The 2-digit [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Bundle's phone number country ownership request.
|
|
282
295
|
# @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `toll-free`.
|
|
296
|
+
# @param [String] end_user_type The end user type of the regulation of the Bundle. Can be `business` or `individual`.
|
|
283
297
|
# @param [Boolean] has_valid_until_date Indicates that the Bundle is a valid Bundle until a specified expiration date.
|
|
284
298
|
# @param [SortBy] sort_by Can be `valid-until` or `date-updated`. Defaults to `date-created`.
|
|
285
299
|
# @param [SortDirection] sort_direction Default is `DESC`. Can be `ASC` or `DESC`.
|
|
@@ -290,13 +304,15 @@ module Twilio
|
|
|
290
304
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
291
305
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
292
306
|
# @return [Page] Page of BundleInstance
|
|
293
|
-
def page(status: :unset, friendly_name: :unset, regulation_sid: :unset, iso_country: :unset, number_type: :unset, has_valid_until_date: :unset, sort_by: :unset, sort_direction: :unset, valid_until_date: :unset, valid_until_date_before: :unset, valid_until_date_after: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
|
|
307
|
+
def page(status: :unset, bundle_sids: :unset, friendly_name: :unset, regulation_sid: :unset, iso_country: :unset, number_type: :unset, end_user_type: :unset, has_valid_until_date: :unset, sort_by: :unset, sort_direction: :unset, valid_until_date: :unset, valid_until_date_before: :unset, valid_until_date_after: :unset, page_token: :unset, page_number: :unset,page_size: :unset)
|
|
294
308
|
params = Twilio::Values.of({
|
|
295
309
|
'Status' => status,
|
|
310
|
+
'BundleSids' => bundle_sids,
|
|
296
311
|
'FriendlyName' => friendly_name,
|
|
297
312
|
'RegulationSid' => regulation_sid,
|
|
298
313
|
'IsoCountry' => iso_country,
|
|
299
314
|
'NumberType' => number_type,
|
|
315
|
+
'EndUserType' => end_user_type,
|
|
300
316
|
'HasValidUntilDate' => has_valid_until_date,
|
|
301
317
|
'SortBy' => sort_by,
|
|
302
318
|
'SortDirection' => sort_direction,
|
|
@@ -276,13 +276,16 @@ module Twilio
|
|
|
276
276
|
##
|
|
277
277
|
# Update the TranscriptionsInstance
|
|
278
278
|
# @param [Status] status
|
|
279
|
+
# @param [Object] configuration A collection of properties that describe transcription behaviour.
|
|
279
280
|
# @return [TranscriptionsInstance] Updated TranscriptionsInstance
|
|
280
281
|
def update(
|
|
281
|
-
status: :unset
|
|
282
|
+
status: :unset,
|
|
283
|
+
configuration: :unset
|
|
282
284
|
)
|
|
283
285
|
|
|
284
286
|
data = Twilio::Values.of({
|
|
285
287
|
'Status' => status,
|
|
288
|
+
'Configuration' => Twilio.serialize_object(configuration),
|
|
286
289
|
})
|
|
287
290
|
|
|
288
291
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
@@ -303,13 +306,16 @@ module Twilio
|
|
|
303
306
|
##
|
|
304
307
|
# Update the TranscriptionsInstanceMetadata
|
|
305
308
|
# @param [Status] status
|
|
309
|
+
# @param [Object] configuration A collection of properties that describe transcription behaviour.
|
|
306
310
|
# @return [TranscriptionsInstance] Updated TranscriptionsInstance
|
|
307
311
|
def update_with_metadata(
|
|
308
|
-
status: :unset
|
|
312
|
+
status: :unset,
|
|
313
|
+
configuration: :unset
|
|
309
314
|
)
|
|
310
315
|
|
|
311
316
|
data = Twilio::Values.of({
|
|
312
317
|
'Status' => status,
|
|
318
|
+
'Configuration' => Twilio.serialize_object(configuration),
|
|
313
319
|
})
|
|
314
320
|
|
|
315
321
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
@@ -614,13 +620,16 @@ module Twilio
|
|
|
614
620
|
##
|
|
615
621
|
# Update the TranscriptionsInstance
|
|
616
622
|
# @param [Status] status
|
|
623
|
+
# @param [Object] configuration A collection of properties that describe transcription behaviour.
|
|
617
624
|
# @return [TranscriptionsInstance] Updated TranscriptionsInstance
|
|
618
625
|
def update(
|
|
619
|
-
status: :unset
|
|
626
|
+
status: :unset,
|
|
627
|
+
configuration: :unset
|
|
620
628
|
)
|
|
621
629
|
|
|
622
630
|
context.update(
|
|
623
631
|
status: status,
|
|
632
|
+
configuration: configuration,
|
|
624
633
|
)
|
|
625
634
|
end
|
|
626
635
|
|
data/lib/twilio-ruby/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: twilio-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 7.10.
|
|
4
|
+
version: 7.10.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Twilio API Team
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: jwt
|
|
@@ -190,12 +189,11 @@ dependencies:
|
|
|
190
189
|
version: 1.4.2
|
|
191
190
|
description: The official library for communicating with the Twilio REST API, building
|
|
192
191
|
TwiML, and generating Twilio JWT Capability Tokens
|
|
193
|
-
email:
|
|
194
192
|
executables: []
|
|
195
193
|
extensions: []
|
|
196
194
|
extra_rdoc_files:
|
|
197
|
-
- README.md
|
|
198
195
|
- LICENSE
|
|
196
|
+
- README.md
|
|
199
197
|
files:
|
|
200
198
|
- ".dockerignore"
|
|
201
199
|
- ".github/ISSUE_TEMPLATE/bug_report.yml"
|
|
@@ -930,7 +928,6 @@ licenses:
|
|
|
930
928
|
metadata:
|
|
931
929
|
documentation_uri: https://www.twilio.com/docs/libraries/reference/twilio-ruby/
|
|
932
930
|
yard.run: yri
|
|
933
|
-
post_install_message:
|
|
934
931
|
rdoc_options:
|
|
935
932
|
- "--line-numbers"
|
|
936
933
|
- "--inline-source"
|
|
@@ -951,9 +948,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
951
948
|
- !ruby/object:Gem::Version
|
|
952
949
|
version: '0'
|
|
953
950
|
requirements: []
|
|
954
|
-
|
|
955
|
-
rubygems_version: 2.6.14.4
|
|
956
|
-
signing_key:
|
|
951
|
+
rubygems_version: 4.0.7
|
|
957
952
|
specification_version: 4
|
|
958
953
|
summary: The official library for communicating with the Twilio REST API, building
|
|
959
954
|
TwiML, and generating Twilio JWT Capability Tokens
|