twilio-ruby 7.10.0 → 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 +77 -0
- data/Dockerfile +1 -1
- data/README.md +2 -2
- data/cluster/cluster_oauth_spec.rb +4 -4
- data/lib/twilio-ruby/base/client_base.rb +1 -28
- 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 +24 -24
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +7 -0
- data/lib/twilio-ruby/rest/flex_api/v1/create_flex_instance.rb +382 -0
- data/lib/twilio-ruby/rest/flex_api/v1.rb +6 -0
- 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 +25 -25
- 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/numbers/v3/hosted_number_order.rb +7 -4
- data/lib/twilio-ruby/rest/oauth/v2/authorize.rb +253 -0
- data/lib/twilio-ruby/rest/oauth/v2.rb +6 -0
- data/lib/twilio-ruby/rest/video/v1/room/transcriptions.rb +12 -3
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +6 -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,83 @@
|
|
|
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
|
+
|
|
59
|
+
[2026-02-05] Version 7.10.1
|
|
60
|
+
---------------------------
|
|
61
|
+
**Library - Fix**
|
|
62
|
+
- [PR #779](https://github.com/twilio/twilio-ruby/pull/779): Reverse edge processing. Thanks to [@manisha1997](https://github.com/manisha1997)!
|
|
63
|
+
|
|
64
|
+
**Twiml**
|
|
65
|
+
- Add `recording_configuration` attribute to `<Recording>` noun
|
|
66
|
+
|
|
67
|
+
**Api**
|
|
68
|
+
- Clarify the behavior of date filters with the Calls API
|
|
69
|
+
- Added Phone Number `type` property to `/IncomingPhoneNumbers` resource
|
|
70
|
+
|
|
71
|
+
**Memory**
|
|
72
|
+
- ## 2026-01-23
|
|
73
|
+
- No path changes (updated metadata only)
|
|
74
|
+
- ## 2026-01-22
|
|
75
|
+
- No path changes (updated metadata only)
|
|
76
|
+
- ## 2026-01-22
|
|
77
|
+
- **Modified 1 path(s)**:
|
|
78
|
+
- `/v1/Stores/{storeId}/Profiles/{profileId}` (added delete)
|
|
79
|
+
|
|
80
|
+
|
|
4
81
|
[2026-01-22] Version 7.10.0
|
|
5
82
|
---------------------------
|
|
6
83
|
**Library - Feature**
|
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
|
|
@@ -3,19 +3,6 @@ module Twilio
|
|
|
3
3
|
class ClientBase
|
|
4
4
|
# rubocop:disable Style/ClassVars
|
|
5
5
|
@@default_region = 'us1'
|
|
6
|
-
# Maps region codes to their corresponding edge location names
|
|
7
|
-
# Used to automatically set edge based on region for backward compatibility
|
|
8
|
-
@@region_mappings = {
|
|
9
|
-
'au1' => 'sydney',
|
|
10
|
-
'br1' => 'sao-paulo',
|
|
11
|
-
'de1' => 'frankfurt',
|
|
12
|
-
'ie1' => 'dublin',
|
|
13
|
-
'jp1' => 'tokyo',
|
|
14
|
-
'jp2' => 'osaka',
|
|
15
|
-
'sg1' => 'singapore',
|
|
16
|
-
'us1' => 'ashburn',
|
|
17
|
-
'us2' => 'umatilla'
|
|
18
|
-
}
|
|
19
6
|
# rubocop:enable Style/ClassVars
|
|
20
7
|
|
|
21
8
|
attr_accessor :http_client, :username, :password, :account_sid, :auth_token, :region, :edge, :logger,
|
|
@@ -27,12 +14,7 @@ module Twilio
|
|
|
27
14
|
@username = username || Twilio.account_sid
|
|
28
15
|
@password = password || Twilio.auth_token
|
|
29
16
|
@region = region || Twilio.region
|
|
30
|
-
|
|
31
|
-
@edge = Twilio.edge
|
|
32
|
-
elsif @region && @@region_mappings[region]
|
|
33
|
-
warn '[DEPRECATION] Setting default `Edge` for the provided `region`.'
|
|
34
|
-
@edge = @@region_mappings[region]
|
|
35
|
-
end
|
|
17
|
+
@edge = Twilio.edge
|
|
36
18
|
@account_sid = account_sid || @username
|
|
37
19
|
@auth_token = @password
|
|
38
20
|
@auth = [@username, @password]
|
|
@@ -96,15 +78,6 @@ module Twilio
|
|
|
96
78
|
##
|
|
97
79
|
# Build the final request uri
|
|
98
80
|
def build_uri(uri)
|
|
99
|
-
if (@region.nil? && !@edge.nil?) || (!@region.nil? && @edge.nil?)
|
|
100
|
-
# rubocop:disable Layout/LineLength
|
|
101
|
-
warn '[DEPRECATION] For regional processing, DNS is of format product.<edge>.<region>.twilio.com;otherwise use product.twilio.com.'
|
|
102
|
-
# rubocop:enable Layout/LineLength
|
|
103
|
-
end
|
|
104
|
-
if @edge.nil? && @region && @@region_mappings[@region]
|
|
105
|
-
warn '[DEPRECATION] Setting default `Edge` for the provided `region`.'
|
|
106
|
-
@edge = @@region_mappings[@region]
|
|
107
|
-
end
|
|
108
81
|
return uri if @region.nil? && @edge.nil?
|
|
109
82
|
|
|
110
83
|
parsed_url = URI(uri)
|
|
@@ -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,12 +310,12 @@ 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.
|
|
314
|
-
# @param [Time] start_time_before Only include calls that started
|
|
315
|
-
# @param [Time] start_time_after 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
|
|
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
|
-
# @param [Time] end_time_before Only include calls that ended
|
|
318
|
-
# @param [Time] end_time_after 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
|
|
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
|
+
# @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
|
+
# @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.
|
|
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
|
+
# @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()
|
|
320
320
|
# guarantees to never return more than limit. Default is no limit
|
|
321
321
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -348,12 +348,12 @@ 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.
|
|
352
|
-
# @param [Time] start_time_before Only include calls that started
|
|
353
|
-
# @param [Time] start_time_after 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
|
|
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
|
-
# @param [Time] end_time_before Only include calls that ended
|
|
356
|
-
# @param [Time] end_time_after 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
|
|
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
|
+
# @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
|
+
# @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.
|
|
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
|
+
# @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()
|
|
358
358
|
# guarantees to never return more than limit. Default is no limit
|
|
359
359
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -386,12 +386,12 @@ 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.
|
|
390
|
-
# @param [Time] start_time_before Only include calls that started
|
|
391
|
-
# @param [Time] start_time_after 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
|
|
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
|
-
# @param [Time] end_time_before Only include calls that ended
|
|
394
|
-
# @param [Time] end_time_after 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
|
|
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
|
+
# @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
|
+
# @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.
|
|
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
|
+
# @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()
|
|
396
396
|
# guarantees to never return more than limit. Default is no limit
|
|
397
397
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -443,12 +443,12 @@ 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.
|
|
447
|
-
# @param [Time] start_time_before Only include calls that started
|
|
448
|
-
# @param [Time] start_time_after 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
|
|
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
|
-
# @param [Time] end_time_before Only include calls that ended
|
|
451
|
-
# @param [Time] end_time_after 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
|
|
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
|
+
# @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
|
+
# @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.
|
|
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
|
+
# @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
|
|
453
453
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
454
454
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
@@ -913,6 +913,7 @@ module Twilio
|
|
|
913
913
|
'emergency_address_status' => payload['emergency_address_status'],
|
|
914
914
|
'bundle_sid' => payload['bundle_sid'],
|
|
915
915
|
'status' => payload['status'],
|
|
916
|
+
'type' => payload['type'],
|
|
916
917
|
}
|
|
917
918
|
|
|
918
919
|
# Context
|
|
@@ -1135,6 +1136,12 @@ module Twilio
|
|
|
1135
1136
|
@properties['status']
|
|
1136
1137
|
end
|
|
1137
1138
|
|
|
1139
|
+
##
|
|
1140
|
+
# @return [String] The phone number type.
|
|
1141
|
+
def type
|
|
1142
|
+
@properties['type']
|
|
1143
|
+
end
|
|
1144
|
+
|
|
1138
1145
|
##
|
|
1139
1146
|
# Delete the IncomingPhoneNumberInstance
|
|
1140
1147
|
# @return [Boolean] True if delete succeeds, false otherwise
|