freeclimb 4.9.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/Gemfile.lock +34 -18
- data/README.md +43 -51
- data/docs/AddToConferenceNotificationWebhook.md +42 -0
- data/docs/AddToQueueNotificationWebhook.md +34 -0
- data/docs/BargeInReason.md +18 -0
- data/docs/CallControlWebhook.md +26 -0
- data/docs/CallEndedReason.md +38 -0
- data/docs/CallStatusWebhook.md +36 -0
- data/docs/CompletionResult.md +1 -1
- data/docs/CompletionResultStatus.md +17 -0
- data/docs/ConferenceRecordingStatusWebhook.md +42 -0
- data/docs/ConferenceResult.md +1 -1
- data/docs/ConferenceStatusWebhook.md +42 -0
- data/docs/CreateConference.md +1 -1
- data/docs/CreateConferenceRequest.md +1 -1
- data/docs/CreateConferenceWebhook.md +42 -0
- data/docs/DequeueWebhook.md +38 -0
- data/docs/GetDigitsReason.md +19 -0
- data/docs/GetDigitsWebhook.md +40 -0
- data/docs/GetSpeechWebhook.md +50 -0
- data/docs/InboundCallWebhook.md +36 -0
- data/docs/LeaveConferenceWebhook.md +34 -0
- data/docs/MachineDetectedWebhook.md +38 -0
- data/docs/MachineType.md +2 -2
- data/docs/MessageDeliveryWebhook.md +36 -0
- data/docs/MessageStatusWebhook.md +38 -0
- data/docs/OutDialApiConnectWebhook.md +36 -0
- data/docs/OutDialConnectWebhook.md +36 -0
- data/docs/OutDialStartWebhook.md +38 -0
- data/docs/QueueWaitWebhook.md +40 -0
- data/docs/RecordWebhook.md +50 -0
- data/docs/RedirectWebhook.md +36 -0
- data/docs/RemoveFromQueueNotificationWebhook.md +38 -0
- data/docs/SMSTenDLCBrand.md +6 -6
- data/docs/SMSTenDLCBrandAltBusinessIdType.md +19 -0
- data/docs/SMSTenDLCBrandEntityType.md +20 -0
- data/docs/SMSTenDLCBrandIdentityStatus.md +19 -0
- data/docs/SMSTenDLCBrandRelationship.md +20 -0
- data/docs/SMSTenDLCBrandStockExchange.md +42 -0
- data/docs/SMSTenDLCCampaign.md +1 -1
- data/docs/SMSTenDLCCampaignStatus.md +17 -0
- data/docs/SMSTenDLCPartnerCampaign.md +1 -1
- data/docs/SMSTenDLCPartnerCampaignStatus.md +17 -0
- data/docs/SMSTollFreeCampaign.md +1 -1
- data/docs/SMSTollFreeCampaignRegistrationStatus.md +20 -0
- data/docs/TranscribeReason.md +20 -0
- data/docs/TranscribeTermReason.md +17 -0
- data/docs/TranscribeUtterance.md +2 -2
- data/docs/TranscribeWebhook.md +62 -0
- data/docs/UpdateConferenceRequest.md +1 -1
- data/docs/Webhook.md +18 -0
- data/freeclimb.gemspec +1 -1
- data/lib/freeclimb/api/default_api.rb +18 -18
- data/lib/freeclimb/api_client.rb +1 -1
- data/lib/freeclimb/api_error.rb +1 -1
- data/lib/freeclimb/configuration.rb +1 -2
- data/lib/freeclimb/models/account_request.rb +1 -3
- data/lib/freeclimb/models/account_result.rb +23 -4
- data/lib/freeclimb/models/account_status.rb +1 -1
- data/lib/freeclimb/models/account_type.rb +1 -1
- data/lib/freeclimb/models/add_to_conference.rb +1 -4
- data/lib/freeclimb/models/add_to_conference_notification_webhook.rb +384 -0
- data/lib/freeclimb/models/{conference_participant_result_all_of.rb → add_to_queue_notification_webhook.rb} +112 -59
- data/lib/freeclimb/models/answered_by.rb +1 -1
- data/lib/freeclimb/models/application_list.rb +1 -4
- data/lib/freeclimb/models/application_request.rb +1 -3
- data/lib/freeclimb/models/application_result.rb +1 -4
- data/lib/freeclimb/models/available_number.rb +1 -3
- data/lib/freeclimb/models/available_number_list.rb +1 -4
- data/lib/freeclimb/models/barge_in_reason.rb +38 -0
- data/lib/freeclimb/models/buy_incoming_number_request.rb +1 -3
- data/lib/freeclimb/models/{recording_result_all_of.rb → call_control_webhook.rb} +57 -45
- data/lib/freeclimb/models/call_direction.rb +1 -1
- data/lib/freeclimb/models/call_ended_reason.rb +58 -0
- data/lib/freeclimb/models/call_list.rb +1 -4
- data/lib/freeclimb/models/call_result.rb +23 -4
- data/lib/freeclimb/models/call_status.rb +1 -1
- data/lib/freeclimb/models/call_status_webhook.rb +354 -0
- data/lib/freeclimb/models/capabilities.rb +1 -3
- data/lib/freeclimb/models/completion_request.rb +1 -3
- data/lib/freeclimb/models/completion_result.rb +2 -15
- data/lib/freeclimb/models/completion_result_status.rb +37 -0
- data/lib/freeclimb/models/conference_list.rb +1 -4
- data/lib/freeclimb/models/conference_participant_list.rb +1 -4
- data/lib/freeclimb/models/conference_participant_result.rb +1 -4
- data/lib/freeclimb/models/conference_recording_status_webhook.rb +384 -0
- data/lib/freeclimb/models/conference_result.rb +23 -6
- data/lib/freeclimb/models/conference_status.rb +1 -1
- data/lib/freeclimb/models/conference_status_webhook.rb +387 -0
- data/lib/freeclimb/models/create_conference.rb +23 -6
- data/lib/freeclimb/models/create_conference_request.rb +23 -5
- data/lib/freeclimb/models/create_conference_webhook.rb +387 -0
- data/lib/freeclimb/models/create_web_rtc_token.rb +1 -3
- data/lib/freeclimb/models/dequeue.rb +1 -3
- data/lib/freeclimb/models/dequeue_webhook.rb +365 -0
- data/lib/freeclimb/models/enqueue.rb +1 -4
- data/lib/freeclimb/models/filter_logs_request.rb +1 -3
- data/lib/freeclimb/models/get_digits.rb +1 -4
- data/lib/freeclimb/models/get_digits_reason.rb +39 -0
- data/lib/freeclimb/models/get_digits_webhook.rb +373 -0
- data/lib/freeclimb/models/get_speech.rb +23 -4
- data/lib/freeclimb/models/get_speech_reason.rb +1 -1
- data/lib/freeclimb/models/get_speech_webhook.rb +423 -0
- data/lib/freeclimb/models/grammar_file_built_in.rb +1 -1
- data/lib/freeclimb/models/grammar_type.rb +1 -1
- data/lib/freeclimb/models/hangup.rb +1 -4
- data/lib/freeclimb/models/if_machine.rb +1 -1
- data/lib/freeclimb/models/inbound_call_webhook.rb +355 -0
- data/lib/freeclimb/models/incoming_number_list.rb +1 -4
- data/lib/freeclimb/models/incoming_number_request.rb +1 -3
- data/lib/freeclimb/models/incoming_number_result.rb +1 -4
- data/lib/freeclimb/models/language.rb +1 -1
- data/lib/freeclimb/models/{conference_result_all_of.rb → leave_conference_webhook.rb} +110 -89
- data/lib/freeclimb/models/log_level.rb +1 -1
- data/lib/freeclimb/models/log_list.rb +1 -4
- data/lib/freeclimb/models/log_result.rb +23 -3
- data/lib/freeclimb/models/{call_result_all_of.rb → machine_detected_webhook.rb} +96 -119
- data/lib/freeclimb/models/machine_type.rb +3 -3
- data/lib/freeclimb/models/make_call_request.rb +1 -3
- data/lib/freeclimb/models/{message_result_all_of.rb → message_delivery_webhook.rb} +71 -87
- data/lib/freeclimb/models/message_direction.rb +1 -1
- data/lib/freeclimb/models/message_request.rb +1 -4
- data/lib/freeclimb/models/message_result.rb +23 -4
- data/lib/freeclimb/models/message_status.rb +1 -1
- data/lib/freeclimb/models/{incoming_number_result_all_of.rb → message_status_webhook.rb} +117 -107
- data/lib/freeclimb/models/messages_list.rb +1 -4
- data/lib/freeclimb/models/mutable_resource_model.rb +1 -3
- data/lib/freeclimb/models/out_dial.rb +23 -4
- data/lib/freeclimb/models/out_dial_api_connect_webhook.rb +355 -0
- data/lib/freeclimb/models/out_dial_connect_webhook.rb +355 -0
- data/lib/freeclimb/models/out_dial_start_webhook.rb +366 -0
- data/lib/freeclimb/models/pagination_model.rb +1 -3
- data/lib/freeclimb/models/park.rb +1 -4
- data/lib/freeclimb/models/pause.rb +1 -4
- data/lib/freeclimb/models/percl_command.rb +3 -5
- data/lib/freeclimb/models/percl_script.rb +2 -4
- data/lib/freeclimb/models/play.rb +2 -5
- data/lib/freeclimb/models/play_beep.rb +1 -1
- data/lib/freeclimb/models/play_early_media.rb +2 -5
- data/lib/freeclimb/models/queue_list.rb +2 -5
- data/lib/freeclimb/models/queue_member.rb +1 -3
- data/lib/freeclimb/models/queue_member_list.rb +2 -5
- data/lib/freeclimb/models/queue_request.rb +1 -3
- data/lib/freeclimb/models/queue_result.rb +2 -5
- data/lib/freeclimb/models/queue_result_status.rb +1 -1
- data/lib/freeclimb/models/queue_wait_webhook.rb +375 -0
- data/lib/freeclimb/models/record_utterance.rb +2 -5
- data/lib/freeclimb/models/record_utterance_term_reason.rb +1 -1
- data/lib/freeclimb/models/record_webhook.rb +424 -0
- data/lib/freeclimb/models/recording_list.rb +2 -5
- data/lib/freeclimb/models/recording_result.rb +2 -5
- data/lib/freeclimb/models/redirect.rb +2 -5
- data/lib/freeclimb/models/redirect_webhook.rb +355 -0
- data/lib/freeclimb/models/reject.rb +2 -5
- data/lib/freeclimb/models/remove_from_conference.rb +1 -3
- data/lib/freeclimb/models/remove_from_queue_notification_webhook.rb +364 -0
- data/lib/freeclimb/models/request_type.rb +1 -1
- data/lib/freeclimb/models/say.rb +2 -5
- data/lib/freeclimb/models/send_digits.rb +2 -5
- data/lib/freeclimb/models/set_dtmf_pass_through.rb +2 -5
- data/lib/freeclimb/models/set_listen.rb +2 -5
- data/lib/freeclimb/models/set_talk.rb +2 -5
- data/lib/freeclimb/models/sms.rb +2 -5
- data/lib/freeclimb/models/sms_ten_dlc_brand.rb +6 -67
- data/lib/freeclimb/models/sms_ten_dlc_brand_alt_business_id_type.rb +39 -0
- data/lib/freeclimb/models/sms_ten_dlc_brand_entity_type.rb +40 -0
- data/lib/freeclimb/models/sms_ten_dlc_brand_identity_status.rb +39 -0
- data/lib/freeclimb/models/sms_ten_dlc_brand_relationship.rb +40 -0
- data/lib/freeclimb/models/sms_ten_dlc_brand_stock_exchange.rb +62 -0
- data/lib/freeclimb/models/sms_ten_dlc_brands_list_result.rb +2 -5
- data/lib/freeclimb/models/sms_ten_dlc_campaign.rb +2 -15
- data/lib/freeclimb/models/sms_ten_dlc_campaign_status.rb +37 -0
- data/lib/freeclimb/models/sms_ten_dlc_campaigns_list_result.rb +2 -5
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb +2 -15
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_brand.rb +1 -3
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_status.rb +37 -0
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaigns_list_result.rb +2 -5
- data/lib/freeclimb/models/sms_toll_free_campaign.rb +2 -15
- data/lib/freeclimb/models/sms_toll_free_campaign_registration_status.rb +40 -0
- data/lib/freeclimb/models/sms_toll_free_campaigns_list_result.rb +2 -5
- data/lib/freeclimb/models/start_record_call.rb +1 -3
- data/lib/freeclimb/models/terminate_conference.rb +1 -3
- data/lib/freeclimb/models/tfn.rb +1 -3
- data/lib/freeclimb/models/transcribe_reason.rb +40 -0
- data/lib/freeclimb/models/transcribe_term_reason.rb +37 -0
- data/lib/freeclimb/models/transcribe_utterance.rb +4 -7
- data/lib/freeclimb/models/{transcribe_utterance_all_of_record.rb → transcribe_utterance_record.rb} +8 -10
- data/lib/freeclimb/models/transcribe_webhook.rb +481 -0
- data/lib/freeclimb/models/unpark.rb +1 -3
- data/lib/freeclimb/models/update_call_request.rb +23 -3
- data/lib/freeclimb/models/update_call_request_status.rb +1 -1
- data/lib/freeclimb/models/update_conference_participant_request.rb +1 -3
- data/lib/freeclimb/models/update_conference_request.rb +23 -5
- data/lib/freeclimb/models/update_conference_request_status.rb +1 -1
- data/lib/freeclimb/models/{call_list_all_of.rb → webhook.rb} +18 -17
- data/lib/freeclimb/utils/request_verifier.rb +51 -51
- data/lib/freeclimb/utils/signature_information.rb +34 -34
- data/lib/freeclimb/version.rb +2 -2
- data/lib/freeclimb.rb +41 -49
- data/openapi.json +1734 -681
- data/package.json +3 -1
- data/spec/api/default_api_spec.rb +61 -35
- data/spec/factories.rb +78 -78
- data/spec/models/account_request_spec.rb +55 -17
- data/spec/models/account_result_spec.rb +304 -80
- data/spec/models/account_status_spec.rb +1 -1
- data/spec/models/account_type_spec.rb +1 -1
- data/spec/models/add_to_conference_notification_webhook_spec.rb +866 -0
- data/spec/models/add_to_conference_spec.rb +251 -38
- data/spec/models/add_to_queue_notification_webhook_spec.rb +643 -0
- data/spec/models/answered_by_spec.rb +1 -1
- data/spec/models/application_list_spec.rb +181 -39
- data/spec/models/application_request_spec.rb +160 -32
- data/spec/models/application_result_spec.rb +286 -50
- data/spec/models/available_number_list_spec.rb +181 -39
- data/spec/models/available_number_spec.rb +160 -32
- data/spec/models/barge_in_reason_spec.rb +77 -0
- data/spec/models/buy_incoming_number_request_spec.rb +76 -20
- data/spec/models/call_control_webhook_spec.rb +385 -0
- data/spec/models/call_direction_spec.rb +1 -1
- data/spec/models/call_ended_reason_spec.rb +397 -0
- data/spec/models/call_list_spec.rb +181 -39
- data/spec/models/call_result_spec.rb +551 -122
- data/spec/models/call_status_spec.rb +1 -1
- data/spec/models/call_status_webhook_spec.rb +793 -0
- data/spec/models/capabilities_spec.rb +118 -26
- data/spec/models/completion_request_spec.rb +35 -15
- data/spec/models/completion_result_spec.rb +91 -45
- data/spec/models/completion_result_status_spec.rb +61 -0
- data/spec/models/conference_list_spec.rb +181 -39
- data/spec/models/conference_participant_list_spec.rb +181 -39
- data/spec/models/conference_participant_result_spec.rb +272 -41
- data/spec/models/conference_recording_status_webhook_spec.rb +866 -0
- data/spec/models/conference_result_spec.rb +367 -89
- data/spec/models/conference_status_spec.rb +1 -1
- data/spec/models/conference_status_webhook_spec.rb +866 -0
- data/spec/models/create_conference_request_spec.rb +148 -44
- data/spec/models/create_conference_spec.rb +169 -47
- data/spec/models/create_conference_webhook_spec.rb +866 -0
- data/spec/models/create_web_rtc_token_spec.rb +76 -20
- data/spec/models/dequeue_spec.rb +1 -1
- data/spec/models/dequeue_webhook_spec.rb +743 -0
- data/spec/models/enqueue_spec.rb +97 -23
- data/spec/models/filter_logs_request_spec.rb +34 -14
- data/spec/models/get_digits_reason_spec.rb +93 -0
- data/spec/models/get_digits_spec.rb +202 -42
- data/spec/models/get_digits_webhook_spec.rb +815 -0
- data/spec/models/get_speech_reason_spec.rb +1 -1
- data/spec/models/get_speech_spec.rb +308 -66
- data/spec/models/get_speech_webhook_spec.rb +1072 -0
- data/spec/models/grammar_file_built_in_spec.rb +1 -1
- data/spec/models/grammar_type_spec.rb +1 -1
- data/spec/models/hangup_spec.rb +34 -14
- data/spec/models/if_machine_spec.rb +1 -1
- data/spec/models/inbound_call_webhook_spec.rb +692 -0
- data/spec/models/incoming_number_list_spec.rb +181 -39
- data/spec/models/incoming_number_request_spec.rb +76 -20
- data/spec/models/incoming_number_result_spec.rb +370 -62
- data/spec/models/language_spec.rb +1 -1
- data/spec/models/leave_conference_webhook_spec.rb +643 -0
- data/spec/models/log_level_spec.rb +1 -1
- data/spec/models/log_list_spec.rb +181 -39
- data/spec/models/log_result_spec.rb +190 -50
- data/spec/models/machine_detected_webhook_spec.rb +758 -0
- data/spec/models/machine_type_spec.rb +10 -10
- data/spec/models/make_call_request_spec.rb +223 -41
- data/spec/models/message_delivery_webhook_spec.rb +630 -0
- data/spec/models/message_direction_spec.rb +1 -1
- data/spec/models/message_request_spec.rb +202 -38
- data/spec/models/message_result_spec.rb +375 -74
- data/spec/models/message_status_spec.rb +1 -1
- data/spec/models/message_status_webhook_spec.rb +732 -0
- data/spec/models/messages_list_spec.rb +181 -39
- data/spec/models/mutable_resource_model_spec.rb +97 -23
- data/spec/models/out_dial_api_connect_webhook_spec.rb +692 -0
- data/spec/models/out_dial_connect_webhook_spec.rb +692 -0
- data/spec/models/out_dial_spec.rb +253 -59
- data/spec/models/out_dial_start_webhook_spec.rb +741 -0
- data/spec/models/pagination_model_spec.rb +160 -32
- data/spec/models/park_spec.rb +76 -20
- data/spec/models/pause_spec.rb +34 -14
- data/spec/models/percl_command_spec.rb +34 -14
- data/spec/models/percl_script_spec.rb +34 -18
- data/spec/models/play_beep_spec.rb +1 -1
- data/spec/models/play_early_media_spec.rb +34 -14
- data/spec/models/play_spec.rb +76 -20
- data/spec/models/queue_list_spec.rb +181 -39
- data/spec/models/queue_member_list_spec.rb +181 -39
- data/spec/models/queue_member_spec.rb +118 -26
- data/spec/models/queue_request_spec.rb +55 -17
- data/spec/models/queue_result_spec.rb +244 -44
- data/spec/models/queue_result_status_spec.rb +1 -1
- data/spec/models/queue_wait_webhook_spec.rb +794 -0
- data/spec/models/record_utterance_spec.rb +160 -32
- data/spec/models/record_utterance_term_reason_spec.rb +1 -1
- data/spec/models/record_webhook_spec.rb +1062 -0
- data/spec/models/recording_list_spec.rb +181 -39
- data/spec/models/recording_result_spec.rb +202 -38
- data/spec/models/redirect_spec.rb +34 -14
- data/spec/models/redirect_webhook_spec.rb +692 -0
- data/spec/models/reject_spec.rb +34 -14
- data/spec/models/remove_from_conference_spec.rb +1 -1
- data/spec/models/remove_from_queue_notification_webhook_spec.rb +768 -0
- data/spec/models/request_type_spec.rb +1 -1
- data/spec/models/say_spec.rb +97 -23
- data/spec/models/send_digits_spec.rb +76 -20
- data/spec/models/set_dtmf_pass_through_spec.rb +34 -14
- data/spec/models/set_listen_spec.rb +34 -14
- data/spec/models/set_talk_spec.rb +34 -14
- data/spec/models/sms_spec.rb +97 -23
- data/spec/models/sms_ten_dlc_brand_alt_business_id_type_spec.rb +93 -0
- data/spec/models/sms_ten_dlc_brand_entity_type_spec.rb +109 -0
- data/spec/models/sms_ten_dlc_brand_identity_status_spec.rb +93 -0
- data/spec/models/sms_ten_dlc_brand_relationship_spec.rb +109 -0
- data/spec/models/sms_ten_dlc_brand_spec.rb +933 -378
- data/spec/models/sms_ten_dlc_brand_stock_exchange_spec.rb +461 -0
- data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +181 -39
- data/spec/models/sms_ten_dlc_campaign_spec.rb +820 -164
- data/spec/models/sms_ten_dlc_campaign_status_spec.rb +61 -0
- data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +181 -39
- data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +251 -51
- data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +713 -183
- data/spec/models/sms_ten_dlc_partner_campaign_status_spec.rb +61 -0
- data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +181 -39
- data/spec/models/sms_toll_free_campaign_registration_status_spec.rb +109 -0
- data/spec/models/sms_toll_free_campaign_spec.rb +200 -69
- data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +181 -39
- data/spec/models/start_record_call_spec.rb +1 -1
- data/spec/models/terminate_conference_spec.rb +1 -1
- data/spec/models/tfn_spec.rb +34 -14
- data/spec/models/transcribe_reason_spec.rb +109 -0
- data/spec/models/transcribe_term_reason_spec.rb +61 -0
- data/spec/models/{transcribe_utterance_all_of_record_spec.rb → transcribe_utterance_record_spec.rb} +99 -43
- data/spec/models/transcribe_utterance_spec.rb +155 -45
- data/spec/models/transcribe_webhook_spec.rb +1373 -0
- data/spec/models/unpark_spec.rb +1 -1
- data/spec/models/update_call_request_spec.rb +64 -32
- data/spec/models/update_call_request_status_spec.rb +1 -1
- data/spec/models/update_conference_participant_request_spec.rb +104 -17
- data/spec/models/update_conference_request_spec.rb +136 -56
- data/spec/models/update_conference_request_status_spec.rb +1 -1
- data/spec/models/webhook_spec.rb +176 -0
- data/spec/quickstart_spec.rb +7 -7
- data/spec/spec_helper.rb +1 -1
- data/spec/utils/request_verifier_spec.rb +123 -123
- data/spec/utils/signature_information_spec.rb +36 -36
- data/yarn.lock +91 -91
- metadata +157 -100
- data/docs/AccountResultAllOf.md +0 -30
- data/docs/AddToConferenceAllOf.md +0 -36
- data/docs/ApplicationListAllOf.md +0 -18
- data/docs/ApplicationResultAllOf.md +0 -34
- data/docs/AvailableNumberListAllOf.md +0 -18
- data/docs/CallListAllOf.md +0 -18
- data/docs/CallResultAllOf.md +0 -48
- data/docs/ConferenceListAllOf.md +0 -18
- data/docs/ConferenceParticipantListAllOf.md +0 -18
- data/docs/ConferenceParticipantResultAllOf.md +0 -30
- data/docs/ConferenceResultAllOf.md +0 -36
- data/docs/CreateConferenceAllOf.md +0 -28
- data/docs/EnqueueAllOf.md +0 -24
- data/docs/GetDigitsAllOf.md +0 -34
- data/docs/GetSpeechAllOf.md +0 -42
- data/docs/HangupAllOf.md +0 -18
- data/docs/IncomingNumberListAllOf.md +0 -18
- data/docs/IncomingNumberResultAllOf.md +0 -42
- data/docs/LogListAllOf.md +0 -18
- data/docs/MessageRequestAllOf.md +0 -26
- data/docs/MessageResultAllOf.md +0 -40
- data/docs/MessagesListAllOf.md +0 -18
- data/docs/OutDialAllOf.md +0 -36
- data/docs/ParkAllOf.md +0 -22
- data/docs/PauseAllOf.md +0 -18
- data/docs/PlayAllOf.md +0 -22
- data/docs/PlayEarlyMediaAllOf.md +0 -18
- data/docs/QueueListAllOf.md +0 -18
- data/docs/QueueMemberListAllOf.md +0 -18
- data/docs/QueueResultAllOf.md +0 -30
- data/docs/RecordUtteranceAllOf.md +0 -30
- data/docs/RecordingListAllOf.md +0 -18
- data/docs/RecordingResultAllOf.md +0 -26
- data/docs/RedirectAllOf.md +0 -18
- data/docs/RejectAllOf.md +0 -18
- data/docs/RemoveFromConferenceAllOf.md +0 -18
- data/docs/SMSTenDLCBrandsListResultAllOf.md +0 -18
- data/docs/SMSTenDLCCampaignsListResultAllOf.md +0 -18
- data/docs/SMSTenDLCPartnerCampaignsListResultAllOf.md +0 -18
- data/docs/SMSTollFreeCampaignsListResultAllOf.md +0 -18
- data/docs/SayAllOf.md +0 -24
- data/docs/SendDigitsAllOf.md +0 -22
- data/docs/SetDTMFPassThroughAllOf.md +0 -18
- data/docs/SetListenAllOf.md +0 -18
- data/docs/SetTalkAllOf.md +0 -18
- data/docs/SmsAllOf.md +0 -24
- data/docs/TerminateConferenceAllOf.md +0 -18
- data/docs/TranscribeUtteranceAllOf.md +0 -28
- data/docs/TranscribeUtteranceAllOfRecord.md +0 -22
- data/lib/freeclimb/models/account_result_all_of.rb +0 -289
- data/lib/freeclimb/models/add_to_conference_all_of.rb +0 -318
- data/lib/freeclimb/models/application_list_all_of.rb +0 -226
- data/lib/freeclimb/models/application_result_all_of.rb +0 -313
- data/lib/freeclimb/models/available_number_list_all_of.rb +0 -226
- data/lib/freeclimb/models/conference_list_all_of.rb +0 -226
- data/lib/freeclimb/models/conference_participant_list_all_of.rb +0 -226
- data/lib/freeclimb/models/create_conference_all_of.rb +0 -280
- data/lib/freeclimb/models/enqueue_all_of.rb +0 -266
- data/lib/freeclimb/models/get_digits_all_of.rb +0 -310
- data/lib/freeclimb/models/get_speech_all_of.rb +0 -354
- data/lib/freeclimb/models/hangup_all_of.rb +0 -224
- data/lib/freeclimb/models/incoming_number_list_all_of.rb +0 -226
- data/lib/freeclimb/models/log_list_all_of.rb +0 -226
- data/lib/freeclimb/models/message_request_all_of.rb +0 -279
- data/lib/freeclimb/models/messages_list_all_of.rb +0 -227
- data/lib/freeclimb/models/out_dial_all_of.rb +0 -329
- data/lib/freeclimb/models/park_all_of.rb +0 -252
- data/lib/freeclimb/models/pause_all_of.rb +0 -228
- data/lib/freeclimb/models/play_all_of.rb +0 -248
- data/lib/freeclimb/models/play_early_media_all_of.rb +0 -228
- data/lib/freeclimb/models/queue_list_all_of.rb +0 -226
- data/lib/freeclimb/models/queue_member_list_all_of.rb +0 -226
- data/lib/freeclimb/models/queue_result_all_of.rb +0 -291
- data/lib/freeclimb/models/record_utterance_all_of.rb +0 -288
- data/lib/freeclimb/models/recording_list_all_of.rb +0 -226
- data/lib/freeclimb/models/redirect_all_of.rb +0 -228
- data/lib/freeclimb/models/reject_all_of.rb +0 -224
- data/lib/freeclimb/models/say_all_of.rb +0 -260
- data/lib/freeclimb/models/send_digits_all_of.rb +0 -248
- data/lib/freeclimb/models/set_dtmf_pass_through_all_of.rb +0 -224
- data/lib/freeclimb/models/set_listen_all_of.rb +0 -224
- data/lib/freeclimb/models/set_talk_all_of.rb +0 -224
- data/lib/freeclimb/models/sms_all_of.rb +0 -266
- data/lib/freeclimb/models/sms_ten_dlc_brands_list_result_all_of.rb +0 -226
- data/lib/freeclimb/models/sms_ten_dlc_campaigns_list_result_all_of.rb +0 -226
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaigns_list_result_all_of.rb +0 -226
- data/lib/freeclimb/models/sms_toll_free_campaigns_list_result_all_of.rb +0 -226
- data/lib/freeclimb/models/transcribe_utterance_all_of.rb +0 -281
@@ -1,329 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#FreeClimb API
|
3
|
-
|
4
|
-
#FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
|
5
|
-
|
6
|
-
The version of the OpenAPI document: 1.0.0
|
7
|
-
Contact: support@freeclimb.com
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.4.0
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'date'
|
14
|
-
require 'time'
|
15
|
-
|
16
|
-
module Freeclimb
|
17
|
-
class OutDialAllOf
|
18
|
-
# URL to which FreeClimb sends an HTTP POST request.
|
19
|
-
attr_accessor :action_url
|
20
|
-
|
21
|
-
# URL to which FreeClimb makes an HTTP POST request informing the result of the OutDial.
|
22
|
-
attr_accessor :call_connect_url
|
23
|
-
|
24
|
-
# he caller ID to show to the called party when FreeClimb calls. This can be one of the following: The To or From number provided in the first Webhook to your webserver. Any phone number you have purchased from FreeClimb.
|
25
|
-
attr_accessor :calling_number
|
26
|
-
|
27
|
-
# E.164 representation of the phone number to Call.
|
28
|
-
attr_accessor :destination
|
29
|
-
|
30
|
-
attr_accessor :if_machine
|
31
|
-
|
32
|
-
# When the `ifMachine` flag is set to `redirect`, this attribute specifies a URL to which FreeClimb makes a POST request when an answering machine or a fax machine is detected. This URL is required if the `ifMachine` flag is set to `redirect`. Otherwise, it should not be included.
|
33
|
-
attr_accessor :if_machine_url
|
34
|
-
|
35
|
-
# DTMF tones to play to the outdialed Call. This is typically used to dial a number and then dial an extension.
|
36
|
-
attr_accessor :send_digits
|
37
|
-
|
38
|
-
# When the outdialed Call leg terminates, FreeClimb sends a `callStatus` Webhook to the `statusCallbackUrl`. This is a notification only; any PerCL command returned is ignored.
|
39
|
-
attr_accessor :status_callback_url
|
40
|
-
|
41
|
-
# Maximum time in seconds the `OutDial` command waits for the called party to answer the Call. When a timeout occurs, FreeClimb invokes the `callConnectUrl` Webhook to report that the out-dialed Call has ended with a status of `noAnswer`.
|
42
|
-
attr_accessor :timeout
|
43
|
-
|
44
|
-
# Parameter `privacyMode` will not log the `text` as required by PCI compliance.
|
45
|
-
attr_accessor :privacy_mode
|
46
|
-
|
47
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
48
|
-
def self.attribute_map
|
49
|
-
{
|
50
|
-
:'action_url' => :'actionUrl',
|
51
|
-
:'call_connect_url' => :'callConnectUrl',
|
52
|
-
:'calling_number' => :'callingNumber',
|
53
|
-
:'destination' => :'destination',
|
54
|
-
:'if_machine' => :'ifMachine',
|
55
|
-
:'if_machine_url' => :'ifMachineUrl',
|
56
|
-
:'send_digits' => :'sendDigits',
|
57
|
-
:'status_callback_url' => :'statusCallbackUrl',
|
58
|
-
:'timeout' => :'timeout',
|
59
|
-
:'privacy_mode' => :'privacyMode'
|
60
|
-
}
|
61
|
-
end
|
62
|
-
|
63
|
-
# Returns all the JSON keys this model knows about
|
64
|
-
def self.acceptable_attributes
|
65
|
-
attribute_map.values
|
66
|
-
end
|
67
|
-
|
68
|
-
# Attribute type mapping.
|
69
|
-
def self.openapi_types
|
70
|
-
{
|
71
|
-
:'action_url' => :'String',
|
72
|
-
:'call_connect_url' => :'String',
|
73
|
-
:'calling_number' => :'String',
|
74
|
-
:'destination' => :'String',
|
75
|
-
:'if_machine' => :'IfMachine',
|
76
|
-
:'if_machine_url' => :'String',
|
77
|
-
:'send_digits' => :'String',
|
78
|
-
:'status_callback_url' => :'String',
|
79
|
-
:'timeout' => :'Integer',
|
80
|
-
:'privacy_mode' => :'Boolean'
|
81
|
-
}
|
82
|
-
end
|
83
|
-
|
84
|
-
# List of attributes with nullable: true
|
85
|
-
def self.openapi_nullable
|
86
|
-
Set.new([
|
87
|
-
])
|
88
|
-
end
|
89
|
-
|
90
|
-
# Initializes the object
|
91
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
92
|
-
def initialize(attributes = {})
|
93
|
-
if (!attributes.is_a?(Hash))
|
94
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Freeclimb::OutDialAllOf` initialize method"
|
95
|
-
end
|
96
|
-
|
97
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
98
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
99
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
100
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Freeclimb::OutDialAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
101
|
-
end
|
102
|
-
h[k.to_sym] = v
|
103
|
-
}
|
104
|
-
|
105
|
-
if attributes.key?(:'action_url')
|
106
|
-
self.action_url = attributes[:'action_url']
|
107
|
-
end
|
108
|
-
|
109
|
-
if attributes.key?(:'call_connect_url')
|
110
|
-
self.call_connect_url = attributes[:'call_connect_url']
|
111
|
-
end
|
112
|
-
|
113
|
-
if attributes.key?(:'calling_number')
|
114
|
-
self.calling_number = attributes[:'calling_number']
|
115
|
-
end
|
116
|
-
|
117
|
-
if attributes.key?(:'destination')
|
118
|
-
self.destination = attributes[:'destination']
|
119
|
-
end
|
120
|
-
|
121
|
-
if attributes.key?(:'if_machine')
|
122
|
-
self.if_machine = attributes[:'if_machine']
|
123
|
-
end
|
124
|
-
|
125
|
-
if attributes.key?(:'if_machine_url')
|
126
|
-
self.if_machine_url = attributes[:'if_machine_url']
|
127
|
-
end
|
128
|
-
|
129
|
-
if attributes.key?(:'send_digits')
|
130
|
-
self.send_digits = attributes[:'send_digits']
|
131
|
-
end
|
132
|
-
|
133
|
-
if attributes.key?(:'status_callback_url')
|
134
|
-
self.status_callback_url = attributes[:'status_callback_url']
|
135
|
-
end
|
136
|
-
|
137
|
-
if attributes.key?(:'timeout')
|
138
|
-
self.timeout = attributes[:'timeout']
|
139
|
-
end
|
140
|
-
|
141
|
-
if attributes.key?(:'privacy_mode')
|
142
|
-
self.privacy_mode = attributes[:'privacy_mode']
|
143
|
-
end
|
144
|
-
end
|
145
|
-
|
146
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
147
|
-
# @return Array for valid properties with the reasons
|
148
|
-
def list_invalid_properties
|
149
|
-
invalid_properties = Array.new
|
150
|
-
if @action_url.nil?
|
151
|
-
invalid_properties.push('invalid value for "action_url", action_url cannot be nil.')
|
152
|
-
end
|
153
|
-
|
154
|
-
if @call_connect_url.nil?
|
155
|
-
invalid_properties.push('invalid value for "call_connect_url", call_connect_url cannot be nil.')
|
156
|
-
end
|
157
|
-
|
158
|
-
if @calling_number.nil?
|
159
|
-
invalid_properties.push('invalid value for "calling_number", calling_number cannot be nil.')
|
160
|
-
end
|
161
|
-
|
162
|
-
if @destination.nil?
|
163
|
-
invalid_properties.push('invalid value for "destination", destination cannot be nil.')
|
164
|
-
end
|
165
|
-
|
166
|
-
invalid_properties
|
167
|
-
end
|
168
|
-
|
169
|
-
# Check to see if the all the properties in the model are valid
|
170
|
-
# @return true if the model is valid
|
171
|
-
def valid?
|
172
|
-
|
173
|
-
if @action_url.nil?
|
174
|
-
false
|
175
|
-
else
|
176
|
-
list_invalid_properties.length() == 0
|
177
|
-
end
|
178
|
-
end
|
179
|
-
|
180
|
-
# Checks equality by comparing each attribute.
|
181
|
-
# @param [Object] Object to be compared
|
182
|
-
def ==(o)
|
183
|
-
return true if self.equal?(o)
|
184
|
-
self.class == o.class &&
|
185
|
-
action_url == o.action_url &&
|
186
|
-
call_connect_url == o.call_connect_url &&
|
187
|
-
calling_number == o.calling_number &&
|
188
|
-
destination == o.destination &&
|
189
|
-
if_machine == o.if_machine &&
|
190
|
-
if_machine_url == o.if_machine_url &&
|
191
|
-
send_digits == o.send_digits &&
|
192
|
-
status_callback_url == o.status_callback_url &&
|
193
|
-
timeout == o.timeout &&
|
194
|
-
privacy_mode == o.privacy_mode
|
195
|
-
end
|
196
|
-
|
197
|
-
# @see the `==` method
|
198
|
-
# @param [Object] Object to be compared
|
199
|
-
def eql?(o)
|
200
|
-
self == o
|
201
|
-
end
|
202
|
-
|
203
|
-
# Calculates hash code according to all attributes.
|
204
|
-
# @return [Integer] Hash code
|
205
|
-
def hash
|
206
|
-
[action_url, call_connect_url, calling_number, destination, if_machine, if_machine_url, send_digits, status_callback_url, timeout, privacy_mode].hash
|
207
|
-
end
|
208
|
-
|
209
|
-
# Builds the object from hash
|
210
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
211
|
-
# @return [Object] Returns the model itself
|
212
|
-
def self.build_from_hash(attributes)
|
213
|
-
new.build_from_hash(attributes)
|
214
|
-
end
|
215
|
-
|
216
|
-
# Builds the object from hash
|
217
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
218
|
-
# @return [Object] Returns the model itself
|
219
|
-
def build_from_hash(attributes)
|
220
|
-
return nil unless attributes.is_a?(Hash)
|
221
|
-
self.class.openapi_types.each_pair do |key, type|
|
222
|
-
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
223
|
-
self.send("#{key}=", nil)
|
224
|
-
elsif type =~ /\AArray<(.*)>/i
|
225
|
-
# check to ensure the input is an array given that the attribute
|
226
|
-
# is documented as an array but the input is not
|
227
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
228
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
229
|
-
end
|
230
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
231
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
232
|
-
end
|
233
|
-
end
|
234
|
-
|
235
|
-
self
|
236
|
-
end
|
237
|
-
|
238
|
-
# Deserializes the data based on type
|
239
|
-
# @param string type Data type
|
240
|
-
# @param string value Value to be deserialized
|
241
|
-
# @return [Object] Deserialized data
|
242
|
-
def _deserialize(type, value)
|
243
|
-
case type.to_sym
|
244
|
-
when :Time
|
245
|
-
Time.parse(value)
|
246
|
-
when :Date
|
247
|
-
Date.parse(value)
|
248
|
-
when :String
|
249
|
-
value.to_s
|
250
|
-
when :Integer
|
251
|
-
value.to_i
|
252
|
-
when :Float
|
253
|
-
value.to_f
|
254
|
-
when :Boolean
|
255
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
256
|
-
true
|
257
|
-
else
|
258
|
-
false
|
259
|
-
end
|
260
|
-
when :Object
|
261
|
-
# generic object (usually a Hash), return directly
|
262
|
-
value
|
263
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
264
|
-
inner_type = Regexp.last_match[:inner_type]
|
265
|
-
value.map { |v| _deserialize(inner_type, v) }
|
266
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
267
|
-
k_type = Regexp.last_match[:k_type]
|
268
|
-
v_type = Regexp.last_match[:v_type]
|
269
|
-
{}.tap do |hash|
|
270
|
-
value.each do |k, v|
|
271
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
272
|
-
end
|
273
|
-
end
|
274
|
-
else # model
|
275
|
-
# models (e.g. Pet) or oneOf
|
276
|
-
klass = Freeclimb.const_get(type)
|
277
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
278
|
-
end
|
279
|
-
end
|
280
|
-
|
281
|
-
# Returns the string representation of the object
|
282
|
-
# @return [String] String presentation of the object
|
283
|
-
def to_s
|
284
|
-
to_hash.to_s
|
285
|
-
end
|
286
|
-
|
287
|
-
# to_body is an alias to to_hash (backward compatibility)
|
288
|
-
# @return [Hash] Returns the object in the form of hash
|
289
|
-
def to_body
|
290
|
-
to_hash
|
291
|
-
end
|
292
|
-
|
293
|
-
# Returns the object in the form of hash
|
294
|
-
# @return [Hash] Returns the object in the form of hash
|
295
|
-
def to_hash
|
296
|
-
hash = {}
|
297
|
-
self.class.attribute_map.each_pair do |attr, param|
|
298
|
-
value = self.send(attr)
|
299
|
-
if value.nil?
|
300
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
301
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
302
|
-
end
|
303
|
-
|
304
|
-
hash[param] = _to_hash(value)
|
305
|
-
end
|
306
|
-
hash
|
307
|
-
end
|
308
|
-
|
309
|
-
# Outputs non-array value in the form of hash
|
310
|
-
# For object, use to_hash. Otherwise, just return the value
|
311
|
-
# @param [Object] value Any valid value
|
312
|
-
# @return [Hash] Returns the value in the form of hash
|
313
|
-
def _to_hash(value)
|
314
|
-
if value.is_a?(Array)
|
315
|
-
value.compact.map { |v| _to_hash(v) }
|
316
|
-
elsif value.is_a?(Hash)
|
317
|
-
{}.tap do |hash|
|
318
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
319
|
-
end
|
320
|
-
elsif value.respond_to? :to_hash
|
321
|
-
value.to_hash
|
322
|
-
else
|
323
|
-
value
|
324
|
-
end
|
325
|
-
end
|
326
|
-
|
327
|
-
end
|
328
|
-
|
329
|
-
end
|
@@ -1,252 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#FreeClimb API
|
3
|
-
|
4
|
-
#FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
|
5
|
-
|
6
|
-
The version of the OpenAPI document: 1.0.0
|
7
|
-
Contact: support@freeclimb.com
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.4.0
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'date'
|
14
|
-
require 'time'
|
15
|
-
|
16
|
-
module Freeclimb
|
17
|
-
class ParkAllOf
|
18
|
-
# Specifies a URL pointing to a PerCL script containing actions to be executed while the caller is Parked. Once the script returned by the waitUrl runs out of commands to execute, FreeClimb will re-request the waitUrl and start over, essentially looping the script requests indefinitely.
|
19
|
-
attr_accessor :wait_url
|
20
|
-
|
21
|
-
# A request is made to this URL when the Call is resumed, which can occur if the Call is resumed via the Unpark command, the REST API (POST to Call resource), or the caller hangs up. The PerCL script returned in response to the actionUrl will be executed on the resumed call.
|
22
|
-
attr_accessor :action_url
|
23
|
-
|
24
|
-
# URL to be invoked when the Call is parked. The request to the URL contains the standard request parameters.
|
25
|
-
attr_accessor :notification_url
|
26
|
-
|
27
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
28
|
-
def self.attribute_map
|
29
|
-
{
|
30
|
-
:'wait_url' => :'waitUrl',
|
31
|
-
:'action_url' => :'actionUrl',
|
32
|
-
:'notification_url' => :'notificationUrl'
|
33
|
-
}
|
34
|
-
end
|
35
|
-
|
36
|
-
# Returns all the JSON keys this model knows about
|
37
|
-
def self.acceptable_attributes
|
38
|
-
attribute_map.values
|
39
|
-
end
|
40
|
-
|
41
|
-
# Attribute type mapping.
|
42
|
-
def self.openapi_types
|
43
|
-
{
|
44
|
-
:'wait_url' => :'String',
|
45
|
-
:'action_url' => :'String',
|
46
|
-
:'notification_url' => :'String'
|
47
|
-
}
|
48
|
-
end
|
49
|
-
|
50
|
-
# List of attributes with nullable: true
|
51
|
-
def self.openapi_nullable
|
52
|
-
Set.new([
|
53
|
-
])
|
54
|
-
end
|
55
|
-
|
56
|
-
# Initializes the object
|
57
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
58
|
-
def initialize(attributes = {})
|
59
|
-
if (!attributes.is_a?(Hash))
|
60
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Freeclimb::ParkAllOf` initialize method"
|
61
|
-
end
|
62
|
-
|
63
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
64
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
65
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
66
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Freeclimb::ParkAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
67
|
-
end
|
68
|
-
h[k.to_sym] = v
|
69
|
-
}
|
70
|
-
|
71
|
-
if attributes.key?(:'wait_url')
|
72
|
-
self.wait_url = attributes[:'wait_url']
|
73
|
-
end
|
74
|
-
|
75
|
-
if attributes.key?(:'action_url')
|
76
|
-
self.action_url = attributes[:'action_url']
|
77
|
-
end
|
78
|
-
|
79
|
-
if attributes.key?(:'notification_url')
|
80
|
-
self.notification_url = attributes[:'notification_url']
|
81
|
-
end
|
82
|
-
end
|
83
|
-
|
84
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
85
|
-
# @return Array for valid properties with the reasons
|
86
|
-
def list_invalid_properties
|
87
|
-
invalid_properties = Array.new
|
88
|
-
if @wait_url.nil?
|
89
|
-
invalid_properties.push('invalid value for "wait_url", wait_url cannot be nil.')
|
90
|
-
end
|
91
|
-
|
92
|
-
if @action_url.nil?
|
93
|
-
invalid_properties.push('invalid value for "action_url", action_url cannot be nil.')
|
94
|
-
end
|
95
|
-
|
96
|
-
invalid_properties
|
97
|
-
end
|
98
|
-
|
99
|
-
# Check to see if the all the properties in the model are valid
|
100
|
-
# @return true if the model is valid
|
101
|
-
def valid?
|
102
|
-
|
103
|
-
if @wait_url.nil?
|
104
|
-
false
|
105
|
-
else
|
106
|
-
list_invalid_properties.length() == 0
|
107
|
-
end
|
108
|
-
end
|
109
|
-
|
110
|
-
# Checks equality by comparing each attribute.
|
111
|
-
# @param [Object] Object to be compared
|
112
|
-
def ==(o)
|
113
|
-
return true if self.equal?(o)
|
114
|
-
self.class == o.class &&
|
115
|
-
wait_url == o.wait_url &&
|
116
|
-
action_url == o.action_url &&
|
117
|
-
notification_url == o.notification_url
|
118
|
-
end
|
119
|
-
|
120
|
-
# @see the `==` method
|
121
|
-
# @param [Object] Object to be compared
|
122
|
-
def eql?(o)
|
123
|
-
self == o
|
124
|
-
end
|
125
|
-
|
126
|
-
# Calculates hash code according to all attributes.
|
127
|
-
# @return [Integer] Hash code
|
128
|
-
def hash
|
129
|
-
[wait_url, action_url, notification_url].hash
|
130
|
-
end
|
131
|
-
|
132
|
-
# Builds the object from hash
|
133
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
134
|
-
# @return [Object] Returns the model itself
|
135
|
-
def self.build_from_hash(attributes)
|
136
|
-
new.build_from_hash(attributes)
|
137
|
-
end
|
138
|
-
|
139
|
-
# Builds the object from hash
|
140
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
141
|
-
# @return [Object] Returns the model itself
|
142
|
-
def build_from_hash(attributes)
|
143
|
-
return nil unless attributes.is_a?(Hash)
|
144
|
-
self.class.openapi_types.each_pair do |key, type|
|
145
|
-
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
146
|
-
self.send("#{key}=", nil)
|
147
|
-
elsif type =~ /\AArray<(.*)>/i
|
148
|
-
# check to ensure the input is an array given that the attribute
|
149
|
-
# is documented as an array but the input is not
|
150
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
151
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
152
|
-
end
|
153
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
154
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
155
|
-
end
|
156
|
-
end
|
157
|
-
|
158
|
-
self
|
159
|
-
end
|
160
|
-
|
161
|
-
# Deserializes the data based on type
|
162
|
-
# @param string type Data type
|
163
|
-
# @param string value Value to be deserialized
|
164
|
-
# @return [Object] Deserialized data
|
165
|
-
def _deserialize(type, value)
|
166
|
-
case type.to_sym
|
167
|
-
when :Time
|
168
|
-
Time.parse(value)
|
169
|
-
when :Date
|
170
|
-
Date.parse(value)
|
171
|
-
when :String
|
172
|
-
value.to_s
|
173
|
-
when :Integer
|
174
|
-
value.to_i
|
175
|
-
when :Float
|
176
|
-
value.to_f
|
177
|
-
when :Boolean
|
178
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
179
|
-
true
|
180
|
-
else
|
181
|
-
false
|
182
|
-
end
|
183
|
-
when :Object
|
184
|
-
# generic object (usually a Hash), return directly
|
185
|
-
value
|
186
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
187
|
-
inner_type = Regexp.last_match[:inner_type]
|
188
|
-
value.map { |v| _deserialize(inner_type, v) }
|
189
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
190
|
-
k_type = Regexp.last_match[:k_type]
|
191
|
-
v_type = Regexp.last_match[:v_type]
|
192
|
-
{}.tap do |hash|
|
193
|
-
value.each do |k, v|
|
194
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
195
|
-
end
|
196
|
-
end
|
197
|
-
else # model
|
198
|
-
# models (e.g. Pet) or oneOf
|
199
|
-
klass = Freeclimb.const_get(type)
|
200
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
201
|
-
end
|
202
|
-
end
|
203
|
-
|
204
|
-
# Returns the string representation of the object
|
205
|
-
# @return [String] String presentation of the object
|
206
|
-
def to_s
|
207
|
-
to_hash.to_s
|
208
|
-
end
|
209
|
-
|
210
|
-
# to_body is an alias to to_hash (backward compatibility)
|
211
|
-
# @return [Hash] Returns the object in the form of hash
|
212
|
-
def to_body
|
213
|
-
to_hash
|
214
|
-
end
|
215
|
-
|
216
|
-
# Returns the object in the form of hash
|
217
|
-
# @return [Hash] Returns the object in the form of hash
|
218
|
-
def to_hash
|
219
|
-
hash = {}
|
220
|
-
self.class.attribute_map.each_pair do |attr, param|
|
221
|
-
value = self.send(attr)
|
222
|
-
if value.nil?
|
223
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
224
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
225
|
-
end
|
226
|
-
|
227
|
-
hash[param] = _to_hash(value)
|
228
|
-
end
|
229
|
-
hash
|
230
|
-
end
|
231
|
-
|
232
|
-
# Outputs non-array value in the form of hash
|
233
|
-
# For object, use to_hash. Otherwise, just return the value
|
234
|
-
# @param [Object] value Any valid value
|
235
|
-
# @return [Hash] Returns the value in the form of hash
|
236
|
-
def _to_hash(value)
|
237
|
-
if value.is_a?(Array)
|
238
|
-
value.compact.map { |v| _to_hash(v) }
|
239
|
-
elsif value.is_a?(Hash)
|
240
|
-
{}.tap do |hash|
|
241
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
242
|
-
end
|
243
|
-
elsif value.respond_to? :to_hash
|
244
|
-
value.to_hash
|
245
|
-
else
|
246
|
-
value
|
247
|
-
end
|
248
|
-
end
|
249
|
-
|
250
|
-
end
|
251
|
-
|
252
|
-
end
|