freeclimb 5.1.0 → 5.3.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 +21 -0
- data/Gemfile +4 -5
- data/Gemfile.lock +20 -7
- data/README.md +17 -4
- data/Rakefile +1 -1
- data/docs/CallResult.md +2 -2
- data/docs/CreateConference.md +4 -2
- data/docs/CreateConferenceRequest.md +1 -1
- data/docs/DefaultApi.md +369 -2
- data/docs/ExportList.md +32 -0
- data/docs/ExportOutputType.md +16 -0
- data/docs/ExportRequest.md +24 -0
- data/docs/ExportRequestOutput.md +18 -0
- data/docs/ExportResourceType.md +17 -0
- data/docs/ExportResult.md +40 -0
- data/docs/ExportResultOutput.md +18 -0
- data/docs/ExportStatus.md +21 -0
- data/freeclimb.gemspec +21 -26
- data/lib/freeclimb/api/default_api.rb +1191 -878
- data/lib/freeclimb/api_client.rb +78 -83
- data/lib/freeclimb/api_error.rb +17 -19
- data/lib/freeclimb/configuration.rb +27 -29
- data/lib/freeclimb/models/account_request.rb +36 -41
- data/lib/freeclimb/models/account_result.rb +88 -92
- data/lib/freeclimb/models/account_status.rb +12 -14
- data/lib/freeclimb/models/account_type.rb +12 -14
- data/lib/freeclimb/models/add_to_conference.rb +81 -85
- data/lib/freeclimb/models/add_to_conference_notification_webhook.rb +99 -103
- data/lib/freeclimb/models/add_to_queue_notification_webhook.rb +78 -82
- data/lib/freeclimb/models/answered_by.rb +12 -14
- data/lib/freeclimb/models/application_list.rb +74 -78
- data/lib/freeclimb/models/application_request.rb +66 -70
- data/lib/freeclimb/models/application_result.rb +100 -104
- data/lib/freeclimb/models/available_number.rb +66 -70
- data/lib/freeclimb/models/available_number_list.rb +74 -78
- data/lib/freeclimb/models/barge_in_reason.rb +12 -14
- data/lib/freeclimb/models/buy_incoming_number_request.rb +41 -45
- data/lib/freeclimb/models/call_control_webhook.rb +56 -61
- data/lib/freeclimb/models/call_direction.rb +12 -14
- data/lib/freeclimb/models/call_ended_reason.rb +12 -14
- data/lib/freeclimb/models/call_list.rb +74 -78
- data/lib/freeclimb/models/call_result.rb +144 -148
- data/lib/freeclimb/models/call_status.rb +12 -14
- data/lib/freeclimb/models/call_status_webhook.rb +84 -88
- data/lib/freeclimb/models/capabilities.rb +55 -59
- data/lib/freeclimb/models/completion_request.rb +32 -36
- data/lib/freeclimb/models/completion_result.rb +36 -40
- data/lib/freeclimb/models/completion_result_status.rb +12 -14
- data/lib/freeclimb/models/conference_list.rb +74 -78
- data/lib/freeclimb/models/conference_participant_list.rb +74 -78
- data/lib/freeclimb/models/conference_participant_result.rb +88 -92
- data/lib/freeclimb/models/conference_recording_status_webhook.rb +99 -103
- data/lib/freeclimb/models/conference_result.rb +106 -110
- data/lib/freeclimb/models/conference_status.rb +12 -14
- data/lib/freeclimb/models/conference_status_webhook.rb +102 -106
- data/lib/freeclimb/models/create_conference.rb +71 -64
- data/lib/freeclimb/models/create_conference_request.rb +55 -54
- data/lib/freeclimb/models/create_conference_webhook.rb +102 -106
- data/lib/freeclimb/models/create_web_rtc_token.rb +42 -46
- data/lib/freeclimb/models/dequeue.rb +28 -33
- data/lib/freeclimb/models/dequeue_webhook.rb +89 -93
- data/lib/freeclimb/models/enqueue.rb +48 -52
- data/lib/freeclimb/models/export_list.rb +304 -0
- data/lib/freeclimb/models/export_output_type.rb +34 -0
- data/lib/freeclimb/models/export_request.rb +276 -0
- data/lib/freeclimb/models/export_request_output.rb +243 -0
- data/lib/freeclimb/models/export_resource_type.rb +35 -0
- data/lib/freeclimb/models/export_result.rb +405 -0
- data/lib/freeclimb/models/export_result_output.rb +243 -0
- data/lib/freeclimb/models/export_status.rb +39 -0
- data/lib/freeclimb/models/filter_logs_request.rb +31 -35
- data/lib/freeclimb/models/get_digits.rb +73 -77
- data/lib/freeclimb/models/get_digits_reason.rb +12 -14
- data/lib/freeclimb/models/get_digits_webhook.rb +93 -97
- data/lib/freeclimb/models/get_speech.rb +94 -97
- data/lib/freeclimb/models/get_speech_reason.rb +12 -14
- data/lib/freeclimb/models/get_speech_webhook.rb +118 -122
- data/lib/freeclimb/models/grammar_file_built_in.rb +12 -14
- data/lib/freeclimb/models/grammar_type.rb +12 -14
- data/lib/freeclimb/models/hangup.rb +34 -39
- data/lib/freeclimb/models/if_machine.rb +12 -14
- data/lib/freeclimb/models/inbound_call_webhook.rb +85 -89
- data/lib/freeclimb/models/incoming_number_list.rb +74 -78
- data/lib/freeclimb/models/incoming_number_request.rb +41 -45
- data/lib/freeclimb/models/incoming_number_result.rb +122 -126
- data/lib/freeclimb/models/language.rb +12 -14
- data/lib/freeclimb/models/leave_conference_webhook.rb +79 -83
- data/lib/freeclimb/models/log_level.rb +12 -14
- data/lib/freeclimb/models/log_list.rb +74 -78
- data/lib/freeclimb/models/log_result.rb +67 -71
- data/lib/freeclimb/models/machine_detected_webhook.rb +89 -93
- data/lib/freeclimb/models/machine_type.rb +12 -14
- data/lib/freeclimb/models/make_call_request.rb +77 -81
- data/lib/freeclimb/models/message_delivery_webhook.rb +81 -86
- data/lib/freeclimb/models/message_direction.rb +12 -14
- data/lib/freeclimb/models/message_request.rb +72 -75
- data/lib/freeclimb/models/message_result.rb +135 -139
- data/lib/freeclimb/models/message_status.rb +12 -14
- data/lib/freeclimb/models/message_status_webhook.rb +86 -90
- data/lib/freeclimb/models/messages_list.rb +74 -78
- data/lib/freeclimb/models/mutable_resource_model.rb +46 -51
- data/lib/freeclimb/models/out_dial.rb +80 -84
- data/lib/freeclimb/models/out_dial_api_connect_webhook.rb +84 -88
- data/lib/freeclimb/models/out_dial_connect_webhook.rb +84 -88
- data/lib/freeclimb/models/out_dial_start_webhook.rb +90 -94
- data/lib/freeclimb/models/pagination_model.rb +67 -71
- data/lib/freeclimb/models/park.rb +44 -48
- data/lib/freeclimb/models/pause.rb +33 -37
- data/lib/freeclimb/models/percl_command.rb +36 -40
- data/lib/freeclimb/models/percl_script.rb +32 -36
- data/lib/freeclimb/models/play.rb +44 -48
- data/lib/freeclimb/models/play_beep.rb +12 -14
- data/lib/freeclimb/models/play_early_media.rb +33 -37
- data/lib/freeclimb/models/queue_list.rb +74 -78
- data/lib/freeclimb/models/queue_member.rb +55 -59
- data/lib/freeclimb/models/queue_member_list.rb +74 -78
- data/lib/freeclimb/models/queue_request.rb +37 -42
- data/lib/freeclimb/models/queue_result.rb +88 -92
- data/lib/freeclimb/models/queue_result_status.rb +12 -14
- data/lib/freeclimb/models/queue_wait_webhook.rb +94 -98
- data/lib/freeclimb/models/record_utterance.rb +63 -67
- data/lib/freeclimb/models/record_utterance_term_reason.rb +12 -14
- data/lib/freeclimb/models/record_webhook.rb +119 -123
- data/lib/freeclimb/models/recording_list.rb +74 -78
- data/lib/freeclimb/models/recording_result.rb +76 -80
- data/lib/freeclimb/models/redirect.rb +33 -37
- data/lib/freeclimb/models/redirect_webhook.rb +84 -88
- data/lib/freeclimb/models/reject.rb +34 -39
- data/lib/freeclimb/models/remove_from_conference.rb +28 -33
- data/lib/freeclimb/models/remove_from_queue_notification_webhook.rb +89 -93
- data/lib/freeclimb/models/request_type.rb +12 -14
- data/lib/freeclimb/models/say.rb +49 -53
- data/lib/freeclimb/models/send_digits.rb +43 -47
- data/lib/freeclimb/models/set_dtmf_pass_through.rb +34 -39
- data/lib/freeclimb/models/set_listen.rb +34 -39
- data/lib/freeclimb/models/set_talk.rb +34 -39
- data/lib/freeclimb/models/sms.rb +48 -52
- data/lib/freeclimb/models/sms_ten_dlc_brand.rb +187 -190
- data/lib/freeclimb/models/sms_ten_dlc_brand_alt_business_id_type.rb +12 -14
- data/lib/freeclimb/models/sms_ten_dlc_brand_entity_type.rb +12 -14
- data/lib/freeclimb/models/sms_ten_dlc_brand_identity_status.rb +12 -14
- data/lib/freeclimb/models/sms_ten_dlc_brand_relationship.rb +12 -14
- data/lib/freeclimb/models/sms_ten_dlc_brand_stock_exchange.rb +12 -14
- data/lib/freeclimb/models/sms_ten_dlc_brands_list_result.rb +74 -78
- data/lib/freeclimb/models/sms_ten_dlc_campaign.rb +226 -229
- data/lib/freeclimb/models/sms_ten_dlc_campaign_status.rb +12 -14
- data/lib/freeclimb/models/sms_ten_dlc_campaigns_list_result.rb +74 -78
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb +186 -189
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_brand.rb +84 -87
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_status.rb +12 -14
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaigns_list_result.rb +74 -78
- data/lib/freeclimb/models/sms_toll_free_campaign.rb +61 -64
- data/lib/freeclimb/models/sms_toll_free_campaign_registration_status.rb +12 -14
- data/lib/freeclimb/models/sms_toll_free_campaigns_list_result.rb +74 -78
- data/lib/freeclimb/models/start_record_call.rb +28 -33
- data/lib/freeclimb/models/terminate_conference.rb +28 -33
- data/lib/freeclimb/models/tfn.rb +31 -35
- data/lib/freeclimb/models/tfn_campaign.rb +76 -79
- data/lib/freeclimb/models/transcribe_reason.rb +12 -14
- data/lib/freeclimb/models/transcribe_term_reason.rb +12 -14
- data/lib/freeclimb/models/transcribe_utterance.rb +61 -65
- data/lib/freeclimb/models/transcribe_utterance_record.rb +43 -47
- data/lib/freeclimb/models/transcribe_webhook.rb +150 -154
- data/lib/freeclimb/models/unpark.rb +28 -33
- data/lib/freeclimb/models/update_call_request.rb +31 -35
- data/lib/freeclimb/models/update_call_request_status.rb +12 -14
- data/lib/freeclimb/models/update_conference_participant_request.rb +41 -46
- data/lib/freeclimb/models/update_conference_request.rb +41 -45
- data/lib/freeclimb/models/update_conference_request_status.rb +12 -14
- data/lib/freeclimb/models/webhook.rb +32 -37
- data/lib/freeclimb/utils/request_verifier.rb +14 -14
- data/lib/freeclimb/utils/signature_information.rb +8 -8
- data/lib/freeclimb/version.rb +10 -12
- data/lib/freeclimb.rb +164 -158
- data/openapi.json +373 -2
- data/package.json +1 -1
- data/spec/api/default_api_spec.rb +631 -676
- data/spec/api_client_spec.rb +100 -102
- data/spec/configuration_spec.rb +16 -18
- data/spec/models/account_request_spec.rb +104 -233
- data/spec/models/account_result_spec.rb +393 -1013
- data/spec/models/account_status_spec.rb +27 -30
- data/spec/models/account_type_spec.rb +24 -27
- data/spec/models/add_to_conference_notification_webhook_spec.rb +464 -1197
- data/spec/models/add_to_conference_spec.rb +354 -850
- data/spec/models/add_to_queue_notification_webhook_spec.rb +341 -864
- data/spec/models/answered_by_spec.rb +24 -27
- data/spec/models/application_list_spec.rb +289 -646
- data/spec/models/application_request_spec.rb +265 -679
- data/spec/models/application_result_spec.rb +444 -1184
- data/spec/models/available_number_list_spec.rb +289 -646
- data/spec/models/available_number_spec.rb +271 -650
- data/spec/models/barge_in_reason_spec.rb +27 -30
- data/spec/models/buy_incoming_number_request_spec.rb +136 -322
- data/spec/models/call_control_webhook_spec.rb +203 -503
- data/spec/models/call_direction_spec.rb +27 -30
- data/spec/models/call_ended_reason_spec.rb +107 -110
- data/spec/models/call_list_spec.rb +289 -646
- data/spec/models/call_result_spec.rb +699 -1798
- data/spec/models/call_status_spec.rb +47 -50
- data/spec/models/call_status_webhook_spec.rb +413 -990
- data/spec/models/capabilities_spec.rb +202 -411
- data/spec/models/completion_request_spec.rb +75 -143
- data/spec/models/completion_result_spec.rb +104 -231
- data/spec/models/completion_result_status_spec.rb +24 -27
- data/spec/models/conference_list_spec.rb +289 -646
- data/spec/models/conference_participant_list_spec.rb +289 -646
- data/spec/models/conference_participant_result_spec.rb +384 -938
- data/spec/models/conference_recording_status_webhook_spec.rb +464 -1197
- data/spec/models/conference_result_spec.rb +489 -1263
- data/spec/models/conference_status_spec.rb +31 -34
- data/spec/models/conference_status_webhook_spec.rb +464 -1197
- data/spec/models/create_conference_request_spec.rb +204 -485
- data/spec/models/create_conference_spec.rb +289 -561
- data/spec/models/create_conference_webhook_spec.rb +464 -1197
- data/spec/models/create_web_rtc_token_spec.rb +136 -307
- data/spec/models/dequeue_spec.rb +14 -17
- data/spec/models/dequeue_webhook_spec.rb +400 -1021
- data/spec/models/enqueue_spec.rb +169 -412
- data/spec/models/export_list_spec.rb +502 -0
- data/spec/models/export_output_type_spec.rb +43 -0
- data/spec/models/export_request_output_spec.rb +162 -0
- data/spec/models/export_request_spec.rb +320 -0
- data/spec/models/export_resource_type_spec.rb +59 -0
- data/spec/models/export_result_output_spec.rb +162 -0
- data/spec/models/export_result_spec.rb +718 -0
- data/spec/models/export_status_spec.rb +123 -0
- data/spec/models/filter_logs_request_spec.rb +73 -145
- data/spec/models/get_digits_reason_spec.rb +31 -34
- data/spec/models/get_digits_spec.rb +326 -737
- data/spec/models/get_digits_webhook_spec.rb +435 -1127
- data/spec/models/get_speech_reason_spec.rb +39 -42
- data/spec/models/get_speech_spec.rb +399 -1036
- data/spec/models/get_speech_webhook_spec.rb +608 -1553
- data/spec/models/grammar_file_built_in_spec.rb +75 -78
- data/spec/models/grammar_type_spec.rb +24 -27
- data/spec/models/hangup_spec.rb +73 -145
- data/spec/models/if_machine_spec.rb +24 -27
- data/spec/models/inbound_call_webhook_spec.rb +371 -951
- data/spec/models/incoming_number_list_spec.rb +289 -646
- data/spec/models/incoming_number_request_spec.rb +136 -322
- data/spec/models/incoming_number_result_spec.rb +573 -1489
- data/spec/models/language_spec.rb +120 -123
- data/spec/models/leave_conference_webhook_spec.rb +341 -864
- data/spec/models/log_level_spec.rb +27 -30
- data/spec/models/log_list_spec.rb +289 -646
- data/spec/models/log_result_spec.rb +272 -667
- data/spec/models/machine_detected_webhook_spec.rb +401 -1036
- data/spec/models/machine_type_spec.rb +24 -27
- data/spec/models/make_call_request_spec.rb +353 -905
- data/spec/models/message_delivery_webhook_spec.rb +357 -942
- data/spec/models/message_direction_spec.rb +24 -27
- data/spec/models/message_request_spec.rb +324 -818
- data/spec/models/message_result_spec.rb +647 -1710
- data/spec/models/message_status_spec.rb +60 -63
- data/spec/models/message_status_webhook_spec.rb +405 -1045
- data/spec/models/messages_list_spec.rb +289 -646
- data/spec/models/mutable_resource_model_spec.rb +168 -395
- data/spec/models/out_dial_api_connect_webhook_spec.rb +371 -951
- data/spec/models/out_dial_connect_webhook_spec.rb +371 -951
- data/spec/models/out_dial_spec.rb +354 -903
- data/spec/models/out_dial_start_webhook_spec.rb +401 -1038
- data/spec/models/pagination_model_spec.rb +259 -577
- data/spec/models/park_spec.rb +136 -322
- data/spec/models/pause_spec.rb +72 -128
- data/spec/models/percl_command_spec.rb +76 -145
- data/spec/models/percl_script_spec.rb +73 -127
- data/spec/models/play_beep_spec.rb +31 -34
- data/spec/models/play_early_media_spec.rb +73 -145
- data/spec/models/play_spec.rb +135 -287
- data/spec/models/queue_list_spec.rb +289 -646
- data/spec/models/queue_member_list_spec.rb +289 -646
- data/spec/models/queue_member_spec.rb +199 -467
- data/spec/models/queue_request_spec.rb +103 -216
- data/spec/models/queue_result_spec.rb +388 -965
- data/spec/models/queue_result_status_spec.rb +31 -34
- data/spec/models/queue_wait_webhook_spec.rb +429 -1091
- data/spec/models/record_utterance_spec.rb +263 -591
- data/spec/models/record_utterance_term_reason_spec.rb +31 -34
- data/spec/models/record_webhook_spec.rb +605 -1548
- data/spec/models/recording_list_spec.rb +289 -646
- data/spec/models/recording_result_spec.rb +323 -819
- data/spec/models/redirect_spec.rb +73 -145
- data/spec/models/redirect_webhook_spec.rb +371 -951
- data/spec/models/reject_spec.rb +73 -145
- data/spec/models/remove_from_conference_spec.rb +14 -17
- data/spec/models/remove_from_queue_notification_webhook_spec.rb +404 -1023
- data/spec/models/request_type_spec.rb +107 -110
- data/spec/models/say_spec.rb +168 -377
- data/spec/models/send_digits_spec.rb +135 -287
- data/spec/models/set_dtmf_pass_through_spec.rb +74 -127
- data/spec/models/set_listen_spec.rb +74 -127
- data/spec/models/set_talk_spec.rb +74 -127
- data/spec/models/sms_spec.rb +169 -412
- data/spec/models/sms_ten_dlc_brand_alt_business_id_type_spec.rb +31 -34
- data/spec/models/sms_ten_dlc_brand_entity_type_spec.rb +35 -38
- data/spec/models/sms_ten_dlc_brand_identity_status_spec.rb +31 -34
- data/spec/models/sms_ten_dlc_brand_relationship_spec.rb +35 -38
- data/spec/models/sms_ten_dlc_brand_spec.rb +1082 -2746
- data/spec/models/sms_ten_dlc_brand_stock_exchange_spec.rb +124 -127
- data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +289 -646
- data/spec/models/sms_ten_dlc_campaign_spec.rb +1139 -2881
- data/spec/models/sms_ten_dlc_campaign_status_spec.rb +24 -27
- data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +289 -646
- data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +406 -1004
- data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +961 -2393
- data/spec/models/sms_ten_dlc_partner_campaign_status_spec.rb +24 -27
- data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +289 -646
- data/spec/models/sms_toll_free_campaign_registration_status_spec.rb +35 -38
- data/spec/models/sms_toll_free_campaign_spec.rb +270 -666
- data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +289 -646
- data/spec/models/start_record_call_spec.rb +14 -17
- data/spec/models/terminate_conference_spec.rb +14 -17
- data/spec/models/tfn_campaign_spec.rb +330 -858
- data/spec/models/tfn_spec.rb +73 -145
- data/spec/models/transcribe_reason_spec.rb +35 -38
- data/spec/models/transcribe_term_reason_spec.rb +24 -27
- data/spec/models/transcribe_utterance_record_spec.rb +134 -270
- data/spec/models/transcribe_utterance_spec.rb +236 -523
- data/spec/models/transcribe_webhook_spec.rb +749 -1918
- data/spec/models/unpark_spec.rb +14 -17
- data/spec/models/update_call_request_spec.rb +74 -143
- data/spec/models/update_call_request_status_spec.rb +24 -27
- data/spec/models/update_conference_participant_request_spec.rb +137 -268
- data/spec/models/update_conference_request_spec.rb +140 -321
- data/spec/models/update_conference_request_status_spec.rb +24 -27
- data/spec/models/webhook_spec.rb +68 -137
- data/spec/quickstart_spec.rb +5 -5
- data/spec/spec_helper.rb +92 -100
- data/spec/utils/request_verifier_spec.rb +70 -71
- data/spec/utils/signature_information_spec.rb +23 -23
- data/yarn.lock +38 -29
- metadata +27 -151
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
#
|
|
1
|
+
# #FreeClimb API
|
|
2
|
+
#
|
|
3
|
+
# FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
|
|
4
|
+
#
|
|
5
|
+
# The version of the OpenAPI document: 1.0.0
|
|
6
|
+
# Contact: support@freeclimb.com
|
|
7
|
+
# Generated by: https://openapi-generator.tech
|
|
8
|
+
# OpenAPI Generator version: 7.9.0
|
|
9
|
+
#
|
|
3
10
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Contact: support@freeclimb.com
|
|
8
|
-
Generated by: https://openapi-generator.tech
|
|
9
|
-
OpenAPI Generator version: 7.9.0
|
|
10
|
-
|
|
11
|
-
=end
|
|
12
|
-
|
|
13
|
-
require 'spec_helper'
|
|
14
|
-
require 'json'
|
|
15
|
-
require 'date'
|
|
11
|
+
require "spec_helper"
|
|
12
|
+
require "json"
|
|
13
|
+
require "date"
|
|
16
14
|
include Freeclimb
|
|
17
15
|
|
|
18
16
|
# Unit tests for Freeclimb::TFNCampaign
|
|
@@ -21,694 +19,347 @@ include Freeclimb
|
|
|
21
19
|
describe Freeclimb::TFNCampaign do
|
|
22
20
|
let(:instance) { Freeclimb::TFNCampaign.new }
|
|
23
21
|
|
|
24
|
-
describe
|
|
25
|
-
it
|
|
22
|
+
describe "test an instance of TFNCampaign" do
|
|
23
|
+
it "should create an instance of TFNCampaign" do
|
|
26
24
|
expect(instance).to be_instance_of(Freeclimb::TFNCampaign)
|
|
27
25
|
end
|
|
28
26
|
end
|
|
29
|
-
|
|
27
|
+
|
|
30
28
|
describe 'test attribute "account_id"' do
|
|
31
|
-
it
|
|
32
|
-
|
|
29
|
+
it "should work" do
|
|
33
30
|
instance.account_id = "TEST_STRING"
|
|
34
|
-
expect(instance.account_id).to eq("TEST_STRING")
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
31
|
+
expect(instance.account_id).to eq("TEST_STRING")
|
|
38
32
|
end
|
|
39
33
|
end
|
|
40
34
|
|
|
41
35
|
describe 'test attribute "campaign_id"' do
|
|
42
|
-
it
|
|
43
|
-
|
|
36
|
+
it "should work" do
|
|
44
37
|
instance.campaign_id = "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a"
|
|
45
|
-
expect(instance.campaign_id).to eq("cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a")
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
38
|
+
expect(instance.campaign_id).to eq("cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a")
|
|
50
39
|
end
|
|
51
40
|
end
|
|
52
41
|
|
|
53
42
|
describe 'test attribute "use_case"' do
|
|
54
|
-
it
|
|
55
|
-
|
|
43
|
+
it "should work" do
|
|
56
44
|
instance.use_case = "TEST_STRING"
|
|
57
|
-
expect(instance.use_case).to eq("TEST_STRING")
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
45
|
+
expect(instance.use_case).to eq("TEST_STRING")
|
|
61
46
|
end
|
|
62
47
|
end
|
|
63
48
|
|
|
64
|
-
|
|
65
49
|
describe 'test attribute "registration_status"' do
|
|
66
|
-
it
|
|
50
|
+
it "assigns value UNREGISTERED" do
|
|
67
51
|
instance.registration_status = Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED
|
|
68
|
-
expect(instance.registration_status).to eq(Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED)
|
|
52
|
+
expect(instance.registration_status).to eq(Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED)
|
|
69
53
|
end
|
|
70
|
-
it
|
|
54
|
+
it "assigns value INITIATED" do
|
|
71
55
|
instance.registration_status = Freeclimb::SMSTollFreeCampaignRegistrationStatus::INITIATED
|
|
72
|
-
expect(instance.registration_status).to eq(Freeclimb::SMSTollFreeCampaignRegistrationStatus::INITIATED)
|
|
56
|
+
expect(instance.registration_status).to eq(Freeclimb::SMSTollFreeCampaignRegistrationStatus::INITIATED)
|
|
73
57
|
end
|
|
74
|
-
it
|
|
58
|
+
it "assigns value PENDING" do
|
|
75
59
|
instance.registration_status = Freeclimb::SMSTollFreeCampaignRegistrationStatus::PENDING
|
|
76
|
-
expect(instance.registration_status).to eq(Freeclimb::SMSTollFreeCampaignRegistrationStatus::PENDING)
|
|
60
|
+
expect(instance.registration_status).to eq(Freeclimb::SMSTollFreeCampaignRegistrationStatus::PENDING)
|
|
77
61
|
end
|
|
78
|
-
it
|
|
62
|
+
it "assigns value DECLINED" do
|
|
79
63
|
instance.registration_status = Freeclimb::SMSTollFreeCampaignRegistrationStatus::DECLINED
|
|
80
|
-
expect(instance.registration_status).to eq(Freeclimb::SMSTollFreeCampaignRegistrationStatus::DECLINED)
|
|
64
|
+
expect(instance.registration_status).to eq(Freeclimb::SMSTollFreeCampaignRegistrationStatus::DECLINED)
|
|
81
65
|
end
|
|
82
|
-
it
|
|
66
|
+
it "assigns value REGISTERED" do
|
|
83
67
|
instance.registration_status = Freeclimb::SMSTollFreeCampaignRegistrationStatus::REGISTERED
|
|
84
|
-
expect(instance.registration_status).to eq(Freeclimb::SMSTollFreeCampaignRegistrationStatus::REGISTERED)
|
|
68
|
+
expect(instance.registration_status).to eq(Freeclimb::SMSTollFreeCampaignRegistrationStatus::REGISTERED)
|
|
85
69
|
end
|
|
86
70
|
end
|
|
87
71
|
describe 'test attribute "date_created"' do
|
|
88
|
-
it
|
|
89
|
-
|
|
72
|
+
it "should work" do
|
|
90
73
|
instance.date_created = "TEST_STRING"
|
|
91
|
-
expect(instance.date_created).to eq("TEST_STRING")
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
74
|
+
expect(instance.date_created).to eq("TEST_STRING")
|
|
95
75
|
end
|
|
96
76
|
end
|
|
97
77
|
|
|
98
78
|
describe 'test attribute "date_updated"' do
|
|
99
|
-
it
|
|
100
|
-
|
|
79
|
+
it "should work" do
|
|
101
80
|
instance.date_updated = "TEST_STRING"
|
|
102
|
-
expect(instance.date_updated).to eq("TEST_STRING")
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
81
|
+
expect(instance.date_updated).to eq("TEST_STRING")
|
|
106
82
|
end
|
|
107
83
|
end
|
|
108
84
|
|
|
109
85
|
describe 'test attribute "date_created_iso"' do
|
|
110
|
-
it
|
|
111
|
-
|
|
86
|
+
it "should work" do
|
|
112
87
|
instance.date_created_iso = "TEST_STRING"
|
|
113
|
-
expect(instance.date_created_iso).to eq("TEST_STRING")
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
88
|
+
expect(instance.date_created_iso).to eq("TEST_STRING")
|
|
117
89
|
end
|
|
118
90
|
end
|
|
119
91
|
|
|
120
92
|
describe 'test attribute "date_updated_iso"' do
|
|
121
|
-
it
|
|
122
|
-
|
|
93
|
+
it "should work" do
|
|
123
94
|
instance.date_updated_iso = "TEST_STRING"
|
|
124
|
-
expect(instance.date_updated_iso).to eq("TEST_STRING")
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
95
|
+
expect(instance.date_updated_iso).to eq("TEST_STRING")
|
|
128
96
|
end
|
|
129
97
|
end
|
|
130
98
|
|
|
131
99
|
describe 'test attribute "revision"' do
|
|
132
|
-
it
|
|
133
|
-
|
|
134
|
-
|
|
100
|
+
it "should work" do
|
|
135
101
|
instance.revision = 1
|
|
136
102
|
expect(instance.revision).to eq(1)
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
103
|
end
|
|
141
104
|
end
|
|
142
105
|
|
|
143
106
|
describe 'test method "initialize"' do
|
|
144
|
-
it
|
|
145
|
-
expect {
|
|
146
|
-
|
|
147
|
-
account_id: "TS",
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
campaign_id: "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a",
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
use_case: "TS",
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
date_created: "TS",
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
date_updated: "TS",
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
date_created_iso: "TS",
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
date_updated_iso: "TS",
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
revision: 1,
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
)}.not_to raise_error()
|
|
192
|
-
end
|
|
193
|
-
it 'fails to initialize with input argument that is not a hash in Freeclimb::TFNCampaign' do
|
|
194
|
-
expect { instance = Freeclimb::TFNCampaign.new(
|
|
195
|
-
|
|
196
|
-
account_id: "TS",
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
campaign_id: "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a",
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
use_case: "TS",
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
date_created: "TS",
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
date_updated: "TS",
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
date_created_iso: "TS",
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
date_updated_iso: "TS",
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
revision: 1,
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
invalid_attribute: true
|
|
241
|
-
)}.to raise_error(ArgumentError)
|
|
242
|
-
end
|
|
243
|
-
it 'fails to initialize with invalid attribute' do
|
|
244
|
-
expect { instance = Freeclimb::TFNCampaign.new(
|
|
245
|
-
|
|
246
|
-
account_id: "TS",
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
campaign_id: "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a",
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
use_case: "TS",
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
date_created: "TS",
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
date_updated: "TS",
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
date_created_iso: "TS",
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
date_updated_iso: "TS",
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
revision: 1,
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
invalid_attribute: true
|
|
291
|
-
)}.to raise_error(ArgumentError)
|
|
292
|
-
end
|
|
293
|
-
end
|
|
294
|
-
|
|
295
|
-
describe 'test method "valid"' do
|
|
296
|
-
it 'checks if properties are valid' do
|
|
297
|
-
instance = Freeclimb::TFNCampaign.new(
|
|
298
|
-
|
|
107
|
+
it "properly initializes with values" do
|
|
108
|
+
expect {
|
|
109
|
+
Freeclimb::TFNCampaign.new(
|
|
299
110
|
account_id: "TS",
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
111
|
+
|
|
304
112
|
campaign_id: "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a",
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
113
|
+
|
|
310
114
|
use_case: "TS",
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
115
|
+
|
|
315
116
|
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
117
|
+
|
|
320
118
|
date_created: "TS",
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
119
|
+
|
|
325
120
|
date_updated: "TS",
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
121
|
+
|
|
330
122
|
date_created_iso: "TS",
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
date_updated_iso: "TS",
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
revision: 1,
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
)
|
|
344
|
-
expect(instance.valid?).to eq(true)
|
|
345
|
-
end
|
|
346
123
|
|
|
124
|
+
date_updated_iso: "TS",
|
|
347
125
|
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
)
|
|
352
|
-
expect(instance.valid?).to eq(false)
|
|
126
|
+
revision: 1
|
|
127
|
+
)
|
|
128
|
+
}.not_to raise_error
|
|
353
129
|
end
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
describe 'test method "eql?"' do
|
|
358
|
-
it 'checks if objects are equal' do
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
instance_1 = Freeclimb::TFNCampaign.new(
|
|
369
|
-
|
|
130
|
+
it "fails to initialize with input argument that is not a hash in Freeclimb::TFNCampaign" do
|
|
131
|
+
expect {
|
|
132
|
+
Freeclimb::TFNCampaign.new(
|
|
370
133
|
account_id: "TS",
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
134
|
+
|
|
375
135
|
campaign_id: "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a",
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
136
|
+
|
|
381
137
|
use_case: "TS",
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
138
|
+
|
|
388
139
|
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
|
389
|
-
|
|
390
|
-
|
|
140
|
+
|
|
391
141
|
date_created: "TS",
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
142
|
+
|
|
396
143
|
date_updated: "TS",
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
144
|
+
|
|
401
145
|
date_created_iso: "TS",
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
146
|
+
|
|
406
147
|
date_updated_iso: "TS",
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
148
|
+
|
|
410
149
|
revision: 1,
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
)
|
|
415
|
-
|
|
416
|
-
|
|
150
|
+
|
|
151
|
+
invalid_attribute: true
|
|
152
|
+
)
|
|
153
|
+
}.to raise_error(ArgumentError)
|
|
154
|
+
end
|
|
155
|
+
it "fails to initialize with invalid attribute" do
|
|
156
|
+
expect {
|
|
157
|
+
Freeclimb::TFNCampaign.new(
|
|
417
158
|
account_id: "TS",
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
159
|
+
|
|
422
160
|
campaign_id: "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a",
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
161
|
+
|
|
428
162
|
use_case: "TS",
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
163
|
+
|
|
435
164
|
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
|
436
|
-
|
|
437
|
-
|
|
165
|
+
|
|
438
166
|
date_created: "TS",
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
167
|
+
|
|
443
168
|
date_updated: "TS",
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
169
|
+
|
|
448
170
|
date_created_iso: "TS",
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
171
|
+
|
|
453
172
|
date_updated_iso: "TS",
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
173
|
+
|
|
459
174
|
revision: 1,
|
|
460
|
-
|
|
175
|
+
|
|
176
|
+
invalid_attribute: true
|
|
177
|
+
)
|
|
178
|
+
}.to raise_error(ArgumentError)
|
|
179
|
+
end
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
describe 'test method "valid"' do
|
|
183
|
+
it "checks if properties are valid" do
|
|
184
|
+
instance = Freeclimb::TFNCampaign.new(
|
|
185
|
+
account_id: "TS",
|
|
186
|
+
|
|
187
|
+
campaign_id: "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a",
|
|
188
|
+
|
|
189
|
+
use_case: "TS",
|
|
190
|
+
|
|
191
|
+
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
|
192
|
+
|
|
193
|
+
date_created: "TS",
|
|
194
|
+
|
|
195
|
+
date_updated: "TS",
|
|
196
|
+
|
|
197
|
+
date_created_iso: "TS",
|
|
198
|
+
|
|
199
|
+
date_updated_iso: "TS",
|
|
200
|
+
|
|
201
|
+
revision: 1
|
|
202
|
+
)
|
|
203
|
+
expect(instance.valid?).to eq(true)
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
skip "checks if properties are invalid" do
|
|
207
|
+
instance = Freeclimb::TFNCampaign.new
|
|
208
|
+
|
|
209
|
+
expect(instance.valid?).to eq(false)
|
|
210
|
+
end
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
describe 'test method "eql?"' do
|
|
214
|
+
it "checks if objects are equal" do
|
|
215
|
+
instance_1 = Freeclimb::TFNCampaign.new(
|
|
216
|
+
account_id: "TS",
|
|
217
|
+
|
|
218
|
+
campaign_id: "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a",
|
|
219
|
+
|
|
220
|
+
use_case: "TS",
|
|
221
|
+
|
|
222
|
+
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
|
223
|
+
|
|
224
|
+
date_created: "TS",
|
|
225
|
+
|
|
226
|
+
date_updated: "TS",
|
|
227
|
+
|
|
228
|
+
date_created_iso: "TS",
|
|
229
|
+
|
|
230
|
+
date_updated_iso: "TS",
|
|
231
|
+
|
|
232
|
+
revision: 1
|
|
233
|
+
)
|
|
234
|
+
instance_2 = Freeclimb::TFNCampaign.new(
|
|
235
|
+
account_id: "TS",
|
|
236
|
+
|
|
237
|
+
campaign_id: "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a",
|
|
238
|
+
|
|
239
|
+
use_case: "TS",
|
|
240
|
+
|
|
241
|
+
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
|
242
|
+
|
|
243
|
+
date_created: "TS",
|
|
244
|
+
|
|
245
|
+
date_updated: "TS",
|
|
246
|
+
|
|
247
|
+
date_created_iso: "TS",
|
|
248
|
+
|
|
249
|
+
date_updated_iso: "TS",
|
|
250
|
+
|
|
251
|
+
revision: 1
|
|
461
252
|
)
|
|
462
253
|
expect(instance_1.eql?(instance_2)).to eq(true)
|
|
463
254
|
end
|
|
464
|
-
|
|
465
|
-
it
|
|
255
|
+
|
|
256
|
+
it "checks if objects are not equal" do
|
|
466
257
|
instance_1 = Freeclimb::TFNCampaign.new(
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
date_created: "TS",
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
date_updated: "TS",
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
date_created_iso: "TS",
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
date_updated_iso: "TS",
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
revision: 2,
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
258
|
+
account_id: "TS",
|
|
259
|
+
|
|
260
|
+
campaign_id: "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a",
|
|
261
|
+
|
|
262
|
+
use_case: "TS",
|
|
263
|
+
|
|
264
|
+
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
|
265
|
+
|
|
266
|
+
date_created: "TS",
|
|
267
|
+
|
|
268
|
+
date_updated: "TS",
|
|
269
|
+
|
|
270
|
+
date_created_iso: "TS",
|
|
271
|
+
|
|
272
|
+
date_updated_iso: "TS",
|
|
273
|
+
|
|
274
|
+
revision: 2
|
|
512
275
|
)
|
|
513
276
|
instance_2 = Freeclimb::TFNCampaign.new(
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
registration_status: nil,
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
date_created: "ST",
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
date_updated: "ST",
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
date_created_iso: "ST",
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
date_updated_iso: "ST",
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
revision: 1,
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
277
|
+
account_id: "ST",
|
|
278
|
+
|
|
279
|
+
campaign_id: "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a1",
|
|
280
|
+
|
|
281
|
+
use_case: "ST",
|
|
282
|
+
|
|
283
|
+
registration_status: nil,
|
|
284
|
+
|
|
285
|
+
date_created: "ST",
|
|
286
|
+
|
|
287
|
+
date_updated: "ST",
|
|
288
|
+
|
|
289
|
+
date_created_iso: "ST",
|
|
290
|
+
|
|
291
|
+
date_updated_iso: "ST",
|
|
292
|
+
|
|
293
|
+
revision: 1
|
|
559
294
|
)
|
|
560
295
|
expect(instance_1.eql?(instance_2)).to eq(false)
|
|
561
296
|
end
|
|
562
297
|
end
|
|
563
|
-
|
|
298
|
+
|
|
564
299
|
describe 'test method "hash"' do
|
|
565
|
-
it
|
|
300
|
+
it "calculates hash code" do
|
|
566
301
|
instance = Freeclimb::TFNCampaign.new(
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
date_created: "TS",
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
date_updated: "TS",
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
date_created_iso: "TS",
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
date_updated_iso: "TS",
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
revision: 1,
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
)
|
|
302
|
+
account_id: "TS",
|
|
303
|
+
|
|
304
|
+
campaign_id: "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a",
|
|
305
|
+
|
|
306
|
+
use_case: "TS",
|
|
307
|
+
|
|
308
|
+
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
|
309
|
+
|
|
310
|
+
date_created: "TS",
|
|
311
|
+
|
|
312
|
+
date_updated: "TS",
|
|
313
|
+
|
|
314
|
+
date_created_iso: "TS",
|
|
315
|
+
|
|
316
|
+
date_updated_iso: "TS",
|
|
317
|
+
|
|
318
|
+
revision: 1
|
|
319
|
+
)
|
|
613
320
|
expect(instance.hash).to be_a_kind_of(Integer)
|
|
614
321
|
end
|
|
615
322
|
end
|
|
616
323
|
|
|
617
324
|
describe 'test method "build_from_hash"' do
|
|
618
|
-
it
|
|
325
|
+
it "builds equivalent model from hash code" do
|
|
619
326
|
instance_1 = Freeclimb::TFNCampaign.new(
|
|
620
|
-
|
|
621
327
|
account_id: "TS",
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
328
|
+
|
|
626
329
|
campaign_id: "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a",
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
330
|
+
|
|
632
331
|
use_case: "TS",
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
332
|
+
|
|
637
333
|
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
334
|
+
|
|
642
335
|
date_created: "TS",
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
336
|
+
|
|
647
337
|
date_updated: "TS",
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
338
|
+
|
|
652
339
|
date_created_iso: "TS",
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
340
|
+
|
|
657
341
|
date_updated_iso: "TS",
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
revision: 1,
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
342
|
+
|
|
343
|
+
revision: 1
|
|
665
344
|
)
|
|
666
345
|
instance_2 = Freeclimb::TFNCampaign.new(
|
|
667
|
-
|
|
668
346
|
account_id: "TS",
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
347
|
+
|
|
673
348
|
campaign_id: "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a",
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
349
|
+
|
|
679
350
|
use_case: "TS",
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
351
|
+
|
|
684
352
|
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
353
|
+
|
|
689
354
|
date_created: "TS",
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
355
|
+
|
|
694
356
|
date_updated: "TS",
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
357
|
+
|
|
699
358
|
date_created_iso: "TS",
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
359
|
+
|
|
704
360
|
date_updated_iso: "TS",
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
revision: 1,
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
361
|
+
|
|
362
|
+
revision: 1
|
|
712
363
|
)
|
|
713
364
|
|
|
714
365
|
expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
|
|
@@ -717,303 +368,143 @@ describe Freeclimb::TFNCampaign do
|
|
|
717
368
|
|
|
718
369
|
describe 'test method "_deserialize"' do
|
|
719
370
|
instance = Freeclimb::TFNCampaign.new(
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
date_created: "TS",
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
date_updated: "TS",
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
date_created_iso: "TS",
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
date_updated_iso: "TS",
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
revision: 1,
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
371
|
+
account_id: "TS",
|
|
372
|
+
|
|
373
|
+
campaign_id: "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a",
|
|
374
|
+
|
|
375
|
+
use_case: "TS",
|
|
376
|
+
|
|
377
|
+
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
|
378
|
+
|
|
379
|
+
date_created: "TS",
|
|
380
|
+
|
|
381
|
+
date_updated: "TS",
|
|
382
|
+
|
|
383
|
+
date_created_iso: "TS",
|
|
384
|
+
|
|
385
|
+
date_updated_iso: "TS",
|
|
386
|
+
|
|
387
|
+
revision: 1
|
|
765
388
|
)
|
|
766
|
-
it
|
|
389
|
+
it "deserializes the data of account_id" do
|
|
767
390
|
expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String)
|
|
768
391
|
end
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
it 'deserializes the data of campaign_id' do
|
|
392
|
+
|
|
393
|
+
it "deserializes the data of campaign_id" do
|
|
772
394
|
expect(instance._deserialize("String", instance.campaign_id)).to be_a_kind_of(String)
|
|
773
395
|
end
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
it 'deserializes the data of use_case' do
|
|
396
|
+
|
|
397
|
+
it "deserializes the data of use_case" do
|
|
777
398
|
expect(instance._deserialize("String", instance.use_case)).to be_a_kind_of(String)
|
|
778
399
|
end
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
it 'deserializes the data of date_created' do
|
|
400
|
+
|
|
401
|
+
it "deserializes the data of date_created" do
|
|
784
402
|
expect(instance._deserialize("String", instance.date_created)).to be_a_kind_of(String)
|
|
785
403
|
end
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
it 'deserializes the data of date_updated' do
|
|
404
|
+
|
|
405
|
+
it "deserializes the data of date_updated" do
|
|
789
406
|
expect(instance._deserialize("String", instance.date_updated)).to be_a_kind_of(String)
|
|
790
407
|
end
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
it 'deserializes the data of date_created_iso' do
|
|
408
|
+
|
|
409
|
+
it "deserializes the data of date_created_iso" do
|
|
794
410
|
expect(instance._deserialize("String", instance.date_created_iso)).to be_a_kind_of(String)
|
|
795
411
|
end
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
it 'deserializes the data of date_updated_iso' do
|
|
412
|
+
|
|
413
|
+
it "deserializes the data of date_updated_iso" do
|
|
799
414
|
expect(instance._deserialize("String", instance.date_updated_iso)).to be_a_kind_of(String)
|
|
800
415
|
end
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
it 'deserializes the data of revision' do
|
|
416
|
+
|
|
417
|
+
it "deserializes the data of revision" do
|
|
804
418
|
expect(instance._deserialize("Integer", instance.revision)).to be_a_kind_of(Integer)
|
|
805
419
|
end
|
|
806
|
-
|
|
807
|
-
|
|
808
420
|
end
|
|
809
421
|
|
|
810
422
|
describe 'test method "to_s"' do
|
|
811
|
-
it
|
|
423
|
+
it "returns the string representation of the object" do
|
|
812
424
|
instance = Freeclimb::TFNCampaign.new(
|
|
813
|
-
|
|
814
425
|
account_id: "TS",
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
426
|
+
|
|
819
427
|
campaign_id: "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a",
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
428
|
+
|
|
825
429
|
use_case: "TS",
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
430
|
+
|
|
830
431
|
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
432
|
+
|
|
835
433
|
date_created: "TS",
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
434
|
+
|
|
840
435
|
date_updated: "TS",
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
436
|
+
|
|
845
437
|
date_created_iso: "TS",
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
438
|
+
|
|
850
439
|
date_updated_iso: "TS",
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
revision: 1,
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
440
|
+
|
|
441
|
+
revision: 1
|
|
858
442
|
)
|
|
859
443
|
expect(instance.to_s).to eq(instance.to_hash.to_s)
|
|
860
444
|
end
|
|
861
445
|
end
|
|
862
446
|
|
|
863
447
|
describe 'test method "to_hash"' do
|
|
864
|
-
it
|
|
448
|
+
it "returns the object in the form of hash" do
|
|
865
449
|
instance = Freeclimb::TFNCampaign.new(
|
|
866
|
-
|
|
867
450
|
account_id: "TS",
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
451
|
+
|
|
872
452
|
campaign_id: "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a",
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
453
|
+
|
|
878
454
|
use_case: "TS",
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
455
|
+
|
|
883
456
|
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
457
|
+
|
|
888
458
|
date_created: "TS",
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
459
|
+
|
|
893
460
|
date_updated: "TS",
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
461
|
+
|
|
898
462
|
date_created_iso: "TS",
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
463
|
+
|
|
903
464
|
date_updated_iso: "TS",
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
revision: 1,
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
465
|
+
|
|
466
|
+
revision: 1
|
|
911
467
|
)
|
|
912
468
|
expect(instance.to_hash).to be_a_kind_of(Hash)
|
|
913
469
|
end
|
|
914
|
-
it
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
470
|
+
it "creates equal hash for two equal objects" do
|
|
924
471
|
instance_1 = Freeclimb::TFNCampaign.new(
|
|
925
|
-
|
|
926
472
|
account_id: "TS",
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
473
|
+
|
|
931
474
|
campaign_id: "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a",
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
475
|
+
|
|
937
476
|
use_case: "TS",
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
477
|
+
|
|
942
478
|
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
479
|
+
|
|
947
480
|
date_created: "TS",
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
481
|
+
|
|
952
482
|
date_updated: "TS",
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
483
|
+
|
|
957
484
|
date_created_iso: "TS",
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
485
|
+
|
|
962
486
|
date_updated_iso: "TS",
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
revision: 1,
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
487
|
+
|
|
488
|
+
revision: 1
|
|
970
489
|
)
|
|
971
490
|
instance_2 = Freeclimb::TFNCampaign.new(
|
|
972
|
-
|
|
973
491
|
account_id: "TS",
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
492
|
+
|
|
978
493
|
campaign_id: "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a",
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
494
|
+
|
|
984
495
|
use_case: "TS",
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
496
|
+
|
|
989
497
|
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
498
|
+
|
|
994
499
|
date_created: "TS",
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
500
|
+
|
|
999
501
|
date_updated: "TS",
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
502
|
+
|
|
1004
503
|
date_created_iso: "TS",
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
504
|
+
|
|
1009
505
|
date_updated_iso: "TS",
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
revision: 1,
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
506
|
+
|
|
507
|
+
revision: 1
|
|
1017
508
|
)
|
|
1018
509
|
expect(instance_1.to_hash).to eq(instance_2.to_hash)
|
|
1019
510
|
end
|
|
@@ -1021,69 +512,50 @@ describe Freeclimb::TFNCampaign do
|
|
|
1021
512
|
|
|
1022
513
|
describe 'test method "_to_hash"' do
|
|
1023
514
|
instance = Freeclimb::TFNCampaign.new(
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
date_updated: "TS",
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
date_created_iso: "TS",
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
date_updated_iso: "TS",
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
revision: 1,
|
|
1058
|
-
|
|
1059
|
-
)
|
|
1060
|
-
it 'returns account_id in the form of hash' do
|
|
515
|
+
account_id: "TS",
|
|
516
|
+
|
|
517
|
+
campaign_id: "cmptfn_387ec3f6e03b340553f35f29c8f118cdf3eae08a",
|
|
518
|
+
|
|
519
|
+
use_case: "TS",
|
|
520
|
+
|
|
521
|
+
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
|
522
|
+
|
|
523
|
+
date_created: "TS",
|
|
524
|
+
|
|
525
|
+
date_updated: "TS",
|
|
526
|
+
|
|
527
|
+
date_created_iso: "TS",
|
|
528
|
+
|
|
529
|
+
date_updated_iso: "TS",
|
|
530
|
+
|
|
531
|
+
revision: 1
|
|
532
|
+
)
|
|
533
|
+
it "returns account_id in the form of hash" do
|
|
1061
534
|
expect(instance._to_hash(instance.account_id)).to eq(instance.account_id)
|
|
1062
535
|
end
|
|
1063
|
-
it
|
|
536
|
+
it "returns campaign_id in the form of hash" do
|
|
1064
537
|
expect(instance._to_hash(instance.campaign_id)).to eq(instance.campaign_id)
|
|
1065
538
|
end
|
|
1066
|
-
it
|
|
539
|
+
it "returns use_case in the form of hash" do
|
|
1067
540
|
expect(instance._to_hash(instance.use_case)).to eq(instance.use_case)
|
|
1068
541
|
end
|
|
1069
|
-
it
|
|
542
|
+
it "returns registration_status in the form of hash" do
|
|
1070
543
|
expect(instance._to_hash(instance.registration_status)).to eq(instance.registration_status)
|
|
1071
544
|
end
|
|
1072
|
-
it
|
|
545
|
+
it "returns date_created in the form of hash" do
|
|
1073
546
|
expect(instance._to_hash(instance.date_created)).to eq(instance.date_created)
|
|
1074
547
|
end
|
|
1075
|
-
it
|
|
548
|
+
it "returns date_updated in the form of hash" do
|
|
1076
549
|
expect(instance._to_hash(instance.date_updated)).to eq(instance.date_updated)
|
|
1077
550
|
end
|
|
1078
|
-
it
|
|
551
|
+
it "returns date_created_iso in the form of hash" do
|
|
1079
552
|
expect(instance._to_hash(instance.date_created_iso)).to eq(instance.date_created_iso)
|
|
1080
553
|
end
|
|
1081
|
-
it
|
|
554
|
+
it "returns date_updated_iso in the form of hash" do
|
|
1082
555
|
expect(instance._to_hash(instance.date_updated_iso)).to eq(instance.date_updated_iso)
|
|
1083
556
|
end
|
|
1084
|
-
it
|
|
557
|
+
it "returns revision in the form of hash" do
|
|
1085
558
|
expect(instance._to_hash(instance.revision)).to eq(instance.revision)
|
|
1086
559
|
end
|
|
1087
560
|
end
|
|
1088
|
-
|
|
1089
561
|
end
|