twilio-ruby 5.40.2 → 5.40.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +15 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/framework/version.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +12 -3
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/machine_to_machine.rb +12 -3
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +12 -3
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/national.rb +12 -3
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb +12 -3
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +12 -3
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/voip.rb +12 -3
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +8 -2
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +5 -2
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +8 -1
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +3 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +2 -1
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +8 -4
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +11 -4
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +13 -6
- data/lib/twilio-ruby/rest/conversations.rb +0 -16
- data/lib/twilio-ruby/rest/conversations/v1.rb +0 -24
- data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +17 -7
- data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +262 -0
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +6 -6
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +13 -10
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +22 -16
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +42 -36
- data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +14 -11
- data/lib/twilio-ruby/rest/conversations/v1/credential.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/role.rb +4 -2
- data/lib/twilio-ruby/rest/conversations/v1/service.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +28 -25
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +30 -18
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +315 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +10 -10
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +23 -20
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +32 -26
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +52 -46
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +24 -21
- data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +13 -11
- data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +23 -23
- data/lib/twilio-ruby/rest/conversations/v1/user.rb +14 -14
- data/lib/twilio-ruby/rest/events.rb +10 -1
- data/lib/twilio-ruby/rest/events/v1.rb +17 -1
- data/lib/twilio-ruby/rest/events/v1/event_type.rb +8 -8
- data/lib/twilio-ruby/rest/events/v1/schema.rb +226 -0
- data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +290 -0
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +28 -8
- data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +3 -109
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +2 -1
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +6 -3
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +12 -6
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +10 -2
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +10 -5
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +6 -3
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/insights.rb +1 -4
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +3 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +6 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +1 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +6 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +19 -26
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +2 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +2 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +201 -0
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +3 -1
- data/lib/twilio-ruby/rest/video/v1/composition.rb +7 -3
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +18 -9
- data/lib/twilio-ruby/rest/video/v1/room.rb +2 -1
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +1 -4
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +2 -1
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/framework/version_spec.rb +11 -0
- data/spec/integration/conversations/v1/{webhook_spec.rb → configuration/webhook_spec.rb} +12 -8
- data/spec/integration/conversations/v1/configuration_spec.rb +4 -2
- data/spec/integration/conversations/v1/{notification_spec.rb → service/configuration/notification_spec.rb} +12 -4
- data/spec/integration/events/v1/schema/schema_version_spec.rb +126 -0
- data/spec/integration/events/v1/schema_spec.rb +46 -0
- data/spec/integration/events/v1/subscription/subscribed_event_spec.rb +0 -121
- data/spec/integration/events/v1/subscription_spec.rb +38 -0
- data/spec/integration/trunking/v1/trunk/recording_spec.rb +79 -0
- metadata +17 -8
- data/lib/twilio-ruby/rest/conversations/v1/notification.rb +0 -310
- data/lib/twilio-ruby/rest/conversations/v1/webhook.rb +0 -262
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dae54a54d01043583ac7681515689c12b2f6debaf7771573ede8f5c07a4c34ef
|
4
|
+
data.tar.gz: 925938904f70cab1f93ba075fd117407bd71c269c7519bd263a32683603d5cef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80f007c989fdc5df11ec8073732a684e05d5584cfe394202d619d12305acfb5aa3aef967d0181fa9ba45e7a20dcc794d9eda4ab99ed67cfde2390f778a1d42cd
|
7
|
+
data.tar.gz: fea5f05f5bd0a7d78c51665338f6bf835eed44e97bc2ba3646465aa935ed3843319aa91c890af002bafbb5ffacc623d3d43a679f5517b6f30057dca4f980e15e
|
data/CHANGES.md
CHANGED
@@ -1,6 +1,21 @@
|
|
1
1
|
twilio-ruby changelog
|
2
2
|
=====================
|
3
3
|
|
4
|
+
[2020-09-21] Version 5.40.3
|
5
|
+
---------------------------
|
6
|
+
**Library - Fix**
|
7
|
+
- [PR #534](https://github.com/twilio/twilio-ruby/pull/534): allow API redirect responses. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
|
8
|
+
|
9
|
+
**Accounts**
|
10
|
+
- Add Auth Token rotation API
|
11
|
+
|
12
|
+
**Conversations**
|
13
|
+
- Change resource path for Webhook Configuration
|
14
|
+
|
15
|
+
**Events**
|
16
|
+
- Schemas API get all Schemas names and versions
|
17
|
+
|
18
|
+
|
4
19
|
[2020-09-16] Version 5.40.2
|
5
20
|
---------------------------
|
6
21
|
**Library - Fix**
|
data/README.md
CHANGED
@@ -34,13 +34,13 @@ This library supports the following Ruby implementations:
|
|
34
34
|
To install using [Bundler][bundler] grab the latest stable version:
|
35
35
|
|
36
36
|
```ruby
|
37
|
-
gem 'twilio-ruby', '~> 5.40.
|
37
|
+
gem 'twilio-ruby', '~> 5.40.3'
|
38
38
|
```
|
39
39
|
|
40
40
|
To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
|
41
41
|
|
42
42
|
```bash
|
43
|
-
gem install twilio-ruby -v 5.40.
|
43
|
+
gem install twilio-ruby -v 5.40.3
|
44
44
|
```
|
45
45
|
|
46
46
|
To build and install the development branch yourself from the latest source:
|
@@ -68,7 +68,8 @@ module Twilio
|
|
68
68
|
timeout
|
69
69
|
)
|
70
70
|
|
71
|
-
|
71
|
+
# Note that 3XX response codes are allowed for fetches.
|
72
|
+
if response.status_code < 200 || response.status_code >= 400
|
72
73
|
raise exception(response, 'Unable to fetch record')
|
73
74
|
end
|
74
75
|
|
@@ -38,7 +38,10 @@ module Twilio
|
|
38
38
|
# @param [String] contains The pattern on which to match phone numbers. Valid
|
39
39
|
# characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any
|
40
40
|
# single digit. For examples, see [Example
|
41
|
-
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-number-pattern)
|
41
|
+
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-number-pattern)
|
42
|
+
# and [Example
|
43
|
+
# 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-character-pattern).
|
44
|
+
# If specified, this value must have at least two characters.
|
42
45
|
# @param [Boolean] sms_enabled Whether the phone numbers can receive text
|
43
46
|
# messages. Can be: `true` or `false`.
|
44
47
|
# @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages.
|
@@ -125,7 +128,10 @@ module Twilio
|
|
125
128
|
# @param [String] contains The pattern on which to match phone numbers. Valid
|
126
129
|
# characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any
|
127
130
|
# single digit. For examples, see [Example
|
128
|
-
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-number-pattern)
|
131
|
+
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-number-pattern)
|
132
|
+
# and [Example
|
133
|
+
# 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-character-pattern).
|
134
|
+
# If specified, this value must have at least two characters.
|
129
135
|
# @param [Boolean] sms_enabled Whether the phone numbers can receive text
|
130
136
|
# messages. Can be: `true` or `false`.
|
131
137
|
# @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages.
|
@@ -228,7 +234,10 @@ module Twilio
|
|
228
234
|
# @param [String] contains The pattern on which to match phone numbers. Valid
|
229
235
|
# characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any
|
230
236
|
# single digit. For examples, see [Example
|
231
|
-
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-number-pattern)
|
237
|
+
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-number-pattern)
|
238
|
+
# and [Example
|
239
|
+
# 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-character-pattern).
|
240
|
+
# If specified, this value must have at least two characters.
|
232
241
|
# @param [Boolean] sms_enabled Whether the phone numbers can receive text
|
233
242
|
# messages. Can be: `true` or `false`.
|
234
243
|
# @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages.
|
@@ -38,7 +38,10 @@ module Twilio
|
|
38
38
|
# @param [String] contains The pattern on which to match phone numbers. Valid
|
39
39
|
# characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any
|
40
40
|
# single digit. For examples, see [Example
|
41
|
-
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
|
41
|
+
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
|
42
|
+
# and [Example
|
43
|
+
# 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3).
|
44
|
+
# If specified, this value must have at least two characters.
|
42
45
|
# @param [Boolean] sms_enabled Whether the phone numbers can receive text
|
43
46
|
# messages. Can be: `true` or `false`.
|
44
47
|
# @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages.
|
@@ -125,7 +128,10 @@ module Twilio
|
|
125
128
|
# @param [String] contains The pattern on which to match phone numbers. Valid
|
126
129
|
# characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any
|
127
130
|
# single digit. For examples, see [Example
|
128
|
-
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
|
131
|
+
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
|
132
|
+
# and [Example
|
133
|
+
# 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3).
|
134
|
+
# If specified, this value must have at least two characters.
|
129
135
|
# @param [Boolean] sms_enabled Whether the phone numbers can receive text
|
130
136
|
# messages. Can be: `true` or `false`.
|
131
137
|
# @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages.
|
@@ -228,7 +234,10 @@ module Twilio
|
|
228
234
|
# @param [String] contains The pattern on which to match phone numbers. Valid
|
229
235
|
# characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any
|
230
236
|
# single digit. For examples, see [Example
|
231
|
-
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
|
237
|
+
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
|
238
|
+
# and [Example
|
239
|
+
# 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3).
|
240
|
+
# If specified, this value must have at least two characters.
|
232
241
|
# @param [Boolean] sms_enabled Whether the phone numbers can receive text
|
233
242
|
# messages. Can be: `true` or `false`.
|
234
243
|
# @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages.
|
@@ -38,7 +38,10 @@ module Twilio
|
|
38
38
|
# @param [String] contains The pattern on which to match phone numbers. Valid
|
39
39
|
# characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any
|
40
40
|
# single digit. For examples, see [Example
|
41
|
-
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
|
41
|
+
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
|
42
|
+
# and [Example
|
43
|
+
# 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3).
|
44
|
+
# If specified, this value must have at least two characters.
|
42
45
|
# @param [Boolean] sms_enabled Whether the phone numbers can receive text
|
43
46
|
# messages. Can be: `true` or `false`.
|
44
47
|
# @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages.
|
@@ -125,7 +128,10 @@ module Twilio
|
|
125
128
|
# @param [String] contains The pattern on which to match phone numbers. Valid
|
126
129
|
# characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any
|
127
130
|
# single digit. For examples, see [Example
|
128
|
-
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
|
131
|
+
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
|
132
|
+
# and [Example
|
133
|
+
# 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3).
|
134
|
+
# If specified, this value must have at least two characters.
|
129
135
|
# @param [Boolean] sms_enabled Whether the phone numbers can receive text
|
130
136
|
# messages. Can be: `true` or `false`.
|
131
137
|
# @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages.
|
@@ -228,7 +234,10 @@ module Twilio
|
|
228
234
|
# @param [String] contains The pattern on which to match phone numbers. Valid
|
229
235
|
# characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any
|
230
236
|
# single digit. For examples, see [Example
|
231
|
-
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
|
237
|
+
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
|
238
|
+
# and [Example
|
239
|
+
# 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3).
|
240
|
+
# If specified, this value must have at least two characters.
|
232
241
|
# @param [Boolean] sms_enabled Whether the phone numbers can receive text
|
233
242
|
# messages. Can be: `true` or `false`.
|
234
243
|
# @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages.
|
@@ -38,7 +38,10 @@ module Twilio
|
|
38
38
|
# @param [String] contains The pattern on which to match phone numbers. Valid
|
39
39
|
# characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any
|
40
40
|
# single digit. For examples, see [Example
|
41
|
-
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
|
41
|
+
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
|
42
|
+
# and [Example
|
43
|
+
# 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3).
|
44
|
+
# If specified, this value must have at least two characters.
|
42
45
|
# @param [Boolean] sms_enabled Whether the phone numbers can receive text
|
43
46
|
# messages. Can be: `true` or `false`.
|
44
47
|
# @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages.
|
@@ -125,7 +128,10 @@ module Twilio
|
|
125
128
|
# @param [String] contains The pattern on which to match phone numbers. Valid
|
126
129
|
# characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any
|
127
130
|
# single digit. For examples, see [Example
|
128
|
-
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
|
131
|
+
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
|
132
|
+
# and [Example
|
133
|
+
# 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3).
|
134
|
+
# If specified, this value must have at least two characters.
|
129
135
|
# @param [Boolean] sms_enabled Whether the phone numbers can receive text
|
130
136
|
# messages. Can be: `true` or `false`.
|
131
137
|
# @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages.
|
@@ -228,7 +234,10 @@ module Twilio
|
|
228
234
|
# @param [String] contains The pattern on which to match phone numbers. Valid
|
229
235
|
# characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any
|
230
236
|
# single digit. For examples, see [Example
|
231
|
-
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
|
237
|
+
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
|
238
|
+
# and [Example
|
239
|
+
# 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3).
|
240
|
+
# If specified, this value must have at least two characters.
|
232
241
|
# @param [Boolean] sms_enabled Whether the phone numbers can receive text
|
233
242
|
# messages. Can be: `true` or `false`.
|
234
243
|
# @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages.
|
@@ -38,7 +38,10 @@ module Twilio
|
|
38
38
|
# @param [String] contains The pattern on which to match phone numbers. Valid
|
39
39
|
# characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any
|
40
40
|
# single digit. For examples, see [Example
|
41
|
-
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
|
41
|
+
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
|
42
|
+
# and [Example
|
43
|
+
# 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3).
|
44
|
+
# If specified, this value must have at least two characters.
|
42
45
|
# @param [Boolean] sms_enabled Whether the phone numbers can receive text
|
43
46
|
# messages. Can be: `true` or `false`.
|
44
47
|
# @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages.
|
@@ -125,7 +128,10 @@ module Twilio
|
|
125
128
|
# @param [String] contains The pattern on which to match phone numbers. Valid
|
126
129
|
# characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any
|
127
130
|
# single digit. For examples, see [Example
|
128
|
-
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
|
131
|
+
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
|
132
|
+
# and [Example
|
133
|
+
# 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3).
|
134
|
+
# If specified, this value must have at least two characters.
|
129
135
|
# @param [Boolean] sms_enabled Whether the phone numbers can receive text
|
130
136
|
# messages. Can be: `true` or `false`.
|
131
137
|
# @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages.
|
@@ -228,7 +234,10 @@ module Twilio
|
|
228
234
|
# @param [String] contains The pattern on which to match phone numbers. Valid
|
229
235
|
# characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any
|
230
236
|
# single digit. For examples, see [Example
|
231
|
-
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
|
237
|
+
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
|
238
|
+
# and [Example
|
239
|
+
# 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3).
|
240
|
+
# If specified, this value must have at least two characters.
|
232
241
|
# @param [Boolean] sms_enabled Whether the phone numbers can receive text
|
233
242
|
# messages. Can be: `true` or `false`.
|
234
243
|
# @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages.
|
@@ -38,7 +38,10 @@ module Twilio
|
|
38
38
|
# @param [String] contains The pattern on which to match phone numbers. Valid
|
39
39
|
# characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any
|
40
40
|
# single digit. For examples, see [Example
|
41
|
-
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
|
41
|
+
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
|
42
|
+
# and [Example
|
43
|
+
# 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3).
|
44
|
+
# If specified, this value must have at least two characters.
|
42
45
|
# @param [Boolean] sms_enabled Whether the phone numbers can receive text
|
43
46
|
# messages. Can be: `true` or `false`.
|
44
47
|
# @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages.
|
@@ -125,7 +128,10 @@ module Twilio
|
|
125
128
|
# @param [String] contains The pattern on which to match phone numbers. Valid
|
126
129
|
# characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any
|
127
130
|
# single digit. For examples, see [Example
|
128
|
-
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
|
131
|
+
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
|
132
|
+
# and [Example
|
133
|
+
# 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3).
|
134
|
+
# If specified, this value must have at least two characters.
|
129
135
|
# @param [Boolean] sms_enabled Whether the phone numbers can receive text
|
130
136
|
# messages. Can be: `true` or `false`.
|
131
137
|
# @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages.
|
@@ -228,7 +234,10 @@ module Twilio
|
|
228
234
|
# @param [String] contains The pattern on which to match phone numbers. Valid
|
229
235
|
# characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any
|
230
236
|
# single digit. For examples, see [Example
|
231
|
-
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
|
237
|
+
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
|
238
|
+
# and [Example
|
239
|
+
# 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3).
|
240
|
+
# If specified, this value must have at least two characters.
|
232
241
|
# @param [Boolean] sms_enabled Whether the phone numbers can receive text
|
233
242
|
# messages. Can be: `true` or `false`.
|
234
243
|
# @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages.
|
@@ -38,7 +38,10 @@ module Twilio
|
|
38
38
|
# @param [String] contains The pattern on which to match phone numbers. Valid
|
39
39
|
# characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any
|
40
40
|
# single digit. For examples, see [Example
|
41
|
-
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
|
41
|
+
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
|
42
|
+
# and [Example
|
43
|
+
# 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3).
|
44
|
+
# If specified, this value must have at least two characters.
|
42
45
|
# @param [Boolean] sms_enabled Whether the phone numbers can receive text
|
43
46
|
# messages. Can be: `true` or `false`.
|
44
47
|
# @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages.
|
@@ -125,7 +128,10 @@ module Twilio
|
|
125
128
|
# @param [String] contains The pattern on which to match phone numbers. Valid
|
126
129
|
# characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any
|
127
130
|
# single digit. For examples, see [Example
|
128
|
-
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
|
131
|
+
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
|
132
|
+
# and [Example
|
133
|
+
# 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3).
|
134
|
+
# If specified, this value must have at least two characters.
|
129
135
|
# @param [Boolean] sms_enabled Whether the phone numbers can receive text
|
130
136
|
# messages. Can be: `true` or `false`.
|
131
137
|
# @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages.
|
@@ -228,7 +234,10 @@ module Twilio
|
|
228
234
|
# @param [String] contains The pattern on which to match phone numbers. Valid
|
229
235
|
# characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any
|
230
236
|
# single digit. For examples, see [Example
|
231
|
-
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
|
237
|
+
# 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-2)
|
238
|
+
# and [Example
|
239
|
+
# 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumber-resource#local-get-basic-example-3).
|
240
|
+
# If specified, this value must have at least two characters.
|
232
241
|
# @param [Boolean] sms_enabled Whether the phone numbers can receive text
|
233
242
|
# messages. Can be: `true` or `false`.
|
234
243
|
# @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages.
|
@@ -57,7 +57,8 @@ module Twilio
|
|
57
57
|
# `completed`. If no event is specified, we send the `completed` status. If you
|
58
58
|
# want to receive multiple events, specify each one in a separate
|
59
59
|
# `status_callback_event` parameter. See the code sample for [monitoring call
|
60
|
-
# progress](https://www.twilio.com/docs/voice/api/call-resource?code-sample=code-create-a-call-resource-and-specify-a-statuscallbackevent&code-sdk-version=json).
|
60
|
+
# progress](https://www.twilio.com/docs/voice/api/call-resource?code-sample=code-create-a-call-resource-and-specify-a-statuscallbackevent&code-sdk-version=json).
|
61
|
+
# If an `application_sid` is present, this parameter is ignored.
|
61
62
|
# @param [String] status_callback_method The HTTP method we should use when
|
62
63
|
# calling the `status_callback` URL. Can be: `GET` or `POST` and the default is
|
63
64
|
# `POST`. If an `application_sid` parameter is present, this parameter is ignored.
|
@@ -192,7 +192,10 @@ module Twilio
|
|
192
192
|
# randomly generated.
|
193
193
|
# @param [String] status_callback Provide an absolute or relative URL to receive
|
194
194
|
# status updates regarding your Pay session. Read more about the
|
195
|
-
# [Update](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback-update)
|
195
|
+
# [Update](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback-update)
|
196
|
+
# and
|
197
|
+
# [Complete/Cancel](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback-cancelcomplete)
|
198
|
+
# POST requests.
|
196
199
|
# @param [payment.Capture] capture The piece of payment information that you wish
|
197
200
|
# the caller to enter. Must be one of `payment-card-number`, `expiration-date`,
|
198
201
|
# `security-code`, `postal-code`, `bank-routing-number`, or `bank-account-number`.
|
@@ -329,7 +332,10 @@ module Twilio
|
|
329
332
|
# randomly generated.
|
330
333
|
# @param [String] status_callback Provide an absolute or relative URL to receive
|
331
334
|
# status updates regarding your Pay session. Read more about the
|
332
|
-
# [Update](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback-update)
|
335
|
+
# [Update](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback-update)
|
336
|
+
# and
|
337
|
+
# [Complete/Cancel](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback-cancelcomplete)
|
338
|
+
# POST requests.
|
333
339
|
# @param [payment.Capture] capture The piece of payment information that you wish
|
334
340
|
# the caller to enter. Must be one of `payment-card-number`, `expiration-date`,
|
335
341
|
# `security-code`, `postal-code`, `bank-routing-number`, or `bank-account-number`.
|
@@ -46,7 +46,8 @@ module Twilio
|
|
46
46
|
# [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g.,
|
47
47
|
# +16175551212). SIP addresses are formatted as `sip:name@company.com`. Client
|
48
48
|
# identifiers are formatted `client:name`. [Custom
|
49
|
-
# parameters](https://www.twilio.com/docs/voice/api/conference-participant-resource#custom-parameters)
|
49
|
+
# parameters](https://www.twilio.com/docs/voice/api/conference-participant-resource#custom-parameters)
|
50
|
+
# may also be specified.
|
50
51
|
# @param [String] status_callback The URL we should call using the
|
51
52
|
# `status_callback_method` to send status information to your application.
|
52
53
|
# @param [String] status_callback_method The HTTP method we should use to call
|
@@ -118,7 +119,9 @@ module Twilio
|
|
118
119
|
# @param [String] sip_auth_username The SIP username used for authentication.
|
119
120
|
# @param [String] sip_auth_password The SIP password for authentication.
|
120
121
|
# @param [String] region The
|
121
|
-
# [region](https://support.twilio.com/hc/en-us/articles/223132167-How-global-low-latency-routing-and-region-selection-work-for-conferences-and-Client-calls)
|
122
|
+
# [region](https://support.twilio.com/hc/en-us/articles/223132167-How-global-low-latency-routing-and-region-selection-work-for-conferences-and-Client-calls)
|
123
|
+
# where we should mix the recorded audio. Can be:`us1`, `ie1`, `de1`, `sg1`,
|
124
|
+
# `br1`, `au1`, or `jp1`.
|
122
125
|
# @param [String] conference_recording_status_callback The URL we should call
|
123
126
|
# using the `conference_recording_status_callback_method` when the conference
|
124
127
|
# recording is available.
|
@@ -81,7 +81,14 @@ module Twilio
|
|
81
81
|
# @param [String] from A Twilio phone number in
|
82
82
|
# [E.164](https://www.twilio.com/docs/glossary/what-e164) format, an [alphanumeric
|
83
83
|
# sender
|
84
|
-
# ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id),
|
84
|
+
# ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id),
|
85
|
+
# or a [Channel Endpoint
|
86
|
+
# address](https://www.twilio.com/docs/sms/channels#channel-addresses) that is
|
87
|
+
# enabled for the type of message you want to send. Phone numbers or [short
|
88
|
+
# codes](https://www.twilio.com/docs/sms/api/short-code) purchased from Twilio
|
89
|
+
# also work here. You cannot, for example, spoof messages from a private cell
|
90
|
+
# phone number. If you are using `messaging_service_sid`, this parameter must be
|
91
|
+
# empty.
|
85
92
|
# @param [String] messaging_service_sid The SID of the [Messaging
|
86
93
|
# Service](https://www.twilio.com/docs/sms/services#send-a-message-with-copilot)
|
87
94
|
# you want to associate with the Message. Set this parameter to use the [Messaging
|
@@ -34,7 +34,9 @@ module Twilio
|
|
34
34
|
# Create the FeedbackInstance
|
35
35
|
# @param [feedback.Outcome] outcome Whether the feedback has arrived. Can be:
|
36
36
|
# `unconfirmed` or `confirmed`. If `provide_feedback`=`true` in [the initial HTTP
|
37
|
-
# POST](https://www.twilio.com/docs/sms/api/message-resource#create-a-message-resource),
|
37
|
+
# POST](https://www.twilio.com/docs/sms/api/message-resource#create-a-message-resource),
|
38
|
+
# the initial value of this property is `unconfirmed`. After the message arrives,
|
39
|
+
# update the value to `confirmed`.
|
38
40
|
# @return [FeedbackInstance] Created FeedbackInstance
|
39
41
|
def create(outcome: :unset)
|
40
42
|
data = Twilio::Values.of({'Outcome' => outcome, })
|
@@ -51,7 +51,8 @@ module Twilio
|
|
51
51
|
# [UsageRecord](https://www.twilio.com/docs/usage/api/usage-record) resource that
|
52
52
|
# should fire the trigger. Can be: `count`, `usage`, or `price` as described in
|
53
53
|
# the [UsageRecords
|
54
|
-
# documentation](https://www.twilio.com/docs/usage/api/usage-record#usage-count-price).
|
54
|
+
# documentation](https://www.twilio.com/docs/usage/api/usage-record#usage-count-price).
|
55
|
+
# The default is `usage`.
|
55
56
|
# @return [TriggerInstance] Created TriggerInstance
|
56
57
|
def create(callback_url: nil, trigger_value: nil, usage_category: nil, callback_method: :unset, friendly_name: :unset, recurring: :unset, trigger_by: :unset)
|
57
58
|
data = Twilio::Values.of({
|
@@ -37,7 +37,8 @@ module Twilio
|
|
37
37
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
38
38
|
# memory before returning.
|
39
39
|
# @param [String] language The [ISO
|
40
|
-
# language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html)
|
40
|
+
# language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html)
|
41
|
+
# tag that specifies the language of the value. Currently supported tags: `en-US`
|
41
42
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
42
43
|
# guarantees to never return more than limit. Default is no limit
|
43
44
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -54,7 +55,8 @@ module Twilio
|
|
54
55
|
# This operation lazily loads records as efficiently as possible until the limit
|
55
56
|
# is reached.
|
56
57
|
# @param [String] language The [ISO
|
57
|
-
# language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html)
|
58
|
+
# language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html)
|
59
|
+
# tag that specifies the language of the value. Currently supported tags: `en-US`
|
58
60
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
59
61
|
# guarantees to never return more than limit. Default is no limit.
|
60
62
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -88,7 +90,8 @@ module Twilio
|
|
88
90
|
# Retrieve a single page of FieldValueInstance records from the API.
|
89
91
|
# Request is executed immediately.
|
90
92
|
# @param [String] language The [ISO
|
91
|
-
# language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html)
|
93
|
+
# language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html)
|
94
|
+
# tag that specifies the language of the value. Currently supported tags: `en-US`
|
92
95
|
# @param [String] page_token PageToken provided by the API
|
93
96
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
94
97
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
@@ -122,7 +125,8 @@ module Twilio
|
|
122
125
|
##
|
123
126
|
# Create the FieldValueInstance
|
124
127
|
# @param [String] language The [ISO
|
125
|
-
# language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html)
|
128
|
+
# language-country](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html)
|
129
|
+
# tag that specifies the language of the value. Currently supported tags: `en-US`
|
126
130
|
# @param [String] value The Field Value data.
|
127
131
|
# @param [String] synonym_of The string value that indicates which word the field
|
128
132
|
# value is a synonym of.
|