freeclimb 5.1.0 → 5.2.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.
Files changed (308) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -0
  3. data/Gemfile +4 -5
  4. data/Gemfile.lock +18 -5
  5. data/README.md +4 -4
  6. data/Rakefile +1 -1
  7. data/docs/CreateConferenceRequest.md +1 -1
  8. data/docs/DefaultApi.md +1 -1
  9. data/freeclimb.gemspec +21 -26
  10. data/lib/freeclimb/api/default_api.rb +878 -878
  11. data/lib/freeclimb/api_client.rb +78 -83
  12. data/lib/freeclimb/api_error.rb +17 -19
  13. data/lib/freeclimb/configuration.rb +27 -29
  14. data/lib/freeclimb/models/account_request.rb +36 -41
  15. data/lib/freeclimb/models/account_result.rb +88 -92
  16. data/lib/freeclimb/models/account_status.rb +12 -14
  17. data/lib/freeclimb/models/account_type.rb +12 -14
  18. data/lib/freeclimb/models/add_to_conference.rb +81 -85
  19. data/lib/freeclimb/models/add_to_conference_notification_webhook.rb +99 -103
  20. data/lib/freeclimb/models/add_to_queue_notification_webhook.rb +78 -82
  21. data/lib/freeclimb/models/answered_by.rb +12 -14
  22. data/lib/freeclimb/models/application_list.rb +74 -78
  23. data/lib/freeclimb/models/application_request.rb +66 -70
  24. data/lib/freeclimb/models/application_result.rb +100 -104
  25. data/lib/freeclimb/models/available_number.rb +66 -70
  26. data/lib/freeclimb/models/available_number_list.rb +74 -78
  27. data/lib/freeclimb/models/barge_in_reason.rb +12 -14
  28. data/lib/freeclimb/models/buy_incoming_number_request.rb +41 -45
  29. data/lib/freeclimb/models/call_control_webhook.rb +56 -61
  30. data/lib/freeclimb/models/call_direction.rb +12 -14
  31. data/lib/freeclimb/models/call_ended_reason.rb +12 -14
  32. data/lib/freeclimb/models/call_list.rb +74 -78
  33. data/lib/freeclimb/models/call_result.rb +142 -146
  34. data/lib/freeclimb/models/call_status.rb +12 -14
  35. data/lib/freeclimb/models/call_status_webhook.rb +84 -88
  36. data/lib/freeclimb/models/capabilities.rb +55 -59
  37. data/lib/freeclimb/models/completion_request.rb +32 -36
  38. data/lib/freeclimb/models/completion_result.rb +36 -40
  39. data/lib/freeclimb/models/completion_result_status.rb +12 -14
  40. data/lib/freeclimb/models/conference_list.rb +74 -78
  41. data/lib/freeclimb/models/conference_participant_list.rb +74 -78
  42. data/lib/freeclimb/models/conference_participant_result.rb +88 -92
  43. data/lib/freeclimb/models/conference_recording_status_webhook.rb +99 -103
  44. data/lib/freeclimb/models/conference_result.rb +106 -110
  45. data/lib/freeclimb/models/conference_status.rb +12 -14
  46. data/lib/freeclimb/models/conference_status_webhook.rb +102 -106
  47. data/lib/freeclimb/models/create_conference.rb +60 -63
  48. data/lib/freeclimb/models/create_conference_request.rb +55 -54
  49. data/lib/freeclimb/models/create_conference_webhook.rb +102 -106
  50. data/lib/freeclimb/models/create_web_rtc_token.rb +42 -46
  51. data/lib/freeclimb/models/dequeue.rb +28 -33
  52. data/lib/freeclimb/models/dequeue_webhook.rb +89 -93
  53. data/lib/freeclimb/models/enqueue.rb +48 -52
  54. data/lib/freeclimb/models/filter_logs_request.rb +31 -35
  55. data/lib/freeclimb/models/get_digits.rb +73 -77
  56. data/lib/freeclimb/models/get_digits_reason.rb +12 -14
  57. data/lib/freeclimb/models/get_digits_webhook.rb +93 -97
  58. data/lib/freeclimb/models/get_speech.rb +94 -97
  59. data/lib/freeclimb/models/get_speech_reason.rb +12 -14
  60. data/lib/freeclimb/models/get_speech_webhook.rb +118 -122
  61. data/lib/freeclimb/models/grammar_file_built_in.rb +12 -14
  62. data/lib/freeclimb/models/grammar_type.rb +12 -14
  63. data/lib/freeclimb/models/hangup.rb +34 -39
  64. data/lib/freeclimb/models/if_machine.rb +12 -14
  65. data/lib/freeclimb/models/inbound_call_webhook.rb +85 -89
  66. data/lib/freeclimb/models/incoming_number_list.rb +74 -78
  67. data/lib/freeclimb/models/incoming_number_request.rb +41 -45
  68. data/lib/freeclimb/models/incoming_number_result.rb +122 -126
  69. data/lib/freeclimb/models/language.rb +12 -14
  70. data/lib/freeclimb/models/leave_conference_webhook.rb +79 -83
  71. data/lib/freeclimb/models/log_level.rb +12 -14
  72. data/lib/freeclimb/models/log_list.rb +74 -78
  73. data/lib/freeclimb/models/log_result.rb +67 -71
  74. data/lib/freeclimb/models/machine_detected_webhook.rb +89 -93
  75. data/lib/freeclimb/models/machine_type.rb +12 -14
  76. data/lib/freeclimb/models/make_call_request.rb +77 -81
  77. data/lib/freeclimb/models/message_delivery_webhook.rb +81 -86
  78. data/lib/freeclimb/models/message_direction.rb +12 -14
  79. data/lib/freeclimb/models/message_request.rb +72 -75
  80. data/lib/freeclimb/models/message_result.rb +135 -139
  81. data/lib/freeclimb/models/message_status.rb +12 -14
  82. data/lib/freeclimb/models/message_status_webhook.rb +86 -90
  83. data/lib/freeclimb/models/messages_list.rb +74 -78
  84. data/lib/freeclimb/models/mutable_resource_model.rb +46 -51
  85. data/lib/freeclimb/models/out_dial.rb +80 -84
  86. data/lib/freeclimb/models/out_dial_api_connect_webhook.rb +84 -88
  87. data/lib/freeclimb/models/out_dial_connect_webhook.rb +84 -88
  88. data/lib/freeclimb/models/out_dial_start_webhook.rb +90 -94
  89. data/lib/freeclimb/models/pagination_model.rb +67 -71
  90. data/lib/freeclimb/models/park.rb +44 -48
  91. data/lib/freeclimb/models/pause.rb +33 -37
  92. data/lib/freeclimb/models/percl_command.rb +36 -40
  93. data/lib/freeclimb/models/percl_script.rb +32 -36
  94. data/lib/freeclimb/models/play.rb +44 -48
  95. data/lib/freeclimb/models/play_beep.rb +12 -14
  96. data/lib/freeclimb/models/play_early_media.rb +33 -37
  97. data/lib/freeclimb/models/queue_list.rb +74 -78
  98. data/lib/freeclimb/models/queue_member.rb +55 -59
  99. data/lib/freeclimb/models/queue_member_list.rb +74 -78
  100. data/lib/freeclimb/models/queue_request.rb +37 -42
  101. data/lib/freeclimb/models/queue_result.rb +88 -92
  102. data/lib/freeclimb/models/queue_result_status.rb +12 -14
  103. data/lib/freeclimb/models/queue_wait_webhook.rb +94 -98
  104. data/lib/freeclimb/models/record_utterance.rb +63 -67
  105. data/lib/freeclimb/models/record_utterance_term_reason.rb +12 -14
  106. data/lib/freeclimb/models/record_webhook.rb +119 -123
  107. data/lib/freeclimb/models/recording_list.rb +74 -78
  108. data/lib/freeclimb/models/recording_result.rb +76 -80
  109. data/lib/freeclimb/models/redirect.rb +33 -37
  110. data/lib/freeclimb/models/redirect_webhook.rb +84 -88
  111. data/lib/freeclimb/models/reject.rb +34 -39
  112. data/lib/freeclimb/models/remove_from_conference.rb +28 -33
  113. data/lib/freeclimb/models/remove_from_queue_notification_webhook.rb +89 -93
  114. data/lib/freeclimb/models/request_type.rb +12 -14
  115. data/lib/freeclimb/models/say.rb +49 -53
  116. data/lib/freeclimb/models/send_digits.rb +43 -47
  117. data/lib/freeclimb/models/set_dtmf_pass_through.rb +34 -39
  118. data/lib/freeclimb/models/set_listen.rb +34 -39
  119. data/lib/freeclimb/models/set_talk.rb +34 -39
  120. data/lib/freeclimb/models/sms.rb +48 -52
  121. data/lib/freeclimb/models/sms_ten_dlc_brand.rb +187 -190
  122. data/lib/freeclimb/models/sms_ten_dlc_brand_alt_business_id_type.rb +12 -14
  123. data/lib/freeclimb/models/sms_ten_dlc_brand_entity_type.rb +12 -14
  124. data/lib/freeclimb/models/sms_ten_dlc_brand_identity_status.rb +12 -14
  125. data/lib/freeclimb/models/sms_ten_dlc_brand_relationship.rb +12 -14
  126. data/lib/freeclimb/models/sms_ten_dlc_brand_stock_exchange.rb +12 -14
  127. data/lib/freeclimb/models/sms_ten_dlc_brands_list_result.rb +74 -78
  128. data/lib/freeclimb/models/sms_ten_dlc_campaign.rb +226 -229
  129. data/lib/freeclimb/models/sms_ten_dlc_campaign_status.rb +12 -14
  130. data/lib/freeclimb/models/sms_ten_dlc_campaigns_list_result.rb +74 -78
  131. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb +186 -189
  132. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_brand.rb +84 -87
  133. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_status.rb +12 -14
  134. data/lib/freeclimb/models/sms_ten_dlc_partner_campaigns_list_result.rb +74 -78
  135. data/lib/freeclimb/models/sms_toll_free_campaign.rb +61 -64
  136. data/lib/freeclimb/models/sms_toll_free_campaign_registration_status.rb +12 -14
  137. data/lib/freeclimb/models/sms_toll_free_campaigns_list_result.rb +74 -78
  138. data/lib/freeclimb/models/start_record_call.rb +28 -33
  139. data/lib/freeclimb/models/terminate_conference.rb +28 -33
  140. data/lib/freeclimb/models/tfn.rb +31 -35
  141. data/lib/freeclimb/models/tfn_campaign.rb +76 -79
  142. data/lib/freeclimb/models/transcribe_reason.rb +12 -14
  143. data/lib/freeclimb/models/transcribe_term_reason.rb +12 -14
  144. data/lib/freeclimb/models/transcribe_utterance.rb +61 -65
  145. data/lib/freeclimb/models/transcribe_utterance_record.rb +43 -47
  146. data/lib/freeclimb/models/transcribe_webhook.rb +150 -154
  147. data/lib/freeclimb/models/unpark.rb +28 -33
  148. data/lib/freeclimb/models/update_call_request.rb +31 -35
  149. data/lib/freeclimb/models/update_call_request_status.rb +12 -14
  150. data/lib/freeclimb/models/update_conference_participant_request.rb +41 -46
  151. data/lib/freeclimb/models/update_conference_request.rb +41 -45
  152. data/lib/freeclimb/models/update_conference_request_status.rb +12 -14
  153. data/lib/freeclimb/models/webhook.rb +32 -37
  154. data/lib/freeclimb/utils/request_verifier.rb +14 -14
  155. data/lib/freeclimb/utils/signature_information.rb +8 -8
  156. data/lib/freeclimb/version.rb +10 -12
  157. data/lib/freeclimb.rb +156 -158
  158. data/openapi.json +3 -0
  159. data/package.json +1 -1
  160. data/spec/api/default_api_spec.rb +492 -676
  161. data/spec/api_client_spec.rb +100 -102
  162. data/spec/configuration_spec.rb +16 -18
  163. data/spec/models/account_request_spec.rb +104 -233
  164. data/spec/models/account_result_spec.rb +393 -1013
  165. data/spec/models/account_status_spec.rb +27 -30
  166. data/spec/models/account_type_spec.rb +24 -27
  167. data/spec/models/add_to_conference_notification_webhook_spec.rb +464 -1197
  168. data/spec/models/add_to_conference_spec.rb +354 -850
  169. data/spec/models/add_to_queue_notification_webhook_spec.rb +341 -864
  170. data/spec/models/answered_by_spec.rb +24 -27
  171. data/spec/models/application_list_spec.rb +289 -646
  172. data/spec/models/application_request_spec.rb +265 -679
  173. data/spec/models/application_result_spec.rb +444 -1184
  174. data/spec/models/available_number_list_spec.rb +289 -646
  175. data/spec/models/available_number_spec.rb +271 -650
  176. data/spec/models/barge_in_reason_spec.rb +27 -30
  177. data/spec/models/buy_incoming_number_request_spec.rb +136 -322
  178. data/spec/models/call_control_webhook_spec.rb +203 -503
  179. data/spec/models/call_direction_spec.rb +27 -30
  180. data/spec/models/call_ended_reason_spec.rb +107 -110
  181. data/spec/models/call_list_spec.rb +289 -646
  182. data/spec/models/call_result_spec.rb +679 -1778
  183. data/spec/models/call_status_spec.rb +47 -50
  184. data/spec/models/call_status_webhook_spec.rb +413 -990
  185. data/spec/models/capabilities_spec.rb +202 -411
  186. data/spec/models/completion_request_spec.rb +75 -143
  187. data/spec/models/completion_result_spec.rb +104 -231
  188. data/spec/models/completion_result_status_spec.rb +24 -27
  189. data/spec/models/conference_list_spec.rb +289 -646
  190. data/spec/models/conference_participant_list_spec.rb +289 -646
  191. data/spec/models/conference_participant_result_spec.rb +384 -938
  192. data/spec/models/conference_recording_status_webhook_spec.rb +464 -1197
  193. data/spec/models/conference_result_spec.rb +489 -1263
  194. data/spec/models/conference_status_spec.rb +31 -34
  195. data/spec/models/conference_status_webhook_spec.rb +464 -1197
  196. data/spec/models/create_conference_request_spec.rb +204 -485
  197. data/spec/models/create_conference_spec.rb +237 -557
  198. data/spec/models/create_conference_webhook_spec.rb +464 -1197
  199. data/spec/models/create_web_rtc_token_spec.rb +136 -307
  200. data/spec/models/dequeue_spec.rb +14 -17
  201. data/spec/models/dequeue_webhook_spec.rb +400 -1021
  202. data/spec/models/enqueue_spec.rb +169 -412
  203. data/spec/models/filter_logs_request_spec.rb +73 -145
  204. data/spec/models/get_digits_reason_spec.rb +31 -34
  205. data/spec/models/get_digits_spec.rb +326 -737
  206. data/spec/models/get_digits_webhook_spec.rb +435 -1127
  207. data/spec/models/get_speech_reason_spec.rb +39 -42
  208. data/spec/models/get_speech_spec.rb +399 -1036
  209. data/spec/models/get_speech_webhook_spec.rb +608 -1553
  210. data/spec/models/grammar_file_built_in_spec.rb +75 -78
  211. data/spec/models/grammar_type_spec.rb +24 -27
  212. data/spec/models/hangup_spec.rb +73 -145
  213. data/spec/models/if_machine_spec.rb +24 -27
  214. data/spec/models/inbound_call_webhook_spec.rb +371 -951
  215. data/spec/models/incoming_number_list_spec.rb +289 -646
  216. data/spec/models/incoming_number_request_spec.rb +136 -322
  217. data/spec/models/incoming_number_result_spec.rb +573 -1489
  218. data/spec/models/language_spec.rb +120 -123
  219. data/spec/models/leave_conference_webhook_spec.rb +341 -864
  220. data/spec/models/log_level_spec.rb +27 -30
  221. data/spec/models/log_list_spec.rb +289 -646
  222. data/spec/models/log_result_spec.rb +272 -667
  223. data/spec/models/machine_detected_webhook_spec.rb +401 -1036
  224. data/spec/models/machine_type_spec.rb +24 -27
  225. data/spec/models/make_call_request_spec.rb +353 -905
  226. data/spec/models/message_delivery_webhook_spec.rb +357 -942
  227. data/spec/models/message_direction_spec.rb +24 -27
  228. data/spec/models/message_request_spec.rb +324 -818
  229. data/spec/models/message_result_spec.rb +647 -1710
  230. data/spec/models/message_status_spec.rb +60 -63
  231. data/spec/models/message_status_webhook_spec.rb +405 -1045
  232. data/spec/models/messages_list_spec.rb +289 -646
  233. data/spec/models/mutable_resource_model_spec.rb +168 -395
  234. data/spec/models/out_dial_api_connect_webhook_spec.rb +371 -951
  235. data/spec/models/out_dial_connect_webhook_spec.rb +371 -951
  236. data/spec/models/out_dial_spec.rb +354 -903
  237. data/spec/models/out_dial_start_webhook_spec.rb +401 -1038
  238. data/spec/models/pagination_model_spec.rb +259 -577
  239. data/spec/models/park_spec.rb +136 -322
  240. data/spec/models/pause_spec.rb +72 -128
  241. data/spec/models/percl_command_spec.rb +76 -145
  242. data/spec/models/percl_script_spec.rb +73 -127
  243. data/spec/models/play_beep_spec.rb +31 -34
  244. data/spec/models/play_early_media_spec.rb +73 -145
  245. data/spec/models/play_spec.rb +135 -287
  246. data/spec/models/queue_list_spec.rb +289 -646
  247. data/spec/models/queue_member_list_spec.rb +289 -646
  248. data/spec/models/queue_member_spec.rb +199 -467
  249. data/spec/models/queue_request_spec.rb +103 -216
  250. data/spec/models/queue_result_spec.rb +388 -965
  251. data/spec/models/queue_result_status_spec.rb +31 -34
  252. data/spec/models/queue_wait_webhook_spec.rb +429 -1091
  253. data/spec/models/record_utterance_spec.rb +263 -591
  254. data/spec/models/record_utterance_term_reason_spec.rb +31 -34
  255. data/spec/models/record_webhook_spec.rb +605 -1548
  256. data/spec/models/recording_list_spec.rb +289 -646
  257. data/spec/models/recording_result_spec.rb +323 -819
  258. data/spec/models/redirect_spec.rb +73 -145
  259. data/spec/models/redirect_webhook_spec.rb +371 -951
  260. data/spec/models/reject_spec.rb +73 -145
  261. data/spec/models/remove_from_conference_spec.rb +14 -17
  262. data/spec/models/remove_from_queue_notification_webhook_spec.rb +404 -1023
  263. data/spec/models/request_type_spec.rb +107 -110
  264. data/spec/models/say_spec.rb +168 -377
  265. data/spec/models/send_digits_spec.rb +135 -287
  266. data/spec/models/set_dtmf_pass_through_spec.rb +74 -127
  267. data/spec/models/set_listen_spec.rb +74 -127
  268. data/spec/models/set_talk_spec.rb +74 -127
  269. data/spec/models/sms_spec.rb +169 -412
  270. data/spec/models/sms_ten_dlc_brand_alt_business_id_type_spec.rb +31 -34
  271. data/spec/models/sms_ten_dlc_brand_entity_type_spec.rb +35 -38
  272. data/spec/models/sms_ten_dlc_brand_identity_status_spec.rb +31 -34
  273. data/spec/models/sms_ten_dlc_brand_relationship_spec.rb +35 -38
  274. data/spec/models/sms_ten_dlc_brand_spec.rb +1082 -2746
  275. data/spec/models/sms_ten_dlc_brand_stock_exchange_spec.rb +124 -127
  276. data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +289 -646
  277. data/spec/models/sms_ten_dlc_campaign_spec.rb +1139 -2881
  278. data/spec/models/sms_ten_dlc_campaign_status_spec.rb +24 -27
  279. data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +289 -646
  280. data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +406 -1004
  281. data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +961 -2393
  282. data/spec/models/sms_ten_dlc_partner_campaign_status_spec.rb +24 -27
  283. data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +289 -646
  284. data/spec/models/sms_toll_free_campaign_registration_status_spec.rb +35 -38
  285. data/spec/models/sms_toll_free_campaign_spec.rb +270 -666
  286. data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +289 -646
  287. data/spec/models/start_record_call_spec.rb +14 -17
  288. data/spec/models/terminate_conference_spec.rb +14 -17
  289. data/spec/models/tfn_campaign_spec.rb +330 -858
  290. data/spec/models/tfn_spec.rb +73 -145
  291. data/spec/models/transcribe_reason_spec.rb +35 -38
  292. data/spec/models/transcribe_term_reason_spec.rb +24 -27
  293. data/spec/models/transcribe_utterance_record_spec.rb +134 -270
  294. data/spec/models/transcribe_utterance_spec.rb +236 -523
  295. data/spec/models/transcribe_webhook_spec.rb +749 -1918
  296. data/spec/models/unpark_spec.rb +14 -17
  297. data/spec/models/update_call_request_spec.rb +74 -143
  298. data/spec/models/update_call_request_status_spec.rb +24 -27
  299. data/spec/models/update_conference_participant_request_spec.rb +137 -268
  300. data/spec/models/update_conference_request_spec.rb +140 -321
  301. data/spec/models/update_conference_request_status_spec.rb +24 -27
  302. data/spec/models/webhook_spec.rb +68 -137
  303. data/spec/quickstart_spec.rb +5 -5
  304. data/spec/spec_helper.rb +92 -100
  305. data/spec/utils/request_verifier_spec.rb +70 -71
  306. data/spec/utils/signature_information_spec.rb +23 -23
  307. data/yarn.lock +9 -0
  308. metadata +3 -151
