twilio-ruby 5.36.0 → 5.37.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (26) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +37 -0
  3. data/README.md +9 -3
  4. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +6 -4
  5. data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +12 -12
  6. data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +12 -3
  7. data/lib/twilio-ruby/rest/notify/v1/service.rb +20 -1
  8. data/lib/twilio-ruby/rest/preview.rb +6 -0
  9. data/lib/twilio-ruby/rest/preview/trusted_comms.rb +7 -0
  10. data/lib/twilio-ruby/rest/preview/trusted_comms/brands_information.rb +193 -0
  11. data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel/channel.rb +2 -5
  12. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +26 -22
  13. data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +24 -0
  14. data/lib/twilio-ruby/rest/verify/v2/service/entity/access_token.rb +141 -0
  15. data/lib/twilio-ruby/version.rb +1 -1
  16. data/spec/integration/api/v2010/account/conference/participant_spec.rb +117 -0
  17. data/spec/integration/api/v2010/account/outgoing_caller_id_spec.rb +8 -14
  18. data/spec/integration/api/v2010/account/validation_request_spec.rb +1 -1
  19. data/spec/integration/autopilot/v1/assistant/query_spec.rb +4 -4
  20. data/spec/integration/preview/trusted_comms/brands_information_spec.rb +44 -0
  21. data/spec/integration/preview/trusted_comms/business/brand/branded_channel/channel_spec.rb +3 -3
  22. data/spec/integration/supersim/v1/fleet_spec.rb +4 -3
  23. data/spec/integration/supersim/v1/sim_spec.rb +78 -6
  24. data/spec/integration/verify/v2/service/entity/access_token_spec.rb +46 -0
  25. data/spec/integration/verify/v2/service/entity_spec.rb +6 -3
  26. metadata +8 -2
@@ -30,12 +30,12 @@ describe 'OutgoingCallerId' do
30
30
  200,
31
31
  %q[
32
32
  {
33
+ "sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
33
34
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
34
- "date_created": "Fri, 21 Aug 2009 00:11:24 +0000",
35
- "date_updated": "Fri, 21 Aug 2009 00:11:24 +0000",
36
35
  "friendly_name": "(415) 867-5309",
37
36
  "phone_number": "+141586753096",
38
- "sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
37
+ "date_created": "Fri, 21 Aug 2009 00:11:24 +0000",
38
+ "date_updated": "Fri, 21 Aug 2009 00:11:24 +0000",
39
39
  "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OutgoingCallerIds/PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
40
40
  }
41
41
  ]
@@ -71,7 +71,7 @@ describe 'OutgoingCallerId' do
71
71
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
72
72
  "date_created": "Fri, 21 Aug 2009 00:11:24 +0000",
73
73
  "date_updated": "Fri, 21 Aug 2009 00:11:24 +0000",
74
- "friendly_name": "(415) 867-5309",
74
+ "friendly_name": "friendly_name",
75
75
  "phone_number": "+141586753096",
76
76
  "sid": "PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
77
77
  "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OutgoingCallerIds/PNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json"
@@ -135,10 +135,8 @@ describe 'OutgoingCallerId' do
135
135
  %q[
136
136
  {
137
137
  "end": 0,
138
- "first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OutgoingCallerIds.json?Page=0&PageSize=50",
139
- "last_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OutgoingCallerIds.json?Page=0&PageSize=50",
138
+ "first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OutgoingCallerIds.json?PageSize=50&Page=0",
140
139
  "next_page_uri": null,
141
- "num_pages": 1,
142
140
  "outgoing_caller_ids": [
143
141
  {
144
142
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
@@ -154,8 +152,7 @@ describe 'OutgoingCallerId' do
154
152
  "page_size": 50,
155
153
  "previous_page_uri": null,
156
154
  "start": 0,
157
- "total": 1,
158
- "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OutgoingCallerIds.json"
155
+ "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OutgoingCallerIds.json?PageSize=50&Page=0"
159
156
  }
160
157
  ]
161
158
  ))
@@ -172,17 +169,14 @@ describe 'OutgoingCallerId' do
172
169
  %q[
173
170
  {
174
171
  "end": 0,
175
- "first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OutgoingCallerIds.json?Page=0&PageSize=50",
176
- "last_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OutgoingCallerIds.json?Page=0&PageSize=50",
172
+ "first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OutgoingCallerIds.json?PageSize=50&Page=0",
177
173
  "next_page_uri": null,
178
- "num_pages": 1,
179
174
  "outgoing_caller_ids": [],
180
175
  "page": 0,
181
176
  "page_size": 50,
182
177
  "previous_page_uri": null,
183
178
  "start": 0,
184
- "total": 1,
185
- "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OutgoingCallerIds.json"
179
+ "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/OutgoingCallerIds.json?PageSize=50&Page=0"
186
180
  }
187
181
  ]
