twilio-ruby 5.31.5 → 5.31.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +1 -0
  3. data/CHANGES.md +31 -0
  4. data/Gemfile +0 -9
  5. data/Makefile +5 -14
  6. data/README.md +2 -2
  7. data/Rakefile +0 -54
  8. data/githooks/pre-commit +0 -0
  9. data/lib/twilio-ruby/rest/authy/v1/service.rb +12 -2
  10. data/lib/twilio-ruby/rest/authy/v1/service/entity/factor.rb +0 -7
  11. data/lib/twilio-ruby/rest/authy/v1/service/entity/factor/challenge.rb +0 -7
  12. data/lib/twilio-ruby/rest/client.rb +7 -0
  13. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +1 -1
  14. data/lib/twilio-ruby/rest/preview.rb +0 -6
  15. data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +8 -2
  16. data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +113 -8
  17. data/lib/twilio-ruby/rest/preview/trusted_comms.rb +0 -7
  18. data/lib/twilio-ruby/rest/serverless/v1/service.rb +23 -4
  19. data/lib/twilio-ruby/rest/supersim.rb +70 -0
  20. data/lib/twilio-ruby/rest/supersim/v1.rb +80 -0
  21. data/lib/twilio-ruby/rest/supersim/v1/command.rb +381 -0
  22. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +390 -0
  23. data/lib/twilio-ruby/rest/supersim/v1/sim.rb +380 -0
  24. data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +274 -0
  25. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +4 -3
  26. data/lib/twilio-ruby/version.rb +1 -1
  27. data/spec/integration/api/v2010/account/call/payment_spec.rb +3 -3
  28. data/spec/integration/api/v2010/account/message_spec.rb +1 -1
  29. data/spec/integration/authy/v1/service/entity/factor/challenge_spec.rb +0 -5
  30. data/spec/integration/authy/v1/service/entity/factor_spec.rb +0 -4
  31. data/spec/integration/authy/v1/service_spec.rb +4 -0
  32. data/spec/integration/messaging/v1/service/alpha_sender_spec.rb +9 -3
  33. data/spec/integration/preview/bulk_exports/export/day_spec.rb +67 -8
  34. data/spec/integration/serverless/v1/service_spec.rb +3 -0
  35. data/spec/integration/supersim/v1/command_spec.rb +186 -0
  36. data/spec/integration/supersim/v1/fleet_spec.rb +208 -0
  37. data/spec/integration/supersim/v1/sim_spec.rb +231 -0
  38. data/spec/integration/supersim/v1/usage_record_spec.rb +203 -0
  39. data/spec/integration/verify/v2/service/verification_spec.rb +42 -30
  40. data/spec/integration/video/v1/room/room_participant/room_participant_subscribe_rule_spec.rb +1 -1
  41. data/spec/integration/voice/v1/dialing_permissions/settings_spec.rb +1 -1
  42. data/twilio-ruby.gemspec +5 -0
  43. metadata +86 -5
  44. data/lib/twilio-ruby/rest/preview/trusted_comms/device.rb +0 -146
  45. data/spec/integration/preview/trusted_comms/device_spec.rb +0 -45