@@ -1,18 +1,16 @@
1
- =begin
2
- #FreeClimb API
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
- #FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
5
-
6
- The version of the OpenAPI document: 1.0.0
7
- Contact: support@freeclimb.com
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 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::SMSTenDLCPartnerCampaign
@@ -21,2761 +19,1380 @@ include Freeclimb
21
19
  describe Freeclimb::SMSTenDLCPartnerCampaign do
22
20
  let(:instance) { Freeclimb::SMSTenDLCPartnerCampaign.new }
23
21
 
24
- describe 'test an instance of SMSTenDLCPartnerCampaign' do
25
- it 'should create an instance of SMSTenDLCPartnerCampaign' do
22
+ describe "test an instance of SMSTenDLCPartnerCampaign" do
23
+ it "should create an instance of SMSTenDLCPartnerCampaign" do
26
24
  expect(instance).to be_instance_of(Freeclimb::SMSTenDLCPartnerCampaign)
27
25
  end
28
26
  end
29
-
27
+
30
28
  describe 'test attribute "account_id"' do
31
- it 'should work' do
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 'should work' do
43
-
36
+ it "should work" do
44
37
  instance.campaign_id = "TEST_STRING"
45
- expect(instance.campaign_id).to eq("TEST_STRING")
46
-
47
-
48
-
38
+ expect(instance.campaign_id).to eq("TEST_STRING")
49
39
  end
50
40
  end
51
41
 
52
-
53
42
  describe 'test attribute "status"' do
54
- it 'assigns value ACTIVE' do
43
+ it "assigns value ACTIVE" do
55
44
  instance.status = Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE
56
- expect(instance.status).to eq(Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE)
45
+ expect(instance.status).to eq(Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE)
57
46
  end
58
- it 'assigns value EXPIRED' do
47
+ it "assigns value EXPIRED" do
59
48
  instance.status = Freeclimb::SMSTenDLCPartnerCampaignStatus::EXPIRED
60
- expect(instance.status).to eq(Freeclimb::SMSTenDLCPartnerCampaignStatus::EXPIRED)
49
+ expect(instance.status).to eq(Freeclimb::SMSTenDLCPartnerCampaignStatus::EXPIRED)
61
50
  end
62
51
  end
63
52
  describe 'test attribute "create_date"' do
64
- it 'should work' do
53
+ it "should work" do
65
54
  instance.create_date = "2022-07-05T15:17:05Z"
66
- expect(instance.create_date).to eq("2022-07-05T15:17:05Z")
67
-
68
-
69
-
55
+ expect(instance.create_date).to eq("2022-07-05T15:17:05Z")
70
56
  end
71
57
  end
72
58
 
73
59
  describe 'test attribute "brand_id"' do
74
- it 'should assign a value of maxLength' do
60
+ it "should assign a value of maxLength" do
75
61
  instance.brand_id = "T" * 8
76
- expect(instance.brand_id).to eq("T" * 8)
62
+ expect(instance.brand_id).to eq("T" * 8)
77
63
  end
78
- it 'should not assign a value over maxLength' do
79
- expect { instance.brand_id = "T" * (8 + 1) }.to raise_error(ArgumentError)
64
+ it "should not assign a value over maxLength" do
65
+ expect { instance.brand_id = "T" * (8 + 1) }.to raise_error(ArgumentError)
80
66
  end
81
67
  end
82
68
 
83
69
  describe 'test attribute "usecase"' do
84
- it 'should assign a value of maxLength' do
70
+ it "should assign a value of maxLength" do
85
71
  instance.usecase = "T" * 20
86
- expect(instance.usecase).to eq("T" * 20)
72
+ expect(instance.usecase).to eq("T" * 20)
87
73
  end
88
- it 'should not assign a value over maxLength' do
89
- expect { instance.usecase = "T" * (20 + 1) }.to raise_error(ArgumentError)
74
+ it "should not assign a value over maxLength" do
75
+ expect { instance.usecase = "T" * (20 + 1) }.to raise_error(ArgumentError)
90
76
  end
91
77
  end
92
78
 
93
79
  describe 'test attribute "description"' do
94
- it 'should assign a value of maxLength' do
80
+ it "should assign a value of maxLength" do
95
81
  instance.description = "T" * 4096
96
- expect(instance.description).to eq("T" * 4096)
82
+ expect(instance.description).to eq("T" * 4096)
97
83
  end
98
- it 'should not assign a value over maxLength' do
99
- expect { instance.description = "T" * (4096 + 1) }.to raise_error(ArgumentError)
84
+ it "should not assign a value over maxLength" do
85
+ expect { instance.description = "T" * (4096 + 1) }.to raise_error(ArgumentError)
100
86
  end
101
87
  end
102
88
 
103
89
  describe 'test attribute "embedded_link"' do
104
- it 'should work' do
90
+ it "should work" do
105
91
  instance.embedded_link = false
106
- expect(instance.embedded_link).to eq(false)
107
-
108
-
109
-
92
+ expect(instance.embedded_link).to eq(false)
110
93
  end
111
94
  end
112
95
 
113
96
  describe 'test attribute "embedded_phone"' do
114
- it 'should work' do
97
+ it "should work" do
115
98
  instance.embedded_phone = false
116
- expect(instance.embedded_phone).to eq(false)
117
-
118
-
119
-
99
+ expect(instance.embedded_phone).to eq(false)
120
100
  end
121
101
  end
122
102
 
123
103
  describe 'test attribute "affiliate_marketing"' do
124
- it 'should work' do
104
+ it "should work" do
125
105
  instance.affiliate_marketing = false
126
- expect(instance.affiliate_marketing).to eq(false)
127
-
128
-
129
-
106
+ expect(instance.affiliate_marketing).to eq(false)
130
107
  end
131
108
  end
132
109
 
133
110
  describe 'test attribute "number_pool"' do
134
- it 'should work' do
111
+ it "should work" do
135
112
  instance.number_pool = false
136
- expect(instance.number_pool).to eq(false)
137
-
138
-
139
-
113
+ expect(instance.number_pool).to eq(false)
140
114
  end
141
115
  end
142
116
 
143
117
  describe 'test attribute "age_gated"' do
144
- it 'should work' do
118
+ it "should work" do
145
119
  instance.age_gated = false
146
- expect(instance.age_gated).to eq(false)
147
-
148
-
149
-
120
+ expect(instance.age_gated).to eq(false)
150
121
  end
