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
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: support@freeclimb.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.9.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -44,23 +44,15 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
|
|
44
44
|
|
45
45
|
|
46
46
|
describe 'test attribute "status"' do
|
47
|
-
|
48
47
|
it 'assigns value ACTIVE' do
|
49
|
-
instance.status =
|
50
|
-
expect(instance.status).to eq(
|
48
|
+
instance.status = Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE
|
49
|
+
expect(instance.status).to eq(Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE)
|
51
50
|
end
|
52
|
-
|
53
51
|
it 'assigns value EXPIRED' do
|
54
|
-
instance.status =
|
55
|
-
expect(instance.status).to eq(
|
56
|
-
end
|
57
|
-
|
58
|
-
it 'throws error on invalid enum' do
|
59
|
-
instance = Freeclimb::SMSTenDLCPartnerCampaign.new
|
60
|
-
expect{instance.status = "INVALID_ENUM"}.to raise_error(ArgumentError)
|
52
|
+
instance.status = Freeclimb::SMSTenDLCPartnerCampaignStatus::EXPIRED
|
53
|
+
expect(instance.status).to eq(Freeclimb::SMSTenDLCPartnerCampaignStatus::EXPIRED)
|
61
54
|
end
|
62
55
|
end
|
63
|
-
|
64
56
|
describe 'test attribute "create_date"' do
|
65
57
|
it 'should work' do
|
66
58
|
instance.create_date = "2022-07-05T15:17:05Z"
|
@@ -75,7 +67,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
|
|
75
67
|
expect(instance.brand_id).to eq("T" * 8)
|
76
68
|
end
|
77
69
|
it 'should not assign a value over maxLength' do
|
78
|
-
expect{instance.brand_id = "T" * (8 + 1)}.to raise_error(ArgumentError)
|
70
|
+
expect { instance.brand_id = "T" * (8 + 1) }.to raise_error(ArgumentError)
|
79
71
|
end
|
80
72
|
end
|
81
73
|
|
@@ -85,7 +77,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
|
|
85
77
|
expect(instance.usecase).to eq("T" * 20)
|
86
78
|
end
|
87
79
|
it 'should not assign a value over maxLength' do
|
88
|
-
expect{instance.usecase = "T" * (20 + 1)}.to raise_error(ArgumentError)
|
80
|
+
expect { instance.usecase = "T" * (20 + 1) }.to raise_error(ArgumentError)
|
89
81
|
end
|
90
82
|
end
|
91
83
|
|
@@ -95,7 +87,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
|
|
95
87
|
expect(instance.description).to eq("T" * 4096)
|
96
88
|
end
|
97
89
|
it 'should not assign a value over maxLength' do
|
98
|
-
expect{instance.description = "T" * (4096 + 1)}.to raise_error(ArgumentError)
|
90
|
+
expect { instance.description = "T" * (4096 + 1) }.to raise_error(ArgumentError)
|
99
91
|
end
|
100
92
|
end
|
101
93
|
|
@@ -177,7 +169,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
|
|
177
169
|
expect(instance.sample1).to eq("T" * 1024)
|
178
170
|
end
|
179
171
|
it 'should not assign a value over maxLength' do
|
180
|
-
expect{instance.sample1 = "T" * (1024 + 1)}.to raise_error(ArgumentError)
|
172
|
+
expect { instance.sample1 = "T" * (1024 + 1) }.to raise_error(ArgumentError)
|
181
173
|
end
|
182
174
|
end
|
183
175
|
|
@@ -187,7 +179,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
|
|
187
179
|
expect(instance.sample2).to eq("T" * 1024)
|
188
180
|
end
|
189
181
|
it 'should not assign a value over maxLength' do
|
190
|
-
expect{instance.sample2 = "T" * (1024 + 1)}.to raise_error(ArgumentError)
|
182
|
+
expect { instance.sample2 = "T" * (1024 + 1) }.to raise_error(ArgumentError)
|
191
183
|
end
|
192
184
|
end
|
193
185
|
|
@@ -197,7 +189,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
|
|
197
189
|
expect(instance.sample3).to eq("T" * 1024)
|
198
190
|
end
|
199
191
|
it 'should not assign a value over maxLength' do
|
200
|
-
expect{instance.sample3 = "T" * (1024 + 1)}.to raise_error(ArgumentError)
|
192
|
+
expect { instance.sample3 = "T" * (1024 + 1) }.to raise_error(ArgumentError)
|
201
193
|
end
|
202
194
|
end
|
203
195
|
|
@@ -207,7 +199,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
|
|
207
199
|
expect(instance.sample4).to eq("T" * 1024)
|
208
200
|
end
|
209
201
|
it 'should not assign a value over maxLength' do
|
210
|
-
expect{instance.sample4 = "T" * (1024 + 1)}.to raise_error(ArgumentError)
|
202
|
+
expect { instance.sample4 = "T" * (1024 + 1) }.to raise_error(ArgumentError)
|
211
203
|
end
|
212
204
|
end
|
213
205
|
|
@@ -217,7 +209,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
|
|
217
209
|
expect(instance.sample5).to eq("T" * 1024)
|
218
210
|
end
|
219
211
|
it 'should not assign a value over maxLength' do
|
220
|
-
expect{instance.sample5 = "T" * (1024 + 1)}.to raise_error(ArgumentError)
|
212
|
+
expect { instance.sample5 = "T" * (1024 + 1) }.to raise_error(ArgumentError)
|
221
213
|
end
|
222
214
|
end
|
223
215
|
|
@@ -227,7 +219,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
|
|
227
219
|
expect(instance.message_flow).to eq("T" * 2048)
|
228
220
|
end
|
229
221
|
it 'should not assign a value over maxLength' do
|
230
|
-
expect{instance.message_flow = "T" * (2048 + 1)}.to raise_error(ArgumentError)
|
222
|
+
expect { instance.message_flow = "T" * (2048 + 1) }.to raise_error(ArgumentError)
|
231
223
|
end
|
232
224
|
end
|
233
225
|
|
@@ -237,7 +229,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
|
|
237
229
|
expect(instance.help_message).to eq("T" * 255)
|
238
230
|
end
|
239
231
|
it 'should not assign a value over maxLength' do
|
240
|
-
expect{instance.help_message = "T" * (255 + 1)}.to raise_error(ArgumentError)
|
232
|
+
expect { instance.help_message = "T" * (255 + 1) }.to raise_error(ArgumentError)
|
241
233
|
end
|
242
234
|
end
|
243
235
|
|
@@ -247,7 +239,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
|
|
247
239
|
expect(instance.optin_keywords).to eq("T" * 255)
|
248
240
|
end
|
249
241
|
it 'should not assign a value over maxLength' do
|
250
|
-
expect{instance.optin_keywords = "T" * (255 + 1)}.to raise_error(ArgumentError)
|
242
|
+
expect { instance.optin_keywords = "T" * (255 + 1) }.to raise_error(ArgumentError)
|
251
243
|
end
|
252
244
|
end
|
253
245
|
|
@@ -257,7 +249,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
|
|
257
249
|
expect(instance.optout_keywords).to eq("T" * 255)
|
258
250
|
end
|
259
251
|
it 'should not assign a value over maxLength' do
|
260
|
-
expect{instance.optout_keywords = "T" * (255 + 1)}.to raise_error(ArgumentError)
|
252
|
+
expect { instance.optout_keywords = "T" * (255 + 1) }.to raise_error(ArgumentError)
|
261
253
|
end
|
262
254
|
end
|
263
255
|
|
@@ -267,7 +259,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
|
|
267
259
|
expect(instance.help_keywords).to eq("T" * 255)
|
268
260
|
end
|
269
261
|
it 'should not assign a value over maxLength' do
|
270
|
-
expect{instance.help_keywords = "T" * (255 + 1)}.to raise_error(ArgumentError)
|
262
|
+
expect { instance.help_keywords = "T" * (255 + 1) }.to raise_error(ArgumentError)
|
271
263
|
end
|
272
264
|
end
|
273
265
|
|
@@ -277,7 +269,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
|
|
277
269
|
expect(instance.optin_message).to eq("T" * 255)
|
278
270
|
end
|
279
271
|
it 'should not assign a value over maxLength' do
|
280
|
-
expect{instance.optin_message = "T" * (255 + 1)}.to raise_error(ArgumentError)
|
272
|
+
expect { instance.optin_message = "T" * (255 + 1) }.to raise_error(ArgumentError)
|
281
273
|
end
|
282
274
|
end
|
283
275
|
|
@@ -287,7 +279,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
|
|
287
279
|
expect(instance.optout_message).to eq("T" * 255)
|
288
280
|
end
|
289
281
|
it 'should not assign a value over maxLength' do
|
290
|
-
expect{instance.optout_message = "T" * (255 + 1)}.to raise_error(ArgumentError)
|
282
|
+
expect { instance.optout_message = "T" * (255 + 1) }.to raise_error(ArgumentError)
|
291
283
|
end
|
292
284
|
end
|
293
285
|
|
@@ -301,105 +293,195 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
|
|
301
293
|
|
302
294
|
describe 'test method "initialize"' do
|
303
295
|
it 'properly initializes with values' do
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
296
|
+
expect { instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
|
297
|
+
account_id: "TS",
|
298
|
+
|
299
|
+
campaign_id: "TS",
|
300
|
+
|
301
|
+
|
302
|
+
status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
|
303
|
+
|
304
|
+
|
305
|
+
create_date: "2022-07-05T15:17:05Z",
|
306
|
+
brand_id: "TS",
|
307
|
+
|
308
|
+
usecase: "TS",
|
309
|
+
|
310
|
+
description: "TS",
|
311
|
+
|
312
|
+
embedded_link: true,
|
313
|
+
|
314
|
+
embedded_phone: true,
|
315
|
+
|
316
|
+
affiliate_marketing: true,
|
317
|
+
|
318
|
+
number_pool: true,
|
319
|
+
|
320
|
+
age_gated: true,
|
321
|
+
|
322
|
+
direct_lending: true,
|
323
|
+
|
324
|
+
subscriber_optin: true,
|
325
|
+
|
326
|
+
subscriber_optout: true,
|
327
|
+
|
328
|
+
subscriber_help: true,
|
329
|
+
|
330
|
+
sample1: "TS",
|
331
|
+
|
332
|
+
sample2: "TS",
|
333
|
+
|
334
|
+
sample3: "TS",
|
335
|
+
|
336
|
+
sample4: "TS",
|
337
|
+
|
338
|
+
sample5: "TS",
|
339
|
+
|
340
|
+
message_flow: "TS",
|
341
|
+
|
342
|
+
help_message: "TS",
|
343
|
+
|
344
|
+
optin_keywords: "TS",
|
345
|
+
|
346
|
+
optout_keywords: "TS",
|
347
|
+
|
348
|
+
help_keywords: "TS",
|
349
|
+
|
350
|
+
optin_message: "TS",
|
351
|
+
|
352
|
+
optout_message: "TS",
|
353
|
+
|
354
|
+
|
355
|
+
brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new(),
|
356
|
+
)}.not_to raise_error()
|
335
357
|
end
|
336
358
|
it 'fails to initialize with input argument that is not a hash in Freeclimb::SMSTenDLCPartnerCampaign' do
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
359
|
+
expect { instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
|
360
|
+
account_id: "TS",
|
361
|
+
|
362
|
+
campaign_id: "TS",
|
363
|
+
|
364
|
+
|
365
|
+
status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
|
366
|
+
|
367
|
+
|
368
|
+
create_date: "2022-07-05T15:17:05Z",
|
369
|
+
brand_id: "TS",
|
370
|
+
|
371
|
+
usecase: "TS",
|
372
|
+
|
373
|
+
description: "TS",
|
374
|
+
|
375
|
+
embedded_link: true,
|
376
|
+
|
377
|
+
embedded_phone: true,
|
378
|
+
|
379
|
+
affiliate_marketing: true,
|
380
|
+
|
381
|
+
number_pool: true,
|
382
|
+
|
383
|
+
age_gated: true,
|
384
|
+
|
385
|
+
direct_lending: true,
|
386
|
+
|
387
|
+
subscriber_optin: true,
|
388
|
+
|
389
|
+
subscriber_optout: true,
|
390
|
+
|
391
|
+
subscriber_help: true,
|
392
|
+
|
393
|
+
sample1: "TS",
|
394
|
+
|
395
|
+
sample2: "TS",
|
396
|
+
|
397
|
+
sample3: "TS",
|
398
|
+
|
399
|
+
sample4: "TS",
|
400
|
+
|
401
|
+
sample5: "TS",
|
402
|
+
|
403
|
+
message_flow: "TS",
|
404
|
+
|
405
|
+
help_message: "TS",
|
406
|
+
|
407
|
+
optin_keywords: "TS",
|
408
|
+
|
409
|
+
optout_keywords: "TS",
|
410
|
+
|
411
|
+
help_keywords: "TS",
|
412
|
+
|
413
|
+
optin_message: "TS",
|
414
|
+
|
415
|
+
optout_message: "TS",
|
416
|
+
|
417
|
+
|
418
|
+
brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new,
|
419
|
+
invalid_attribute: true
|
420
|
+
)}.to raise_error(ArgumentError)
|
369
421
|
end
|
370
422
|
it 'fails to initialize with invalid attribute' do
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
423
|
+
expect { instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
|
424
|
+
account_id: "TS",
|
425
|
+
|
426
|
+
campaign_id: "TS",
|
427
|
+
|
428
|
+
|
429
|
+
status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
|
430
|
+
|
431
|
+
|
432
|
+
create_date: "2022-07-05T15:17:05Z",
|
433
|
+
brand_id: "TS",
|
434
|
+
|
435
|
+
usecase: "TS",
|
436
|
+
|
437
|
+
description: "TS",
|
438
|
+
|
439
|
+
embedded_link: true,
|
440
|
+
|
441
|
+
embedded_phone: true,
|
442
|
+
|
443
|
+
affiliate_marketing: true,
|
444
|
+
|
445
|
+
number_pool: true,
|
446
|
+
|
447
|
+
age_gated: true,
|
448
|
+
|
449
|
+
direct_lending: true,
|
450
|
+
|
451
|
+
subscriber_optin: true,
|
452
|
+
|
453
|
+
subscriber_optout: true,
|
454
|
+
|
455
|
+
subscriber_help: true,
|
456
|
+
|
457
|
+
sample1: "TS",
|
458
|
+
|
459
|
+
sample2: "TS",
|
460
|
+
|
461
|
+
sample3: "TS",
|
462
|
+
|
463
|
+
sample4: "TS",
|
464
|
+
|
465
|
+
sample5: "TS",
|
466
|
+
|
467
|
+
message_flow: "TS",
|
468
|
+
|
469
|
+
help_message: "TS",
|
470
|
+
|
471
|
+
optin_keywords: "TS",
|
472
|
+
|
473
|
+
optout_keywords: "TS",
|
474
|
+
|
475
|
+
help_keywords: "TS",
|
476
|
+
|
477
|
+
optin_message: "TS",
|
478
|
+
|
479
|
+
optout_message: "TS",
|
480
|
+
|
481
|
+
|
482
|
+
brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new,
|
483
|
+
invalid_attribute: true
|
484
|
+
)}.to raise_error(ArgumentError)
|
403
485
|
end
|
404
486
|
end
|
405
487
|
|
@@ -407,33 +489,63 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
|
|
407
489
|
it 'checks if properties are valid' do
|
408
490
|
instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
|
409
491
|
account_id: "TS",
|
492
|
+
|
410
493
|
campaign_id: "TS",
|
411
|
-
|
494
|
+
|
495
|
+
|
496
|
+
status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
|
497
|
+
|
498
|
+
|
412
499
|
create_date: "2022-07-05T15:17:05Z",
|
413
500
|
brand_id: "TS",
|
501
|
+
|
414
502
|
usecase: "TS",
|
503
|
+
|
415
504
|
description: "TS",
|
505
|
+
|
416
506
|
embedded_link: true,
|
507
|
+
|
417
508
|
embedded_phone: true,
|
509
|
+
|
418
510
|
affiliate_marketing: true,
|
511
|
+
|
419
512
|
number_pool: true,
|
513
|
+
|
420
514
|
age_gated: true,
|
515
|
+
|
421
516
|
direct_lending: true,
|
517
|
+
|
422
518
|
subscriber_optin: true,
|
519
|
+
|
423
520
|
subscriber_optout: true,
|
521
|
+
|
424
522
|
subscriber_help: true,
|
523
|
+
|
425
524
|
sample1: "TS",
|
525
|
+
|
426
526
|
sample2: "TS",
|
527
|
+
|
427
528
|
sample3: "TS",
|
529
|
+
|
428
530
|
sample4: "TS",
|
531
|
+
|
429
532
|
sample5: "TS",
|
533
|
+
|
430
534
|
message_flow: "TS",
|
535
|
+
|
431
536
|
help_message: "TS",
|
537
|
+
|
432
538
|
optin_keywords: "TS",
|
539
|
+
|
433
540
|
optout_keywords: "TS",
|
541
|
+
|
434
542
|
help_keywords: "TS",
|
543
|
+
|
435
544
|
optin_message: "TS",
|
545
|
+
|
436
546
|
optout_message: "TS",
|
547
|
+
|
548
|
+
|
437
549
|
brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new(),
|
438
550
|
)
|
439
551
|
expect(instance.valid?).to eq(true)
|
@@ -454,63 +566,123 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
|
|
454
566
|
obj = Object.new()
|
455
567
|
instance_1 = Freeclimb::SMSTenDLCPartnerCampaign.new(
|
456
568
|
account_id: "TS",
|
569
|
+
|
457
570
|
campaign_id: "TS",
|
458
|
-
|
571
|
+
|
572
|
+
|
573
|
+
status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
|
574
|
+
|
575
|
+
|
459
576
|
brand_id: "TS",
|
577
|
+
|
460
578
|
usecase: "TS",
|
579
|
+
|
461
580
|
description: "TS",
|
581
|
+
|
462
582
|
embedded_link: true,
|
583
|
+
|
463
584
|
embedded_phone: true,
|
585
|
+
|
464
586
|
affiliate_marketing: true,
|
587
|
+
|
465
588
|
number_pool: true,
|
589
|
+
|
466
590
|
age_gated: true,
|
591
|
+
|
467
592
|
direct_lending: true,
|
593
|
+
|
468
594
|
subscriber_optin: true,
|
595
|
+
|
469
596
|
subscriber_optout: true,
|
597
|
+
|
470
598
|
subscriber_help: true,
|
599
|
+
|
471
600
|
sample1: "TS",
|
601
|
+
|
472
602
|
sample2: "TS",
|
603
|
+
|
473
604
|
sample3: "TS",
|
605
|
+
|
474
606
|
sample4: "TS",
|
607
|
+
|
475
608
|
sample5: "TS",
|
609
|
+
|
476
610
|
message_flow: "TS",
|
611
|
+
|
477
612
|
help_message: "TS",
|
613
|
+
|
478
614
|
optin_keywords: "TS",
|
615
|
+
|
479
616
|
optout_keywords: "TS",
|
617
|
+
|
480
618
|
help_keywords: "TS",
|
619
|
+
|
481
620
|
optin_message: "TS",
|
621
|
+
|
482
622
|
optout_message: "TS",
|
623
|
+
|
483
624
|
brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new(),
|
625
|
+
|
484
626
|
)
|
485
627
|
instance_2 = Freeclimb::SMSTenDLCPartnerCampaign.new(
|
486
628
|
account_id: "TS",
|
629
|
+
|
487
630
|
campaign_id: "TS",
|
488
|
-
|
631
|
+
|
632
|
+
|
633
|
+
status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
|
634
|
+
|
635
|
+
|
489
636
|
brand_id: "TS",
|
637
|
+
|
490
638
|
usecase: "TS",
|
639
|
+
|
491
640
|
description: "TS",
|
641
|
+
|
492
642
|
embedded_link: true,
|
643
|
+
|
493
644
|
embedded_phone: true,
|
645
|
+
|
494
646
|
affiliate_marketing: true,
|
647
|
+
|
495
648
|
number_pool: true,
|
649
|
+
|
496
650
|
age_gated: true,
|
651
|
+
|
497
652
|
direct_lending: true,
|
653
|
+
|
498
654
|
subscriber_optin: true,
|
655
|
+
|
499
656
|
subscriber_optout: true,
|
657
|
+
|
500
658
|
subscriber_help: true,
|
659
|
+
|
501
660
|
sample1: "TS",
|
661
|
+
|
502
662
|
sample2: "TS",
|
663
|
+
|
503
664
|
sample3: "TS",
|
665
|
+
|
504
666
|
sample4: "TS",
|
667
|
+
|
505
668
|
sample5: "TS",
|
669
|
+
|
506
670
|
message_flow: "TS",
|
671
|
+
|
507
672
|
help_message: "TS",
|
673
|
+
|
508
674
|
optin_keywords: "TS",
|
675
|
+
|
509
676
|
optout_keywords: "TS",
|
677
|
+
|
510
678
|
help_keywords: "TS",
|
679
|
+
|
511
680
|
optin_message: "TS",
|
681
|
+
|
512
682
|
optout_message: "TS",
|
683
|
+
|
513
684
|
brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new(),
|
685
|
+
|
514
686
|
)
|
515
687
|
expect(instance_1.eql?(instance_2)).to eq(true)
|
516
688
|
end
|
@@ -518,139 +690,320 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
|
|
518
690
|
it 'checks if objects are not equal' do
|
519
691
|
instance_1 = Freeclimb::SMSTenDLCPartnerCampaign.new(
|
520
692
|
account_id: "TS",
|
693
|
+
|
521
694
|
campaign_id: "TS",
|
522
|
-
|
695
|
+
|
696
|
+
|
697
|
+
status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
|
698
|
+
|
699
|
+
|
523
700
|
brand_id: "TS",
|
701
|
+
|
524
702
|
usecase: "TS",
|
703
|
+
|
525
704
|
description: "TS",
|
705
|
+
|
526
706
|
embedded_link: true,
|
707
|
+
|
527
708
|
embedded_phone: true,
|
709
|
+
|
528
710
|
affiliate_marketing: true,
|
711
|
+
|
529
712
|
number_pool: true,
|
713
|
+
|
530
714
|
age_gated: true,
|
715
|
+
|
531
716
|
direct_lending: true,
|
717
|
+
|
532
718
|
subscriber_optin: true,
|
719
|
+
|
533
720
|
subscriber_optout: true,
|
721
|
+
|
534
722
|
subscriber_help: true,
|
723
|
+
|
535
724
|
sample1: "TS",
|
725
|
+
|
536
726
|
sample2: "TS",
|
727
|
+
|
537
728
|
sample3: "TS",
|
729
|
+
|
538
730
|
sample4: "TS",
|
731
|
+
|
539
732
|
sample5: "TS",
|
733
|
+
|
540
734
|
message_flow: "TS",
|
735
|
+
|
541
736
|
help_message: "TS",
|
737
|
+
|
542
738
|
optin_keywords: "TS",
|
739
|
+
|
543
740
|
optout_keywords: "TS",
|
741
|
+
|
544
742
|
help_keywords: "TS",
|
743
|
+
|
545
744
|
optin_message: "TS",
|
745
|
+
|
546
746
|
optout_message: "TS",
|
747
|
+
|
547
748
|
brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new(),
|
749
|
+
|
548
750
|
)
|
549
751
|
instance_2 = Freeclimb::SMSTenDLCPartnerCampaign.new(
|
550
752
|
account_id: "ST",
|
753
|
+
|
551
754
|
campaign_id: "ST",
|
552
|
-
|
755
|
+
|
756
|
+
|
757
|
+
status: nil,
|
758
|
+
|
759
|
+
|
553
760
|
brand_id: "ST",
|
761
|
+
|
554
762
|
usecase: "ST",
|
763
|
+
|
555
764
|
description: "ST",
|
765
|
+
|
556
766
|
embedded_link: false,
|
767
|
+
|
557
768
|
embedded_phone: false,
|
769
|
+
|
558
770
|
affiliate_marketing: false,
|
771
|
+
|
559
772
|
number_pool: false,
|
773
|
+
|
560
774
|
age_gated: false,
|
775
|
+
|
561
776
|
direct_lending: false,
|
777
|
+
|
562
778
|
subscriber_optin: false,
|
779
|
+
|
563
780
|
subscriber_optout: false,
|
781
|
+
|
564
782
|
subscriber_help: false,
|
783
|
+
|
565
784
|
sample1: "ST",
|
785
|
+
|
566
786
|
sample2: "ST",
|
787
|
+
|
567
788
|
sample3: "ST",
|
789
|
+
|
568
790
|
sample4: "ST",
|
791
|
+
|
569
792
|
sample5: "ST",
|
793
|
+
|
570
794
|
message_flow: "ST",
|
795
|
+
|
571
796
|
help_message: "ST",
|
797
|
+
|
572
798
|
optin_keywords: "ST",
|
799
|
+
|
573
800
|
optout_keywords: "ST",
|
801
|
+
|
574
802
|
help_keywords: "ST",
|
803
|
+
|
575
804
|
optin_message: "ST",
|
805
|
+
|
576
806
|
optout_message: "ST",
|
807
|
+
|
577
808
|
brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new(),
|
809
|
+
|
810
|
+
)
|
811
|
+
expect(instance_1.eql?(instance_2)).to eq(false)
|
812
|
+
end
|
813
|
+
end
|
814
|
+
|
815
|
+
describe 'test method "hash"' do
|
816
|
+
it 'calculates hash code' do
|
817
|
+
instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
|
818
|
+
account_id: "TS",
|
819
|
+
|
820
|
+
campaign_id: "TS",
|
821
|
+
|
822
|
+
|
823
|
+
status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
|
824
|
+
|
825
|
+
|
826
|
+
create_date: "2022-07-05T15:17:05Z",
|
827
|
+
brand_id: "TS",
|
828
|
+
|
829
|
+
usecase: "TS",
|
830
|
+
|
831
|
+
description: "TS",
|
832
|
+
|
833
|
+
embedded_link: true,
|
834
|
+
|
835
|
+
embedded_phone: true,
|
836
|
+
|
837
|
+
affiliate_marketing: true,
|
838
|
+
|
839
|
+
number_pool: true,
|
840
|
+
|
841
|
+
age_gated: true,
|
842
|
+
|
843
|
+
direct_lending: true,
|
844
|
+
|
845
|
+
subscriber_optin: true,
|
846
|
+
|
847
|
+
subscriber_optout: true,
|
848
|
+
|
849
|
+
subscriber_help: true,
|
850
|
+
|
851
|
+
sample1: "TS",
|
852
|
+
|
853
|
+
sample2: "TS",
|
854
|
+
|
855
|
+
sample3: "TS",
|
856
|
+
|
857
|
+
sample4: "TS",
|
858
|
+
|
859
|
+
sample5: "TS",
|
860
|
+
|
861
|
+
message_flow: "TS",
|
862
|
+
|
863
|
+
help_message: "TS",
|
864
|
+
|
865
|
+
optin_keywords: "TS",
|
866
|
+
|
867
|
+
optout_keywords: "TS",
|
868
|
+
|
869
|
+
help_keywords: "TS",
|
870
|
+
|
871
|
+
optin_message: "TS",
|
872
|
+
|
873
|
+
optout_message: "TS",
|
874
|
+
|
875
|
+
|
876
|
+
brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new(),
|
877
|
+
)
|
878
|
+
expect(instance.hash).to be_a_kind_of(Integer)
|
879
|
+
end
|
880
|
+
end
|
881
|
+
|
882
|
+
describe 'test method "build_from_hash"' do
|
883
|
+
it 'builds equivalent model from hash code' do
|
884
|
+
instance_1 = Freeclimb::SMSTenDLCPartnerCampaign.new(
|
885
|
+
account_id: "TS",
|
886
|
+
|
887
|
+
campaign_id: "TS",
|
888
|
+
|
889
|
+
|
890
|
+
status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
|
891
|
+
|
892
|
+
|
893
|
+
create_date: "2022-07-05T15:17:05Z",
|
894
|
+
brand_id: "TS",
|
895
|
+
|
896
|
+
usecase: "TS",
|
897
|
+
|
898
|
+
description: "TS",
|
899
|
+
|
900
|
+
embedded_link: true,
|
901
|
+
|
902
|
+
embedded_phone: true,
|
903
|
+
|
904
|
+
affiliate_marketing: true,
|
905
|
+
|
906
|
+
number_pool: true,
|
907
|
+
|
908
|
+
age_gated: true,
|
909
|
+
|
910
|
+
direct_lending: true,
|
911
|
+
|
912
|
+
subscriber_optin: true,
|
913
|
+
|
914
|
+
subscriber_optout: true,
|
915
|
+
|
916
|
+
subscriber_help: true,
|
917
|
+
|
918
|
+
sample1: "TS",
|
919
|
+
|
920
|
+
sample2: "TS",
|
921
|
+
|
922
|
+
sample3: "TS",
|
923
|
+
|
924
|
+
sample4: "TS",
|
925
|
+
|
926
|
+
sample5: "TS",
|
927
|
+
|
928
|
+
message_flow: "TS",
|
929
|
+
|
930
|
+
help_message: "TS",
|
931
|
+
|
932
|
+
optin_keywords: "TS",
|
933
|
+
|
934
|
+
optout_keywords: "TS",
|
935
|
+
|
936
|
+
help_keywords: "TS",
|
937
|
+
|
938
|
+
optin_message: "TS",
|
939
|
+
|
940
|
+
optout_message: "TS",
|
941
|
+
|
942
|
+
|
943
|
+
brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new(),
|
578
944
|
)
|
579
|
-
|
580
|
-
end
|
581
|
-
end
|
582
|
-
|
583
|
-
describe 'test method "hash"' do
|
584
|
-
it 'calculates hash code' do
|
585
|
-
instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
|
586
|
-
account_id: "TS",
|
587
|
-
campaign_id: "TS",
|
588
|
-
status:"ACTIVE",
|
589
|
-
create_date: "2022-07-05T15:17:05Z",
|
590
|
-
brand_id: "TS",
|
591
|
-
usecase: "TS",
|
592
|
-
description: "TS",
|
593
|
-
embedded_link: true,
|
594
|
-
embedded_phone: true,
|
595
|
-
affiliate_marketing: true,
|
596
|
-
number_pool: true,
|
597
|
-
age_gated: true,
|
598
|
-
direct_lending: true,
|
599
|
-
subscriber_optin: true,
|
600
|
-
subscriber_optout: true,
|
601
|
-
subscriber_help: true,
|
602
|
-
sample1: "TS",
|
603
|
-
sample2: "TS",
|
604
|
-
sample3: "TS",
|
605
|
-
sample4: "TS",
|
606
|
-
sample5: "TS",
|
607
|
-
message_flow: "TS",
|
608
|
-
help_message: "TS",
|
609
|
-
optin_keywords: "TS",
|
610
|
-
optout_keywords: "TS",
|
611
|
-
help_keywords: "TS",
|
612
|
-
optin_message: "TS",
|
613
|
-
optout_message: "TS",
|
614
|
-
brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new(),
|
615
|
-
)
|
616
|
-
expect(instance.hash).to be_a_kind_of(Integer)
|
617
|
-
end
|
618
|
-
end
|
619
|
-
|
620
|
-
describe 'test method "build_from_hash"' do
|
621
|
-
it 'builds equivalent model from hash code' do
|
622
|
-
instance_1 = Freeclimb::SMSTenDLCPartnerCampaign.new(
|
945
|
+
instance_2 = Freeclimb::SMSTenDLCPartnerCampaign.new(
|
623
946
|
account_id: "TS",
|
947
|
+
|
624
948
|
campaign_id: "TS",
|
625
|
-
|
949
|
+
|
950
|
+
|
951
|
+
status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
|
952
|
+
|
953
|
+
|
626
954
|
create_date: "2022-07-05T15:17:05Z",
|
627
955
|
brand_id: "TS",
|
956
|
+
|
628
957
|
usecase: "TS",
|
958
|
+
|
629
959
|
description: "TS",
|
960
|
+
|
630
961
|
embedded_link: true,
|
962
|
+
|
631
963
|
embedded_phone: true,
|
964
|
+
|
632
965
|
affiliate_marketing: true,
|
966
|
+
|
633
967
|
number_pool: true,
|
968
|
+
|
634
969
|
age_gated: true,
|
970
|
+
|
635
971
|
direct_lending: true,
|
972
|
+
|
636
973
|
subscriber_optin: true,
|
974
|
+
|
637
975
|
subscriber_optout: true,
|
976
|
+
|
638
977
|
subscriber_help: true,
|
978
|
+
|
639
979
|
sample1: "TS",
|
980
|
+
|
640
981
|
sample2: "TS",
|
982
|
+
|
641
983
|
sample3: "TS",
|
984
|
+
|
642
985
|
sample4: "TS",
|
986
|
+
|
643
987
|
sample5: "TS",
|
988
|
+
|
644
989
|
message_flow: "TS",
|
990
|
+
|
645
991
|
help_message: "TS",
|
992
|
+
|
646
993
|
optin_keywords: "TS",
|
994
|
+
|
647
995
|
optout_keywords: "TS",
|
996
|
+
|
648
997
|
help_keywords: "TS",
|
998
|
+
|
649
999
|
optin_message: "TS",
|
1000
|
+
|
650
1001
|
optout_message: "TS",
|
1002
|
+
|
1003
|
+
|
651
1004
|
brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new(),
|
652
1005
|
)
|
653
|
-
|
1006
|
+
|
654
1007
|
expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
|
655
1008
|
end
|
656
1009
|
end
|
@@ -658,33 +1011,63 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
|
|
658
1011
|
describe 'test method "_deserialize"' do
|
659
1012
|
instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
|
660
1013
|
account_id: "TS",
|
1014
|
+
|
661
1015
|
campaign_id: "TS",
|
662
|
-
|
1016
|
+
|
1017
|
+
|
1018
|
+
status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
|
1019
|
+
|
1020
|
+
|
663
1021
|
create_date: "2022-07-05T15:17:05Z",
|
664
1022
|
brand_id: "TS",
|
1023
|
+
|
665
1024
|
usecase: "TS",
|
1025
|
+
|
666
1026
|
description: "TS",
|
1027
|
+
|
667
1028
|
embedded_link: true,
|
1029
|
+
|
668
1030
|
embedded_phone: true,
|
1031
|
+
|
669
1032
|
affiliate_marketing: true,
|
1033
|
+
|
670
1034
|
number_pool: true,
|
1035
|
+
|
671
1036
|
age_gated: true,
|
1037
|
+
|
672
1038
|
direct_lending: true,
|
1039
|
+
|
673
1040
|
subscriber_optin: true,
|
1041
|
+
|
674
1042
|
subscriber_optout: true,
|
1043
|
+
|
675
1044
|
subscriber_help: true,
|
1045
|
+
|
676
1046
|
sample1: "TS",
|
1047
|
+
|
677
1048
|
sample2: "TS",
|
1049
|
+
|
678
1050
|
sample3: "TS",
|
1051
|
+
|
679
1052
|
sample4: "TS",
|
1053
|
+
|
680
1054
|
sample5: "TS",
|
1055
|
+
|
681
1056
|
message_flow: "TS",
|
1057
|
+
|
682
1058
|
help_message: "TS",
|
1059
|
+
|
683
1060
|
optin_keywords: "TS",
|
1061
|
+
|
684
1062
|
optout_keywords: "TS",
|
1063
|
+
|
685
1064
|
help_keywords: "TS",
|
1065
|
+
|
686
1066
|
optin_message: "TS",
|
1067
|
+
|
687
1068
|
optout_message: "TS",
|
1069
|
+
|
1070
|
+
|
688
1071
|
brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new,
|
689
1072
|
)
|
690
1073
|
it 'deserializes the data of account_id' do
|
@@ -693,9 +1076,6 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
|
|
693
1076
|
it 'deserializes the data of campaign_id' do
|
694
1077
|
expect(instance._deserialize("String", instance.campaign_id)).to be_a_kind_of(String)
|
695
1078
|
end
|
696
|
-
it 'deserializes the data of status' do
|
697
|
-
expect(instance._deserialize("String", instance.status)).to be_a_kind_of(String)
|
698
|
-
end
|
699
1079
|
it 'deserializes the data of create_date' do
|
700
1080
|
expect(instance._deserialize("Time", instance.create_date)).to be_a_kind_of(Time)
|
701
1081
|
end
|
@@ -780,33 +1160,63 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
|
|
780
1160
|
it 'returns the string representation of the object' do
|
781
1161
|
instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
|
782
1162
|
account_id: "TS",
|
1163
|
+
|
783
1164
|
campaign_id: "TS",
|
784
|
-
|
1165
|
+
|
1166
|
+
|
1167
|
+
status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
|
1168
|
+
|
1169
|
+
|
785
1170
|
create_date: "2022-07-05T15:17:05Z",
|
786
1171
|
brand_id: "TS",
|
1172
|
+
|
787
1173
|
usecase: "TS",
|
1174
|
+
|
788
1175
|
description: "TS",
|
1176
|
+
|
789
1177
|
embedded_link: true,
|
1178
|
+
|
790
1179
|
embedded_phone: true,
|
1180
|
+
|
791
1181
|
affiliate_marketing: true,
|
1182
|
+
|
792
1183
|
number_pool: true,
|
1184
|
+
|
793
1185
|
age_gated: true,
|
1186
|
+
|
794
1187
|
direct_lending: true,
|
1188
|
+
|
795
1189
|
subscriber_optin: true,
|
1190
|
+
|
796
1191
|
subscriber_optout: true,
|
1192
|
+
|
797
1193
|
subscriber_help: true,
|
1194
|
+
|
798
1195
|
sample1: "TS",
|
1196
|
+
|
799
1197
|
sample2: "TS",
|
1198
|
+
|
800
1199
|
sample3: "TS",
|
1200
|
+
|
801
1201
|
sample4: "TS",
|
1202
|
+
|
802
1203
|
sample5: "TS",
|
1204
|
+
|
803
1205
|
message_flow: "TS",
|
1206
|
+
|
804
1207
|
help_message: "TS",
|
1208
|
+
|
805
1209
|
optin_keywords: "TS",
|
1210
|
+
|
806
1211
|
optout_keywords: "TS",
|
1212
|
+
|
807
1213
|
help_keywords: "TS",
|
1214
|
+
|
808
1215
|
optin_message: "TS",
|
1216
|
+
|
809
1217
|
optout_message: "TS",
|
1218
|
+
|
1219
|
+
|
810
1220
|
brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new,
|
811
1221
|
)
|
812
1222
|
expect(instance.to_s).to eq(instance.to_hash.to_s)
|
@@ -817,33 +1227,63 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
|
|
817
1227
|
it 'returns the object in the form of hash' do
|
818
1228
|
instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
|
819
1229
|
account_id: "TS",
|
1230
|
+
|
820
1231
|
campaign_id: "TS",
|
821
|
-
|
1232
|
+
|
1233
|
+
|
1234
|
+
status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
|
1235
|
+
|
1236
|
+
|
822
1237
|
create_date: "2022-07-05T15:17:05Z",
|
823
1238
|
brand_id: "TS",
|
1239
|
+
|
824
1240
|
usecase: "TS",
|
1241
|
+
|
825
1242
|
description: "TS",
|
1243
|
+
|
826
1244
|
embedded_link: true,
|
1245
|
+
|
827
1246
|
embedded_phone: true,
|
1247
|
+
|
828
1248
|
affiliate_marketing: true,
|
1249
|
+
|
829
1250
|
number_pool: true,
|
1251
|
+
|
830
1252
|
age_gated: true,
|
1253
|
+
|
831
1254
|
direct_lending: true,
|
1255
|
+
|
832
1256
|
subscriber_optin: true,
|
1257
|
+
|
833
1258
|
subscriber_optout: true,
|
1259
|
+
|
834
1260
|
subscriber_help: true,
|
1261
|
+
|
835
1262
|
sample1: "TS",
|
1263
|
+
|
836
1264
|
sample2: "TS",
|
1265
|
+
|
837
1266
|
sample3: "TS",
|
1267
|
+
|
838
1268
|
sample4: "TS",
|
1269
|
+
|
839
1270
|
sample5: "TS",
|
1271
|
+
|
840
1272
|
message_flow: "TS",
|
1273
|
+
|
841
1274
|
help_message: "TS",
|
1275
|
+
|
842
1276
|
optin_keywords: "TS",
|
1277
|
+
|
843
1278
|
optout_keywords: "TS",
|
1279
|
+
|
844
1280
|
help_keywords: "TS",
|
1281
|
+
|
845
1282
|
optin_message: "TS",
|
1283
|
+
|
846
1284
|
optout_message: "TS",
|
1285
|
+
|
1286
|
+
|
847
1287
|
brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new,
|
848
1288
|
)
|
849
1289
|
expect(instance.to_hash).to be_a_kind_of(Hash)
|
@@ -852,64 +1292,124 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
|
|
852
1292
|
obj = Object.new()
|
853
1293
|
instance_1 = Freeclimb::SMSTenDLCPartnerCampaign.new(
|
854
1294
|
account_id: "TS",
|
1295
|
+
|
855
1296
|
campaign_id: "TS",
|
856
|
-
|
1297
|
+
|
1298
|
+
|
1299
|
+
status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
|
1300
|
+
|
1301
|
+
|
857
1302
|
create_date: "2022-07-05T15:17:05Z",
|
858
1303
|
brand_id: "TS",
|
1304
|
+
|
859
1305
|
usecase: "TS",
|
1306
|
+
|
860
1307
|
description: "TS",
|
1308
|
+
|
861
1309
|
embedded_link: true,
|
1310
|
+
|
862
1311
|
embedded_phone: true,
|
1312
|
+
|
863
1313
|
affiliate_marketing: true,
|
1314
|
+
|
864
1315
|
number_pool: true,
|
1316
|
+
|
865
1317
|
age_gated: true,
|
1318
|
+
|
866
1319
|
direct_lending: true,
|
1320
|
+
|
867
1321
|
subscriber_optin: true,
|
1322
|
+
|
868
1323
|
subscriber_optout: true,
|
1324
|
+
|
869
1325
|
subscriber_help: true,
|
1326
|
+
|
870
1327
|
sample1: "TS",
|
1328
|
+
|
871
1329
|
sample2: "TS",
|
1330
|
+
|
872
1331
|
sample3: "TS",
|
1332
|
+
|
873
1333
|
sample4: "TS",
|
1334
|
+
|
874
1335
|
sample5: "TS",
|
1336
|
+
|
875
1337
|
message_flow: "TS",
|
1338
|
+
|
876
1339
|
help_message: "TS",
|
1340
|
+
|
877
1341
|
optin_keywords: "TS",
|
1342
|
+
|
878
1343
|
optout_keywords: "TS",
|
1344
|
+
|
879
1345
|
help_keywords: "TS",
|
1346
|
+
|
880
1347
|
optin_message: "TS",
|
1348
|
+
|
881
1349
|
optout_message: "TS",
|
1350
|
+
|
1351
|
+
|
882
1352
|
brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new,
|
883
1353
|
)
|
884
1354
|
instance_2 = Freeclimb::SMSTenDLCPartnerCampaign.new(
|
885
1355
|
account_id: "TS",
|
1356
|
+
|
886
1357
|
campaign_id: "TS",
|
887
|
-
|
1358
|
+
|
1359
|
+
|
1360
|
+
status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
|
1361
|
+
|
1362
|
+
|
888
1363
|
create_date: "2022-07-05T15:17:05Z",
|
889
1364
|
brand_id: "TS",
|
1365
|
+
|
890
1366
|
usecase: "TS",
|
1367
|
+
|
891
1368
|
description: "TS",
|
1369
|
+
|
892
1370
|
embedded_link: true,
|
1371
|
+
|
893
1372
|
embedded_phone: true,
|
1373
|
+
|
894
1374
|
affiliate_marketing: true,
|
1375
|
+
|
895
1376
|
number_pool: true,
|
1377
|
+
|
896
1378
|
age_gated: true,
|
1379
|
+
|
897
1380
|
direct_lending: true,
|
1381
|
+
|
898
1382
|
subscriber_optin: true,
|
1383
|
+
|
899
1384
|
subscriber_optout: true,
|
1385
|
+
|
900
1386
|
subscriber_help: true,
|
1387
|
+
|
901
1388
|
sample1: "TS",
|
1389
|
+
|
902
1390
|
sample2: "TS",
|
1391
|
+
|
903
1392
|
sample3: "TS",
|
1393
|
+
|
904
1394
|
sample4: "TS",
|
1395
|
+
|
905
1396
|
sample5: "TS",
|
1397
|
+
|
906
1398
|
message_flow: "TS",
|
1399
|
+
|
907
1400
|
help_message: "TS",
|
1401
|
+
|
908
1402
|
optin_keywords: "TS",
|
1403
|
+
|
909
1404
|
optout_keywords: "TS",
|
1405
|
+
|
910
1406
|
help_keywords: "TS",
|
1407
|
+
|
911
1408
|
optin_message: "TS",
|
1409
|
+
|
912
1410
|
optout_message: "TS",
|
1411
|
+
|
1412
|
+
|
913
1413
|
brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new,
|
914
1414
|
)
|
915
1415
|
expect(instance_1.to_hash).to eq(instance_2.to_hash)
|
@@ -919,61 +1419,91 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
|
|
919
1419
|
describe 'test method "_to_hash"' do
|
920
1420
|
instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
|
921
1421
|
account_id: "TS",
|
1422
|
+
|
922
1423
|
|
923
1424
|
campaign_id: "TS",
|
1425
|
+
|
924
1426
|
|
925
|
-
|
1427
|
+
|
1428
|
+
status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
|
1429
|
+
|
926
1430
|
|
1431
|
+
|
927
1432
|
create_date: "2022-07-05T15:17:05Z",
|
928
1433
|
|
929
1434
|
brand_id: "TS",
|
1435
|
+
|
930
1436
|
|
931
1437
|
usecase: "TS",
|
1438
|
+
|
932
1439
|
|
933
1440
|
description: "TS",
|
1441
|
+
|
934
1442
|
|
935
1443
|
embedded_link: true,
|
1444
|
+
|
936
1445
|
|
937
1446
|
embedded_phone: true,
|
1447
|
+
|
938
1448
|
|
939
1449
|
affiliate_marketing: true,
|
1450
|
+
|
940
1451
|
|
941
1452
|
number_pool: true,
|
1453
|
+
|
942
1454
|
|
943
1455
|
age_gated: true,
|
1456
|
+
|
944
1457
|
|
945
1458
|
direct_lending: true,
|
1459
|
+
|
946
1460
|
|
947
1461
|
subscriber_optin: true,
|
1462
|
+
|
948
1463
|
|
949
1464
|
subscriber_optout: true,
|
1465
|
+
|
950
1466
|
|
951
1467
|
subscriber_help: true,
|
1468
|
+
|
952
1469
|
|
953
1470
|
sample1: "TS",
|
1471
|
+
|
954
1472
|
|
955
1473
|
sample2: "TS",
|
1474
|
+
|
956
1475
|
|
957
1476
|
sample3: "TS",
|
1477
|
+
|
958
1478
|
|
959
1479
|
sample4: "TS",
|
1480
|
+
|
960
1481
|
|
961
1482
|
sample5: "TS",
|
1483
|
+
|
962
1484
|
|
963
1485
|
message_flow: "TS",
|
1486
|
+
|
964
1487
|
|
965
1488
|
help_message: "TS",
|
1489
|
+
|
966
1490
|
|
967
1491
|
optin_keywords: "TS",
|
1492
|
+
|
968
1493
|
|
969
1494
|
optout_keywords: "TS",
|
1495
|
+
|
970
1496
|
|
971
1497
|
help_keywords: "TS",
|
1498
|
+
|
972
1499
|
|
973
1500
|
optin_message: "TS",
|
1501
|
+
|
974
1502
|
|
975
1503
|
optout_message: "TS",
|
1504
|
+
|
976
1505
|
|
1506
|
+
|
977
1507
|
)
|
978
1508
|
it 'returns account_id in the form of hash' do
|
979
1509
|
expect(instance._to_hash(instance.account_id)).to eq(instance.account_id)
|