@@ -0,0 +1,231 @@
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 'Sim' do
12
+ it "can fetch" do
13
+ @holodeck.mock(Twilio::Response.new(500, ''))
14
+
15
+ expect {
16
+ @client.supersim.v1.sims('HSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').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://supersim.twilio.com/v1/Sims/HSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
24
+ ))).to eq(true)
25
+ end
26
+
27
+ it "receives fetch responses" do
28
+ @holodeck.mock(Twilio::Response.new(
29
+ 200,
30
+ %q[
31
+ {
32
+ "sid": "HSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
33
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
34
+ "unique_name": "My SIM",
35
+ "status": "new",
36
+ "fleet_sid": null,
37
+ "iccid": "iccid",
38
+ "date_created": "2015-07-30T20:00:00Z",
39
+ "date_updated": "2015-07-30T20:00:00Z",
40
+ "url": "https://supersim.twilio.com/v1/Sims/HSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
41
+ }
42
+ ]
43
+ ))
44
+
45
+ actual = @client.supersim.v1.sims('HSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
46
+
47
+ expect(actual).to_not eq(nil)
48
+ end
49
+
50
+ it "can update" do
51
+ @holodeck.mock(Twilio::Response.new(500, ''))
52
+
53
+ expect {
54
+ @client.supersim.v1.sims('HSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
55
+ }.to raise_exception(Twilio::REST::TwilioError)
56
+
57
+ values = {}
58
+ expect(
59
+ @holodeck.has_request?(Holodeck::Request.new(
60
+ method: 'post',
61
+ url: 'https://supersim.twilio.com/v1/Sims/HSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
62
+ ))).to eq(true)
63
+ end
64
+
65
+ it "receives update_unique_name responses" do
66
+ @holodeck.mock(Twilio::Response.new(
67
+ 200,
68
+ %q[
69
+ {
70
+ "sid": "HSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
71
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
72
+ "unique_name": "MySIM",
73
+ "status": "new",
74
+ "fleet_sid": null,
75
+ "iccid": "iccid",
76
+ "date_created": "2015-07-30T20:00:00Z",
77
+ "date_updated": "2015-07-30T20:00:00Z",
78
+ "url": "https://supersim.twilio.com/v1/Sims/HSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
79
+ }
80
+ ]
81
+ ))
82
+
83
+ actual = @client.supersim.v1.sims('HSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
84
+
85
+ expect(actual).to_not eq(nil)
86
+ end
87
+
88
+ it "receives update_status responses" do
89
+ @holodeck.mock(Twilio::Response.new(
90
+ 200,
91
+ %q[
92
+ {
93
+ "sid": "HSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
94
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
95
+ "unique_name": null,
96
+ "status": "scheduled",
97
+ "fleet_sid": null,
98
+ "iccid": "iccid",
99
+ "date_created": "2015-07-30T20:00:00Z",
100
+ "date_updated": "2015-07-30T20:00:00Z",
101
+ "url": "https://supersim.twilio.com/v1/Sims/HSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
102
+ }
103
+ ]
104
+ ))
105
+
106
+ actual = @client.supersim.v1.sims('HSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
107
+
108
+ expect(actual).to_not eq(nil)
109
+ end
110
+
111
+ it "receives update_fleet_with_sid responses" do
112
+ @holodeck.mock(Twilio::Response.new(
113
+ 200,
114
+ %q[
115
+ {
116
+ "sid": "HSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
117
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
118
+ "unique_name": null,
119
+ "status": "new",
120
+ "fleet_sid": "HFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
121
+ "iccid": "iccid",
122
+ "date_created": "2015-07-30T20:00:00Z",
123
+ "date_updated": "2015-07-30T20:00:00Z",
124
+ "url": "https://supersim.twilio.com/v1/Sims/HSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
125
+ }
126
+ ]
127
+ ))
128
+
129
+ actual = @client.supersim.v1.sims('HSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
130
+
131
+ expect(actual).to_not eq(nil)
132
+ end
133
+
134
+ it "receives update_fleet_with_unique_name responses" do
135
+ @holodeck.mock(Twilio::Response.new(
136
+ 200,
137
+ %q[
138
+ {
139
+ "sid": "HSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
140
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
141
+ "unique_name": null,
142
+ "status": "new",
143
+ "fleet_sid": "HFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
144
+ "iccid": "iccid",
145
+ "date_created": "2015-07-30T20:00:00Z",
146
+ "date_updated": "2015-07-30T20:00:00Z",
147
+ "url": "https://supersim.twilio.com/v1/Sims/HSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
148
+ }
149
+ ]
150
+ ))
151
+
152
+ actual = @client.supersim.v1.sims('HSXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
153
+
154
+ expect(actual).to_not eq(nil)
155
+ end
156
+
157
+ it "can read" do
158
+ @holodeck.mock(Twilio::Response.new(500, ''))
159
+
160
+ expect {
161
+ @client.supersim.v1.sims.list()
162
+ }.to raise_exception(Twilio::REST::TwilioError)
163
+
164
+ values = {}
165
+ expect(
166
+ @holodeck.has_request?(Holodeck::Request.new(
167
+ method: 'get',
168
+ url: 'https://supersim.twilio.com/v1/Sims',
169
+ ))).to eq(true)
170
+ end
171
+
172
+ it "receives read_empty responses" do
173
+ @holodeck.mock(Twilio::Response.new(
174
+ 200,
175
+ %q[
176
+ {
177
+ "sims": [],
178
+ "meta": {
179
+ "first_page_url": "https://supersim.twilio.com/v1/Sims?Status=new&Fleet=HFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&Iccid=11111111111111111111&PageSize=50&Page=0",
180
+ "key": "sims",
181
+ "next_page_url": null,
182
+ "page": 0,
183
+ "page_size": 50,
184
+ "previous_page_url": null,
185
+ "url": "https://supersim.twilio.com/v1/Sims?Status=new&Fleet=HFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&Iccid=11111111111111111111&PageSize=50&Page=0"
186
+ }
187
+ }
188
+ ]
189
+ ))
190
+
191
+ actual = @client.supersim.v1.sims.list()
192
+
193
+ expect(actual).to_not eq(nil)
194
+ end
195
+
196
+ it "receives read_full responses" do
197
+ @holodeck.mock(Twilio::Response.new(
198
+ 200,
199
+ %q[
200
+ {
201
+ "meta": {
202
+ "first_page_url": "https://supersim.twilio.com/v1/Sims?Status=new&Fleet=MyFleet&Iccid=11111111111111111111&PageSize=50&Page=0",
203
+ "key": "sims",
204
+ "next_page_url": null,
205
+ "page": 0,
206
+ "page_size": 50,
207
+ "previous_page_url": null,
208
+ "url": "https://supersim.twilio.com/v1/Sims?Status=new&Fleet=MyFleet&Iccid=11111111111111111111&PageSize=50&Page=0"
209
+ },
210
+ "sims": [
211
+ {
212
+ "sid": "HSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
213
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
214
+ "unique_name": "My SIM",
215
+ "status": "new",
216
+ "fleet_sid": null,
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
+ end
@@ -0,0 +1,203 @@
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 'UsageRecord' do
12
+ it "can read" do
13
+ @holodeck.mock(Twilio::Response.new(500, ''))
14
+
15
+ expect {
16
+ @client.supersim.v1.usage_records.list()
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://supersim.twilio.com/v1/UsageRecords',
24
+ ))).to eq(true)
25
+ end
26
+
27
+ it "receives read_all responses" do
28
+ @holodeck.mock(Twilio::Response.new(
29
+ 200,
30
+ %q[
31
+ {
32
+ "usage_records": [
33
+ {
34
+ "period": {
35
+ "start_time": "2015-05-01T20:00:00Z",
36
+ "end_time": "2015-06-01T20:00:00Z"
37
+ },
38
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
39
+ "data_upload": 1000,
40
+ "data_download": 1000,
41
+ "data_total": 2000,
42
+ "sim_sid": null
43
+ }
44
+ ],
45
+ "meta": {
46
+ "first_page_url": "https://supersim.twilio.com/v1/UsageRecords?PageSize=50&Page=0",
47
+ "key": "usage_records",
48
+ "next_page_url": null,
49
+ "page": 0,
50
+ "page_size": 50,
51
+ "previous_page_url": null,
52
+ "url": "https://supersim.twilio.com/v1/UsageRecords?PageSize=50&Page=0"
53
+ }
54
+ }
55
+ ]
56
+ ))
57
+
58
+ actual = @client.supersim.v1.usage_records.list()
59
+
60
+ expect(actual).to_not eq(nil)
61
+ end
62
+
63
+ it "receives read_all_day responses" do
64
+ @holodeck.mock(Twilio::Response.new(
65
+ 200,
66
+ %q[
67
+ {
68
+ "usage_records": [
69
+ {
70
+ "period": {
71
+ "start_time": "2019-05-01T00:00:00Z",
72
+ "end_time": "2019-05-03T00:00:00Z"
73
+ },
74
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
75
+ "data_upload": 1000,
76
+ "data_download": 1000,
77
+ "data_total": 2000,
78
+ "sim_sid": null
79
+ },
80
+ {
81
+ "period": {
82
+ "start_time": "2019-05-03T00:00:00Z",
83
+ "end_time": "2019-05-04T00:00:00Z"
84
+ },
85
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
86
+ "data_upload": 1000,
87
+ "data_download": 1000,
88
+ "data_total": 2000,
89
+ "sim_sid": null
90
+ }
91
+ ],
92
+ "meta": {
93
+ "first_page_url": "https://supersim.twilio.com/v1/UsageRecords?Granularity=day&PageSize=50&Page=0",
94
+ "key": "usage_records",
95
+ "next_page_url": null,
96
+ "page": 0,
97
+ "page_size": 50,
98
+ "previous_page_url": null,
99
+ "url": "https://supersim.twilio.com/v1/UsageRecords?Granularity=day&PageSize=50&Page=0"
100
+ }
101
+ }
102
+ ]
103
+ ))
104
+
105
+ actual = @client.supersim.v1.usage_records.list()
106
+
107
+ expect(actual).to_not eq(nil)
108
+ end
109
+
110
+ it "receives read_all_hour responses" do
111
+ @holodeck.mock(Twilio::Response.new(
112
+ 200,
113
+ %q[
114
+ {
115
+ "usage_records": [
116
+ {
117
+ "period": {
118
+ "start_time": "2019-05-01T00:00:00Z",
119
+ "end_time": "2019-05-01T01:00:00Z"
120
+ },
121
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
122
+ "data_upload": 1000,
123
+ "data_download": 1000,
124
+ "data_total": 2000,
125
+ "sim_sid": null
126
+ },
127
+ {
128
+ "period": {
129
+ "start_time": "2019-05-01T01:00:00Z",
130
+ "end_time": "2019-05-01T02:00:00Z"
131
+ },
132
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
133
+ "data_upload": 1000,
134
+ "data_download": 1000,
135
+ "data_total": 2000,
136
+ "sim_sid": null
137
+ }
138
+ ],
139
+ "meta": {
140
+ "first_page_url": "https://supersim.twilio.com/v1/UsageRecords?Granularity=hour&PageSize=50&Page=0",
141
+ "key": "usage_records",
142
+ "next_page_url": null,
143
+ "page": 0,
144
+ "page_size": 50,
145
+ "previous_page_url": null,
146
+ "url": "https://supersim.twilio.com/v1/UsageRecords?Granularity=hour&PageSize=50&Page=0"
147
+ }
148
+ }
149
+ ]
150
+ ))
151
+
152
+ actual = @client.supersim.v1.usage_records.list()
153
+
154
+ expect(actual).to_not eq(nil)
155
+ end
156
+
157
+ it "receives read_day_sim_filter responses" do
158
+ @holodeck.mock(Twilio::Response.new(
159
+ 200,
160
+ %q[
161
+ {
162
+ "usage_records": [
163
+ {
164
+ "period": {
165
+ "start_time": "2019-05-01T00:00:00Z",
166
+ "end_time": "2019-05-03T00:00:00Z"
167
+ },
168
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
169
+ "data_upload": 1000,
170
+ "data_download": 1000,
171
+ "data_total": 2000,
172
+ "sim_sid": "HSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
173
+ },
174
+ {
175
+ "period": {
176
+ "start_time": "2019-05-03T00:00:00Z",
177
+ "end_time": "2019-05-04T00:00:00Z"
178
+ },
179
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
180
+ "data_upload": 1000,
181
+ "data_download": 1000,
182
+ "data_total": 2000,
183
+ "sim_sid": "HSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
184
+ }
185
+ ],
186
+ "meta": {
187
+ "first_page_url": "https://supersim.twilio.com/v1/UsageRecords?Sim=HSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&Granularity=day&PageSize=50&Page=0",
188
+ "key": "usage_records",
189
+ "next_page_url": null,
190
+ "page": 0,
191
+ "page_size": 50,
192
+ "previous_page_url": null,
193
+ "url": "https://supersim.twilio.com/v1/UsageRecords?Sim=HSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&Granularity=day&PageSize=50&Page=0"
194
+ }
195
+ }
196
+ ]
197
+ ))
198
+
199
+ actual = @client.supersim.v1.usage_records.list()
200
+
201
+ expect(actual).to_not eq(nil)
202
+ end
203
+ end
@@ -51,11 +51,13 @@ describe 'Verification' do
51
51
  },
52
52
  "amount": null,
53
53
  "payee": null,
54
- "send_code_attempts": {
55
- "time": "2015-07-30T20:00:00Z",
56
- "channel": "SMS",
57
- "channel_id": null
58
- },
54
+ "send_code_attempts": [
55
+ {
56
+ "time": "2015-07-30T20:00:00Z",
57
+ "channel": "SMS",
58
+ "channel_id": null
59
+ }
60
+ ],
59
61
  "url": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Verifications/VEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
60
62
  }
61
63
  ]
@@ -92,11 +94,13 @@ describe 'Verification' do
92
94
  },
93
95
  "amount": null,
94
96
  "payee": null,
95
- "send_code_attempts": {
96
- "time": "2015-07-30T20:00:00Z",
97
- "channel": "EMAIL",
98
- "channel_id": null
99
- },
97
+ "send_code_attempts": [
98
+ {
99
+ "time": "2015-07-30T20:00:00Z",
100
+ "channel": "EMAIL",
101
+ "channel_id": null
102
+ }
103
+ ],
100
104
  "url": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Verifications/VEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
101
105
  }
102
106
  ]
@@ -133,11 +137,13 @@ describe 'Verification' do
133
137
  },
134
138
  "amount": null,
135
139
  "payee": null,
136
- "send_code_attempts": {
137
- "time": "2015-07-30T20:00:00Z",
138
- "channel": "SMS",
139
- "channel_id": null
140
- },
140
+ "send_code_attempts": [
141
+ {
142
+ "time": "2015-07-30T20:00:00Z",
143
+ "channel": "SMS",
144
+ "channel_id": null
145
+ }
146
+ ],
141
147
  "url": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Verifications/VEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
142
148
  }
143
149
  ]
@@ -191,11 +197,13 @@ describe 'Verification' do
191
197
  },