151
122
  end
152
123
 
153
124
  describe 'test attribute "direct_lending"' do
154
- it 'should work' do
125
+ it "should work" do
155
126
  instance.direct_lending = false
156
- expect(instance.direct_lending).to eq(false)
157
-
158
-
159
-
127
+ expect(instance.direct_lending).to eq(false)
160
128
  end
161
129
  end
162
130
 
163
131
  describe 'test attribute "subscriber_optin"' do
164
- it 'should work' do
132
+ it "should work" do
165
133
  instance.subscriber_optin = false
166
- expect(instance.subscriber_optin).to eq(false)
167
-
168
-
169
-
134
+ expect(instance.subscriber_optin).to eq(false)
170
135
  end
171
136
  end
172
137
 
173
138
  describe 'test attribute "subscriber_optout"' do
174
- it 'should work' do
139
+ it "should work" do
175
140
  instance.subscriber_optout = false
176
- expect(instance.subscriber_optout).to eq(false)
177
-
178
-
179
-
141
+ expect(instance.subscriber_optout).to eq(false)
180
142
  end
181
143
  end
182
144
 
183
145
  describe 'test attribute "subscriber_help"' do
184
- it 'should work' do
146
+ it "should work" do
185
147
  instance.subscriber_help = false
186
- expect(instance.subscriber_help).to eq(false)
187
-
188
-
189
-
148
+ expect(instance.subscriber_help).to eq(false)
190
149
  end
191
150
  end
192
151
 
193
152
  describe 'test attribute "sample1"' do
194
- it 'should assign a value of maxLength' do
153
+ it "should assign a value of maxLength" do
195
154
  instance.sample1 = "T" * 1024
196
- expect(instance.sample1).to eq("T" * 1024)
155
+ expect(instance.sample1).to eq("T" * 1024)
197
156
  end
198
- it 'should not assign a value over maxLength' do
199
- expect { instance.sample1 = "T" * (1024 + 1) }.to raise_error(ArgumentError)
157
+ it "should not assign a value over maxLength" do
158
+ expect { instance.sample1 = "T" * (1024 + 1) }.to raise_error(ArgumentError)
200
159
  end
201
160
  end
202
161
 
203
162
  describe 'test attribute "sample2"' do
204
- it 'should assign a value of maxLength' do
163
+ it "should assign a value of maxLength" do
205
164
  instance.sample2 = "T" * 1024
206
- expect(instance.sample2).to eq("T" * 1024)
165
+ expect(instance.sample2).to eq("T" * 1024)
207
166
  end
208
- it 'should not assign a value over maxLength' do
209
- expect { instance.sample2 = "T" * (1024 + 1) }.to raise_error(ArgumentError)
167
+ it "should not assign a value over maxLength" do
168
+ expect { instance.sample2 = "T" * (1024 + 1) }.to raise_error(ArgumentError)
210
169
  end
211
170
  end
212
171
 
213
172
  describe 'test attribute "sample3"' do
214
- it 'should assign a value of maxLength' do
173
+ it "should assign a value of maxLength" do
215
174
  instance.sample3 = "T" * 1024
216
- expect(instance.sample3).to eq("T" * 1024)
175
+ expect(instance.sample3).to eq("T" * 1024)
217
176
  end
218
- it 'should not assign a value over maxLength' do
219
- expect { instance.sample3 = "T" * (1024 + 1) }.to raise_error(ArgumentError)
177
+ it "should not assign a value over maxLength" do
178
+ expect { instance.sample3 = "T" * (1024 + 1) }.to raise_error(ArgumentError)
220
179
  end
221
180
  end
222
181
 
223
182
  describe 'test attribute "sample4"' do
224
- it 'should assign a value of maxLength' do
183
+ it "should assign a value of maxLength" do
225
184
  instance.sample4 = "T" * 1024
226
- expect(instance.sample4).to eq("T" * 1024)
185
+ expect(instance.sample4).to eq("T" * 1024)
227
186
  end
228
- it 'should not assign a value over maxLength' do
229
- expect { instance.sample4 = "T" * (1024 + 1) }.to raise_error(ArgumentError)
187
+ it "should not assign a value over maxLength" do
188
+ expect { instance.sample4 = "T" * (1024 + 1) }.to raise_error(ArgumentError)
230
189
  end
231
190
  end
232
191
 
233
192
  describe 'test attribute "sample5"' do
234
- it 'should assign a value of maxLength' do
193
+ it "should assign a value of maxLength" do
235
194
  instance.sample5 = "T" * 1024
236
- expect(instance.sample5).to eq("T" * 1024)
195
+ expect(instance.sample5).to eq("T" * 1024)
237
196
  end
238
- it 'should not assign a value over maxLength' do
239
- expect { instance.sample5 = "T" * (1024 + 1) }.to raise_error(ArgumentError)
197
+ it "should not assign a value over maxLength" do
198
+ expect { instance.sample5 = "T" * (1024 + 1) }.to raise_error(ArgumentError)
240
199
  end
241
200
  end
242
201
 
243
202
  describe 'test attribute "message_flow"' do
244
- it 'should assign a value of maxLength' do
203
+ it "should assign a value of maxLength" do
245
204
  instance.message_flow = "T" * 2048
246
- expect(instance.message_flow).to eq("T" * 2048)
205
+ expect(instance.message_flow).to eq("T" * 2048)
247
206
  end
248
- it 'should not assign a value over maxLength' do
249
- expect { instance.message_flow = "T" * (2048 + 1) }.to raise_error(ArgumentError)
207
+ it "should not assign a value over maxLength" do
208
+ expect { instance.message_flow = "T" * (2048 + 1) }.to raise_error(ArgumentError)
250
209
  end
251
210
  end
252
211
 
253
212
  describe 'test attribute "help_message"' do
254
- it 'should assign a value of maxLength' do
213
+ it "should assign a value of maxLength" do
255
214
  instance.help_message = "T" * 255
256
- expect(instance.help_message).to eq("T" * 255)
215
+ expect(instance.help_message).to eq("T" * 255)
257
216
  end
258
- it 'should not assign a value over maxLength' do
259
- expect { instance.help_message = "T" * (255 + 1) }.to raise_error(ArgumentError)
217
+ it "should not assign a value over maxLength" do
218
+ expect { instance.help_message = "T" * (255 + 1) }.to raise_error(ArgumentError)
260
219
  end
261
220
  end
262
221
 
263
222
  describe 'test attribute "optin_keywords"' do
264
- it 'should assign a value of maxLength' do
223
+ it "should assign a value of maxLength" do
265
224
  instance.optin_keywords = "T" * 255
266
- expect(instance.optin_keywords).to eq("T" * 255)
225
+ expect(instance.optin_keywords).to eq("T" * 255)
267
226
  end
268
- it 'should not assign a value over maxLength' do
269
- expect { instance.optin_keywords = "T" * (255 + 1) }.to raise_error(ArgumentError)
227
+ it "should not assign a value over maxLength" do
228
+ expect { instance.optin_keywords = "T" * (255 + 1) }.to raise_error(ArgumentError)
270
229
  end
271
230
  end
272
231
 
273
232
  describe 'test attribute "optout_keywords"' do
274
- it 'should assign a value of maxLength' do
233
+ it "should assign a value of maxLength" do
275
234
  instance.optout_keywords = "T" * 255
276
- expect(instance.optout_keywords).to eq("T" * 255)
235
+ expect(instance.optout_keywords).to eq("T" * 255)
277
236
  end
278
- it 'should not assign a value over maxLength' do
279
- expect { instance.optout_keywords = "T" * (255 + 1) }.to raise_error(ArgumentError)
237
+ it "should not assign a value over maxLength" do
238
+ expect { instance.optout_keywords = "T" * (255 + 1) }.to raise_error(ArgumentError)
280
239
  end
281
240
  end
282
241
 
283
242
  describe 'test attribute "help_keywords"' do
284
- it 'should assign a value of maxLength' do
243
+ it "should assign a value of maxLength" do
285
244
  instance.help_keywords = "T" * 255
286
- expect(instance.help_keywords).to eq("T" * 255)
245
+ expect(instance.help_keywords).to eq("T" * 255)
287
246
  end
288
- it 'should not assign a value over maxLength' do
289
- expect { instance.help_keywords = "T" * (255 + 1) }.to raise_error(ArgumentError)
247
+ it "should not assign a value over maxLength" do
248
+ expect { instance.help_keywords = "T" * (255 + 1) }.to raise_error(ArgumentError)
290
249
  end
291
250
  end
292
251
 
293
252
  describe 'test attribute "optin_message"' do
294
- it 'should assign a value of maxLength' do
253
+ it "should assign a value of maxLength" do
295
254
  instance.optin_message = "T" * 255
296
- expect(instance.optin_message).to eq("T" * 255)
255
+ expect(instance.optin_message).to eq("T" * 255)
297
256
  end
298
- it 'should not assign a value over maxLength' do
299
- expect { instance.optin_message = "T" * (255 + 1) }.to raise_error(ArgumentError)
257
+ it "should not assign a value over maxLength" do
258
+ expect { instance.optin_message = "T" * (255 + 1) }.to raise_error(ArgumentError)
300
259
  end
301
260
  end
302
261
 
303
262
  describe 'test attribute "optout_message"' do
304
- it 'should assign a value of maxLength' do
263
+ it "should assign a value of maxLength" do
305
264
  instance.optout_message = "T" * 255
306
- expect(instance.optout_message).to eq("T" * 255)
265
+ expect(instance.optout_message).to eq("T" * 255)
307
266
  end
308
- it 'should not assign a value over maxLength' do
309
- expect { instance.optout_message = "T" * (255 + 1) }.to raise_error(ArgumentError)
267
+ it "should not assign a value over maxLength" do
268
+ expect { instance.optout_message = "T" * (255 + 1) }.to raise_error(ArgumentError)
310
269
  end
311
270
  end
312
271
 
313
272
  describe 'test attribute "brand"' do
314
- it 'should work' do
315
-
316
-
317
-
273
+ it "should work" do
318
274
  instance.brand = SMSTenDLCPartnerCampaignBrand.new
319
275
  expect(instance.brand).to be_instance_of(SMSTenDLCPartnerCampaignBrand)
320
-
321
276
  end
322
277
  end
323
278
 
324
279
  describe 'test method "initialize"' do
