twilio-ruby 5.7.2 → 5.8.0
Sign up to get free protection for your applications and to get access to all the features.
- 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,15 +11,15 @@ describe 'Device' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.preview.deployed_devices.fleets('
|
15
|
-
.devices('
|
14
|
+
@client.preview.deployed_devices.fleets('FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
15
|
+
.devices('THXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
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: 'get',
|
22
|
-
url: 'https://preview.twilio.com/DeployedDevices/Fleets/
|
22
|
+
url: 'https://preview.twilio.com/DeployedDevices/Fleets/FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Devices/THXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
23
23
|
))).to eq(true)
|
24
24
|
end
|
25
25
|
|
@@ -44,8 +44,8 @@ describe 'Device' do
|
|
44
44
|
]
|
45
45
|
))
|
46
46
|
|
47
|
-
actual = @client.preview.deployed_devices.fleets('
|
48
|
-
.devices('
|
47
|
+
actual = @client.preview.deployed_devices.fleets('FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
48
|
+
.devices('THXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
49
49
|
|
50
50
|
expect(actual).to_not eq(nil)
|
51
51
|
end
|
@@ -54,15 +54,15 @@ describe 'Device' do
|
|
54
54
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
55
55
|
|
56
56
|
expect {
|
57
|
-
@client.preview.deployed_devices.fleets('
|
58
|
-
.devices('
|
57
|
+
@client.preview.deployed_devices.fleets('FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
58
|
+
.devices('THXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
59
59
|
}.to raise_exception(Twilio::REST::TwilioError)
|
60
60
|
|
61
61
|
values = {}
|
62
62
|
expect(
|
63
63
|
@holodeck.has_request?(Holodeck::Request.new(
|
64
64
|
method: 'delete',
|
65
|
-
url: 'https://preview.twilio.com/DeployedDevices/Fleets/
|
65
|
+
url: 'https://preview.twilio.com/DeployedDevices/Fleets/FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Devices/THXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
66
66
|
))).to eq(true)
|
67
67
|
end
|
68
68
|
|
@@ -72,8 +72,8 @@ describe 'Device' do
|
|
72
72
|
nil,
|
73
73
|
))
|
74
74
|
|
75
|
-
actual = @client.preview.deployed_devices.fleets('
|
76
|
-
.devices('
|
75
|
+
actual = @client.preview.deployed_devices.fleets('FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
76
|
+
.devices('THXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
77
77
|
|
78
78
|
expect(actual).to eq(true)
|
79
79
|
end
|
@@ -82,7 +82,7 @@ describe 'Device' do
|
|
82
82
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
83
83
|
|
84
84
|
expect {
|
85
|
-
@client.preview.deployed_devices.fleets('
|
85
|
+
@client.preview.deployed_devices.fleets('FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
86
86
|
.devices.create()
|
87
87
|
}.to raise_exception(Twilio::REST::TwilioError)
|
88
88
|
|
@@ -90,7 +90,7 @@ describe 'Device' do
|
|
90
90
|
expect(
|
91
91
|
@holodeck.has_request?(Holodeck::Request.new(
|
92
92
|
method: 'post',
|
93
|
-
url: 'https://preview.twilio.com/DeployedDevices/Fleets/
|
93
|
+
url: 'https://preview.twilio.com/DeployedDevices/Fleets/FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Devices',
|
94
94
|
))).to eq(true)
|
95
95
|
end
|
96
96
|
|
@@ -115,7 +115,7 @@ describe 'Device' do
|
|
115
115
|
]
|
116
116
|
))
|
117
117
|
|
118
|
-
actual = @client.preview.deployed_devices.fleets('
|
118
|
+
actual = @client.preview.deployed_devices.fleets('FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
119
119
|
.devices.create()
|
120
120
|
|
121
121
|
expect(actual).to_not eq(nil)
|
@@ -125,7 +125,7 @@ describe 'Device' do
|
|
125
125
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
126
126
|
|
127
127
|
expect {
|
128
|
-
@client.preview.deployed_devices.fleets('
|
128
|
+
@client.preview.deployed_devices.fleets('FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
129
129
|
.devices.list()
|
130
130
|
}.to raise_exception(Twilio::REST::TwilioError)
|
131
131
|
|
@@ -133,7 +133,7 @@ describe 'Device' do
|
|
133
133
|
expect(
|
134
134
|
@holodeck.has_request?(Holodeck::Request.new(
|
135
135
|
method: 'get',
|
136
|
-
url: 'https://preview.twilio.com/DeployedDevices/Fleets/
|
136
|
+
url: 'https://preview.twilio.com/DeployedDevices/Fleets/FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Devices',
|
137
137
|
))).to eq(true)
|
138
138
|
end
|
139
139
|
|
@@ -156,7 +156,7 @@ describe 'Device' do
|
|
156
156
|
]
|
157
157
|
))
|
158
158
|
|
159
|
-
actual = @client.preview.deployed_devices.fleets('
|
159
|
+
actual = @client.preview.deployed_devices.fleets('FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
160
160
|
.devices.list()
|
161
161
|
|
162
162
|
expect(actual).to_not eq(nil)
|
@@ -196,7 +196,7 @@ describe 'Device' do
|
|
196
196
|
]
|
197
197
|
))
|
198
198
|
|
199
|
-
actual = @client.preview.deployed_devices.fleets('
|
199
|
+
actual = @client.preview.deployed_devices.fleets('FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
200
200
|
.devices.list()
|
201
201
|
|
202
202
|
expect(actual).to_not eq(nil)
|
@@ -206,15 +206,15 @@ describe 'Device' do
|
|
206
206
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
207
207
|
|
208
208
|
expect {
|
209
|
-
@client.preview.deployed_devices.fleets('
|
210
|
-
.devices('
|
209
|
+
@client.preview.deployed_devices.fleets('FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
210
|
+
.devices('THXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
211
211
|
}.to raise_exception(Twilio::REST::TwilioError)
|
212
212
|
|
213
213
|
values = {}
|
214
214
|
expect(
|
215
215
|
@holodeck.has_request?(Holodeck::Request.new(
|
216
216
|
method: 'post',
|
217
|
-
url: 'https://preview.twilio.com/DeployedDevices/Fleets/
|
217
|
+
url: 'https://preview.twilio.com/DeployedDevices/Fleets/FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Devices/THXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
218
218
|
))).to eq(true)
|
219
219
|
end
|
220
220
|
|
@@ -239,8 +239,8 @@ describe 'Device' do
|
|
239
239
|
]
|
240
240
|
))
|
241
241
|
|
242
|
-
actual = @client.preview.deployed_devices.fleets('
|
243
|
-
.devices('
|
242
|
+
actual = @client.preview.deployed_devices.fleets('FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
243
|
+
.devices('THXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
244
244
|
|
245
245
|
expect(actual).to_not eq(nil)
|
246
246
|
end
|
@@ -11,15 +11,15 @@ describe 'Key' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.preview.deployed_devices.fleets('
|
15
|
-
.keys('
|
14
|
+
@client.preview.deployed_devices.fleets('FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
15
|
+
.keys('KYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
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: 'get',
|
22
|
-
url: 'https://preview.twilio.com/DeployedDevices/Fleets/
|
22
|
+
url: 'https://preview.twilio.com/DeployedDevices/Fleets/FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Keys/KYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
23
23
|
))).to eq(true)
|
24
24
|
end
|
25
25
|
|
@@ -41,8 +41,8 @@ describe 'Key' do
|
|
41
41
|
]
|
42
42
|
))
|
43
43
|
|
44
|
-
actual = @client.preview.deployed_devices.fleets('
|
45
|
-
.keys('
|
44
|
+
actual = @client.preview.deployed_devices.fleets('FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
45
|
+
.keys('KYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
46
46
|
|
47
47
|
expect(actual).to_not eq(nil)
|
48
48
|
end
|
@@ -51,15 +51,15 @@ describe 'Key' do
|
|
51
51
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
52
52
|
|
53
53
|
expect {
|
54
|
-
@client.preview.deployed_devices.fleets('
|
55
|
-
.keys('
|
54
|
+
@client.preview.deployed_devices.fleets('FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
55
|
+
.keys('KYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
56
56
|
}.to raise_exception(Twilio::REST::TwilioError)
|
57
57
|
|
58
58
|
values = {}
|
59
59
|
expect(
|
60
60
|
@holodeck.has_request?(Holodeck::Request.new(
|
61
61
|
method: 'delete',
|
62
|
-
url: 'https://preview.twilio.com/DeployedDevices/Fleets/
|
62
|
+
url: 'https://preview.twilio.com/DeployedDevices/Fleets/FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Keys/KYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
63
63
|
))).to eq(true)
|
64
64
|
end
|
65
65
|
|
@@ -69,8 +69,8 @@ describe 'Key' do
|
|
69
69
|
nil,
|
70
70
|
))
|
71
71
|
|
72
|
-
actual = @client.preview.deployed_devices.fleets('
|
73
|
-
.keys('
|
72
|
+
actual = @client.preview.deployed_devices.fleets('FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
73
|
+
.keys('KYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
74
74
|
|
75
75
|
expect(actual).to eq(true)
|
76
76
|
end
|
@@ -79,7 +79,7 @@ describe 'Key' do
|
|
79
79
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
80
80
|
|
81
81
|
expect {
|
82
|
-
@client.preview.deployed_devices.fleets('
|
82
|
+
@client.preview.deployed_devices.fleets('FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
83
83
|
.keys.create()
|
84
84
|
}.to raise_exception(Twilio::REST::TwilioError)
|
85
85
|
|
@@ -87,7 +87,7 @@ describe 'Key' do
|
|
87
87
|
expect(
|
88
88
|
@holodeck.has_request?(Holodeck::Request.new(
|
89
89
|
method: 'post',
|
90
|
-
url: 'https://preview.twilio.com/DeployedDevices/Fleets/
|
90
|
+
url: 'https://preview.twilio.com/DeployedDevices/Fleets/FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Keys',
|
91
91
|
))).to eq(true)
|
92
92
|
end
|
93
93
|
|
@@ -109,7 +109,7 @@ describe 'Key' do
|
|
109
109
|
]
|
110
110
|
))
|
111
111
|
|
112
|
-
actual = @client.preview.deployed_devices.fleets('
|
112
|
+
actual = @client.preview.deployed_devices.fleets('FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
113
113
|
.keys.create()
|
114
114
|
|
115
115
|
expect(actual).to_not eq(nil)
|
@@ -119,7 +119,7 @@ describe 'Key' do
|
|
119
119
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
120
120
|
|
121
121
|
expect {
|
122
|
-
@client.preview.deployed_devices.fleets('
|
122
|
+
@client.preview.deployed_devices.fleets('FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
123
123
|
.keys.list()
|
124
124
|
}.to raise_exception(Twilio::REST::TwilioError)
|
125
125
|
|
@@ -127,7 +127,7 @@ describe 'Key' do
|
|
127
127
|
expect(
|
128
128
|
@holodeck.has_request?(Holodeck::Request.new(
|
129
129
|
method: 'get',
|
130
|
-
url: 'https://preview.twilio.com/DeployedDevices/Fleets/
|
130
|
+
url: 'https://preview.twilio.com/DeployedDevices/Fleets/FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Keys',
|
131
131
|
))).to eq(true)
|
132
132
|
end
|
133
133
|
|
@@ -150,7 +150,7 @@ describe 'Key' do
|
|
150
150
|
]
|
151
151
|
))
|
152
152
|
|
153
|
-
actual = @client.preview.deployed_devices.fleets('
|
153
|
+
actual = @client.preview.deployed_devices.fleets('FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
154
154
|
.keys.list()
|
155
155
|
|
156
156
|
expect(actual).to_not eq(nil)
|
@@ -187,7 +187,7 @@ describe 'Key' do
|
|
187
187
|
]
|
188
188
|
))
|
189
189
|
|
190
|
-
actual = @client.preview.deployed_devices.fleets('
|
190
|
+
actual = @client.preview.deployed_devices.fleets('FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
191
191
|
.keys.list()
|
192
192
|
|
193
193
|
expect(actual).to_not eq(nil)
|
@@ -197,15 +197,15 @@ describe 'Key' do
|
|
197
197
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
198
198
|
|
199
199
|
expect {
|
200
|
-
@client.preview.deployed_devices.fleets('
|
201
|
-
.keys('
|
200
|
+
@client.preview.deployed_devices.fleets('FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
201
|
+
.keys('KYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
202
202
|
}.to raise_exception(Twilio::REST::TwilioError)
|
203
203
|
|
204
204
|
values = {}
|
205
205
|
expect(
|
206
206
|
@holodeck.has_request?(Holodeck::Request.new(
|
207
207
|
method: 'post',
|
208
|
-
url: 'https://preview.twilio.com/DeployedDevices/Fleets/
|
208
|
+
url: 'https://preview.twilio.com/DeployedDevices/Fleets/FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Keys/KYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
209
209
|
))).to eq(true)
|
210
210
|
end
|
211
211
|
|
@@ -227,8 +227,8 @@ describe 'Key' do
|
|
227
227
|
]
|
228
228
|
))
|
229
229
|
|
230
|
-
actual = @client.preview.deployed_devices.fleets('
|
231
|
-
.keys('
|
230
|
+
actual = @client.preview.deployed_devices.fleets('FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
231
|
+
.keys('KYXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
232
232
|
|
233
233
|
expect(actual).to_not eq(nil)
|
234
234
|
end
|
@@ -11,14 +11,14 @@ describe 'Fleet' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.preview.deployed_devices.fleets('
|
14
|
+
@client.preview.deployed_devices.fleets('FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
15
15
|
}.to raise_exception(Twilio::REST::TwilioError)
|
16
16
|
|
17
17
|
values = {}
|
18
18
|
expect(
|
19
19
|
@holodeck.has_request?(Holodeck::Request.new(
|
20
20
|
method: 'get',
|
21
|
-
url: 'https://preview.twilio.com/DeployedDevices/Fleets/
|
21
|
+
url: 'https://preview.twilio.com/DeployedDevices/Fleets/FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
22
22
|
))).to eq(true)
|
23
23
|
end
|
24
24
|
|
@@ -45,7 +45,7 @@ describe 'Fleet' do
|
|
45
45
|
]
|
46
46
|
))
|
47
47
|
|
48
|
-
actual = @client.preview.deployed_devices.fleets('
|
48
|
+
actual = @client.preview.deployed_devices.fleets('FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
49
49
|
|
50
50
|
expect(actual).to_not eq(nil)
|
51
51
|
end
|
@@ -54,14 +54,14 @@ describe 'Fleet' do
|
|
54
54
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
55
55
|
|
56
56
|
expect {
|
57
|
-
@client.preview.deployed_devices.fleets('
|
57
|
+
@client.preview.deployed_devices.fleets('FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
58
58
|
}.to raise_exception(Twilio::REST::TwilioError)
|
59
59
|
|
60
60
|
values = {}
|
61
61
|
expect(
|
62
62
|
@holodeck.has_request?(Holodeck::Request.new(
|
63
63
|
method: 'delete',
|
64
|
-
url: 'https://preview.twilio.com/DeployedDevices/Fleets/
|
64
|
+
url: 'https://preview.twilio.com/DeployedDevices/Fleets/FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
65
65
|
))).to eq(true)
|
66
66
|
end
|
67
67
|
|
@@ -71,7 +71,7 @@ describe 'Fleet' do
|
|
71
71
|
nil,
|
72
72
|
))
|
73
73
|
|
74
|
-
actual = @client.preview.deployed_devices.fleets('
|
74
|
+
actual = @client.preview.deployed_devices.fleets('FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
|
75
75
|
|
76
76
|
expect(actual).to eq(true)
|
77
77
|
end
|
@@ -203,14 +203,14 @@ describe 'Fleet' do
|
|
203
203
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
204
204
|
|
205
205
|
expect {
|
206
|
-
@client.preview.deployed_devices.fleets('
|
206
|
+
@client.preview.deployed_devices.fleets('FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
207
207
|
}.to raise_exception(Twilio::REST::TwilioError)
|
208
208
|
|
209
209
|
values = {}
|
210
210
|
expect(
|
211
211
|
@holodeck.has_request?(Holodeck::Request.new(
|
212
212
|
method: 'post',
|
213
|
-
url: 'https://preview.twilio.com/DeployedDevices/Fleets/
|
213
|
+
url: 'https://preview.twilio.com/DeployedDevices/Fleets/FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
214
214
|
))).to eq(true)
|
215
215
|
end
|
216
216
|
|
@@ -237,7 +237,7 @@ describe 'Fleet' do
|
|
237
237
|
]
|
238
238
|
))
|
239
239
|
|
240
|
-
actual = @client.preview.deployed_devices.fleets('
|
240
|
+
actual = @client.preview.deployed_devices.fleets('FLXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
241
241
|
|
242
242
|
expect(actual).to_not eq(nil)
|
243
243
|
end
|
@@ -11,7 +11,7 @@ describe 'DependentHostedNumberOrder' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.preview.hosted_numbers.authorization_documents('
|
14
|
+
@client.preview.hosted_numbers.authorization_documents('PXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
15
15
|
.dependent_hosted_number_orders.list()
|
16
16
|
}.to raise_exception(Twilio::REST::TwilioError)
|
17
17
|
|
@@ -19,7 +19,7 @@ describe 'DependentHostedNumberOrder' do
|
|
19
19
|
expect(
|
20
20
|
@holodeck.has_request?(Holodeck::Request.new(
|
21
21
|
method: 'get',
|
22
|
-
url: 'https://preview.twilio.com/HostedNumbers/AuthorizationDocuments/
|
22
|
+
url: 'https://preview.twilio.com/HostedNumbers/AuthorizationDocuments/PXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/DependentHostedNumberOrders',
|
23
23
|
))).to eq(true)
|
24
24
|
end
|
25
25
|
|
@@ -42,7 +42,7 @@ describe 'DependentHostedNumberOrder' do
|
|
42
42
|
]
|
43
43
|
))
|
44
44
|
|
45
|
-
actual = @client.preview.hosted_numbers.authorization_documents('
|
45
|
+
actual = @client.preview.hosted_numbers.authorization_documents('PXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
46
46
|
.dependent_hosted_number_orders.list()
|
47
47
|
|
48
48
|
expect(actual).to_not eq(nil)
|
@@ -101,7 +101,7 @@ describe 'DependentHostedNumberOrder' do
|
|
101
101
|
]
|
102
102
|
))
|
103
103
|
|
104
|
-
actual = @client.preview.hosted_numbers.authorization_documents('
|
104
|
+
actual = @client.preview.hosted_numbers.authorization_documents('PXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
|
105
105
|
.dependent_hosted_number_orders.list()
|
106
106
|
|
107
107
|
expect(actual).to_not eq(nil)
|
@@ -11,14 +11,14 @@ describe 'AuthorizationDocument' do
|
|
11
11
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
12
12
|
|
13
13
|
expect {
|
14
|
-
@client.preview.hosted_numbers.authorization_documents('
|
14
|
+
@client.preview.hosted_numbers.authorization_documents('PXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
15
15
|
}.to raise_exception(Twilio::REST::TwilioError)
|
16
16
|
|
17
17
|
values = {}
|
18
18
|
expect(
|
19
19
|
@holodeck.has_request?(Holodeck::Request.new(
|
20
20
|
method: 'get',
|
21
|
-
url: 'https://preview.twilio.com/HostedNumbers/AuthorizationDocuments/
|
21
|
+
url: 'https://preview.twilio.com/HostedNumbers/AuthorizationDocuments/PXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
22
22
|
))).to eq(true)
|
23
23
|
end
|
24
24
|
|
@@ -45,7 +45,7 @@ describe 'AuthorizationDocument' do
|
|
45
45
|
]
|
46
46
|
))
|
47
47
|
|
48
|
-
actual = @client.preview.hosted_numbers.authorization_documents('
|
48
|
+
actual = @client.preview.hosted_numbers.authorization_documents('PXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
|
49
49
|
|
50
50
|
expect(actual).to_not eq(nil)
|
51
51
|
end
|
@@ -54,14 +54,14 @@ describe 'AuthorizationDocument' do
|
|
54
54
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
55
55
|
|
56
56
|
expect {
|
57
|
-
@client.preview.hosted_numbers.authorization_documents('
|
57
|
+
@client.preview.hosted_numbers.authorization_documents('PXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
58
58
|
}.to raise_exception(Twilio::REST::TwilioError)
|
59
59
|
|
60
60
|
values = {}
|
61
61
|
expect(
|
62
62
|
@holodeck.has_request?(Holodeck::Request.new(
|
63
63
|
method: 'post',
|
64
|
-
url: 'https://preview.twilio.com/HostedNumbers/AuthorizationDocuments/
|
64
|
+
url: 'https://preview.twilio.com/HostedNumbers/AuthorizationDocuments/PXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
65
65
|
))).to eq(true)
|
66
66
|
end
|
67
67
|
|
@@ -88,7 +88,7 @@ describe 'AuthorizationDocument' do
|
|
88
88
|
]
|
89
89
|
))
|
90
90
|
|
91
|
-
actual = @client.preview.hosted_numbers.authorization_documents('
|
91
|
+
actual = @client.preview.hosted_numbers.authorization_documents('PXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
|
92
92
|
|
93
93
|
expect(actual).to_not eq(nil)
|
94
94
|
end
|
@@ -177,12 +177,12 @@ describe 'AuthorizationDocument' do
|
|
177
177
|
@holodeck.mock(Twilio::Response.new(500, ''))
|
178
178
|
|
179
179
|
expect {
|
180
|
-
@client.preview.hosted_numbers.authorization_documents.create(hosted_number_order_sids: ['hosted_number_order_sids'], address_sid: '
|
180
|
+
@client.preview.hosted_numbers.authorization_documents.create(hosted_number_order_sids: ['hosted_number_order_sids'], address_sid: 'ADXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', email: 'email')
|
181
181
|
}.to raise_exception(Twilio::REST::TwilioError)
|
182
182
|
|
183
183
|
values = {
|
184
184
|
'HostedNumberOrderSids' => Twilio.serialize_list(['hosted_number_order_sids']) { |e| e },
|
185
|
-
'AddressSid' => '
|
185
|
+
'AddressSid' => 'ADXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
|
186
186
|
'Email' => 'email',
|
187
187
|
}
|
188
188
|
expect(
|
@@ -216,7 +216,7 @@ describe 'AuthorizationDocument' do
|
|
216
216
|
]
|
217
217
|
))
|
218
218
|
|
219
|
-
actual = @client.preview.hosted_numbers.authorization_documents.create(hosted_number_order_sids: ['hosted_number_order_sids'], address_sid: '
|
219
|
+
actual = @client.preview.hosted_numbers.authorization_documents.create(hosted_number_order_sids: ['hosted_number_order_sids'], address_sid: 'ADXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', email: 'email')
|
220
220
|
|
221
221
|
expect(actual).to_not eq(nil)
|
222
222
|
end
|