twilio-ruby 6.2.0 → 6.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0c3b2576c210dd02fdc994c2570cd5cc396180b0
4
- data.tar.gz: e9ebd236423454df6e3149ef240763f5c91f07c3
3
+ metadata.gz: 0bd10a52d4e0839a09028764e8a495fd1a0bb9f5
4
+ data.tar.gz: 46e1062b57b4bc416975660056097dca718b8148
5
5
  SHA512:
6
- metadata.gz: 5ed4d0dd63460c5b46894191c548dd09de759e3e4f0970c43b6f7bb2cd547847e3ee2e8034d6eedcc1cddb1dfe62689821f99626604acbfe1c5e026560a30a09
7
- data.tar.gz: ae8e99cf0b83ee0f73c404f179edd80c91ade18bbf1694adf72f5ef1a91c1369cff7a0f76f69e5a269f52b519457cc65429996e4a4ae6087073ade8c3eb5fe09
6
+ metadata.gz: 5adb7d816e4956f661e5901b1ee3f343c9a9ffde1a6666ebeefb6045cb7ba7fb1575cd0ada93c46be06f69eb6bfa28544650f89d156a64548db48e38e776ebf5
7
+ data.tar.gz: 95e73d82254722b8c52edceaab21d4dbc6bd8f7d36126cdaa75ac7d2f0a5517f25c8f5b6b9fa24148dd4757c4b208e3c3e294d80a43ebeaec420c4b1a264cec5
data/CHANGES.md CHANGED
@@ -1,6 +1,31 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2023-07-13] Version 6.3.0
5
+ --------------------------
6
+ **Library - Chore**
7
+ - [PR #668](https://github.com/twilio/twilio-ruby/pull/668): remove cacert. Thanks to [@sbansla](https://github.com/sbansla)!
8
+
9
+ **Flex**
10
+ - Adding `interaction_context_sid` as optional parameter in Interactions API
11
+
12
+ **Messaging**
13
+ - Making visiblity public for tollfree_verification API
14
+
15
+ **Numbers**
16
+ - Remove Sms capability property from HNO creation under version `/v2` of HNO API. **(breaking change)**
17
+ - Update required properties in LOA creation under version `/v2` of Authorization document API. **(breaking change)**
18
+
19
+ **Taskrouter**
20
+ - Add api to fetch task queue statistics for multiple TaskQueues
21
+
22
+ **Verify**
23
+ - Add `RiskCheck` optional parameter on Verification creation.
24
+
25
+ **Twiml**
26
+ - Add Google Voices and languages
27
+
28
+
4
29
  [2023-06-28] Version 6.2.0
5
30
  --------------------------
6
31
  **Library - Fix**
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', '~> 6.2.0'
42
+ gem 'twilio-ruby', '~> 6.3.0'
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 6.2.0
48
+ gem install twilio-ruby -v 6.3.0
49
49
  ```
50
50
 
51
51
  To build and install the development branch yourself from the latest source:
@@ -33,15 +33,18 @@ module Twilio
33
33
  # Create the InteractionInstance
34
34
  # @param [Object] channel The Interaction's channel.
35
35
  # @param [Object] routing The Interaction's routing logic.
36
+ # @param [String] interaction_context_sid The Interaction context sid is used for adding a context lookup sid
36
37
  # @return [InteractionInstance] Created InteractionInstance
37
38
  def create(
38
39
  channel: nil,
39
- routing: nil
40
+ routing: nil,
41
+ interaction_context_sid: :unset
40
42
  )
41
43
 
42
44
  data = Twilio::Values.of({
43
45
  'Channel' => Twilio.serialize_object(channel),
44
46
  'Routing' => Twilio.serialize_object(routing),
47
+ 'InteractionContextSid' => interaction_context_sid,
45
48
  })
46
49
 
47
50
  payload = @version.create('POST', @uri, data: data)
@@ -173,6 +176,7 @@ module Twilio
173
176
  'routing' => payload['routing'],
174
177
  'url' => payload['url'],
175
178
  'links' => payload['links'],
179
+ 'interaction_context_sid' => payload['interaction_context_sid'],
176
180
  }
177
181
 
178
182
  # Context
@@ -221,6 +225,12 @@ module Twilio
221
225
  @properties['links']
222
226
  end
223
227
 
228
+ ##
229
+ # @return [String]
230
+ def interaction_context_sid
231
+ @properties['interaction_context_sid']
232
+ end
233
+
224
234
  ##
225
235
  # Fetch the InteractionInstance
226
236
  # @return [InteractionInstance] Fetched InteractionInstance
@@ -205,10 +205,10 @@ module Twilio
205
205
 
206
206
  # Dependents
207
207
  @us_app_to_person_usecases = nil
208
- @alpha_senders = nil
209
208
  @short_codes = nil
210
209
  @us_app_to_person = nil
211
210
  @phone_numbers = nil
211
+ @alpha_senders = nil
212
212
  end
213
213
  ##
214
214
  # Delete the ServiceInstance
@@ -308,25 +308,6 @@ module Twilio
308
308
  @us_app_to_person_usecases
309
309
  end
310
310
  ##
311
- # Access the alpha_senders
312
- # @return [AlphaSenderList]
313
- # @return [AlphaSenderContext] if sid was passed.
314
- def alpha_senders(sid=:unset)
315
-
316
- raise ArgumentError, 'sid cannot be nil' if sid.nil?
317
-
318
- if sid != :unset
319
- return AlphaSenderContext.new(@version, @solution[:sid],sid )
320
- end
321
-
322
- unless @alpha_senders
323
- @alpha_senders = AlphaSenderList.new(
324
- @version, service_sid: @solution[:sid], )
325
- end
326
-
327
- @alpha_senders
328
- end
329
- ##
330
311
  # Access the short_codes
331
312
  # @return [ShortCodeList]
332
313
  # @return [ShortCodeContext] if sid was passed.
@@ -383,6 +364,25 @@ module Twilio
383
364
 
384
365
  @phone_numbers
385
366
  end
367
+ ##
368
+ # Access the alpha_senders
369
+ # @return [AlphaSenderList]
370
+ # @return [AlphaSenderContext] if sid was passed.
371
+ def alpha_senders(sid=:unset)
372
+
373
+ raise ArgumentError, 'sid cannot be nil' if sid.nil?
374
+
375
+ if sid != :unset
376
+ return AlphaSenderContext.new(@version, @solution[:sid],sid )
377
+ end
378
+
379
+ unless @alpha_senders
380
+ @alpha_senders = AlphaSenderList.new(
381
+ @version, service_sid: @solution[:sid], )
382
+ end
383
+
384
+ @alpha_senders
385
+ end
386
386
 
387
387
  ##
388
388
  # Provide a user friendly representation
@@ -702,13 +702,6 @@ module Twilio
702
702
  context.us_app_to_person_usecases
703
703
  end
704
704
 
705
- ##
706
- # Access the alpha_senders
707
- # @return [alpha_senders] alpha_senders
708
- def alpha_senders
709
- context.alpha_senders
710
- end
711
-
712
705
  ##
713
706
  # Access the short_codes
714
707
  # @return [short_codes] short_codes
@@ -730,6 +723,13 @@ module Twilio
730
723
  context.phone_numbers
731
724
  end
732
725
 
726
+ ##
727
+ # Access the alpha_senders
728
+ # @return [alpha_senders] alpha_senders
729
+ def alpha_senders
730
+ context.alpha_senders
731
+ end
732
+
733
733
  ##
734
734
  # Provide a user friendly representation
735
735
  def to_s