325
- it 'properly initializes with values' do
326
- expect { instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
327
-
328
- account_id: "TS",
329
-
330
-
331
-
332
-
333
- campaign_id: "TS",
334
-
335
-
336
-
337
-
338
- status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
339
-
340
-
341
-
342
-
343
- create_date: "2022-07-05T15:17:05Z",
344
-
345
-
346
-
347
- brand_id: "TS",
348
-
349
-
350
-
351
-
352
- usecase: "TS",
353
-
354
-
355
-
356
-
357
- description: "TS",
358
-
359
-
360
-
361
- embedded_link: true,
362
-
363
-
364
-
365
- embedded_phone: true,
366
-
367
-
368
-
369
- affiliate_marketing: true,
370
-
371
-
372
-
373
- number_pool: true,
374
-
375
-
376
-
377
- age_gated: true,
378
-
379
-
380
-
381
- direct_lending: true,
382
-
383
-
384
-
385
- subscriber_optin: true,
386
-
387
-
388
-
389
- subscriber_optout: true,
390
-
391
-
392
-
393
- subscriber_help: true,
394
-
395
-
396
-
397
-
398
- sample1: "TS",
399
-
400
-
401
-
402
-
403
- sample2: "TS",
404
-
405
-
406
-
407
-
408
- sample3: "TS",
409
-
410
-
411
-
412
-
413
- sample4: "TS",
414
-
415
-
416
-
417
-
418
- sample5: "TS",
419
-
420
-
421
-
422
-
423
- message_flow: "TS",
424
-
425
-
426
-
427
-
428
- help_message: "TS",
429
-
430
-
431
-
432
-
433
- optin_keywords: "TS",
434
-
435
-
436
-
437
-
438
- optout_keywords: "TS",
439
-
440
-
441
-
442
-
443
- help_keywords: "TS",
444
-
445
-
446
-
447
-
448
- optin_message: "TS",
449
-
450
-
451
-
452
-
453
- optout_message: "TS",
454
-
455
-
456
-
457
-
458
-
459
-
460
- brand: SMSTenDLCPartnerCampaignBrand.new(),
461
-
462
- )}.not_to raise_error()
463
- end
464
- it 'fails to initialize with input argument that is not a hash in Freeclimb::SMSTenDLCPartnerCampaign' do
465
- expect { instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
466
-
467
- account_id: "TS",
468
-
469
-
470
-
471
-
472
- campaign_id: "TS",
473
-
474
-
475
-
476
-
477
- status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
478
-
479
-
480
-
481
-
482
- create_date: "2022-07-05T15:17:05Z",
483
-
484
-
485
-
486
- brand_id: "TS",
487
-
488
-
489
-
490
-
491
- usecase: "TS",
492
-
493
-
494
-
495
-
496
- description: "TS",
497
-
498
-
499
-
500
- embedded_link: true,
501
-
502
-
503
-
504
- embedded_phone: true,
505
-
506
-
507
-
508
- affiliate_marketing: true,
509
-
510
-
511
-
512
- number_pool: true,
513
-
514
-
515
-
516
- age_gated: true,
517
-
518
-
519
-
520
- direct_lending: true,
521
-
522
-
523
-
524
- subscriber_optin: true,
525
-
526
-
527
-
528
- subscriber_optout: true,
529
-
530
-
531
-
532
- subscriber_help: true,
533
-
534
-
535
-
536
-
537
- sample1: "TS",
538
-
539
-
540
-
541
-
542
- sample2: "TS",
543
-
544
-
545
-
546
-
547
- sample3: "TS",
548
-
549
-
550
-
551
-
552
- sample4: "TS",
553
-
554
-
555
-
556
-
557
- sample5: "TS",
558
-
559
-
560
-
561
-
562
- message_flow: "TS",
563
-
564
-
565
-
566
-
567
- help_message: "TS",
568
-
569
-
570
-
571
-
572
- optin_keywords: "TS",
573
-
574
-
575
-
576
-
577
- optout_keywords: "TS",
578
-
579
-
580
-
581
-
582
- help_keywords: "TS",
583
-
584
-
585
-
586
-
587
- optin_message: "TS",
588
-
589
-
590
-
591
-
592
- optout_message: "TS",
593
-
594
-
595
-
596
-
597
-
598
-
599
- brand: SMSTenDLCPartnerCampaignBrand.new,
600
-
601
- invalid_attribute: true
602
- )}.to raise_error(ArgumentError)
603
- end
604
- it 'fails to initialize with invalid attribute' do
605
- expect { instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
606
-
607
- account_id: "TS",
608
-
609
-
610
-
611
-
612
- campaign_id: "TS",
613
-
614
-
615
-
616
-
617
- status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
618
-
619
-
620
-
621
-
622
- create_date: "2022-07-05T15:17:05Z",
623
-
624
-
625
-
626
- brand_id: "TS",
627
-
628
-
629
-
630
-
631
- usecase: "TS",
632
-
633
-
634
-
635
-
636
- description: "TS",
637
-
638
-
639
-
640
- embedded_link: true,
641
-
642
-
643
-
644
- embedded_phone: true,
645
-
646
-
647
-
648
- affiliate_marketing: true,
649
-
650
-
651
-
652
- number_pool: true,
653
-
654
-
655
-
656
- age_gated: true,
657
-
658
-
659
-
660
- direct_lending: true,
661
-
662
-
663
-
664
- subscriber_optin: true,
665
-
666
-
667
-
668
- subscriber_optout: true,
669
-
670
-
671
-
672
- subscriber_help: true,
673
-
674
-
675
-
676
-
677
- sample1: "TS",
678
-
679
-
680
-
681
-
682
- sample2: "TS",
683
-
684
-
685
-
686
-
687
- sample3: "TS",
688
-
689
-
690
-
691
-
692
- sample4: "TS",
693
-
694
-
695
-
696
-
697
- sample5: "TS",
698
-
699
-
700
-
701
-
702
- message_flow: "TS",
703
-
704
-
705
-
706
-
707
- help_message: "TS",
708
-
709
-
710
-
711
-
712
- optin_keywords: "TS",
713
-
714
-
715
-
716
-
717
- optout_keywords: "TS",
718
-
719
-
720
-
721
-
722
- help_keywords: "TS",
723
-
724
-
725
-
726
-
727
- optin_message: "TS",
728
-
729
-
730
-
731
-
732
- optout_message: "TS",
733
-
734
-
735
-
736
-
737
-
738
-
739
- brand: SMSTenDLCPartnerCampaignBrand.new,
740
-
741
- invalid_attribute: true
742
- )}.to raise_error(ArgumentError)
743
- end
744
- end
745
-
746
- describe 'test method "valid"' do
747
- it 'checks if properties are valid' do
748
- instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
749
-
280
+ it "properly initializes with values" do
281
+ expect {
282
+ Freeclimb::SMSTenDLCPartnerCampaign.new(
750
283
  account_id: "TS",
751
-
752
-
753
-
754
-
284
+
755
285
  campaign_id: "TS",
756
-
757
-
758
-
759
-
286
+
760
287
  status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
761
-
762
-
763
-
764
-
288
+
765
289
  create_date: "2022-07-05T15:17:05Z",
766
-
767
-
768
-
290
+
769
291
  brand_id: "TS",
770
-
771
-
772
-
773
-
292
+
774
293
  usecase: "TS",
775
-
776
-
777
-
778
-
294
+
779
295
  description: "TS",
780
-
781
-
782
-
296
+
783
297
  embedded_link: true,
784
-
785
-
786
-
298
+
787
299
  embedded_phone: true,
788
-
789
-
790
-
300
+
791
301
  affiliate_marketing: true,
792
-
793
-
794
-
302
+
795
303
  number_pool: true,
796
-
797
-
798
-
304
+
799
305
  age_gated: true,
800
-
801
-
802
-
306
+
803
307
  direct_lending: true,
804
-
805
-
806
-
308
+
807
309
  subscriber_optin: true,
808
-
809
-
810
-
310
+
811
311
  subscriber_optout: true,
812
-
813
-
814
-
312
+
815
313
  subscriber_help: true,
816
-
817
-
818
-
819
-
314
+
820
315
  sample1: "TS",
821
-
822
-
823
-
824
-
316
+
825
317
  sample2: "TS",
826
-
827
-
828
-
829
-
318
+
830
319
  sample3: "TS",
831
-
832
-
833
-
834
-
320
+
835
321
  sample4: "TS",
836
-
837
-
838
-
839
-
322
+
840
323
  sample5: "TS",
841
-
842
-
843
-
844
-
324
+
845
325
  message_flow: "TS",
846
-
847
-
848
-
849
-
326
+
850
327
  help_message: "TS",
851
-
852
-
853
-
854
-
328
+
855
329
  optin_keywords: "TS",
856
-
857
-
858
-
859
-
330
+
860
331
  optout_keywords: "TS",
861
-
862
-
863
-
864
-
332
+
865
333
  help_keywords: "TS",
866
-
867
-
868
-
869
-
334
+
870
335
  optin_message: "TS",
871
-
872
-
873
-
874
-
875
- optout_message: "TS",
876
-
877
-
878
-
879
-
880
-
881
-
882
- brand: SMSTenDLCPartnerCampaignBrand.new(),
883
-
884
- )
885
- expect(instance.valid?).to eq(true)
886
- end
887
336
 
337
+ optout_message: "TS",
888
338
 
889
- skip 'checks if properties are invalid' do
890
- instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
891
-
892
- )
893
- expect(instance.valid?).to eq(false)
339
+ brand: SMSTenDLCPartnerCampaignBrand.new
340
+ )
341
+ }.not_to raise_error
894
342
  end
895
-
896
- end
897
-
898
- describe 'test method "eql?"' do
899
- it 'checks if objects are equal' do
900
-
901
-
902
-
903
-
904
-
905
-
906
-
907
-
908
-
909
-
910
-
911
-
912
-
913
-
914
-
915
-
916
-
917
-
918
-
919
-
920
-
921
-
922
-
923
-
924
-
925
-
926
-
927
-
928
-
929
- obj_SMSTenDLCPartnerCampaignBrand = SMSTenDLCPartnerCampaignBrand.new()
930
-
931
- instance_1 = Freeclimb::SMSTenDLCPartnerCampaign.new(
932
-
933
- account_id: "TS",
934
-
935
-
936
-
937
-
938
- campaign_id: "TS",
939
-
940
-
941
-
942
-
943
-
944
-
945
- status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
946
-
947
-
948
-
949
-
950
-
951
- brand_id: "TS",
952
-
953
-
954
-
955
-
956
- usecase: "TS",
957
-
958
-
959
-
960
-
961
- description: "TS",
962
-
963
-
964
-
965
- embedded_link: true,
966
-
967
-
968
-
969
- embedded_phone: true,
970
-
971
-
972
-
973
- affiliate_marketing: true,
974
-
975
-
976
-
977
- number_pool: true,
978
-
979
-
980
-
981
- age_gated: true,
982
-
983
-
984
-
985
- direct_lending: true,
986
-
987
-
988
-
989
- subscriber_optin: true,
990
-
991
-
992
-
993
- subscriber_optout: true,
994
-
995
-
996
-
997
- subscriber_help: true,
998
-
999
-
1000
-
1001
-
1002
- sample1: "TS",
1003
-
1004
-
1005
-
1006
-
1007
- sample2: "TS",
1008
-
1009
-
1010
-
1011
-
1012
- sample3: "TS",
1013
-
1014
-
1015
-
1016
-
1017
- sample4: "TS",
1018
-
1019
-
1020
-
1021
-
1022
- sample5: "TS",
1023
-
1024
-
1025
-
1026
-
1027
- message_flow: "TS",
1028
-
1029
-
1030
-
1031
-
1032
- help_message: "TS",
1033
-
1034
-
1035
-
1036
-
1037
- optin_keywords: "TS",
1038
-
1039
-
1040
-
1041
-
1042
- optout_keywords: "TS",
1043
-
1044
-
1045
-
1046
-
1047
- help_keywords: "TS",
1048
-
1049
-
1050
-
1051
-
1052
- optin_message: "TS",
1053
-
1054
-
1055
-
1056
-
1057
- optout_message: "TS",
1058
-
1059
-
1060
-
1061
-
1062
-
1063
- brand: obj_SMSTenDLCPartnerCampaignBrand,
1064
-
1065
-
1066
- )
1067
- instance_2 = Freeclimb::SMSTenDLCPartnerCampaign.new(
1068
-
343
+ it "fails to initialize with input argument that is not a hash in Freeclimb::SMSTenDLCPartnerCampaign" do
344
+ expect {
345
+ Freeclimb::SMSTenDLCPartnerCampaign.new(
1069
346
  account_id: "TS",
1070
-
1071
-
1072
-
1073
-
347
+
1074
348
  campaign_id: "TS",
1075
-
1076
-
1077
-
1078
-
1079
-
1080
-
349
+
1081
350
  status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
1082
-
1083
-
1084
-
1085
-
1086
-
351
+
352
+ create_date: "2022-07-05T15:17:05Z",
353
+
1087
354
  brand_id: "TS",
1088
-
1089
-
1090
-
1091
-
355
+
1092
356
  usecase: "TS",
1093
-
1094
-
1095
-
1096
-
357
+
1097
358
  description: "TS",
1098
-
1099
-
1100
-
359
+
1101
360
  embedded_link: true,
1102
-
1103
-
1104
-
361
+
1105
362
  embedded_phone: true,
1106
-
1107
-
1108
-
363
+
1109
364
  affiliate_marketing: true,
1110
-
1111
-
1112
-
365
+
1113
366
  number_pool: true,
1114
-
1115
-
1116
-
367
+
1117
368
  age_gated: true,
1118
-
1119
-
1120
-
369
+
1121
370
  direct_lending: true,
1122
-
1123
-
1124
-
371
+
1125
372
  subscriber_optin: true,
1126
-
1127
-
1128
-
373
+
1129
374
  subscriber_optout: true,
1130
-
1131
-
1132
-
375
+
1133
376
  subscriber_help: true,
1134
-
1135
-
1136
-
1137
-
377
+
1138
378
  sample1: "TS",
1139
-
1140
-
1141
-
1142
-
379
+
1143
380
  sample2: "TS",
1144
-
1145
-
1146
-
1147
-
381
+
1148
382
  sample3: "TS",
1149
-
1150
-
1151
-
1152
-
383
+
1153
384
  sample4: "TS",
1154
-
1155
-
1156
-
1157
-
385
+
1158
386
  sample5: "TS",
1159
-
1160
-
1161
-
1162
-
387
+
1163
388
  message_flow: "TS",
1164
-
1165
-
1166
-
1167
-
389
+
1168
390
  help_message: "TS",
1169
-
1170
-
1171
-
1172
-
391
+
1173
392
  optin_keywords: "TS",
1174
-
1175
-
1176
-
1177
-
393
+
1178
394
  optout_keywords: "TS",
1179
-
1180
-
1181
-
1182
-
395
+
1183
396
  help_keywords: "TS",
1184
-
1185
-
1186
-
1187
-
397
+
1188
398
  optin_message: "TS",
1189
-
1190
-
1191
-
1192
-
399
+
1193
400
  optout_message: "TS",
1194
-
1195
-
1196
-
1197
-
1198
-
1199
- brand: obj_SMSTenDLCPartnerCampaignBrand,
1200
-
1201
-
1202
- )
1203
- expect(instance_1.eql?(instance_2)).to eq(true)
401
+
402
+ brand: SMSTenDLCPartnerCampaignBrand.new,
403
+
404
+ invalid_attribute: true
405
+ )
406
+ }.to raise_error(ArgumentError)
1204
407
  end