192
198
  "amount": null,
193
199
  "payee": null,
194
- "send_code_attempts": {
195
- "time": "2015-07-30T20:00:00Z",
196
- "channel": "SMS",
197
- "channel_id": null
198
- },
200
+ "send_code_attempts": [
201
+ {
202
+ "time": "2015-07-30T20:00:00Z",
203
+ "channel": "SMS",
204
+ "channel_id": null
205
+ }
206
+ ],
199
207
  "url": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Verifications/VEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
200
208
  }
201
209
  ]
@@ -232,11 +240,13 @@ describe 'Verification' do
232
240
  },
233
241
  "amount": null,
234
242
  "payee": null,
235
- "send_code_attempts": {
236
- "time": "2015-07-30T20:00:00Z",
237
- "channel": "SMS",
238
- "channel_id": null
239
- },
243
+ "send_code_attempts": [
244
+ {
245
+ "time": "2015-07-30T20:00:00Z",
246
+ "channel": "SMS",
247
+ "channel_id": null
248
+ }
249
+ ],
240
250
  "url": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Verifications/VEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
241
251
  }
242
252
  ]
@@ -289,11 +299,13 @@ describe 'Verification' do
289
299
  },
290
300
  "amount": null,
291
301
  "payee": null,
292
- "send_code_attempts": {
293
- "time": "2015-07-30T20:00:00Z",
294
- "channel": "SMS",
295
- "channel_id": null
296
- },
302
+ "send_code_attempts": [
303
+ {
304
+ "time": "2015-07-30T20:00:00Z",
305
+ "channel": "SMS",
306
+ "channel_id": null
307
+ }
308
+ ],
297
309
  "url": "https://verify.twilio.com/v2/Services/VAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Verifications/VEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
298
310
  }
299
311
  ]