twilio-ruby 5.39.2 → 5.39.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/CHANGES.md +14 -0
- data/ISSUE_TEMPLATE.md +5 -1
- data/PULL_REQUEST_TEMPLATE.md +1 -1
- data/README.md +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +79 -60
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +14 -0
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +14 -0
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +14 -0
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +25 -3
- data/lib/twilio-ruby/rest/verify/v2/service.rb +21 -9
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +10 -2
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +4 -1
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/api/v2010/account/incoming_phone_number/local_spec.rb +35 -36
- data/spec/integration/api/v2010/account/incoming_phone_number/mobile_spec.rb +39 -40
- data/spec/integration/api/v2010/account/incoming_phone_number/toll_free_spec.rb +35 -36
- data/spec/integration/api/v2010/account/incoming_phone_number_spec.rb +25 -23
- data/spec/integration/api/v2010/account/message_spec.rb +37 -0
- data/spec/integration/conversations/v1/conversation/message_spec.rb +38 -0
- data/spec/integration/conversations/v1/conversation/participant_spec.rb +56 -0
- data/spec/integration/conversations/v1/conversation_spec.rb +30 -0
- data/spec/integration/verify/v2/service/access_token_spec.rb +1 -1
- data/spec/integration/verify/v2/service/entity/challenge_spec.rb +8 -8
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 841eb384db83b5c1a3a721c97098684d75d6d5b1ffb859131406d021a4622979
|
4
|
+
data.tar.gz: 7947f0f1a27572f6fc89029d822b58e91c7f27e60f04382a396677afdad1155c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b87be38b318fd24a402aaadb4127a34813380889563b77f6b531bcb63d02990f4de2b68fbe10d76bcc1ce6c81889e31922533094efbeb2510b5653b7a52d5453
|
7
|
+
data.tar.gz: 1a054d5e499e9561aa6549dcf63b93da6890e34e99d0449ad8d61bd3cfbde7f79cc4e4c61e0d58a51a463fe735a708b46b38cd264c7f8f4f1d0d1ce6b5c6bd8b
|
data/.travis.yml
CHANGED
data/CHANGES.md
CHANGED
@@ -1,6 +1,20 @@
|
|
1
1
|
twilio-ruby changelog
|
2
2
|
=====================
|
3
3
|
|
4
|
+
[2020-08-05] Version 5.39.3
|
5
|
+
---------------------------
|
6
|
+
**Messaging**
|
7
|
+
- Add rejection reason support to WhatsApp API
|
8
|
+
- Removed status parameter for create and update in WhatsApp Templates API
|
9
|
+
|
10
|
+
**Proxy**
|
11
|
+
- Add FailOnParticipantConflict param to Proxy Session update
|
12
|
+
|
13
|
+
**Verify**
|
14
|
+
- Add `CustomFriendlyName` optional parameter on Verification creation.
|
15
|
+
- Changes in `Challenge` resource to update documentation of both `details` and `hidden_details` properties.
|
16
|
+
|
17
|
+
|
4
18
|
[2020-07-22] Version 5.39.2
|
5
19
|
---------------------------
|
6
20
|
**Api**
|
data/ISSUE_TEMPLATE.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
<!--
|
2
2
|
If this is a feature request, make sure you search Issues for an existing request before creating a new one!
|
3
|
+
|
4
|
+
Please utilize the template below to help us resolve your issue.
|
5
|
+
|
6
|
+
Note that many issues can be resolved by updating to the latest version.
|
3
7
|
-->
|
4
8
|
|
5
9
|
### Issue Summary
|
@@ -21,6 +25,6 @@ A summary of the issue and the environment in which it occurs. If suitable, incl
|
|
21
25
|
```
|
22
26
|
|
23
27
|
### Technical details:
|
24
|
-
* twilio-ruby version:
|
28
|
+
* twilio-ruby version:
|
25
29
|
* ruby version:
|
26
30
|
|
data/PULL_REQUEST_TEMPLATE.md
CHANGED
@@ -23,7 +23,7 @@ A short description of what this PR does.
|
|
23
23
|
- [ ] I have made a material change to the repo (functionality, testing, spelling, grammar)
|
24
24
|
- [ ] I have read the [Contribution Guidelines](CONTRIBUTING.md) and my PR follows them
|
25
25
|
- [ ] I have titled the PR appropriately
|
26
|
-
- [ ] I have updated my branch with the
|
26
|
+
- [ ] I have updated my branch with the main branch
|
27
27
|
- [ ] I have added tests that prove my fix is effective or that my feature works
|
28
28
|
- [ ] I have added necessary documentation about the functionality in the appropriate .md file
|
29
29
|
- [ ] I have added inline documentation to the code I modified
|
data/README.md
CHANGED
@@ -4,6 +4,8 @@
|
|
4
4
|
[![Gem Version](https://img.shields.io/gem/v/twilio-ruby.svg)](https://rubygems.org/gems/twilio-ruby)
|
5
5
|
[![Learn with TwilioQuest](https://img.shields.io/static/v1?label=TwilioQuest&message=Learn%20to%20contribute%21&color=F22F46&labelColor=1f243c&style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAASFBMVEUAAAAZGRkcHBwjIyMoKCgAAABgYGBoaGiAgICMjIyzs7PJycnMzMzNzc3UoBfd3d3m5ubqrhfrMEDu7u739/f4vSb/3AD///9tbdyEAAAABXRSTlMAAAAAAMJrBrEAAAKoSURBVHgB7ZrRcuI6EESdyxXGYoNFvMD//+l2bSszRgyUYpFAsXOeiJGmj4NkuWx1Qeh+Ekl9DgEXOBwOx+Px5xyQhDykfgq4wG63MxxaR4ddIkg6Ul3g84vCIcjPBA5gmUMeXESrlukuoK33+33uID8TWeLAdOWsKpJYzwVMB7bOzYSGOciyUlXSn0/ABXTosJ1M1SbypZ4O4MbZuIDMU02PMbauhhHMHXbmebmALIiEbbbbbUrpF1gwE9kFfRNAJaP+FQEXCCTGyJ4ngDrjOFo3jEL5JdqjF/pueR4cCeCGgAtwmuRS6gDwaRiGvu+DMFwSBLTE3+jF8JyuV1okPZ+AC4hDFhCHyHQjdjPHUKFDlHSJkHQXMB3KpSwXNGJPcwwTdZiXlRN0gSp0zpWxNtM0beYE0nRH6QIbO7rawwXaBYz0j78gxjokDuv12gVeUuBD0MDi0OQCLvDaAho4juP1Q/jkAncXqIcCfd+7gAu4QLMACCLxpRsSuQh0igu0C9Svhi7weAGZg50L3IE3cai4IfkNZAC8dfdhsUD3CgKBVC9JE5ABAFzg4QL/taYPAAWrHdYcgfLaIgAXWJ7OV38n1LEF8tt2TH29E+QAoDoO5Ve/LtCQDmKM9kPbvCEBApK+IXzbcSJ0cIGF6e8gpcRhUDogWZ8JnaWjPXc/fNnBBUKRngiHgTUSivSzDRDgHZQOLvBQgf8rRt+VdBUUhwkU6VpJ+xcOwQUqZr+mR0kvBUgv6cB4+37hQAkXqE8PwGisGhJtN4xAHMzrsgvI7rccXqSvKh6jltGlrOHA3Xk1At3LC4QiPdX9/0ndHpGVvTjR4bZA1ypAKgVcwE5vx74ulwIugDt8e/X7JgfkucBMIAr26ndnB4UCLnDOqvteQsHlgX9N4A+c4cW3DXSPbwAAAABJRU5ErkJggg==)](https://twil.io/learn-open-source)
|
6
6
|
|
7
|
+
**The default branch name for this repository has been changed to `main` as of 07/27/2020.**
|
8
|
+
|
7
9
|
## Documentation
|
8
10
|
|
9
11
|
The documentation for the Twilio API can be found [here][apidocs].
|
@@ -32,13 +34,13 @@ This library supports the following Ruby implementations:
|
|
32
34
|
To install using [Bundler][bundler] grab the latest stable version:
|
33
35
|
|
34
36
|
```ruby
|
35
|
-
gem 'twilio-ruby', '~> 5.39.
|
37
|
+
gem 'twilio-ruby', '~> 5.39.3'
|
36
38
|
```
|
37
39
|
|
38
40
|
To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
|
39
41
|
|
40
42
|
```bash
|
41
|
-
gem install twilio-ruby -v 5.39.
|
43
|
+
gem install twilio-ruby -v 5.39.3
|
42
44
|
```
|
43
45
|
|
44
46
|
To build and install the development branch yourself from the latest source:
|
@@ -36,50 +36,59 @@ module Twilio
|
|
36
36
|
|
37
37
|
##
|
38
38
|
# Create the PaymentInstance
|
39
|
-
# @param [String] idempotency_key A unique token
|
40
|
-
#
|
41
|
-
#
|
42
|
-
#
|
43
|
-
# @param [
|
44
|
-
#
|
39
|
+
# @param [String] idempotency_key A unique token that will be used to ensure that
|
40
|
+
# multiple API calls with the same information do not result in multiple
|
41
|
+
# transactions. This should be a unique string value per API call and can be a
|
42
|
+
# randomly generated.
|
43
|
+
# @param [String] status_callback Provide an absolute or relative URL to receive
|
44
|
+
# status updates regarding your Pay session. Read more about the [expected
|
45
|
+
# StatusCallback
|
46
|
+
# values](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback)
|
47
|
+
# @param [payment.BankAccountType] bank_account_type Type of bank account if
|
48
|
+
# payment source is ACH. One of `consumer-checking`, `consumer-savings`, or
|
45
49
|
# `commercial-checking`. The default value is `consumer-checking`.
|
46
|
-
# @param [String] charge_amount
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
+
# @param [String] charge_amount A positive decimal value less than 1,000,000 to
|
51
|
+
# charge against the credit card or bank account. Default currency can be
|
52
|
+
# overwritten with `currency` field. Leave blank or set to 0 to tokenize.
|
53
|
+
# @param [String] currency The currency of the `charge_amount`, formatted as [ISO
|
50
54
|
# 4127](http://www.iso.org/iso/home/standards/currency_codes.htm) format. The
|
51
|
-
# default value is `USD
|
52
|
-
#
|
53
|
-
# @param [String]
|
54
|
-
#
|
55
|
-
#
|
56
|
-
# @param [String]
|
57
|
-
#
|
58
|
-
#
|
59
|
-
# @param [
|
60
|
-
#
|
61
|
-
#
|
62
|
-
#
|
63
|
-
#
|
64
|
-
#
|
65
|
-
#
|
66
|
-
#
|
67
|
-
#
|
68
|
-
#
|
69
|
-
#
|
70
|
-
# @param [
|
71
|
-
#
|
72
|
-
# @param [Boolean]
|
73
|
-
#
|
74
|
-
#
|
75
|
-
#
|
76
|
-
#
|
77
|
-
#
|
78
|
-
#
|
79
|
-
#
|
80
|
-
#
|
81
|
-
#
|
82
|
-
#
|
55
|
+
# default value is `USD` and all values allowed from the <Pay> Connector are
|
56
|
+
# accepted.
|
57
|
+
# @param [String] description The description can be used to provide more details
|
58
|
+
# regarding the transaction. This information is submitted along with the payment
|
59
|
+
# details to the Payment Connector which are then posted on the transactions.
|
60
|
+
# @param [String] input A list of inputs that should be accepted. Currently only
|
61
|
+
# `dtmf` is supported. All digits captured during a pay session are redacted from
|
62
|
+
# the logs.
|
63
|
+
# @param [String] min_postal_code_length A positive integer that is used to
|
64
|
+
# validate the length of the `PostalCode` inputted by the user. User must enter
|
65
|
+
# this many digits.
|
66
|
+
# @param [Hash] parameter A single level JSON string that is required when
|
67
|
+
# accepting certain information specific only to ACH payments. The information
|
68
|
+
# that has to be included here depends on the <Pay> Connector. [Read
|
69
|
+
# more](https://www.twilio.com/console/voice/pay-connectors).
|
70
|
+
# @param [String] payment_connector This is the unique name corresponding to the
|
71
|
+
# Payment Gateway Connector installed in the Twilio Add-ons. Learn more about
|
72
|
+
# [<Pay> Connectors](https://www.twilio.com/console/voice/pay-connectors). The
|
73
|
+
# default value is `Default`.
|
74
|
+
# @param [payment.PaymentMethod] payment_method Type of payment being captured.
|
75
|
+
# One of `credit-card` or `ach-debit`. The default value is `credit-card`.
|
76
|
+
# @param [Boolean] postal_code Indicates whether the credit card postal code (zip
|
77
|
+
# code) is a required piece of payment information that must be provided by the
|
78
|
+
# caller. The default is `true`.
|
79
|
+
# @param [Boolean] security_code Indicates whether the credit card security code
|
80
|
+
# is a required piece of payment information that must be provided by the caller.
|
81
|
+
# The default is `true`.
|
82
|
+
# @param [String] timeout The number of seconds that <Pay> should wait for the
|
83
|
+
# caller to press a digit between each subsequent digit, after the first one,
|
84
|
+
# before moving on to validate the digits captured. The default is `5`, maximum is
|
85
|
+
# `600`.
|
86
|
+
# @param [payment.TokenType] token_type Indicates whether the payment method
|
87
|
+
# should be tokenized as a `one-time` or `reusable` token. The default value is
|
88
|
+
# `reusable`. Do not enter a charge amount when tokenizing. If a charge amount is
|
89
|
+
# entered, the payment method will be charged and not tokenized.
|
90
|
+
# @param [String] valid_card_types Credit card types separated by space that Pay
|
91
|
+
# should accept. The default value is `visa mastercard amex`
|
83
92
|
# @return [PaymentInstance] Created PaymentInstance
|
84
93
|
def create(idempotency_key: nil, status_callback: nil, bank_account_type: :unset, charge_amount: :unset, currency: :unset, description: :unset, input: :unset, min_postal_code_length: :unset, parameter: :unset, payment_connector: :unset, payment_method: :unset, postal_code: :unset, security_code: :unset, timeout: :unset, token_type: :unset, valid_card_types: :unset)
|
85
94
|
data = Twilio::Values.of({
|
@@ -177,15 +186,20 @@ module Twilio
|
|
177
186
|
|
178
187
|
##
|
179
188
|
# Update the PaymentInstance
|
180
|
-
# @param [String] idempotency_key A unique token
|
181
|
-
#
|
182
|
-
#
|
183
|
-
#
|
184
|
-
# @param [
|
185
|
-
#
|
186
|
-
#
|
187
|
-
# @param [payment.
|
188
|
-
#
|
189
|
+
# @param [String] idempotency_key A unique token that will be used to ensure that
|
190
|
+
# multiple API calls with the same information do not result in multiple
|
191
|
+
# transactions. This should be a unique string value per API call and can be a
|
192
|
+
# randomly generated.
|
193
|
+
# @param [String] status_callback Provide an absolute or relative URL to receive
|
194
|
+
# status updates regarding your Pay session. Read more about the
|
195
|
+
# [Update](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback-update) and [Complete/Cancel](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback-cancelcomplete) POST requests.
|
196
|
+
# @param [payment.Capture] capture The piece of payment information that you wish
|
197
|
+
# the caller to enter. Must be one of `payment-card-number`, `expiration-date`,
|
198
|
+
# `security-code`, `postal-code`, `bank-routing-number`, or `bank-account-number`.
|
199
|
+
# @param [payment.Status] status Indicates whether the current payment session
|
200
|
+
# should be cancelled or completed. When `cancel` the payment session is
|
201
|
+
# cancelled. When `complete`, Twilio sends the payment information to the selected
|
202
|
+
# <Pay> connector for processing.
|
189
203
|
# @return [PaymentInstance] Updated PaymentInstance
|
190
204
|
def update(idempotency_key: nil, status_callback: nil, capture: :unset, status: :unset)
|
191
205
|
data = Twilio::Values.of({
|
@@ -309,15 +323,20 @@ module Twilio
|
|
309
323
|
|
310
324
|
##
|
311
325
|
# Update the PaymentInstance
|
312
|
-
# @param [String] idempotency_key A unique token
|
313
|
-
#
|
314
|
-
#
|
315
|
-
#
|
316
|
-
# @param [
|
317
|
-
#
|
318
|
-
#
|
319
|
-
# @param [payment.
|
320
|
-
#
|
326
|
+
# @param [String] idempotency_key A unique token that will be used to ensure that
|
327
|
+
# multiple API calls with the same information do not result in multiple
|
328
|
+
# transactions. This should be a unique string value per API call and can be a
|
329
|
+
# randomly generated.
|
330
|
+
# @param [String] status_callback Provide an absolute or relative URL to receive
|
331
|
+
# status updates regarding your Pay session. Read more about the
|
332
|
+
# [Update](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback-update) and [Complete/Cancel](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback-cancelcomplete) POST requests.
|
333
|
+
# @param [payment.Capture] capture The piece of payment information that you wish
|
334
|
+
# the caller to enter. Must be one of `payment-card-number`, `expiration-date`,
|
335
|
+
# `security-code`, `postal-code`, `bank-routing-number`, or `bank-account-number`.
|
336
|
+
# @param [payment.Status] status Indicates whether the current payment session
|
337
|
+
# should be cancelled or completed. When `cancel` the payment session is
|
338
|
+
# cancelled. When `complete`, Twilio sends the payment information to the selected
|
339
|
+
# <Pay> connector for processing.
|
321
340
|
# @return [PaymentInstance] Updated PaymentInstance
|
322
341
|
def update(idempotency_key: nil, status_callback: nil, capture: :unset, status: :unset)
|
323
342
|
context.update(
|
@@ -322,6 +322,7 @@ module Twilio
|
|
322
322
|
'status_callback_method' => payload['status_callback_method'],
|
323
323
|
'trunk_sid' => payload['trunk_sid'],
|
324
324
|
'uri' => payload['uri'],
|
325
|
+
'voice_receive_mode' => payload['voice_receive_mode'],
|
325
326
|
'voice_application_sid' => payload['voice_application_sid'],
|
326
327
|
'voice_caller_id_lookup' => payload['voice_caller_id_lookup'],
|
327
328
|
'voice_fallback_method' => payload['voice_fallback_method'],
|
@@ -331,6 +332,7 @@ module Twilio
|
|
331
332
|
'emergency_status' => payload['emergency_status'],
|
332
333
|
'emergency_address_sid' => payload['emergency_address_sid'],
|
333
334
|
'bundle_sid' => payload['bundle_sid'],
|
335
|
+
'status' => payload['status'],
|
334
336
|
}
|
335
337
|
end
|
336
338
|
|
@@ -466,6 +468,12 @@ module Twilio
|
|
466
468
|
@properties['uri']
|
467
469
|
end
|
468
470
|
|
471
|
+
##
|
472
|
+
# @return [local.VoiceReceiveMode] The voice_receive_mode
|
473
|
+
def voice_receive_mode
|
474
|
+
@properties['voice_receive_mode']
|
475
|
+
end
|
476
|
+
|
469
477
|
##
|
470
478
|
# @return [String] The SID of the application that handles calls to the phone number
|
471
479
|
def voice_application_sid
|
@@ -520,6 +528,12 @@ module Twilio
|
|
520
528
|
@properties['bundle_sid']
|
521
529
|
end
|
522
530
|
|
531
|
+
##
|
532
|
+
# @return [String] The status
|
533
|
+
def status
|
534
|
+
@properties['status']
|
535
|
+
end
|
536
|
+
|
523
537
|
##
|
524
538
|
# Provide a user friendly representation
|
525
539
|
def to_s
|
@@ -321,6 +321,7 @@ module Twilio
|
|
321
321
|
'status_callback_method' => payload['status_callback_method'],
|
322
322
|
'trunk_sid' => payload['trunk_sid'],
|
323
323
|
'uri' => payload['uri'],
|
324
|
+
'voice_receive_mode' => payload['voice_receive_mode'],
|
324
325
|
'voice_application_sid' => payload['voice_application_sid'],
|
325
326
|
'voice_caller_id_lookup' => payload['voice_caller_id_lookup'],
|
326
327
|
'voice_fallback_method' => payload['voice_fallback_method'],
|
@@ -330,6 +331,7 @@ module Twilio
|
|
330
331
|
'emergency_status' => payload['emergency_status'],
|
331
332
|
'emergency_address_sid' => payload['emergency_address_sid'],
|
332
333
|
'bundle_sid' => payload['bundle_sid'],
|
334
|
+
'status' => payload['status'],
|
333
335
|
}
|
334
336
|
end
|
335
337
|
|
@@ -465,6 +467,12 @@ module Twilio
|
|
465
467
|
@properties['uri']
|
466
468
|
end
|
467
469
|
|
470
|
+
##
|
471
|
+
# @return [mobile.VoiceReceiveMode] The voice_receive_mode
|
472
|
+
def voice_receive_mode
|
473
|
+
@properties['voice_receive_mode']
|
474
|
+
end
|
475
|
+
|
468
476
|
##
|
469
477
|
# @return [String] The SID of the application that handles calls to the phone number
|
470
478
|
def voice_application_sid
|
@@ -519,6 +527,12 @@ module Twilio
|
|
519
527
|
@properties['bundle_sid']
|
520
528
|
end
|
521
529
|
|
530
|
+
##
|
531
|
+
# @return [String] The status
|
532
|
+
def status
|
533
|
+
@properties['status']
|
534
|
+
end
|
535
|
+
|
522
536
|
##
|
523
537
|
# Provide a user friendly representation
|
524
538
|
def to_s
|
@@ -321,6 +321,7 @@ module Twilio
|
|
321
321
|
'status_callback_method' => payload['status_callback_method'],
|
322
322
|
'trunk_sid' => payload['trunk_sid'],
|
323
323
|
'uri' => payload['uri'],
|
324
|
+
'voice_receive_mode' => payload['voice_receive_mode'],
|
324
325
|
'voice_application_sid' => payload['voice_application_sid'],
|
325
326
|
'voice_caller_id_lookup' => payload['voice_caller_id_lookup'],
|
326
327
|
'voice_fallback_method' => payload['voice_fallback_method'],
|
@@ -330,6 +331,7 @@ module Twilio
|
|
330
331
|
'emergency_status' => payload['emergency_status'],
|
331
332
|
'emergency_address_sid' => payload['emergency_address_sid'],
|
332
333
|
'bundle_sid' => payload['bundle_sid'],
|
334
|
+
'status' => payload['status'],
|
333
335
|
}
|
334
336
|
end
|
335
337
|
|
@@ -465,6 +467,12 @@ module Twilio
|
|
465
467
|
@properties['uri']
|
466
468
|
end
|
467
469
|
|
470
|
+
##
|
471
|
+
# @return [toll_free.VoiceReceiveMode] The voice_receive_mode
|
472
|
+
def voice_receive_mode
|
473
|
+
@properties['voice_receive_mode']
|
474
|
+
end
|
475
|
+
|
468
476
|
##
|
469
477
|
# @return [String] The SID of the application that handles calls to the phone number
|
470
478
|
def voice_application_sid
|
@@ -519,6 +527,12 @@ module Twilio
|
|
519
527
|
@properties['bundle_sid']
|
520
528
|
end
|
521
529
|
|
530
|
+
##
|
531
|
+
# @return [String] The status
|
532
|
+
def status
|
533
|
+
@properties['status']
|
534
|
+
end
|
535
|
+
|
522
536
|
##
|
523
537
|
# Provide a user friendly representation
|
524
538
|
def to_s
|
@@ -230,12 +230,21 @@ module Twilio
|
|
230
230
|
# is measured from the last Session create or the Session's last Interaction.
|
231
231
|
# @param [session.Status] status The new status of the resource. Can be:
|
232
232
|
# `in-progress` to re-open a session or `closed` to close a session.
|
233
|
+
# @param [Boolean] fail_on_participant_conflict Setting to true (recommended),
|
234
|
+
# enables Proxy to return a 400 error (Twilio error code 80604) when a request to
|
235
|
+
# set a Session to in-progress would cause Participants with the same
|
236
|
+
# identifier/proxy_identifier pair to be active in multiple Sessions. If not
|
237
|
+
# provided, or if set to false, requests will be allowed to succeed and a Debugger
|
238
|
+
# event (80801) will be emitted. This causes calls and messages from affected
|
239
|
+
# Participants to be routed incorrectly. Please note, in a future release, the
|
240
|
+
# default behavior will be to reject the request with a 400 error.
|
233
241
|
# @return [SessionInstance] Updated SessionInstance
|
234
|
-
def update(date_expiry: :unset, ttl: :unset, status: :unset)
|
242
|
+
def update(date_expiry: :unset, ttl: :unset, status: :unset, fail_on_participant_conflict: :unset)
|
235
243
|
data = Twilio::Values.of({
|
236
244
|
'DateExpiry' => Twilio.serialize_iso8601_datetime(date_expiry),
|
237
245
|
'Ttl' => ttl,
|
238
246
|
'Status' => status,
|
247
|
+
'FailOnParticipantConflict' => fail_on_participant_conflict,
|
239
248
|
})
|
240
249
|
|
241
250
|
payload = @version.update('POST', @uri, data: data)
|
@@ -473,9 +482,22 @@ module Twilio
|
|
473
482
|
# is measured from the last Session create or the Session's last Interaction.
|
474
483
|
# @param [session.Status] status The new status of the resource. Can be:
|
475
484
|
# `in-progress` to re-open a session or `closed` to close a session.
|
485
|
+
# @param [Boolean] fail_on_participant_conflict Setting to true (recommended),
|
486
|
+
# enables Proxy to return a 400 error (Twilio error code 80604) when a request to
|
487
|
+
# set a Session to in-progress would cause Participants with the same
|
488
|
+
# identifier/proxy_identifier pair to be active in multiple Sessions. If not
|
489
|
+
# provided, or if set to false, requests will be allowed to succeed and a Debugger
|
490
|
+
# event (80801) will be emitted. This causes calls and messages from affected
|
491
|
+
# Participants to be routed incorrectly. Please note, in a future release, the
|
492
|
+
# default behavior will be to reject the request with a 400 error.
|
476
493
|
# @return [SessionInstance] Updated SessionInstance
|
477
|
-
def update(date_expiry: :unset, ttl: :unset, status: :unset)
|
478
|
-
context.update(
|
494
|
+
def update(date_expiry: :unset, ttl: :unset, status: :unset, fail_on_participant_conflict: :unset)
|
495
|
+
context.update(
|
496
|
+
date_expiry: date_expiry,
|
497
|
+
ttl: ttl,
|
498
|
+
status: status,
|
499
|
+
fail_on_participant_conflict: fail_on_participant_conflict,
|
500
|
+
)
|
479
501
|
end
|
480
502
|
|
481
503
|
##
|
@@ -47,10 +47,14 @@ module Twilio
|
|
47
47
|
# @param [Boolean] custom_code_enabled Whether to allow sending verifications with
|
48
48
|
# a custom code instead of a randomly generated one. Not available for all
|
49
49
|
# customers.
|
50
|
-
# @param [Hash] push
|
51
|
-
# present it must be a json string with the following format:
|
50
|
+
# @param [Hash] push Configurations for the Push factors (channel) created under
|
51
|
+
# this Service. If present, it must be a json string with the following format:
|
52
52
|
# {"notify_service_sid": "ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "include_date":
|
53
|
-
# true}
|
53
|
+
# true}. If `include_date` is set to `true`, which is the default, that means that
|
54
|
+
# the push challenge’s response will include the date created value. If
|
55
|
+
# `include_date` is set to `false`, then the date created value will not be
|
56
|
+
# included. See [Challenge](https://www.twilio.com/docs/verify/api/challenge)
|
57
|
+
# resource’s details parameter for more info
|
54
58
|
# @return [ServiceInstance] Created ServiceInstance
|
55
59
|
def create(friendly_name: nil, code_length: :unset, lookup_enabled: :unset, skip_sms_to_landlines: :unset, dtmf_input_required: :unset, tts_name: :unset, psd2_enabled: :unset, do_not_share_warning_enabled: :unset, custom_code_enabled: :unset, push: :unset)
|
56
60
|
data = Twilio::Values.of({
|
@@ -249,10 +253,14 @@ module Twilio
|
|
249
253
|
# @param [Boolean] custom_code_enabled Whether to allow sending verifications with
|
250
254
|
# a custom code instead of a randomly generated one. Not available for all
|
251
255
|
# customers.
|
252
|
-
# @param [Hash] push
|
253
|
-
# present it must be a json string with the following format:
|
256
|
+
# @param [Hash] push Configurations for the Push factors (channel) created under
|
257
|
+
# this Service. If present, it must be a json string with the following format:
|
254
258
|
# {"notify_service_sid": "ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "include_date":
|
255
|
-
# true}
|
259
|
+
# true}. If `include_date` is set to `true`, which is the default, that means that
|
260
|
+
# the push challenge’s response will include the date created value. If
|
261
|
+
# `include_date` is set to `false`, then the date created value will not be
|
262
|
+
# included. See [Challenge](https://www.twilio.com/docs/verify/api/challenge)
|
263
|
+
# resource’s details parameter for more info
|
256
264
|
# @return [ServiceInstance] Updated ServiceInstance
|
257
265
|
def update(friendly_name: :unset, code_length: :unset, lookup_enabled: :unset, skip_sms_to_landlines: :unset, dtmf_input_required: :unset, tts_name: :unset, psd2_enabled: :unset, do_not_share_warning_enabled: :unset, custom_code_enabled: :unset, push: :unset)
|
258
266
|
data = Twilio::Values.of({
|
@@ -581,10 +589,14 @@ module Twilio
|
|
581
589
|
# @param [Boolean] custom_code_enabled Whether to allow sending verifications with
|
582
590
|
# a custom code instead of a randomly generated one. Not available for all
|
583
591
|
# customers.
|
584
|
-
# @param [Hash] push
|
585
|
-
# present it must be a json string with the following format:
|
592
|
+
# @param [Hash] push Configurations for the Push factors (channel) created under
|
593
|
+
# this Service. If present, it must be a json string with the following format:
|
586
594
|
# {"notify_service_sid": "ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "include_date":
|
587
|
-
# true}
|
595
|
+
# true}. If `include_date` is set to `true`, which is the default, that means that
|
596
|
+
# the push challenge’s response will include the date created value. If
|
597
|
+
# `include_date` is set to `false`, then the date created value will not be
|
598
|
+
# included. See [Challenge](https://www.twilio.com/docs/verify/api/challenge)
|
599
|
+
# resource’s details parameter for more info
|
588
600
|
# @return [ServiceInstance] Updated ServiceInstance
|
589
601
|
def update(friendly_name: :unset, code_length: :unset, lookup_enabled: :unset, skip_sms_to_landlines: :unset, dtmf_input_required: :unset, tts_name: :unset, psd2_enabled: :unset, do_not_share_warning_enabled: :unset, custom_code_enabled: :unset, push: :unset)
|
590
602
|
context.update(
|