1205
-
1206
- it 'checks if objects are not equal' do
1207
- instance_1 = Freeclimb::SMSTenDLCPartnerCampaign.new(
1208
-
408
+ it "fails to initialize with invalid attribute" do
409
+ expect {
410
+ Freeclimb::SMSTenDLCPartnerCampaign.new(
1209
411
  account_id: "TS",
1210
-
1211
-
1212
-
1213
-
412
+
1214
413
  campaign_id: "TS",
1215
-
1216
-
1217
-
1218
-
1219
-
1220
-
414
+
1221
415
  status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
1222
-
1223
-
1224
-
1225
-
1226
-
416
+
417
+ create_date: "2022-07-05T15:17:05Z",
418
+
1227
419
  brand_id: "TS",
1228
-
1229
-
1230
-
1231
-
420
+
1232
421
  usecase: "TS",
1233
-
1234
-
1235
-
1236
-
422
+
1237
423
  description: "TS",
1238
-
1239
-
1240
-
424
+
1241
425
  embedded_link: true,
1242
-
1243
-
1244
-
426
+
1245
427
  embedded_phone: true,
1246
-
1247
-
1248
-
428
+
1249
429
  affiliate_marketing: true,
1250
-
1251
-
1252
-
430
+
1253
431
  number_pool: true,
1254
-
1255
-
1256
-
432
+
1257
433
  age_gated: true,
1258
-
1259
-
1260
-
434
+
1261
435
  direct_lending: true,
1262
-
1263
-
1264
-
436
+
1265
437
  subscriber_optin: true,
1266
-
1267
-
1268
-
438
+
1269
439
  subscriber_optout: true,
1270
-
1271
-
1272
-
440
+
1273
441
  subscriber_help: true,
1274
-
1275
-
1276
-
1277
-
442
+
1278
443
  sample1: "TS",
1279
-
1280
-
1281
-
1282
-
444
+
1283
445
  sample2: "TS",
1284
-
1285
-
1286
-
1287
-
446
+
1288
447
  sample3: "TS",
1289
-
1290
-
1291
-
1292
-
448
+
1293
449
  sample4: "TS",
1294
-
1295
-
1296
-
1297
-
450
+
1298
451
  sample5: "TS",
1299
-
1300
-
1301
-
1302
-
452
+
1303
453
  message_flow: "TS",
1304
-
1305
-
1306
-
1307
-
454
+
1308
455
  help_message: "TS",
1309
-
1310
-
1311
-
1312
-
456
+
1313
457
  optin_keywords: "TS",
1314
-
1315
-
1316
-
1317
-
458
+
1318
459
  optout_keywords: "TS",
1319
-
1320
-
1321
-
1322
-
460
+
1323
461
  help_keywords: "TS",
1324
-
1325
-
1326
-
1327
-
462
+
1328
463
  optin_message: "TS",
1329
-
1330
-
1331
-
1332
-
464
+
1333
465
  optout_message: "TS",
1334
-
1335
-
1336
-
1337
-
1338
-
1339
- brand: SMSTenDLCPartnerCampaignBrand.new(),
1340
-
1341
-
1342
- )
1343
- instance_2 = Freeclimb::SMSTenDLCPartnerCampaign.new(
1344
-
1345
- account_id: "ST",
1346
-
1347
-
1348
-
1349
-
1350
- campaign_id: "ST",
1351
-
1352
-
1353
-
1354
-
1355
-
1356
-
1357
- status: nil,
1358
-
1359
-
1360
-
1361
-
1362
-
1363
- brand_id: "ST",
1364
-
1365
-
1366
-
1367
-
1368
- usecase: "ST",
1369
-
1370
-
1371
-
1372
-
1373
- description: "ST",
1374
-
1375
-
1376
-
1377
- embedded_link: false,
1378
-
1379
-
1380
-
1381
- embedded_phone: false,
1382
-
1383
-
1384
-
1385
- affiliate_marketing: false,
1386
-
1387
-
1388
-
1389
- number_pool: false,
1390
-
1391
-
1392
-
1393
- age_gated: false,
1394
-
1395
-
1396
-
1397
- direct_lending: false,
1398
-
1399
-
1400
-
1401
- subscriber_optin: false,
1402
-
1403
-
1404
-
1405
- subscriber_optout: false,
1406
-
1407
-
1408
-
1409
- subscriber_help: false,
1410
-
1411
-
1412
-
1413
-
1414
- sample1: "ST",
1415
-
1416
-
1417
-
1418
-
1419
- sample2: "ST",
1420
-
1421
-
1422
-
1423
-
1424
- sample3: "ST",
1425
-
1426
-
1427
-
1428
-
1429
- sample4: "ST",
1430
-
1431
-
1432
-
1433
-
1434
- sample5: "ST",
1435
-
1436
-
1437
-
1438
-
1439
- message_flow: "ST",
1440
-
1441
-
1442
-
1443
-
1444
- help_message: "ST",
1445
-
1446
-
1447
-
1448
-
1449
- optin_keywords: "ST",
1450
-
1451
-
1452
-
1453
-
1454
- optout_keywords: "ST",
1455
-
1456
-
1457
-
1458
-
1459
- help_keywords: "ST",
1460
-
1461
-
1462
-
1463
-
1464
- optin_message: "ST",
1465
-
1466
-
1467
-
1468
-
1469
- optout_message: "ST",
1470
-
1471
-
1472
-
1473
-
1474
-
1475
- brand: SMSTenDLCPartnerCampaignBrand.new(),
1476
-
1477
-
1478
- )
1479
- expect(instance_1.eql?(instance_2)).to eq(false)
466
+
467
+ brand: SMSTenDLCPartnerCampaignBrand.new,
468
+
469
+ invalid_attribute: true
470
+ )
471
+ }.to raise_error(ArgumentError)
1480
472
  end
1481
473
  end
1482
-
1483
- describe 'test method "hash"' do
1484
- it 'calculates hash code' do
474
+
475
+ describe 'test method "valid"' do
476
+ it "checks if properties are valid" do
1485
477
  instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
1486
-
1487
- account_id: "TS",
1488
-
1489
-
1490
-
1491
-
1492
- campaign_id: "TS",
1493
-
1494
-
1495
-
1496
-
1497
- status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
1498
-
1499
-
1500
-
1501
-
1502
- create_date: "2022-07-05T15:17:05Z",
1503
-
1504
-
1505
-
1506
- brand_id: "TS",
1507
-
1508
-
1509
-
1510
-
1511
- usecase: "TS",
1512
-
1513
-
1514
-
1515
-
1516
- description: "TS",
1517
-
1518
-
1519
-
1520
- embedded_link: true,
1521
-
1522
-
1523
-
1524
- embedded_phone: true,
1525
-
1526
-
1527
-
1528
- affiliate_marketing: true,
1529
-
1530
-
1531
-
1532
- number_pool: true,
1533
-
1534
-
1535
-
1536
- age_gated: true,
1537
-
1538
-
1539
-
1540
- direct_lending: true,
1541
-
1542
-
1543
-
1544
- subscriber_optin: true,
1545
-
1546
-
1547
-
1548
- subscriber_optout: true,
1549
-
1550
-
1551
-
1552
- subscriber_help: true,
1553
-
1554
-
1555
-
1556
-
1557
- sample1: "TS",
1558
-
1559
-
1560
-
1561
-
1562
- sample2: "TS",
1563
-
1564
-
1565
-
1566
-
1567
- sample3: "TS",
1568
-
1569
-
1570
-
1571
-
1572
- sample4: "TS",
1573
-
1574
-
1575
-
1576
-
1577
- sample5: "TS",
1578
-
1579
-
1580
-
1581
-
1582
- message_flow: "TS",
1583
-
1584
-
1585
-
1586
-
1587
- help_message: "TS",
1588
-
1589
-
1590
-
1591
-
1592
- optin_keywords: "TS",
1593
-
1594
-
1595
-
1596
-
1597
- optout_keywords: "TS",
1598
-
1599
-
1600
-
1601
-
1602
- help_keywords: "TS",
1603
-
1604
-
1605
-
1606
-
1607
- optin_message: "TS",
1608
-
1609
-
1610
-
1611
-
1612
- optout_message: "TS",
1613
-
1614
-
1615
-
1616
-
1617
-
1618
-
1619
- brand: SMSTenDLCPartnerCampaignBrand.new(),
1620
-
1621
- )
478
+ account_id: "TS",
479
+
480
+ campaign_id: "TS",
481
+
482
+ status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
483
+
484
+ create_date: "2022-07-05T15:17:05Z",
485
+
486
+ brand_id: "TS",
487
+
488
+ usecase: "TS",
489
+
490
+ description: "TS",
491
+
492
+ embedded_link: true,
493
+
494
+ embedded_phone: true,
495
+
496
+ affiliate_marketing: true,
497
+
498
+ number_pool: true,
499
+
500
+ age_gated: true,
501
+
502
+ direct_lending: true,
503
+
504
+ subscriber_optin: true,
505
+
506
+ subscriber_optout: true,
507
+
508
+ subscriber_help: true,
509
+
510
+ sample1: "TS",
511
+
512
+ sample2: "TS",
513
+
514
+ sample3: "TS",
515
+
516
+ sample4: "TS",
517
+
518
+ sample5: "TS",
519
+
520
+ message_flow: "TS",
521
+
522
+ help_message: "TS",
523
+
524
+ optin_keywords: "TS",
525
+
526
+ optout_keywords: "TS",
527
+
528
+ help_keywords: "TS",
529
+
530
+ optin_message: "TS",
531
+
532
+ optout_message: "TS",
533
+
534
+ brand: SMSTenDLCPartnerCampaignBrand.new
535
+ )
536
+ expect(instance.valid?).to eq(true)
537
+ end
538
+
539
+ skip "checks if properties are invalid" do
540
+ instance = Freeclimb::SMSTenDLCPartnerCampaign.new
541
+
542
+ expect(instance.valid?).to eq(false)
543
+ end
544
+ end
545
+
546
+ describe 'test method "eql?"' do
547
+ it "checks if objects are equal" do
548
+ obj_SMSTenDLCPartnerCampaignBrand = SMSTenDLCPartnerCampaignBrand.new
549
+
550
+ instance_1 = Freeclimb::SMSTenDLCPartnerCampaign.new(
551
+ account_id: "TS",
552
+
553
+ campaign_id: "TS",
554
+
555
+ status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
556
+
557
+ brand_id: "TS",
558
+
559
+ usecase: "TS",
560
+
561
+ description: "TS",
562
+
563
+ embedded_link: true,
564
+
565
+ embedded_phone: true,
566
+
567
+ affiliate_marketing: true,
568
+
569
+ number_pool: true,
570
+
571
+ age_gated: true,
572
+
573
+ direct_lending: true,
574
+
575
+ subscriber_optin: true,
576
+
577
+ subscriber_optout: true,
578
+
579
+ subscriber_help: true,
580
+
581
+ sample1: "TS",
582
+
583
+ sample2: "TS",
584
+
585
+ sample3: "TS",
586
+
587
+ sample4: "TS",
588
+
589
+ sample5: "TS",
590
+
591
+ message_flow: "TS",
592
+
593
+ help_message: "TS",
594
+
595
+ optin_keywords: "TS",
596
+
597
+ optout_keywords: "TS",
598
+
599
+ help_keywords: "TS",
600
+
601
+ optin_message: "TS",
602
+
603
+ optout_message: "TS",
604
+
605
+ brand: obj_SMSTenDLCPartnerCampaignBrand
606
+ )
607
+ instance_2 = Freeclimb::SMSTenDLCPartnerCampaign.new(
608
+ account_id: "TS",
609
+
610
+ campaign_id: "TS",
611
+
612
+ status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
613
+
614
+ brand_id: "TS",
615
+
616
+ usecase: "TS",
617
+
618
+ description: "TS",
619
+
620
+ embedded_link: true,
621
+
622
+ embedded_phone: true,
623
+
624
+ affiliate_marketing: true,
625
+
626
+ number_pool: true,
627
+
628
+ age_gated: true,
629
+
630
+ direct_lending: true,
631
+
632
+ subscriber_optin: true,
633
+
634
+ subscriber_optout: true,
635
+
636
+ subscriber_help: true,
637
+
638
+ sample1: "TS",
639
+
640
+ sample2: "TS",
641
+
642
+ sample3: "TS",
643
+
644
+ sample4: "TS",
645
+
646
+ sample5: "TS",
647
+
648
+ message_flow: "TS",
649
+
650
+ help_message: "TS",
651
+
652
+ optin_keywords: "TS",
653
+
654
+ optout_keywords: "TS",
655
+
656
+ help_keywords: "TS",
657
+
658
+ optin_message: "TS",
659
+
660
+ optout_message: "TS",
661
+
662
+ brand: obj_SMSTenDLCPartnerCampaignBrand
663
+ )
664
+ expect(instance_1.eql?(instance_2)).to eq(true)
665
+ end
666
+
667
+ it "checks if objects are not equal" do
668
+ instance_1 = Freeclimb::SMSTenDLCPartnerCampaign.new(
669
+ account_id: "TS",
670
+
671
+ campaign_id: "TS",
672
+
673
+ status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
674
+
675
+ brand_id: "TS",
676
+
677
+ usecase: "TS",
678
+
679
+ description: "TS",
680
+
681
+ embedded_link: true,
682
+
683
+ embedded_phone: true,
684
+
685
+ affiliate_marketing: true,
686
+
687
+ number_pool: true,
688
+
689
+ age_gated: true,
690
+
691
+ direct_lending: true,
692
+
693
+ subscriber_optin: true,
694
+
695
+ subscriber_optout: true,
696
+
697
+ subscriber_help: true,
698
+
699
+ sample1: "TS",
700
+
701
+ sample2: "TS",
702
+
703
+ sample3: "TS",
704
+
705
+ sample4: "TS",
706
+
707
+ sample5: "TS",
708
+
709
+ message_flow: "TS",
710
+
711
+ help_message: "TS",
712
+
713
+ optin_keywords: "TS",
714
+
715
+ optout_keywords: "TS",
716
+
717
+ help_keywords: "TS",
718
+
719
+ optin_message: "TS",
720
+
721
+ optout_message: "TS",
722
+
723
+ brand: SMSTenDLCPartnerCampaignBrand.new
724
+ )
725
+ instance_2 = Freeclimb::SMSTenDLCPartnerCampaign.new(
726
+ account_id: "ST",
727
+
728
+ campaign_id: "ST",
729
+
730
+ status: nil,
731
+
732
+ brand_id: "ST",
733
+
734
+ usecase: "ST",
735
+
736
+ description: "ST",
737
+
738
+ embedded_link: false,
739
+
740
+ embedded_phone: false,
741
+
742
+ affiliate_marketing: false,
743
+
744
+ number_pool: false,
745
+
746
+ age_gated: false,
747
+
748
+ direct_lending: false,
749
+
750
+ subscriber_optin: false,
751
+
752
+ subscriber_optout: false,
753
+
754
+ subscriber_help: false,
755
+
756
+ sample1: "ST",
757
+
758
+ sample2: "ST",
759
+
760
+ sample3: "ST",
761
+
762
+ sample4: "ST",
763
+
764
+ sample5: "ST",
765
+
766
+ message_flow: "ST",
767
+
768
+ help_message: "ST",
769
+
770
+ optin_keywords: "ST",
771
+
772
+ optout_keywords: "ST",
773
+
774
+ help_keywords: "ST",
775
+
776
+ optin_message: "ST",
777
+
778
+ optout_message: "ST",
779
+
780
+ brand: SMSTenDLCPartnerCampaignBrand.new
781
+ )
782
+ expect(instance_1.eql?(instance_2)).to eq(false)
783
+ end
784
+ end
785
+
786
+ describe 'test method "hash"' do
787
+ it "calculates hash code" do
788
+ instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
789
+ account_id: "TS",
790
+
791
+ campaign_id: "TS",
792
+
793
+ status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
794
+
795
+ create_date: "2022-07-05T15:17:05Z",
796
+
797
+ brand_id: "TS",
798
+
799
+ usecase: "TS",
800
+
801
+ description: "TS",
802
+
803
+ embedded_link: true,
804
+
805
+ embedded_phone: true,
806
+
807
+ affiliate_marketing: true,
808
+
809
+ number_pool: true,
810
+
811
+ age_gated: true,
812
+
813
+ direct_lending: true,
814
+
815
+ subscriber_optin: true,
816
+
817
+ subscriber_optout: true,
818
+
819
+ subscriber_help: true,
820
+
821
+ sample1: "TS",
822
+
823
+ sample2: "TS",
824
+
825
+ sample3: "TS",
826
+
827
+ sample4: "TS",
828
+
829
+ sample5: "TS",
830
+
831
+ message_flow: "TS",
832
+
833
+ help_message: "TS",
834
+
835
+ optin_keywords: "TS",
836
+
837
+ optout_keywords: "TS",
838
+
839
+ help_keywords: "TS",
840
+
841
+ optin_message: "TS",
842
+
843
+ optout_message: "TS",
844
+
845
+ brand: SMSTenDLCPartnerCampaignBrand.new
846
+ )
1622
847
  expect(instance.hash).to be_a_kind_of(Integer)
