twilio-ruby 5.5.1 → 5.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +18 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +96 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/machine_to_machine.rb +396 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/national.rb +396 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb +396 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/voip.rb +396 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +15 -15
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +7 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +17 -10
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +41 -3
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +6 -6
- data/lib/twilio-ruby/twiml/messaging_response.rb +3 -2
- data/lib/twilio-ruby/twiml/voice_response.rb +10 -6
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/api/v2010/account/available_phone_number/machine_to_machine_spec.rb +101 -0
- data/spec/integration/api/v2010/account/available_phone_number/national_spec.rb +101 -0
- data/spec/integration/api/v2010/account/available_phone_number/shared_cost_spec.rb +101 -0
- data/spec/integration/api/v2010/account/available_phone_number/voip_spec.rb +101 -0
- data/spec/integration/api/v2010/account/call/recording_spec.rb +28 -28
- data/spec/integration/api/v2010/account/conference_spec.rb +6 -3
- data/spec/integration/api/v2010/account/recording_spec.rb +32 -24
- data/spec/integration/notify/v1/service_spec.rb +4 -0
- data/spec/integration/preview/hosted_numbers/hosted_number_order_spec.rb +50 -5
- data/spec/integration/proxy/v1/service/session_spec.rb +3 -3
- metadata +14 -2
@@ -48,7 +48,9 @@ describe 'HostedNumberOrder' do
|
|
48
48
|
"status": "received",
|
49
49
|
"unique_name": "foobar",
|
50
50
|
"url": "https://preview.twilio.com/HostedNumbers/HostedNumberOrders/HRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
51
|
-
"verification_attempts": 0
|
51
|
+
"verification_attempts": 0,
|
52
|
+
"verification_type": "phone-call",
|
53
|
+
"verification_document_sid": null
|
52
54
|
}
|
53
55
|
]
|
54
56
|
))
|
@@ -125,7 +127,9 @@ describe 'HostedNumberOrder' do
|
|
125
127
|
"status": "pending-loa",
|
126
128
|
"unique_name": "new unique name",
|
127
129
|
"url": "https://preview.twilio.com/HostedNumbers/HostedNumberOrders/HRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
128
|
-
"verification_attempts": 1
|
130
|
+
"verification_attempts": 1,
|
131
|
+
"verification_type": "phone-call",
|
132
|
+
"verification_document_sid": null
|
129
133
|
}
|
130
134
|
]
|
131
135
|
))
|
@@ -211,7 +215,9 @@ describe 'HostedNumberOrder' do
|
|
211
215
|
"status": "received",
|
212
216
|
"unique_name": "foobar",
|
213
217
|
"url": "https://preview.twilio.com/HostedNumbers/HostedNumberOrders/HRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
214
|
-
"verification_attempts": 0
|
218
|
+
"verification_attempts": 0,
|
219
|
+
"verification_type": "phone-call",
|
220
|
+
"verification_document_sid": null
|
215
221
|
}
|
216
222
|
]
|
217
223
|
}
|
@@ -262,7 +268,9 @@ describe 'HostedNumberOrder' do
|
|
262
268
|
"status": "received",
|
263
269
|
"unique_name": null,
|
264
270
|
"url": "https://preview.twilio.com/HostedNumbers/HostedNumberOrders/HRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
265
|
-
"verification_attempts": 0
|
271
|
+
"verification_attempts": 0,
|
272
|
+
"verification_type": "phone-call",
|
273
|
+
"verification_document_sid": null
|
266
274
|
}
|
267
275
|
]
|
268
276
|
))
|
@@ -295,7 +303,44 @@ describe 'HostedNumberOrder' do
|
|
295
303
|
"status": "received",
|
296
304
|
"unique_name": null,
|
297
305
|
"url": "https://preview.twilio.com/HostedNumbers/HostedNumberOrders/HRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
298
|
-
"verification_attempts": 0
|
306
|
+
"verification_attempts": 0,
|
307
|
+
"verification_type": "phone-call",
|
308
|
+
"verification_document_sid": null
|
309
|
+
}
|
310
|
+
]
|
311
|
+
))
|
312
|
+
|
313
|
+
actual = @client.preview.hosted_numbers.hosted_number_orders.create(phone_number: "+987654321", sms_capability: true)
|
314
|
+
|
315
|
+
expect(actual).to_not eq(nil)
|
316
|
+
end
|
317
|
+
|
318
|
+
it "receives create_with_phone_bill_verification responses" do
|
319
|
+
@holodeck.mock(Twilio::Response.new(
|
320
|
+
201,
|
321
|
+
%q[
|
322
|
+
{
|
323
|
+
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
324
|
+
"address_sid": null,
|
325
|
+
"capabilities": {
|
326
|
+
"sms": true,
|
327
|
+
"voice": false
|
328
|
+
},
|
329
|
+
"cc_emails": [],
|
330
|
+
"date_created": "2017-03-28T20:06:39Z",
|
331
|
+
"date_updated": "2017-03-28T20:06:39Z",
|
332
|
+
"email": null,
|
333
|
+
"friendly_name": null,
|
334
|
+
"incoming_phone_number_sid": "PN11111111111111111111111111111111",
|
335
|
+
"phone_number": "+14153608311",
|
336
|
+
"sid": "HRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
337
|
+
"signing_document_sid": null,
|
338
|
+
"status": "received",
|
339
|
+
"unique_name": null,
|
340
|
+
"url": "https://preview.twilio.com/HostedNumbers/HostedNumberOrders/HRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
341
|
+
"verification_attempts": 0,
|
342
|
+
"verification_type": "phone-bill",
|
343
|
+
"verification_document_sid": "RIaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
299
344
|
}
|
300
345
|
]
|
301
346
|
))
|
@@ -29,7 +29,7 @@ describe 'Session' do
|
|
29
29
|
%q[
|
30
30
|
{
|
31
31
|
"service_sid": "KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
32
|
-
"status": "in-
|
32
|
+
"status": "in-progress",
|
33
33
|
"unique_name": "unique_name",
|
34
34
|
"date_started": "2015-07-30T20:00:00Z",
|
35
35
|
"date_ended": "2015-07-30T20:00:00Z",
|
@@ -120,7 +120,7 @@ describe 'Session' do
|
|
120
120
|
%q[
|
121
121
|
{
|
122
122
|
"service_sid": "KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
123
|
-
"status": "in-
|
123
|
+
"status": "in-progress",
|
124
124
|
"unique_name": "unique_name",
|
125
125
|
"date_started": "2015-07-30T20:00:00Z",
|
126
126
|
"date_ended": "2015-07-30T20:00:00Z",
|
@@ -198,7 +198,7 @@ describe 'Session' do
|
|
198
198
|
%q[
|
199
199
|
{
|
200
200
|
"service_sid": "KSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
201
|
-
"status": "in-
|
201
|
+
"status": "in-progress",
|
202
202
|
"unique_name": "unique_name",
|
203
203
|
"date_started": "2015-07-30T20:00:00Z",
|
204
204
|
"date_ended": "2015-07-30T20:00:00Z",
|
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.6.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: 2017-12-
|
11
|
+
date: 2017-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -167,8 +167,12 @@ files:
|
|
167
167
|
- lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb
|
168
168
|
- lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb
|
169
169
|
- lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb
|
170
|
+
- lib/twilio-ruby/rest/api/v2010/account/available_phone_number/machine_to_machine.rb
|
170
171
|
- lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb
|
172
|
+
- lib/twilio-ruby/rest/api/v2010/account/available_phone_number/national.rb
|
173
|
+
- lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb
|
171
174
|
- lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb
|
175
|
+
- lib/twilio-ruby/rest/api/v2010/account/available_phone_number/voip.rb
|
172
176
|
- lib/twilio-ruby/rest/api/v2010/account/call.rb
|
173
177
|
- lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb
|
174
178
|
- lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb
|
@@ -454,8 +458,12 @@ files:
|
|
454
458
|
- spec/integration/api/v2010/account/application_spec.rb
|
455
459
|
- spec/integration/api/v2010/account/authorized_connect_app_spec.rb
|
456
460
|
- spec/integration/api/v2010/account/available_phone_number/local_spec.rb
|
461
|
+
- spec/integration/api/v2010/account/available_phone_number/machine_to_machine_spec.rb
|
457
462
|
- spec/integration/api/v2010/account/available_phone_number/mobile_spec.rb
|
463
|
+
- spec/integration/api/v2010/account/available_phone_number/national_spec.rb
|
464
|
+
- spec/integration/api/v2010/account/available_phone_number/shared_cost_spec.rb
|
458
465
|
- spec/integration/api/v2010/account/available_phone_number/toll_free_spec.rb
|
466
|
+
- spec/integration/api/v2010/account/available_phone_number/voip_spec.rb
|
459
467
|
- spec/integration/api/v2010/account/available_phone_number_spec.rb
|
460
468
|
- spec/integration/api/v2010/account/call/feedback_spec.rb
|
461
469
|
- spec/integration/api/v2010/account/call/feedback_summary_spec.rb
|
@@ -740,8 +748,12 @@ test_files:
|
|
740
748
|
- spec/integration/api/v2010/account/application_spec.rb
|
741
749
|
- spec/integration/api/v2010/account/authorized_connect_app_spec.rb
|
742
750
|
- spec/integration/api/v2010/account/available_phone_number/local_spec.rb
|
751
|
+
- spec/integration/api/v2010/account/available_phone_number/machine_to_machine_spec.rb
|
743
752
|
- spec/integration/api/v2010/account/available_phone_number/mobile_spec.rb
|
753
|
+
- spec/integration/api/v2010/account/available_phone_number/national_spec.rb
|
754
|
+
- spec/integration/api/v2010/account/available_phone_number/shared_cost_spec.rb
|
744
755
|
- spec/integration/api/v2010/account/available_phone_number/toll_free_spec.rb
|
756
|
+
- spec/integration/api/v2010/account/available_phone_number/voip_spec.rb
|
745
757
|
- spec/integration/api/v2010/account/available_phone_number_spec.rb
|
746
758
|
- spec/integration/api/v2010/account/call/feedback_spec.rb
|
747
759
|
- spec/integration/api/v2010/account/call/feedback_summary_spec.rb
|