bandwidth-sdk 11.0.0.pre.beta.1 → 11.0.0.pre.beta.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +3 -1
- data/Gemfile.lock +46 -23
- data/README.md +7 -3
- data/Rakefile +10 -2
- data/bandwidth-sdk.gemspec +12 -12
- data/bandwidth.yml +409 -353
- data/coverage/.last_run.json +5 -0
- data/coverage/.resultset.json +9792 -0
- data/coverage/.resultset.json.lock +0 -0
- data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_asc.png +0 -0
- data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_asc_disabled.png +0 -0
- data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_both.png +0 -0
- data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_desc.png +0 -0
- data/coverage/assets/0.12.3/DataTables-1.10.20/images/sort_desc_disabled.png +0 -0
- data/coverage/assets/0.12.3/application.css +1 -0
- data/coverage/assets/0.12.3/application.js +7 -0
- data/coverage/assets/0.12.3/colorbox/border.png +0 -0
- data/coverage/assets/0.12.3/colorbox/controls.png +0 -0
- data/coverage/assets/0.12.3/colorbox/loading.gif +0 -0
- data/coverage/assets/0.12.3/colorbox/loading_background.png +0 -0
- data/coverage/assets/0.12.3/favicon_green.png +0 -0
- data/coverage/assets/0.12.3/favicon_red.png +0 -0
- data/coverage/assets/0.12.3/favicon_yellow.png +0 -0
- data/coverage/assets/0.12.3/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/coverage/assets/0.12.3/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/coverage/assets/0.12.3/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/coverage/assets/0.12.3/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/coverage/assets/0.12.3/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/coverage/assets/0.12.3/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/coverage/assets/0.12.3/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/coverage/assets/0.12.3/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/coverage/assets/0.12.3/images/ui-icons_222222_256x240.png +0 -0
- data/coverage/assets/0.12.3/images/ui-icons_2e83ff_256x240.png +0 -0
- data/coverage/assets/0.12.3/images/ui-icons_454545_256x240.png +0 -0
- data/coverage/assets/0.12.3/images/ui-icons_888888_256x240.png +0 -0
- data/coverage/assets/0.12.3/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/coverage/assets/0.12.3/loading.gif +0 -0
- data/coverage/assets/0.12.3/magnify.png +0 -0
- data/coverage/index.html +108612 -0
- data/custom_templates/Gemfile.mustache +11 -0
- data/custom_templates/README.mustache +170 -0
- data/custom_templates/gem.mustache +99 -0
- data/custom_templates/gemspec.mustache +37 -0
- data/custom_templates/version.mustache +7 -0
- data/docs/AnswerCallback.md +3 -3
- data/docs/BridgeCompleteCallback.md +2 -2
- data/docs/BridgeTargetCompleteCallback.md +2 -2
- data/docs/CallState.md +2 -2
- data/docs/CallsApi.md +15 -15
- data/docs/Conference.md +4 -4
- data/docs/ConferenceCompletedCallback.md +2 -2
- data/docs/ConferenceCreatedCallback.md +2 -2
- data/docs/ConferenceMemberExitCallback.md +2 -2
- data/docs/ConferenceMemberJoinCallback.md +2 -2
- data/docs/ConferenceRecordingAvailableCallback.md +2 -2
- data/docs/ConferenceRedirectCallback.md +2 -2
- data/docs/ConferencesApi.md +42 -42
- data/docs/CreateCall.md +11 -11
- data/docs/CreateCallResponse.md +11 -11
- data/docs/DisconnectCallback.md +2 -2
- data/docs/DtmfCallback.md +2 -2
- data/docs/GatherCallback.md +2 -2
- data/docs/InitiateCallback.md +2 -2
- data/docs/ListMessageItem.md +5 -3
- data/docs/MFAApi.md +6 -6
- data/docs/MachineDetectionCompleteCallback.md +3 -3
- data/docs/MachineDetectionConfiguration.md +2 -2
- data/docs/MachineDetectionResult.md +20 -0
- data/docs/Message.md +5 -3
- data/docs/MessageDeliveredCallbackMessage.md +1 -1
- data/docs/MessageFailedCallbackMessage.md +1 -1
- data/docs/MessageRequest.md +1 -1
- data/docs/MessageSendingCallbackMessage.md +1 -1
- data/docs/MessagesApi.md +5 -1
- data/docs/MessagesList.md +1 -1
- data/docs/PhoneNumberLookupApi.md +4 -4
- data/docs/RecordingAvailableCallback.md +2 -2
- data/docs/RecordingCompleteCallback.md +2 -2
- data/docs/RecordingsApi.md +52 -52
- data/docs/RedirectCallback.md +2 -2
- data/docs/StatisticsApi.md +2 -2
- data/docs/TranscribeRecording.md +4 -2
- data/docs/TranscriptionAvailableCallback.md +2 -2
- data/docs/TransferAnswerCallback.md +2 -2
- data/docs/TransferCompleteCallback.md +2 -2
- data/docs/TransferDisconnectCallback.md +2 -2
- data/docs/UpdateCall.md +3 -3
- data/docs/UpdateConference.md +3 -3
- data/lib/bandwidth-sdk/api/calls_api.rb +18 -18
- data/lib/bandwidth-sdk/api/conferences_api.rb +46 -46
- data/lib/bandwidth-sdk/api/media_api.rb +2 -2
- data/lib/bandwidth-sdk/api/messages_api.rb +8 -2
- data/lib/bandwidth-sdk/api/mfa_api.rb +10 -10
- data/lib/bandwidth-sdk/api/phone_number_lookup_api.rb +6 -6
- data/lib/bandwidth-sdk/api/recordings_api.rb +55 -55
- data/lib/bandwidth-sdk/api/statistics_api.rb +3 -3
- data/lib/bandwidth-sdk/api_client.rb +1 -1
- data/lib/bandwidth-sdk/api_error.rb +2 -2
- data/lib/bandwidth-sdk/configuration.rb +3 -3
- data/lib/bandwidth-sdk/models/account_statistics.rb +2 -4
- data/lib/bandwidth-sdk/models/answer_callback.rb +4 -7
- data/lib/bandwidth-sdk/models/bridge_complete_callback.rb +3 -5
- data/lib/bandwidth-sdk/models/bridge_target_complete_callback.rb +3 -5
- data/lib/bandwidth-sdk/models/bxml/bxml.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/nestable_verb.rb +3 -7
- data/lib/bandwidth-sdk/models/bxml/response.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/root.rb +3 -3
- data/lib/bandwidth-sdk/models/bxml/verb.rb +4 -5
- data/lib/bandwidth-sdk/models/bxml/verbs/bridge.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/conference.rb +2 -5
- data/lib/bandwidth-sdk/models/bxml/verbs/custom_param.rb +16 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/forward.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/gather.rb +3 -5
- data/lib/bandwidth-sdk/models/bxml/verbs/hangup.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/pause.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/pause_recording.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/phone_number.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/play_audio.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/record.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/redirect.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/resume_recording.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/ring.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/send_dtmf.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/sip_uri.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/speak_sentence.rb +3 -5
- data/lib/bandwidth-sdk/models/bxml/verbs/start_gather.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/start_recording.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/start_stream.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/start_transcription.rb +29 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/stop_gather.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/stop_recording.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/stop_stream.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/stop_transcription.rb +15 -0
- data/lib/bandwidth-sdk/models/bxml/verbs/stream_param.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/tag.rb +2 -4
- data/lib/bandwidth-sdk/models/bxml/verbs/transfer.rb +2 -4
- data/lib/bandwidth-sdk/models/call_direction_enum.rb +3 -3
- data/lib/bandwidth-sdk/models/call_recording_metadata.rb +2 -4
- data/lib/bandwidth-sdk/models/call_state.rb +4 -6
- data/lib/bandwidth-sdk/models/call_state_enum.rb +3 -3
- data/lib/bandwidth-sdk/models/callback_method_enum.rb +3 -3
- data/lib/bandwidth-sdk/models/code_request.rb +2 -4
- data/lib/bandwidth-sdk/models/conference.rb +5 -7
- data/lib/bandwidth-sdk/models/conference_completed_callback.rb +3 -5
- data/lib/bandwidth-sdk/models/conference_created_callback.rb +3 -5
- data/lib/bandwidth-sdk/models/conference_member.rb +2 -4
- data/lib/bandwidth-sdk/models/conference_member_exit_callback.rb +3 -5
- data/lib/bandwidth-sdk/models/conference_member_join_callback.rb +3 -5
- data/lib/bandwidth-sdk/models/conference_recording_available_callback.rb +3 -5
- data/lib/bandwidth-sdk/models/conference_recording_metadata.rb +2 -4
- data/lib/bandwidth-sdk/models/conference_redirect_callback.rb +3 -5
- data/lib/bandwidth-sdk/models/conference_state_enum.rb +3 -3
- data/lib/bandwidth-sdk/models/create_call.rb +14 -7
- data/lib/bandwidth-sdk/models/create_call_response.rb +10 -12
- data/lib/bandwidth-sdk/models/create_lookup_response.rb +2 -4
- data/lib/bandwidth-sdk/models/create_message_request_error.rb +2 -4
- data/lib/bandwidth-sdk/models/deferred_result.rb +2 -4
- data/lib/bandwidth-sdk/models/disconenct_callback.rb +1 -3
- data/lib/bandwidth-sdk/models/disconnect_callback.rb +3 -5
- data/lib/bandwidth-sdk/models/diversion.rb +2 -4
- data/lib/bandwidth-sdk/models/dtmf_callback.rb +3 -5
- data/lib/bandwidth-sdk/models/field_error.rb +2 -4
- data/lib/bandwidth-sdk/models/file_format_enum.rb +3 -3
- data/lib/bandwidth-sdk/models/gather_callback.rb +3 -5
- data/lib/bandwidth-sdk/models/inbound_message_callback.rb +2 -4
- data/lib/bandwidth-sdk/models/inbound_message_callback_message.rb +3 -4
- data/lib/bandwidth-sdk/models/initiate_callback.rb +3 -5
- data/lib/bandwidth-sdk/models/list_message_direction_enum.rb +3 -3
- data/lib/bandwidth-sdk/models/list_message_item.rb +19 -10
- data/lib/bandwidth-sdk/models/lookup_request.rb +2 -4
- data/lib/bandwidth-sdk/models/lookup_result.rb +2 -4
- data/lib/bandwidth-sdk/models/lookup_status.rb +2 -4
- data/lib/bandwidth-sdk/models/lookup_status_enum.rb +5 -5
- data/lib/bandwidth-sdk/models/machine_detection_complete_callback.rb +4 -7
- data/lib/bandwidth-sdk/models/machine_detection_configuration.rb +2 -4
- data/lib/bandwidth-sdk/models/machine_detection_mode_enum.rb +3 -3
- data/lib/bandwidth-sdk/models/machine_detection_result.rb +229 -0
- data/lib/bandwidth-sdk/models/media.rb +2 -4
- data/lib/bandwidth-sdk/models/message.rb +17 -9
- data/lib/bandwidth-sdk/models/message_delivered_callback.rb +2 -4
- data/lib/bandwidth-sdk/models/message_delivered_callback_message.rb +3 -4
- data/lib/bandwidth-sdk/models/message_direction_enum.rb +3 -3
- data/lib/bandwidth-sdk/models/message_failed_callback.rb +2 -4
- data/lib/bandwidth-sdk/models/message_failed_callback_message.rb +3 -4
- data/lib/bandwidth-sdk/models/message_request.rb +4 -6
- data/lib/bandwidth-sdk/models/message_sending_callback.rb +2 -4
- data/lib/bandwidth-sdk/models/message_sending_callback_message.rb +3 -4
- data/lib/bandwidth-sdk/models/message_status_enum.rb +9 -9
- data/lib/bandwidth-sdk/models/message_type_enum.rb +3 -3
- data/lib/bandwidth-sdk/models/messages_list.rb +3 -5
- data/lib/bandwidth-sdk/models/messaging_code_response.rb +2 -4
- data/lib/bandwidth-sdk/models/messaging_request_error.rb +2 -4
- data/lib/bandwidth-sdk/models/mfa_forbidden_request_error.rb +2 -4
- data/lib/bandwidth-sdk/models/mfa_request_error.rb +2 -4
- data/lib/bandwidth-sdk/models/mfa_unauthorized_request_error.rb +2 -4
- data/lib/bandwidth-sdk/models/page_info.rb +2 -4
- data/lib/bandwidth-sdk/models/priority_enum.rb +3 -3
- data/lib/bandwidth-sdk/models/recording_available_callback.rb +3 -5
- data/lib/bandwidth-sdk/models/recording_complete_callback.rb +3 -5
- data/lib/bandwidth-sdk/models/recording_state_enum.rb +3 -3
- data/lib/bandwidth-sdk/models/redirect_callback.rb +3 -5
- data/lib/bandwidth-sdk/models/redirect_method_enum.rb +3 -3
- data/lib/bandwidth-sdk/models/stir_shaken.rb +2 -4
- data/lib/bandwidth-sdk/models/tag.rb +2 -4
- data/lib/bandwidth-sdk/models/tn_lookup_request_error.rb +2 -4
- data/lib/bandwidth-sdk/models/transcribe_recording.rb +20 -9
- data/lib/bandwidth-sdk/models/transcription.rb +2 -4
- data/lib/bandwidth-sdk/models/transcription_available_callback.rb +3 -5
- data/lib/bandwidth-sdk/models/transcription_list.rb +2 -4
- data/lib/bandwidth-sdk/models/transcription_metadata.rb +2 -4
- data/lib/bandwidth-sdk/models/transfer_answer_callback.rb +3 -5
- data/lib/bandwidth-sdk/models/transfer_complete_callback.rb +3 -5
- data/lib/bandwidth-sdk/models/transfer_disconnect_callback.rb +3 -5
- data/lib/bandwidth-sdk/models/update_call.rb +12 -5
- data/lib/bandwidth-sdk/models/update_call_recording.rb +2 -4
- data/lib/bandwidth-sdk/models/update_conference.rb +3 -5
- data/lib/bandwidth-sdk/models/update_conference_member.rb +2 -4
- data/lib/bandwidth-sdk/models/verify_code_request.rb +2 -4
- data/lib/bandwidth-sdk/models/verify_code_response.rb +2 -4
- data/lib/bandwidth-sdk/models/voice_api_error.rb +2 -4
- data/lib/bandwidth-sdk/models/voice_code_response.rb +2 -4
- data/lib/bandwidth-sdk/version.rb +2 -2
- data/lib/bandwidth-sdk.rb +5 -1
- data/openapi-config.yml +1 -0
- data/openapitools.json +7 -0
- data/ruby-notes.md +11 -60
- data/spec/api/calls_api_spec.rb +228 -0
- data/spec/api/conferences_api_spec.rb +393 -0
- data/spec/api/media_api_spec.rb +129 -0
- data/spec/api/messages_api_spec.rb +193 -0
- data/spec/api/mfa_api_spec.rb +130 -0
- data/spec/api/phone_number_lookup_api_spec.rb +100 -0
- data/spec/api/recordings_api_spec.rb +395 -0
- data/spec/api/statistics_api_spec.rb +45 -0
- data/spec/api_client_spec.rb +377 -0
- data/spec/api_error_spec.rb +23 -0
- data/spec/call_utils.rb +28 -28
- data/spec/configuration_spec.rb +178 -0
- data/spec/integration/calls_api_integration_spec.rb +88 -69
- data/spec/integration/conferences_api_integration_spec.rb +74 -68
- data/spec/integration/media_api_integration_spec.rb +38 -32
- data/spec/integration/messages_api_integration_spec.rb +79 -38
- data/spec/integration/mfa_api_integration_spec.rb +41 -33
- data/spec/integration/phone_number_lookup_api_integration_spec.rb +26 -22
- data/spec/integration/recordings_api_integration_spec.rb +84 -77
- data/spec/integration/statistics_api_integration_spec.rb +15 -14
- data/spec/{unit/models → models}/bxml/bxml_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/nestable_verb_spec.rb +1 -3
- data/spec/{unit/models → models}/bxml/response_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verb_spec.rb +1 -14
- data/spec/{unit/models → models}/bxml/verbs/bridge_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/conference_spec.rb +0 -2
- data/spec/models/bxml/verbs/custom_param_spec.rb +36 -0
- data/spec/{unit/models → models}/bxml/verbs/forward_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/gather_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/hangup_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/pause_recording_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/pause_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/phone_number_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/play_audio_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/record_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/redirect_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/resume_recording_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/ring_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/send_dtmf_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/sip_uri_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/speak_sentence_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/start_gather_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/start_recording_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/start_stream_spec.rb +2 -4
- data/spec/models/bxml/verbs/start_transcription_spec.rb +74 -0
- data/spec/{unit/models → models}/bxml/verbs/stop_gather_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/stop_recording_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/stop_stream_spec.rb +0 -2
- data/spec/models/bxml/verbs/stop_transcription_spec.rb +34 -0
- data/spec/{unit/models → models}/bxml/verbs/stream_param_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/tag_spec.rb +0 -2
- data/spec/{unit/models → models}/bxml/verbs/transfer_spec.rb +0 -2
- data/spec/models/call_state_enum_spec.rb +16 -0
- data/spec/models/call_state_spec.rb +181 -0
- data/spec/models/deferred_result_spec.rb +87 -0
- data/spec/models/message_spec.rb +145 -0
- data/spec/models/verify_code_request_spec.rb +134 -0
- data/spec/spec_helper.rb +48 -31
- metadata +146 -254
- data/spec/unit/api/calls_api_spec.rb +0 -89
- data/spec/unit/api/conferences_api_spec.rb +0 -163
- data/spec/unit/api/media_api_spec.rb +0 -90
- data/spec/unit/api/messages_api_spec.rb +0 -73
- data/spec/unit/api/mfa_api_spec.rb +0 -74
- data/spec/unit/api/phone_number_lookup_api_spec.rb +0 -61
- data/spec/unit/api/recordings_api_spec.rb +0 -177
- data/spec/unit/api/statistics_api_spec.rb +0 -47
- data/spec/unit/models/account_statistics_spec.rb +0 -40
- data/spec/unit/models/answer_callback_spec.rb +0 -112
- data/spec/unit/models/bridge_complete_callback_spec.rb +0 -124
- data/spec/unit/models/bridge_target_complete_callback_spec.rb +0 -106
- data/spec/unit/models/call_direction_enum_spec.rb +0 -28
- data/spec/unit/models/call_recording_metadata_spec.rb +0 -136
- data/spec/unit/models/call_state_enum_spec.rb +0 -28
- data/spec/unit/models/call_state_spec.rb +0 -136
- data/spec/unit/models/callback_method_enum_spec.rb +0 -28
- data/spec/unit/models/code_request_spec.rb +0 -64
- data/spec/unit/models/conference_completed_callback_spec.rb +0 -58
- data/spec/unit/models/conference_created_callback_spec.rb +0 -58
- data/spec/unit/models/conference_member_exit_callback_spec.rb +0 -76
- data/spec/unit/models/conference_member_join_callback_spec.rb +0 -76
- data/spec/unit/models/conference_member_spec.rb +0 -64
- data/spec/unit/models/conference_recording_available_callback_spec.rb +0 -112
- data/spec/unit/models/conference_recording_metadata_spec.rb +0 -94
- data/spec/unit/models/conference_redirect_callback_spec.rb +0 -58
- data/spec/unit/models/conference_spec.rb +0 -76
- data/spec/unit/models/conference_state_enum_spec.rb +0 -28
- data/spec/unit/models/create_call_response_spec.rb +0 -154
- data/spec/unit/models/create_call_spec.rb +0 -142
- data/spec/unit/models/create_lookup_response_spec.rb +0 -40
- data/spec/unit/models/create_message_request_error_spec.rb +0 -46
- data/spec/unit/models/deferred_result_spec.rb +0 -40
- data/spec/unit/models/disconnect_callback_spec.rb +0 -130
- data/spec/unit/models/diversion_spec.rb +0 -70
- data/spec/unit/models/dtmf_callback_spec.rb +0 -130
- data/spec/unit/models/field_error_spec.rb +0 -40
- data/spec/unit/models/file_format_enum_spec.rb +0 -28
- data/spec/unit/models/gather_callback_spec.rb +0 -136
- data/spec/unit/models/inbound_message_callback_message_spec.rb +0 -100
- data/spec/unit/models/inbound_message_callback_spec.rb +0 -58
- data/spec/unit/models/initiate_callback_spec.rb +0 -100
- data/spec/unit/models/list_message_direction_enum_spec.rb +0 -28
- data/spec/unit/models/list_message_item_spec.rb +0 -124
- data/spec/unit/models/lookup_request_spec.rb +0 -34
- data/spec/unit/models/lookup_result_spec.rb +0 -82
- data/spec/unit/models/lookup_status_enum_spec.rb +0 -28
- data/spec/unit/models/lookup_status_spec.rb +0 -52
- data/spec/unit/models/machine_detection_complete_callback_spec.rb +0 -112
- data/spec/unit/models/machine_detection_configuration_spec.rb +0 -118
- data/spec/unit/models/machine_detection_mode_enum_spec.rb +0 -28
- data/spec/unit/models/media_spec.rb +0 -46
- data/spec/unit/models/message_delivered_callback_message_spec.rb +0 -100
- data/spec/unit/models/message_delivered_callback_spec.rb +0 -58
- data/spec/unit/models/message_direction_enum_spec.rb +0 -28
- data/spec/unit/models/message_failed_callback_message_spec.rb +0 -100
- data/spec/unit/models/message_failed_callback_spec.rb +0 -64
- data/spec/unit/models/message_request_spec.rb +0 -76
- data/spec/unit/models/message_sending_callback_message_spec.rb +0 -100
- data/spec/unit/models/message_sending_callback_spec.rb +0 -58
- data/spec/unit/models/message_spec.rb +0 -100
- data/spec/unit/models/message_status_enum_spec.rb +0 -28
- data/spec/unit/models/message_type_enum_spec.rb +0 -28
- data/spec/unit/models/messages_list_spec.rb +0 -46
- data/spec/unit/models/messaging_code_response_spec.rb +0 -34
- data/spec/unit/models/messaging_request_error_spec.rb +0 -40
- data/spec/unit/models/mfa_forbidden_request_error_spec.rb +0 -34
- data/spec/unit/models/mfa_request_error_spec.rb +0 -40
- data/spec/unit/models/mfa_unauthorized_request_error_spec.rb +0 -34
- data/spec/unit/models/page_info_spec.rb +0 -52
- data/spec/unit/models/priority_enum_spec.rb +0 -28
- data/spec/unit/models/recording_available_callback_spec.rb +0 -160
- data/spec/unit/models/recording_complete_callback_spec.rb +0 -160
- data/spec/unit/models/recording_state_enum_spec.rb +0 -28
- data/spec/unit/models/redirect_callback_spec.rb +0 -124
- data/spec/unit/models/redirect_method_enum_spec.rb +0 -28
- data/spec/unit/models/stir_shaken_spec.rb +0 -46
- data/spec/unit/models/tag_spec.rb +0 -40
- data/spec/unit/models/tn_lookup_request_error_spec.rb +0 -34
- data/spec/unit/models/transcribe_recording_spec.rb +0 -64
- data/spec/unit/models/transcription_available_callback_spec.rb +0 -154
- data/spec/unit/models/transcription_list_spec.rb +0 -34
- data/spec/unit/models/transcription_metadata_spec.rb +0 -52
- data/spec/unit/models/transcription_spec.rb +0 -40
- data/spec/unit/models/transfer_answer_callback_spec.rb +0 -118
- data/spec/unit/models/transfer_complete_callback_spec.rb +0 -136
- data/spec/unit/models/transfer_disconnect_callback_spec.rb +0 -148
- data/spec/unit/models/update_call_recording_spec.rb +0 -34
- data/spec/unit/models/update_call_spec.rb +0 -88
- data/spec/unit/models/update_conference_member_spec.rb +0 -46
- data/spec/unit/models/update_conference_spec.rb +0 -82
- data/spec/unit/models/verify_code_request_spec.rb +0 -52
- data/spec/unit/models/verify_code_response_spec.rb +0 -34
- data/spec/unit/models/voice_api_error_spec.rb +0 -46
- data/spec/unit/models/voice_code_response_spec.rb +0 -34
@@ -0,0 +1,229 @@
|
|
1
|
+
=begin
|
2
|
+
#Bandwidth
|
3
|
+
|
4
|
+
#Bandwidth's Communication APIs
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: letstalk@bandwidth.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.5.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Bandwidth
|
17
|
+
# (optional) if machine detection was requested in sync mode, the result will be specified here. Possible values are the same as the async counterpart: Machine Detection Complete
|
18
|
+
class MachineDetectionResult
|
19
|
+
# Possible values are answering-machine, human, silence, timeout, or error.
|
20
|
+
attr_accessor :value
|
21
|
+
|
22
|
+
# The amount of time it took to determine the result.
|
23
|
+
attr_accessor :duration
|
24
|
+
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
26
|
+
def self.attribute_map
|
27
|
+
{
|
28
|
+
:'value' => :'value',
|
29
|
+
:'duration' => :'duration'
|
30
|
+
}
|
31
|
+
end
|
32
|
+
|
33
|
+
# Returns all the JSON keys this model knows about
|
34
|
+
def self.acceptable_attributes
|
35
|
+
attribute_map.values
|
36
|
+
end
|
37
|
+
|
38
|
+
# Attribute type mapping.
|
39
|
+
def self.openapi_types
|
40
|
+
{
|
41
|
+
:'value' => :'String',
|
42
|
+
:'duration' => :'String'
|
43
|
+
}
|
44
|
+
end
|
45
|
+
|
46
|
+
# List of attributes with nullable: true
|
47
|
+
def self.openapi_nullable
|
48
|
+
Set.new([
|
49
|
+
])
|
50
|
+
end
|
51
|
+
|
52
|
+
# Initializes the object
|
53
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
54
|
+
def initialize(attributes = {})
|
55
|
+
if (!attributes.is_a?(Hash))
|
56
|
+
fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MachineDetectionResult` initialize method'
|
57
|
+
end
|
58
|
+
|
59
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
61
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Bandwidth::MachineDetectionResult`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
63
|
+
end
|
64
|
+
h[k.to_sym] = v
|
65
|
+
}
|
66
|
+
|
67
|
+
if attributes.key?(:'value')
|
68
|
+
self.value = attributes[:'value']
|
69
|
+
end
|
70
|
+
|
71
|
+
if attributes.key?(:'duration')
|
72
|
+
self.duration = attributes[:'duration']
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
77
|
+
# @return Array for valid properties with the reasons
|
78
|
+
def list_invalid_properties
|
79
|
+
invalid_properties = Array.new
|
80
|
+
invalid_properties
|
81
|
+
end
|
82
|
+
|
83
|
+
# Check to see if the all the properties in the model are valid
|
84
|
+
# @return true if the model is valid
|
85
|
+
def valid?
|
86
|
+
true
|
87
|
+
end
|
88
|
+
|
89
|
+
# Checks equality by comparing each attribute.
|
90
|
+
# @param [Object] Object to be compared
|
91
|
+
def ==(o)
|
92
|
+
return true if self.equal?(o)
|
93
|
+
self.class == o.class &&
|
94
|
+
value == o.value &&
|
95
|
+
duration == o.duration
|
96
|
+
end
|
97
|
+
|
98
|
+
# @see the `==` method
|
99
|
+
# @param [Object] Object to be compared
|
100
|
+
def eql?(o)
|
101
|
+
self == o
|
102
|
+
end
|
103
|
+
|
104
|
+
# Calculates hash code according to all attributes.
|
105
|
+
# @return [Integer] Hash code
|
106
|
+
def hash
|
107
|
+
[value, duration].hash
|
108
|
+
end
|
109
|
+
|
110
|
+
# Builds the object from hash
|
111
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
112
|
+
# @return [Object] Returns the model itself
|
113
|
+
def self.build_from_hash(attributes)
|
114
|
+
new.build_from_hash(attributes)
|
115
|
+
end
|
116
|
+
|
117
|
+
# Builds the object from hash
|
118
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
119
|
+
# @return [Object] Returns the model itself
|
120
|
+
def build_from_hash(attributes)
|
121
|
+
return nil unless attributes.is_a?(Hash)
|
122
|
+
attributes = attributes.transform_keys(&:to_sym)
|
123
|
+
self.class.openapi_types.each_pair do |key, type|
|
124
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
125
|
+
self.send("#{key}=", nil)
|
126
|
+
elsif type =~ /\AArray<(.*)>/i
|
127
|
+
# check to ensure the input is an array given that the attribute
|
128
|
+
# is documented as an array but the input is not
|
129
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
130
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
131
|
+
end
|
132
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
133
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
137
|
+
self
|
138
|
+
end
|
139
|
+
|
140
|
+
# Deserializes the data based on type
|
141
|
+
# @param string type Data type
|
142
|
+
# @param string value Value to be deserialized
|
143
|
+
# @return [Object] Deserialized data
|
144
|
+
def _deserialize(type, value)
|
145
|
+
case type.to_sym
|
146
|
+
when :Time
|
147
|
+
Time.parse(value)
|
148
|
+
when :Date
|
149
|
+
Date.parse(value)
|
150
|
+
when :String
|
151
|
+
value.to_s
|
152
|
+
when :Integer
|
153
|
+
value.to_i
|
154
|
+
when :Float
|
155
|
+
value.to_f
|
156
|
+
when :Boolean
|
157
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
158
|
+
true
|
159
|
+
else
|
160
|
+
false
|
161
|
+
end
|
162
|
+
when :Object
|
163
|
+
# generic object (usually a Hash), return directly
|
164
|
+
value
|
165
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
166
|
+
inner_type = Regexp.last_match[:inner_type]
|
167
|
+
value.map { |v| _deserialize(inner_type, v) }
|
168
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
169
|
+
k_type = Regexp.last_match[:k_type]
|
170
|
+
v_type = Regexp.last_match[:v_type]
|
171
|
+
{}.tap do |hash|
|
172
|
+
value.each do |k, v|
|
173
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
174
|
+
end
|
175
|
+
end
|
176
|
+
else # model
|
177
|
+
# models (e.g. Pet) or oneOf
|
178
|
+
klass = Bandwidth.const_get(type)
|
179
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
183
|
+
# Returns the string representation of the object
|
184
|
+
# @return [String] String presentation of the object
|
185
|
+
def to_s
|
186
|
+
to_hash.to_s
|
187
|
+
end
|
188
|
+
|
189
|
+
# to_body is an alias to to_hash (backward compatibility)
|
190
|
+
# @return [Hash] Returns the object in the form of hash
|
191
|
+
def to_body
|
192
|
+
to_hash
|
193
|
+
end
|
194
|
+
|
195
|
+
# Returns the object in the form of hash
|
196
|
+
# @return [Hash] Returns the object in the form of hash
|
197
|
+
def to_hash
|
198
|
+
hash = {}
|
199
|
+
self.class.attribute_map.each_pair do |attr, param|
|
200
|
+
value = self.send(attr)
|
201
|
+
if value.nil?
|
202
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
203
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
204
|
+
end
|
205
|
+
|
206
|
+
hash[param] = _to_hash(value)
|
207
|
+
end
|
208
|
+
hash
|
209
|
+
end
|
210
|
+
|
211
|
+
# Outputs non-array value in the form of hash
|
212
|
+
# For object, use to_hash. Otherwise, just return the value
|
213
|
+
# @param [Object] value Any valid value
|
214
|
+
# @return [Hash] Returns the value in the form of hash
|
215
|
+
def _to_hash(value)
|
216
|
+
if value.is_a?(Array)
|
217
|
+
value.compact.map { |v| _to_hash(v) }
|
218
|
+
elsif value.is_a?(Hash)
|
219
|
+
{}.tap do |hash|
|
220
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
221
|
+
end
|
222
|
+
elsif value.respond_to? :to_hash
|
223
|
+
value.to_hash
|
224
|
+
else
|
225
|
+
value
|
226
|
+
end
|
227
|
+
end
|
228
|
+
end
|
229
|
+
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: letstalk@bandwidth.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 6.
|
9
|
+
OpenAPI Generator version: 6.5.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -54,7 +54,7 @@ module Bandwidth
|
|
54
54
|
# @param [Hash] attributes Model attributes in the form of hash
|
55
55
|
def initialize(attributes = {})
|
56
56
|
if (!attributes.is_a?(Hash))
|
57
|
-
fail ArgumentError,
|
57
|
+
fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::Media` initialize method'
|
58
58
|
end
|
59
59
|
|
60
60
|
# check to see if the attribute exists and convert string to symbol for hash key
|
@@ -231,7 +231,5 @@ module Bandwidth
|
|
231
231
|
value
|
232
232
|
end
|
233
233
|
end
|
234
|
-
|
235
234
|
end
|
236
|
-
|
237
235
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: letstalk@bandwidth.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 6.
|
9
|
+
OpenAPI Generator version: 6.5.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -49,6 +49,9 @@ module Bandwidth
|
|
49
49
|
|
50
50
|
attr_accessor :priority
|
51
51
|
|
52
|
+
# The expiration date-time set by the user.
|
53
|
+
attr_accessor :expiration
|
54
|
+
|
52
55
|
class EnumAttributeValidator
|
53
56
|
attr_reader :datatype
|
54
57
|
attr_reader :allowable_values
|
@@ -85,7 +88,8 @@ module Bandwidth
|
|
85
88
|
:'media' => :'media',
|
86
89
|
:'text' => :'text',
|
87
90
|
:'tag' => :'tag',
|
88
|
-
:'priority' => :'priority'
|
91
|
+
:'priority' => :'priority',
|
92
|
+
:'expiration' => :'expiration'
|
89
93
|
}
|
90
94
|
end
|
91
95
|
|
@@ -100,7 +104,7 @@ module Bandwidth
|
|
100
104
|
:'id' => :'String',
|
101
105
|
:'owner' => :'String',
|
102
106
|
:'application_id' => :'String',
|
103
|
-
:'time' => :'
|
107
|
+
:'time' => :'Time',
|
104
108
|
:'segment_count' => :'Integer',
|
105
109
|
:'direction' => :'MessageDirectionEnum',
|
106
110
|
:'to' => :'Array<String>',
|
@@ -108,7 +112,8 @@ module Bandwidth
|
|
108
112
|
:'media' => :'Array<String>',
|
109
113
|
:'text' => :'String',
|
110
114
|
:'tag' => :'String',
|
111
|
-
:'priority' => :'PriorityEnum'
|
115
|
+
:'priority' => :'PriorityEnum',
|
116
|
+
:'expiration' => :'Time'
|
112
117
|
}
|
113
118
|
end
|
114
119
|
|
@@ -122,7 +127,7 @@ module Bandwidth
|
|
122
127
|
# @param [Hash] attributes Model attributes in the form of hash
|
123
128
|
def initialize(attributes = {})
|
124
129
|
if (!attributes.is_a?(Hash))
|
125
|
-
fail ArgumentError,
|
130
|
+
fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::Message` initialize method'
|
126
131
|
end
|
127
132
|
|
128
133
|
# check to see if the attribute exists and convert string to symbol for hash key
|
@@ -184,6 +189,10 @@ module Bandwidth
|
|
184
189
|
if attributes.key?(:'priority')
|
185
190
|
self.priority = attributes[:'priority']
|
186
191
|
end
|
192
|
+
|
193
|
+
if attributes.key?(:'expiration')
|
194
|
+
self.expiration = attributes[:'expiration']
|
195
|
+
end
|
187
196
|
end
|
188
197
|
|
189
198
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -227,7 +236,8 @@ module Bandwidth
|
|
227
236
|
media == o.media &&
|
228
237
|
text == o.text &&
|
229
238
|
tag == o.tag &&
|
230
|
-
priority == o.priority
|
239
|
+
priority == o.priority &&
|
240
|
+
expiration == o.expiration
|
231
241
|
end
|
232
242
|
|
233
243
|
# @see the `==` method
|
@@ -239,7 +249,7 @@ module Bandwidth
|
|
239
249
|
# Calculates hash code according to all attributes.
|
240
250
|
# @return [Integer] Hash code
|
241
251
|
def hash
|
242
|
-
[id, owner, application_id, time, segment_count, direction, to, from, media, text, tag, priority].hash
|
252
|
+
[id, owner, application_id, time, segment_count, direction, to, from, media, text, tag, priority, expiration].hash
|
243
253
|
end
|
244
254
|
|
245
255
|
# Builds the object from hash
|
@@ -360,7 +370,5 @@ module Bandwidth
|
|
360
370
|
value
|
361
371
|
end
|
362
372
|
end
|
363
|
-
|
364
373
|
end
|
365
|
-
|
366
374
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: letstalk@bandwidth.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 6.
|
9
|
+
OpenAPI Generator version: 6.5.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -63,7 +63,7 @@ module Bandwidth
|
|
63
63
|
# @param [Hash] attributes Model attributes in the form of hash
|
64
64
|
def initialize(attributes = {})
|
65
65
|
if (!attributes.is_a?(Hash))
|
66
|
-
fail ArgumentError,
|
66
|
+
fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MessageDeliveredCallback` initialize method'
|
67
67
|
end
|
68
68
|
|
69
69
|
# check to see if the attribute exists and convert string to symbol for hash key
|
@@ -275,7 +275,5 @@ module Bandwidth
|
|
275
275
|
value
|
276
276
|
end
|
277
277
|
end
|
278
|
-
|
279
278
|
end
|
280
|
-
|
281
279
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: letstalk@bandwidth.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 6.
|
9
|
+
OpenAPI Generator version: 6.5.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,6 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module Bandwidth
|
17
|
+
# Message Delivered Callback Message Schema
|
17
18
|
class MessageDeliveredCallbackMessage
|
18
19
|
attr_accessor :id
|
19
20
|
|
@@ -112,7 +113,7 @@ module Bandwidth
|
|
112
113
|
# @param [Hash] attributes Model attributes in the form of hash
|
113
114
|
def initialize(attributes = {})
|
114
115
|
if (!attributes.is_a?(Hash))
|
115
|
-
fail ArgumentError,
|
116
|
+
fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MessageDeliveredCallbackMessage` initialize method'
|
116
117
|
end
|
117
118
|
|
118
119
|
# check to see if the attribute exists and convert string to symbol for hash key
|
@@ -398,7 +399,5 @@ module Bandwidth
|
|
398
399
|
value
|
399
400
|
end
|
400
401
|
end
|
401
|
-
|
402
402
|
end
|
403
|
-
|
404
403
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: letstalk@bandwidth.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 6.
|
9
|
+
OpenAPI Generator version: 6.5.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -15,8 +15,8 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Bandwidth
|
17
17
|
class MessageDirectionEnum
|
18
|
-
IN =
|
19
|
-
OUT =
|
18
|
+
IN = 'in'.freeze
|
19
|
+
OUT = 'out'.freeze
|
20
20
|
|
21
21
|
def self.all_vars
|
22
22
|
@all_vars ||= [IN, OUT].freeze
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: letstalk@bandwidth.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 6.
|
9
|
+
OpenAPI Generator version: 6.5.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -67,7 +67,7 @@ module Bandwidth
|
|
67
67
|
# @param [Hash] attributes Model attributes in the form of hash
|
68
68
|
def initialize(attributes = {})
|
69
69
|
if (!attributes.is_a?(Hash))
|
70
|
-
fail ArgumentError,
|
70
|
+
fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MessageFailedCallback` initialize method'
|
71
71
|
end
|
72
72
|
|
73
73
|
# check to see if the attribute exists and convert string to symbol for hash key
|
@@ -289,7 +289,5 @@ module Bandwidth
|
|
289
289
|
value
|
290
290
|
end
|
291
291
|
end
|
292
|
-
|
293
292
|
end
|
294
|
-
|
295
293
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: letstalk@bandwidth.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 6.
|
9
|
+
OpenAPI Generator version: 6.5.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,6 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module Bandwidth
|
17
|
+
# Message Failed Callback Message Schema
|
17
18
|
class MessageFailedCallbackMessage
|
18
19
|
attr_accessor :id
|
19
20
|
|
@@ -112,7 +113,7 @@ module Bandwidth
|
|
112
113
|
# @param [Hash] attributes Model attributes in the form of hash
|
113
114
|
def initialize(attributes = {})
|
114
115
|
if (!attributes.is_a?(Hash))
|
115
|
-
fail ArgumentError,
|
116
|
+
fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MessageFailedCallbackMessage` initialize method'
|
116
117
|
end
|
117
118
|
|
118
119
|
# check to see if the attribute exists and convert string to symbol for hash key
|
@@ -403,7 +404,5 @@ module Bandwidth
|
|
403
404
|
value
|
404
405
|
end
|
405
406
|
end
|
406
|
-
|
407
407
|
end
|
408
|
-
|
409
408
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: letstalk@bandwidth.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 6.
|
9
|
+
OpenAPI Generator version: 6.5.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -35,7 +35,7 @@ module Bandwidth
|
|
35
35
|
|
36
36
|
attr_accessor :priority
|
37
37
|
|
38
|
-
# A string with the date/time value that the message will automatically expire by. This must be a valid RFC-3339 value, e.g., 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00.
|
38
|
+
# A string with the date/time value that the message will automatically expire by. This must be a valid RFC-3339 value, e.g., 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00. Must be a date-time in the future. Not supported on MMS.
|
39
39
|
attr_accessor :expiration
|
40
40
|
|
41
41
|
class EnumAttributeValidator
|
@@ -89,7 +89,7 @@ module Bandwidth
|
|
89
89
|
:'media' => :'Array<String>',
|
90
90
|
:'tag' => :'String',
|
91
91
|
:'priority' => :'PriorityEnum',
|
92
|
-
:'expiration' => :'
|
92
|
+
:'expiration' => :'Time'
|
93
93
|
}
|
94
94
|
end
|
95
95
|
|
@@ -103,7 +103,7 @@ module Bandwidth
|
|
103
103
|
# @param [Hash] attributes Model attributes in the form of hash
|
104
104
|
def initialize(attributes = {})
|
105
105
|
if (!attributes.is_a?(Hash))
|
106
|
-
fail ArgumentError,
|
106
|
+
fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MessageRequest` initialize method'
|
107
107
|
end
|
108
108
|
|
109
109
|
# check to see if the attribute exists and convert string to symbol for hash key
|
@@ -349,7 +349,5 @@ module Bandwidth
|
|
349
349
|
value
|
350
350
|
end
|
351
351
|
end
|
352
|
-
|
353
352
|
end
|
354
|
-
|
355
353
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: letstalk@bandwidth.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 6.
|
9
|
+
OpenAPI Generator version: 6.5.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -63,7 +63,7 @@ module Bandwidth
|
|
63
63
|
# @param [Hash] attributes Model attributes in the form of hash
|
64
64
|
def initialize(attributes = {})
|
65
65
|
if (!attributes.is_a?(Hash))
|
66
|
-
fail ArgumentError,
|
66
|
+
fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MessageSendingCallback` initialize method'
|
67
67
|
end
|
68
68
|
|
69
69
|
# check to see if the attribute exists and convert string to symbol for hash key
|
@@ -275,7 +275,5 @@ module Bandwidth
|
|
275
275
|
value
|
276
276
|
end
|
277
277
|
end
|
278
|
-
|
279
278
|
end
|
280
|
-
|
281
279
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: letstalk@bandwidth.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 6.
|
9
|
+
OpenAPI Generator version: 6.5.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,6 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module Bandwidth
|
17
|
+
# Message Sending Callback Message Schema
|
17
18
|
class MessageSendingCallbackMessage
|
18
19
|
attr_accessor :id
|
19
20
|
|
@@ -112,7 +113,7 @@ module Bandwidth
|
|
112
113
|
# @param [Hash] attributes Model attributes in the form of hash
|
113
114
|
def initialize(attributes = {})
|
114
115
|
if (!attributes.is_a?(Hash))
|
115
|
-
fail ArgumentError,
|
116
|
+
fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MessageSendingCallbackMessage` initialize method'
|
116
117
|
end
|
117
118
|
|
118
119
|
# check to see if the attribute exists and convert string to symbol for hash key
|
@@ -403,7 +404,5 @@ module Bandwidth
|
|
403
404
|
value
|
404
405
|
end
|
405
406
|
end
|
406
|
-
|
407
407
|
end
|
408
|
-
|
409
408
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: letstalk@bandwidth.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 6.
|
9
|
+
OpenAPI Generator version: 6.5.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -15,14 +15,14 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Bandwidth
|
17
17
|
class MessageStatusEnum
|
18
|
-
RECEIVED =
|
19
|
-
QUEUED =
|
20
|
-
SENDING =
|
21
|
-
SENT =
|
22
|
-
FAILED =
|
23
|
-
DELIVERED =
|
24
|
-
ACCEPTED =
|
25
|
-
UNDELIVERED =
|
18
|
+
RECEIVED = 'RECEIVED'.freeze
|
19
|
+
QUEUED = 'QUEUED'.freeze
|
20
|
+
SENDING = 'SENDING'.freeze
|
21
|
+
SENT = 'SENT'.freeze
|
22
|
+
FAILED = 'FAILED'.freeze
|
23
|
+
DELIVERED = 'DELIVERED'.freeze
|
24
|
+
ACCEPTED = 'ACCEPTED'.freeze
|
25
|
+
UNDELIVERED = 'UNDELIVERED'.freeze
|
26
26
|
|
27
27
|
def self.all_vars
|
28
28
|
@all_vars ||= [RECEIVED, QUEUED, SENDING, SENT, FAILED, DELIVERED, ACCEPTED, UNDELIVERED].freeze
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: letstalk@bandwidth.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 6.
|
9
|
+
OpenAPI Generator version: 6.5.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -15,8 +15,8 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Bandwidth
|
17
17
|
class MessageTypeEnum
|
18
|
-
SMS =
|
19
|
-
MMS =
|
18
|
+
SMS = 'sms'.freeze
|
19
|
+
MMS = 'mms'.freeze
|
20
20
|
|
21
21
|
def self.all_vars
|
22
22
|
@all_vars ||= [SMS, MMS].freeze
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: letstalk@bandwidth.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 6.
|
9
|
+
OpenAPI Generator version: 6.5.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -15,7 +15,7 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Bandwidth
|
17
17
|
class MessagesList
|
18
|
-
#
|
18
|
+
# The total number of messages matched by the search. When the request has limitTotalCount set to true this value is limited to 10,000.
|
19
19
|
attr_accessor :total_count
|
20
20
|
|
21
21
|
attr_accessor :page_info
|
@@ -55,7 +55,7 @@ module Bandwidth
|
|
55
55
|
# @param [Hash] attributes Model attributes in the form of hash
|
56
56
|
def initialize(attributes = {})
|
57
57
|
if (!attributes.is_a?(Hash))
|
58
|
-
fail ArgumentError,
|
58
|
+
fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MessagesList` initialize method'
|
59
59
|
end
|
60
60
|
|
61
61
|
# check to see if the attribute exists and convert string to symbol for hash key
|
@@ -234,7 +234,5 @@ module Bandwidth
|
|
234
234
|
value
|
235
235
|
end
|
236
236
|
end
|
237
|
-
|
238
237
|
end
|
239
|
-
|
240
238
|
end
|