1623
848
  end
1624
849
  end
1625
850
 
1626
851
  describe 'test method "build_from_hash"' do
1627
- it 'builds equivalent model from hash code' do
852
+ it "builds equivalent model from hash code" do
1628
853
  instance_1 = Freeclimb::SMSTenDLCPartnerCampaign.new(
1629
-
1630
854
  account_id: "TS",
1631
-
1632
-
1633
-
1634
-
855
+
1635
856
  campaign_id: "TS",
1636
-
1637
-
1638
-
1639
-
857
+
1640
858
  status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
1641
-
1642
-
1643
-
1644
-
859
+
1645
860
  create_date: "2022-07-05T15:17:05Z",
1646
-
1647
-
1648
-
861
+
1649
862
  brand_id: "TS",
1650
-
1651
-
1652
-
1653
-
863
+
1654
864
  usecase: "TS",
1655
-
1656
-
1657
-
1658
-
865
+
1659
866
  description: "TS",
1660
-
1661
-
1662
-
867
+
1663
868
  embedded_link: true,
1664
-
1665
-
1666
-
869
+
1667
870
  embedded_phone: true,
1668
-
1669
-
1670
-
871
+
1671
872
  affiliate_marketing: true,
1672
-
1673
-
1674
-
873
+
1675
874
  number_pool: true,
1676
-
1677
-
1678
-
875
+
1679
876
  age_gated: true,
1680
-
1681
-
1682
-
877
+
1683
878
  direct_lending: true,
1684
-
1685
-
1686
-
879
+
1687
880
  subscriber_optin: true,
1688
-
1689
-
1690
-
881
+
1691
882
  subscriber_optout: true,
1692
-
1693
-
1694
-
883
+
1695
884
  subscriber_help: true,
1696
-
1697
-
1698
-
1699
-
885
+
1700
886
  sample1: "TS",
1701
-
1702
-
1703
-
1704
-
887
+
1705
888
  sample2: "TS",
1706
-
1707
-
1708
-
1709
-
889
+
1710
890
  sample3: "TS",
1711
-
1712
-
1713
-
1714
-
891
+
1715
892
  sample4: "TS",
1716
-
1717
-
1718
-
1719
-
893
+
1720
894
  sample5: "TS",
1721
-
1722
-
1723
-
1724
-
895
+
1725
896
  message_flow: "TS",
1726
-
1727
-
1728
-
1729
-
897
+
1730
898
  help_message: "TS",
1731
-
1732
-
1733
-
1734
-
899
+
1735
900
  optin_keywords: "TS",
1736
-
1737
-
1738
-
1739
-
901
+
1740
902
  optout_keywords: "TS",
1741
-
1742
-
1743
-
1744
-
903
+
1745
904
  help_keywords: "TS",
1746
-
1747
-
1748
-
1749
-
905
+
1750
906
  optin_message: "TS",
1751
-
1752
-
1753
-
1754
-
907
+
1755
908
  optout_message: "TS",
1756
-
1757
-
1758
-
1759
-
1760
-
1761
-
1762
- brand: SMSTenDLCPartnerCampaignBrand.new(),
1763
-
909
+
910
+ brand: SMSTenDLCPartnerCampaignBrand.new
1764
911
  )
1765
912
  instance_2 = Freeclimb::SMSTenDLCPartnerCampaign.new(
1766
-
1767
913
  account_id: "TS",
1768
-
1769
-
1770
-
1771
-
914
+
1772
915
  campaign_id: "TS",
1773
-
1774
-
1775
-
1776
-
916
+
1777
917
  status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
1778
-
1779
-
1780
-
1781
-
918
+
1782
919
  create_date: "2022-07-05T15:17:05Z",
1783
-
1784
-
1785
-
920
+
1786
921
  brand_id: "TS",
1787
-
1788
-
1789
-
1790
-
922
+
1791
923
  usecase: "TS",
1792
-
1793
-
1794
-
1795
-
924
+
1796
925
  description: "TS",
1797
-
1798
-
1799
-
926
+
1800
927
  embedded_link: true,
1801
-
1802
-
1803
-
928
+
1804
929
  embedded_phone: true,
1805
-
1806
-
1807
-
930
+
1808
931
  affiliate_marketing: true,
1809
-
1810
-
1811
-
932
+
1812
933
  number_pool: true,
1813
-
1814
-
1815
-
934
+
1816
935
  age_gated: true,
1817
-
1818
-
1819
-
936
+
1820
937
  direct_lending: true,
1821
-
1822
-
1823
-
938
+
1824
939
  subscriber_optin: true,
1825
-
1826
-
1827
-
940
+
1828
941
  subscriber_optout: true,
1829
-
1830
-
1831
-
942
+
1832
943
  subscriber_help: true,
1833
-
1834
-
1835
-
1836
-
944
+
1837
945
  sample1: "TS",
1838
-
1839
-
1840
-
1841
-
946
+
1842
947
  sample2: "TS",
1843
-
1844
-
1845
-
1846
-
948
+
1847
949
  sample3: "TS",
1848
-
1849
-
1850
-
1851
-
950
+
1852
951
  sample4: "TS",
1853
-
1854
-
1855
-
1856
-
952
+
1857
953
  sample5: "TS",
1858
-
1859
-
1860
-
1861
-
954
+
1862
955
  message_flow: "TS",
1863
-
1864
-
1865
-
1866
-
956
+
1867
957
  help_message: "TS",
1868
-
1869
-
1870
-
1871
-
958
+
1872
959
  optin_keywords: "TS",
1873
-
1874
-
1875
-
1876
-
960
+
1877
961
  optout_keywords: "TS",
1878
-
1879
-
1880
-
1881
-
962
+
1882
963
  help_keywords: "TS",
1883
-
1884
-
1885
-
1886
-
964
+
1887
965
  optin_message: "TS",
1888
-
1889
-
1890
-
1891
-
966
+
1892
967
  optout_message: "TS",
1893
-
1894
-
1895
-
1896
-
1897
-
1898
-
1899
- brand: SMSTenDLCPartnerCampaignBrand.new(),
1900
-
968
+
969
+ brand: SMSTenDLCPartnerCampaignBrand.new
1901
970
  )
1902
971
 
1903
972
  expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
1904
973
  end
1905
974
  end
1906
975
 
1907
- describe 'test method "_deserialize"' do
1908
- instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
1909
-
1910
- account_id: "TS",
1911
-
1912
-
1913
-
1914
-
1915
- campaign_id: "TS",
1916
-
1917
-
1918
-
1919
-
1920
- status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
1921
-
1922
-
1923
-
1924
-
1925
- create_date: "2022-07-05T15:17:05Z",
1926
-
1927
-
1928
-
1929
- brand_id: "TS",
1930
-
1931
-
1932
-
1933
-
1934
- usecase: "TS",
1935
-
1936
-
1937
-
1938
-
1939
- description: "TS",
1940
-
1941
-
1942
-
1943
- embedded_link: true,
1944
-
1945
-
1946
-
1947
- embedded_phone: true,
1948
-
1949
-
1950
-
1951
- affiliate_marketing: true,
1952
-
1953
-
1954
-
1955
- number_pool: true,
1956
-
1957
-
1958
-
1959
- age_gated: true,
1960
-
1961
-
1962
-
1963
- direct_lending: true,
1964
-
1965
-
1966
-
1967
- subscriber_optin: true,
1968
-
1969
-
1970
-
1971
- subscriber_optout: true,
1972
-
1973
-
1974
-
1975
- subscriber_help: true,
1976
-
1977
-
1978
-
1979
-
1980
- sample1: "TS",
1981
-
1982
-
1983
-
1984
-
1985
- sample2: "TS",
1986
-
1987
-
1988
-
1989
-
1990
- sample3: "TS",
1991
-
1992
-
1993
-
1994
-
1995
- sample4: "TS",
1996
-
1997
-
1998
-
1999
-
2000
- sample5: "TS",
2001
-
2002
-
2003
-
2004
-
2005
- message_flow: "TS",
2006
-
2007
-
2008
-
2009
-
2010
- help_message: "TS",
2011
-
2012
-
2013
-
2014
-
2015
- optin_keywords: "TS",
2016
-
2017
-
2018
-
2019
-
2020
- optout_keywords: "TS",
2021
-
2022
-
2023
-
2024
-
2025
- help_keywords: "TS",
2026
-
2027
-
2028
-
2029
-
2030
- optin_message: "TS",
2031
-
2032
-
2033
-
2034
-
2035
- optout_message: "TS",
2036
-
2037
-
2038
-
2039
-
2040
-
2041
-
2042
- brand: SMSTenDLCPartnerCampaignBrand.new(),
2043
-
976
+ describe 'test method "_deserialize"' do
977
+ instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
978
+ account_id: "TS",
979
+
980
+ campaign_id: "TS",
981
+
982
+ status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
983
+
984
+ create_date: "2022-07-05T15:17:05Z",
985
+
986
+ brand_id: "TS",
987
+
988
+ usecase: "TS",
989
+
990
+ description: "TS",
991
+
992
+ embedded_link: true,
993
+
994
+ embedded_phone: true,
995
+
996
+ affiliate_marketing: true,
997
+
998
+ number_pool: true,
999
+
1000
+ age_gated: true,
1001
+
1002
+ direct_lending: true,
1003
+
1004
+ subscriber_optin: true,
1005
+
1006
+ subscriber_optout: true,
1007
+
1008
+ subscriber_help: true,
1009
+
1010
+ sample1: "TS",
1011
+
1012
+ sample2: "TS",
1013
+
1014
+ sample3: "TS",
1015
+
1016
+ sample4: "TS",
1017
+
1018
+ sample5: "TS",
1019
+
1020
+ message_flow: "TS",
1021
+
1022
+ help_message: "TS",
1023
+
1024
+ optin_keywords: "TS",
1025
+
1026
+ optout_keywords: "TS",
1027
+
1028
+ help_keywords: "TS",
1029
+
1030
+ optin_message: "TS",
1031
+
1032
+ optout_message: "TS",
1033
+
1034
+ brand: SMSTenDLCPartnerCampaignBrand.new
2044
1035
  )
2045
- it 'deserializes the data of account_id' do
1036
+ it "deserializes the data of account_id" do
2046
1037
  expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String)
2047
1038
  end
2048
-
2049
-
2050
- it 'deserializes the data of campaign_id' do
1039
+
1040
+ it "deserializes the data of campaign_id" do
2051
1041
  expect(instance._deserialize("String", instance.campaign_id)).to be_a_kind_of(String)
2052
1042
  end
2053
-
2054
-
2055
-
2056
-
2057
- it 'deserializes the data of create_date' do
1043
+
1044
+ it "deserializes the data of create_date" do
2058
1045
  expect(instance._deserialize("Time", instance.create_date)).to be_a_kind_of(Time)
2059
1046
  end
2060
-
2061
-
2062
- it 'deserializes the data of brand_id' do
1047
+
1048
+ it "deserializes the data of brand_id" do
2063
1049
  expect(instance._deserialize("String", instance.brand_id)).to be_a_kind_of(String)
2064
1050
  end
2065
-
2066
-
2067
- it 'deserializes the data of usecase' do
1051
+
1052
+ it "deserializes the data of usecase" do
2068
1053
  expect(instance._deserialize("String", instance.usecase)).to be_a_kind_of(String)
2069
1054
  end
2070
-
2071
-
2072
- it 'deserializes the data of description' do
1055
+
1056
+ it "deserializes the data of description" do
2073
1057
  expect(instance._deserialize("String", instance.description)).to be_a_kind_of(String)
2074
1058
  end
2075
-
2076
-
2077
-
2078
-
2079
- it 'deserializes the data of embedded_link' do
1059
+
1060
+ it "deserializes the data of embedded_link" do
2080
1061
  expect(instance._deserialize("Boolean", instance.embedded_link)).to be_a_kind_of(TrueClass)
2081
1062
  end
2082
-
2083
-
2084
- it 'deserializes the data of embedded_phone' do
1063
+
1064
+ it "deserializes the data of embedded_phone" do
2085
1065
  expect(instance._deserialize("Boolean", instance.embedded_phone)).to be_a_kind_of(TrueClass)
2086
1066
  end
2087
-
2088
-
2089
- it 'deserializes the data of affiliate_marketing' do
1067
+
1068
+ it "deserializes the data of affiliate_marketing" do
2090
1069
  expect(instance._deserialize("Boolean", instance.affiliate_marketing)).to be_a_kind_of(TrueClass)
2091
1070
  end
2092
-
2093
-
2094
- it 'deserializes the data of number_pool' do
1071
+
1072
+ it "deserializes the data of number_pool" do
2095
1073
  expect(instance._deserialize("Boolean", instance.number_pool)).to be_a_kind_of(TrueClass)
2096
1074
  end
2097
-
2098
-
2099
- it 'deserializes the data of age_gated' do
1075
+
1076
+ it "deserializes the data of age_gated" do
2100
1077
  expect(instance._deserialize("Boolean", instance.age_gated)).to be_a_kind_of(TrueClass)
2101
1078
  end
