twilio-ruby 5.7.2 → 5.8.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/.travis.yml +4 -0
- data/CHANGES.md +19 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/framework/error.rb +20 -6
- data/lib/twilio-ruby/framework/version.rb +1 -10
- data/lib/twilio-ruby/jwt/access_token.rb +3 -1
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +0 -7
- data/lib/twilio-ruby/rest/preview.rb +11 -3
- data/lib/twilio-ruby/rest/preview/understand.rb +6 -6
- data/lib/twilio-ruby/rest/preview/understand/{service.rb → assistant.rb} +94 -55
- data/lib/twilio-ruby/rest/preview/understand/{service → assistant}/field_type.rb +33 -23
- data/lib/twilio-ruby/rest/preview/understand/{service → assistant}/field_type/field_value.rb +30 -22
- data/lib/twilio-ruby/rest/preview/understand/{service → assistant}/intent.rb +39 -25
- data/lib/twilio-ruby/rest/preview/understand/{service → assistant}/intent/field.rb +20 -20
- data/lib/twilio-ruby/rest/preview/understand/{service → assistant}/intent/sample.rb +45 -27
- data/lib/twilio-ruby/rest/preview/understand/{service → assistant}/model_build.rb +21 -21
- data/lib/twilio-ruby/rest/preview/understand/{service → assistant}/query.rb +31 -26
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +6 -2
- data/lib/twilio-ruby/rest/video/v1/recording.rb +1 -1
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/accounts/v1/credential/aws_spec.rb +9 -9
- data/spec/integration/accounts/v1/credential/public_key_spec.rb +9 -9
- data/spec/integration/api/v2010/account/address/dependent_phone_number_spec.rb +7 -7
- data/spec/integration/api/v2010/account/address_spec.rb +22 -22
- data/spec/integration/api/v2010/account/application_spec.rb +22 -22
- data/spec/integration/api/v2010/account/authorized_connect_app_spec.rb +9 -9
- data/spec/integration/api/v2010/account/available_phone_number/local_spec.rb +4 -4
- data/spec/integration/api/v2010/account/available_phone_number/machine_to_machine_spec.rb +4 -4
- data/spec/integration/api/v2010/account/available_phone_number/mobile_spec.rb +4 -4
- data/spec/integration/api/v2010/account/available_phone_number/national_spec.rb +4 -4
- data/spec/integration/api/v2010/account/available_phone_number/shared_cost_spec.rb +4 -4
- data/spec/integration/api/v2010/account/available_phone_number/toll_free_spec.rb +4 -4
- data/spec/integration/api/v2010/account/available_phone_number/voip_spec.rb +4 -4
- data/spec/integration/api/v2010/account/available_phone_number_spec.rb +7 -7
- data/spec/integration/api/v2010/account/call/feedback_spec.rb +15 -15
- data/spec/integration/api/v2010/account/call/feedback_summary_spec.rb +13 -13
- data/spec/integration/api/v2010/account/call/notification_spec.rb +21 -21
- data/spec/integration/api/v2010/account/call/recording_spec.rb +21 -21
- data/spec/integration/api/v2010/account/call_spec.rb +22 -22
- data/spec/integration/api/v2010/account/conference/participant_spec.rb +35 -35
- data/spec/integration/api/v2010/account/conference_spec.rb +14 -14
- data/spec/integration/api/v2010/account/connect_app_spec.rb +14 -14
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension_spec.rb +19 -19
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on_spec.rb +29 -29
- data/spec/integration/api/v2010/account/incoming_phone_number/local_spec.rb +7 -7
- data/spec/integration/api/v2010/account/incoming_phone_number/mobile_spec.rb +7 -7
- data/spec/integration/api/v2010/account/incoming_phone_number/toll_free_spec.rb +7 -7
- data/spec/integration/api/v2010/account/incoming_phone_number_spec.rb +22 -22
- data/spec/integration/api/v2010/account/key_spec.rb +19 -19
- data/spec/integration/api/v2010/account/message/feedback_spec.rb +5 -5
- data/spec/integration/api/v2010/account/message/media_spec.rb +21 -21
- data/spec/integration/api/v2010/account/message_spec.rb +22 -22
- data/spec/integration/api/v2010/account/new_key_spec.rb +3 -3
- data/spec/integration/api/v2010/account/new_signing_key_spec.rb +3 -3
- data/spec/integration/api/v2010/account/notification_spec.rb +14 -14
- data/spec/integration/api/v2010/account/outgoing_caller_id_spec.rb +19 -19
- data/spec/integration/api/v2010/account/queue/member_spec.rb +21 -21
- data/spec/integration/api/v2010/account/queue_spec.rb +22 -22
- data/spec/integration/api/v2010/account/recording/add_on_result/payload_spec.rb +28 -28
- data/spec/integration/api/v2010/account/recording/add_on_result_spec.rb +21 -21
- data/spec/integration/api/v2010/account/recording/transcription_spec.rb +21 -21
- data/spec/integration/api/v2010/account/recording_spec.rb +14 -14
- data/spec/integration/api/v2010/account/short_code_spec.rb +14 -14
- data/spec/integration/api/v2010/account/signing_key_spec.rb +19 -19
- data/spec/integration/api/v2010/account/sip/credential_list/credential_spec.rb +33 -33
- data/spec/integration/api/v2010/account/sip/credential_list_spec.rb +22 -22
- data/spec/integration/api/v2010/account/sip/domain/credential_list_mapping_spec.rb +29 -29
- data/spec/integration/api/v2010/account/sip/domain/ip_access_control_list_mapping_spec.rb +29 -29
- data/spec/integration/api/v2010/account/sip/domain_spec.rb +22 -22
- data/spec/integration/api/v2010/account/sip/ip_access_control_list/ip_address_spec.rb +33 -33
- data/spec/integration/api/v2010/account/sip/ip_access_control_list_spec.rb +22 -22
- data/spec/integration/api/v2010/account/token_spec.rb +3 -3
- data/spec/integration/api/v2010/account/transcription_spec.rb +14 -14
- data/spec/integration/api/v2010/account/usage/record/all_time_spec.rb +4 -4
- data/spec/integration/api/v2010/account/usage/record/daily_spec.rb +4 -4
- data/spec/integration/api/v2010/account/usage/record/last_month_spec.rb +4 -4
- data/spec/integration/api/v2010/account/usage/record/monthly_spec.rb +4 -4
- data/spec/integration/api/v2010/account/usage/record/this_month_spec.rb +4 -4
- data/spec/integration/api/v2010/account/usage/record/today_spec.rb +4 -4
- data/spec/integration/api/v2010/account/usage/record/yearly_spec.rb +4 -4
- data/spec/integration/api/v2010/account/usage/record/yesterday_spec.rb +4 -4
- data/spec/integration/api/v2010/account/usage/record_spec.rb +4 -4
- data/spec/integration/api/v2010/account/usage/trigger_spec.rb +22 -22
- data/spec/integration/api/v2010/account/validation_request_spec.rb +3 -3
- data/spec/integration/api/v2010/account_spec.rb +84 -68
- data/spec/integration/chat/v1/credential_spec.rb +9 -9
- data/spec/integration/chat/v1/service/channel/invite_spec.rb +26 -26
- data/spec/integration/chat/v1/service/channel/member_spec.rb +36 -36
- data/spec/integration/chat/v1/service/channel/message_spec.rb +35 -35
- data/spec/integration/chat/v1/service/channel_spec.rb +22 -22
- data/spec/integration/chat/v1/service/role_spec.rb +22 -22
- data/spec/integration/chat/v1/service/user/user_channel_spec.rb +7 -7
- data/spec/integration/chat/v1/service/user_spec.rb +22 -22
- data/spec/integration/chat/v1/service_spec.rb +9 -9
- data/spec/integration/chat/v2/credential_spec.rb +9 -9
- data/spec/integration/chat/v2/service/binding_spec.rb +14 -14
- data/spec/integration/chat/v2/service/channel/invite_spec.rb +26 -26
- data/spec/integration/chat/v2/service/channel/member_spec.rb +33 -33
- data/spec/integration/chat/v2/service/channel/message_spec.rb +40 -40
- data/spec/integration/chat/v2/service/channel_spec.rb +22 -22
- data/spec/integration/chat/v2/service/role_spec.rb +22 -22
- data/spec/integration/chat/v2/service/user/user_binding_spec.rb +21 -21
- data/spec/integration/chat/v2/service/user/user_channel_spec.rb +7 -7
- data/spec/integration/chat/v2/service/user_spec.rb +22 -22
- data/spec/integration/chat/v2/service_spec.rb +9 -9
- data/spec/integration/fax/v1/fax/fax_media_spec.rb +13 -13
- data/spec/integration/fax/v1/fax_spec.rb +9 -9
- data/spec/integration/ip_messaging/v1/credential_spec.rb +9 -9
- data/spec/integration/ip_messaging/v1/service/channel/invite_spec.rb +26 -26
- data/spec/integration/ip_messaging/v1/service/channel/member_spec.rb +36 -36
- data/spec/integration/ip_messaging/v1/service/channel/message_spec.rb +35 -35
- data/spec/integration/ip_messaging/v1/service/channel_spec.rb +22 -22
- data/spec/integration/ip_messaging/v1/service/role_spec.rb +22 -22
- data/spec/integration/ip_messaging/v1/service/user/user_channel_spec.rb +7 -7
- data/spec/integration/ip_messaging/v1/service/user_spec.rb +22 -22
- data/spec/integration/ip_messaging/v1/service_spec.rb +9 -9
- data/spec/integration/ip_messaging/v2/credential_spec.rb +9 -9
- data/spec/integration/ip_messaging/v2/service/binding_spec.rb +14 -14
- data/spec/integration/ip_messaging/v2/service/channel/invite_spec.rb +26 -26
- data/spec/integration/ip_messaging/v2/service/channel/member_spec.rb +33 -33
- data/spec/integration/ip_messaging/v2/service/channel/message_spec.rb +40 -40
- data/spec/integration/ip_messaging/v2/service/channel_spec.rb +22 -22
- data/spec/integration/ip_messaging/v2/service/role_spec.rb +22 -22
- data/spec/integration/ip_messaging/v2/service/user/user_binding_spec.rb +21 -21
- data/spec/integration/ip_messaging/v2/service/user/user_channel_spec.rb +7 -7
- data/spec/integration/ip_messaging/v2/service/user_spec.rb +22 -22
- data/spec/integration/ip_messaging/v2/service_spec.rb +9 -9
- data/spec/integration/lookups/v1/phone_number_spec.rb +0 -10
- data/spec/integration/messaging/v1/service/alpha_sender_spec.rb +16 -16
- data/spec/integration/messaging/v1/service/phone_number_spec.rb +21 -21
- data/spec/integration/messaging/v1/service/short_code_spec.rb +19 -19
- data/spec/integration/messaging/v1/service_spec.rb +9 -9
- data/spec/integration/monitor/v1/alert_spec.rb +6 -6
- data/spec/integration/monitor/v1/event_spec.rb +3 -3
- data/spec/integration/notify/v1/credential_spec.rb +9 -9
- data/spec/integration/notify/v1/service/binding_spec.rb +17 -17
- data/spec/integration/notify/v1/service/notification_spec.rb +4 -4
- data/spec/integration/notify/v1/service/segment_spec.rb +4 -4
- data/spec/integration/notify/v1/service/user/segment_memberships_spec.rb +15 -15
- data/spec/integration/notify/v1/service/user/user_binding_spec.rb +28 -28
- data/spec/integration/notify/v1/service/user_spec.rb +17 -17
- data/spec/integration/notify/v1/service_spec.rb +9 -9
- data/spec/integration/preview/acc_security/service/verification_check_spec.rb +3 -3
- data/spec/integration/preview/acc_security/service/verification_spec.rb +3 -3
- data/spec/integration/preview/acc_security/service_spec.rb +6 -6
- data/spec/integration/preview/deployed_devices/fleet/certificate_spec.rb +22 -22
- data/spec/integration/preview/deployed_devices/fleet/deployment_spec.rb +22 -22
- data/spec/integration/preview/deployed_devices/fleet/device_spec.rb +22 -22
- data/spec/integration/preview/deployed_devices/fleet/key_spec.rb +22 -22
- data/spec/integration/preview/deployed_devices/fleet_spec.rb +9 -9
- data/spec/integration/preview/hosted_numbers/authorization_document/dependent_hosted_number_order_spec.rb +4 -4
- data/spec/integration/preview/hosted_numbers/authorization_document_spec.rb +9 -9
- data/spec/integration/preview/hosted_numbers/hosted_number_order_spec.rb +9 -9
- data/spec/integration/preview/marketplace/available_add_on/available_add_on_extension_spec.rb +9 -9
- data/spec/integration/preview/marketplace/available_add_on_spec.rb +3 -3
- data/spec/integration/preview/marketplace/installed_add_on/installed_add_on_extension_spec.rb +14 -14
- data/spec/integration/preview/marketplace/installed_add_on_spec.rb +12 -12
- data/spec/integration/preview/proxy/service/phone_number_spec.rb +19 -19
- data/spec/integration/preview/proxy/service/session/interaction_spec.rb +12 -12
- data/spec/integration/preview/proxy/service/session/participant/message_interaction_spec.rb +23 -23
- data/spec/integration/preview/proxy/service/session/participant_spec.rb +31 -31
- data/spec/integration/preview/proxy/service/session_spec.rb +21 -21
- data/spec/integration/preview/proxy/service/short_code_spec.rb +19 -19
- data/spec/integration/preview/proxy/service_spec.rb +9 -9
- data/spec/integration/preview/studio/flow/engagement/step_spec.rb +12 -12
- data/spec/integration/preview/studio/flow/engagement_spec.rb +11 -11
- data/spec/integration/preview/studio/flow_spec.rb +6 -6
- data/spec/integration/preview/sync/service/document/document_permission_spec.rb +22 -22
- data/spec/integration/preview/sync/service/document_spec.rb +23 -23
- data/spec/integration/preview/sync/service/sync_list/sync_list_item_spec.rb +33 -33
- data/spec/integration/preview/sync/service/sync_list/sync_list_permission_spec.rb +22 -22
- data/spec/integration/preview/sync/service/sync_list_spec.rb +17 -17
- data/spec/integration/preview/sync/service/sync_map/sync_map_item_spec.rb +33 -33
- data/spec/integration/preview/sync/service/sync_map/sync_map_permission_spec.rb +22 -22
- data/spec/integration/preview/sync/service/sync_map_spec.rb +17 -17
- data/spec/integration/preview/sync/service_spec.rb +9 -9
- data/spec/integration/preview/understand/assistant/field_type/field_value_spec.rb +208 -0
- data/spec/integration/preview/understand/{service → assistant}/field_type_spec.rb +38 -38
- data/spec/integration/preview/understand/{service → assistant}/intent/field_spec.rb +36 -36
- data/spec/integration/preview/understand/assistant/intent/sample_spec.rb +251 -0
- data/spec/integration/preview/understand/{service → assistant}/intent_spec.rb +42 -46
- data/spec/integration/preview/understand/{service → assistant}/model_build_spec.rb +34 -34
- data/spec/integration/preview/understand/{service → assistant}/query_spec.rb +42 -38
- data/spec/integration/preview/understand/{service_spec.rb → assistant_spec.rb} +57 -49
- data/spec/integration/preview/wireless/command_spec.rb +3 -3
- data/spec/integration/preview/wireless/rate_plan_spec.rb +9 -9
- data/spec/integration/preview/wireless/sim/usage_spec.rb +3 -3
- data/spec/integration/preview/wireless/sim_spec.rb +6 -6
- data/spec/integration/proxy/v1/service/phone_number_spec.rb +16 -16
- data/spec/integration/proxy/v1/service/session/interaction_spec.rb +19 -19
- data/spec/integration/proxy/v1/service/session/participant/message_interaction_spec.rb +23 -23
- data/spec/integration/proxy/v1/service/session/participant_spec.rb +31 -31
- data/spec/integration/proxy/v1/service/session_spec.rb +21 -21
- data/spec/integration/proxy/v1/service/short_code_spec.rb +19 -19
- data/spec/integration/proxy/v1/service_spec.rb +9 -9
- data/spec/integration/studio/v1/flow/engagement/engagement_context_spec.rb +5 -5
- data/spec/integration/studio/v1/flow/engagement/step/step_context_spec.rb +7 -7
- data/spec/integration/studio/v1/flow/engagement/step_spec.rb +12 -12
- data/spec/integration/studio/v1/flow/engagement_spec.rb +11 -11
- data/spec/integration/studio/v1/flow_spec.rb +6 -6
- data/spec/integration/sync/v1/service/document/document_permission_spec.rb +22 -22
- data/spec/integration/sync/v1/service/document_spec.rb +22 -22
- data/spec/integration/sync/v1/service/sync_list/sync_list_item_spec.rb +30 -30
- data/spec/integration/sync/v1/service/sync_list/sync_list_permission_spec.rb +22 -22
- data/spec/integration/sync/v1/service/sync_list_spec.rb +22 -22
- data/spec/integration/sync/v1/service/sync_map/sync_map_item_spec.rb +30 -30
- data/spec/integration/sync/v1/service/sync_map/sync_map_permission_spec.rb +22 -22
- data/spec/integration/sync/v1/service/sync_map_spec.rb +22 -22
- data/spec/integration/sync/v1/service/sync_stream/stream_message_spec.rb +8 -8
- data/spec/integration/sync/v1/service/sync_stream_spec.rb +22 -22
- data/spec/integration/sync/v1/service_spec.rb +9 -9
- data/spec/integration/taskrouter/v1/workspace/activity_spec.rb +22 -22
- data/spec/integration/taskrouter/v1/workspace/event_spec.rb +9 -9
- data/spec/integration/taskrouter/v1/workspace/task/reservation_spec.rb +21 -21
- data/spec/integration/taskrouter/v1/workspace/task_channel_spec.rb +9 -9
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics_spec.rb +5 -5
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics_spec.rb +5 -5
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_statistics_spec.rb +5 -5
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queues_statistics_spec.rb +4 -4
- data/spec/integration/taskrouter/v1/workspace/task_queue_spec.rb +26 -26
- data/spec/integration/taskrouter/v1/workspace/task_spec.rb +23 -23
- data/spec/integration/taskrouter/v1/workspace/worker/reservation_spec.rb +21 -21
- data/spec/integration/taskrouter/v1/workspace/worker/worker_channel_spec.rb +21 -21
- data/spec/integration/taskrouter/v1/workspace/worker/worker_statistics_spec.rb +5 -5
- data/spec/integration/taskrouter/v1/workspace/worker/workers_cumulative_statistics_spec.rb +5 -5
- data/spec/integration/taskrouter/v1/workspace/worker/workers_real_time_statistics_spec.rb +5 -5
- data/spec/integration/taskrouter/v1/workspace/worker/workers_statistics_spec.rb +3 -3
- data/spec/integration/taskrouter/v1/workspace/worker_spec.rb +22 -22
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics_spec.rb +5 -5
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_real_time_statistics_spec.rb +5 -5
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_statistics_spec.rb +5 -5
- data/spec/integration/taskrouter/v1/workspace/workflow_spec.rb +22 -22
- data/spec/integration/taskrouter/v1/workspace/workspace_cumulative_statistics_spec.rb +3 -3
- data/spec/integration/taskrouter/v1/workspace/workspace_real_time_statistics_spec.rb +3 -3
- data/spec/integration/taskrouter/v1/workspace/workspace_statistics_spec.rb +3 -3
- data/spec/integration/taskrouter/v1/workspace_spec.rb +9 -9
- data/spec/integration/trunking/v1/trunk/credential_list_spec.rb +20 -20
- data/spec/integration/trunking/v1/trunk/ip_access_control_list_spec.rb +20 -20
- data/spec/integration/trunking/v1/trunk/origination_url_spec.rb +22 -22
- data/spec/integration/trunking/v1/trunk/phone_number_spec.rb +20 -20
- data/spec/integration/trunking/v1/trunk_spec.rb +9 -9
- data/spec/integration/video/v1/composition_spec.rb +6 -6
- data/spec/integration/video/v1/recording_spec.rb +10 -6
- data/spec/integration/video/v1/room/recording_spec.rb +9 -9
- data/spec/integration/video/v1/room/room_participant/room_participant_published_track_spec.rb +12 -12
- data/spec/integration/video/v1/room/room_participant/room_participant_subscribed_track_spec.rb +12 -12
- data/spec/integration/video/v1/room/room_participant_spec.rb +14 -14
- data/spec/integration/video/v1/room_spec.rb +6 -6
- data/spec/integration/wireless/v1/command_spec.rb +3 -3
- data/spec/integration/wireless/v1/rate_plan_spec.rb +9 -9
- data/spec/integration/wireless/v1/sim/data_session_spec.rb +3 -3
- data/spec/integration/wireless/v1/sim/usage_record_spec.rb +3 -3
- data/spec/integration/wireless/v1/sim_spec.rb +6 -6
- data/spec/jwt/access_token_spec.rb +2 -0
- metadata +26 -26
- data/spec/integration/preview/understand/service/field_type/field_value_spec.rb +0 -205
- data/spec/integration/preview/understand/service/intent/sample_spec.rb +0 -247
|
@@ -11,17 +11,17 @@ describe 'AssignedAddOnExtension' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.api.v2010.accounts('
|
|
15
|
-
.incoming_phone_numbers('
|
|
16
|
-
.assigned_add_ons('
|
|
17
|
-
.extensions('
|
|
14
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
15
|
+
.incoming_phone_numbers('PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
16
|
+
.assigned_add_ons('XEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
17
|
+
.extensions('XFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
|
18
18
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
19
19
|
|
|
20
20
|
values = {}
|
|
21
21
|
expect(
|
|
22
22
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
23
23
|
method: 'get',
|
|
24
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
|
24
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/IncomingPhoneNumbers/PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AssignedAddOns/XEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Extensions/XFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
|
25
25
|
))).to eq(true)
|
|
26
26
|
end
|
|
27
27
|
|
|
@@ -43,10 +43,10 @@ describe 'AssignedAddOnExtension' do
|
|
|
43
43
|
]
|
|
44
44
|
))
|
|
45
45
|
|
|
46
|
-
actual = @client.api.v2010.accounts('
|
|
47
|
-
.incoming_phone_numbers('
|
|
48
|
-
.assigned_add_ons('
|
|
49
|
-
.extensions('
|
|
46
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
47
|
+
.incoming_phone_numbers('PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
48
|
+
.assigned_add_ons('XEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
49
|
+
.extensions('XFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
|
50
50
|
|
|
51
51
|
expect(actual).to_not eq(nil)
|
|
52
52
|
end
|
|
@@ -55,9 +55,9 @@ describe 'AssignedAddOnExtension' do
|
|
|
55
55
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
56
56
|
|
|
57
57
|
expect {
|
|
58
|
-
@client.api.v2010.accounts('
|
|
59
|
-
.incoming_phone_numbers('
|
|
60
|
-
.assigned_add_ons('
|
|
58
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
59
|
+
.incoming_phone_numbers('PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
60
|
+
.assigned_add_ons('XEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
61
61
|
.extensions.list()
|
|
62
62
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
63
63
|
|
|
@@ -65,7 +65,7 @@ describe 'AssignedAddOnExtension' do
|
|
|
65
65
|
expect(
|
|
66
66
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
67
67
|
method: 'get',
|
|
68
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
|
68
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/IncomingPhoneNumbers/PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AssignedAddOns/XEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Extensions.json',
|
|
69
69
|
))).to eq(true)
|
|
70
70
|
end
|
|
71
71
|
|
|
@@ -99,9 +99,9 @@ describe 'AssignedAddOnExtension' do
|
|
|
99
99
|
]
|
|
100
100
|
))
|
|
101
101
|
|
|
102
|
-
actual = @client.api.v2010.accounts('
|
|
103
|
-
.incoming_phone_numbers('
|
|
104
|
-
.assigned_add_ons('
|
|
102
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
103
|
+
.incoming_phone_numbers('PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
104
|
+
.assigned_add_ons('XEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
105
105
|
.extensions.list()
|
|
106
106
|
|
|
107
107
|
expect(actual).to_not eq(nil)
|
|
@@ -125,9 +125,9 @@ describe 'AssignedAddOnExtension' do
|
|
|
125
125
|
]
|
|
126
126
|
))
|
|
127
127
|
|
|
128
|
-
actual = @client.api.v2010.accounts('
|
|
129
|
-
.incoming_phone_numbers('
|
|
130
|
-
.assigned_add_ons('
|
|
128
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
129
|
+
.incoming_phone_numbers('PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
130
|
+
.assigned_add_ons('XEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
131
131
|
.extensions.list()
|
|
132
132
|
|
|
133
133
|
expect(actual).to_not eq(nil)
|
|
@@ -11,16 +11,16 @@ describe 'AssignedAddOn' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.api.v2010.accounts('
|
|
15
|
-
.incoming_phone_numbers('
|
|
16
|
-
.assigned_add_ons('
|
|
14
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
15
|
+
.incoming_phone_numbers('PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
16
|
+
.assigned_add_ons('XEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
|
17
17
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
18
18
|
|
|
19
19
|
values = {}
|
|
20
20
|
expect(
|
|
21
21
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
22
22
|
method: 'get',
|
|
23
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
|
23
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/IncomingPhoneNumbers/PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AssignedAddOns/XEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
|
24
24
|
))).to eq(true)
|
|
25
25
|
end
|
|
26
26
|
|
|
@@ -48,9 +48,9 @@ describe 'AssignedAddOn' do
|
|
|
48
48
|
]
|
|
49
49
|
))
|
|
50
50
|
|
|
51
|
-
actual = @client.api.v2010.accounts('
|
|
52
|
-
.incoming_phone_numbers('
|
|
53
|
-
.assigned_add_ons('
|
|
51
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
52
|
+
.incoming_phone_numbers('PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
53
|
+
.assigned_add_ons('XEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
|
54
54
|
|
|
55
55
|
expect(actual).to_not eq(nil)
|
|
56
56
|
end
|
|
@@ -59,8 +59,8 @@ describe 'AssignedAddOn' do
|
|
|
59
59
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
60
60
|
|
|
61
61
|
expect {
|
|
62
|
-
@client.api.v2010.accounts('
|
|
63
|
-
.incoming_phone_numbers('
|
|
62
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
63
|
+
.incoming_phone_numbers('PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
64
64
|
.assigned_add_ons.list()
|
|
65
65
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
66
66
|
|
|
@@ -68,7 +68,7 @@ describe 'AssignedAddOn' do
|
|
|
68
68
|
expect(
|
|
69
69
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
70
70
|
method: 'get',
|
|
71
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
|
71
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/IncomingPhoneNumbers/PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AssignedAddOns.json',
|
|
72
72
|
))).to eq(true)
|
|
73
73
|
end
|
|
74
74
|
|
|
@@ -108,8 +108,8 @@ describe 'AssignedAddOn' do
|
|
|
108
108
|
]
|
|
109
109
|
))
|
|
110
110
|
|
|
111
|
-
actual = @client.api.v2010.accounts('
|
|
112
|
-
.incoming_phone_numbers('
|
|
111
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
112
|
+
.incoming_phone_numbers('PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
113
113
|
.assigned_add_ons.list()
|
|
114
114
|
|
|
115
115
|
expect(actual).to_not eq(nil)
|
|
@@ -133,8 +133,8 @@ describe 'AssignedAddOn' do
|
|
|
133
133
|
]
|
|
134
134
|
))
|
|
135
135
|
|
|
136
|
-
actual = @client.api.v2010.accounts('
|
|
137
|
-
.incoming_phone_numbers('
|
|
136
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
137
|
+
.incoming_phone_numbers('PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
138
138
|
.assigned_add_ons.list()
|
|
139
139
|
|
|
140
140
|
expect(actual).to_not eq(nil)
|
|
@@ -144,16 +144,16 @@ describe 'AssignedAddOn' do
|
|
|
144
144
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
145
145
|
|
|
146
146
|
expect {
|
|
147
|
-
@client.api.v2010.accounts('
|
|
148
|
-
.incoming_phone_numbers('
|
|
149
|
-
.assigned_add_ons.create(installed_add_on_sid: '
|
|
147
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
148
|
+
.incoming_phone_numbers('PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
149
|
+
.assigned_add_ons.create(installed_add_on_sid: 'XEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
|
|
150
150
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
151
151
|
|
|
152
|
-
values = {'InstalledAddOnSid' => '
|
|
152
|
+
values = {'InstalledAddOnSid' => 'XEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', }
|
|
153
153
|
expect(
|
|
154
154
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
155
155
|
method: 'post',
|
|
156
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
|
156
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/IncomingPhoneNumbers/PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AssignedAddOns.json',
|
|
157
157
|
data: values,
|
|
158
158
|
))).to eq(true)
|
|
159
159
|
end
|
|
@@ -182,9 +182,9 @@ describe 'AssignedAddOn' do
|
|
|
182
182
|
]
|
|
183
183
|
))
|
|
184
184
|
|
|
185
|
-
actual = @client.api.v2010.accounts('
|
|
186
|
-
.incoming_phone_numbers('
|
|
187
|
-
.assigned_add_ons.create(installed_add_on_sid: '
|
|
185
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
186
|
+
.incoming_phone_numbers('PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
187
|
+
.assigned_add_ons.create(installed_add_on_sid: 'XEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
|
|
188
188
|
|
|
189
189
|
expect(actual).to_not eq(nil)
|
|
190
190
|
end
|
|
@@ -193,16 +193,16 @@ describe 'AssignedAddOn' do
|
|
|
193
193
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
194
194
|
|
|
195
195
|
expect {
|
|
196
|
-
@client.api.v2010.accounts('
|
|
197
|
-
.incoming_phone_numbers('
|
|
198
|
-
.assigned_add_ons('
|
|
196
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
197
|
+
.incoming_phone_numbers('PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
198
|
+
.assigned_add_ons('XEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
|
199
199
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
200
200
|
|
|
201
201
|
values = {}
|
|
202
202
|
expect(
|
|
203
203
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
204
204
|
method: 'delete',
|
|
205
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
|
205
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/IncomingPhoneNumbers/PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/AssignedAddOns/XEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
|
206
206
|
))).to eq(true)
|
|
207
207
|
end
|
|
208
208
|
|
|
@@ -212,9 +212,9 @@ describe 'AssignedAddOn' do
|
|
|
212
212
|
nil,
|
|
213
213
|
))
|
|
214
214
|
|
|
215
|
-
actual = @client.api.v2010.accounts('
|
|
216
|
-
.incoming_phone_numbers('
|
|
217
|
-
.assigned_add_ons('
|
|
215
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
216
|
+
.incoming_phone_numbers('PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
217
|
+
.assigned_add_ons('XEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
|
218
218
|
|
|
219
219
|
expect(actual).to eq(true)
|
|
220
220
|
end
|
|
@@ -11,7 +11,7 @@ describe 'Local' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.api.v2010.accounts('
|
|
14
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
15
15
|
.incoming_phone_numbers \
|
|
16
16
|
.local.list()
|
|
17
17
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
@@ -20,7 +20,7 @@ describe 'Local' do
|
|
|
20
20
|
expect(
|
|
21
21
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
22
22
|
method: 'get',
|
|
23
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
|
23
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/IncomingPhoneNumbers/Local.json',
|
|
24
24
|
))).to eq(true)
|
|
25
25
|
end
|
|
26
26
|
|
|
@@ -80,7 +80,7 @@ describe 'Local' do
|
|
|
80
80
|
]
|
|
81
81
|
))
|
|
82
82
|
|
|
83
|
-
actual = @client.api.v2010.accounts('
|
|
83
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
84
84
|
.incoming_phone_numbers \
|
|
85
85
|
.local.list()
|
|
86
86
|
|
|
@@ -108,7 +108,7 @@ describe 'Local' do
|
|
|
108
108
|
]
|
|
109
109
|
))
|
|
110
110
|
|
|
111
|
-
actual = @client.api.v2010.accounts('
|
|
111
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
112
112
|
.incoming_phone_numbers \
|
|
113
113
|
.local.list()
|
|
114
114
|
|
|
@@ -119,7 +119,7 @@ describe 'Local' do
|
|
|
119
119
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
120
120
|
|
|
121
121
|
expect {
|
|
122
|
-
@client.api.v2010.accounts('
|
|
122
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
123
123
|
.incoming_phone_numbers \
|
|
124
124
|
.local.create(phone_number: '+15017122661')
|
|
125
125
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
@@ -128,7 +128,7 @@ describe 'Local' do
|
|
|
128
128
|
expect(
|
|
129
129
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
130
130
|
method: 'post',
|
|
131
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
|
131
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/IncomingPhoneNumbers/Local.json',
|
|
132
132
|
data: values,
|
|
133
133
|
))).to eq(true)
|
|
134
134
|
end
|
|
@@ -174,7 +174,7 @@ describe 'Local' do
|
|
|
174
174
|
]
|
|
175
175
|
))
|
|
176
176
|
|
|
177
|
-
actual = @client.api.v2010.accounts('
|
|
177
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
178
178
|
.incoming_phone_numbers \
|
|
179
179
|
.local.create(phone_number: '+15017122661')
|
|
180
180
|
|
|
@@ -11,7 +11,7 @@ describe 'Mobile' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.api.v2010.accounts('
|
|
14
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
15
15
|
.incoming_phone_numbers \
|
|
16
16
|
.mobile.list()
|
|
17
17
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
@@ -20,7 +20,7 @@ describe 'Mobile' do
|
|
|
20
20
|
expect(
|
|
21
21
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
22
22
|
method: 'get',
|
|
23
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
|
23
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/IncomingPhoneNumbers/Mobile.json',
|
|
24
24
|
))).to eq(true)
|
|
25
25
|
end
|
|
26
26
|
|
|
@@ -80,7 +80,7 @@ describe 'Mobile' do
|
|
|
80
80
|
]
|
|
81
81
|
))
|
|
82
82
|
|
|
83
|
-
actual = @client.api.v2010.accounts('
|
|
83
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
84
84
|
.incoming_phone_numbers \
|
|
85
85
|
.mobile.list()
|
|
86
86
|
|
|
@@ -108,7 +108,7 @@ describe 'Mobile' do
|
|
|
108
108
|
]
|
|
109
109
|
))
|
|
110
110
|
|
|
111
|
-
actual = @client.api.v2010.accounts('
|
|
111
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
112
112
|
.incoming_phone_numbers \
|
|
113
113
|
.mobile.list()
|
|
114
114
|
|
|
@@ -119,7 +119,7 @@ describe 'Mobile' do
|
|
|
119
119
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
120
120
|
|
|
121
121
|
expect {
|
|
122
|
-
@client.api.v2010.accounts('
|
|
122
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
123
123
|
.incoming_phone_numbers \
|
|
124
124
|
.mobile.create(phone_number: '+15017122661')
|
|
125
125
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
@@ -128,7 +128,7 @@ describe 'Mobile' do
|
|
|
128
128
|
expect(
|
|
129
129
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
130
130
|
method: 'post',
|
|
131
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
|
131
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/IncomingPhoneNumbers/Mobile.json',
|
|
132
132
|
data: values,
|
|
133
133
|
))).to eq(true)
|
|
134
134
|
end
|
|
@@ -174,7 +174,7 @@ describe 'Mobile' do
|
|
|
174
174
|
]
|
|
175
175
|
))
|
|
176
176
|
|
|
177
|
-
actual = @client.api.v2010.accounts('
|
|
177
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
178
178
|
.incoming_phone_numbers \
|
|
179
179
|
.mobile.create(phone_number: '+15017122661')
|
|
180
180
|
|
|
@@ -11,7 +11,7 @@ describe 'TollFree' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.api.v2010.accounts('
|
|
14
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
15
15
|
.incoming_phone_numbers \
|
|
16
16
|
.toll_free.list()
|
|
17
17
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
@@ -20,7 +20,7 @@ describe 'TollFree' do
|
|
|
20
20
|
expect(
|
|
21
21
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
22
22
|
method: 'get',
|
|
23
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
|
23
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/IncomingPhoneNumbers/TollFree.json',
|
|
24
24
|
))).to eq(true)
|
|
25
25
|
end
|
|
26
26
|
|
|
@@ -80,7 +80,7 @@ describe 'TollFree' do
|
|
|
80
80
|
]
|
|
81
81
|
))
|
|
82
82
|
|
|
83
|
-
actual = @client.api.v2010.accounts('
|
|
83
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
84
84
|
.incoming_phone_numbers \
|
|
85
85
|
.toll_free.list()
|
|
86
86
|
|
|
@@ -108,7 +108,7 @@ describe 'TollFree' do
|
|
|
108
108
|
]
|
|
109
109
|
))
|
|
110
110
|
|
|
111
|
-
actual = @client.api.v2010.accounts('
|
|
111
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
112
112
|
.incoming_phone_numbers \
|
|
113
113
|
.toll_free.list()
|
|
114
114
|
|
|
@@ -119,7 +119,7 @@ describe 'TollFree' do
|
|
|
119
119
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
120
120
|
|
|
121
121
|
expect {
|
|
122
|
-
@client.api.v2010.accounts('
|
|
122
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
123
123
|
.incoming_phone_numbers \
|
|
124
124
|
.toll_free.create(phone_number: '+15017122661')
|
|
125
125
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
@@ -128,7 +128,7 @@ describe 'TollFree' do
|
|
|
128
128
|
expect(
|
|
129
129
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
130
130
|
method: 'post',
|
|
131
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
|
131
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/IncomingPhoneNumbers/TollFree.json',
|
|
132
132
|
data: values,
|
|
133
133
|
))).to eq(true)
|
|
134
134
|
end
|
|
@@ -174,7 +174,7 @@ describe 'TollFree' do
|
|
|
174
174
|
]
|
|
175
175
|
))
|
|
176
176
|
|
|
177
|
-
actual = @client.api.v2010.accounts('
|
|
177
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
178
178
|
.incoming_phone_numbers \
|
|
179
179
|
.toll_free.create(phone_number: '+15017122661')
|
|
180
180
|
|
|
@@ -11,15 +11,15 @@ describe 'IncomingPhoneNumber' do
|
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
12
12
|
|
|
13
13
|
expect {
|
|
14
|
-
@client.api.v2010.accounts('
|
|
15
|
-
.incoming_phone_numbers('
|
|
14
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
15
|
+
.incoming_phone_numbers('PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
|
16
16
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
17
17
|
|
|
18
18
|
values = {}
|
|
19
19
|
expect(
|
|
20
20
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
21
21
|
method: 'post',
|
|
22
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
|
22
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/IncomingPhoneNumbers/PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
|
23
23
|
))).to eq(true)
|
|
24
24
|
end
|
|
25
25
|
|
|
@@ -66,8 +66,8 @@ describe 'IncomingPhoneNumber' do
|
|
|
66
66
|
]
|
|
67
67
|
))
|
|
68
68
|
|
|
69
|
-
actual = @client.api.v2010.accounts('
|
|
70
|
-
.incoming_phone_numbers('
|
|
69
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
70
|
+
.incoming_phone_numbers('PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
|
71
71
|
|
|
72
72
|
expect(actual).to_not eq(nil)
|
|
73
73
|
end
|
|
@@ -76,15 +76,15 @@ describe 'IncomingPhoneNumber' do
|
|
|
76
76
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
77
77
|
|
|
78
78
|
expect {
|
|
79
|
-
@client.api.v2010.accounts('
|
|
80
|
-
.incoming_phone_numbers('
|
|
79
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
80
|
+
.incoming_phone_numbers('PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
|
81
81
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
82
82
|
|
|
83
83
|
values = {}
|
|
84
84
|
expect(
|
|
85
85
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
86
86
|
method: 'get',
|
|
87
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
|
87
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/IncomingPhoneNumbers/PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
|
88
88
|
))).to eq(true)
|
|
89
89
|
end
|
|
90
90
|
|
|
@@ -131,8 +131,8 @@ describe 'IncomingPhoneNumber' do
|
|
|
131
131
|
]
|
|
132
132
|
))
|
|
133
133
|
|
|
134
|
-
actual = @client.api.v2010.accounts('
|
|
135
|
-
.incoming_phone_numbers('
|
|
134
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
135
|
+
.incoming_phone_numbers('PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
|
136
136
|
|
|
137
137
|
expect(actual).to_not eq(nil)
|
|
138
138
|
end
|
|
@@ -141,15 +141,15 @@ describe 'IncomingPhoneNumber' do
|
|
|
141
141
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
142
142
|
|
|
143
143
|
expect {
|
|
144
|
-
@client.api.v2010.accounts('
|
|
145
|
-
.incoming_phone_numbers('
|
|
144
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
145
|
+
.incoming_phone_numbers('PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
|
146
146
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
147
147
|
|
|
148
148
|
values = {}
|
|
149
149
|
expect(
|
|
150
150
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
151
151
|
method: 'delete',
|
|
152
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
|
152
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/IncomingPhoneNumbers/PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json',
|
|
153
153
|
))).to eq(true)
|
|
154
154
|
end
|
|
155
155
|
|
|
@@ -159,8 +159,8 @@ describe 'IncomingPhoneNumber' do
|
|
|
159
159
|
nil,
|
|
160
160
|
))
|
|
161
161
|
|
|
162
|
-
actual = @client.api.v2010.accounts('
|
|
163
|
-
.incoming_phone_numbers('
|
|
162
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
163
|
+
.incoming_phone_numbers('PNXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
|
164
164
|
|
|
165
165
|
expect(actual).to eq(true)
|
|
166
166
|
end
|
|
@@ -169,7 +169,7 @@ describe 'IncomingPhoneNumber' do
|
|
|
169
169
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
170
170
|
|
|
171
171
|
expect {
|
|
172
|
-
@client.api.v2010.accounts('
|
|
172
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
173
173
|
.incoming_phone_numbers.list()
|
|
174
174
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
175
175
|
|
|
@@ -177,7 +177,7 @@ describe 'IncomingPhoneNumber' do
|
|
|
177
177
|
expect(
|
|
178
178
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
179
179
|
method: 'get',
|
|
180
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
|
180
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/IncomingPhoneNumbers.json',
|
|
181
181
|
))).to eq(true)
|
|
182
182
|
end
|
|
183
183
|
|
|
@@ -239,7 +239,7 @@ describe 'IncomingPhoneNumber' do
|
|
|
239
239
|
]
|
|
240
240
|
))
|
|
241
241
|
|
|
242
|
-
actual = @client.api.v2010.accounts('
|
|
242
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
243
243
|
.incoming_phone_numbers.list()
|
|
244
244
|
|
|
245
245
|
expect(actual).to_not eq(nil)
|
|
@@ -266,7 +266,7 @@ describe 'IncomingPhoneNumber' do
|
|
|
266
266
|
]
|
|
267
267
|
))
|
|
268
268
|
|
|
269
|
-
actual = @client.api.v2010.accounts('
|
|
269
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
270
270
|
.incoming_phone_numbers.list()
|
|
271
271
|
|
|
272
272
|
expect(actual).to_not eq(nil)
|
|
@@ -276,7 +276,7 @@ describe 'IncomingPhoneNumber' do
|
|
|
276
276
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
|
277
277
|
|
|
278
278
|
expect {
|
|
279
|
-
@client.api.v2010.accounts('
|
|
279
|
+
@client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
280
280
|
.incoming_phone_numbers.create()
|
|
281
281
|
}.to raise_exception(Twilio::REST::TwilioError)
|
|
282
282
|
|
|
@@ -284,7 +284,7 @@ describe 'IncomingPhoneNumber' do
|
|
|
284
284
|
expect(
|
|
285
285
|
@holodeck.has_request?(Holodeck::Request.new(
|
|
286
286
|
method: 'post',
|
|
287
|
-
url: 'https://api.twilio.com/2010-04-01/Accounts/
|
|
287
|
+
url: 'https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/IncomingPhoneNumbers.json',
|
|
288
288
|
))).to eq(true)
|
|
289
289
|
end
|
|
290
290
|
|
|
@@ -331,7 +331,7 @@ describe 'IncomingPhoneNumber' do
|
|
|
331
331
|
]
|
|
332
332
|
))
|
|
333
333
|
|
|
334
|
-
actual = @client.api.v2010.accounts('
|
|
334
|
+
actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
|
335
335
|
.incoming_phone_numbers.create()
|
|
336
336
|
|
|
337
337
|
expect(actual).to_not eq(nil)
|