188
182
  ))
@@ -35,7 +35,7 @@ describe 'ValidationRequest' do
35
35
  "call_sid": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
36
36
  "friendly_name": "friendly_name",
37
37
  "phone_number": "+18001234567",
38
- "validation_code": 100
38
+ "validation_code": "111111"
39
39
  }
40
40
  ]
41
41
  ))
@@ -88,10 +88,10 @@ describe 'Query' do
88
88
  "meta": {
89
89
  "previous_page_url": null,
90
90
  "next_page_url": null,
91
- "first_page_url": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queries?Status=status&ModelBuild=UGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&Language=language&PageSize=50&Page=0",
91
+ "first_page_url": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queries?Status=status&ModelBuild=UGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&DialogueSid=UKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&Language=language&PageSize=50&Page=0",
92
92
  "page": 0,
93
93
  "key": "queries",
94
- "url": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queries?Status=status&ModelBuild=UGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&Language=language&PageSize=50&Page=0",
94
+ "url": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queries?Status=status&ModelBuild=UGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&DialogueSid=UKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&Language=language&PageSize=50&Page=0",
95
95
  "page_size": 50
96
96
  }
97
97
  }
@@ -139,10 +139,10 @@ describe 'Query' do
139
139
  "meta": {
140
140
  "previous_page_url": null,
141
141
  "next_page_url": null,
142
- "first_page_url": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queries?Status=status&ModelBuild=UGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&Language=language&PageSize=50&Page=0",
142
+ "first_page_url": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queries?Status=status&ModelBuild=UGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&DialogueSid=UKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&Language=language&PageSize=50&Page=0",
143
143
  "page": 0,
144
144
  "key": "queries",
145
- "url": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queries?Status=status&ModelBuild=UGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&Language=language&PageSize=50&Page=0",
145
+ "url": "https://autopilot.twilio.com/v1/Assistants/UAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Queries?Status=status&ModelBuild=UGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&DialogueSid=UKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&Language=language&PageSize=50&Page=0",
146
146
  "page_size": 50
147
147
  }
148
148
  }