2102
-
2103
-
2104
- it 'deserializes the data of direct_lending' do
1079
+
1080
+ it "deserializes the data of direct_lending" do
2105
1081
  expect(instance._deserialize("Boolean", instance.direct_lending)).to be_a_kind_of(TrueClass)
2106
1082
  end
2107
-
2108
-
2109
- it 'deserializes the data of subscriber_optin' do
1083
+
1084
+ it "deserializes the data of subscriber_optin" do
2110
1085
  expect(instance._deserialize("Boolean", instance.subscriber_optin)).to be_a_kind_of(TrueClass)
2111
1086
  end
2112
-
2113
-
2114
- it 'deserializes the data of subscriber_optout' do
1087
+
1088
+ it "deserializes the data of subscriber_optout" do
2115
1089
  expect(instance._deserialize("Boolean", instance.subscriber_optout)).to be_a_kind_of(TrueClass)
2116
1090
  end
2117
-
2118
-
2119
- it 'deserializes the data of subscriber_help' do
1091
+
1092
+ it "deserializes the data of subscriber_help" do
2120
1093
  expect(instance._deserialize("Boolean", instance.subscriber_help)).to be_a_kind_of(TrueClass)
2121
1094
  end
2122
- it 'deserializes the data of sample1' do
1095
+ it "deserializes the data of sample1" do
2123
1096
  expect(instance._deserialize("String", instance.sample1)).to be_a_kind_of(String)
2124
1097
  end
2125
-
2126
-
2127
- it 'deserializes the data of sample2' do
1098
+
1099
+ it "deserializes the data of sample2" do
2128
1100
  expect(instance._deserialize("String", instance.sample2)).to be_a_kind_of(String)
2129
1101
  end
2130
-
2131
-
2132
- it 'deserializes the data of sample3' do
1102
+
1103
+ it "deserializes the data of sample3" do
2133
1104
  expect(instance._deserialize("String", instance.sample3)).to be_a_kind_of(String)
2134
1105
  end
2135
-
2136
-
2137
- it 'deserializes the data of sample4' do
1106
+
1107
+ it "deserializes the data of sample4" do
2138
1108
  expect(instance._deserialize("String", instance.sample4)).to be_a_kind_of(String)
2139
1109
  end
2140
-
2141
-
2142
- it 'deserializes the data of sample5' do
1110
+
1111
+ it "deserializes the data of sample5" do
2143
1112
  expect(instance._deserialize("String", instance.sample5)).to be_a_kind_of(String)
2144
1113
  end
2145
-
2146
-
2147
- it 'deserializes the data of message_flow' do
1114
+
1115
+ it "deserializes the data of message_flow" do
2148
1116
  expect(instance._deserialize("String", instance.message_flow)).to be_a_kind_of(String)
2149
1117
  end
2150
-
2151
-
2152
- it 'deserializes the data of help_message' do
1118
+
1119
+ it "deserializes the data of help_message" do
2153
1120
  expect(instance._deserialize("String", instance.help_message)).to be_a_kind_of(String)
2154
1121
  end
2155
-
2156
-
2157
- it 'deserializes the data of optin_keywords' do
1122
+
1123
+ it "deserializes the data of optin_keywords" do
2158
1124
  expect(instance._deserialize("String", instance.optin_keywords)).to be_a_kind_of(String)
2159
1125
  end
2160
-
2161
-
2162
- it 'deserializes the data of optout_keywords' do
1126
+
1127
+ it "deserializes the data of optout_keywords" do
2163
1128
  expect(instance._deserialize("String", instance.optout_keywords)).to be_a_kind_of(String)
2164
1129
  end
2165
-
2166
-
2167
- it 'deserializes the data of help_keywords' do
1130
+
1131
+ it "deserializes the data of help_keywords" do
2168
1132
  expect(instance._deserialize("String", instance.help_keywords)).to be_a_kind_of(String)
2169
1133
  end
2170
-
2171
-
2172
- it 'deserializes the data of optin_message' do
1134
+
1135
+ it "deserializes the data of optin_message" do
2173
1136
  expect(instance._deserialize("String", instance.optin_message)).to be_a_kind_of(String)
2174
1137
  end
2175
-
2176
-
2177
- it 'deserializes the data of optout_message' do
1138
+
1139
+ it "deserializes the data of optout_message" do
2178
1140
  expect(instance._deserialize("String", instance.optout_message)).to be_a_kind_of(String)
2179
1141
  end
2180
-
2181
-
2182
-
2183
-
2184
- it 'deserializes the data of brand' do
1142
+
1143
+ it "deserializes the data of brand" do
2185
1144
  expect(instance._deserialize("Object", instance.brand)).to be_a_kind_of(SMSTenDLCPartnerCampaignBrand)
2186
1145
  end
2187
-
2188
1146
  end
2189
1147
 
2190
1148
  describe 'test method "to_s"' do
2191
- it 'returns the string representation of the object' do
1149
+ it "returns the string representation of the object" do
2192
1150
  instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
2193
-
2194
1151
  account_id: "TS",
2195
-
2196
-
2197
-
2198
-
1152
+
2199
1153
  campaign_id: "TS",
2200
-
2201
-
2202
-
2203
-
1154
+
2204
1155
  status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
2205
-
2206
-
2207
-
2208
-
1156
+
2209
1157
  create_date: "2022-07-05T15:17:05Z",
2210
-
2211
-
2212
-
1158
+
2213
1159
  brand_id: "TS",
2214
-
2215
-
2216
-
2217
-
1160
+
2218
1161
  usecase: "TS",
2219
-
2220
-
2221
-
2222
-
1162
+
2223
1163
  description: "TS",
2224
-
2225
-
2226
-
1164
+
2227
1165
  embedded_link: true,
2228
-
2229
-
2230
-
1166
+
2231
1167
  embedded_phone: true,
2232
-
2233
-
2234
-
1168
+
2235
1169
  affiliate_marketing: true,
2236
-
2237
-
2238
-
1170
+
2239
1171
  number_pool: true,
2240
-
2241
-
2242
-
1172
+
2243
1173
  age_gated: true,
2244
-
2245
-
2246
-
1174
+
2247
1175
  direct_lending: true,
2248
-
2249
-
2250
-
1176
+
2251
1177
  subscriber_optin: true,
2252
-
2253
-
2254
-
1178
+
2255
1179
  subscriber_optout: true,
2256
-
2257
-
2258
-
1180
+
2259
1181
  subscriber_help: true,
2260
-
2261
-
2262
-
2263
-
1182
+
2264
1183
  sample1: "TS",
2265
-
2266
-
2267
-
2268
-
1184
+
2269
1185
  sample2: "TS",
2270
-
2271
-
2272
-
2273
-
1186
+
2274
1187
  sample3: "TS",
2275
-
2276
-
2277
-
2278
-
1188
+
2279
1189
  sample4: "TS",
2280
-
2281
-
2282
-
2283
-
1190
+
2284
1191
  sample5: "TS",
2285
-
2286
-
2287
-
2288
-
1192
+
2289
1193
  message_flow: "TS",
2290
-
2291
-
2292
-
2293
-
1194
+
2294
1195
  help_message: "TS",
2295
-
2296
-
2297
-
2298
-
1196
+
2299
1197
  optin_keywords: "TS",
2300
-
2301
-
2302
-
2303
-
1198
+
2304
1199
  optout_keywords: "TS",
2305
-
2306
-
2307
-
2308
-
1200
+
2309
1201
  help_keywords: "TS",
2310
-
2311
-
2312
-
2313
-
1202
+
2314
1203
  optin_message: "TS",
2315
-
2316
-
2317
-
2318
-
1204
+
2319
1205
  optout_message: "TS",
2320
-
2321
-
2322
-
2323
-
2324
-
2325
-
2326
- brand: SMSTenDLCPartnerCampaignBrand.new,
2327
-
1206
+
1207
+ brand: SMSTenDLCPartnerCampaignBrand.new
2328
1208
  )
2329
1209
  expect(instance.to_s).to eq(instance.to_hash.to_s)
2330
1210
  end
2331
1211
  end
2332
1212
 
2333
1213
  describe 'test method "to_hash"' do
2334
- it 'returns the object in the form of hash' do
1214
+ it "returns the object in the form of hash" do
2335
1215
  instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
2336
-
2337
1216
  account_id: "TS",
2338
-
2339
-
2340
-
2341
-
1217
+
2342
1218
  campaign_id: "TS",
2343
-
2344
-
2345
-
2346
-
1219
+
2347
1220
  status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
2348
-
2349
-
2350
-
2351
-
1221
+
2352
1222
  create_date: "2022-07-05T15:17:05Z",
2353
-
2354
-
2355
-
1223
+
2356
1224
  brand_id: "TS",
2357
-
2358
-
2359
-
2360
-
1225
+
2361
1226
  usecase: "TS",
2362
-
2363
-
2364
-
2365
-
1227
+
2366
1228
  description: "TS",
2367
-
2368
-
2369
-
1229
+
2370
1230
  embedded_link: true,
2371
-
2372
-
2373
-
1231
+
2374
1232
  embedded_phone: true,
2375
-
2376
-
2377
-
1233
+
2378
1234
  affiliate_marketing: true,
2379
-
2380
-
2381
-
1235
+
2382
1236
  number_pool: true,
2383
-
2384
-
2385
-
1237
+
2386
1238
  age_gated: true,
2387
-
2388
-
2389
-
1239
+
2390
1240
  direct_lending: true,
2391
-
2392
-
2393
-
1241
+
2394
1242
  subscriber_optin: true,
2395
-
2396
-
2397
-
1243
+
2398
1244
  subscriber_optout: true,
2399
-
2400
-
2401
-
1245
+
2402
1246
  subscriber_help: true,
2403
-
2404
-
2405
-
2406
-
1247
+
2407
1248
  sample1: "TS",
2408
-
2409
-
2410
-
2411
-
1249
+
2412
1250
  sample2: "TS",
2413
-
2414
-
2415
-
2416
-
1251
+
2417
1252
  sample3: "TS",
2418
-
2419
-
2420
-
2421
-
1253
+
2422
1254
  sample4: "TS",
2423
-
2424
-
2425
-
2426
-
1255
+
2427
1256
  sample5: "TS",
2428
-
2429
-
2430
-
2431
-
1257
+
2432
1258
  message_flow: "TS",
2433
-
2434
-
2435
-
2436
-
1259
+
2437
1260
  help_message: "TS",
2438
-
2439
-
2440
-
2441
-
1261
+
2442
1262
  optin_keywords: "TS",
2443
-
2444
-
2445
-
2446
-
1263
+
2447
1264
  optout_keywords: "TS",
2448
-
2449
-
2450
-
2451
-
1265
+
2452
1266
  help_keywords: "TS",
2453
-
2454
-
2455
-
2456
-
1267
+
2457
1268
  optin_message: "TS",
2458
-
2459
-
2460
-
2461
-
1269
+
2462
1270
  optout_message: "TS",
2463
-
2464
-
2465
-
2466
-
2467
-
2468
-
2469
- brand: SMSTenDLCPartnerCampaignBrand.new,
2470
-
1271
+
1272
+ brand: SMSTenDLCPartnerCampaignBrand.new
2471
1273
  )
2472
1274
  expect(instance.to_hash).to be_a_kind_of(Hash)
2473
1275
  end
2474
- it 'creates equal hash for two equal objects' do
2475
-
2476
-
2477
-
2478
-
2479
-
2480
-
2481
-
2482
-
2483
-
2484
-
2485
-
2486
-
2487
-
2488
-
2489
-
2490
-
2491
-
2492
-
2493
-
2494
-
2495
-
2496
-
2497
-
2498
-
2499
-
2500
-
2501
-
2502
-
2503
-
2504
- obj = SMSTenDLCPartnerCampaignBrand.new()
2505
-
1276
+ it "creates equal hash for two equal objects" do
1277
+ obj = SMSTenDLCPartnerCampaignBrand.new
1278
+
2506
1279
  instance_1 = Freeclimb::SMSTenDLCPartnerCampaign.new(
2507
-
2508
1280
  account_id: "TS",
2509
-
2510
-
2511
-
2512
-
1281
+
2513
1282
  campaign_id: "TS",
2514
-
2515
-
2516
-
2517
-
1283
+
2518
1284
  status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
2519
-
2520
-
2521
-
2522
-
1285
+
2523
1286
  create_date: "2022-07-05T15:17:05Z",
2524
-
2525
-
2526
-
1287
+
2527
1288
  brand_id: "TS",
2528
-
2529
-
2530
-
2531
-
1289
+
2532
1290
  usecase: "TS",
2533
-
2534
-
2535
-
2536
-
1291
+
2537
1292
  description: "TS",
2538
-
2539
-
2540
-
1293
+
2541
1294
  embedded_link: true,
2542
-
2543
-
2544
-
1295
+
2545
1296
  embedded_phone: true,
2546
-
2547
-
2548
-
1297
+
2549
1298
  affiliate_marketing: true,
2550
-
2551
-
2552
-
1299
+
2553
1300
  number_pool: true,
2554
-
2555
-
2556
-
1301
+
2557
1302
  age_gated: true,
2558
-
2559
-
2560
-
1303
+
2561
1304
  direct_lending: true,
2562
-
2563
-
2564
-
1305
+
2565
1306
  subscriber_optin: true,
2566
-
2567
-
2568
-
1307
+
2569
1308
  subscriber_optout: true,
2570
-
2571
-
2572
-
1309
+
2573
1310
  subscriber_help: true,
2574
-
2575
-
2576
-
2577
-
1311
+
2578
1312
  sample1: "TS",
2579
-
2580
-
2581
-
2582
-
1313
+
2583
1314
  sample2: "TS",
2584
-
2585
-
2586
-
2587
-
1315
+
2588
1316
  sample3: "TS",
2589
-
2590
-
2591
-
2592
-
1317
+
2593
1318
  sample4: "TS",
2594
-
2595
-
2596
-
2597
-
1319
+
2598
1320
  sample5: "TS",
2599
-
2600
-
2601
-
2602
-
1321
+
2603
1322
  message_flow: "TS",
2604
-
2605
-
2606
-
2607
-
1323
+
2608
1324
  help_message: "TS",
2609
-
2610
-
2611
-
2612
-
1325
+
2613
1326
  optin_keywords: "TS",
2614
-
2615
-
2616
-
2617
-
1327
+
2618
1328
  optout_keywords: "TS",
2619
-
2620
-
2621
-
2622
-
1329
+
2623
1330
  help_keywords: "TS",
2624
-
2625
-
2626
-
2627
-
1331
+
2628
1332
  optin_message: "TS",
2629
-
2630
-
2631
-
2632
-
1333
+
2633
1334
  optout_message: "TS",
2634
-
2635
-
2636
-
2637
-
2638
-
2639
-
2640
- brand: obj,
2641
-
1335
+
1336
+ brand: obj
2642
1337
  )
