bandwidth-sdk 10.3.0 → 11.0.0.pre.beta.1.1
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/Gemfile +9 -0
- data/Gemfile.lock +76 -0
- data/README.md +197 -139
- data/Rakefile +22 -0
- data/bandwidth-sdk.gemspec +40 -0
- data/bandwidth.yml +5551 -0
- data/docs/AccountStatistics.md +20 -0
- data/docs/AnswerCallback.md +44 -0
- data/docs/BridgeCompleteCallback.md +48 -0
- data/docs/BridgeTargetCompleteCallback.md +42 -0
- data/docs/CallDirectionEnum.md +15 -0
- data/docs/CallRecordingMetadata.md +52 -0
- data/docs/CallState.md +52 -0
- data/docs/CallStateEnum.md +15 -0
- data/docs/CallbackMethodEnum.md +15 -0
- data/docs/CallsApi.md +304 -0
- data/docs/CodeRequest.md +28 -0
- data/docs/Conference.md +32 -0
- data/docs/ConferenceCompletedCallback.md +26 -0
- data/docs/ConferenceCreatedCallback.md +26 -0
- data/docs/ConferenceMember.md +28 -0
- data/docs/ConferenceMemberExitCallback.md +32 -0
- data/docs/ConferenceMemberJoinCallback.md +32 -0
- data/docs/ConferenceRecordingAvailableCallback.md +44 -0
- data/docs/ConferenceRecordingMetadata.md +38 -0
- data/docs/ConferenceRedirectCallback.md +26 -0
- data/docs/ConferenceStateEnum.md +15 -0
- data/docs/ConferencesApi.md +688 -0
- data/docs/CreateCall.md +54 -0
- data/docs/CreateCallResponse.md +58 -0
- data/docs/CreateLookupResponse.md +20 -0
- data/docs/CreateMessageRequestError.md +22 -0
- data/docs/CreateParticipantRequest.md +24 -0
- data/docs/CreateParticipantResponse.md +20 -0
- data/docs/DeferredResult.md +20 -0
- data/docs/DeviceApiVersionEnum.md +15 -0
- data/docs/DisconenctCallback.md +50 -0
- data/docs/DisconnectCallback.md +50 -0
- data/docs/Diversion.md +30 -0
- data/docs/DtmfCallback.md +50 -0
- data/docs/FieldError.md +20 -0
- data/docs/FileFormatEnum.md +15 -0
- data/docs/ForbiddenRequest.md +18 -0
- data/docs/GatherCallback.md +52 -0
- data/docs/InboundMessageCallback.md +26 -0
- data/docs/InboundMessageCallbackMessage.md +40 -0
- data/docs/InitiateCallback.md +40 -0
- data/docs/ListMessageDirectionEnum.md +15 -0
- data/docs/ListMessageItem.md +48 -0
- data/docs/LookupRequest.md +18 -0
- data/docs/LookupResult.md +34 -0
- data/docs/LookupStatus.md +24 -0
- data/docs/LookupStatusEnum.md +15 -0
- data/docs/MFAApi.md +226 -0
- data/docs/MachineDetectionCompleteCallback.md +44 -0
- data/docs/MachineDetectionConfiguration.md +46 -0
- data/docs/MachineDetectionModeEnum.md +15 -0
- data/docs/Media.md +22 -0
- data/docs/MediaApi.md +307 -0
- data/docs/Message.md +42 -0
- data/docs/MessageDeliveredCallback.md +26 -0
- data/docs/MessageDeliveredCallbackMessage.md +40 -0
- data/docs/MessageDirectionEnum.md +15 -0
- data/docs/MessageFailedCallback.md +28 -0
- data/docs/MessageFailedCallbackMessage.md +40 -0
- data/docs/MessageRequest.md +32 -0
- data/docs/MessageSendingCallback.md +26 -0
- data/docs/MessageSendingCallbackMessage.md +40 -0
- data/docs/MessageStatusEnum.md +15 -0
- data/docs/MessageTypeEnum.md +15 -0
- data/docs/MessagesApi.md +179 -0
- data/docs/MessagesList.md +22 -0
- data/docs/MessagingCodeResponse.md +18 -0
- data/docs/MessagingRequestError.md +20 -0
- data/docs/MfaForbiddenRequestError.md +18 -0
- data/docs/MfaRequestError.md +20 -0
- data/docs/MfaUnauthorizedRequestError.md +18 -0
- data/docs/PageInfo.md +24 -0
- data/docs/Participant.md +30 -0
- data/docs/ParticipantSubscription.md +20 -0
- data/docs/ParticipantsApi.md +227 -0
- data/docs/PhoneNumberLookupApi.md +153 -0
- data/docs/PriorityEnum.md +15 -0
- data/docs/PublishPermissionsEnum.md +15 -0
- data/docs/RecordingAvailableCallback.md +60 -0
- data/docs/RecordingCompleteCallback.md +60 -0
- data/docs/RecordingStateEnum.md +15 -0
- data/docs/RecordingsApi.md +758 -0
- data/docs/RedirectCallback.md +48 -0
- data/docs/RedirectMethodEnum.md +15 -0
- data/docs/RequestError.md +20 -0
- data/docs/Session.md +20 -0
- data/docs/SessionsApi.md +605 -0
- data/docs/StatisticsApi.md +78 -0
- data/docs/StirShaken.md +22 -0
- data/docs/Subscriptions.md +20 -0
- data/docs/Tag.md +20 -0
- data/docs/TnLookupRequestError.md +18 -0
- data/docs/TranscribeRecording.md +28 -0
- data/docs/Transcription.md +20 -0
- data/docs/TranscriptionAvailableCallback.md +58 -0
- data/docs/TranscriptionList.md +18 -0
- data/docs/TranscriptionMetadata.md +24 -0
- data/docs/TransferAnswerCallback.md +46 -0
- data/docs/TransferCompleteCallback.md +52 -0
- data/docs/TransferDisconnectCallback.md +56 -0
- data/docs/UnauthorizedRequest.md +18 -0
- data/docs/UpdateCall.md +36 -0
- data/docs/UpdateCallRecording.md +18 -0
- data/docs/UpdateConference.md +34 -0
- data/docs/UpdateConferenceMember.md +22 -0
- data/docs/VerifyCodeRequest.md +24 -0
- data/docs/VerifyCodeResponse.md +18 -0
- data/docs/VoiceApiError.md +22 -0
- data/docs/VoiceCodeResponse.md +18 -0
- data/git_push.sh +57 -0
- data/lib/bandwidth-sdk/api/calls_api.rb +325 -0
- data/lib/bandwidth-sdk/api/conferences_api.rb +717 -0
- data/lib/bandwidth-sdk/api/media_api.rb +312 -0
- data/lib/bandwidth-sdk/api/messages_api.rb +198 -0
- data/lib/bandwidth-sdk/api/mfa_api.rb +244 -0
- data/lib/bandwidth-sdk/api/phone_number_lookup_api.rb +165 -0
- data/lib/bandwidth-sdk/api/recordings_api.rb +782 -0
- data/lib/bandwidth-sdk/api/statistics_api.rb +85 -0
- data/lib/bandwidth-sdk/api_client.rb +428 -0
- data/lib/bandwidth-sdk/api_error.rb +58 -0
- data/lib/bandwidth-sdk/configuration.rb +589 -0
- data/lib/bandwidth-sdk/models/account_statistics.rb +230 -0
- data/lib/bandwidth-sdk/models/answer_callback.rb +376 -0
- data/lib/bandwidth-sdk/models/bridge_complete_callback.rb +397 -0
- data/lib/bandwidth-sdk/models/bridge_target_complete_callback.rb +365 -0
- data/lib/bandwidth-sdk/models/bxml/bxml.rb +13 -0
- data/lib/bandwidth-sdk/models/bxml/nestable_verb.rb +50 -0
- data/lib/bandwidth-sdk/models/bxml/response.rb +13 -0
- data/lib/bandwidth-sdk/models/bxml/root.rb +47 -0
- data/lib/bandwidth-sdk/models/bxml/verb.rb +51 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/bridge.rb +30 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/conference.rb +31 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/forward.rb +22 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/gather.rb +44 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/hangup.rb +12 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/pause.rb +17 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/pause_recording.rb +12 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/phone_number.rb +28 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/play_audio.rb +19 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/record.rb +34 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/redirect.rb +25 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/resume_recording.rb +12 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/ring.rb +18 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/send_dtmf.rb +19 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/sip_uri.rb +29 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/speak_sentence.rb +27 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/start_gather.rb +21 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/start_recording.rb +26 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/start_stream.rb +30 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/stop_gather.rb +12 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/stop_recording.rb +12 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/stop_stream.rb +17 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/stream_param.rb +18 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/tag.rb +13 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/transfer.rb +36 -0
- data/lib/bandwidth-sdk/models/call_direction_enum.rb +40 -0
- data/lib/bandwidth-sdk/models/call_recording_metadata.rb +411 -0
- data/lib/bandwidth-sdk/models/call_state.rb +423 -0
- data/lib/bandwidth-sdk/models/call_state_enum.rb +40 -0
- data/lib/bandwidth-sdk/models/callback_method_enum.rb +40 -0
- data/lib/bandwidth-sdk/models/code_request.rb +427 -0
- data/lib/bandwidth-sdk/models/conference.rb +320 -0
- data/lib/bandwidth-sdk/models/conference_completed_callback.rb +262 -0
- data/lib/bandwidth-sdk/models/conference_created_callback.rb +262 -0
- data/lib/bandwidth-sdk/models/conference_member.rb +273 -0
- data/lib/bandwidth-sdk/models/conference_member_exit_callback.rb +292 -0
- data/lib/bandwidth-sdk/models/conference_member_join_callback.rb +292 -0
- data/lib/bandwidth-sdk/models/conference_recording_available_callback.rb +374 -0
- data/lib/bandwidth-sdk/models/conference_recording_metadata.rb +342 -0
- data/lib/bandwidth-sdk/models/conference_redirect_callback.rb +262 -0
- data/lib/bandwidth-sdk/models/conference_state_enum.rb +40 -0
- data/lib/bandwidth-sdk/models/create_call.rb +651 -0
- data/lib/bandwidth-sdk/models/create_call_response.rb +552 -0
- data/lib/bandwidth-sdk/models/create_lookup_response.rb +252 -0
- data/lib/bandwidth-sdk/models/create_message_request_error.rb +249 -0
- data/lib/bandwidth-sdk/models/deferred_result.rb +228 -0
- data/lib/bandwidth-sdk/models/disconenct_callback.rb +407 -0
- data/lib/bandwidth-sdk/models/disconnect_callback.rb +407 -0
- data/lib/bandwidth-sdk/models/diversion.rb +280 -0
- data/lib/bandwidth-sdk/models/dtmf_callback.rb +405 -0
- data/lib/bandwidth-sdk/models/field_error.rb +230 -0
- data/lib/bandwidth-sdk/models/file_format_enum.rb +40 -0
- data/lib/bandwidth-sdk/models/gather_callback.rb +415 -0
- data/lib/bandwidth-sdk/models/inbound_message_callback.rb +281 -0
- data/lib/bandwidth-sdk/models/inbound_message_callback_message.rb +399 -0
- data/lib/bandwidth-sdk/models/initiate_callback.rb +350 -0
- data/lib/bandwidth-sdk/models/list_message_direction_enum.rb +40 -0
- data/lib/bandwidth-sdk/models/list_message_item.rb +394 -0
- data/lib/bandwidth-sdk/models/lookup_request.rb +227 -0
- data/lib/bandwidth-sdk/models/lookup_result.rb +301 -0
- data/lib/bandwidth-sdk/models/lookup_status.rb +276 -0
- data/lib/bandwidth-sdk/models/lookup_status_enum.rb +42 -0
- data/lib/bandwidth-sdk/models/machine_detection_complete_callback.rb +376 -0
- data/lib/bandwidth-sdk/models/machine_detection_configuration.rb +500 -0
- data/lib/bandwidth-sdk/models/machine_detection_mode_enum.rb +40 -0
- data/lib/bandwidth-sdk/models/media.rb +237 -0
- data/lib/bandwidth-sdk/models/message.rb +376 -0
- data/lib/bandwidth-sdk/models/message_delivered_callback.rb +281 -0
- data/lib/bandwidth-sdk/models/message_delivered_callback_message.rb +404 -0
- data/lib/bandwidth-sdk/models/message_direction_enum.rb +40 -0
- data/lib/bandwidth-sdk/models/message_failed_callback.rb +295 -0
- data/lib/bandwidth-sdk/models/message_failed_callback_message.rb +409 -0
- data/lib/bandwidth-sdk/models/message_request.rb +355 -0
- data/lib/bandwidth-sdk/models/message_sending_callback.rb +281 -0
- data/lib/bandwidth-sdk/models/message_sending_callback_message.rb +409 -0
- data/lib/bandwidth-sdk/models/message_status_enum.rb +46 -0
- data/lib/bandwidth-sdk/models/message_type_enum.rb +40 -0
- data/lib/bandwidth-sdk/models/messages_list.rb +240 -0
- data/lib/bandwidth-sdk/models/messaging_code_response.rb +220 -0
- data/lib/bandwidth-sdk/models/messaging_request_error.rb +238 -0
- data/lib/bandwidth-sdk/models/mfa_forbidden_request_error.rb +220 -0
- data/lib/bandwidth-sdk/models/mfa_request_error.rb +230 -0
- data/lib/bandwidth-sdk/models/mfa_unauthorized_request_error.rb +220 -0
- data/lib/bandwidth-sdk/models/page_info.rb +250 -0
- data/lib/bandwidth-sdk/models/priority_enum.rb +40 -0
- data/lib/bandwidth-sdk/models/recording_available_callback.rb +454 -0
- data/lib/bandwidth-sdk/models/recording_complete_callback.rb +455 -0
- data/lib/bandwidth-sdk/models/recording_state_enum.rb +40 -0
- data/lib/bandwidth-sdk/models/redirect_callback.rb +395 -0
- data/lib/bandwidth-sdk/models/redirect_method_enum.rb +40 -0
- data/lib/bandwidth-sdk/models/stir_shaken.rb +240 -0
- data/lib/bandwidth-sdk/models/tag.rb +228 -0
- data/lib/bandwidth-sdk/models/tn_lookup_request_error.rb +220 -0
- data/lib/bandwidth-sdk/models/transcribe_recording.rb +354 -0
- data/lib/bandwidth-sdk/models/transcription.rb +230 -0
- data/lib/bandwidth-sdk/models/transcription_available_callback.rb +443 -0
- data/lib/bandwidth-sdk/models/transcription_list.rb +221 -0
- data/lib/bandwidth-sdk/models/transcription_metadata.rb +251 -0
- data/lib/bandwidth-sdk/models/transfer_answer_callback.rb +385 -0
- data/lib/bandwidth-sdk/models/transfer_complete_callback.rb +417 -0
- data/lib/bandwidth-sdk/models/transfer_disconnect_callback.rb +437 -0
- data/lib/bandwidth-sdk/models/update_call.rb +411 -0
- data/lib/bandwidth-sdk/models/update_call_recording.rb +246 -0
- data/lib/bandwidth-sdk/models/update_conference.rb +394 -0
- data/lib/bandwidth-sdk/models/update_conference_member.rb +243 -0
- data/lib/bandwidth-sdk/models/verify_code_request.rb +342 -0
- data/lib/bandwidth-sdk/models/verify_code_response.rb +220 -0
- data/lib/bandwidth-sdk/models/voice_api_error.rb +238 -0
- data/lib/bandwidth-sdk/models/voice_code_response.rb +220 -0
- data/lib/bandwidth-sdk/version.rb +15 -0
- data/lib/bandwidth-sdk.rb +166 -0
- data/openapi-config.yml +11 -0
- data/ruby-notes.md +15 -0
- data/spec/call_utils.rb +74 -0
- data/spec/fixtures/ruby_cat.jpeg +0 -0
- data/spec/integration/calls_api_integration_spec.rb +181 -0
- data/spec/integration/conferences_api_integration_spec.rb +163 -0
- data/spec/integration/media_api_integration_spec.rb +86 -0
- data/spec/integration/messages_api_integration_spec.rb +125 -0
- data/spec/integration/mfa_api_integration_spec.rb +109 -0
- data/spec/integration/phone_number_lookup_api_integration_spec.rb +92 -0
- data/spec/integration/recordings_api_integration_spec.rb +219 -0
- data/spec/integration/statistics_api_integration_spec.rb +57 -0
- data/spec/spec_helper.rb +154 -0
- data/spec/unit/api/calls_api_spec.rb +89 -0
- data/spec/unit/api/conferences_api_spec.rb +163 -0
- data/spec/unit/api/media_api_spec.rb +90 -0
- data/spec/unit/api/messages_api_spec.rb +73 -0
- data/spec/unit/api/mfa_api_spec.rb +74 -0
- data/spec/unit/api/phone_number_lookup_api_spec.rb +61 -0
- data/spec/unit/api/recordings_api_spec.rb +177 -0
- data/spec/unit/api/statistics_api_spec.rb +47 -0
- data/spec/unit/models/account_statistics_spec.rb +40 -0
- data/spec/unit/models/answer_callback_spec.rb +112 -0
- data/spec/unit/models/bridge_complete_callback_spec.rb +124 -0
- data/spec/unit/models/bridge_target_complete_callback_spec.rb +106 -0
- data/spec/unit/models/bxml/bxml_spec.rb +18 -0
- data/spec/unit/models/bxml/nestable_verb_spec.rb +13 -0
- data/spec/unit/models/bxml/response_spec.rb +18 -0
- data/spec/unit/models/bxml/verb_spec.rb +28 -0
- data/spec/unit/models/bxml/verbs/bridge_spec.rb +60 -0
- data/spec/unit/models/bxml/verbs/conference_spec.rb +60 -0
- data/spec/unit/models/bxml/verbs/forward_spec.rb +46 -0
- data/spec/unit/models/bxml/verbs/gather_spec.rb +88 -0
- data/spec/unit/models/bxml/verbs/hangup_spec.rb +18 -0
- data/spec/unit/models/bxml/verbs/pause_recording_spec.rb +18 -0
- data/spec/unit/models/bxml/verbs/pause_spec.rb +36 -0
- data/spec/unit/models/bxml/verbs/phone_number_spec.rb +56 -0
- data/spec/unit/models/bxml/verbs/play_audio_spec.rb +38 -0
- data/spec/unit/models/bxml/verbs/record_spec.rb +70 -0
- data/spec/unit/models/bxml/verbs/redirect_spec.rb +52 -0
- data/spec/unit/models/bxml/verbs/resume_recording_spec.rb +18 -0
- data/spec/unit/models/bxml/verbs/ring_spec.rb +38 -0
- data/spec/unit/models/bxml/verbs/send_dtmf_spec.rb +38 -0
- data/spec/unit/models/bxml/verbs/sip_uri_spec.rb +58 -0
- data/spec/unit/models/bxml/verbs/speak_sentence_spec.rb +40 -0
- data/spec/unit/models/bxml/verbs/start_gather_spec.rb +44 -0
- data/spec/unit/models/bxml/verbs/start_recording_spec.rb +54 -0
- data/spec/unit/models/bxml/verbs/start_stream_spec.rb +74 -0
- data/spec/unit/models/bxml/verbs/stop_gather_spec.rb +18 -0
- data/spec/unit/models/bxml/verbs/stop_recording_spec.rb +18 -0
- data/spec/unit/models/bxml/verbs/stop_stream_spec.rb +36 -0
- data/spec/unit/models/bxml/verbs/stream_param_spec.rb +38 -0
- data/spec/unit/models/bxml/verbs/tag_spec.rb +18 -0
- data/spec/unit/models/bxml/verbs/transfer_spec.rb +86 -0
- data/spec/unit/models/call_direction_enum_spec.rb +28 -0
- data/spec/unit/models/call_recording_metadata_spec.rb +136 -0
- data/spec/unit/models/call_state_enum_spec.rb +28 -0
- data/spec/unit/models/call_state_spec.rb +136 -0
- data/spec/unit/models/callback_method_enum_spec.rb +28 -0
- data/spec/unit/models/code_request_spec.rb +64 -0
- data/spec/unit/models/conference_completed_callback_spec.rb +58 -0
- data/spec/unit/models/conference_created_callback_spec.rb +58 -0
- data/spec/unit/models/conference_member_exit_callback_spec.rb +76 -0
- data/spec/unit/models/conference_member_join_callback_spec.rb +76 -0
- data/spec/unit/models/conference_member_spec.rb +64 -0
- data/spec/unit/models/conference_recording_available_callback_spec.rb +112 -0
- data/spec/unit/models/conference_recording_metadata_spec.rb +94 -0
- data/spec/unit/models/conference_redirect_callback_spec.rb +58 -0
- data/spec/unit/models/conference_spec.rb +76 -0
- data/spec/unit/models/conference_state_enum_spec.rb +28 -0
- data/spec/unit/models/create_call_response_spec.rb +154 -0
- data/spec/unit/models/create_call_spec.rb +142 -0
- data/spec/unit/models/create_lookup_response_spec.rb +40 -0
- data/spec/unit/models/create_message_request_error_spec.rb +46 -0
- data/spec/unit/models/deferred_result_spec.rb +40 -0
- data/spec/unit/models/disconnect_callback_spec.rb +130 -0
- data/spec/unit/models/diversion_spec.rb +70 -0
- data/spec/unit/models/dtmf_callback_spec.rb +130 -0
- data/spec/unit/models/field_error_spec.rb +40 -0
- data/spec/unit/models/file_format_enum_spec.rb +28 -0
- data/spec/unit/models/gather_callback_spec.rb +136 -0
- data/spec/unit/models/inbound_message_callback_message_spec.rb +100 -0
- data/spec/unit/models/inbound_message_callback_spec.rb +58 -0
- data/spec/unit/models/initiate_callback_spec.rb +100 -0
- data/spec/unit/models/list_message_direction_enum_spec.rb +28 -0
- data/spec/unit/models/list_message_item_spec.rb +124 -0
- data/spec/unit/models/lookup_request_spec.rb +34 -0
- data/spec/unit/models/lookup_result_spec.rb +82 -0
- data/spec/unit/models/lookup_status_enum_spec.rb +28 -0
- data/spec/unit/models/lookup_status_spec.rb +52 -0
- data/spec/unit/models/machine_detection_complete_callback_spec.rb +112 -0
- data/spec/unit/models/machine_detection_configuration_spec.rb +118 -0
- data/spec/unit/models/machine_detection_mode_enum_spec.rb +28 -0
- data/spec/unit/models/media_spec.rb +46 -0
- data/spec/unit/models/message_delivered_callback_message_spec.rb +100 -0
- data/spec/unit/models/message_delivered_callback_spec.rb +58 -0
- data/spec/unit/models/message_direction_enum_spec.rb +28 -0
- data/spec/unit/models/message_failed_callback_message_spec.rb +100 -0
- data/spec/unit/models/message_failed_callback_spec.rb +64 -0
- data/spec/unit/models/message_request_spec.rb +76 -0
- data/spec/unit/models/message_sending_callback_message_spec.rb +100 -0
- data/spec/unit/models/message_sending_callback_spec.rb +58 -0
- data/spec/unit/models/message_spec.rb +106 -0
- data/spec/unit/models/message_status_enum_spec.rb +28 -0
- data/spec/unit/models/message_type_enum_spec.rb +28 -0
- data/spec/unit/models/messages_list_spec.rb +46 -0
- data/spec/unit/models/messaging_code_response_spec.rb +34 -0
- data/spec/unit/models/messaging_request_error_spec.rb +40 -0
- data/spec/unit/models/mfa_forbidden_request_error_spec.rb +34 -0
- data/spec/unit/models/mfa_request_error_spec.rb +40 -0
- data/spec/unit/models/mfa_unauthorized_request_error_spec.rb +34 -0
- data/spec/unit/models/page_info_spec.rb +52 -0
- data/spec/unit/models/priority_enum_spec.rb +28 -0
- data/spec/unit/models/recording_available_callback_spec.rb +160 -0
- data/spec/unit/models/recording_complete_callback_spec.rb +160 -0
- data/spec/unit/models/recording_state_enum_spec.rb +28 -0
- data/spec/unit/models/redirect_callback_spec.rb +124 -0
- data/spec/unit/models/redirect_method_enum_spec.rb +28 -0
- data/spec/unit/models/stir_shaken_spec.rb +46 -0
- data/spec/unit/models/tag_spec.rb +40 -0
- data/spec/unit/models/tn_lookup_request_error_spec.rb +34 -0
- data/spec/unit/models/transcribe_recording_spec.rb +64 -0
- data/spec/unit/models/transcription_available_callback_spec.rb +154 -0
- data/spec/unit/models/transcription_list_spec.rb +34 -0
- data/spec/unit/models/transcription_metadata_spec.rb +52 -0
- data/spec/unit/models/transcription_spec.rb +40 -0
- data/spec/unit/models/transfer_answer_callback_spec.rb +118 -0
- data/spec/unit/models/transfer_complete_callback_spec.rb +136 -0
- data/spec/unit/models/transfer_disconnect_callback_spec.rb +148 -0
- data/spec/unit/models/update_call_recording_spec.rb +34 -0
- data/spec/unit/models/update_call_spec.rb +88 -0
- data/spec/unit/models/update_conference_member_spec.rb +46 -0
- data/spec/unit/models/update_conference_spec.rb +82 -0
- data/spec/unit/models/verify_code_request_spec.rb +52 -0
- data/spec/unit/models/verify_code_response_spec.rb +34 -0
- data/spec/unit/models/voice_api_error_spec.rb +46 -0
- data/spec/unit/models/voice_code_response_spec.rb +34 -0
- metadata +543 -248
- data/LICENSE +0 -28
- data/lib/bandwidth/api_helper.rb +0 -280
- data/lib/bandwidth/client.rb +0 -75
- data/lib/bandwidth/configuration.rb +0 -209
- data/lib/bandwidth/exceptions/api_exception.rb +0 -20
- data/lib/bandwidth/http/api_response.rb +0 -38
- data/lib/bandwidth/http/auth/messaging_basic_auth.rb +0 -22
- data/lib/bandwidth/http/auth/multi_factor_auth_basic_auth.rb +0 -22
- data/lib/bandwidth/http/auth/phone_number_lookup_basic_auth.rb +0 -22
- data/lib/bandwidth/http/auth/voice_basic_auth.rb +0 -22
- data/lib/bandwidth/http/auth/web_rtc_basic_auth.rb +0 -22
- data/lib/bandwidth/http/faraday_client.rb +0 -70
- data/lib/bandwidth/http/http_call_back.rb +0 -24
- data/lib/bandwidth/http/http_client.rb +0 -104
- data/lib/bandwidth/http/http_method_enum.rb +0 -13
- data/lib/bandwidth/http/http_request.rb +0 -50
- data/lib/bandwidth/http/http_response.rb +0 -29
- data/lib/bandwidth/messaging_lib/messaging/client.rb +0 -60
- data/lib/bandwidth/messaging_lib/messaging/controllers/api_controller.rb +0 -491
- data/lib/bandwidth/messaging_lib/messaging/controllers/base_controller.rb +0 -47
- data/lib/bandwidth/messaging_lib/messaging/exceptions/messaging_exception.rb +0 -37
- data/lib/bandwidth/messaging_lib/messaging/models/bandwidth_callback_message.rb +0 -100
- data/lib/bandwidth/messaging_lib/messaging/models/bandwidth_message.rb +0 -174
- data/lib/bandwidth/messaging_lib/messaging/models/bandwidth_message_item.rb +0 -203
- data/lib/bandwidth/messaging_lib/messaging/models/bandwidth_messages_list.rb +0 -79
- data/lib/bandwidth/messaging_lib/messaging/models/deferred_result.rb +0 -60
- data/lib/bandwidth/messaging_lib/messaging/models/media.rb +0 -70
- data/lib/bandwidth/messaging_lib/messaging/models/message_request.rb +0 -122
- data/lib/bandwidth/messaging_lib/messaging/models/page_info.rb +0 -82
- data/lib/bandwidth/messaging_lib/messaging/models/priority_enum.rb +0 -19
- data/lib/bandwidth/messaging_lib/messaging/models/tag.rb +0 -60
- data/lib/bandwidth/messaging_lib/messaging.rb +0 -25
- data/lib/bandwidth/models/base_model.rb +0 -58
- data/lib/bandwidth/multi_factor_auth_lib/multi_factor_auth/client.rb +0 -60
- data/lib/bandwidth/multi_factor_auth_lib/multi_factor_auth/controllers/base_controller.rb +0 -47
- data/lib/bandwidth/multi_factor_auth_lib/multi_factor_auth/controllers/mfa_controller.rb +0 -214
- data/lib/bandwidth/multi_factor_auth_lib/multi_factor_auth/exceptions/error_with_request_exception.rb +0 -37
- data/lib/bandwidth/multi_factor_auth_lib/multi_factor_auth/exceptions/forbidden_request_exception.rb +0 -32
- data/lib/bandwidth/multi_factor_auth_lib/multi_factor_auth/exceptions/unauthorized_request_exception.rb +0 -32
- data/lib/bandwidth/multi_factor_auth_lib/multi_factor_auth/models/two_factor_code_request_schema.rb +0 -103
- data/lib/bandwidth/multi_factor_auth_lib/multi_factor_auth/models/two_factor_messaging_response.rb +0 -50
- data/lib/bandwidth/multi_factor_auth_lib/multi_factor_auth/models/two_factor_verify_code_response.rb +0 -50
- data/lib/bandwidth/multi_factor_auth_lib/multi_factor_auth/models/two_factor_verify_request_schema.rb +0 -94
- data/lib/bandwidth/multi_factor_auth_lib/multi_factor_auth/models/two_factor_voice_response.rb +0 -50
- data/lib/bandwidth/multi_factor_auth_lib/multi_factor_auth.rb +0 -23
- data/lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/client.rb +0 -60
- data/lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/controllers/api_controller.rb +0 -1553
- data/lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/controllers/base_controller.rb +0 -47
- data/lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/exceptions/accounts_tnlookup400_error_exception.rb +0 -32
- data/lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/models/order_request.rb +0 -50
- data/lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/models/order_response.rb +0 -61
- data/lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/models/order_status.rb +0 -95
- data/lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/models/result.rb +0 -132
- data/lib/bandwidth/phone_number_lookup_lib/phone_number_lookup.rb +0 -20
- data/lib/bandwidth/utilities/date_time_helper.rb +0 -156
- data/lib/bandwidth/utilities/file_wrapper.rb +0 -16
- data/lib/bandwidth/voice_lib/bxml/bxml.rb +0 -36
- data/lib/bandwidth/voice_lib/bxml/response.rb +0 -39
- data/lib/bandwidth/voice_lib/bxml/verbs/bridge.rb +0 -28
- data/lib/bandwidth/voice_lib/bxml/verbs/conference.rb +0 -32
- data/lib/bandwidth/voice_lib/bxml/verbs/forward.rb +0 -18
- data/lib/bandwidth/voice_lib/bxml/verbs/gather.rb +0 -49
- data/lib/bandwidth/voice_lib/bxml/verbs/hangup.rb +0 -14
- data/lib/bandwidth/voice_lib/bxml/verbs/pause.rb +0 -15
- data/lib/bandwidth/voice_lib/bxml/verbs/pause_recording.rb +0 -14
- data/lib/bandwidth/voice_lib/bxml/verbs/phone_number.rb +0 -24
- data/lib/bandwidth/voice_lib/bxml/verbs/play_audio.rb +0 -17
- data/lib/bandwidth/voice_lib/bxml/verbs/record.rb +0 -33
- data/lib/bandwidth/voice_lib/bxml/verbs/redirect.rb +0 -24
- data/lib/bandwidth/voice_lib/bxml/verbs/resume_recording.rb +0 -14
- data/lib/bandwidth/voice_lib/bxml/verbs/ring.rb +0 -16
- data/lib/bandwidth/voice_lib/bxml/verbs/send_dtmf.rb +0 -16
- data/lib/bandwidth/voice_lib/bxml/verbs/sip_uri.rb +0 -25
- data/lib/bandwidth/voice_lib/bxml/verbs/speak_sentence.rb +0 -18
- data/lib/bandwidth/voice_lib/bxml/verbs/start_gather.rb +0 -20
- data/lib/bandwidth/voice_lib/bxml/verbs/start_recording.rb +0 -25
- data/lib/bandwidth/voice_lib/bxml/verbs/start_stream.rb +0 -41
- data/lib/bandwidth/voice_lib/bxml/verbs/stop_gather.rb +0 -14
- data/lib/bandwidth/voice_lib/bxml/verbs/stop_recording.rb +0 -14
- data/lib/bandwidth/voice_lib/bxml/verbs/stop_stream.rb +0 -16
- data/lib/bandwidth/voice_lib/bxml/verbs/stream_param.rb +0 -17
- data/lib/bandwidth/voice_lib/bxml/verbs/tag.rb +0 -13
- data/lib/bandwidth/voice_lib/bxml/verbs/transfer.rb +0 -48
- data/lib/bandwidth/voice_lib/bxml/verbs/xml_verb.rb +0 -26
- data/lib/bandwidth/voice_lib/voice/client.rb +0 -60
- data/lib/bandwidth/voice_lib/voice/controllers/api_controller.rb +0 -1820
- data/lib/bandwidth/voice_lib/voice/controllers/base_controller.rb +0 -47
- data/lib/bandwidth/voice_lib/voice/exceptions/api_error_exception.rb +0 -42
- data/lib/bandwidth/voice_lib/voice/models/answer_fallback_method_enum.rb +0 -17
- data/lib/bandwidth/voice_lib/voice/models/answer_method_enum.rb +0 -17
- data/lib/bandwidth/voice_lib/voice/models/call_callback.rb +0 -343
- data/lib/bandwidth/voice_lib/voice/models/call_recording_metadata.rb +0 -250
- data/lib/bandwidth/voice_lib/voice/models/call_state.rb +0 -301
- data/lib/bandwidth/voice_lib/voice/models/callback_method_enum.rb +0 -17
- data/lib/bandwidth/voice_lib/voice/models/conference_callback.rb +0 -211
- data/lib/bandwidth/voice_lib/voice/models/conference_event_method_enum.rb +0 -17
- data/lib/bandwidth/voice_lib/voice/models/conference_member_state.rb +0 -103
- data/lib/bandwidth/voice_lib/voice/models/conference_recording_metadata.rb +0 -173
- data/lib/bandwidth/voice_lib/voice/models/conference_state.rb +0 -153
- data/lib/bandwidth/voice_lib/voice/models/create_call_request.rb +0 -236
- data/lib/bandwidth/voice_lib/voice/models/create_call_response.rb +0 -266
- data/lib/bandwidth/voice_lib/voice/models/direction_enum.rb +0 -17
- data/lib/bandwidth/voice_lib/voice/models/disconnect_method_enum.rb +0 -17
- data/lib/bandwidth/voice_lib/voice/models/diversion.rb +0 -80
- data/lib/bandwidth/voice_lib/voice/models/fallback_method_enum.rb +0 -17
- data/lib/bandwidth/voice_lib/voice/models/file_format_enum.rb +0 -17
- data/lib/bandwidth/voice_lib/voice/models/machine_detection_configuration.rb +0 -231
- data/lib/bandwidth/voice_lib/voice/models/mode_enum.rb +0 -20
- data/lib/bandwidth/voice_lib/voice/models/modify_call_recording_request.rb +0 -48
- data/lib/bandwidth/voice_lib/voice/models/modify_call_request.rb +0 -156
- data/lib/bandwidth/voice_lib/voice/models/modify_conference_request.rb +0 -144
- data/lib/bandwidth/voice_lib/voice/models/redirect_fallback_method_enum.rb +0 -17
- data/lib/bandwidth/voice_lib/voice/models/redirect_method_enum.rb +0 -17
- data/lib/bandwidth/voice_lib/voice/models/state1_enum.rb +0 -20
- data/lib/bandwidth/voice_lib/voice/models/state_enum.rb +0 -17
- data/lib/bandwidth/voice_lib/voice/models/status_enum.rb +0 -17
- data/lib/bandwidth/voice_lib/voice/models/transcribe_recording_request.rb +0 -108
- data/lib/bandwidth/voice_lib/voice/models/transcript.rb +0 -60
- data/lib/bandwidth/voice_lib/voice/models/transcription.rb +0 -80
- data/lib/bandwidth/voice_lib/voice/models/transcription_metadata.rb +0 -89
- data/lib/bandwidth/voice_lib/voice/models/transcription_response.rb +0 -59
- data/lib/bandwidth/voice_lib/voice.rb +0 -48
- data/lib/bandwidth/web_rtc_lib/utils/web_rtc_transfer.rb +0 -18
- data/lib/bandwidth/web_rtc_lib/web_rtc/client.rb +0 -60
- data/lib/bandwidth/web_rtc_lib/web_rtc/controllers/api_controller.rb +0 -703
- data/lib/bandwidth/web_rtc_lib/web_rtc/controllers/base_controller.rb +0 -47
- data/lib/bandwidth/web_rtc_lib/web_rtc/exceptions/error_exception.rb +0 -37
- data/lib/bandwidth/web_rtc_lib/web_rtc/models/accounts_participants_response.rb +0 -62
- data/lib/bandwidth/web_rtc_lib/web_rtc/models/device_api_version_enum.rb +0 -17
- data/lib/bandwidth/web_rtc_lib/web_rtc/models/participant.rb +0 -115
- data/lib/bandwidth/web_rtc_lib/web_rtc/models/participant_subscription.rb +0 -48
- data/lib/bandwidth/web_rtc_lib/web_rtc/models/publish_permission_enum.rb +0 -17
- data/lib/bandwidth/web_rtc_lib/web_rtc/models/session.rb +0 -60
- data/lib/bandwidth/web_rtc_lib/web_rtc/models/subscriptions.rb +0 -71
- data/lib/bandwidth/web_rtc_lib/web_rtc.rb +0 -22
- data/lib/bandwidth.rb +0 -72
- data/test/controllers/controller_test_base.rb +0 -21
- data/test/http_response_catcher.rb +0 -19
- data/test/integration/test_integration.rb +0 -767
- data/test/test_helper.rb +0 -94
data/lib/bandwidth/phone_number_lookup_lib/phone_number_lookup/controllers/api_controller.rb
DELETED
|
@@ -1,1553 +0,0 @@
|
|
|
1
|
-
# bandwidth
|
|
2
|
-
#
|
|
3
|
-
# This file was automatically generated by APIMATIC v2.0
|
|
4
|
-
# ( https://apimatic.io ).
|
|
5
|
-
|
|
6
|
-
module Bandwidth
|
|
7
|
-
module PhoneNumberLookup
|
|
8
|
-
# APIController
|
|
9
|
-
class APIController < BaseController
|
|
10
|
-
def initialize(config, http_call_back: nil)
|
|
11
|
-
super(config, http_call_back: http_call_back)
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
# Create a TN Lookup Order.
|
|
15
|
-
# @param [String] account_id Required parameter: The ID of the Bandwidth
|
|
16
|
-
# account that the user belongs to.
|
|
17
|
-
# @param [OrderRequest] body Required parameter: Example:
|
|
18
|
-
# @return [OrderResponse] response from the API call
|
|
19
|
-
def create_lookup_request(account_id,
|
|
20
|
-
body)
|
|
21
|
-
# Prepare query url.
|
|
22
|
-
_query_builder = config.get_base_uri(Server::PHONENUMBERLOOKUPDEFAULT)
|
|
23
|
-
_query_builder << '/accounts/{accountId}/tnlookup'
|
|
24
|
-
_query_builder = APIHelper.append_url_with_template_parameters(
|
|
25
|
-
_query_builder,
|
|
26
|
-
'accountId' => { 'value' => account_id, 'encode' => false }
|
|
27
|
-
)
|
|
28
|
-
_query_url = APIHelper.clean_url _query_builder
|
|
29
|
-
|
|
30
|
-
# Prepare headers.
|
|
31
|
-
_headers = {
|
|
32
|
-
'accept' => 'application/json',
|
|
33
|
-
'content-type' => 'application/json; charset=utf-8'
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
# Prepare and execute HttpRequest.
|
|
37
|
-
_request = config.http_client.post(
|
|
38
|
-
_query_url,
|
|
39
|
-
headers: _headers,
|
|
40
|
-
parameters: body.to_json
|
|
41
|
-
)
|
|
42
|
-
PhoneNumberLookupBasicAuth.apply(config, _request)
|
|
43
|
-
_response = execute_request(_request)
|
|
44
|
-
|
|
45
|
-
# Validate response against endpoint and global error codes.
|
|
46
|
-
case _response.status_code
|
|
47
|
-
when 400
|
|
48
|
-
raise AccountsTnlookup400ErrorException.new(
|
|
49
|
-
'Bad Request. Ensure that your request payload is properly' \
|
|
50
|
-
' formatted and that the telephone numbers used are valid.',
|
|
51
|
-
_response
|
|
52
|
-
)
|
|
53
|
-
when 401
|
|
54
|
-
raise APIException.new(
|
|
55
|
-
'Unauthorized. Ensure that you are using the proper credentials' \
|
|
56
|
-
' for the environment you are accessing, your user has' \
|
|
57
|
-
' the proper role assigned to it, and that your' \
|
|
58
|
-
' Bandwidth account is enabled for TN Lookup access.',
|
|
59
|
-
_response
|
|
60
|
-
)
|
|
61
|
-
when 415
|
|
62
|
-
raise APIException.new(
|
|
63
|
-
'Invalid content-type. Ensure that your content-type header is set' \
|
|
64
|
-
' to application/json.',
|
|
65
|
-
_response
|
|
66
|
-
)
|
|
67
|
-
when 429
|
|
68
|
-
raise APIException.new(
|
|
69
|
-
'Too Many Requests. Reduce the amount of requests that you are' \
|
|
70
|
-
' sending in order to avoid receiving this status code.',
|
|
71
|
-
_response
|
|
72
|
-
)
|
|
73
|
-
when 500
|
|
74
|
-
raise APIException.new(
|
|
75
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
76
|
-
' requests are receiving this status code for an' \
|
|
77
|
-
' extended period of time.',
|
|
78
|
-
_response
|
|
79
|
-
)
|
|
80
|
-
when 501
|
|
81
|
-
raise APIException.new(
|
|
82
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
83
|
-
' requests are receiving this status code for an' \
|
|
84
|
-
' extended period of time.',
|
|
85
|
-
_response
|
|
86
|
-
)
|
|
87
|
-
when 502
|
|
88
|
-
raise APIException.new(
|
|
89
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
90
|
-
' requests are receiving this status code for an' \
|
|
91
|
-
' extended period of time.',
|
|
92
|
-
_response
|
|
93
|
-
)
|
|
94
|
-
when 503
|
|
95
|
-
raise APIException.new(
|
|
96
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
97
|
-
' requests are receiving this status code for an' \
|
|
98
|
-
' extended period of time.',
|
|
99
|
-
_response
|
|
100
|
-
)
|
|
101
|
-
when 504
|
|
102
|
-
raise APIException.new(
|
|
103
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
104
|
-
' requests are receiving this status code for an' \
|
|
105
|
-
' extended period of time.',
|
|
106
|
-
_response
|
|
107
|
-
)
|
|
108
|
-
when 505
|
|
109
|
-
raise APIException.new(
|
|
110
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
111
|
-
' requests are receiving this status code for an' \
|
|
112
|
-
' extended period of time.',
|
|
113
|
-
_response
|
|
114
|
-
)
|
|
115
|
-
when 506
|
|
116
|
-
raise APIException.new(
|
|
117
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
118
|
-
' requests are receiving this status code for an' \
|
|
119
|
-
' extended period of time.',
|
|
120
|
-
_response
|
|
121
|
-
)
|
|
122
|
-
when 507
|
|
123
|
-
raise APIException.new(
|
|
124
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
125
|
-
' requests are receiving this status code for an' \
|
|
126
|
-
' extended period of time.',
|
|
127
|
-
_response
|
|
128
|
-
)
|
|
129
|
-
when 508
|
|
130
|
-
raise APIException.new(
|
|
131
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
132
|
-
' requests are receiving this status code for an' \
|
|
133
|
-
' extended period of time.',
|
|
134
|
-
_response
|
|
135
|
-
)
|
|
136
|
-
when 509
|
|
137
|
-
raise APIException.new(
|
|
138
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
139
|
-
' requests are receiving this status code for an' \
|
|
140
|
-
' extended period of time.',
|
|
141
|
-
_response
|
|
142
|
-
)
|
|
143
|
-
when 510
|
|
144
|
-
raise APIException.new(
|
|
145
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
146
|
-
' requests are receiving this status code for an' \
|
|
147
|
-
' extended period of time.',
|
|
148
|
-
_response
|
|
149
|
-
)
|
|
150
|
-
when 511
|
|
151
|
-
raise APIException.new(
|
|
152
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
153
|
-
' requests are receiving this status code for an' \
|
|
154
|
-
' extended period of time.',
|
|
155
|
-
_response
|
|
156
|
-
)
|
|
157
|
-
when 512
|
|
158
|
-
raise APIException.new(
|
|
159
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
160
|
-
' requests are receiving this status code for an' \
|
|
161
|
-
' extended period of time.',
|
|
162
|
-
_response
|
|
163
|
-
)
|
|
164
|
-
when 513
|
|
165
|
-
raise APIException.new(
|
|
166
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
167
|
-
' requests are receiving this status code for an' \
|
|
168
|
-
' extended period of time.',
|
|
169
|
-
_response
|
|
170
|
-
)
|
|
171
|
-
when 514
|
|
172
|
-
raise APIException.new(
|
|
173
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
174
|
-
' requests are receiving this status code for an' \
|
|
175
|
-
' extended period of time.',
|
|
176
|
-
_response
|
|
177
|
-
)
|
|
178
|
-
when 515
|
|
179
|
-
raise APIException.new(
|
|
180
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
181
|
-
' requests are receiving this status code for an' \
|
|
182
|
-
' extended period of time.',
|
|
183
|
-
_response
|
|
184
|
-
)
|
|
185
|
-
when 516
|
|
186
|
-
raise APIException.new(
|
|
187
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
188
|
-
' requests are receiving this status code for an' \
|
|
189
|
-
' extended period of time.',
|
|
190
|
-
_response
|
|
191
|
-
)
|
|
192
|
-
when 517
|
|
193
|
-
raise APIException.new(
|
|
194
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
195
|
-
' requests are receiving this status code for an' \
|
|
196
|
-
' extended period of time.',
|
|
197
|
-
_response
|
|
198
|
-
)
|
|
199
|
-
when 518
|
|
200
|
-
raise APIException.new(
|
|
201
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
202
|
-
' requests are receiving this status code for an' \
|
|
203
|
-
' extended period of time.',
|
|
204
|
-
_response
|
|
205
|
-
)
|
|
206
|
-
when 519
|
|
207
|
-
raise APIException.new(
|
|
208
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
209
|
-
' requests are receiving this status code for an' \
|
|
210
|
-
' extended period of time.',
|
|
211
|
-
_response
|
|
212
|
-
)
|
|
213
|
-
when 520
|
|
214
|
-
raise APIException.new(
|
|
215
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
216
|
-
' requests are receiving this status code for an' \
|
|
217
|
-
' extended period of time.',
|
|
218
|
-
_response
|
|
219
|
-
)
|
|
220
|
-
when 521
|
|
221
|
-
raise APIException.new(
|
|
222
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
223
|
-
' requests are receiving this status code for an' \
|
|
224
|
-
' extended period of time.',
|
|
225
|
-
_response
|
|
226
|
-
)
|
|
227
|
-
when 522
|
|
228
|
-
raise APIException.new(
|
|
229
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
230
|
-
' requests are receiving this status code for an' \
|
|
231
|
-
' extended period of time.',
|
|
232
|
-
_response
|
|
233
|
-
)
|
|
234
|
-
when 523
|
|
235
|
-
raise APIException.new(
|
|
236
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
237
|
-
' requests are receiving this status code for an' \
|
|
238
|
-
' extended period of time.',
|
|
239
|
-
_response
|
|
240
|
-
)
|
|
241
|
-
when 524
|
|
242
|
-
raise APIException.new(
|
|
243
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
244
|
-
' requests are receiving this status code for an' \
|
|
245
|
-
' extended period of time.',
|
|
246
|
-
_response
|
|
247
|
-
)
|
|
248
|
-
when 525
|
|
249
|
-
raise APIException.new(
|
|
250
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
251
|
-
' requests are receiving this status code for an' \
|
|
252
|
-
' extended period of time.',
|
|
253
|
-
_response
|
|
254
|
-
)
|
|
255
|
-
when 526
|
|
256
|
-
raise APIException.new(
|
|
257
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
258
|
-
' requests are receiving this status code for an' \
|
|
259
|
-
' extended period of time.',
|
|
260
|
-
_response
|
|
261
|
-
)
|
|
262
|
-
when 527
|
|
263
|
-
raise APIException.new(
|
|
264
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
265
|
-
' requests are receiving this status code for an' \
|
|
266
|
-
' extended period of time.',
|
|
267
|
-
_response
|
|
268
|
-
)
|
|
269
|
-
when 528
|
|
270
|
-
raise APIException.new(
|
|
271
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
272
|
-
' requests are receiving this status code for an' \
|
|
273
|
-
' extended period of time.',
|
|
274
|
-
_response
|
|
275
|
-
)
|
|
276
|
-
when 529
|
|
277
|
-
raise APIException.new(
|
|
278
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
279
|
-
' requests are receiving this status code for an' \
|
|
280
|
-
' extended period of time.',
|
|
281
|
-
_response
|
|
282
|
-
)
|
|
283
|
-
when 530
|
|
284
|
-
raise APIException.new(
|
|
285
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
286
|
-
' requests are receiving this status code for an' \
|
|
287
|
-
' extended period of time.',
|
|
288
|
-
_response
|
|
289
|
-
)
|
|
290
|
-
when 531
|
|
291
|
-
raise APIException.new(
|
|
292
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
293
|
-
' requests are receiving this status code for an' \
|
|
294
|
-
' extended period of time.',
|
|
295
|
-
_response
|
|
296
|
-
)
|
|
297
|
-
when 532
|
|
298
|
-
raise APIException.new(
|
|
299
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
300
|
-
' requests are receiving this status code for an' \
|
|
301
|
-
' extended period of time.',
|
|
302
|
-
_response
|
|
303
|
-
)
|
|
304
|
-
when 533
|
|
305
|
-
raise APIException.new(
|
|
306
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
307
|
-
' requests are receiving this status code for an' \
|
|
308
|
-
' extended period of time.',
|
|
309
|
-
_response
|
|
310
|
-
)
|
|
311
|
-
when 534
|
|
312
|
-
raise APIException.new(
|
|
313
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
314
|
-
' requests are receiving this status code for an' \
|
|
315
|
-
' extended period of time.',
|
|
316
|
-
_response
|
|
317
|
-
)
|
|
318
|
-
when 535
|
|
319
|
-
raise APIException.new(
|
|
320
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
321
|
-
' requests are receiving this status code for an' \
|
|
322
|
-
' extended period of time.',
|
|
323
|
-
_response
|
|
324
|
-
)
|
|
325
|
-
when 536
|
|
326
|
-
raise APIException.new(
|
|
327
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
328
|
-
' requests are receiving this status code for an' \
|
|
329
|
-
' extended period of time.',
|
|
330
|
-
_response
|
|
331
|
-
)
|
|
332
|
-
when 537
|
|
333
|
-
raise APIException.new(
|
|
334
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
335
|
-
' requests are receiving this status code for an' \
|
|
336
|
-
' extended period of time.',
|
|
337
|
-
_response
|
|
338
|
-
)
|
|
339
|
-
when 538
|
|
340
|
-
raise APIException.new(
|
|
341
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
342
|
-
' requests are receiving this status code for an' \
|
|
343
|
-
' extended period of time.',
|
|
344
|
-
_response
|
|
345
|
-
)
|
|
346
|
-
when 539
|
|
347
|
-
raise APIException.new(
|
|
348
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
349
|
-
' requests are receiving this status code for an' \
|
|
350
|
-
' extended period of time.',
|
|
351
|
-
_response
|
|
352
|
-
)
|
|
353
|
-
when 540
|
|
354
|
-
raise APIException.new(
|
|
355
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
356
|
-
' requests are receiving this status code for an' \
|
|
357
|
-
' extended period of time.',
|
|
358
|
-
_response
|
|
359
|
-
)
|
|
360
|
-
when 541
|
|
361
|
-
raise APIException.new(
|
|
362
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
363
|
-
' requests are receiving this status code for an' \
|
|
364
|
-
' extended period of time.',
|
|
365
|
-
_response
|
|
366
|
-
)
|
|
367
|
-
when 542
|
|
368
|
-
raise APIException.new(
|
|
369
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
370
|
-
' requests are receiving this status code for an' \
|
|
371
|
-
' extended period of time.',
|
|
372
|
-
_response
|
|
373
|
-
)
|
|
374
|
-
when 543
|
|
375
|
-
raise APIException.new(
|
|
376
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
377
|
-
' requests are receiving this status code for an' \
|
|
378
|
-
' extended period of time.',
|
|
379
|
-
_response
|
|
380
|
-
)
|
|
381
|
-
when 544
|
|
382
|
-
raise APIException.new(
|
|
383
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
384
|
-
' requests are receiving this status code for an' \
|
|
385
|
-
' extended period of time.',
|
|
386
|
-
_response
|
|
387
|
-
)
|
|
388
|
-
when 545
|
|
389
|
-
raise APIException.new(
|
|
390
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
391
|
-
' requests are receiving this status code for an' \
|
|
392
|
-
' extended period of time.',
|
|
393
|
-
_response
|
|
394
|
-
)
|
|
395
|
-
when 546
|
|
396
|
-
raise APIException.new(
|
|
397
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
398
|
-
' requests are receiving this status code for an' \
|
|
399
|
-
' extended period of time.',
|
|
400
|
-
_response
|
|
401
|
-
)
|
|
402
|
-
when 547
|
|
403
|
-
raise APIException.new(
|
|
404
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
405
|
-
' requests are receiving this status code for an' \
|
|
406
|
-
' extended period of time.',
|
|
407
|
-
_response
|
|
408
|
-
)
|
|
409
|
-
when 548
|
|
410
|
-
raise APIException.new(
|
|
411
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
412
|
-
' requests are receiving this status code for an' \
|
|
413
|
-
' extended period of time.',
|
|
414
|
-
_response
|
|
415
|
-
)
|
|
416
|
-
when 549
|
|
417
|
-
raise APIException.new(
|
|
418
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
419
|
-
' requests are receiving this status code for an' \
|
|
420
|
-
' extended period of time.',
|
|
421
|
-
_response
|
|
422
|
-
)
|
|
423
|
-
when 550
|
|
424
|
-
raise APIException.new(
|
|
425
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
426
|
-
' requests are receiving this status code for an' \
|
|
427
|
-
' extended period of time.',
|
|
428
|
-
_response
|
|
429
|
-
)
|
|
430
|
-
when 551
|
|
431
|
-
raise APIException.new(
|
|
432
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
433
|
-
' requests are receiving this status code for an' \
|
|
434
|
-
' extended period of time.',
|
|
435
|
-
_response
|
|
436
|
-
)
|
|
437
|
-
when 552
|
|
438
|
-
raise APIException.new(
|
|
439
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
440
|
-
' requests are receiving this status code for an' \
|
|
441
|
-
' extended period of time.',
|
|
442
|
-
_response
|
|
443
|
-
)
|
|
444
|
-
when 553
|
|
445
|
-
raise APIException.new(
|
|
446
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
447
|
-
' requests are receiving this status code for an' \
|
|
448
|
-
' extended period of time.',
|
|
449
|
-
_response
|
|
450
|
-
)
|
|
451
|
-
when 554
|
|
452
|
-
raise APIException.new(
|
|
453
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
454
|
-
' requests are receiving this status code for an' \
|
|
455
|
-
' extended period of time.',
|
|
456
|
-
_response
|
|
457
|
-
)
|
|
458
|
-
when 555
|
|
459
|
-
raise APIException.new(
|
|
460
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
461
|
-
' requests are receiving this status code for an' \
|
|
462
|
-
' extended period of time.',
|
|
463
|
-
_response
|
|
464
|
-
)
|
|
465
|
-
when 556
|
|
466
|
-
raise APIException.new(
|
|
467
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
468
|
-
' requests are receiving this status code for an' \
|
|
469
|
-
' extended period of time.',
|
|
470
|
-
_response
|
|
471
|
-
)
|
|
472
|
-
when 557
|
|
473
|
-
raise APIException.new(
|
|
474
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
475
|
-
' requests are receiving this status code for an' \
|
|
476
|
-
' extended period of time.',
|
|
477
|
-
_response
|
|
478
|
-
)
|
|
479
|
-
when 558
|
|
480
|
-
raise APIException.new(
|
|
481
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
482
|
-
' requests are receiving this status code for an' \
|
|
483
|
-
' extended period of time.',
|
|
484
|
-
_response
|
|
485
|
-
)
|
|
486
|
-
when 559
|
|
487
|
-
raise APIException.new(
|
|
488
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
489
|
-
' requests are receiving this status code for an' \
|
|
490
|
-
' extended period of time.',
|
|
491
|
-
_response
|
|
492
|
-
)
|
|
493
|
-
when 560
|
|
494
|
-
raise APIException.new(
|
|
495
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
496
|
-
' requests are receiving this status code for an' \
|
|
497
|
-
' extended period of time.',
|
|
498
|
-
_response
|
|
499
|
-
)
|
|
500
|
-
when 561
|
|
501
|
-
raise APIException.new(
|
|
502
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
503
|
-
' requests are receiving this status code for an' \
|
|
504
|
-
' extended period of time.',
|
|
505
|
-
_response
|
|
506
|
-
)
|
|
507
|
-
when 562
|
|
508
|
-
raise APIException.new(
|
|
509
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
510
|
-
' requests are receiving this status code for an' \
|
|
511
|
-
' extended period of time.',
|
|
512
|
-
_response
|
|
513
|
-
)
|
|
514
|
-
when 563
|
|
515
|
-
raise APIException.new(
|
|
516
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
517
|
-
' requests are receiving this status code for an' \
|
|
518
|
-
' extended period of time.',
|
|
519
|
-
_response
|
|
520
|
-
)
|
|
521
|
-
when 564
|
|
522
|
-
raise APIException.new(
|
|
523
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
524
|
-
' requests are receiving this status code for an' \
|
|
525
|
-
' extended period of time.',
|
|
526
|
-
_response
|
|
527
|
-
)
|
|
528
|
-
when 565
|
|
529
|
-
raise APIException.new(
|
|
530
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
531
|
-
' requests are receiving this status code for an' \
|
|
532
|
-
' extended period of time.',
|
|
533
|
-
_response
|
|
534
|
-
)
|
|
535
|
-
when 566
|
|
536
|
-
raise APIException.new(
|
|
537
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
538
|
-
' requests are receiving this status code for an' \
|
|
539
|
-
' extended period of time.',
|
|
540
|
-
_response
|
|
541
|
-
)
|
|
542
|
-
when 567
|
|
543
|
-
raise APIException.new(
|
|
544
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
545
|
-
' requests are receiving this status code for an' \
|
|
546
|
-
' extended period of time.',
|
|
547
|
-
_response
|
|
548
|
-
)
|
|
549
|
-
when 568
|
|
550
|
-
raise APIException.new(
|
|
551
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
552
|
-
' requests are receiving this status code for an' \
|
|
553
|
-
' extended period of time.',
|
|
554
|
-
_response
|
|
555
|
-
)
|
|
556
|
-
when 569
|
|
557
|
-
raise APIException.new(
|
|
558
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
559
|
-
' requests are receiving this status code for an' \
|
|
560
|
-
' extended period of time.',
|
|
561
|
-
_response
|
|
562
|
-
)
|
|
563
|
-
when 570
|
|
564
|
-
raise APIException.new(
|
|
565
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
566
|
-
' requests are receiving this status code for an' \
|
|
567
|
-
' extended period of time.',
|
|
568
|
-
_response
|
|
569
|
-
)
|
|
570
|
-
when 571
|
|
571
|
-
raise APIException.new(
|
|
572
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
573
|
-
' requests are receiving this status code for an' \
|
|
574
|
-
' extended period of time.',
|
|
575
|
-
_response
|
|
576
|
-
)
|
|
577
|
-
when 572
|
|
578
|
-
raise APIException.new(
|
|
579
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
580
|
-
' requests are receiving this status code for an' \
|
|
581
|
-
' extended period of time.',
|
|
582
|
-
_response
|
|
583
|
-
)
|
|
584
|
-
when 573
|
|
585
|
-
raise APIException.new(
|
|
586
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
587
|
-
' requests are receiving this status code for an' \
|
|
588
|
-
' extended period of time.',
|
|
589
|
-
_response
|
|
590
|
-
)
|
|
591
|
-
when 574
|
|
592
|
-
raise APIException.new(
|
|
593
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
594
|
-
' requests are receiving this status code for an' \
|
|
595
|
-
' extended period of time.',
|
|
596
|
-
_response
|
|
597
|
-
)
|
|
598
|
-
when 575
|
|
599
|
-
raise APIException.new(
|
|
600
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
601
|
-
' requests are receiving this status code for an' \
|
|
602
|
-
' extended period of time.',
|
|
603
|
-
_response
|
|
604
|
-
)
|
|
605
|
-
when 576
|
|
606
|
-
raise APIException.new(
|
|
607
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
608
|
-
' requests are receiving this status code for an' \
|
|
609
|
-
' extended period of time.',
|
|
610
|
-
_response
|
|
611
|
-
)
|
|
612
|
-
when 577
|
|
613
|
-
raise APIException.new(
|
|
614
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
615
|
-
' requests are receiving this status code for an' \
|
|
616
|
-
' extended period of time.',
|
|
617
|
-
_response
|
|
618
|
-
)
|
|
619
|
-
when 578
|
|
620
|
-
raise APIException.new(
|
|
621
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
622
|
-
' requests are receiving this status code for an' \
|
|
623
|
-
' extended period of time.',
|
|
624
|
-
_response
|
|
625
|
-
)
|
|
626
|
-
when 579
|
|
627
|
-
raise APIException.new(
|
|
628
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
629
|
-
' requests are receiving this status code for an' \
|
|
630
|
-
' extended period of time.',
|
|
631
|
-
_response
|
|
632
|
-
)
|
|
633
|
-
when 580
|
|
634
|
-
raise APIException.new(
|
|
635
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
636
|
-
' requests are receiving this status code for an' \
|
|
637
|
-
' extended period of time.',
|
|
638
|
-
_response
|
|
639
|
-
)
|
|
640
|
-
when 581
|
|
641
|
-
raise APIException.new(
|
|
642
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
643
|
-
' requests are receiving this status code for an' \
|
|
644
|
-
' extended period of time.',
|
|
645
|
-
_response
|
|
646
|
-
)
|
|
647
|
-
when 582
|
|
648
|
-
raise APIException.new(
|
|
649
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
650
|
-
' requests are receiving this status code for an' \
|
|
651
|
-
' extended period of time.',
|
|
652
|
-
_response
|
|
653
|
-
)
|
|
654
|
-
when 583
|
|
655
|
-
raise APIException.new(
|
|
656
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
657
|
-
' requests are receiving this status code for an' \
|
|
658
|
-
' extended period of time.',
|
|
659
|
-
_response
|
|
660
|
-
)
|
|
661
|
-
when 584
|
|
662
|
-
raise APIException.new(
|
|
663
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
664
|
-
' requests are receiving this status code for an' \
|
|
665
|
-
' extended period of time.',
|
|
666
|
-
_response
|
|
667
|
-
)
|
|
668
|
-
when 585
|
|
669
|
-
raise APIException.new(
|
|
670
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
671
|
-
' requests are receiving this status code for an' \
|
|
672
|
-
' extended period of time.',
|
|
673
|
-
_response
|
|
674
|
-
)
|
|
675
|
-
when 586
|
|
676
|
-
raise APIException.new(
|
|
677
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
678
|
-
' requests are receiving this status code for an' \
|
|
679
|
-
' extended period of time.',
|
|
680
|
-
_response
|
|
681
|
-
)
|
|
682
|
-
when 587
|
|
683
|
-
raise APIException.new(
|
|
684
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
685
|
-
' requests are receiving this status code for an' \
|
|
686
|
-
' extended period of time.',
|
|
687
|
-
_response
|
|
688
|
-
)
|
|
689
|
-
when 588
|
|
690
|
-
raise APIException.new(
|
|
691
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
692
|
-
' requests are receiving this status code for an' \
|
|
693
|
-
' extended period of time.',
|
|
694
|
-
_response
|
|
695
|
-
)
|
|
696
|
-
when 589
|
|
697
|
-
raise APIException.new(
|
|
698
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
699
|
-
' requests are receiving this status code for an' \
|
|
700
|
-
' extended period of time.',
|
|
701
|
-
_response
|
|
702
|
-
)
|
|
703
|
-
when 590
|
|
704
|
-
raise APIException.new(
|
|
705
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
706
|
-
' requests are receiving this status code for an' \
|
|
707
|
-
' extended period of time.',
|
|
708
|
-
_response
|
|
709
|
-
)
|
|
710
|
-
when 591
|
|
711
|
-
raise APIException.new(
|
|
712
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
713
|
-
' requests are receiving this status code for an' \
|
|
714
|
-
' extended period of time.',
|
|
715
|
-
_response
|
|
716
|
-
)
|
|
717
|
-
when 592
|
|
718
|
-
raise APIException.new(
|
|
719
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
720
|
-
' requests are receiving this status code for an' \
|
|
721
|
-
' extended period of time.',
|
|
722
|
-
_response
|
|
723
|
-
)
|
|
724
|
-
when 593
|
|
725
|
-
raise APIException.new(
|
|
726
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
727
|
-
' requests are receiving this status code for an' \
|
|
728
|
-
' extended period of time.',
|
|
729
|
-
_response
|
|
730
|
-
)
|
|
731
|
-
when 594
|
|
732
|
-
raise APIException.new(
|
|
733
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
734
|
-
' requests are receiving this status code for an' \
|
|
735
|
-
' extended period of time.',
|
|
736
|
-
_response
|
|
737
|
-
)
|
|
738
|
-
when 595
|
|
739
|
-
raise APIException.new(
|
|
740
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
741
|
-
' requests are receiving this status code for an' \
|
|
742
|
-
' extended period of time.',
|
|
743
|
-
_response
|
|
744
|
-
)
|
|
745
|
-
when 596
|
|
746
|
-
raise APIException.new(
|
|
747
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
748
|
-
' requests are receiving this status code for an' \
|
|
749
|
-
' extended period of time.',
|
|
750
|
-
_response
|
|
751
|
-
)
|
|
752
|
-
when 597
|
|
753
|
-
raise APIException.new(
|
|
754
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
755
|
-
' requests are receiving this status code for an' \
|
|
756
|
-
' extended period of time.',
|
|
757
|
-
_response
|
|
758
|
-
)
|
|
759
|
-
when 598
|
|
760
|
-
raise APIException.new(
|
|
761
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
762
|
-
' requests are receiving this status code for an' \
|
|
763
|
-
' extended period of time.',
|
|
764
|
-
_response
|
|
765
|
-
)
|
|
766
|
-
when 599
|
|
767
|
-
raise APIException.new(
|
|
768
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
769
|
-
' requests are receiving this status code for an' \
|
|
770
|
-
' extended period of time.',
|
|
771
|
-
_response
|
|
772
|
-
)
|
|
773
|
-
end
|
|
774
|
-
validate_response(_response)
|
|
775
|
-
|
|
776
|
-
# Return appropriate response type.
|
|
777
|
-
decoded = APIHelper.json_deserialize(_response.raw_body)
|
|
778
|
-
ApiResponse.new(
|
|
779
|
-
_response, data: OrderResponse.from_hash(decoded)
|
|
780
|
-
)
|
|
781
|
-
end
|
|
782
|
-
|
|
783
|
-
# Query an existing TN Lookup Order.
|
|
784
|
-
# @param [String] account_id Required parameter: The ID of the Bandwidth
|
|
785
|
-
# account that the user belongs to.
|
|
786
|
-
# @param [String] request_id Required parameter: Example:
|
|
787
|
-
# @return [OrderStatus] response from the API call
|
|
788
|
-
def get_lookup_request_status(account_id,
|
|
789
|
-
request_id)
|
|
790
|
-
# Prepare query url.
|
|
791
|
-
_query_builder = config.get_base_uri(Server::PHONENUMBERLOOKUPDEFAULT)
|
|
792
|
-
_query_builder << '/accounts/{accountId}/tnlookup/{requestId}'
|
|
793
|
-
_query_builder = APIHelper.append_url_with_template_parameters(
|
|
794
|
-
_query_builder,
|
|
795
|
-
'accountId' => { 'value' => account_id, 'encode' => false },
|
|
796
|
-
'requestId' => { 'value' => request_id, 'encode' => false }
|
|
797
|
-
)
|
|
798
|
-
_query_url = APIHelper.clean_url _query_builder
|
|
799
|
-
|
|
800
|
-
# Prepare headers.
|
|
801
|
-
_headers = {
|
|
802
|
-
'accept' => 'application/json'
|
|
803
|
-
}
|
|
804
|
-
|
|
805
|
-
# Prepare and execute HttpRequest.
|
|
806
|
-
_request = config.http_client.get(
|
|
807
|
-
_query_url,
|
|
808
|
-
headers: _headers
|
|
809
|
-
)
|
|
810
|
-
PhoneNumberLookupBasicAuth.apply(config, _request)
|
|
811
|
-
_response = execute_request(_request)
|
|
812
|
-
|
|
813
|
-
# Validate response against endpoint and global error codes.
|
|
814
|
-
case _response.status_code
|
|
815
|
-
when 400
|
|
816
|
-
raise APIException.new(
|
|
817
|
-
'Bad Request. Ensure that you have set the requestId as a URL path' \
|
|
818
|
-
' parameter.',
|
|
819
|
-
_response
|
|
820
|
-
)
|
|
821
|
-
when 401
|
|
822
|
-
raise APIException.new(
|
|
823
|
-
'Unauthorized. Ensure that you are using the proper credentials' \
|
|
824
|
-
' for the environment you are accessing, your user has' \
|
|
825
|
-
' the proper role assigned to it, and that your' \
|
|
826
|
-
' Bandwidth account is enabled for TN Lookup access.',
|
|
827
|
-
_response
|
|
828
|
-
)
|
|
829
|
-
when 404
|
|
830
|
-
raise APIException.new(
|
|
831
|
-
'RequestId not found. Ensure that the requestId used in the URL' \
|
|
832
|
-
' path is valid and maps to a previous request that was' \
|
|
833
|
-
' submitted.',
|
|
834
|
-
_response
|
|
835
|
-
)
|
|
836
|
-
when 429
|
|
837
|
-
raise APIException.new(
|
|
838
|
-
'Too Many Requests. Reduce the amount of requests that you are' \
|
|
839
|
-
' sending in order to avoid receiving this status code.',
|
|
840
|
-
_response
|
|
841
|
-
)
|
|
842
|
-
when 500
|
|
843
|
-
raise APIException.new(
|
|
844
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
845
|
-
' requests are receiving this status code for an' \
|
|
846
|
-
' extended period of time.',
|
|
847
|
-
_response
|
|
848
|
-
)
|
|
849
|
-
when 501
|
|
850
|
-
raise APIException.new(
|
|
851
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
852
|
-
' requests are receiving this status code for an' \
|
|
853
|
-
' extended period of time.',
|
|
854
|
-
_response
|
|
855
|
-
)
|
|
856
|
-
when 502
|
|
857
|
-
raise APIException.new(
|
|
858
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
859
|
-
' requests are receiving this status code for an' \
|
|
860
|
-
' extended period of time.',
|
|
861
|
-
_response
|
|
862
|
-
)
|
|
863
|
-
when 503
|
|
864
|
-
raise APIException.new(
|
|
865
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
866
|
-
' requests are receiving this status code for an' \
|
|
867
|
-
' extended period of time.',
|
|
868
|
-
_response
|
|
869
|
-
)
|
|
870
|
-
when 504
|
|
871
|
-
raise APIException.new(
|
|
872
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
873
|
-
' requests are receiving this status code for an' \
|
|
874
|
-
' extended period of time.',
|
|
875
|
-
_response
|
|
876
|
-
)
|
|
877
|
-
when 505
|
|
878
|
-
raise APIException.new(
|
|
879
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
880
|
-
' requests are receiving this status code for an' \
|
|
881
|
-
' extended period of time.',
|
|
882
|
-
_response
|
|
883
|
-
)
|
|
884
|
-
when 506
|
|
885
|
-
raise APIException.new(
|
|
886
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
887
|
-
' requests are receiving this status code for an' \
|
|
888
|
-
' extended period of time.',
|
|
889
|
-
_response
|
|
890
|
-
)
|
|
891
|
-
when 507
|
|
892
|
-
raise APIException.new(
|
|
893
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
894
|
-
' requests are receiving this status code for an' \
|
|
895
|
-
' extended period of time.',
|
|
896
|
-
_response
|
|
897
|
-
)
|
|
898
|
-
when 508
|
|
899
|
-
raise APIException.new(
|
|
900
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
901
|
-
' requests are receiving this status code for an' \
|
|
902
|
-
' extended period of time.',
|
|
903
|
-
_response
|
|
904
|
-
)
|
|
905
|
-
when 509
|
|
906
|
-
raise APIException.new(
|
|
907
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
908
|
-
' requests are receiving this status code for an' \
|
|
909
|
-
' extended period of time.',
|
|
910
|
-
_response
|
|
911
|
-
)
|
|
912
|
-
when 510
|
|
913
|
-
raise APIException.new(
|
|
914
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
915
|
-
' requests are receiving this status code for an' \
|
|
916
|
-
' extended period of time.',
|
|
917
|
-
_response
|
|
918
|
-
)
|
|
919
|
-
when 511
|
|
920
|
-
raise APIException.new(
|
|
921
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
922
|
-
' requests are receiving this status code for an' \
|
|
923
|
-
' extended period of time.',
|
|
924
|
-
_response
|
|
925
|
-
)
|
|
926
|
-
when 512
|
|
927
|
-
raise APIException.new(
|
|
928
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
929
|
-
' requests are receiving this status code for an' \
|
|
930
|
-
' extended period of time.',
|
|
931
|
-
_response
|
|
932
|
-
)
|
|
933
|
-
when 513
|
|
934
|
-
raise APIException.new(
|
|
935
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
936
|
-
' requests are receiving this status code for an' \
|
|
937
|
-
' extended period of time.',
|
|
938
|
-
_response
|
|
939
|
-
)
|
|
940
|
-
when 514
|
|
941
|
-
raise APIException.new(
|
|
942
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
943
|
-
' requests are receiving this status code for an' \
|
|
944
|
-
' extended period of time.',
|
|
945
|
-
_response
|
|
946
|
-
)
|
|
947
|
-
when 515
|
|
948
|
-
raise APIException.new(
|
|
949
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
950
|
-
' requests are receiving this status code for an' \
|
|
951
|
-
' extended period of time.',
|
|
952
|
-
_response
|
|
953
|
-
)
|
|
954
|
-
when 516
|
|
955
|
-
raise APIException.new(
|
|
956
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
957
|
-
' requests are receiving this status code for an' \
|
|
958
|
-
' extended period of time.',
|
|
959
|
-
_response
|
|
960
|
-
)
|
|
961
|
-
when 517
|
|
962
|
-
raise APIException.new(
|
|
963
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
964
|
-
' requests are receiving this status code for an' \
|
|
965
|
-
' extended period of time.',
|
|
966
|
-
_response
|
|
967
|
-
)
|
|
968
|
-
when 518
|
|
969
|
-
raise APIException.new(
|
|
970
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
971
|
-
' requests are receiving this status code for an' \
|
|
972
|
-
' extended period of time.',
|
|
973
|
-
_response
|
|
974
|
-
)
|
|
975
|
-
when 519
|
|
976
|
-
raise APIException.new(
|
|
977
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
978
|
-
' requests are receiving this status code for an' \
|
|
979
|
-
' extended period of time.',
|
|
980
|
-
_response
|
|
981
|
-
)
|
|
982
|
-
when 520
|
|
983
|
-
raise APIException.new(
|
|
984
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
985
|
-
' requests are receiving this status code for an' \
|
|
986
|
-
' extended period of time.',
|
|
987
|
-
_response
|
|
988
|
-
)
|
|
989
|
-
when 521
|
|
990
|
-
raise APIException.new(
|
|
991
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
992
|
-
' requests are receiving this status code for an' \
|
|
993
|
-
' extended period of time.',
|
|
994
|
-
_response
|
|
995
|
-
)
|
|
996
|
-
when 522
|
|
997
|
-
raise APIException.new(
|
|
998
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
999
|
-
' requests are receiving this status code for an' \
|
|
1000
|
-
' extended period of time.',
|
|
1001
|
-
_response
|
|
1002
|
-
)
|
|
1003
|
-
when 523
|
|
1004
|
-
raise APIException.new(
|
|
1005
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1006
|
-
' requests are receiving this status code for an' \
|
|
1007
|
-
' extended period of time.',
|
|
1008
|
-
_response
|
|
1009
|
-
)
|
|
1010
|
-
when 524
|
|
1011
|
-
raise APIException.new(
|
|
1012
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1013
|
-
' requests are receiving this status code for an' \
|
|
1014
|
-
' extended period of time.',
|
|
1015
|
-
_response
|
|
1016
|
-
)
|
|
1017
|
-
when 525
|
|
1018
|
-
raise APIException.new(
|
|
1019
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1020
|
-
' requests are receiving this status code for an' \
|
|
1021
|
-
' extended period of time.',
|
|
1022
|
-
_response
|
|
1023
|
-
)
|
|
1024
|
-
when 526
|
|
1025
|
-
raise APIException.new(
|
|
1026
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1027
|
-
' requests are receiving this status code for an' \
|
|
1028
|
-
' extended period of time.',
|
|
1029
|
-
_response
|
|
1030
|
-
)
|
|
1031
|
-
when 527
|
|
1032
|
-
raise APIException.new(
|
|
1033
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1034
|
-
' requests are receiving this status code for an' \
|
|
1035
|
-
' extended period of time.',
|
|
1036
|
-
_response
|
|
1037
|
-
)
|
|
1038
|
-
when 528
|
|
1039
|
-
raise APIException.new(
|
|
1040
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1041
|
-
' requests are receiving this status code for an' \
|
|
1042
|
-
' extended period of time.',
|
|
1043
|
-
_response
|
|
1044
|
-
)
|
|
1045
|
-
when 529
|
|
1046
|
-
raise APIException.new(
|
|
1047
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1048
|
-
' requests are receiving this status code for an' \
|
|
1049
|
-
' extended period of time.',
|
|
1050
|
-
_response
|
|
1051
|
-
)
|
|
1052
|
-
when 530
|
|
1053
|
-
raise APIException.new(
|
|
1054
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1055
|
-
' requests are receiving this status code for an' \
|
|
1056
|
-
' extended period of time.',
|
|
1057
|
-
_response
|
|
1058
|
-
)
|
|
1059
|
-
when 531
|
|
1060
|
-
raise APIException.new(
|
|
1061
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1062
|
-
' requests are receiving this status code for an' \
|
|
1063
|
-
' extended period of time.',
|
|
1064
|
-
_response
|
|
1065
|
-
)
|
|
1066
|
-
when 532
|
|
1067
|
-
raise APIException.new(
|
|
1068
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1069
|
-
' requests are receiving this status code for an' \
|
|
1070
|
-
' extended period of time.',
|
|
1071
|
-
_response
|
|
1072
|
-
)
|
|
1073
|
-
when 533
|
|
1074
|
-
raise APIException.new(
|
|
1075
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1076
|
-
' requests are receiving this status code for an' \
|
|
1077
|
-
' extended period of time.',
|
|
1078
|
-
_response
|
|
1079
|
-
)
|
|
1080
|
-
when 534
|
|
1081
|
-
raise APIException.new(
|
|
1082
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1083
|
-
' requests are receiving this status code for an' \
|
|
1084
|
-
' extended period of time.',
|
|
1085
|
-
_response
|
|
1086
|
-
)
|
|
1087
|
-
when 535
|
|
1088
|
-
raise APIException.new(
|
|
1089
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1090
|
-
' requests are receiving this status code for an' \
|
|
1091
|
-
' extended period of time.',
|
|
1092
|
-
_response
|
|
1093
|
-
)
|
|
1094
|
-
when 536
|
|
1095
|
-
raise APIException.new(
|
|
1096
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1097
|
-
' requests are receiving this status code for an' \
|
|
1098
|
-
' extended period of time.',
|
|
1099
|
-
_response
|
|
1100
|
-
)
|
|
1101
|
-
when 537
|
|
1102
|
-
raise APIException.new(
|
|
1103
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1104
|
-
' requests are receiving this status code for an' \
|
|
1105
|
-
' extended period of time.',
|
|
1106
|
-
_response
|
|
1107
|
-
)
|
|
1108
|
-
when 538
|
|
1109
|
-
raise APIException.new(
|
|
1110
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1111
|
-
' requests are receiving this status code for an' \
|
|
1112
|
-
' extended period of time.',
|
|
1113
|
-
_response
|
|
1114
|
-
)
|
|
1115
|
-
when 539
|
|
1116
|
-
raise APIException.new(
|
|
1117
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1118
|
-
' requests are receiving this status code for an' \
|
|
1119
|
-
' extended period of time.',
|
|
1120
|
-
_response
|
|
1121
|
-
)
|
|
1122
|
-
when 540
|
|
1123
|
-
raise APIException.new(
|
|
1124
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1125
|
-
' requests are receiving this status code for an' \
|
|
1126
|
-
' extended period of time.',
|
|
1127
|
-
_response
|
|
1128
|
-
)
|
|
1129
|
-
when 541
|
|
1130
|
-
raise APIException.new(
|
|
1131
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1132
|
-
' requests are receiving this status code for an' \
|
|
1133
|
-
' extended period of time.',
|
|
1134
|
-
_response
|
|
1135
|
-
)
|
|
1136
|
-
when 542
|
|
1137
|
-
raise APIException.new(
|
|
1138
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1139
|
-
' requests are receiving this status code for an' \
|
|
1140
|
-
' extended period of time.',
|
|
1141
|
-
_response
|
|
1142
|
-
)
|
|
1143
|
-
when 543
|
|
1144
|
-
raise APIException.new(
|
|
1145
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1146
|
-
' requests are receiving this status code for an' \
|
|
1147
|
-
' extended period of time.',
|
|
1148
|
-
_response
|
|
1149
|
-
)
|
|
1150
|
-
when 544
|
|
1151
|
-
raise APIException.new(
|
|
1152
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1153
|
-
' requests are receiving this status code for an' \
|
|
1154
|
-
' extended period of time.',
|
|
1155
|
-
_response
|
|
1156
|
-
)
|
|
1157
|
-
when 545
|
|
1158
|
-
raise APIException.new(
|
|
1159
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1160
|
-
' requests are receiving this status code for an' \
|
|
1161
|
-
' extended period of time.',
|
|
1162
|
-
_response
|
|
1163
|
-
)
|
|
1164
|
-
when 546
|
|
1165
|
-
raise APIException.new(
|
|
1166
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1167
|
-
' requests are receiving this status code for an' \
|
|
1168
|
-
' extended period of time.',
|
|
1169
|
-
_response
|
|
1170
|
-
)
|
|
1171
|
-
when 547
|
|
1172
|
-
raise APIException.new(
|
|
1173
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1174
|
-
' requests are receiving this status code for an' \
|
|
1175
|
-
' extended period of time.',
|
|
1176
|
-
_response
|
|
1177
|
-
)
|
|
1178
|
-
when 548
|
|
1179
|
-
raise APIException.new(
|
|
1180
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1181
|
-
' requests are receiving this status code for an' \
|
|
1182
|
-
' extended period of time.',
|
|
1183
|
-
_response
|
|
1184
|
-
)
|
|
1185
|
-
when 549
|
|
1186
|
-
raise APIException.new(
|
|
1187
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1188
|
-
' requests are receiving this status code for an' \
|
|
1189
|
-
' extended period of time.',
|
|
1190
|
-
_response
|
|
1191
|
-
)
|
|
1192
|
-
when 550
|
|
1193
|
-
raise APIException.new(
|
|
1194
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1195
|
-
' requests are receiving this status code for an' \
|
|
1196
|
-
' extended period of time.',
|
|
1197
|
-
_response
|
|
1198
|
-
)
|
|
1199
|
-
when 551
|
|
1200
|
-
raise APIException.new(
|
|
1201
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1202
|
-
' requests are receiving this status code for an' \
|
|
1203
|
-
' extended period of time.',
|
|
1204
|
-
_response
|
|
1205
|
-
)
|
|
1206
|
-
when 552
|
|
1207
|
-
raise APIException.new(
|
|
1208
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1209
|
-
' requests are receiving this status code for an' \
|
|
1210
|
-
' extended period of time.',
|
|
1211
|
-
_response
|
|
1212
|
-
)
|
|
1213
|
-
when 553
|
|
1214
|
-
raise APIException.new(
|
|
1215
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1216
|
-
' requests are receiving this status code for an' \
|
|
1217
|
-
' extended period of time.',
|
|
1218
|
-
_response
|
|
1219
|
-
)
|
|
1220
|
-
when 554
|
|
1221
|
-
raise APIException.new(
|
|
1222
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1223
|
-
' requests are receiving this status code for an' \
|
|
1224
|
-
' extended period of time.',
|
|
1225
|
-
_response
|
|
1226
|
-
)
|
|
1227
|
-
when 555
|
|
1228
|
-
raise APIException.new(
|
|
1229
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1230
|
-
' requests are receiving this status code for an' \
|
|
1231
|
-
' extended period of time.',
|
|
1232
|
-
_response
|
|
1233
|
-
)
|
|
1234
|
-
when 556
|
|
1235
|
-
raise APIException.new(
|
|
1236
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1237
|
-
' requests are receiving this status code for an' \
|
|
1238
|
-
' extended period of time.',
|
|
1239
|
-
_response
|
|
1240
|
-
)
|
|
1241
|
-
when 557
|
|
1242
|
-
raise APIException.new(
|
|
1243
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1244
|
-
' requests are receiving this status code for an' \
|
|
1245
|
-
' extended period of time.',
|
|
1246
|
-
_response
|
|
1247
|
-
)
|
|
1248
|
-
when 558
|
|
1249
|
-
raise APIException.new(
|
|
1250
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1251
|
-
' requests are receiving this status code for an' \
|
|
1252
|
-
' extended period of time.',
|
|
1253
|
-
_response
|
|
1254
|
-
)
|
|
1255
|
-
when 559
|
|
1256
|
-
raise APIException.new(
|
|
1257
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1258
|
-
' requests are receiving this status code for an' \
|
|
1259
|
-
' extended period of time.',
|
|
1260
|
-
_response
|
|
1261
|
-
)
|
|
1262
|
-
when 560
|
|
1263
|
-
raise APIException.new(
|
|
1264
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1265
|
-
' requests are receiving this status code for an' \
|
|
1266
|
-
' extended period of time.',
|
|
1267
|
-
_response
|
|
1268
|
-
)
|
|
1269
|
-
when 561
|
|
1270
|
-
raise APIException.new(
|
|
1271
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1272
|
-
' requests are receiving this status code for an' \
|
|
1273
|
-
' extended period of time.',
|
|
1274
|
-
_response
|
|
1275
|
-
)
|
|
1276
|
-
when 562
|
|
1277
|
-
raise APIException.new(
|
|
1278
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1279
|
-
' requests are receiving this status code for an' \
|
|
1280
|
-
' extended period of time.',
|
|
1281
|
-
_response
|
|
1282
|
-
)
|
|
1283
|
-
when 563
|
|
1284
|
-
raise APIException.new(
|
|
1285
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1286
|
-
' requests are receiving this status code for an' \
|
|
1287
|
-
' extended period of time.',
|
|
1288
|
-
_response
|
|
1289
|
-
)
|
|
1290
|
-
when 564
|
|
1291
|
-
raise APIException.new(
|
|
1292
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1293
|
-
' requests are receiving this status code for an' \
|
|
1294
|
-
' extended period of time.',
|
|
1295
|
-
_response
|
|
1296
|
-
)
|
|
1297
|
-
when 565
|
|
1298
|
-
raise APIException.new(
|
|
1299
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1300
|
-
' requests are receiving this status code for an' \
|
|
1301
|
-
' extended period of time.',
|
|
1302
|
-
_response
|
|
1303
|
-
)
|
|
1304
|
-
when 566
|
|
1305
|
-
raise APIException.new(
|
|
1306
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1307
|
-
' requests are receiving this status code for an' \
|
|
1308
|
-
' extended period of time.',
|
|
1309
|
-
_response
|
|
1310
|
-
)
|
|
1311
|
-
when 567
|
|
1312
|
-
raise APIException.new(
|
|
1313
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1314
|
-
' requests are receiving this status code for an' \
|
|
1315
|
-
' extended period of time.',
|
|
1316
|
-
_response
|
|
1317
|
-
)
|
|
1318
|
-
when 568
|
|
1319
|
-
raise APIException.new(
|
|
1320
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1321
|
-
' requests are receiving this status code for an' \
|
|
1322
|
-
' extended period of time.',
|
|
1323
|
-
_response
|
|
1324
|
-
)
|
|
1325
|
-
when 569
|
|
1326
|
-
raise APIException.new(
|
|
1327
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1328
|
-
' requests are receiving this status code for an' \
|
|
1329
|
-
' extended period of time.',
|
|
1330
|
-
_response
|
|
1331
|
-
)
|
|
1332
|
-
when 570
|
|
1333
|
-
raise APIException.new(
|
|
1334
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1335
|
-
' requests are receiving this status code for an' \
|
|
1336
|
-
' extended period of time.',
|
|
1337
|
-
_response
|
|
1338
|
-
)
|
|
1339
|
-
when 571
|
|
1340
|
-
raise APIException.new(
|
|
1341
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1342
|
-
' requests are receiving this status code for an' \
|
|
1343
|
-
' extended period of time.',
|
|
1344
|
-
_response
|
|
1345
|
-
)
|
|
1346
|
-
when 572
|
|
1347
|
-
raise APIException.new(
|
|
1348
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1349
|
-
' requests are receiving this status code for an' \
|
|
1350
|
-
' extended period of time.',
|
|
1351
|
-
_response
|
|
1352
|
-
)
|
|
1353
|
-
when 573
|
|
1354
|
-
raise APIException.new(
|
|
1355
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1356
|
-
' requests are receiving this status code for an' \
|
|
1357
|
-
' extended period of time.',
|
|
1358
|
-
_response
|
|
1359
|
-
)
|
|
1360
|
-
when 574
|
|
1361
|
-
raise APIException.new(
|
|
1362
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1363
|
-
' requests are receiving this status code for an' \
|
|
1364
|
-
' extended period of time.',
|
|
1365
|
-
_response
|
|
1366
|
-
)
|
|
1367
|
-
when 575
|
|
1368
|
-
raise APIException.new(
|
|
1369
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1370
|
-
' requests are receiving this status code for an' \
|
|
1371
|
-
' extended period of time.',
|
|
1372
|
-
_response
|
|
1373
|
-
)
|
|
1374
|
-
when 576
|
|
1375
|
-
raise APIException.new(
|
|
1376
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1377
|
-
' requests are receiving this status code for an' \
|
|
1378
|
-
' extended period of time.',
|
|
1379
|
-
_response
|
|
1380
|
-
)
|
|
1381
|
-
when 577
|
|
1382
|
-
raise APIException.new(
|
|
1383
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1384
|
-
' requests are receiving this status code for an' \
|
|
1385
|
-
' extended period of time.',
|
|
1386
|
-
_response
|
|
1387
|
-
)
|
|
1388
|
-
when 578
|
|
1389
|
-
raise APIException.new(
|
|
1390
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1391
|
-
' requests are receiving this status code for an' \
|
|
1392
|
-
' extended period of time.',
|
|
1393
|
-
_response
|
|
1394
|
-
)
|
|
1395
|
-
when 579
|
|
1396
|
-
raise APIException.new(
|
|
1397
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1398
|
-
' requests are receiving this status code for an' \
|
|
1399
|
-
' extended period of time.',
|
|
1400
|
-
_response
|
|
1401
|
-
)
|
|
1402
|
-
when 580
|
|
1403
|
-
raise APIException.new(
|
|
1404
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1405
|
-
' requests are receiving this status code for an' \
|
|
1406
|
-
' extended period of time.',
|
|
1407
|
-
_response
|
|
1408
|
-
)
|
|
1409
|
-
when 581
|
|
1410
|
-
raise APIException.new(
|
|
1411
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1412
|
-
' requests are receiving this status code for an' \
|
|
1413
|
-
' extended period of time.',
|
|
1414
|
-
_response
|
|
1415
|
-
)
|
|
1416
|
-
when 582
|
|
1417
|
-
raise APIException.new(
|
|
1418
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1419
|
-
' requests are receiving this status code for an' \
|
|
1420
|
-
' extended period of time.',
|
|
1421
|
-
_response
|
|
1422
|
-
)
|
|
1423
|
-
when 583
|
|
1424
|
-
raise APIException.new(
|
|
1425
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1426
|
-
' requests are receiving this status code for an' \
|
|
1427
|
-
' extended period of time.',
|
|
1428
|
-
_response
|
|
1429
|
-
)
|
|
1430
|
-
when 584
|
|
1431
|
-
raise APIException.new(
|
|
1432
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1433
|
-
' requests are receiving this status code for an' \
|
|
1434
|
-
' extended period of time.',
|
|
1435
|
-
_response
|
|
1436
|
-
)
|
|
1437
|
-
when 585
|
|
1438
|
-
raise APIException.new(
|
|
1439
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1440
|
-
' requests are receiving this status code for an' \
|
|
1441
|
-
' extended period of time.',
|
|
1442
|
-
_response
|
|
1443
|
-
)
|
|
1444
|
-
when 586
|
|
1445
|
-
raise APIException.new(
|
|
1446
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1447
|
-
' requests are receiving this status code for an' \
|
|
1448
|
-
' extended period of time.',
|
|
1449
|
-
_response
|
|
1450
|
-
)
|
|
1451
|
-
when 587
|
|
1452
|
-
raise APIException.new(
|
|
1453
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1454
|
-
' requests are receiving this status code for an' \
|
|
1455
|
-
' extended period of time.',
|
|
1456
|
-
_response
|
|
1457
|
-
)
|
|
1458
|
-
when 588
|
|
1459
|
-
raise APIException.new(
|
|
1460
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1461
|
-
' requests are receiving this status code for an' \
|
|
1462
|
-
' extended period of time.',
|
|
1463
|
-
_response
|
|
1464
|
-
)
|
|
1465
|
-
when 589
|
|
1466
|
-
raise APIException.new(
|
|
1467
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1468
|
-
' requests are receiving this status code for an' \
|
|
1469
|
-
' extended period of time.',
|
|
1470
|
-
_response
|
|
1471
|
-
)
|
|
1472
|
-
when 590
|
|
1473
|
-
raise APIException.new(
|
|
1474
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1475
|
-
' requests are receiving this status code for an' \
|
|
1476
|
-
' extended period of time.',
|
|
1477
|
-
_response
|
|
1478
|
-
)
|
|
1479
|
-
when 591
|
|
1480
|
-
raise APIException.new(
|
|
1481
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1482
|
-
' requests are receiving this status code for an' \
|
|
1483
|
-
' extended period of time.',
|
|
1484
|
-
_response
|
|
1485
|
-
)
|
|
1486
|
-
when 592
|
|
1487
|
-
raise APIException.new(
|
|
1488
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1489
|
-
' requests are receiving this status code for an' \
|
|
1490
|
-
' extended period of time.',
|
|
1491
|
-
_response
|
|
1492
|
-
)
|
|
1493
|
-
when 593
|
|
1494
|
-
raise APIException.new(
|
|
1495
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1496
|
-
' requests are receiving this status code for an' \
|
|
1497
|
-
' extended period of time.',
|
|
1498
|
-
_response
|
|
1499
|
-
)
|
|
1500
|
-
when 594
|
|
1501
|
-
raise APIException.new(
|
|
1502
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1503
|
-
' requests are receiving this status code for an' \
|
|
1504
|
-
' extended period of time.',
|
|
1505
|
-
_response
|
|
1506
|
-
)
|
|
1507
|
-
when 595
|
|
1508
|
-
raise APIException.new(
|
|
1509
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1510
|
-
' requests are receiving this status code for an' \
|
|
1511
|
-
' extended period of time.',
|
|
1512
|
-
_response
|
|
1513
|
-
)
|
|
1514
|
-
when 596
|
|
1515
|
-
raise APIException.new(
|
|
1516
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1517
|
-
' requests are receiving this status code for an' \
|
|
1518
|
-
' extended period of time.',
|
|
1519
|
-
_response
|
|
1520
|
-
)
|
|
1521
|
-
when 597
|
|
1522
|
-
raise APIException.new(
|
|
1523
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1524
|
-
' requests are receiving this status code for an' \
|
|
1525
|
-
' extended period of time.',
|
|
1526
|
-
_response
|
|
1527
|
-
)
|
|
1528
|
-
when 598
|
|
1529
|
-
raise APIException.new(
|
|
1530
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1531
|
-
' requests are receiving this status code for an' \
|
|
1532
|
-
' extended period of time.',
|
|
1533
|
-
_response
|
|
1534
|
-
)
|
|
1535
|
-
when 599
|
|
1536
|
-
raise APIException.new(
|
|
1537
|
-
'Unexpected error. Please contact Bandwidth Support if your' \
|
|
1538
|
-
' requests are receiving this status code for an' \
|
|
1539
|
-
' extended period of time.',
|
|
1540
|
-
_response
|
|
1541
|
-
)
|
|
1542
|
-
end
|
|
1543
|
-
validate_response(_response)
|
|
1544
|
-
|
|
1545
|
-
# Return appropriate response type.
|
|
1546
|
-
decoded = APIHelper.json_deserialize(_response.raw_body)
|
|
1547
|
-
ApiResponse.new(
|
|
1548
|
-
_response, data: OrderStatus.from_hash(decoded)
|
|
1549
|
-
)
|
|
1550
|
-
end
|
|
1551
|
-
end
|
|
1552
|
-
end
|
|
1553
|
-
end
|