twilio-ruby 5.69.0 → 5.70.0
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 +4 -4
- data/CHANGES.md +15 -1
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +22 -1
- data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +2 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +2 -2
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +10 -3
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 101ceb0bd96cbd76a7c4344baba3327f1bd84e73
|
|
4
|
+
data.tar.gz: 7370d333ed649d1f5dc98553b61fa2d90ae80913
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 29aac9973a3d76158c94254f81956be791055e6013b989c581f38429b4b187a3ef8b5264f62eabacc2297efdcda52275ce7eb0587b9e8631b36fcfb14f1bafb4
|
|
7
|
+
data.tar.gz: 18dd0b51c26195e9377aa2d6698745296fd155f388a387de9d3734c6124891f0301b1f336e73db5ede774ec34dec79dbc862e3cb9ae0b5cf476edf95c5d29ae0
|
data/CHANGES.md
CHANGED
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
twilio-ruby changelog
|
|
2
2
|
=====================
|
|
3
3
|
|
|
4
|
+
[2022-07-21] Version 5.70.0
|
|
5
|
+
---------------------------
|
|
6
|
+
**Flex**
|
|
7
|
+
- Add `status`, `error_code`, and `error_message` fields to Interaction `Channel`
|
|
8
|
+
- Adding `messenger` and `gbm` as supported channels for Interactions API
|
|
9
|
+
|
|
10
|
+
**Messaging**
|
|
11
|
+
- Update alpha_sender docs with new valid characters
|
|
12
|
+
|
|
13
|
+
**Verify**
|
|
14
|
+
- Reorder Verification Check parameters so `code` stays as the first parameter **(breaking change)**
|
|
15
|
+
- Rollback List Attempts API V2 back to pilot stage.
|
|
16
|
+
|
|
17
|
+
|
|
4
18
|
[2022-07-13] Version 5.69.0
|
|
5
19
|
---------------------------
|
|
6
20
|
**Library - Fix**
|
|
@@ -20,7 +34,7 @@ twilio-ruby changelog
|
|
|
20
34
|
|
|
21
35
|
**Verify**
|
|
22
36
|
- Changed summary param `service_sid` to `verify_service_sid` to be consistent with list attempts API **(breaking change)**
|
|
23
|
-
- Make `code` optional on Verification check to support `sna` attempts.
|
|
37
|
+
- Make `code` optional on Verification check to support `sna` attempts. **(breaking change)**
|
|
24
38
|
|
|
25
39
|
|
|
26
40
|
[2022-06-29] Version 5.68.0
|
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.
|
|
37
|
+
gem 'twilio-ruby', '~> 5.70.0'
|
|
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.
|
|
43
|
+
gem install twilio-ruby -v 5.70.0
|
|
44
44
|
```
|
|
45
45
|
|
|
46
46
|
To build and install the development branch yourself from the latest source:
|
|
@@ -275,6 +275,9 @@ module Twilio
|
|
|
275
275
|
'sid' => payload['sid'],
|
|
276
276
|
'interaction_sid' => payload['interaction_sid'],
|
|
277
277
|
'type' => payload['type'],
|
|
278
|
+
'status' => payload['status'],
|
|
279
|
+
'error_code' => payload['error_code'] == nil ? payload['error_code'] : payload['error_code'].to_i,
|
|
280
|
+
'error_message' => payload['error_message'],
|
|
278
281
|
'url' => payload['url'],
|
|
279
282
|
'links' => payload['links'],
|
|
280
283
|
}
|
|
@@ -306,7 +309,7 @@ module Twilio
|
|
|
306
309
|
end
|
|
307
310
|
|
|
308
311
|
##
|
|
309
|
-
# @return [String] The unique string that identifies the resource
|
|
312
|
+
# @return [String] The unique string that identifies the resource.
|
|
310
313
|
def interaction_sid
|
|
311
314
|
@properties['interaction_sid']
|
|
312
315
|
end
|
|
@@ -317,6 +320,24 @@ module Twilio
|
|
|
317
320
|
@properties['type']
|
|
318
321
|
end
|
|
319
322
|
|
|
323
|
+
##
|
|
324
|
+
# @return [interaction_channel.ChannelStatus] The status of this channel.
|
|
325
|
+
def status
|
|
326
|
+
@properties['status']
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
##
|
|
330
|
+
# @return [String] The Twilio error code for a failed channel.
|
|
331
|
+
def error_code
|
|
332
|
+
@properties['error_code']
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
##
|
|
336
|
+
# @return [String] The error message for a failed channel.
|
|
337
|
+
def error_message
|
|
338
|
+
@properties['error_message']
|
|
339
|
+
end
|
|
340
|
+
|
|
320
341
|
##
|
|
321
342
|
# @return [String] The url
|
|
322
343
|
def url
|
|
@@ -36,7 +36,8 @@ module Twilio
|
|
|
36
36
|
# PlayerStreamer can run before automatically ends. The default value is 300
|
|
37
37
|
# seconds, and the maximum value is 90000 seconds. Once this maximum duration is
|
|
38
38
|
# reached, Twilio will end the PlayerStreamer, regardless of whether media is
|
|
39
|
-
# still streaming.
|
|
39
|
+
# still streaming. **Note: this feature has not yet been enabled but customers are
|
|
40
|
+
# advised to explicitly set it on all their new PlayerStreamer resources.**
|
|
40
41
|
# @return [PlayerStreamerInstance] Created PlayerStreamerInstance
|
|
41
42
|
def create(video: :unset, status_callback: :unset, status_callback_method: :unset, max_duration: :unset)
|
|
42
43
|
data = Twilio::Values.of({
|
|
@@ -32,8 +32,8 @@ module Twilio
|
|
|
32
32
|
##
|
|
33
33
|
# Create the AlphaSenderInstance
|
|
34
34
|
# @param [String] alpha_sender The Alphanumeric Sender ID string. Can be up to 11
|
|
35
|
-
# characters long. Valid characters are A-Z, a-z, 0-9, space,
|
|
36
|
-
# value cannot contain only numbers.
|
|
35
|
+
# characters long. Valid characters are A-Z, a-z, 0-9, space, hyphen `-`, plus
|
|
36
|
+
# `+`, underscore `_` and ampersand `&`. This value cannot contain only numbers.
|
|
37
37
|
# @return [AlphaSenderInstance] Created AlphaSenderInstance
|
|
38
38
|
def create(alpha_sender: nil)
|
|
39
39
|
data = Twilio::Values.of({'AlphaSender' => alpha_sender, })
|
|
@@ -29,6 +29,7 @@ module Twilio
|
|
|
29
29
|
|
|
30
30
|
##
|
|
31
31
|
# Create the VerificationCheckInstance
|
|
32
|
+
# @param [String] code The 4-10 character string being verified.
|
|
32
33
|
# @param [String] to The phone number or
|
|
33
34
|
# {email}[https://www.twilio.com/docs/verify/email] to verify. Either this
|
|
34
35
|
# parameter or the `verification_sid` must be specified. Phone numbers must be in
|
|
@@ -40,15 +41,14 @@ module Twilio
|
|
|
40
41
|
# Requires the PSD2 Service flag enabled.
|
|
41
42
|
# @param [String] payee The payee of the associated PSD2 compliant transaction.
|
|
42
43
|
# Requires the PSD2 Service flag enabled.
|
|
43
|
-
# @param [String] code The 4-10 character string being verified.
|
|
44
44
|
# @return [VerificationCheckInstance] Created VerificationCheckInstance
|
|
45
|
-
def create(
|
|
45
|
+
def create(code: :unset, to: :unset, verification_sid: :unset, amount: :unset, payee: :unset)
|
|
46
46
|
data = Twilio::Values.of({
|
|
47
|
+
'Code' => code,
|
|
47
48
|
'To' => to,
|
|
48
49
|
'VerificationSid' => verification_sid,
|
|
49
50
|
'Amount' => amount,
|
|
50
51
|
'Payee' => payee,
|
|
51
|
-
'Code' => code,
|
|
52
52
|
})
|
|
53
53
|
|
|
54
54
|
payload = @version.create('POST', @uri, data: data)
|
|
@@ -117,6 +117,7 @@ module Twilio
|
|
|
117
117
|
'payee' => payload['payee'],
|
|
118
118
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
|
119
119
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
|
120
|
+
'sna_attempts_error_codes' => payload['sna_attempts_error_codes'],
|
|
120
121
|
}
|
|
121
122
|
end
|
|
122
123
|
|
|
@@ -186,6 +187,12 @@ module Twilio
|
|
|
186
187
|
@properties['date_updated']
|
|
187
188
|
end
|
|
188
189
|
|
|
190
|
+
##
|
|
191
|
+
# @return [Array[Hash]] List of error codes as a result of attempting a verification using the `sna` channel.
|
|
192
|
+
def sna_attempts_error_codes
|
|
193
|
+
@properties['sna_attempts_error_codes']
|
|
194
|
+
end
|
|
195
|
+
|
|
189
196
|
##
|
|
190
197
|
# Provide a user friendly representation
|
|
191
198
|
def to_s
|
data/lib/twilio-ruby/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: twilio-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.
|
|
4
|
+
version: 5.70.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Twilio API Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-07-
|
|
11
|
+
date: 2022-07-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jwt
|