@@ -0,0 +1,44 @@
1
+ ##
2
+ # This code was generated by
3
+ # \ / _ _ _| _ _
4
+ # | (_)\/(_)(_|\/| |(/_ v1.0.0
5
+ # / /
6
+ #
7
+ # frozen_string_literal: true
8
+
9
+ require 'spec_helper.rb'
10
+
11
+ describe 'BrandsInformation' do
12
+ it "can fetch" do
13
+ @holodeck.mock(Twilio::Response.new(500, ''))
14
+
15
+ expect {
16
+ @client.preview.trusted_comms.brands_information().fetch()
17
+ }.to raise_exception(Twilio::REST::TwilioError)
18
+
19
+ values = {}
20
+ expect(
21
+ @holodeck.has_request?(Holodeck::Request.new(
22
+ method: 'get',
23
+ url: 'https://preview.twilio.com/TrustedComms/BrandsInformation',
24
+ ))).to eq(true)
25
+ end
26
+
27
+ it "receives fetch_results_with_etag responses" do
28
+ @holodeck.mock(Twilio::Response.new(
29
+ 200,
30
+ %q[
31
+ {
32
+ "update_time": "2020-05-19T19:47:51Z",
33
+ "file_link": "https://www.twilio.com",
34
+ "file_link_ttl_in_seconds": "900",
35
+ "url": "https://preview.twilio.com/TrustedComms/BrandsInformation"
36
+ }
37
+ ]
38
+ ))
39
+
40
+ actual = @client.preview.trusted_comms.brands_information().fetch()
41
+
42
+ expect(actual).to_not eq(nil)
43
+ end
44
+ end
@@ -16,10 +16,10 @@ describe 'Channel' do
16
16
  @client.preview.trusted_comms.businesses('BXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
17
17
  .brands('BZXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
18
18
  .branded_channels('BWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
19
- .channels.create(phone_number_sid: 'PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', phone_number: 'phone_number')
19
+ .channels.create(phone_number_sid: 'PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
20
20
  }.to raise_exception(Twilio::REST::TwilioError)
21
21
 
22
- values = {'PhoneNumberSid' => 'PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', 'PhoneNumber' => 'phone_number', }
22
+ values = {'PhoneNumberSid' => 'PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', }
23
23
  expect(
24
24
  @holodeck.has_request?(Holodeck::Request.new(
25
25
  method: 'post',
@@ -47,7 +47,7 @@ describe 'Channel' do
47
47
  actual = @client.preview.trusted_comms.businesses('BXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
48
48
  .brands('BZXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
49
49
  .branded_channels('BWXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
50
- .channels.create(phone_number_sid: 'PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', phone_number: 'phone_number')
50
+ .channels.create(phone_number_sid: 'PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
51
51
 
52
52
  expect(actual).to_not eq(nil)
53
53
  end
@@ -13,14 +13,15 @@ describe 'Fleet' do
13
13
  @holodeck.mock(Twilio::Response.new(500, ''))
14
14
 
15
15
  expect {
16
- @client.supersim.v1.fleets.create()
16
+ @client.supersim.v1.fleets.create(network_access_profile: 'HAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
17
17
  }.to raise_exception(Twilio::REST::TwilioError)
18
18
 
19
- values = {}
19
+ values = {'NetworkAccessProfile' => 'HAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', }
20
20
  expect(
21
21
  @holodeck.has_request?(Holodeck::Request.new(
22
22
  method: 'post',
23
23
  url: 'https://supersim.twilio.com/v1/Fleets',
24
+ data: values,
24
25
  ))).to eq(true)
25
26
  end
26
27
 
@@ -46,7 +47,7 @@ describe 'Fleet' do
46
47
  ]
47
48
  ))
48
49
 
49
- actual = @client.supersim.v1.fleets.create()
50
+ actual = @client.supersim.v1.fleets.create(network_access_profile: 'HAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
50
51
 
51
52
  expect(actual).to_not eq(nil)
52
53
  end
@@ -176,13 +176,13 @@ describe 'Sim' do
176
176
  {
177
177
  "sims": [],
178
178
  "meta": {
179
- "first_page_url": "https://supersim.twilio.com/v1/Sims?Status=new&Fleet=HFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&Iccid=11111111111111111111&PageSize=50&Page=0",
179
+ "first_page_url": "https://supersim.twilio.com/v1/Sims?Status=new&Fleet=HFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&PageSize=50&Page=0",
180
180
  "key": "sims",
181
181
  "next_page_url": null,
182
182
  "page": 0,
183
183
  "page_size": 50,
184
184
  "previous_page_url": null,
185
- "url": "https://supersim.twilio.com/v1/Sims?Status=new&Fleet=HFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&Iccid=11111111111111111111&PageSize=50&Page=0"
185
+ "url": "https://supersim.twilio.com/v1/Sims?Status=new&Fleet=HFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&PageSize=50&Page=0"
186
186
  }
187
187
  }
188
188
  ]
@@ -193,19 +193,19 @@ describe 'Sim' do
193
193
  expect(actual).to_not eq(nil)
194
194
  end
195
195
 
196
- it "receives read_full responses" do
196
+ it "receives read_full_by_fleet_sid responses" do
197
197
  @holodeck.mock(Twilio::Response.new(
198
198
  200,
199
199
  %q[
200
200
  {
201
201
  "meta": {
202
- "first_page_url": "https://supersim.twilio.com/v1/Sims?Status=new&Fleet=MyFleet&Iccid=11111111111111111111&PageSize=50&Page=0",
202
+ "first_page_url": "https://supersim.twilio.com/v1/Sims?Status=new&Fleet=HFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&PageSize=50&Page=0",
203
203
  "key": "sims",
204
204
  "next_page_url": null,
205
205
  "page": 0,
206
206
  "page_size": 50,
207
207
  "previous_page_url": null,
208
- "url": "https://supersim.twilio.com/v1/Sims?Status=new&Fleet=MyFleet&Iccid=11111111111111111111&PageSize=50&Page=0"
208
+ "url": "https://supersim.twilio.com/v1/Sims?Status=new&Fleet=HFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&PageSize=50&Page=0"
209
209
  },
210
210
  "sims": [
211
211
  {
@@ -213,7 +213,43 @@ describe 'Sim' do
213
213
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
214
214
  "unique_name": "My SIM",
215
215
  "status": "new",
216
- "fleet_sid": null,
216
+ "fleet_sid": "HFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
217
+ "iccid": "iccid",
218
+ "date_created": "2015-07-30T20:00:00Z",
219
+ "date_updated": "2015-07-30T20:00:00Z",
220
+ "url": "https://supersim.twilio.com/v1/Sims/HSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
221
+ }
222
+ ]
223
+ }
224
+ ]
225
+ ))
226
+
227
+ actual = @client.supersim.v1.sims.list()
228
+
229
+ expect(actual).to_not eq(nil)
230
+ end
231
+
232
+ it "receives read_full_by_fleet_name responses" do
233
+ @holodeck.mock(Twilio::Response.new(
234
+ 200,
235
+ %q[
236
+ {
237
+ "meta": {
238
+ "first_page_url": "https://supersim.twilio.com/v1/Sims?Status=new&Fleet=MyFleet&PageSize=50&Page=0",
239
+ "key": "sims",
240
+ "next_page_url": null,
241
+ "page": 0,
242
+ "page_size": 50,
243
+ "previous_page_url": null,
244
+ "url": "https://supersim.twilio.com/v1/Sims?Status=new&Fleet=MyFleet&PageSize=50&Page=0"
245
+ },
246
+ "sims": [
247
+ {
248
+ "sid": "HSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
249
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
250
+ "unique_name": "My SIM",
251
+ "status": "new",
252
+ "fleet_sid": "HFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
217
253
  "iccid": "iccid",
218
254
  "date_created": "2015-07-30T20:00:00Z",
219
255
  "date_updated": "2015-07-30T20:00:00Z",
@@ -228,4 +264,40 @@ describe 'Sim' do
228
264
 
229
265
  expect(actual).to_not eq(nil)
230
266
  end
267
+
268
+ it "receives read_by_iccid responses" do
269
+ @holodeck.mock(Twilio::Response.new(
270
+ 200,
271
+ %q[
272
+ {
273
+ "meta": {
274
+ "first_page_url": "https://supersim.twilio.com/v1/Sims?Iccid=11111111111111111111&PageSize=50&Page=0",
275
+ "key": "sims",
276
+ "next_page_url": null,
277
+ "page": 0,
278
+ "page_size": 50,
279
+ "previous_page_url": null,
280
+ "url": "https://supersim.twilio.com/v1/Sims?Iccid=11111111111111111111&PageSize=50&Page=0"
281
+ },
282
+ "sims": [
283
+ {
284
+ "sid": "HSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
285
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
286
+ "unique_name": "My SIM",
287
+ "status": "new",
288
+ "fleet_sid": null,
289
+ "iccid": "11111111111111111111",
290
+ "date_created": "2015-07-30T20:00:00Z",
291
+ "date_updated": "2015-07-30T20:00:00Z",
292
+ "url": "https://supersim.twilio.com/v1/Sims/HSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
293
+ }
294
+ ]
295
+ }
296
+ ]
297
+ ))
298
+
299
+ actual = @client.supersim.v1.sims.list()
300
+
301
+ expect(actual).to_not eq(nil)
302
+ end
231
303
  end
@@ -0,0 +1,46 @@
1
+ ##
2
+ # This code was generated by
3
+ # \ / _ _ _| _ _
4
+ # | (_)\/(_)(_|\/| |(/_ v1.0.0
5
+ # / /
6
+ #
7
+ # frozen_string_literal: true
8
+
9
+ require 'spec_helper.rb'
10
+
11
+ describe 'AccessToken' do
12
+ it "can create" do
13
+ @holodeck.mock(Twilio::Response.new(500, ''))
14
+
15
+ expect {
16
+ @client.verify.v2.services('VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
17
+ .entities('identity') \
18
+ .access_tokens.create(factor_type: 'push')
19
+ }.to raise_exception(Twilio::REST::TwilioError)
20
+
21
+ values = {'FactorType' => 'push', }
22
+ expect(
23
+ @holodeck.has_request?(Holodeck::Request.new(
24
+ method: 'post',
25
+ url: 'https://verify.twilio.com/v2/Services/VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Entities/identity/AccessTokens',
26
+ data: values,
27
+ ))).to eq(true)
28
+ end
29
+
30
+ it "receives create responses" do
31
+ @holodeck.mock(Twilio::Response.new(
32
+ 201,
33
+ %q[
34
+ {
35
+ "token": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
36
+ }
37
+ ]
38
+ ))
39
+
40
+ actual = @client.verify.v2.services('VAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
41
+ .entities('identity') \
42
+ .access_tokens.create(factor_type: 'push')
43
+
44
+ expect(actual).to_not eq(nil)
45
+ end
46
+ end
@@ -39,7 +39,8 @@ describe 'Entity' do
39
39
  "date_updated": "2015-07-30T20:00:00Z",
40
40
  "url": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f",
41
41
  "links": {
42
- "factors": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/Factors"
42
+ "factors": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/Factors",
43
+ "access_tokens": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/AccessTokens"
43
44
  }
44
45
  }
45
46
  ]
@@ -108,7 +109,8 @@ describe 'Entity' do
108
109
  "date_updated": "2015-07-30T20:00:00Z",
109
110
  "url": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f",
110
111
  "links": {
111
- "factors": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/Factors"
112
+ "factors": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/Factors",
113
+ "access_tokens": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/AccessTokens"
112
114
  }
113
115
  }
114
116
  ]
@@ -176,7 +178,8 @@ describe 'Entity' do
176
178
  "date_updated": "2015-07-30T20:00:00Z",
177
179
  "url": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f",
178
180
  "links": {
179
- "factors": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/Factors"
181
+ "factors": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/Factors",
182
+ "access_tokens": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Entities/ff483d1ff591898a9942916050d2ca3f/AccessTokens"
180
183
  }
181
184
  }
182
185
  ],
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.36.0
4
+ version: 5.37.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: 2020-05-27 00:00:00.000000000 Z
11
+ date: 2020-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -488,6 +488,7 @@ files:
488
488
  - lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb
489
489
  - lib/twilio-ruby/rest/preview/trusted_comms.rb
490
490
  - lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb
491
+ - lib/twilio-ruby/rest/preview/trusted_comms/brands_information.rb
491
492
  - lib/twilio-ruby/rest/preview/trusted_comms/business.rb
492
493
  - lib/twilio-ruby/rest/preview/trusted_comms/business/brand.rb
493
494
  - lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel.rb
@@ -633,6 +634,7 @@ files:
633
634
  - lib/twilio-ruby/rest/verify/v2/form.rb
634
635
  - lib/twilio-ruby/rest/verify/v2/service.rb
635
636
  - lib/twilio-ruby/rest/verify/v2/service/entity.rb
637
+ - lib/twilio-ruby/rest/verify/v2/service/entity/access_token.rb
636
638
  - lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb
637
639
  - lib/twilio-ruby/rest/verify/v2/service/entity/factor/challenge.rb
638
640
  - lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb
@@ -893,6 +895,7 @@ files:
893
895
  - spec/integration/preview/sync/service/sync_map_spec.rb
894
896
  - spec/integration/preview/sync/service_spec.rb
895
897
  - spec/integration/preview/trusted_comms/branded_call_spec.rb
898
+ - spec/integration/preview/trusted_comms/brands_information_spec.rb
896
899
  - spec/integration/preview/trusted_comms/business/brand/branded_channel/channel_spec.rb
897
900
  - spec/integration/preview/trusted_comms/business/brand/branded_channel_spec.rb
898
901
  - spec/integration/preview/trusted_comms/business/brand_spec.rb
@@ -1014,6 +1017,7 @@ files:
1014
1017
  - spec/integration/trunking/v1/trunk/phone_number_spec.rb
1015
1018
  - spec/integration/trunking/v1/trunk_spec.rb
1016
1019
  - spec/integration/verify/v2/form_spec.rb
1020
+ - spec/integration/verify/v2/service/entity/access_token_spec.rb
1017
1021
  - spec/integration/verify/v2/service/entity/factor/challenge_spec.rb
1018
1022
  - spec/integration/verify/v2/service/entity/factor_spec.rb
1019
1023
  - spec/integration/verify/v2/service/entity_spec.rb
@@ -1308,6 +1312,7 @@ test_files:
1308
1312
  - spec/integration/preview/sync/service/sync_map_spec.rb
1309
1313
  - spec/integration/preview/sync/service_spec.rb
1310
1314
  - spec/integration/preview/trusted_comms/branded_call_spec.rb
1315
+ - spec/integration/preview/trusted_comms/brands_information_spec.rb
1311
1316
  - spec/integration/preview/trusted_comms/business/brand/branded_channel/channel_spec.rb
1312
1317
  - spec/integration/preview/trusted_comms/business/brand/branded_channel_spec.rb
1313
1318
  - spec/integration/preview/trusted_comms/business/brand_spec.rb
@@ -1429,6 +1434,7 @@ test_files:
1429
1434
  - spec/integration/trunking/v1/trunk/phone_number_spec.rb
1430
1435
  - spec/integration/trunking/v1/trunk_spec.rb
1431
1436
  - spec/integration/verify/v2/form_spec.rb
1437
+ - spec/integration/verify/v2/service/entity/access_token_spec.rb
1432
1438
  - spec/integration/verify/v2/service/entity/factor/challenge_spec.rb
1433
1439
  - spec/integration/verify/v2/service/entity/factor_spec.rb
1434
1440
  - spec/integration/verify/v2/service/entity_spec.rb