bandwidth-sdk 18.1.2 → 18.1.4
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.lock +54 -8
- data/UPDATING_MODEL_TESTS.md +17 -2
- data/bandwidth-sdk.gemspec +2 -2
- data/bandwidth.yml +161 -55
- data/coverage/.last_run.json +1 -1
- data/coverage/.resultset.json +149 -69
- data/coverage/index.html +2892 -2040
- data/custom_templates/gemspec.mustache +1 -1
- data/docs/AnswerCallback.md +3 -1
- data/docs/DisconnectCallback.md +5 -1
- data/docs/InitiateCallback.md +5 -1
- data/docs/MediaApi.md +8 -8
- data/docs/MessagesApi.md +4 -4
- data/docs/MultiChannelApi.md +2 -2
- data/docs/RbmActionBase.md +1 -1
- data/docs/RbmSuggestionResponse.md +1 -1
- data/docs/StatusCallback.md +1 -1
- data/lib/bandwidth-sdk/api/calls_api.rb +6 -6
- data/lib/bandwidth-sdk/api/conferences_api.rb +10 -10
- data/lib/bandwidth-sdk/api/endpoints_api.rb +6 -6
- data/lib/bandwidth-sdk/api/media_api.rb +13 -13
- data/lib/bandwidth-sdk/api/messages_api.rb +7 -7
- data/lib/bandwidth-sdk/api/mfa_api.rb +4 -4
- data/lib/bandwidth-sdk/api/multi_channel_api.rb +4 -4
- data/lib/bandwidth-sdk/api/phone_number_lookup_api.rb +4 -4
- data/lib/bandwidth-sdk/api/recordings_api.rb +11 -11
- data/lib/bandwidth-sdk/api/statistics_api.rb +2 -2
- data/lib/bandwidth-sdk/api/toll_free_verification_api.rb +9 -9
- data/lib/bandwidth-sdk/api/transcriptions_api.rb +4 -4
- data/lib/bandwidth-sdk/api_client.rb +1 -1
- data/lib/bandwidth-sdk/api_error.rb +1 -1
- data/lib/bandwidth-sdk/api_model_base.rb +1 -1
- data/lib/bandwidth-sdk/configuration.rb +1 -1
- data/lib/bandwidth-sdk/models/account_statistics.rb +1 -1
- data/lib/bandwidth-sdk/models/additional_denial_reason.rb +1 -1
- data/lib/bandwidth-sdk/models/address.rb +1 -1
- data/lib/bandwidth-sdk/models/answer_callback.rb +16 -6
- data/lib/bandwidth-sdk/models/async_lookup_request.rb +1 -1
- data/lib/bandwidth-sdk/models/blocked_webhook.rb +1 -1
- data/lib/bandwidth-sdk/models/bridge_complete_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/bridge_target_complete_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/brtc_error.rb +1 -1
- data/lib/bandwidth-sdk/models/brtc_error_response.rb +1 -1
- data/lib/bandwidth-sdk/models/brtc_error_source.rb +1 -1
- data/lib/bandwidth-sdk/models/brtc_link.rb +1 -1
- data/lib/bandwidth-sdk/models/business_entity_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/business_registration_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/bxml/root.rb +1 -1
- data/lib/bandwidth-sdk/models/bxml/verb.rb +1 -1
- data/lib/bandwidth-sdk/models/bxml/verbs/gather.rb +1 -1
- data/lib/bandwidth-sdk/models/bxml/verbs/speak_sentence.rb +1 -1
- data/lib/bandwidth-sdk/models/call_direction_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/call_recording_metadata.rb +1 -1
- data/lib/bandwidth-sdk/models/call_state.rb +1 -1
- data/lib/bandwidth-sdk/models/call_state_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/call_transcription.rb +1 -1
- data/lib/bandwidth-sdk/models/call_transcription_detected_language_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/call_transcription_metadata.rb +1 -1
- data/lib/bandwidth-sdk/models/call_transcription_response.rb +1 -1
- data/lib/bandwidth-sdk/models/call_transcription_track_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/callback.rb +1 -1
- data/lib/bandwidth-sdk/models/callback_method_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/card_width_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/code_request.rb +1 -1
- data/lib/bandwidth-sdk/models/completed_lookup_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/conference.rb +1 -1
- data/lib/bandwidth-sdk/models/conference_completed_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/conference_created_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/conference_member.rb +1 -1
- data/lib/bandwidth-sdk/models/conference_member_exit_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/conference_member_join_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/conference_recording_available_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/conference_recording_metadata.rb +1 -1
- data/lib/bandwidth-sdk/models/conference_redirect_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/conference_state_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/contact.rb +1 -1
- data/lib/bandwidth-sdk/models/create_async_bulk_lookup_response.rb +1 -1
- data/lib/bandwidth-sdk/models/create_async_bulk_lookup_response_data.rb +1 -1
- data/lib/bandwidth-sdk/models/create_call.rb +1 -1
- data/lib/bandwidth-sdk/models/create_call_response.rb +1 -1
- data/lib/bandwidth-sdk/models/create_endpoint_request_base.rb +1 -1
- data/lib/bandwidth-sdk/models/create_endpoint_response.rb +1 -1
- data/lib/bandwidth-sdk/models/create_endpoint_response_data.rb +1 -1
- data/lib/bandwidth-sdk/models/create_message_request_error.rb +1 -1
- data/lib/bandwidth-sdk/models/create_multi_channel_message_response.rb +1 -1
- data/lib/bandwidth-sdk/models/create_sync_lookup_response.rb +1 -1
- data/lib/bandwidth-sdk/models/create_sync_lookup_response_data.rb +1 -1
- data/lib/bandwidth-sdk/models/create_web_rtc_connection_request.rb +1 -1
- data/lib/bandwidth-sdk/models/deactivation_event_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/device.rb +1 -1
- data/lib/bandwidth-sdk/models/device_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/disconnect_callback.rb +26 -6
- data/lib/bandwidth-sdk/models/diversion.rb +1 -1
- data/lib/bandwidth-sdk/models/dtmf_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/endpoint.rb +1 -1
- data/lib/bandwidth-sdk/models/endpoint_direction_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/endpoint_event.rb +1 -1
- data/lib/bandwidth-sdk/models/endpoint_event_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/endpoint_response.rb +1 -1
- data/lib/bandwidth-sdk/models/endpoint_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/endpoint_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/endpoints.rb +1 -1
- data/lib/bandwidth-sdk/models/error_object.rb +1 -1
- data/lib/bandwidth-sdk/models/error_source.rb +1 -1
- data/lib/bandwidth-sdk/models/failure_webhook.rb +1 -1
- data/lib/bandwidth-sdk/models/field_error.rb +1 -1
- data/lib/bandwidth-sdk/models/file_format_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/gather_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/get_async_bulk_lookup_response.rb +1 -1
- data/lib/bandwidth-sdk/models/get_async_bulk_lookup_response_data.rb +1 -1
- data/lib/bandwidth-sdk/models/in_progress_lookup_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/inbound_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/inbound_callback_message.rb +1 -1
- data/lib/bandwidth-sdk/models/inbound_callback_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/initiate_callback.rb +27 -5
- data/lib/bandwidth-sdk/models/latest_message_delivery_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/line_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/link.rb +1 -1
- data/lib/bandwidth-sdk/models/link_schema.rb +1 -1
- data/lib/bandwidth-sdk/models/links_object.rb +1 -1
- data/lib/bandwidth-sdk/models/list_endpoints_response.rb +1 -1
- data/lib/bandwidth-sdk/models/list_message_direction_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/list_message_item.rb +1 -1
- data/lib/bandwidth-sdk/models/lookup_error_response.rb +1 -1
- data/lib/bandwidth-sdk/models/lookup_error_schema.rb +1 -1
- data/lib/bandwidth-sdk/models/lookup_error_schema_meta.rb +1 -1
- data/lib/bandwidth-sdk/models/lookup_result.rb +1 -1
- data/lib/bandwidth-sdk/models/machine_detection_complete_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/machine_detection_configuration.rb +1 -1
- data/lib/bandwidth-sdk/models/machine_detection_mode_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/machine_detection_result.rb +1 -1
- data/lib/bandwidth-sdk/models/media.rb +1 -1
- data/lib/bandwidth-sdk/models/message.rb +1 -1
- data/lib/bandwidth-sdk/models/message_direction_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/message_request.rb +1 -1
- data/lib/bandwidth-sdk/models/message_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/message_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/messages_list.rb +1 -1
- data/lib/bandwidth-sdk/models/messaging_code_response.rb +1 -1
- data/lib/bandwidth-sdk/models/messaging_request_error.rb +1 -1
- data/lib/bandwidth-sdk/models/mfa_forbidden_request_error.rb +1 -1
- data/lib/bandwidth-sdk/models/mfa_request_error.rb +1 -1
- data/lib/bandwidth-sdk/models/mfa_unauthorized_request_error.rb +1 -1
- data/lib/bandwidth-sdk/models/mms_message_content.rb +1 -1
- data/lib/bandwidth-sdk/models/mms_message_content_file.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_action.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_action_calendar_event.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_mms_object.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_mms_response_object.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_object_base.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_owner_object.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_rbm_object.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_rbm_object_all_of_content.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_rbm_response_object.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_request_object.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_response_object.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_sms_object.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_sms_response_object.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_error.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_message_channel_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_message_content.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_message_request.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_message_response_data.rb +1 -1
- data/lib/bandwidth-sdk/models/opt_in_workflow.rb +1 -1
- data/lib/bandwidth-sdk/models/page.rb +1 -1
- data/lib/bandwidth-sdk/models/page_info.rb +1 -1
- data/lib/bandwidth-sdk/models/priority_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/product_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_action_base.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_action_dial.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_action_open_url.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_action_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_action_view_location.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_card_content.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_card_content_media.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_location_response.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_media_height_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_message_carousel_card.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_message_content_file.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_message_content_rich_card.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_message_content_text.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_message_media.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_open_url_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_standalone_card.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_suggestion_response.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_web_view_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/recording_available_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/recording_complete_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/recording_state_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/recording_transcription_clip.rb +1 -1
- data/lib/bandwidth-sdk/models/recording_transcription_metadata.rb +1 -1
- data/lib/bandwidth-sdk/models/recording_transcriptions.rb +1 -1
- data/lib/bandwidth-sdk/models/redirect_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/redirect_method_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/sip_connection_metadata.rb +1 -1
- data/lib/bandwidth-sdk/models/sip_credentials.rb +1 -1
- data/lib/bandwidth-sdk/models/sms_message_content.rb +1 -1
- data/lib/bandwidth-sdk/models/standalone_card_orientation_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/status_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/status_callback_message.rb +1 -1
- data/lib/bandwidth-sdk/models/status_callback_type_enum.rb +3 -2
- data/lib/bandwidth-sdk/models/stir_shaken.rb +1 -1
- data/lib/bandwidth-sdk/models/sync_lookup_request.rb +1 -1
- data/lib/bandwidth-sdk/models/telephone_number.rb +1 -1
- data/lib/bandwidth-sdk/models/tfv_basic_authentication.rb +1 -1
- data/lib/bandwidth-sdk/models/tfv_callback_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/tfv_error.rb +1 -1
- data/lib/bandwidth-sdk/models/tfv_status.rb +1 -1
- data/lib/bandwidth-sdk/models/tfv_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/tfv_submission_info.rb +1 -1
- data/lib/bandwidth-sdk/models/tfv_submission_wrapper.rb +1 -1
- data/lib/bandwidth-sdk/models/thumbnail_alignment_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/transcribe_recording.rb +1 -1
- data/lib/bandwidth-sdk/models/transcription.rb +1 -1
- data/lib/bandwidth-sdk/models/transcription_available_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/transfer_answer_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/transfer_complete_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/transfer_disconnect_callback.rb +1 -1
- data/lib/bandwidth-sdk/models/update_call.rb +1 -1
- data/lib/bandwidth-sdk/models/update_call_recording.rb +1 -1
- data/lib/bandwidth-sdk/models/update_conference.rb +1 -1
- data/lib/bandwidth-sdk/models/update_conference_member.rb +1 -1
- data/lib/bandwidth-sdk/models/verification_denial_webhook.rb +1 -1
- data/lib/bandwidth-sdk/models/verification_request.rb +1 -1
- data/lib/bandwidth-sdk/models/verification_update_request.rb +1 -1
- data/lib/bandwidth-sdk/models/verification_webhook.rb +1 -1
- data/lib/bandwidth-sdk/models/verify_code_request.rb +1 -1
- data/lib/bandwidth-sdk/models/verify_code_response.rb +1 -1
- data/lib/bandwidth-sdk/models/voice_api_error.rb +1 -1
- data/lib/bandwidth-sdk/models/voice_code_response.rb +1 -1
- data/lib/bandwidth-sdk/models/webhook_subscription.rb +1 -1
- data/lib/bandwidth-sdk/models/webhook_subscription_basic_authentication.rb +1 -1
- data/lib/bandwidth-sdk/models/webhook_subscription_error.rb +1 -1
- data/lib/bandwidth-sdk/models/webhook_subscription_request_schema.rb +1 -1
- data/lib/bandwidth-sdk/models/webhook_subscription_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/webhook_subscriptions_list_body.rb +1 -1
- data/lib/bandwidth-sdk/version.rb +2 -2
- data/lib/bandwidth-sdk.rb +1 -1
- data/openapitools.json +1 -1
- data/spec/unit/models/account_statistics_spec.rb +1 -1
- data/spec/unit/models/additional_denial_reason_spec.rb +1 -1
- data/spec/unit/models/address_spec.rb +1 -1
- data/spec/unit/models/answer_callback_spec.rb +8 -4
- data/spec/unit/models/async_lookup_request_spec.rb +1 -1
- data/spec/unit/models/blocked_webhook_spec.rb +1 -1
- data/spec/unit/models/bridge_complete_callback_spec.rb +1 -1
- data/spec/unit/models/bridge_target_complete_callback_spec.rb +1 -1
- data/spec/unit/models/brtc_error_response_spec.rb +1 -1
- data/spec/unit/models/brtc_error_source_spec.rb +1 -1
- data/spec/unit/models/brtc_error_spec.rb +1 -1
- data/spec/unit/models/brtc_link_spec.rb +1 -1
- data/spec/unit/models/call_recording_metadata_spec.rb +1 -1
- data/spec/unit/models/call_state_spec.rb +1 -1
- data/spec/unit/models/call_transcription_metadata_spec.rb +1 -1
- data/spec/unit/models/call_transcription_response_spec.rb +1 -1
- data/spec/unit/models/call_transcription_spec.rb +1 -1
- data/spec/unit/models/code_request_spec.rb +1 -1
- data/spec/unit/models/conference_completed_callback_spec.rb +1 -1
- data/spec/unit/models/conference_created_callback_spec.rb +1 -1
- data/spec/unit/models/conference_member_exit_callback_spec.rb +1 -1
- data/spec/unit/models/conference_member_join_callback_spec.rb +1 -1
- data/spec/unit/models/conference_member_spec.rb +1 -1
- data/spec/unit/models/conference_recording_available_callback_spec.rb +1 -1
- data/spec/unit/models/conference_recording_metadata_spec.rb +1 -1
- data/spec/unit/models/conference_redirect_callback_spec.rb +1 -1
- data/spec/unit/models/conference_spec.rb +1 -1
- data/spec/unit/models/contact_spec.rb +1 -1
- data/spec/unit/models/create_async_bulk_lookup_response_data_spec.rb +1 -1
- data/spec/unit/models/create_async_bulk_lookup_response_spec.rb +1 -1
- data/spec/unit/models/create_call_response_spec.rb +1 -1
- data/spec/unit/models/create_call_spec.rb +1 -1
- data/spec/unit/models/create_endpoint_request_base_spec.rb +1 -1
- data/spec/unit/models/create_endpoint_response_data_spec.rb +1 -1
- data/spec/unit/models/create_endpoint_response_spec.rb +1 -1
- data/spec/unit/models/create_message_request_error_spec.rb +1 -1
- data/spec/unit/models/create_multi_channel_message_response_spec.rb +1 -1
- data/spec/unit/models/create_sync_lookup_response_data_spec.rb +1 -1
- data/spec/unit/models/create_sync_lookup_response_spec.rb +1 -1
- data/spec/unit/models/create_web_rtc_connection_request_spec.rb +1 -1
- data/spec/unit/models/device_spec.rb +1 -1
- data/spec/unit/models/disconnect_callback_spec.rb +12 -4
- data/spec/unit/models/diversion_spec.rb +1 -1
- data/spec/unit/models/dtmf_callback_spec.rb +1 -1
- data/spec/unit/models/endpoint_event_spec.rb +1 -1
- data/spec/unit/models/endpoint_response_spec.rb +1 -1
- data/spec/unit/models/endpoint_spec.rb +1 -1
- data/spec/unit/models/endpoints_spec.rb +1 -1
- data/spec/unit/models/error_object_spec.rb +1 -1
- data/spec/unit/models/error_source_spec.rb +1 -1
- data/spec/unit/models/failure_webhook_spec.rb +1 -1
- data/spec/unit/models/field_error_spec.rb +1 -1
- data/spec/unit/models/gather_callback_spec.rb +1 -1
- data/spec/unit/models/get_async_bulk_lookup_response_data_spec.rb +1 -1
- data/spec/unit/models/get_async_bulk_lookup_response_spec.rb +1 -1
- data/spec/unit/models/inbound_callback_message_spec.rb +1 -1
- data/spec/unit/models/inbound_callback_spec.rb +1 -1
- data/spec/unit/models/initiate_callback_spec.rb +13 -4
- data/spec/unit/models/link_schema_spec.rb +1 -1
- data/spec/unit/models/link_spec.rb +1 -1
- data/spec/unit/models/links_object_spec.rb +1 -1
- data/spec/unit/models/list_endpoints_response_spec.rb +1 -1
- data/spec/unit/models/list_message_item_spec.rb +1 -1
- data/spec/unit/models/lookup_error_response_spec.rb +1 -1
- data/spec/unit/models/lookup_error_schema_meta_spec.rb +1 -1
- data/spec/unit/models/lookup_error_schema_spec.rb +1 -1
- data/spec/unit/models/lookup_result_spec.rb +1 -1
- data/spec/unit/models/machine_detection_complete_callback_spec.rb +1 -1
- data/spec/unit/models/machine_detection_configuration_spec.rb +1 -1
- data/spec/unit/models/machine_detection_result_spec.rb +1 -1
- data/spec/unit/models/media_spec.rb +1 -1
- data/spec/unit/models/message_request_spec.rb +1 -1
- data/spec/unit/models/message_spec.rb +1 -1
- data/spec/unit/models/messages_list_spec.rb +1 -1
- data/spec/unit/models/messaging_code_response_spec.rb +1 -1
- data/spec/unit/models/messaging_request_error_spec.rb +1 -1
- data/spec/unit/models/mfa_forbidden_request_error_spec.rb +1 -1
- data/spec/unit/models/mfa_request_error_spec.rb +1 -1
- data/spec/unit/models/mfa_unauthorized_request_error_spec.rb +1 -1
- data/spec/unit/models/mms_message_content_file_spec.rb +1 -1
- data/spec/unit/models/mms_message_content_spec.rb +1 -1
- data/spec/unit/models/multi_channel_action_calendar_event_spec.rb +1 -1
- data/spec/unit/models/multi_channel_channel_list_mms_object_spec.rb +1 -1
- data/spec/unit/models/multi_channel_channel_list_mms_response_object_spec.rb +1 -1
- data/spec/unit/models/multi_channel_channel_list_object_base_spec.rb +1 -1
- data/spec/unit/models/multi_channel_channel_list_owner_object_spec.rb +1 -1
- data/spec/unit/models/multi_channel_channel_list_rbm_object_spec.rb +1 -1
- data/spec/unit/models/multi_channel_channel_list_rbm_response_object_spec.rb +1 -1
- data/spec/unit/models/multi_channel_channel_list_sms_object_spec.rb +1 -1
- data/spec/unit/models/multi_channel_channel_list_sms_response_object_spec.rb +1 -1
- data/spec/unit/models/multi_channel_error_spec.rb +1 -1
- data/spec/unit/models/multi_channel_message_content_spec.rb +1 -1
- data/spec/unit/models/multi_channel_message_request_spec.rb +1 -1
- data/spec/unit/models/multi_channel_message_response_data_spec.rb +1 -1
- data/spec/unit/models/opt_in_workflow_spec.rb +1 -1
- data/spec/unit/models/page_info_spec.rb +1 -1
- data/spec/unit/models/page_spec.rb +1 -1
- data/spec/unit/models/rbm_action_base_spec.rb +1 -1
- data/spec/unit/models/rbm_action_dial_spec.rb +1 -1
- data/spec/unit/models/rbm_action_open_url_spec.rb +1 -1
- data/spec/unit/models/rbm_action_view_location_spec.rb +1 -1
- data/spec/unit/models/rbm_card_content_media_spec.rb +1 -1
- data/spec/unit/models/rbm_card_content_spec.rb +1 -1
- data/spec/unit/models/rbm_location_response_spec.rb +1 -1
- data/spec/unit/models/rbm_message_carousel_card_spec.rb +1 -1
- data/spec/unit/models/rbm_message_content_file_spec.rb +1 -1
- data/spec/unit/models/rbm_message_content_text_spec.rb +1 -1
- data/spec/unit/models/rbm_message_media_spec.rb +1 -1
- data/spec/unit/models/rbm_standalone_card_spec.rb +1 -1
- data/spec/unit/models/rbm_suggestion_response_spec.rb +1 -1
- data/spec/unit/models/recording_available_callback_spec.rb +1 -1
- data/spec/unit/models/recording_complete_callback_spec.rb +1 -1
- data/spec/unit/models/recording_transcription_clip_spec.rb +1 -1
- data/spec/unit/models/recording_transcription_metadata_spec.rb +1 -1
- data/spec/unit/models/recording_transcriptions_spec.rb +1 -1
- data/spec/unit/models/redirect_callback_spec.rb +1 -1
- data/spec/unit/models/sip_connection_metadata_spec.rb +1 -1
- data/spec/unit/models/sip_credentials_spec.rb +1 -1
- data/spec/unit/models/sms_message_content_spec.rb +1 -1
- data/spec/unit/models/status_callback_message_spec.rb +1 -1
- data/spec/unit/models/status_callback_spec.rb +1 -1
- data/spec/unit/models/status_callback_type_enum_spec.rb +6 -0
- data/spec/unit/models/stir_shaken_spec.rb +1 -1
- data/spec/unit/models/sync_lookup_request_spec.rb +1 -1
- data/spec/unit/models/telephone_number_spec.rb +1 -1
- data/spec/unit/models/tfv_basic_authentication_spec.rb +1 -1
- data/spec/unit/models/tfv_error_spec.rb +1 -1
- data/spec/unit/models/tfv_status_spec.rb +1 -1
- data/spec/unit/models/tfv_submission_info_spec.rb +1 -1
- data/spec/unit/models/tfv_submission_wrapper_spec.rb +1 -1
- data/spec/unit/models/transcribe_recording_spec.rb +1 -1
- data/spec/unit/models/transcription_available_callback_spec.rb +1 -1
- data/spec/unit/models/transcription_spec.rb +1 -1
- data/spec/unit/models/transfer_answer_callback_spec.rb +1 -1
- data/spec/unit/models/transfer_complete_callback_spec.rb +1 -1
- data/spec/unit/models/transfer_disconnect_callback_spec.rb +1 -1
- data/spec/unit/models/update_call_recording_spec.rb +1 -1
- data/spec/unit/models/update_call_spec.rb +1 -1
- data/spec/unit/models/update_conference_member_spec.rb +1 -1
- data/spec/unit/models/update_conference_spec.rb +1 -1
- data/spec/unit/models/verification_denial_webhook_spec.rb +1 -1
- data/spec/unit/models/verification_request_spec.rb +1 -1
- data/spec/unit/models/verification_update_request_spec.rb +1 -1
- data/spec/unit/models/verification_webhook_spec.rb +1 -1
- data/spec/unit/models/verify_code_request_spec.rb +1 -1
- data/spec/unit/models/verify_code_response_spec.rb +1 -1
- data/spec/unit/models/voice_api_error_spec.rb +1 -1
- data/spec/unit/models/voice_code_response_spec.rb +1 -1
- data/spec/unit/models/webhook_subscription_basic_authentication_spec.rb +1 -1
- data/spec/unit/models/webhook_subscription_error_spec.rb +1 -1
- data/spec/unit/models/webhook_subscription_request_schema_spec.rb +1 -1
- data/spec/unit/models/webhook_subscription_spec.rb +1 -1
- data/spec/unit/models/webhook_subscriptions_list_body_spec.rb +1 -1
- metadata +230 -227
|
@@ -83,7 +83,7 @@ describe Bandwidth::TfvStatus do
|
|
|
83
83
|
|
|
84
84
|
describe '#to_s' do
|
|
85
85
|
it 'returns a string representation of the object' do
|
|
86
|
-
expect(tfv_status_values.to_s).to eq(
|
|
86
|
+
expect(tfv_status_values.to_s).to eq({ :phoneNumber => '+18005554321', :status => 'VERIFIED', :internalTicketNumber => '8c8f33f8-0d72-43c8-8b6c-1da8f0a9e6b3', :declineReasonDescription => 'The reason for declining', :denialStatusCode => 100, :additionalDenialReasons => [{ :statusCode => 100, :reason => 'reason text', :resubmitAllowed => true }], :resubmitAllowed => false, :createdDateTime => '2024-01-01T00:00:00Z', :modifiedDateTime => '2024-01-02T00:00:00Z', :submission => { :businessAddress => { :name => 'Bandwidth' } }, :blocked => false, :blockedReason => 'The reason for blocking', :cvToken => 'cv_token_value' }.to_s)
|
|
87
87
|
end
|
|
88
88
|
end
|
|
89
89
|
|
|
@@ -94,7 +94,7 @@ describe Bandwidth::TfvSubmissionInfo do
|
|
|
94
94
|
|
|
95
95
|
describe '#to_s' do
|
|
96
96
|
it 'returns a string representation of the object' do
|
|
97
|
-
expect(tfv_submission_info_values.to_s).to eq(
|
|
97
|
+
expect(tfv_submission_info_values.to_s).to eq({ :businessAddress => { :name => 'Bandwidth' }, :businessContact => { :firstName => 'Jane' }, :messageVolume => 1000, :useCase => 'Customer notifications', :useCaseSummary => 'Send customers updates about their orders', :productionMessageContent => 'Your order has shipped', :optInWorkflow => { :description => 'opt-in via website', :imageUrls => ['https://example.com/optin.png'] }, :additionalInformation => 'extra info', :isvReseller => 'My ISV', :privacyPolicyUrl => 'https://example.com/privacy', :termsAndConditionsUrl => 'https://example.com/terms', :businessDba => 'Bandwidth Inc', :businessRegistrationNumber => '12-3456789', :businessRegistrationType => 'EIN', :businessRegistrationIssuingCountry => 'USA', :businessEntityType => 'PRIVATE_PROFIT' }.to_s)
|
|
98
98
|
end
|
|
99
99
|
end
|
|
100
100
|
|
|
@@ -55,7 +55,7 @@ describe Bandwidth::TfvSubmissionWrapper do
|
|
|
55
55
|
|
|
56
56
|
describe '#to_s' do
|
|
57
57
|
it 'returns a string representation of the object' do
|
|
58
|
-
expect(tfv_submission_wrapper_values.to_s).to eq(
|
|
58
|
+
expect(tfv_submission_wrapper_values.to_s).to eq({ :submission => { :businessDba => 'Bandwidth Inc' } }.to_s)
|
|
59
59
|
end
|
|
60
60
|
end
|
|
61
61
|
|
|
@@ -68,7 +68,7 @@ describe Bandwidth::TranscribeRecording do
|
|
|
68
68
|
|
|
69
69
|
describe '#to_s' do
|
|
70
70
|
it 'returns a string representation of the object' do
|
|
71
|
-
expect(transcribe_recording_values.to_s).to eq(
|
|
71
|
+
expect(transcribe_recording_values.to_s).to eq({ :callbackUrl => 'https://example.com/callback', :callbackMethod => 'POST', :username => 'mySecretUsername', :password => 'mySecretPassword', :tag => 'arbitrary tag', :callbackTimeout => 5.5, :detectLanguage => true }.to_s)
|
|
72
72
|
end
|
|
73
73
|
end
|
|
74
74
|
|
|
@@ -109,7 +109,7 @@ describe Bandwidth::TranscriptionAvailableCallback do
|
|
|
109
109
|
|
|
110
110
|
describe '#to_s' do
|
|
111
111
|
it 'returns a string representation of the object' do
|
|
112
|
-
expect(transcription_available_callback_values.to_s).to eq(
|
|
112
|
+
expect(transcription_available_callback_values.to_s).to eq({ :eventType => 'transcriptionAvailable', :eventTime => '2022-06-16T13:15:07.160Z', :accountId => '9900000', :applicationId => '04e88489-df02-4e34-a0ee-27a91849555f', :from => '+19195554321', :to => '+19195551234', :direction => 'inbound', :callId => 'c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85', :callUrl => 'https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85', :mediaUrl => 'https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85/recordings/r-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85/media', :parentCallId => 'c-95ac29a2-1331029c-2cb0-4a07-b215-b22865662d99', :recordingId => 'r-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85', :enqueuedTime => '2022-06-16T13:15:07.160Z', :startTime => '2022-06-16T13:15:07.160Z', :endTime => '2022-06-16T13:17:07.160Z', :duration => 'PT2M', :fileFormat => 'wav', :tag => 'custom tag', :transcription => { :text => 'Hello world.', :confidence => 0.9 }, :transferCallerId => '+19195554321', :transferTo => '+19195551234' }.to_s)
|
|
113
113
|
end
|
|
114
114
|
end
|
|
115
115
|
|
|
@@ -49,7 +49,7 @@ describe Bandwidth::Transcription do
|
|
|
49
49
|
|
|
50
50
|
describe '#to_s' do
|
|
51
51
|
it 'returns a string representation of the object' do
|
|
52
|
-
expect(transcription_values.to_s).to eq(
|
|
52
|
+
expect(transcription_values.to_s).to eq({ :speaker => 1, :text => 'Hello World! Thank you for calling.', :confidence => 0.9 }.to_s)
|
|
53
53
|
end
|
|
54
54
|
end
|
|
55
55
|
|
|
@@ -89,7 +89,7 @@ describe Bandwidth::TransferAnswerCallback do
|
|
|
89
89
|
|
|
90
90
|
describe '#to_s' do
|
|
91
91
|
it 'returns a string representation of the object' do
|
|
92
|
-
expect(transfer_answer_callback_values.to_s).to eq(
|
|
92
|
+
expect(transfer_answer_callback_values.to_s).to eq({ :eventType => 'transferAnswer', :eventTime => '2022-06-16T13:15:07.160Z', :accountId => '9900000', :applicationId => '04e88489-df02-4e34-a0ee-27a91849555f', :from => '+19195554321', :to => '+19195551234', :direction => 'outbound', :callId => 'c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85', :callUrl => 'https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85', :enqueuedTime => '2022-06-16T13:15:07.160Z', :startTime => '2022-06-16T13:15:07.160Z', :answerTime => '2022-06-16T13:15:18.126Z', :tag => 'custom tag', :transferCallerId => '+19195554321', :transferTo => '+19195551234' }.to_s)
|
|
93
93
|
end
|
|
94
94
|
end
|
|
95
95
|
|
|
@@ -100,7 +100,7 @@ describe Bandwidth::TransferCompleteCallback do
|
|
|
100
100
|
|
|
101
101
|
describe '#to_s' do
|
|
102
102
|
it 'returns a string representation of the object' do
|
|
103
|
-
expect(transfer_complete_callback_values.to_s).to eq(
|
|
103
|
+
expect(transfer_complete_callback_values.to_s).to eq({ :eventType => 'transferComplete', :eventTime => '2022-06-16T13:15:07.160Z', :accountId => '9900000', :applicationId => '04e88489-df02-4e34-a0ee-27a91849555f', :from => '+19195554321', :to => '+19195551234', :direction => 'outbound', :callId => 'c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85', :callUrl => 'https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85', :enqueuedTime => '2022-06-16T13:15:07.160Z', :startTime => '2022-06-16T13:15:07.160Z', :answerTime => '2022-06-16T13:15:18.126Z', :tag => 'custom tag', :transferCallerId => '+19195554321', :transferTo => '+19195551234', :cause => 'hangup', :errorMessage => 'call rejected', :errorId => '4642074b-7b58-478b-96e4-3a60955c6765' }.to_s)
|
|
104
104
|
end
|
|
105
105
|
end
|
|
106
106
|
|
|
@@ -106,7 +106,7 @@ describe Bandwidth::TransferDisconnectCallback do
|
|
|
106
106
|
|
|
107
107
|
describe '#to_s' do
|
|
108
108
|
it 'returns a string representation of the object' do
|
|
109
|
-
expect(transfer_disconnect_callback_values.to_s).to eq(
|
|
109
|
+
expect(transfer_disconnect_callback_values.to_s).to eq({ :eventType => 'transferDisconnect', :eventTime => '2022-06-16T13:15:07.160Z', :accountId => '9900000', :applicationId => '04e88489-df02-4e34-a0ee-27a91849555f', :from => '+19195554321', :to => '+19195551234', :direction => 'outbound', :callId => 'c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85', :callUrl => 'https://voice.bandwidth.com/api/v2/accounts/9900000/calls/c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85', :parentCallId => 'c-95ac29a2-1331029c-2cb0-4a07-b215-b22865662d99', :enqueuedTime => '2022-06-16T13:15:07.160Z', :startTime => '2022-06-16T13:15:07.160Z', :answerTime => '2022-06-16T13:15:18.126Z', :endTime => '2022-06-16T13:16:18.126Z', :tag => 'custom tag', :transferCallerId => '+19195554321', :transferTo => '+19195551234', :cause => 'hangup', :errorMessage => 'call rejected', :errorId => '4642074b-7b58-478b-96e4-3a60955c6765' }.to_s)
|
|
110
110
|
end
|
|
111
111
|
end
|
|
112
112
|
|
|
@@ -45,7 +45,7 @@ describe Bandwidth::UpdateCallRecording do
|
|
|
45
45
|
|
|
46
46
|
describe '#to_s' do
|
|
47
47
|
it 'returns a string representation of the object' do
|
|
48
|
-
expect(update_call_recording_values.to_s).to eq(
|
|
48
|
+
expect(update_call_recording_values.to_s).to eq({ :state => 'recording' }.to_s)
|
|
49
49
|
end
|
|
50
50
|
end
|
|
51
51
|
|
|
@@ -81,7 +81,7 @@ describe Bandwidth::UpdateCall do
|
|
|
81
81
|
|
|
82
82
|
describe '#to_s' do
|
|
83
83
|
it 'returns a string representation of the object' do
|
|
84
|
-
expect(update_call_values.to_s).to eq(
|
|
84
|
+
expect(update_call_values.to_s).to eq({ :state => 'active', :redirectUrl => 'https://example.com/redirect', :redirectMethod => 'POST', :username => 'mySecretUsername', :password => 'mySecretPassword', :redirectFallbackUrl => 'https://example.com/fallback', :redirectFallbackMethod => 'GET', :fallbackUsername => 'fallbackUser', :fallbackPassword => 'fallbackPass', :tag => 'custom tag' }.to_s)
|
|
85
85
|
end
|
|
86
86
|
end
|
|
87
87
|
|
|
@@ -49,7 +49,7 @@ describe Bandwidth::UpdateConferenceMember do
|
|
|
49
49
|
|
|
50
50
|
describe '#to_s' do
|
|
51
51
|
it 'returns a string representation of the object' do
|
|
52
|
-
expect(update_conference_member_values.to_s).to eq(
|
|
52
|
+
expect(update_conference_member_values.to_s).to eq({ :mute => true, :hold => false, :callIdsToCoach => ['c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85'] }.to_s)
|
|
53
53
|
end
|
|
54
54
|
end
|
|
55
55
|
|
|
@@ -77,7 +77,7 @@ describe Bandwidth::UpdateConference do
|
|
|
77
77
|
|
|
78
78
|
describe '#to_s' do
|
|
79
79
|
it 'returns a string representation of the object' do
|
|
80
|
-
expect(update_conference_values.to_s).to eq(
|
|
80
|
+
expect(update_conference_values.to_s).to eq({ :status => 'active', :redirectUrl => 'https://example.com/redirect', :redirectMethod => 'POST', :username => 'mySecretUsername', :password => 'mySecretPassword', :redirectFallbackUrl => 'https://example.com/fallback', :redirectFallbackMethod => 'GET', :fallbackUsername => 'fallbackUser', :fallbackPassword => 'fallbackPass' }.to_s)
|
|
81
81
|
end
|
|
82
82
|
end
|
|
83
83
|
|
|
@@ -73,7 +73,7 @@ describe Bandwidth::VerificationDenialWebhook do
|
|
|
73
73
|
|
|
74
74
|
describe '#to_s' do
|
|
75
75
|
it 'returns a string representation of the object' do
|
|
76
|
-
expect(verification_denial_webhook_values.to_s).to eq(
|
|
76
|
+
expect(verification_denial_webhook_values.to_s).to eq({ :accountId => '9900000', :additionalDenialReasons => [{ :statusCode => 100, :reason => 'reason text', :resubmitAllowed => true }], :declineReasonDescription => 'The reason for declining', :denialStatusCode => 100, :internalTicketNumber => '8c8f33f8-0d72-43c8-8b6c-1da8f0a9e6b3', :phoneNumber => '+18005554321', :resubmitAllowed => true, :status => 'UNVERIFIED', :blocked => false, :blockedReason => 'The reason for blocking' }.to_s)
|
|
77
77
|
end
|
|
78
78
|
end
|
|
79
79
|
|
|
@@ -118,7 +118,7 @@ describe Bandwidth::VerificationRequest do
|
|
|
118
118
|
|
|
119
119
|
describe '#to_s' do
|
|
120
120
|
it 'returns a string representation of the object' do
|
|
121
|
-
expect(verification_request_values.to_s).to eq(
|
|
121
|
+
expect(verification_request_values.to_s).to eq({ :businessAddress => { :name => 'Bandwidth' }, :businessContact => { :firstName => 'Jane' }, :messageVolume => 1000, :phoneNumbers => ['+18005554321'], :useCase => 'Customer notifications', :useCaseSummary => 'Send customers updates about their orders', :productionMessageContent => 'Your order has shipped', :optInWorkflow => { :description => 'opt-in via website', :imageUrls => ['https://example.com/optin.png'] }, :additionalInformation => 'extra info', :isvReseller => 'My ISV', :privacyPolicyUrl => 'https://example.com/privacy', :termsAndConditionsUrl => 'https://example.com/terms', :businessDba => 'Bandwidth Inc', :businessRegistrationNumber => '12-3456789', :businessRegistrationType => 'EIN', :businessRegistrationIssuingCountry => 'USA', :businessEntityType => 'PRIVATE_PROFIT', :helpMessageResponse => 'For help reply with HELP', :ageGatedContent => false, :cvToken => 'cv_token_value' }.to_s)
|
|
122
122
|
end
|
|
123
123
|
end
|
|
124
124
|
|
|
@@ -113,7 +113,7 @@ describe Bandwidth::VerificationUpdateRequest do
|
|
|
113
113
|
|
|
114
114
|
describe '#to_s' do
|
|
115
115
|
it 'returns a string representation of the object' do
|
|
116
|
-
expect(verification_update_request_values.to_s).to eq(
|
|
116
|
+
expect(verification_update_request_values.to_s).to eq({ :businessAddress => { :name => 'Bandwidth' }, :businessContact => { :firstName => 'Jane' }, :messageVolume => 1000, :useCase => 'Customer notifications', :useCaseSummary => 'Send customers updates about their orders', :productionMessageContent => 'Your order has shipped', :optInWorkflow => { :description => 'opt-in via website', :imageUrls => ['https://example.com/optin.png'] }, :additionalInformation => 'extra info', :isvReseller => 'My ISV', :privacyPolicyUrl => 'https://example.com/privacy', :termsAndConditionsUrl => 'https://example.com/terms', :businessDba => 'Bandwidth Inc', :businessRegistrationNumber => '12-3456789', :businessRegistrationType => 'EIN', :businessEntityType => 'PRIVATE_PROFIT', :businessRegistrationIssuingCountry => 'USA', :helpMessageResponse => 'For help reply with HELP', :ageGatedContent => false, :cvToken => 'cv_token_value' }.to_s)
|
|
117
117
|
end
|
|
118
118
|
end
|
|
119
119
|
|
|
@@ -52,7 +52,7 @@ describe Bandwidth::VerificationWebhook do
|
|
|
52
52
|
|
|
53
53
|
describe '#to_s' do
|
|
54
54
|
it 'returns a string representation of the object' do
|
|
55
|
-
expect(verification_webhook_values.to_s).to eq(
|
|
55
|
+
expect(verification_webhook_values.to_s).to eq({ :accountId => '9900000', :phoneNumber => '+18005554321', :status => 'VERIFIED', :internalTicketNumber => '8c8f33f8-0d72-43c8-8b6c-1da8f0a9e6b3' }.to_s)
|
|
56
56
|
end
|
|
57
57
|
end
|
|
58
58
|
|
|
@@ -56,7 +56,7 @@ describe Bandwidth::VerifyCodeRequest do
|
|
|
56
56
|
|
|
57
57
|
describe '#to_s' do
|
|
58
58
|
it 'returns a string representation of the object' do
|
|
59
|
-
expect(verify_code_request_values.to_s).to eq(
|
|
59
|
+
expect(verify_code_request_values.to_s).to eq({ :to => '+19195551234', :scope => '2FA', :expirationTimeInMinutes => 1.0, :code => '123456' }.to_s)
|
|
60
60
|
end
|
|
61
61
|
end
|
|
62
62
|
|
|
@@ -43,7 +43,7 @@ describe Bandwidth::VerifyCodeResponse do
|
|
|
43
43
|
|
|
44
44
|
describe '#to_s' do
|
|
45
45
|
it 'returns a string representation of the object' do
|
|
46
|
-
expect(verify_code_response_values.to_s).to eq(
|
|
46
|
+
expect(verify_code_response_values.to_s).to eq({ :valid => true }.to_s)
|
|
47
47
|
end
|
|
48
48
|
end
|
|
49
49
|
|
|
@@ -49,7 +49,7 @@ describe Bandwidth::VoiceApiError do
|
|
|
49
49
|
|
|
50
50
|
describe '#to_s' do
|
|
51
51
|
it 'returns a string representation of the object' do
|
|
52
|
-
expect(voice_api_error_values.to_s).to eq(
|
|
52
|
+
expect(voice_api_error_values.to_s).to eq({ :type => 'validation', :description => 'request body is invalid', :id => 'c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85' }.to_s)
|
|
53
53
|
end
|
|
54
54
|
end
|
|
55
55
|
|
|
@@ -43,7 +43,7 @@ describe Bandwidth::VoiceCodeResponse do
|
|
|
43
43
|
|
|
44
44
|
describe '#to_s' do
|
|
45
45
|
it 'returns a string representation of the object' do
|
|
46
|
-
expect(voice_code_response_values.to_s).to eq(
|
|
46
|
+
expect(voice_code_response_values.to_s).to eq({ :callId => 'c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85' }.to_s)
|
|
47
47
|
end
|
|
48
48
|
end
|
|
49
49
|
|
|
@@ -49,7 +49,7 @@ describe Bandwidth::WebhookSubscriptionBasicAuthentication do
|
|
|
49
49
|
|
|
50
50
|
describe '#to_s' do
|
|
51
51
|
it 'returns a string representation of the object' do
|
|
52
|
-
expect(webhook_subscription_basic_authentication_values.to_s).to eq(
|
|
52
|
+
expect(webhook_subscription_basic_authentication_values.to_s).to eq({ :username => 'mySecretUsername', :password => 'mySecretPassword' }.to_s)
|
|
53
53
|
end
|
|
54
54
|
end
|
|
55
55
|
|
|
@@ -53,7 +53,7 @@ describe Bandwidth::WebhookSubscriptionError do
|
|
|
53
53
|
|
|
54
54
|
describe '#to_s' do
|
|
55
55
|
it 'returns a string representation of the object' do
|
|
56
|
-
expect(webhook_subscription_error_values.to_s).to eq(
|
|
56
|
+
expect(webhook_subscription_error_values.to_s).to eq({ :code => 400, :description => 'Invalid request', :telephoneNumbers => [{ :telephoneNumber => '+18005554321' }] }.to_s)
|
|
57
57
|
end
|
|
58
58
|
end
|
|
59
59
|
|
|
@@ -54,7 +54,7 @@ describe Bandwidth::WebhookSubscriptionRequestSchema do
|
|
|
54
54
|
|
|
55
55
|
describe '#to_s' do
|
|
56
56
|
it 'returns a string representation of the object' do
|
|
57
|
-
expect(webhook_subscription_request_schema_values.to_s).to eq(
|
|
57
|
+
expect(webhook_subscription_request_schema_values.to_s).to eq({ :basicAuthentication => { :username => 'user', :password => 'pass' }, :callbackUrl => 'https://example.com/callback', :sharedSecretKey => 'abc123abc123abc1' }.to_s)
|
|
58
58
|
end
|
|
59
59
|
end
|
|
60
60
|
|
|
@@ -61,7 +61,7 @@ describe Bandwidth::WebhookSubscription do
|
|
|
61
61
|
|
|
62
62
|
describe '#to_s' do
|
|
63
63
|
it 'returns a string representation of the object' do
|
|
64
|
-
expect(webhook_subscription_values.to_s).to eq(
|
|
64
|
+
expect(webhook_subscription_values.to_s).to eq({ :id => '6cf73464-0c9f-431f-bd16-3711df296b9a', :accountId => '9900000', :callbackUrl => 'https://example.com/callback', :type => 'TOLLFREE_VERIFICATION_STATUS', :basicAuthentication => { :username => 'user', :password => 'pass' }, :createdDate => '2024-01-01T00:00:00Z', :modifiedDate => '2024-01-02T00:00:00Z' }.to_s)
|
|
65
65
|
end
|
|
66
66
|
end
|
|
67
67
|
|
|
@@ -57,7 +57,7 @@ describe Bandwidth::WebhookSubscriptionsListBody do
|
|
|
57
57
|
|
|
58
58
|
describe '#to_s' do
|
|
59
59
|
it 'returns a string representation of the object' do
|
|
60
|
-
expect(webhook_subscriptions_list_body_values.to_s).to eq(
|
|
60
|
+
expect(webhook_subscriptions_list_body_values.to_s).to eq({ :links => { :self => 'https://example.com/self' }, :errors => [{ :code => 400, :description => 'Invalid request' }], :data => [{ :id => '6cf73464-0c9f-431f-bd16-3711df296b9a', :accountId => '9900000', :callbackUrl => nil }] }.to_s)
|
|
61
61
|
end
|
|
62
62
|
end
|
|
63
63
|
|