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
|
|
@@ -56,29 +56,21 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
56
56
|
expect(instance.reseller_id).to eq("T" * 8)
|
57
57
|
end
|
58
58
|
it 'should not assign a value over maxLength' do
|
59
|
-
expect{instance.reseller_id = "T" * (8 + 1)}.to raise_error(ArgumentError)
|
59
|
+
expect { instance.reseller_id = "T" * (8 + 1) }.to raise_error(ArgumentError)
|
60
60
|
end
|
61
61
|
end
|
62
62
|
|
63
63
|
|
64
64
|
describe 'test attribute "status"' do
|
65
|
-
|
66
65
|
it 'assigns value ACTIVE' do
|
67
|
-
instance.status =
|
68
|
-
expect(instance.status).to eq(
|
66
|
+
instance.status = Freeclimb::SMSTenDLCCampaignStatus::ACTIVE
|
67
|
+
expect(instance.status).to eq(Freeclimb::SMSTenDLCCampaignStatus::ACTIVE)
|
69
68
|
end
|
70
|
-
|
71
69
|
it 'assigns value EXPIRED' do
|
72
|
-
instance.status =
|
73
|
-
expect(instance.status).to eq(
|
74
|
-
end
|
75
|
-
|
76
|
-
it 'throws error on invalid enum' do
|
77
|
-
instance = Freeclimb::SMSTenDLCCampaign.new
|
78
|
-
expect{instance.status = "INVALID_ENUM"}.to raise_error(ArgumentError)
|
70
|
+
instance.status = Freeclimb::SMSTenDLCCampaignStatus::EXPIRED
|
71
|
+
expect(instance.status).to eq(Freeclimb::SMSTenDLCCampaignStatus::EXPIRED)
|
79
72
|
end
|
80
73
|
end
|
81
|
-
|
82
74
|
describe 'test attribute "create_date"' do
|
83
75
|
it 'should work' do
|
84
76
|
instance.create_date = "2022-07-05T15:17:05Z"
|
@@ -109,7 +101,7 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
109
101
|
expect(instance.brand_id).to eq("T" * 8)
|
110
102
|
end
|
111
103
|
it 'should not assign a value over maxLength' do
|
112
|
-
expect{instance.brand_id = "T" * (8 + 1)}.to raise_error(ArgumentError)
|
104
|
+
expect { instance.brand_id = "T" * (8 + 1) }.to raise_error(ArgumentError)
|
113
105
|
end
|
114
106
|
end
|
115
107
|
|
@@ -119,7 +111,7 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
119
111
|
expect(instance.usecase).to eq("T" * 20)
|
120
112
|
end
|
121
113
|
it 'should not assign a value over maxLength' do
|
122
|
-
expect{instance.usecase = "T" * (20 + 1)}.to raise_error(ArgumentError)
|
114
|
+
expect { instance.usecase = "T" * (20 + 1) }.to raise_error(ArgumentError)
|
123
115
|
end
|
124
116
|
end
|
125
117
|
|
@@ -137,7 +129,7 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
137
129
|
expect(instance.description).to eq("T" * 4096)
|
138
130
|
end
|
139
131
|
it 'should not assign a value over maxLength' do
|
140
|
-
expect{instance.description = "T" * (4096 + 1)}.to raise_error(ArgumentError)
|
132
|
+
expect { instance.description = "T" * (4096 + 1) }.to raise_error(ArgumentError)
|
141
133
|
end
|
142
134
|
end
|
143
135
|
|
@@ -219,7 +211,7 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
219
211
|
expect(instance.sample1).to eq("T" * 1024)
|
220
212
|
end
|
221
213
|
it 'should not assign a value over maxLength' do
|
222
|
-
expect{instance.sample1 = "T" * (1024 + 1)}.to raise_error(ArgumentError)
|
214
|
+
expect { instance.sample1 = "T" * (1024 + 1) }.to raise_error(ArgumentError)
|
223
215
|
end
|
224
216
|
end
|
225
217
|
|
@@ -229,7 +221,7 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
229
221
|
expect(instance.sample2).to eq("T" * 1024)
|
230
222
|
end
|
231
223
|
it 'should not assign a value over maxLength' do
|
232
|
-
expect{instance.sample2 = "T" * (1024 + 1)}.to raise_error(ArgumentError)
|
224
|
+
expect { instance.sample2 = "T" * (1024 + 1) }.to raise_error(ArgumentError)
|
233
225
|
end
|
234
226
|
end
|
235
227
|
|
@@ -239,7 +231,7 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
239
231
|
expect(instance.sample3).to eq("T" * 1024)
|
240
232
|
end
|
241
233
|
it 'should not assign a value over maxLength' do
|
242
|
-
expect{instance.sample3 = "T" * (1024 + 1)}.to raise_error(ArgumentError)
|
234
|
+
expect { instance.sample3 = "T" * (1024 + 1) }.to raise_error(ArgumentError)
|
243
235
|
end
|
244
236
|
end
|
245
237
|
|
@@ -249,7 +241,7 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
249
241
|
expect(instance.sample4).to eq("T" * 1024)
|
250
242
|
end
|
251
243
|
it 'should not assign a value over maxLength' do
|
252
|
-
expect{instance.sample4 = "T" * (1024 + 1)}.to raise_error(ArgumentError)
|
244
|
+
expect { instance.sample4 = "T" * (1024 + 1) }.to raise_error(ArgumentError)
|
253
245
|
end
|
254
246
|
end
|
255
247
|
|
@@ -259,7 +251,7 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
259
251
|
expect(instance.sample5).to eq("T" * 1024)
|
260
252
|
end
|
261
253
|
it 'should not assign a value over maxLength' do
|
262
|
-
expect{instance.sample5 = "T" * (1024 + 1)}.to raise_error(ArgumentError)
|
254
|
+
expect { instance.sample5 = "T" * (1024 + 1) }.to raise_error(ArgumentError)
|
263
255
|
end
|
264
256
|
end
|
265
257
|
|
@@ -269,7 +261,7 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
269
261
|
expect(instance.message_flow).to eq("T" * 2048)
|
270
262
|
end
|
271
263
|
it 'should not assign a value over maxLength' do
|
272
|
-
expect{instance.message_flow = "T" * (2048 + 1)}.to raise_error(ArgumentError)
|
264
|
+
expect { instance.message_flow = "T" * (2048 + 1) }.to raise_error(ArgumentError)
|
273
265
|
end
|
274
266
|
end
|
275
267
|
|
@@ -279,7 +271,7 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
279
271
|
expect(instance.help_message).to eq("T" * 255)
|
280
272
|
end
|
281
273
|
it 'should not assign a value over maxLength' do
|
282
|
-
expect{instance.help_message = "T" * (255 + 1)}.to raise_error(ArgumentError)
|
274
|
+
expect { instance.help_message = "T" * (255 + 1) }.to raise_error(ArgumentError)
|
283
275
|
end
|
284
276
|
end
|
285
277
|
|
@@ -289,7 +281,7 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
289
281
|
expect(instance.optin_keywords).to eq("T" * 255)
|
290
282
|
end
|
291
283
|
it 'should not assign a value over maxLength' do
|
292
|
-
expect{instance.optin_keywords = "T" * (255 + 1)}.to raise_error(ArgumentError)
|
284
|
+
expect { instance.optin_keywords = "T" * (255 + 1) }.to raise_error(ArgumentError)
|
293
285
|
end
|
294
286
|
end
|
295
287
|
|
@@ -299,7 +291,7 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
299
291
|
expect(instance.optout_keywords).to eq("T" * 255)
|
300
292
|
end
|
301
293
|
it 'should not assign a value over maxLength' do
|
302
|
-
expect{instance.optout_keywords = "T" * (255 + 1)}.to raise_error(ArgumentError)
|
294
|
+
expect { instance.optout_keywords = "T" * (255 + 1) }.to raise_error(ArgumentError)
|
303
295
|
end
|
304
296
|
end
|
305
297
|
|
@@ -309,7 +301,7 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
309
301
|
expect(instance.help_keywords).to eq("T" * 255)
|
310
302
|
end
|
311
303
|
it 'should not assign a value over maxLength' do
|
312
|
-
expect{instance.help_keywords = "T" * (255 + 1)}.to raise_error(ArgumentError)
|
304
|
+
expect { instance.help_keywords = "T" * (255 + 1) }.to raise_error(ArgumentError)
|
313
305
|
end
|
314
306
|
end
|
315
307
|
|
@@ -319,7 +311,7 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
319
311
|
expect(instance.optin_message).to eq("T" * 255)
|
320
312
|
end
|
321
313
|
it 'should not assign a value over maxLength' do
|
322
|
-
expect{instance.optin_message = "T" * (255 + 1)}.to raise_error(ArgumentError)
|
314
|
+
expect { instance.optin_message = "T" * (255 + 1) }.to raise_error(ArgumentError)
|
323
315
|
end
|
324
316
|
end
|
325
317
|
|
@@ -329,7 +321,7 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
329
321
|
expect(instance.optout_message).to eq("T" * 255)
|
330
322
|
end
|
331
323
|
it 'should not assign a value over maxLength' do
|
332
|
-
expect{instance.optout_message = "T" * (255 + 1)}.to raise_error(ArgumentError)
|
324
|
+
expect { instance.optout_message = "T" * (255 + 1) }.to raise_error(ArgumentError)
|
333
325
|
end
|
334
326
|
end
|
335
327
|
|
@@ -339,7 +331,7 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
339
331
|
expect(instance.reference_id).to eq("T" * 50)
|
340
332
|
end
|
341
333
|
it 'should not assign a value over maxLength' do
|
342
|
-
expect{instance.reference_id = "T" * (50 + 1)}.to raise_error(ArgumentError)
|
334
|
+
expect { instance.reference_id = "T" * (50 + 1) }.to raise_error(ArgumentError)
|
343
335
|
end
|
344
336
|
end
|
345
337
|
|
@@ -361,126 +353,237 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
361
353
|
|
362
354
|
describe 'test method "initialize"' do
|
363
355
|
it 'properly initializes with values' do
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
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
|
-
|
356
|
+
expect { instance = Freeclimb::SMSTenDLCCampaign.new(
|
357
|
+
account_id: "TS",
|
358
|
+
|
359
|
+
campaign_id: "TS",
|
360
|
+
|
361
|
+
csp_id: "TS",
|
362
|
+
|
363
|
+
reseller_id: "TS",
|
364
|
+
|
365
|
+
|
366
|
+
status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
|
367
|
+
|
368
|
+
|
369
|
+
create_date: "2022-07-05T15:17:05Z",
|
370
|
+
auto_renewal: true,
|
371
|
+
|
372
|
+
|
373
|
+
billed_date: "2022-07-05T15:17:05Z",
|
374
|
+
brand_id: "TS",
|
375
|
+
|
376
|
+
usecase: "TS",
|
377
|
+
|
378
|
+
sub_usecases: Array.new(),
|
379
|
+
|
380
|
+
description: "TS",
|
381
|
+
|
382
|
+
embedded_link: true,
|
383
|
+
|
384
|
+
embedded_phone: true,
|
385
|
+
|
386
|
+
affiliate_marketing: true,
|
387
|
+
|
388
|
+
number_pool: true,
|
389
|
+
|
390
|
+
age_gated: true,
|
391
|
+
|
392
|
+
direct_lending: true,
|
393
|
+
|
394
|
+
subscriber_optin: true,
|
395
|
+
|
396
|
+
subscriber_optout: true,
|
397
|
+
|
398
|
+
subscriber_help: true,
|
399
|
+
|
400
|
+
sample1: "TS",
|
401
|
+
|
402
|
+
sample2: "TS",
|
403
|
+
|
404
|
+
sample3: "TS",
|
405
|
+
|
406
|
+
sample4: "TS",
|
407
|
+
|
408
|
+
sample5: "TS",
|
409
|
+
|
410
|
+
message_flow: "TS",
|
411
|
+
|
412
|
+
help_message: "TS",
|
413
|
+
|
414
|
+
optin_keywords: "TS",
|
415
|
+
|
416
|
+
optout_keywords: "TS",
|
417
|
+
|
418
|
+
help_keywords: "TS",
|
419
|
+
|
420
|
+
optin_message: "TS",
|
421
|
+
|
422
|
+
optout_message: "TS",
|
423
|
+
|
424
|
+
reference_id: "TS",
|
425
|
+
|
426
|
+
mock: true,
|
427
|
+
|
428
|
+
|
429
|
+
next_renewal_or_expiration_date: "2000-01-01",
|
430
|
+
)}.not_to raise_error()
|
402
431
|
end
|
403
432
|
it 'fails to initialize with input argument that is not a hash in Freeclimb::SMSTenDLCCampaign' do
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
433
|
+
expect { instance = Freeclimb::SMSTenDLCCampaign.new(
|
434
|
+
account_id: "TS",
|
435
|
+
|
436
|
+
campaign_id: "TS",
|
437
|
+
|
438
|
+
csp_id: "TS",
|
439
|
+
|
440
|
+
reseller_id: "TS",
|
441
|
+
|
442
|
+
|
443
|
+
status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
|
444
|
+
|
445
|
+
|
446
|
+
create_date: "2022-07-05T15:17:05Z",
|
447
|
+
auto_renewal: true,
|
448
|
+
|
449
|
+
|
450
|
+
billed_date: "2022-07-05T15:17:05Z",
|
451
|
+
brand_id: "TS",
|
452
|
+
|
453
|
+
usecase: "TS",
|
454
|
+
|
455
|
+
sub_usecases: Array.new(),
|
456
|
+
|
457
|
+
description: "TS",
|
458
|
+
|
459
|
+
embedded_link: true,
|
460
|
+
|
461
|
+
embedded_phone: true,
|
462
|
+
|
463
|
+
affiliate_marketing: true,
|
464
|
+
|
465
|
+
number_pool: true,
|
466
|
+
|
467
|
+
age_gated: true,
|
468
|
+
|
469
|
+
direct_lending: true,
|
470
|
+
|
471
|
+
subscriber_optin: true,
|
472
|
+
|
473
|
+
subscriber_optout: true,
|
474
|
+
|
475
|
+
subscriber_help: true,
|
476
|
+
|
477
|
+
sample1: "TS",
|
478
|
+
|
479
|
+
sample2: "TS",
|
480
|
+
|
481
|
+
sample3: "TS",
|
482
|
+
|
483
|
+
sample4: "TS",
|
484
|
+
|
485
|
+
sample5: "TS",
|
486
|
+
|
487
|
+
message_flow: "TS",
|
488
|
+
|
489
|
+
help_message: "TS",
|
490
|
+
|
491
|
+
optin_keywords: "TS",
|
492
|
+
|
493
|
+
optout_keywords: "TS",
|
494
|
+
|
495
|
+
help_keywords: "TS",
|
496
|
+
|
497
|
+
optin_message: "TS",
|
498
|
+
|
499
|
+
optout_message: "TS",
|
500
|
+
|
501
|
+
reference_id: "TS",
|
502
|
+
|
503
|
+
mock: true,
|
504
|
+
|
505
|
+
|
506
|
+
next_renewal_or_expiration_date: "2000-01-01",
|
507
|
+
invalid_attribute: true
|
508
|
+
)}.to raise_error(ArgumentError)
|
443
509
|
end
|
444
510
|
it 'fails to initialize with invalid attribute' do
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
511
|
+
expect { instance = Freeclimb::SMSTenDLCCampaign.new(
|
512
|
+
account_id: "TS",
|
513
|
+
|
514
|
+
campaign_id: "TS",
|
515
|
+
|
516
|
+
csp_id: "TS",
|
517
|
+
|
518
|
+
reseller_id: "TS",
|
519
|
+
|
520
|
+
|
521
|
+
status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
|
522
|
+
|
523
|
+
|
524
|
+
create_date: "2022-07-05T15:17:05Z",
|
525
|
+
auto_renewal: true,
|
526
|
+
|
527
|
+
|
528
|
+
billed_date: "2022-07-05T15:17:05Z",
|
529
|
+
brand_id: "TS",
|
530
|
+
|
531
|
+
usecase: "TS",
|
532
|
+
|
533
|
+
sub_usecases: Array.new(),
|
534
|
+
|
535
|
+
description: "TS",
|
536
|
+
|
537
|
+
embedded_link: true,
|
538
|
+
|
539
|
+
embedded_phone: true,
|
540
|
+
|
541
|
+
affiliate_marketing: true,
|
542
|
+
|
543
|
+
number_pool: true,
|
544
|
+
|
545
|
+
age_gated: true,
|
546
|
+
|
547
|
+
direct_lending: true,
|
548
|
+
|
549
|
+
subscriber_optin: true,
|
550
|
+
|
551
|
+
subscriber_optout: true,
|
552
|
+
|
553
|
+
subscriber_help: true,
|
554
|
+
|
555
|
+
sample1: "TS",
|
556
|
+
|
557
|
+
sample2: "TS",
|
558
|
+
|
559
|
+
sample3: "TS",
|
560
|
+
|
561
|
+
sample4: "TS",
|
562
|
+
|
563
|
+
sample5: "TS",
|
564
|
+
|
565
|
+
message_flow: "TS",
|
566
|
+
|
567
|
+
help_message: "TS",
|
568
|
+
|
569
|
+
optin_keywords: "TS",
|
570
|
+
|
571
|
+
optout_keywords: "TS",
|
572
|
+
|
573
|
+
help_keywords: "TS",
|
574
|
+
|
575
|
+
optin_message: "TS",
|
576
|
+
|
577
|
+
optout_message: "TS",
|
578
|
+
|
579
|
+
reference_id: "TS",
|
580
|
+
|
581
|
+
mock: true,
|
582
|
+
|
583
|
+
|
584
|
+
next_renewal_or_expiration_date: "2000-01-01",
|
585
|
+
invalid_attribute: true
|
586
|
+
)}.to raise_error(ArgumentError)
|
484
587
|
end
|
485
588
|
end
|
486
589
|
|
@@ -488,40 +591,77 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
488
591
|
it 'checks if properties are valid' do
|
489
592
|
instance = Freeclimb::SMSTenDLCCampaign.new(
|
490
593
|
account_id: "TS",
|
594
|
+
|
491
595
|
campaign_id: "TS",
|
596
|
+
|
492
597
|
csp_id: "TS",
|
598
|
+
|
493
599
|
reseller_id: "TS",
|
494
|
-
|
600
|
+
|
601
|
+
|
602
|
+
status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
|
603
|
+
|
604
|
+
|
495
605
|
create_date: "2022-07-05T15:17:05Z",
|
496
606
|
auto_renewal: true,
|
607
|
+
|
608
|
+
|
497
609
|
billed_date: "2022-07-05T15:17:05Z",
|
498
610
|
brand_id: "TS",
|
611
|
+
|
499
612
|
usecase: "TS",
|
613
|
+
|
500
614
|
sub_usecases: Array.new(),
|
615
|
+
|
501
616
|
description: "TS",
|
617
|
+
|
502
618
|
embedded_link: true,
|
619
|
+
|
503
620
|
embedded_phone: true,
|
621
|
+
|
504
622
|
affiliate_marketing: true,
|
623
|
+
|
505
624
|
number_pool: true,
|
625
|
+
|
506
626
|
age_gated: true,
|
627
|
+
|
507
628
|
direct_lending: true,
|
629
|
+
|
508
630
|
subscriber_optin: true,
|
631
|
+
|
509
632
|
subscriber_optout: true,
|
633
|
+
|
510
634
|
subscriber_help: true,
|
635
|
+
|
511
636
|
sample1: "TS",
|
637
|
+
|
512
638
|
sample2: "TS",
|
639
|
+
|
513
640
|
sample3: "TS",
|
641
|
+
|
514
642
|
sample4: "TS",
|
643
|
+
|
515
644
|
sample5: "TS",
|
645
|
+
|
516
646
|
message_flow: "TS",
|
647
|
+
|
517
648
|
help_message: "TS",
|
649
|
+
|
518
650
|
optin_keywords: "TS",
|
651
|
+
|
519
652
|
optout_keywords: "TS",
|
653
|
+
|
520
654
|
help_keywords: "TS",
|
655
|
+
|
521
656
|
optin_message: "TS",
|
657
|
+
|
522
658
|
optout_message: "TS",
|
659
|
+
|
523
660
|
reference_id: "TS",
|
661
|
+
|
524
662
|
mock: true,
|
663
|
+
|
664
|
+
|
525
665
|
next_renewal_or_expiration_date: "2000-01-01",
|
526
666
|
)
|
527
667
|
expect(instance.valid?).to eq(true)
|
@@ -542,73 +682,147 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
542
682
|
obj = Object.new()
|
543
683
|
instance_1 = Freeclimb::SMSTenDLCCampaign.new(
|
544
684
|
account_id: "TS",
|
685
|
+
|
545
686
|
campaign_id: "TS",
|
687
|
+
|
546
688
|
csp_id: "TS",
|
689
|
+
|
547
690
|
reseller_id: "TS",
|
548
|
-
|
691
|
+
|
692
|
+
|
693
|
+
status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
|
694
|
+
|
695
|
+
|
549
696
|
auto_renewal: true,
|
697
|
+
|
698
|
+
|
550
699
|
brand_id: "TS",
|
700
|
+
|
551
701
|
usecase: "TS",
|
702
|
+
|
552
703
|
sub_usecases: [],
|
704
|
+
|
553
705
|
description: "TS",
|
706
|
+
|
554
707
|
embedded_link: true,
|
708
|
+
|
555
709
|
embedded_phone: true,
|
710
|
+
|
556
711
|
affiliate_marketing: true,
|
712
|
+
|
557
713
|
number_pool: true,
|
714
|
+
|
558
715
|
age_gated: true,
|
716
|
+
|
559
717
|
direct_lending: true,
|
718
|
+
|
560
719
|
subscriber_optin: true,
|
720
|
+
|
561
721
|
subscriber_optout: true,
|
722
|
+
|
562
723
|
subscriber_help: true,
|
724
|
+
|
563
725
|
sample1: "TS",
|
726
|
+
|
564
727
|
sample2: "TS",
|
728
|
+
|
565
729
|
sample3: "TS",
|
730
|
+
|
566
731
|
sample4: "TS",
|
732
|
+
|
567
733
|
sample5: "TS",
|
734
|
+
|
568
735
|
message_flow: "TS",
|
736
|
+
|
569
737
|
help_message: "TS",
|
738
|
+
|
570
739
|
optin_keywords: "TS",
|
740
|
+
|
571
741
|
optout_keywords: "TS",
|
742
|
+
|
572
743
|
help_keywords: "TS",
|
744
|
+
|
573
745
|
optin_message: "TS",
|
746
|
+
|
574
747
|
optout_message: "TS",
|
748
|
+
|
575
749
|
reference_id: "TS",
|
750
|
+
|
576
751
|
mock: true,
|
752
|
+
|
753
|
+
|
577
754
|
)
|
578
755
|
instance_2 = Freeclimb::SMSTenDLCCampaign.new(
|
579
756
|
account_id: "TS",
|
757
|
+
|
580
758
|
campaign_id: "TS",
|
759
|
+
|
581
760
|
csp_id: "TS",
|
761
|
+
|
582
762
|
reseller_id: "TS",
|
583
|
-
|
763
|
+
|
764
|
+
|
765
|
+
status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
|
766
|
+
|
767
|
+
|
584
768
|
auto_renewal: true,
|
769
|
+
|
770
|
+
|
585
771
|
brand_id: "TS",
|
772
|
+
|
586
773
|
usecase: "TS",
|
774
|
+
|
587
775
|
sub_usecases: [],
|
776
|
+
|
588
777
|
description: "TS",
|
778
|
+
|
589
779
|
embedded_link: true,
|
780
|
+
|
590
781
|
embedded_phone: true,
|
782
|
+
|
591
783
|
affiliate_marketing: true,
|
784
|
+
|
592
785
|
number_pool: true,
|
786
|
+
|
593
787
|
age_gated: true,
|
788
|
+
|
594
789
|
direct_lending: true,
|
790
|
+
|
595
791
|
subscriber_optin: true,
|
792
|
+
|
596
793
|
subscriber_optout: true,
|
794
|
+
|
597
795
|
subscriber_help: true,
|
796
|
+
|
598
797
|
sample1: "TS",
|
798
|
+
|
599
799
|
sample2: "TS",
|
800
|
+
|
600
801
|
sample3: "TS",
|
802
|
+
|
601
803
|
sample4: "TS",
|
804
|
+
|
602
805
|
sample5: "TS",
|
806
|
+
|
603
807
|
message_flow: "TS",
|
808
|
+
|
604
809
|
help_message: "TS",
|
810
|
+
|
605
811
|
optin_keywords: "TS",
|
812
|
+
|
606
813
|
optout_keywords: "TS",
|
814
|
+
|
607
815
|
help_keywords: "TS",
|
816
|
+
|
608
817
|
optin_message: "TS",
|
818
|
+
|
609
819
|
optout_message: "TS",
|
820
|
+
|
610
821
|
reference_id: "TS",
|
822
|
+
|
611
823
|
mock: true,
|
824
|
+
|
825
|
+
|
612
826
|
)
|
613
827
|
expect(instance_1.eql?(instance_2)).to eq(true)
|
614
828
|
end
|
@@ -616,73 +830,147 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
616
830
|
it 'checks if objects are not equal' do
|
617
831
|
instance_1 = Freeclimb::SMSTenDLCCampaign.new(
|
618
832
|
account_id: "TS",
|
833
|
+
|
619
834
|
campaign_id: "TS",
|
835
|
+
|
620
836
|
csp_id: "TS",
|
837
|
+
|
621
838
|
reseller_id: "TS",
|
622
|
-
|
839
|
+
|
840
|
+
|
841
|
+
status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
|
842
|
+
|
843
|
+
|
623
844
|
auto_renewal: true,
|
845
|
+
|
846
|
+
|
624
847
|
brand_id: "TS",
|
848
|
+
|
625
849
|
usecase: "TS",
|
850
|
+
|
626
851
|
sub_usecases: [],
|
852
|
+
|
627
853
|
description: "TS",
|
854
|
+
|
628
855
|
embedded_link: true,
|
856
|
+
|
629
857
|
embedded_phone: true,
|
858
|
+
|
630
859
|
affiliate_marketing: true,
|
860
|
+
|
631
861
|
number_pool: true,
|
862
|
+
|
632
863
|
age_gated: true,
|
864
|
+
|
633
865
|
direct_lending: true,
|
866
|
+
|
634
867
|
subscriber_optin: true,
|
868
|
+
|
635
869
|
subscriber_optout: true,
|
870
|
+
|
636
871
|
subscriber_help: true,
|
872
|
+
|
637
873
|
sample1: "TS",
|
874
|
+
|
638
875
|
sample2: "TS",
|
876
|
+
|
639
877
|
sample3: "TS",
|
878
|
+
|
640
879
|
sample4: "TS",
|
880
|
+
|
641
881
|
sample5: "TS",
|
882
|
+
|
642
883
|
message_flow: "TS",
|
884
|
+
|
643
885
|
help_message: "TS",
|
886
|
+
|
644
887
|
optin_keywords: "TS",
|
888
|
+
|
645
889
|
optout_keywords: "TS",
|
890
|
+
|
646
891
|
help_keywords: "TS",
|
892
|
+
|
647
893
|
optin_message: "TS",
|
894
|
+
|
648
895
|
optout_message: "TS",
|
896
|
+
|
649
897
|
reference_id: "TS",
|
898
|
+
|
650
899
|
mock: true,
|
900
|
+
|
901
|
+
|
651
902
|
)
|
652
903
|
instance_2 = Freeclimb::SMSTenDLCCampaign.new(
|
653
904
|
account_id: "ST",
|
905
|
+
|
654
906
|
campaign_id: "ST",
|
907
|
+
|
655
908
|
csp_id: "ST",
|
909
|
+
|
656
910
|
reseller_id: "ST",
|
657
|
-
|
911
|
+
|
912
|
+
|
913
|
+
status: nil,
|
914
|
+
|
915
|
+
|
658
916
|
auto_renewal: false,
|
917
|
+
|
918
|
+
|
659
919
|
brand_id: "ST",
|
920
|
+
|
660
921
|
usecase: "ST",
|
922
|
+
|
661
923
|
sub_usecases: nil,
|
924
|
+
|
662
925
|
description: "ST",
|
926
|
+
|
663
927
|
embedded_link: false,
|
928
|
+
|
664
929
|
embedded_phone: false,
|
930
|
+
|
665
931
|
affiliate_marketing: false,
|
932
|
+
|
666
933
|
number_pool: false,
|
934
|
+
|
667
935
|
age_gated: false,
|
936
|
+
|
668
937
|
direct_lending: false,
|
938
|
+
|
669
939
|
subscriber_optin: false,
|
940
|
+
|
670
941
|
subscriber_optout: false,
|
942
|
+
|
671
943
|
subscriber_help: false,
|
944
|
+
|
672
945
|
sample1: "ST",
|
946
|
+
|
673
947
|
sample2: "ST",
|
948
|
+
|
674
949
|
sample3: "ST",
|
950
|
+
|
675
951
|
sample4: "ST",
|
952
|
+
|
676
953
|
sample5: "ST",
|
954
|
+
|
677
955
|
message_flow: "ST",
|
956
|
+
|
678
957
|
help_message: "ST",
|
958
|
+
|
679
959
|
optin_keywords: "ST",
|
960
|
+
|
680
961
|
optout_keywords: "ST",
|
962
|
+
|
681
963
|
help_keywords: "ST",
|
964
|
+
|
682
965
|
optin_message: "ST",
|
966
|
+
|
683
967
|
optout_message: "ST",
|
968
|
+
|
684
969
|
reference_id: "ST",
|
970
|
+
|
685
971
|
mock: false,
|
972
|
+
|
973
|
+
|
686
974
|
)
|
687
975
|
expect(instance_1.eql?(instance_2)).to eq(false)
|
688
976
|
end
|
@@ -692,43 +980,80 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
692
980
|
it 'calculates hash code' do
|
693
981
|
instance = Freeclimb::SMSTenDLCCampaign.new(
|
694
982
|
account_id: "TS",
|
983
|
+
|
695
984
|
campaign_id: "TS",
|
985
|
+
|
696
986
|
csp_id: "TS",
|
987
|
+
|
697
988
|
reseller_id: "TS",
|
698
|
-
|
989
|
+
|
990
|
+
|
991
|
+
status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
|
992
|
+
|
993
|
+
|
699
994
|
create_date: "2022-07-05T15:17:05Z",
|
700
995
|
auto_renewal: true,
|
996
|
+
|
997
|
+
|
701
998
|
billed_date: "2022-07-05T15:17:05Z",
|
702
999
|
brand_id: "TS",
|
1000
|
+
|
703
1001
|
usecase: "TS",
|
1002
|
+
|
704
1003
|
sub_usecases: Array.new(),
|
1004
|
+
|
705
1005
|
description: "TS",
|
1006
|
+
|
706
1007
|
embedded_link: true,
|
1008
|
+
|
707
1009
|
embedded_phone: true,
|
1010
|
+
|
708
1011
|
affiliate_marketing: true,
|
1012
|
+
|
709
1013
|
number_pool: true,
|
1014
|
+
|
710
1015
|
age_gated: true,
|
1016
|
+
|
711
1017
|
direct_lending: true,
|
1018
|
+
|
712
1019
|
subscriber_optin: true,
|
1020
|
+
|
713
1021
|
subscriber_optout: true,
|
1022
|
+
|
714
1023
|
subscriber_help: true,
|
1024
|
+
|
715
1025
|
sample1: "TS",
|
1026
|
+
|
716
1027
|
sample2: "TS",
|
1028
|
+
|
717
1029
|
sample3: "TS",
|
1030
|
+
|
718
1031
|
sample4: "TS",
|
1032
|
+
|
719
1033
|
sample5: "TS",
|
1034
|
+
|
720
1035
|
message_flow: "TS",
|
1036
|
+
|
721
1037
|
help_message: "TS",
|
1038
|
+
|
722
1039
|
optin_keywords: "TS",
|
1040
|
+
|
723
1041
|
optout_keywords: "TS",
|
1042
|
+
|
724
1043
|
help_keywords: "TS",
|
1044
|
+
|
725
1045
|
optin_message: "TS",
|
1046
|
+
|
726
1047
|
optout_message: "TS",
|
1048
|
+
|
727
1049
|
reference_id: "TS",
|
1050
|
+
|
728
1051
|
mock: true,
|
1052
|
+
|
1053
|
+
|
729
1054
|
next_renewal_or_expiration_date: "2000-01-01",
|
730
1055
|
)
|
731
|
-
|
1056
|
+
expect(instance.hash).to be_a_kind_of(Integer)
|
732
1057
|
end
|
733
1058
|
end
|
734
1059
|
|
@@ -736,43 +1061,155 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
736
1061
|
it 'builds equivalent model from hash code' do
|
737
1062
|
instance_1 = Freeclimb::SMSTenDLCCampaign.new(
|
738
1063
|
account_id: "TS",
|
1064
|
+
|
1065
|
+
campaign_id: "TS",
|
1066
|
+
|
1067
|
+
csp_id: "TS",
|
1068
|
+
|
1069
|
+
reseller_id: "TS",
|
1070
|
+
|
1071
|
+
|
1072
|
+
status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
|
1073
|
+
|
1074
|
+
|
1075
|
+
create_date: "2022-07-05T15:17:05Z",
|
1076
|
+
auto_renewal: true,
|
1077
|
+
|
1078
|
+
|
1079
|
+
billed_date: "2022-07-05T15:17:05Z",
|
1080
|
+
brand_id: "TS",
|
1081
|
+
|
1082
|
+
usecase: "TS",
|
1083
|
+
|
1084
|
+
sub_usecases: Array.new(),
|
1085
|
+
|
1086
|
+
description: "TS",
|
1087
|
+
|
1088
|
+
embedded_link: true,
|
1089
|
+
|
1090
|
+
embedded_phone: true,
|
1091
|
+
|
1092
|
+
affiliate_marketing: true,
|
1093
|
+
|
1094
|
+
number_pool: true,
|
1095
|
+
|
1096
|
+
age_gated: true,
|
1097
|
+
|
1098
|
+
direct_lending: true,
|
1099
|
+
|
1100
|
+
subscriber_optin: true,
|
1101
|
+
|
1102
|
+
subscriber_optout: true,
|
1103
|
+
|
1104
|
+
subscriber_help: true,
|
1105
|
+
|
1106
|
+
sample1: "TS",
|
1107
|
+
|
1108
|
+
sample2: "TS",
|
1109
|
+
|
1110
|
+
sample3: "TS",
|
1111
|
+
|
1112
|
+
sample4: "TS",
|
1113
|
+
|
1114
|
+
sample5: "TS",
|
1115
|
+
|
1116
|
+
message_flow: "TS",
|
1117
|
+
|
1118
|
+
help_message: "TS",
|
1119
|
+
|
1120
|
+
optin_keywords: "TS",
|
1121
|
+
|
1122
|
+
optout_keywords: "TS",
|
1123
|
+
|
1124
|
+
help_keywords: "TS",
|
1125
|
+
|
1126
|
+
optin_message: "TS",
|
1127
|
+
|
1128
|
+
optout_message: "TS",
|
1129
|
+
|
1130
|
+
reference_id: "TS",
|
1131
|
+
|
1132
|
+
mock: true,
|
1133
|
+
|
1134
|
+
|
1135
|
+
next_renewal_or_expiration_date: "2000-01-01",
|
1136
|
+
)
|
1137
|
+
instance_2 = Freeclimb::SMSTenDLCCampaign.new(
|
1138
|
+
account_id: "TS",
|
1139
|
+
|
739
1140
|
campaign_id: "TS",
|
1141
|
+
|
740
1142
|
csp_id: "TS",
|
1143
|
+
|
741
1144
|
reseller_id: "TS",
|
742
|
-
|
1145
|
+
|
1146
|
+
|
1147
|
+
status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
|
1148
|
+
|
1149
|
+
|
743
1150
|
create_date: "2022-07-05T15:17:05Z",
|
744
1151
|
auto_renewal: true,
|
1152
|
+
|
1153
|
+
|
745
1154
|
billed_date: "2022-07-05T15:17:05Z",
|
746
1155
|
brand_id: "TS",
|
1156
|
+
|
747
1157
|
usecase: "TS",
|
1158
|
+
|
748
1159
|
sub_usecases: Array.new(),
|
1160
|
+
|
749
1161
|
description: "TS",
|
1162
|
+
|
750
1163
|
embedded_link: true,
|
1164
|
+
|
751
1165
|
embedded_phone: true,
|
1166
|
+
|
752
1167
|
affiliate_marketing: true,
|
1168
|
+
|
753
1169
|
number_pool: true,
|
1170
|
+
|
754
1171
|
age_gated: true,
|
1172
|
+
|
755
1173
|
direct_lending: true,
|
1174
|
+
|
756
1175
|
subscriber_optin: true,
|
1176
|
+
|
757
1177
|
subscriber_optout: true,
|
1178
|
+
|
758
1179
|
subscriber_help: true,
|
1180
|
+
|
759
1181
|
sample1: "TS",
|
1182
|
+
|
760
1183
|
sample2: "TS",
|
1184
|
+
|
761
1185
|
sample3: "TS",
|
1186
|
+
|
762
1187
|
sample4: "TS",
|
1188
|
+
|
763
1189
|
sample5: "TS",
|
1190
|
+
|
764
1191
|
message_flow: "TS",
|
1192
|
+
|
765
1193
|
help_message: "TS",
|
1194
|
+
|
766
1195
|
optin_keywords: "TS",
|
1196
|
+
|
767
1197
|
optout_keywords: "TS",
|
1198
|
+
|
768
1199
|
help_keywords: "TS",
|
1200
|
+
|
769
1201
|
optin_message: "TS",
|
1202
|
+
|
770
1203
|
optout_message: "TS",
|
1204
|
+
|
771
1205
|
reference_id: "TS",
|
1206
|
+
|
772
1207
|
mock: true,
|
1208
|
+
|
1209
|
+
|
773
1210
|
next_renewal_or_expiration_date: "2000-01-01",
|
774
1211
|
)
|
775
|
-
|
1212
|
+
|
776
1213
|
expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
|
777
1214
|
end
|
778
1215
|
end
|
@@ -780,40 +1217,77 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
780
1217
|
describe 'test method "_deserialize"' do
|
781
1218
|
instance = Freeclimb::SMSTenDLCCampaign.new(
|
782
1219
|
account_id: "TS",
|
1220
|
+
|
783
1221
|
campaign_id: "TS",
|
1222
|
+
|
784
1223
|
csp_id: "TS",
|
1224
|
+
|
785
1225
|
reseller_id: "TS",
|
786
|
-
|
1226
|
+
|
1227
|
+
|
1228
|
+
status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
|
1229
|
+
|
1230
|
+
|
787
1231
|
create_date: "2022-07-05T15:17:05Z",
|
788
1232
|
auto_renewal: true,
|
1233
|
+
|
1234
|
+
|
789
1235
|
billed_date: "2022-07-05T15:17:05Z",
|
790
1236
|
brand_id: "TS",
|
1237
|
+
|
791
1238
|
usecase: "TS",
|
1239
|
+
|
792
1240
|
sub_usecases: Array.new(),
|
1241
|
+
|
793
1242
|
description: "TS",
|
1243
|
+
|
794
1244
|
embedded_link: true,
|
1245
|
+
|
795
1246
|
embedded_phone: true,
|
1247
|
+
|
796
1248
|
affiliate_marketing: true,
|
1249
|
+
|
797
1250
|
number_pool: true,
|
1251
|
+
|
798
1252
|
age_gated: true,
|
1253
|
+
|
799
1254
|
direct_lending: true,
|
1255
|
+
|
800
1256
|
subscriber_optin: true,
|
1257
|
+
|
801
1258
|
subscriber_optout: true,
|
1259
|
+
|
802
1260
|
subscriber_help: true,
|
1261
|
+
|
803
1262
|
sample1: "TS",
|
1263
|
+
|
804
1264
|
sample2: "TS",
|
1265
|
+
|
805
1266
|
sample3: "TS",
|
1267
|
+
|
806
1268
|
sample4: "TS",
|
1269
|
+
|
807
1270
|
sample5: "TS",
|
1271
|
+
|
808
1272
|
message_flow: "TS",
|
1273
|
+
|
809
1274
|
help_message: "TS",
|
1275
|
+
|
810
1276
|
optin_keywords: "TS",
|
1277
|
+
|
811
1278
|
optout_keywords: "TS",
|
1279
|
+
|
812
1280
|
help_keywords: "TS",
|
1281
|
+
|
813
1282
|
optin_message: "TS",
|
1283
|
+
|
814
1284
|
optout_message: "TS",
|
1285
|
+
|
815
1286
|
reference_id: "TS",
|
1287
|
+
|
816
1288
|
mock: true,
|
1289
|
+
|
1290
|
+
|
817
1291
|
next_renewal_or_expiration_date: "2000-01-01",
|
818
1292
|
)
|
819
1293
|
it 'deserializes the data of account_id' do
|
@@ -828,9 +1302,6 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
828
1302
|
it 'deserializes the data of reseller_id' do
|
829
1303
|
expect(instance._deserialize("String", instance.reseller_id)).to be_a_kind_of(String)
|
830
1304
|
end
|
831
|
-
it 'deserializes the data of status' do
|
832
|
-
expect(instance._deserialize("String", instance.status)).to be_a_kind_of(String)
|
833
|
-
end
|
834
1305
|
it 'deserializes the data of create_date' do
|
835
1306
|
expect(instance._deserialize("Time", instance.create_date)).to be_a_kind_of(Time)
|
836
1307
|
end
|
@@ -930,40 +1401,77 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
930
1401
|
it 'returns the string representation of the object' do
|
931
1402
|
instance = Freeclimb::SMSTenDLCCampaign.new(
|
932
1403
|
account_id: "TS",
|
1404
|
+
|
933
1405
|
campaign_id: "TS",
|
1406
|
+
|
934
1407
|
csp_id: "TS",
|
1408
|
+
|
935
1409
|
reseller_id: "TS",
|
936
|
-
|
1410
|
+
|
1411
|
+
|
1412
|
+
status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
|
1413
|
+
|
1414
|
+
|
937
1415
|
create_date: "2022-07-05T15:17:05Z",
|
938
1416
|
auto_renewal: true,
|
1417
|
+
|
1418
|
+
|
939
1419
|
billed_date: "2022-07-05T15:17:05Z",
|
940
1420
|
brand_id: "TS",
|
1421
|
+
|
941
1422
|
usecase: "TS",
|
1423
|
+
|
942
1424
|
sub_usecases: Array.new(),
|
1425
|
+
|
943
1426
|
description: "TS",
|
1427
|
+
|
944
1428
|
embedded_link: true,
|
1429
|
+
|
945
1430
|
embedded_phone: true,
|
1431
|
+
|
946
1432
|
affiliate_marketing: true,
|
1433
|
+
|
947
1434
|
number_pool: true,
|
1435
|
+
|
948
1436
|
age_gated: true,
|
1437
|
+
|
949
1438
|
direct_lending: true,
|
1439
|
+
|
950
1440
|
subscriber_optin: true,
|
1441
|
+
|
951
1442
|
subscriber_optout: true,
|
1443
|
+
|
952
1444
|
subscriber_help: true,
|
1445
|
+
|
953
1446
|
sample1: "TS",
|
1447
|
+
|
954
1448
|
sample2: "TS",
|
1449
|
+
|
955
1450
|
sample3: "TS",
|
1451
|
+
|
956
1452
|
sample4: "TS",
|
1453
|
+
|
957
1454
|
sample5: "TS",
|
1455
|
+
|
958
1456
|
message_flow: "TS",
|
1457
|
+
|
959
1458
|
help_message: "TS",
|
1459
|
+
|
960
1460
|
optin_keywords: "TS",
|
1461
|
+
|
961
1462
|
optout_keywords: "TS",
|
1463
|
+
|
962
1464
|
help_keywords: "TS",
|
1465
|
+
|
963
1466
|
optin_message: "TS",
|
1467
|
+
|
964
1468
|
optout_message: "TS",
|
1469
|
+
|
965
1470
|
reference_id: "TS",
|
1471
|
+
|
966
1472
|
mock: true,
|
1473
|
+
|
1474
|
+
|
967
1475
|
next_renewal_or_expiration_date: "2000-01-01",
|
968
1476
|
)
|
969
1477
|
expect(instance.to_s).to eq(instance.to_hash.to_s)
|
@@ -974,40 +1482,77 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
974
1482
|
it 'returns the object in the form of hash' do
|
975
1483
|
instance = Freeclimb::SMSTenDLCCampaign.new(
|
976
1484
|
account_id: "TS",
|
1485
|
+
|
977
1486
|
campaign_id: "TS",
|
1487
|
+
|
978
1488
|
csp_id: "TS",
|
1489
|
+
|
979
1490
|
reseller_id: "TS",
|
980
|
-
|
1491
|
+
|
1492
|
+
|
1493
|
+
status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
|
1494
|
+
|
1495
|
+
|
981
1496
|
create_date: "2022-07-05T15:17:05Z",
|
982
1497
|
auto_renewal: true,
|
1498
|
+
|
1499
|
+
|
983
1500
|
billed_date: "2022-07-05T15:17:05Z",
|
984
1501
|
brand_id: "TS",
|
1502
|
+
|
985
1503
|
usecase: "TS",
|
1504
|
+
|
986
1505
|
sub_usecases: Array.new(),
|
1506
|
+
|
987
1507
|
description: "TS",
|
1508
|
+
|
988
1509
|
embedded_link: true,
|
1510
|
+
|
989
1511
|
embedded_phone: true,
|
1512
|
+
|
990
1513
|
affiliate_marketing: true,
|
1514
|
+
|
991
1515
|
number_pool: true,
|
1516
|
+
|
992
1517
|
age_gated: true,
|
1518
|
+
|
993
1519
|
direct_lending: true,
|
1520
|
+
|
994
1521
|
subscriber_optin: true,
|
1522
|
+
|
995
1523
|
subscriber_optout: true,
|
1524
|
+
|
996
1525
|
subscriber_help: true,
|
1526
|
+
|
997
1527
|
sample1: "TS",
|
1528
|
+
|
998
1529
|
sample2: "TS",
|
1530
|
+
|
999
1531
|
sample3: "TS",
|
1532
|
+
|
1000
1533
|
sample4: "TS",
|
1534
|
+
|
1001
1535
|
sample5: "TS",
|
1536
|
+
|
1002
1537
|
message_flow: "TS",
|
1538
|
+
|
1003
1539
|
help_message: "TS",
|
1540
|
+
|
1004
1541
|
optin_keywords: "TS",
|
1542
|
+
|
1005
1543
|
optout_keywords: "TS",
|
1544
|
+
|
1006
1545
|
help_keywords: "TS",
|
1546
|
+
|
1007
1547
|
optin_message: "TS",
|
1548
|
+
|
1008
1549
|
optout_message: "TS",
|
1550
|
+
|
1009
1551
|
reference_id: "TS",
|
1552
|
+
|
1010
1553
|
mock: true,
|
1554
|
+
|
1555
|
+
|
1011
1556
|
next_renewal_or_expiration_date: "2000-01-01",
|
1012
1557
|
)
|
1013
1558
|
expect(instance.to_hash).to be_a_kind_of(Hash)
|
@@ -1016,78 +1561,152 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
1016
1561
|
obj = Object.new()
|
1017
1562
|
instance_1 = Freeclimb::SMSTenDLCCampaign.new(
|
1018
1563
|
account_id: "TS",
|
1564
|
+
|
1019
1565
|
campaign_id: "TS",
|
1566
|
+
|
1020
1567
|
csp_id: "TS",
|
1568
|
+
|
1021
1569
|
reseller_id: "TS",
|
1022
|
-
|
1570
|
+
|
1571
|
+
|
1572
|
+
status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
|
1573
|
+
|
1574
|
+
|
1023
1575
|
create_date: "2022-07-05T15:17:05Z",
|
1024
1576
|
auto_renewal: true,
|
1577
|
+
|
1578
|
+
|
1025
1579
|
billed_date: "2022-07-05T15:17:05Z",
|
1026
1580
|
brand_id: "TS",
|
1581
|
+
|
1027
1582
|
usecase: "TS",
|
1583
|
+
|
1028
1584
|
sub_usecases: Array.new(),
|
1585
|
+
|
1029
1586
|
description: "TS",
|
1587
|
+
|
1030
1588
|
embedded_link: true,
|
1589
|
+
|
1031
1590
|
embedded_phone: true,
|
1591
|
+
|
1032
1592
|
affiliate_marketing: true,
|
1593
|
+
|
1033
1594
|
number_pool: true,
|
1595
|
+
|
1034
1596
|
age_gated: true,
|
1597
|
+
|
1035
1598
|
direct_lending: true,
|
1599
|
+
|
1036
1600
|
subscriber_optin: true,
|
1601
|
+
|
1037
1602
|
subscriber_optout: true,
|
1603
|
+
|
1038
1604
|
subscriber_help: true,
|
1605
|
+
|
1039
1606
|
sample1: "TS",
|
1607
|
+
|
1040
1608
|
sample2: "TS",
|
1609
|
+
|
1041
1610
|
sample3: "TS",
|
1611
|
+
|
1042
1612
|
sample4: "TS",
|
1613
|
+
|
1043
1614
|
sample5: "TS",
|
1615
|
+
|
1044
1616
|
message_flow: "TS",
|
1617
|
+
|
1045
1618
|
help_message: "TS",
|
1619
|
+
|
1046
1620
|
optin_keywords: "TS",
|
1621
|
+
|
1047
1622
|
optout_keywords: "TS",
|
1623
|
+
|
1048
1624
|
help_keywords: "TS",
|
1625
|
+
|
1049
1626
|
optin_message: "TS",
|
1627
|
+
|
1050
1628
|
optout_message: "TS",
|
1629
|
+
|
1051
1630
|
reference_id: "TS",
|
1631
|
+
|
1052
1632
|
mock: true,
|
1633
|
+
|
1634
|
+
|
1053
1635
|
next_renewal_or_expiration_date: "2000-01-01",
|
1054
1636
|
)
|
1055
1637
|
instance_2 = Freeclimb::SMSTenDLCCampaign.new(
|
1056
1638
|
account_id: "TS",
|
1639
|
+
|
1057
1640
|
campaign_id: "TS",
|
1641
|
+
|
1058
1642
|
csp_id: "TS",
|
1643
|
+
|
1059
1644
|
reseller_id: "TS",
|
1060
|
-
|
1645
|
+
|
1646
|
+
|
1647
|
+
status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
|
1648
|
+
|
1649
|
+
|
1061
1650
|
create_date: "2022-07-05T15:17:05Z",
|
1062
1651
|
auto_renewal: true,
|
1652
|
+
|
1653
|
+
|
1063
1654
|
billed_date: "2022-07-05T15:17:05Z",
|
1064
1655
|
brand_id: "TS",
|
1656
|
+
|
1065
1657
|
usecase: "TS",
|
1658
|
+
|
1066
1659
|
sub_usecases: Array.new(),
|
1660
|
+
|
1067
1661
|
description: "TS",
|
1662
|
+
|
1068
1663
|
embedded_link: true,
|
1664
|
+
|
1069
1665
|
embedded_phone: true,
|
1666
|
+
|
1070
1667
|
affiliate_marketing: true,
|
1668
|
+
|
1071
1669
|
number_pool: true,
|
1670
|
+
|
1072
1671
|
age_gated: true,
|
1672
|
+
|
1073
1673
|
direct_lending: true,
|
1674
|
+
|
1074
1675
|
subscriber_optin: true,
|
1676
|
+
|
1075
1677
|
subscriber_optout: true,
|
1678
|
+
|
1076
1679
|
subscriber_help: true,
|
1680
|
+
|
1077
1681
|
sample1: "TS",
|
1682
|
+
|
1078
1683
|
sample2: "TS",
|
1684
|
+
|
1079
1685
|
sample3: "TS",
|
1686
|
+
|
1080
1687
|
sample4: "TS",
|
1688
|
+
|
1081
1689
|
sample5: "TS",
|
1690
|
+
|
1082
1691
|
message_flow: "TS",
|
1692
|
+
|
1083
1693
|
help_message: "TS",
|
1694
|
+
|
1084
1695
|
optin_keywords: "TS",
|
1696
|
+
|
1085
1697
|
optout_keywords: "TS",
|
1698
|
+
|
1086
1699
|
help_keywords: "TS",
|
1700
|
+
|
1087
1701
|
optin_message: "TS",
|
1702
|
+
|
1088
1703
|
optout_message: "TS",
|
1704
|
+
|
1089
1705
|
reference_id: "TS",
|
1706
|
+
|
1090
1707
|
mock: true,
|
1708
|
+
|
1709
|
+
|
1091
1710
|
next_renewal_or_expiration_date: "2000-01-01",
|
1092
1711
|
)
|
1093
1712
|
expect(instance_1.to_hash).to eq(instance_2.to_hash)
|
@@ -1097,75 +1716,112 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
1097
1716
|
describe 'test method "_to_hash"' do
|
1098
1717
|
instance = Freeclimb::SMSTenDLCCampaign.new(
|
1099
1718
|
account_id: "TS",
|
1719
|
+
|
1100
1720
|
|
1101
1721
|
campaign_id: "TS",
|
1722
|
+
|
1102
1723
|
|
1103
1724
|
csp_id: "TS",
|
1725
|
+
|
1104
1726
|
|
1105
1727
|
reseller_id: "TS",
|
1728
|
+
|
1106
1729
|
|
1107
|
-
|
1730
|
+
|
1731
|
+
status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
|
1732
|
+
|
1108
1733
|
|
1734
|
+
|
1109
1735
|
create_date: "2022-07-05T15:17:05Z",
|
1110
1736
|
|
1111
1737
|
auto_renewal: true,
|
1738
|
+
|
1112
1739
|
|
1740
|
+
|
1113
1741
|
billed_date: "2022-07-05T15:17:05Z",
|
1114
1742
|
|
1115
1743
|
brand_id: "TS",
|
1744
|
+
|
1116
1745
|
|
1117
1746
|
usecase: "TS",
|
1747
|
+
|
1118
1748
|
|
1119
1749
|
sub_usecases: Array.new(),
|
1750
|
+
|
1120
1751
|
|
1121
1752
|
description: "TS",
|
1753
|
+
|
1122
1754
|
|
1123
1755
|
embedded_link: true,
|
1756
|
+
|
1124
1757
|
|
1125
1758
|
embedded_phone: true,
|
1759
|
+
|
1126
1760
|
|
1127
1761
|
affiliate_marketing: true,
|
1762
|
+
|
1128
1763
|
|
1129
1764
|
number_pool: true,
|
1765
|
+
|
1130
1766
|
|
1131
1767
|
age_gated: true,
|
1768
|
+
|
1132
1769
|
|
1133
1770
|
direct_lending: true,
|
1771
|
+
|
1134
1772
|
|
1135
1773
|
subscriber_optin: true,
|
1774
|
+
|
1136
1775
|
|
1137
1776
|
subscriber_optout: true,
|
1777
|
+
|
1138
1778
|
|
1139
1779
|
subscriber_help: true,
|
1780
|
+
|
1140
1781
|
|
1141
1782
|
sample1: "TS",
|
1783
|
+
|
1142
1784
|
|
1143
1785
|
sample2: "TS",
|
1786
|
+
|
1144
1787
|
|
1145
1788
|
sample3: "TS",
|
1789
|
+
|
1146
1790
|
|
1147
1791
|
sample4: "TS",
|
1792
|
+
|
1148
1793
|
|
1149
1794
|
sample5: "TS",
|
1795
|
+
|
1150
1796
|
|
1151
1797
|
message_flow: "TS",
|
1798
|
+
|
1152
1799
|
|
1153
1800
|
help_message: "TS",
|
1801
|
+
|
1154
1802
|
|
1155
1803
|
optin_keywords: "TS",
|
1804
|
+
|
1156
1805
|
|
1157
1806
|
optout_keywords: "TS",
|
1807
|
+
|
1158
1808
|
|
1159
1809
|
help_keywords: "TS",
|
1810
|
+
|
1160
1811
|
|
1161
1812
|
optin_message: "TS",
|
1813
|
+
|
1162
1814
|
|
1163
1815
|
optout_message: "TS",
|
1816
|
+
|
1164
1817
|
|
1165
1818
|
reference_id: "TS",
|
1819
|
+
|
1166
1820
|
|
1167
1821
|
mock: true,
|
1822
|
+
|
1168
1823
|
|
1824
|
+
|
1169
1825
|
next_renewal_or_expiration_date: "2000-01-01",
|
1170
1826
|
)
|
1171
1827
|
it 'returns account_id in the form of hash' do
|