2643
1338
  instance_2 = Freeclimb::SMSTenDLCPartnerCampaign.new(
2644
-
2645
1339
  account_id: "TS",
2646
-
2647
-
2648
-
2649
-
1340
+
2650
1341
  campaign_id: "TS",
2651
-
2652
-
2653
-
2654
-
1342
+
2655
1343
  status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
2656
-
2657
-
2658
-
2659
-
1344
+
2660
1345
  create_date: "2022-07-05T15:17:05Z",
2661
-
2662
-
2663
-
1346
+
2664
1347
  brand_id: "TS",
2665
-
2666
-
2667
-
2668
-
1348
+
2669
1349
  usecase: "TS",
2670
-
2671
-
2672
-
2673
-
1350
+
2674
1351
  description: "TS",
2675
-
2676
-
2677
-
1352
+
2678
1353
  embedded_link: true,
2679
-
2680
-
2681
-
1354
+
2682
1355
  embedded_phone: true,
2683
-
2684
-
2685
-
1356
+
2686
1357
  affiliate_marketing: true,
2687
-
2688
-
2689
-
1358
+
2690
1359
  number_pool: true,
2691
-
2692
-
2693
-
1360
+
2694
1361
  age_gated: true,
2695
-
2696
-
2697
-
1362
+
2698
1363
  direct_lending: true,
2699
-
2700
-
2701
-
1364
+
2702
1365
  subscriber_optin: true,
2703
-
2704
-
2705
-
1366
+
2706
1367
  subscriber_optout: true,
2707
-
2708
-
2709
-
1368
+
2710
1369
  subscriber_help: true,
2711
-
2712
-
2713
-
2714
-
1370
+
2715
1371
  sample1: "TS",
2716
-
2717
-
2718
-
2719
-
1372
+
2720
1373
  sample2: "TS",
2721
-
2722
-
2723
-
2724
-
1374
+
2725
1375
  sample3: "TS",
2726
-
2727
-
2728
-
2729
-
1376
+
2730
1377
  sample4: "TS",
2731
-
2732
-
2733
-
2734
-
1378
+
2735
1379
  sample5: "TS",
2736
-
2737
-
2738
-
2739
-
1380
+
2740
1381
  message_flow: "TS",
2741
-
2742
-
2743
-
2744
-
1382
+
2745
1383
  help_message: "TS",
2746
-
2747
-
2748
-
2749
-
1384
+
2750
1385
  optin_keywords: "TS",
2751
-
2752
-
2753
-
2754
-
1386
+
2755
1387
  optout_keywords: "TS",
2756
-
2757
-
2758
-
2759
-
1388
+
2760
1389
  help_keywords: "TS",
2761
-
2762
-
2763
-
2764
-
1390
+
2765
1391
  optin_message: "TS",
2766
-
2767
-
2768
-
2769
-
1392
+
2770
1393
  optout_message: "TS",
2771
-
2772
-
2773
-
2774
-
2775
-
2776
-
2777
- brand: obj,
2778
-
1394
+
1395
+ brand: obj
2779
1396
  )
2780
1397
  expect(instance_1.to_hash).to eq(instance_2.to_hash)
2781
1398
  end
@@ -2783,197 +1400,148 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
2783
1400
 
2784
1401
  describe 'test method "_to_hash"' do
2785
1402
  instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
2786
-
2787
- account_id: "TS",
2788
-
2789
-
2790
-
2791
- campaign_id: "TS",
2792
-
2793
-
2794
-
2795
- status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
2796
-
2797
-
2798
-
2799
- create_date: "2022-07-05T15:17:05Z",
2800
-
2801
-
2802
- brand_id: "TS",
2803
-
2804
-
2805
-
2806
- usecase: "TS",
2807
-
2808
-
2809
-
2810
- description: "TS",
2811
-
2812
-
2813
- embedded_link: true,
2814
-
2815
-
2816
- embedded_phone: true,
2817
-
2818
-
2819
- affiliate_marketing: true,
2820
-
2821
-
2822
- number_pool: true,
2823
-
2824
-
2825
- age_gated: true,
2826
-
2827
-
2828
- direct_lending: true,
2829
-
2830
-
2831
- subscriber_optin: true,
2832
-
2833
-
2834
- subscriber_optout: true,
2835
-
2836
-
2837
- subscriber_help: true,
2838
-
2839
-
2840
-
2841
- sample1: "TS",
2842
-
2843
-
2844
-
2845
- sample2: "TS",
2846
-
2847
-
2848
-
2849
- sample3: "TS",
2850
-
2851
-
2852
-
2853
- sample4: "TS",
2854
-
2855
-
2856
-
2857
- sample5: "TS",
2858
-
2859
-
2860
-
2861
- message_flow: "TS",
2862
-
2863
-
2864
-
2865
- help_message: "TS",
2866
-
2867
-
2868
-
2869
- optin_keywords: "TS",
2870
-
2871
-
2872
-
2873
- optout_keywords: "TS",
2874
-
2875
-
2876
-
2877
- help_keywords: "TS",
2878
-
2879
-
2880
-
2881
- optin_message: "TS",
2882
-
2883
-
2884
-
2885
- optout_message: "TS",
2886
-
2887
-
2888
-
2889
- )
2890
- it 'returns account_id in the form of hash' do
1403
+ account_id: "TS",
1404
+
1405
+ campaign_id: "TS",
1406
+
1407
+ status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
1408
+
1409
+ create_date: "2022-07-05T15:17:05Z",
1410
+
1411
+ brand_id: "TS",
1412
+
1413
+ usecase: "TS",
1414
+
1415
+ description: "TS",
1416
+
1417
+ embedded_link: true,
1418
+
1419
+ embedded_phone: true,
1420
+
1421
+ affiliate_marketing: true,
1422
+
1423
+ number_pool: true,
1424
+
1425
+ age_gated: true,
1426
+
1427
+ direct_lending: true,
1428
+
1429
+ subscriber_optin: true,
1430
+
1431
+ subscriber_optout: true,
1432
+
1433
+ subscriber_help: true,
1434
+
1435
+ sample1: "TS",
1436
+
1437
+ sample2: "TS",
1438
+
1439
+ sample3: "TS",
1440
+
1441
+ sample4: "TS",
1442
+
1443
+ sample5: "TS",
1444
+
1445
+ message_flow: "TS",
1446
+
1447
+ help_message: "TS",
1448
+
1449
+ optin_keywords: "TS",
1450
+
1451
+ optout_keywords: "TS",
1452
+
1453
+ help_keywords: "TS",
1454
+
1455
+ optin_message: "TS",
1456
+
1457
+ optout_message: "TS"
1458
+ )
1459
+ it "returns account_id in the form of hash" do
2891
1460
  expect(instance._to_hash(instance.account_id)).to eq(instance.account_id)
2892
1461
  end
2893
- it 'returns campaign_id in the form of hash' do
1462
+ it "returns campaign_id in the form of hash" do
2894
1463
  expect(instance._to_hash(instance.campaign_id)).to eq(instance.campaign_id)
2895
1464
  end
2896
- it 'returns status in the form of hash' do
1465
+ it "returns status in the form of hash" do
2897
1466
  expect(instance._to_hash(instance.status)).to eq(instance.status)
2898
1467
  end
2899
- it 'returns create_date in the form of hash' do
1468
+ it "returns create_date in the form of hash" do
2900
1469
  expect(instance._to_hash(instance.create_date)).to eq(instance.create_date)
2901
1470
  end
2902
- it 'returns brand_id in the form of hash' do
1471
+ it "returns brand_id in the form of hash" do
2903
1472
  expect(instance._to_hash(instance.brand_id)).to eq(instance.brand_id)
2904
1473
  end
2905
- it 'returns usecase in the form of hash' do
1474
+ it "returns usecase in the form of hash" do
2906
1475
  expect(instance._to_hash(instance.usecase)).to eq(instance.usecase)
2907
1476
  end
2908
- it 'returns description in the form of hash' do
1477
+ it "returns description in the form of hash" do
2909
1478
  expect(instance._to_hash(instance.description)).to eq(instance.description)
2910
1479
  end
2911
- it 'returns embedded_link in the form of hash' do
1480
+ it "returns embedded_link in the form of hash" do
2912
1481
  expect(instance._to_hash(instance.embedded_link)).to eq(instance.embedded_link)
2913
1482
  end
2914
- it 'returns embedded_phone in the form of hash' do
1483
+ it "returns embedded_phone in the form of hash" do
2915
1484
  expect(instance._to_hash(instance.embedded_phone)).to eq(instance.embedded_phone)
2916
1485
  end
2917
- it 'returns affiliate_marketing in the form of hash' do
1486
+ it "returns affiliate_marketing in the form of hash" do
2918
1487
  expect(instance._to_hash(instance.affiliate_marketing)).to eq(instance.affiliate_marketing)
2919
1488
  end
2920
- it 'returns number_pool in the form of hash' do
1489
+ it "returns number_pool in the form of hash" do
2921
1490
  expect(instance._to_hash(instance.number_pool)).to eq(instance.number_pool)
2922
1491
  end
2923
- it 'returns age_gated in the form of hash' do
1492
+ it "returns age_gated in the form of hash" do
2924
1493
  expect(instance._to_hash(instance.age_gated)).to eq(instance.age_gated)
2925
1494
  end
2926
- it 'returns direct_lending in the form of hash' do
1495
+ it "returns direct_lending in the form of hash" do
2927
1496
  expect(instance._to_hash(instance.direct_lending)).to eq(instance.direct_lending)
2928
1497
  end
2929
- it 'returns subscriber_optin in the form of hash' do
1498
+ it "returns subscriber_optin in the form of hash" do
2930
1499
  expect(instance._to_hash(instance.subscriber_optin)).to eq(instance.subscriber_optin)
2931
1500
  end
2932
- it 'returns subscriber_optout in the form of hash' do
1501
+ it "returns subscriber_optout in the form of hash" do
2933
1502
  expect(instance._to_hash(instance.subscriber_optout)).to eq(instance.subscriber_optout)
2934
1503
  end
2935
- it 'returns subscriber_help in the form of hash' do
1504
+ it "returns subscriber_help in the form of hash" do
2936
1505
  expect(instance._to_hash(instance.subscriber_help)).to eq(instance.subscriber_help)
2937
1506
  end
2938
- it 'returns sample1 in the form of hash' do
1507
+ it "returns sample1 in the form of hash" do
2939
1508
  expect(instance._to_hash(instance.sample1)).to eq(instance.sample1)
2940
1509
  end
2941
- it 'returns sample2 in the form of hash' do
1510
+ it "returns sample2 in the form of hash" do
2942
1511
  expect(instance._to_hash(instance.sample2)).to eq(instance.sample2)
2943
1512
  end
2944
- it 'returns sample3 in the form of hash' do
1513
+ it "returns sample3 in the form of hash" do
2945
1514
  expect(instance._to_hash(instance.sample3)).to eq(instance.sample3)
2946
1515
  end
2947
- it 'returns sample4 in the form of hash' do
1516
+ it "returns sample4 in the form of hash" do
2948
1517
  expect(instance._to_hash(instance.sample4)).to eq(instance.sample4)
2949
1518
  end
2950
- it 'returns sample5 in the form of hash' do
1519
+ it "returns sample5 in the form of hash" do
2951
1520
  expect(instance._to_hash(instance.sample5)).to eq(instance.sample5)
2952
1521
  end
2953
- it 'returns message_flow in the form of hash' do
1522
+ it "returns message_flow in the form of hash" do
2954
1523
  expect(instance._to_hash(instance.message_flow)).to eq(instance.message_flow)
2955
1524
  end
2956
- it 'returns help_message in the form of hash' do
1525
+ it "returns help_message in the form of hash" do
2957
1526
  expect(instance._to_hash(instance.help_message)).to eq(instance.help_message)
2958
1527
  end
2959
- it 'returns optin_keywords in the form of hash' do
1528
+ it "returns optin_keywords in the form of hash" do
2960
1529
  expect(instance._to_hash(instance.optin_keywords)).to eq(instance.optin_keywords)
2961
1530
  end
2962
- it 'returns optout_keywords in the form of hash' do
1531
+ it "returns optout_keywords in the form of hash" do
2963
1532
  expect(instance._to_hash(instance.optout_keywords)).to eq(instance.optout_keywords)
2964
1533
  end
2965
- it 'returns help_keywords in the form of hash' do
1534
+ it "returns help_keywords in the form of hash" do
2966
1535
  expect(instance._to_hash(instance.help_keywords)).to eq(instance.help_keywords)
2967
1536
  end
2968
- it 'returns optin_message in the form of hash' do
1537
+ it "returns optin_message in the form of hash" do
2969
1538
  expect(instance._to_hash(instance.optin_message)).to eq(instance.optin_message)
2970
1539
  end
2971
- it 'returns optout_message in the form of hash' do
1540
+ it "returns optout_message in the form of hash" do
2972
1541
  expect(instance._to_hash(instance.optout_message)).to eq(instance.optout_message)
2973
1542
  end
2974
- it 'returns brand in the form of hash' do
1543
+ it "returns brand in the form of hash" do
2975
1544
  expect(instance._to_hash(instance.brand)).to eq(instance.brand)
2976
1545
  end
2977
1546
  end
2978
-
2979
1547
  end