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