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::SMSTenDLCCampaign
18
19
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
@@ -28,25 +29,34 @@ describe Freeclimb::SMSTenDLCCampaign 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
  describe 'test attribute "csp_id"' do
46
53
  it 'should work' do
54
+
47
55
  instance.csp_id = "TEST_STRING"
48
56
  expect(instance.csp_id).to eq("TEST_STRING")
49
57
 
58
+
59
+
50
60
  end
51
61
  end
52
62
 
@@ -56,34 +66,28 @@ describe Freeclimb::SMSTenDLCCampaign do
56
66
  expect(instance.reseller_id).to eq("T" * 8)
57
67
  end
58
68
  it 'should not assign a value over maxLength' do
59
- expect{instance.reseller_id = "T" * (8 + 1)}.to raise_error(ArgumentError)
69
+ expect { instance.reseller_id = "T" * (8 + 1) }.to raise_error(ArgumentError)
60
70
  end
61
71
  end
62
72
 
63
73
 
64
74
  describe 'test attribute "status"' do
65
-
66
75
  it 'assigns value ACTIVE' do
67
- instance.status = "ACTIVE"
68
- expect(instance.status).to eq("ACTIVE")
76
+ instance.status = Freeclimb::SMSTenDLCCampaignStatus::ACTIVE
77
+ expect(instance.status).to eq(Freeclimb::SMSTenDLCCampaignStatus::ACTIVE)
69
78
  end
70
-
71
79
  it 'assigns value EXPIRED' do
72
- instance.status = "EXPIRED"
73
- expect(instance.status).to eq("EXPIRED")
74
- end
75
-
76
- it 'throws error on invalid enum' do
77
- instance = Freeclimb::SMSTenDLCCampaign.new
78
- expect{instance.status = "INVALID_ENUM"}.to raise_error(ArgumentError)
80
+ instance.status = Freeclimb::SMSTenDLCCampaignStatus::EXPIRED
81
+ expect(instance.status).to eq(Freeclimb::SMSTenDLCCampaignStatus::EXPIRED)
79
82
  end
80
83
  end
81
-
82
84
  describe 'test attribute "create_date"' do
83
85
  it 'should work' do
84
86
  instance.create_date = "2022-07-05T15:17:05Z"
85
87
  expect(instance.create_date).to eq("2022-07-05T15:17:05Z")
86
88
 
89
+
90
+
87
91
  end
88
92
  end
89
93
 
@@ -92,6 +96,8 @@ describe Freeclimb::SMSTenDLCCampaign do
92
96
  instance.auto_renewal = false
93
97
  expect(instance.auto_renewal).to eq(false)
94
98
 
99
+
100
+
95
101
  end
96
102
  end
97
103
 
@@ -100,6 +106,8 @@ describe Freeclimb::SMSTenDLCCampaign do
100
106
  instance.billed_date = "2022-07-05T15:17:05Z"
101
107
  expect(instance.billed_date).to eq("2022-07-05T15:17:05Z")
102
108
 
109
+
110
+
103
111
  end
104
112
  end
105
113
 
@@ -109,7 +117,7 @@ describe Freeclimb::SMSTenDLCCampaign do
109
117
  expect(instance.brand_id).to eq("T" * 8)
110
118
  end
111
119
  it 'should not assign a value over maxLength' do
112
- expect{instance.brand_id = "T" * (8 + 1)}.to raise_error(ArgumentError)
120
+ expect { instance.brand_id = "T" * (8 + 1) }.to raise_error(ArgumentError)
113
121
  end
114
122
  end
115
123
 
@@ -119,7 +127,7 @@ describe Freeclimb::SMSTenDLCCampaign do
119
127
  expect(instance.usecase).to eq("T" * 20)
120
128
  end
121
129
  it 'should not assign a value over maxLength' do
122
- expect{instance.usecase = "T" * (20 + 1)}.to raise_error(ArgumentError)
130
+ expect { instance.usecase = "T" * (20 + 1) }.to raise_error(ArgumentError)
123
131
  end
124
132
  end
125
133
 
@@ -128,6 +136,8 @@ describe Freeclimb::SMSTenDLCCampaign do
128
136
 
129
137
  instance.sub_usecases = ["ELEMENT_1", "ELEMENT_2"]
130
138
  expect(instance.sub_usecases).to eq(["ELEMENT_1", "ELEMENT_2"])
139
+
140
+
131
141
  end
132
142
  end
133
143
 
@@ -137,7 +147,7 @@ describe Freeclimb::SMSTenDLCCampaign do
137
147
  expect(instance.description).to eq("T" * 4096)
138
148
  end
139
149
  it 'should not assign a value over maxLength' do
140
- expect{instance.description = "T" * (4096 + 1)}.to raise_error(ArgumentError)
150
+ expect { instance.description = "T" * (4096 + 1) }.to raise_error(ArgumentError)
141
151
  end
142
152
  end
143
153
 
@@ -146,6 +156,8 @@ describe Freeclimb::SMSTenDLCCampaign do
146
156
  instance.embedded_link = false
147
157
  expect(instance.embedded_link).to eq(false)
148
158
 
159
+
160
+
149
161
  end
150
162
  end
151
163
 
@@ -154,6 +166,8 @@ describe Freeclimb::SMSTenDLCCampaign do
154
166
  instance.embedded_phone = false
155
167
  expect(instance.embedded_phone).to eq(false)
156
168
 
169
+
170
+
157
171
  end
158
172
  end
159
173
 
@@ -162,6 +176,8 @@ describe Freeclimb::SMSTenDLCCampaign do
162
176
  instance.affiliate_marketing = false
163
177
  expect(instance.affiliate_marketing).to eq(false)
164
178
 
179
+
180
+
165
181
  end
166
182
  end
167
183
 
@@ -170,6 +186,8 @@ describe Freeclimb::SMSTenDLCCampaign do
170
186
  instance.number_pool = false
171
187
  expect(instance.number_pool).to eq(false)
172
188
 
189
+
190
+
173
191
  end
174
192
  end
175
193
 
@@ -178,6 +196,8 @@ describe Freeclimb::SMSTenDLCCampaign do
178
196
  instance.age_gated = false
179
197
  expect(instance.age_gated).to eq(false)
180
198
 
199
+
200
+
181
201
  end
182
202
  end
183
203
 
@@ -186,6 +206,8 @@ describe Freeclimb::SMSTenDLCCampaign do
186
206
  instance.direct_lending = false
187
207
  expect(instance.direct_lending).to eq(false)
188
208
 
209
+
210
+
189
211
  end
190
212
  end
191
213
 
@@ -194,6 +216,8 @@ describe Freeclimb::SMSTenDLCCampaign do
194
216
  instance.subscriber_optin = false
195
217
  expect(instance.subscriber_optin).to eq(false)
196
218
 
219
+
220
+
197
221
  end
198
222
  end
199
223
 
@@ -202,6 +226,8 @@ describe Freeclimb::SMSTenDLCCampaign do
202
226
  instance.subscriber_optout = false
203
227
  expect(instance.subscriber_optout).to eq(false)
204
228
 
229
+
230
+
205
231
  end
206
232
  end
207
233
 
@@ -210,6 +236,8 @@ describe Freeclimb::SMSTenDLCCampaign do
210
236
  instance.subscriber_help = false
211
237
  expect(instance.subscriber_help).to eq(false)
212
238
 
239
+
240
+
213
241
  end
214
242
  end
215
243
 
@@ -219,7 +247,7 @@ describe Freeclimb::SMSTenDLCCampaign do
219
247
  expect(instance.sample1).to eq("T" * 1024)
220
248
  end
221
249
  it 'should not assign a value over maxLength' do
222
- expect{instance.sample1 = "T" * (1024 + 1)}.to raise_error(ArgumentError)
250
+ expect { instance.sample1 = "T" * (1024 + 1) }.to raise_error(ArgumentError)
223
251
  end
224
252
  end
225
253
 
@@ -229,7 +257,7 @@ describe Freeclimb::SMSTenDLCCampaign do
229
257
  expect(instance.sample2).to eq("T" * 1024)
230
258
  end
231
259
  it 'should not assign a value over maxLength' do
232
- expect{instance.sample2 = "T" * (1024 + 1)}.to raise_error(ArgumentError)
260
+ expect { instance.sample2 = "T" * (1024 + 1) }.to raise_error(ArgumentError)
233
261
  end
234
262
  end
235
263
 
@@ -239,7 +267,7 @@ describe Freeclimb::SMSTenDLCCampaign do
239
267
  expect(instance.sample3).to eq("T" * 1024)
240
268
  end
241
269
  it 'should not assign a value over maxLength' do
242
- expect{instance.sample3 = "T" * (1024 + 1)}.to raise_error(ArgumentError)
270
+ expect { instance.sample3 = "T" * (1024 + 1) }.to raise_error(ArgumentError)
243
271
  end
244
272
  end
245
273
 
@@ -249,7 +277,7 @@ describe Freeclimb::SMSTenDLCCampaign do
249
277
  expect(instance.sample4).to eq("T" * 1024)
250
278
  end
251
279
  it 'should not assign a value over maxLength' do
252
- expect{instance.sample4 = "T" * (1024 + 1)}.to raise_error(ArgumentError)
280
+ expect { instance.sample4 = "T" * (1024 + 1) }.to raise_error(ArgumentError)
253
281
  end
254
282
  end
255
283
 
@@ -259,7 +287,7 @@ describe Freeclimb::SMSTenDLCCampaign do
259
287
  expect(instance.sample5).to eq("T" * 1024)
260
288
  end
261
289
  it 'should not assign a value over maxLength' do
262
- expect{instance.sample5 = "T" * (1024 + 1)}.to raise_error(ArgumentError)
290
+ expect { instance.sample5 = "T" * (1024 + 1) }.to raise_error(ArgumentError)
263
291
  end
264
292
  end
265
293
 
@@ -269,7 +297,7 @@ describe Freeclimb::SMSTenDLCCampaign do
269
297
  expect(instance.message_flow).to eq("T" * 2048)
270
298
  end
271
299
  it 'should not assign a value over maxLength' do
272
- expect{instance.message_flow = "T" * (2048 + 1)}.to raise_error(ArgumentError)
300
+ expect { instance.message_flow = "T" * (2048 + 1) }.to raise_error(ArgumentError)
273
301
  end
274
302
  end
275
303
 
@@ -279,7 +307,7 @@ describe Freeclimb::SMSTenDLCCampaign do
279
307
  expect(instance.help_message).to eq("T" * 255)
280
308
  end
281
309
  it 'should not assign a value over maxLength' do
282
- expect{instance.help_message = "T" * (255 + 1)}.to raise_error(ArgumentError)
310
+ expect { instance.help_message = "T" * (255 + 1) }.to raise_error(ArgumentError)
283
311
  end
284
312
  end
285
313
 
@@ -289,7 +317,7 @@ describe Freeclimb::SMSTenDLCCampaign do
289
317
  expect(instance.optin_keywords).to eq("T" * 255)
290
318
  end
291
319
  it 'should not assign a value over maxLength' do
292
- expect{instance.optin_keywords = "T" * (255 + 1)}.to raise_error(ArgumentError)
320
+ expect { instance.optin_keywords = "T" * (255 + 1) }.to raise_error(ArgumentError)
293
321
  end
294
322
  end
295
323
 
@@ -299,7 +327,7 @@ describe Freeclimb::SMSTenDLCCampaign do
299
327
  expect(instance.optout_keywords).to eq("T" * 255)
300
328
  end
301
329
  it 'should not assign a value over maxLength' do
302
- expect{instance.optout_keywords = "T" * (255 + 1)}.to raise_error(ArgumentError)
330
+ expect { instance.optout_keywords = "T" * (255 + 1) }.to raise_error(ArgumentError)
303
331
  end
304
332
  end
305
333
 
@@ -309,7 +337,7 @@ describe Freeclimb::SMSTenDLCCampaign do
309
337
  expect(instance.help_keywords).to eq("T" * 255)
310
338
  end
311
339
  it 'should not assign a value over maxLength' do
312
- expect{instance.help_keywords = "T" * (255 + 1)}.to raise_error(ArgumentError)
340
+ expect { instance.help_keywords = "T" * (255 + 1) }.to raise_error(ArgumentError)
313
341
  end
314
342
  end
315
343
 
@@ -319,7 +347,7 @@ describe Freeclimb::SMSTenDLCCampaign do
319
347
  expect(instance.optin_message).to eq("T" * 255)
320
348
  end
321
349
  it 'should not assign a value over maxLength' do
322
- expect{instance.optin_message = "T" * (255 + 1)}.to raise_error(ArgumentError)
350
+ expect { instance.optin_message = "T" * (255 + 1) }.to raise_error(ArgumentError)
323
351
  end
324
352
  end
325
353
 
@@ -329,7 +357,7 @@ describe Freeclimb::SMSTenDLCCampaign do
329
357
  expect(instance.optout_message).to eq("T" * 255)
330
358
  end
331
359
  it 'should not assign a value over maxLength' do
332
- expect{instance.optout_message = "T" * (255 + 1)}.to raise_error(ArgumentError)
360
+ expect { instance.optout_message = "T" * (255 + 1) }.to raise_error(ArgumentError)
333
361
  end
334
362
  end
335
363
 
@@ -339,7 +367,7 @@ describe Freeclimb::SMSTenDLCCampaign do
339
367
  expect(instance.reference_id).to eq("T" * 50)
340
368
  end
341
369
  it 'should not assign a value over maxLength' do
342
- expect{instance.reference_id = "T" * (50 + 1)}.to raise_error(ArgumentError)
370
+ expect { instance.reference_id = "T" * (50 + 1) }.to raise_error(ArgumentError)
343
371
  end
344
372
  end
345
373
 
@@ -348,6 +376,8 @@ describe Freeclimb::SMSTenDLCCampaign do
348
376
  instance.mock = false
349
377
  expect(instance.mock).to eq(false)
350
378
 
379
+
380
+
351
381
  end
352
382
  end
353
383
 
@@ -356,615 +386,2436 @@ describe Freeclimb::SMSTenDLCCampaign do
356
386
  instance.next_renewal_or_expiration_date = "2000-01-01"
357
387
  expect(instance.next_renewal_or_expiration_date).to eq("2000-01-01")
358
388
 
389
+
390
+
359
391
  end
360
392
  end
361
393
 
362
394
  describe 'test method "initialize"' do
363
395
  it 'properly initializes with values' do
364
- expect{instance = Freeclimb::SMSTenDLCCampaign.new(
365
- account_id: "TS",
366
- campaign_id: "TS",
367
- csp_id: "TS",
368
- reseller_id: "TS",
369
- status:"ACTIVE",
370
- create_date: "2022-07-05T15:17:05Z",
371
- auto_renewal: true,
372
- billed_date: "2022-07-05T15:17:05Z",
373
- brand_id: "TS",
374
- usecase: "TS",
375
- sub_usecases: Array.new(),
376
- description: "TS",
377
- embedded_link: true,
378
- embedded_phone: true,
379
- affiliate_marketing: true,
380
- number_pool: true,
381
- age_gated: true,
382
- direct_lending: true,
383
- subscriber_optin: true,
384
- subscriber_optout: true,
385
- subscriber_help: true,
386
- sample1: "TS",
387
- sample2: "TS",
388
- sample3: "TS",
389
- sample4: "TS",
390
- sample5: "TS",
391
- message_flow: "TS",
392
- help_message: "TS",
393
- optin_keywords: "TS",
394
- optout_keywords: "TS",
395
- help_keywords: "TS",
396
- optin_message: "TS",
397
- optout_message: "TS",
398
- reference_id: "TS",
399
- mock: true,
400
- next_renewal_or_expiration_date: "2000-01-01",
401
- )}.not_to raise_error()
396
+ expect { instance = Freeclimb::SMSTenDLCCampaign.new(
397
+
398
+ account_id: "TS",
399
+
400
+
401
+
402
+
403
+ campaign_id: "TS",
404
+
405
+
406
+
407
+
408
+ csp_id: "TS",
409
+
410
+
411
+
412
+
413
+ reseller_id: "TS",
414
+
415
+
416
+
417
+
418
+ status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
419
+
420
+
421
+
422
+
423
+ create_date: "2022-07-05T15:17:05Z",
424
+
425
+
426
+ auto_renewal: true,
427
+
428
+
429
+
430
+
431
+ billed_date: "2022-07-05T15:17:05Z",
432
+
433
+
434
+
435
+ brand_id: "TS",
436
+
437
+
438
+
439
+
440
+ usecase: "TS",
441
+
442
+
443
+
444
+ sub_usecases: Array.new(),
445
+
446
+
447
+
448
+
449
+ description: "TS",
450
+
451
+
452
+
453
+ embedded_link: true,
454
+
455
+
456
+
457
+ embedded_phone: true,
458
+
459
+
460
+
461
+ affiliate_marketing: true,
462
+
463
+
464
+
465
+ number_pool: true,
466
+
467
+
468
+
469
+ age_gated: true,
470
+
471
+
472
+
473
+ direct_lending: true,
474
+
475
+
476
+
477
+ subscriber_optin: true,
478
+
479
+
480
+
481
+ subscriber_optout: true,
482
+
483
+
484
+
485
+ subscriber_help: true,
486
+
487
+
488
+
489
+
490
+ sample1: "TS",
491
+
492
+
493
+
494
+
495
+ sample2: "TS",
496
+
497
+
498
+
499
+
500
+ sample3: "TS",
501
+
502
+
503
+
504
+
505
+ sample4: "TS",
506
+
507
+
508
+
509
+
510
+ sample5: "TS",
511
+
512
+
513
+
514
+
515
+ message_flow: "TS",
516
+
517
+
518
+
519
+
520
+ help_message: "TS",
521
+
522
+
523
+
524
+
525
+ optin_keywords: "TS",
526
+
527
+
528
+
529
+
530
+ optout_keywords: "TS",
531
+
532
+
533
+
534
+
535
+ help_keywords: "TS",
536
+
537
+
538
+
539
+
540
+ optin_message: "TS",
541
+
542
+
543
+
544
+
545
+ optout_message: "TS",
546
+
547
+
548
+
549
+
550
+ reference_id: "TS",
551
+
552
+
553
+
554
+ mock: true,
555
+
556
+
557
+
558
+
559
+ next_renewal_or_expiration_date: "2000-01-01",
560
+
561
+
562
+ )}.not_to raise_error()
402
563
  end
403
564
  it 'fails to initialize with input argument that is not a hash in Freeclimb::SMSTenDLCCampaign' do
404
- expect{instance = Freeclimb::SMSTenDLCCampaign.new(
405
- account_id: "TS",
406
- campaign_id: "TS",
407
- csp_id: "TS",
408
- reseller_id: "TS",
409
- status:"ACTIVE",
410
- create_date: "2022-07-05T15:17:05Z",
411
- auto_renewal: true,
412
- billed_date: "2022-07-05T15:17:05Z",
413
- brand_id: "TS",
414
- usecase: "TS",
415
- sub_usecases: Array.new(),
416
- description: "TS",
417
- embedded_link: true,
418
- embedded_phone: true,
419
- affiliate_marketing: true,
420
- number_pool: true,
421
- age_gated: true,
422
- direct_lending: true,
423
- subscriber_optin: true,
424
- subscriber_optout: true,
425
- subscriber_help: true,
426
- sample1: "TS",
427
- sample2: "TS",
428
- sample3: "TS",
429
- sample4: "TS",
430
- sample5: "TS",
431
- message_flow: "TS",
432
- help_message: "TS",
433
- optin_keywords: "TS",
434
- optout_keywords: "TS",
435
- help_keywords: "TS",
436
- optin_message: "TS",
437
- optout_message: "TS",
438
- reference_id: "TS",
439
- mock: true,
440
- next_renewal_or_expiration_date: "2000-01-01",
441
- invalid_attribute: true
442
- )}.to raise_error(ArgumentError)
565
+ expect { instance = Freeclimb::SMSTenDLCCampaign.new(
566
+
567
+ account_id: "TS",
568
+
569
+
570
+
571
+
572
+ campaign_id: "TS",
573
+
574
+
575
+
576
+
577
+ csp_id: "TS",
578
+
579
+
580
+
581
+
582
+ reseller_id: "TS",
583
+
584
+
585
+
586
+
587
+ status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
588
+
589
+
590
+
591
+
592
+ create_date: "2022-07-05T15:17:05Z",
593
+
594
+
595
+ auto_renewal: true,
596
+
597
+
598
+
599
+
600
+ billed_date: "2022-07-05T15:17:05Z",
601
+
602
+
603
+
604
+ brand_id: "TS",
605
+
606
+
607
+
608
+
609
+ usecase: "TS",
610
+
611
+
612
+
613
+ sub_usecases: Array.new(),
614
+
615
+
616
+
617
+
618
+ description: "TS",
619
+
620
+
621
+
622
+ embedded_link: true,
623
+
624
+
625
+
626
+ embedded_phone: true,
627
+
628
+
629
+
630
+ affiliate_marketing: true,
631
+
632
+
633
+
634
+ number_pool: true,
635
+
636
+
637
+
638
+ age_gated: true,
639
+
640
+
641
+
642
+ direct_lending: true,
643
+
644
+
645
+
646
+ subscriber_optin: true,
647
+
648
+
649
+
650
+ subscriber_optout: true,
651
+
652
+
653
+
654
+ subscriber_help: true,
655
+
656
+
657
+
658
+
659
+ sample1: "TS",
660
+
661
+
662
+
663
+
664
+ sample2: "TS",
665
+
666
+
667
+
668
+
669
+ sample3: "TS",
670
+
671
+
672
+
673
+
674
+ sample4: "TS",
675
+
676
+
677
+
678
+
679
+ sample5: "TS",
680
+
681
+
682
+
683
+
684
+ message_flow: "TS",
685
+
686
+
687
+
688
+
689
+ help_message: "TS",
690
+
691
+
692
+
693
+
694
+ optin_keywords: "TS",
695
+
696
+
697
+
698
+
699
+ optout_keywords: "TS",
700
+
701
+
702
+
703
+
704
+ help_keywords: "TS",
705
+
706
+
707
+
708
+
709
+ optin_message: "TS",
710
+
711
+
712
+
713
+
714
+ optout_message: "TS",
715
+
716
+
717
+
718
+
719
+ reference_id: "TS",
720
+
721
+
722
+
723
+ mock: true,
724
+
725
+
726
+
727
+
728
+ next_renewal_or_expiration_date: "2000-01-01",
729
+
730
+
731
+ invalid_attribute: true
732
+ )}.to raise_error(ArgumentError)
733
+ end
734
+ it 'fails to initialize with invalid attribute' do
735
+ expect { instance = Freeclimb::SMSTenDLCCampaign.new(
736
+
737
+ account_id: "TS",
738
+
739
+
740
+
741
+
742
+ campaign_id: "TS",
743
+
744
+
745
+
746
+
747
+ csp_id: "TS",
748
+
749
+
750
+
751
+
752
+ reseller_id: "TS",
753
+
754
+
755
+
756
+
757
+ status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
758
+
759
+
760
+
761
+
762
+ create_date: "2022-07-05T15:17:05Z",
763
+
764
+
765
+ auto_renewal: true,
766
+
767
+
768
+
769
+
770
+ billed_date: "2022-07-05T15:17:05Z",
771
+
772
+
773
+
774
+ brand_id: "TS",
775
+
776
+
777
+
778
+
779
+ usecase: "TS",
780
+
781
+
782
+
783
+ sub_usecases: Array.new(),
784
+
785
+
786
+
787
+
788
+ description: "TS",
789
+
790
+
791
+
792
+ embedded_link: true,
793
+
794
+
795
+
796
+ embedded_phone: true,
797
+
798
+
799
+
800
+ affiliate_marketing: true,
801
+
802
+
803
+
804
+ number_pool: true,
805
+
806
+
807
+
808
+ age_gated: true,
809
+
810
+
811
+
812
+ direct_lending: true,
813
+
814
+
815
+
816
+ subscriber_optin: true,
817
+
818
+
819
+
820
+ subscriber_optout: true,
821
+
822
+
823
+
824
+ subscriber_help: true,
825
+
826
+
827
+
828
+
829
+ sample1: "TS",
830
+
831
+
832
+
833
+
834
+ sample2: "TS",
835
+
836
+
837
+
838
+
839
+ sample3: "TS",
840
+
841
+
842
+
843
+
844
+ sample4: "TS",
845
+
846
+
847
+
848
+
849
+ sample5: "TS",
850
+
851
+
852
+
853
+
854
+ message_flow: "TS",
855
+
856
+
857
+
858
+
859
+ help_message: "TS",
860
+
861
+
862
+
863
+
864
+ optin_keywords: "TS",
865
+
866
+
867
+
868
+
869
+ optout_keywords: "TS",
870
+
871
+
872
+
873
+
874
+ help_keywords: "TS",
875
+
876
+
877
+
878
+
879
+ optin_message: "TS",
880
+
881
+
882
+
883
+
884
+ optout_message: "TS",
885
+
886
+
887
+
888
+
889
+ reference_id: "TS",
890
+
891
+
892
+
893
+ mock: true,
894
+
895
+
896
+
897
+
898
+ next_renewal_or_expiration_date: "2000-01-01",
899
+
900
+
901
+ invalid_attribute: true
902
+ )}.to raise_error(ArgumentError)
443
903
  end
444
- it 'fails to initialize with invalid attribute' do
445
- expect{instance = Freeclimb::SMSTenDLCCampaign.new(
904
+ end
905
+
906
+ describe 'test method "valid"' do
907
+ it 'checks if properties are valid' do
908
+ instance = Freeclimb::SMSTenDLCCampaign.new(
909
+
446
910
  account_id: "TS",
911
+
912
+
913
+
914
+
447
915
  campaign_id: "TS",
916
+
917
+
918
+
919
+
448
920
  csp_id: "TS",
921
+
922
+
923
+
924
+
449
925
  reseller_id: "TS",
450
- status:"ACTIVE",
926
+
927
+
928
+
929
+
930
+ status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
931
+
932
+
933
+
934
+
451
935
  create_date: "2022-07-05T15:17:05Z",
936
+
937
+
452
938
  auto_renewal: true,
939
+
940
+
941
+
942
+
453
943
  billed_date: "2022-07-05T15:17:05Z",
944
+
945
+
946
+
454
947
  brand_id: "TS",
948
+
949
+
950
+
951
+
455
952
  usecase: "TS",
953
+
954
+
955
+
456
956
  sub_usecases: Array.new(),
957
+
958
+
959
+
960
+
457
961
  description: "TS",
962
+
963
+
964
+
458
965
  embedded_link: true,
966
+
967
+
968
+
459
969
  embedded_phone: true,
970
+
971
+
972
+
460
973
  affiliate_marketing: true,
974
+
975
+
976
+
461
977
  number_pool: true,
978
+
979
+
980
+
462
981
  age_gated: true,
982
+
983
+
984
+
463
985
  direct_lending: true,
986
+
987
+
988
+
464
989
  subscriber_optin: true,
990
+
991
+
992
+
465
993
  subscriber_optout: true,
994
+
995
+
996
+
466
997
  subscriber_help: true,
998
+
999
+
1000
+
1001
+
467
1002
  sample1: "TS",
1003
+
1004
+
1005
+
1006
+
468
1007
  sample2: "TS",
1008
+
1009
+
1010
+
1011
+
469
1012
  sample3: "TS",
1013
+
1014
+
1015
+
1016
+
470
1017
  sample4: "TS",
1018
+
1019
+
1020
+
1021
+
471
1022
  sample5: "TS",
1023
+
1024
+
1025
+
1026
+
472
1027
  message_flow: "TS",
1028
+
1029
+
1030
+
1031
+
473
1032
  help_message: "TS",
1033
+
1034
+
1035
+
1036
+
474
1037
  optin_keywords: "TS",
1038
+
1039
+
1040
+
1041
+
475
1042
  optout_keywords: "TS",
1043
+
1044
+
1045
+
1046
+
476
1047
  help_keywords: "TS",
1048
+
1049
+
1050
+
1051
+
477
1052
  optin_message: "TS",
1053
+
1054
+
1055
+
1056
+
478
1057
  optout_message: "TS",
1058
+
1059
+
1060
+
1061
+
479
1062
  reference_id: "TS",
1063
+
1064
+
1065
+
480
1066
  mock: true,
1067
+
1068
+
1069
+
1070
+
481
1071
  next_renewal_or_expiration_date: "2000-01-01",
482
- invalid_attribute: true
483
- )}.to raise_error(ArgumentError)
1072
+
1073
+
1074
+ )
1075
+ expect(instance.valid?).to eq(true)
484
1076
  end
485
- end
486
-
487
- describe 'test method "valid"' do
488
- it 'checks if properties are valid' do
1077
+
1078
+
1079
+ skip 'checks if properties are invalid' do
489
1080
  instance = Freeclimb::SMSTenDLCCampaign.new(
1081
+
1082
+ )
1083
+ expect(instance.valid?).to eq(false)
1084
+ end
1085
+
1086
+ end
1087
+
1088
+ describe 'test method "eql?"' do
1089
+ it 'checks if objects are equal' do
1090
+
1091
+
1092
+
1093
+
1094
+
1095
+
1096
+
1097
+
1098
+
1099
+
1100
+
1101
+
1102
+
1103
+
1104
+
1105
+
1106
+
1107
+
1108
+
1109
+
1110
+
1111
+
1112
+
1113
+
1114
+
1115
+
1116
+
1117
+
1118
+
1119
+
1120
+
1121
+
1122
+
1123
+
1124
+
1125
+
1126
+ instance_1 = Freeclimb::SMSTenDLCCampaign.new(
1127
+
490
1128
  account_id: "TS",
1129
+
1130
+
1131
+
1132
+
491
1133
  campaign_id: "TS",
1134
+
1135
+
1136
+
1137
+
492
1138
  csp_id: "TS",
1139
+
1140
+
1141
+
1142
+
493
1143
  reseller_id: "TS",
494
- status:"ACTIVE",
495
- create_date: "2022-07-05T15:17:05Z",
1144
+
1145
+
1146
+
1147
+
1148
+
1149
+
1150
+ status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
1151
+
1152
+
1153
+
1154
+
496
1155
  auto_renewal: true,
497
- billed_date: "2022-07-05T15:17:05Z",
1156
+
1157
+
1158
+
1159
+
1160
+
1161
+
1162
+
498
1163
  brand_id: "TS",
1164
+
1165
+
1166
+
1167
+
499
1168
  usecase: "TS",
500
- sub_usecases: Array.new(),
1169
+
1170
+
1171
+
1172
+
1173
+
1174
+ sub_usecases: [],
1175
+
1176
+
501
1177
  description: "TS",
1178
+
1179
+
1180
+
502
1181
  embedded_link: true,
1182
+
1183
+
1184
+
503
1185
  embedded_phone: true,
1186
+
1187
+
1188
+
504
1189
  affiliate_marketing: true,
1190
+
1191
+
1192
+
505
1193
  number_pool: true,
1194
+
1195
+
1196
+
506
1197
  age_gated: true,
1198
+
1199
+
1200
+
507
1201
  direct_lending: true,
1202
+
1203
+
1204
+
508
1205
  subscriber_optin: true,
1206
+
1207
+
1208
+
509
1209
  subscriber_optout: true,
1210
+
1211
+
1212
+
510
1213
  subscriber_help: true,
1214
+
1215
+
1216
+
1217
+
511
1218
  sample1: "TS",
1219
+
1220
+
1221
+
1222
+
512
1223
  sample2: "TS",
1224
+
1225
+
1226
+
1227
+
513
1228
  sample3: "TS",
1229
+
1230
+
1231
+
1232
+
514
1233
  sample4: "TS",
1234
+
1235
+
1236
+
1237
+
515
1238
  sample5: "TS",
1239
+
1240
+
1241
+
1242
+
516
1243
  message_flow: "TS",
1244
+
1245
+
1246
+
1247
+
517
1248
  help_message: "TS",
1249
+
1250
+
1251
+
1252
+
518
1253
  optin_keywords: "TS",
1254
+
1255
+
1256
+
1257
+
519
1258
  optout_keywords: "TS",
1259
+
1260
+
1261
+
1262
+
520
1263
  help_keywords: "TS",
1264
+
1265
+
1266
+
1267
+
521
1268
  optin_message: "TS",
1269
+
1270
+
1271
+
1272
+
522
1273
  optout_message: "TS",
1274
+
1275
+
1276
+
1277
+
523
1278
  reference_id: "TS",
1279
+
1280
+
1281
+
524
1282
  mock: true,
525
- next_renewal_or_expiration_date: "2000-01-01",
526
- )
527
- expect(instance.valid?).to eq(true)
528
- end
529
-
530
-
531
- skip 'checks if properties are invalid' do
532
- instance = Freeclimb::SMSTenDLCCampaign.new(
533
-
1283
+
1284
+
1285
+
1286
+
1287
+
1288
+
534
1289
  )
535
- expect(instance.valid?).to eq(false)
536
- end
537
-
538
- end
539
-
540
- describe 'test method "eql?"' do
541
- it 'checks if objects are equal' do
542
- obj = Object.new()
543
- instance_1 = Freeclimb::SMSTenDLCCampaign.new(
1290
+ instance_2 = Freeclimb::SMSTenDLCCampaign.new(
1291
+
544
1292
  account_id: "TS",
1293
+
1294
+
1295
+
1296
+
545
1297
  campaign_id: "TS",
1298
+
1299
+
1300
+
1301
+
546
1302
  csp_id: "TS",
1303
+
1304
+
1305
+
1306
+
547
1307
  reseller_id: "TS",
548
- status:"ACTIVE",
1308
+
1309
+
1310
+
1311
+
1312
+
1313
+
1314
+ status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
1315
+
1316
+
1317
+
1318
+
549
1319
  auto_renewal: true,
1320
+
1321
+
1322
+
1323
+
1324
+
1325
+
1326
+
550
1327
  brand_id: "TS",
1328
+
1329
+
1330
+
1331
+
551
1332
  usecase: "TS",
1333
+
1334
+
1335
+
1336
+
1337
+
552
1338
  sub_usecases: [],
1339
+
1340
+
553
1341
  description: "TS",
1342
+
1343
+
1344
+
554
1345
  embedded_link: true,
1346
+
1347
+
1348
+
555
1349
  embedded_phone: true,
1350
+
1351
+
1352
+
556
1353
  affiliate_marketing: true,
1354
+
1355
+
1356
+
557
1357
  number_pool: true,
1358
+
1359
+
1360
+
558
1361
  age_gated: true,
1362
+
1363
+
1364
+
559
1365
  direct_lending: true,
1366
+
1367
+
1368
+
560
1369
  subscriber_optin: true,
1370
+
1371
+
1372
+
561
1373
  subscriber_optout: true,
1374
+
1375
+
1376
+
562
1377
  subscriber_help: true,
1378
+
1379
+
1380
+
1381
+
563
1382
  sample1: "TS",
1383
+
1384
+
1385
+
1386
+
564
1387
  sample2: "TS",
1388
+
1389
+
1390
+
1391
+
565
1392
  sample3: "TS",
1393
+
1394
+
1395
+
1396
+
566
1397
  sample4: "TS",
1398
+
1399
+
1400
+
1401
+
567
1402
  sample5: "TS",
1403
+
1404
+
1405
+
1406
+
568
1407
  message_flow: "TS",
1408
+
1409
+
1410
+
1411
+
569
1412
  help_message: "TS",
1413
+
1414
+
1415
+
1416
+
570
1417
  optin_keywords: "TS",
1418
+
1419
+
1420
+
1421
+
571
1422
  optout_keywords: "TS",
1423
+
1424
+
1425
+
1426
+
572
1427
  help_keywords: "TS",
1428
+
1429
+
1430
+
1431
+
573
1432
  optin_message: "TS",
1433
+
1434
+
1435
+
1436
+
574
1437
  optout_message: "TS",
1438
+
1439
+
1440
+
1441
+
575
1442
  reference_id: "TS",
1443
+
1444
+
1445
+
576
1446
  mock: true,
1447
+
1448
+
1449
+
1450
+
1451
+
1452
+
577
1453
  )
578
- instance_2 = Freeclimb::SMSTenDLCCampaign.new(
1454
+ expect(instance_1.eql?(instance_2)).to eq(true)
1455
+ end
1456
+
1457
+ it 'checks if objects are not equal' do
1458
+ instance_1 = Freeclimb::SMSTenDLCCampaign.new(
1459
+
579
1460
  account_id: "TS",
1461
+
1462
+
1463
+
1464
+
580
1465
  campaign_id: "TS",
1466
+
1467
+
1468
+
1469
+
581
1470
  csp_id: "TS",
1471
+
1472
+
1473
+
1474
+
582
1475
  reseller_id: "TS",
583
- status:"ACTIVE",
1476
+
1477
+
1478
+
1479
+
1480
+
1481
+
1482
+ status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
1483
+
1484
+
1485
+
1486
+
584
1487
  auto_renewal: true,
1488
+
1489
+
1490
+
1491
+
1492
+
1493
+
1494
+
585
1495
  brand_id: "TS",
1496
+
1497
+
1498
+
1499
+
586
1500
  usecase: "TS",
1501
+
1502
+
1503
+
1504
+
1505
+
587
1506
  sub_usecases: [],
1507
+
1508
+
588
1509
  description: "TS",
1510
+
1511
+
1512
+
589
1513
  embedded_link: true,
1514
+
1515
+
1516
+
590
1517
  embedded_phone: true,
1518
+
1519
+
1520
+
591
1521
  affiliate_marketing: true,
1522
+
1523
+
1524
+
592
1525
  number_pool: true,
1526
+
1527
+
1528
+
593
1529
  age_gated: true,
1530
+
1531
+
1532
+
594
1533
  direct_lending: true,
1534
+
1535
+
1536
+
595
1537
  subscriber_optin: true,
1538
+
1539
+
1540
+
596
1541
  subscriber_optout: true,
1542
+
1543
+
1544
+
597
1545
  subscriber_help: true,
1546
+
1547
+
1548
+
1549
+
598
1550
  sample1: "TS",
1551
+
1552
+
1553
+
1554
+
599
1555
  sample2: "TS",
1556
+
1557
+
1558
+
1559
+
600
1560
  sample3: "TS",
1561
+
1562
+
1563
+
1564
+
601
1565
  sample4: "TS",
1566
+
1567
+
1568
+
1569
+
602
1570
  sample5: "TS",
1571
+
1572
+
1573
+
1574
+
603
1575
  message_flow: "TS",
1576
+
1577
+
1578
+
1579
+
604
1580
  help_message: "TS",
1581
+
1582
+
1583
+
1584
+
605
1585
  optin_keywords: "TS",
1586
+
1587
+
1588
+
1589
+
606
1590
  optout_keywords: "TS",
1591
+
1592
+
1593
+
1594
+
607
1595
  help_keywords: "TS",
1596
+
1597
+
1598
+
1599
+
608
1600
  optin_message: "TS",
1601
+
1602
+
1603
+
1604
+
609
1605
  optout_message: "TS",
1606
+
1607
+
1608
+
1609
+
610
1610
  reference_id: "TS",
1611
+
1612
+
1613
+
611
1614
  mock: true,
1615
+
1616
+
1617
+
1618
+
1619
+
1620
+
612
1621
  )
613
- expect(instance_1.eql?(instance_2)).to eq(true)
1622
+ instance_2 = Freeclimb::SMSTenDLCCampaign.new(
1623
+
1624
+ account_id: "ST",
1625
+
1626
+
1627
+
1628
+
1629
+ campaign_id: "ST",
1630
+
1631
+
1632
+
1633
+
1634
+ csp_id: "ST",
1635
+
1636
+
1637
+
1638
+
1639
+ reseller_id: "ST",
1640
+
1641
+
1642
+
1643
+
1644
+
1645
+
1646
+ status: nil,
1647
+
1648
+
1649
+
1650
+
1651
+ auto_renewal: false,
1652
+
1653
+
1654
+
1655
+
1656
+
1657
+
1658
+
1659
+ brand_id: "ST",
1660
+
1661
+
1662
+
1663
+
1664
+ usecase: "ST",
1665
+
1666
+
1667
+
1668
+
1669
+
1670
+ sub_usecases: nil,
1671
+
1672
+
1673
+ description: "ST",
1674
+
1675
+
1676
+
1677
+ embedded_link: false,
1678
+
1679
+
1680
+
1681
+ embedded_phone: false,
1682
+
1683
+
1684
+
1685
+ affiliate_marketing: false,
1686
+
1687
+
1688
+
1689
+ number_pool: false,
1690
+
1691
+
1692
+
1693
+ age_gated: false,
1694
+
1695
+
1696
+
1697
+ direct_lending: false,
1698
+
1699
+
1700
+
1701
+ subscriber_optin: false,
1702
+
1703
+
1704
+
1705
+ subscriber_optout: false,
1706
+
1707
+
1708
+
1709
+ subscriber_help: false,
1710
+
1711
+
1712
+
1713
+
1714
+ sample1: "ST",
1715
+
1716
+
1717
+
1718
+
1719
+ sample2: "ST",
1720
+
1721
+
1722
+
1723
+
1724
+ sample3: "ST",
1725
+
1726
+
1727
+
1728
+
1729
+ sample4: "ST",
1730
+
1731
+
1732
+
1733
+
1734
+ sample5: "ST",
1735
+
1736
+
1737
+
1738
+
1739
+ message_flow: "ST",
1740
+
1741
+
1742
+
1743
+
1744
+ help_message: "ST",
1745
+
1746
+
1747
+
1748
+
1749
+ optin_keywords: "ST",
1750
+
1751
+
1752
+
1753
+
1754
+ optout_keywords: "ST",
1755
+
1756
+
1757
+
1758
+
1759
+ help_keywords: "ST",
1760
+
1761
+
1762
+
1763
+
1764
+ optin_message: "ST",
1765
+
1766
+
1767
+
1768
+
1769
+ optout_message: "ST",
1770
+
1771
+
1772
+
1773
+
1774
+ reference_id: "ST",
1775
+
1776
+
1777
+
1778
+ mock: false,
1779
+
1780
+
1781
+
1782
+
1783
+
1784
+
1785
+ )
1786
+ expect(instance_1.eql?(instance_2)).to eq(false)
1787
+ end
1788
+ end
1789
+
1790
+ describe 'test method "hash"' do
1791
+ it 'calculates hash code' do
1792
+ instance = Freeclimb::SMSTenDLCCampaign.new(
1793
+
1794
+ account_id: "TS",
1795
+
1796
+
1797
+
1798
+
1799
+ campaign_id: "TS",
1800
+
1801
+
1802
+
1803
+
1804
+ csp_id: "TS",
1805
+
1806
+
1807
+
1808
+
1809
+ reseller_id: "TS",
1810
+
1811
+
1812
+
1813
+
1814
+ status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
1815
+
1816
+
1817
+
1818
+
1819
+ create_date: "2022-07-05T15:17:05Z",
1820
+
1821
+
1822
+ auto_renewal: true,
1823
+
1824
+
1825
+
1826
+
1827
+ billed_date: "2022-07-05T15:17:05Z",
1828
+
1829
+
1830
+
1831
+ brand_id: "TS",
1832
+
1833
+
1834
+
1835
+
1836
+ usecase: "TS",
1837
+
1838
+
1839
+
1840
+ sub_usecases: Array.new(),
1841
+
1842
+
1843
+
1844
+
1845
+ description: "TS",
1846
+
1847
+
1848
+
1849
+ embedded_link: true,
1850
+
1851
+
1852
+
1853
+ embedded_phone: true,
1854
+
1855
+
1856
+
1857
+ affiliate_marketing: true,
1858
+
1859
+
1860
+
1861
+ number_pool: true,
1862
+
1863
+
1864
+
1865
+ age_gated: true,
1866
+
1867
+
1868
+
1869
+ direct_lending: true,
1870
+
1871
+
1872
+
1873
+ subscriber_optin: true,
1874
+
1875
+
1876
+
1877
+ subscriber_optout: true,
1878
+
1879
+
1880
+
1881
+ subscriber_help: true,
1882
+
1883
+
1884
+
1885
+
1886
+ sample1: "TS",
1887
+
1888
+
1889
+
1890
+
1891
+ sample2: "TS",
1892
+
1893
+
1894
+
1895
+
1896
+ sample3: "TS",
1897
+
1898
+
1899
+
1900
+
1901
+ sample4: "TS",
1902
+
1903
+
1904
+
1905
+
1906
+ sample5: "TS",
1907
+
1908
+
1909
+
1910
+
1911
+ message_flow: "TS",
1912
+
1913
+
1914
+
1915
+
1916
+ help_message: "TS",
1917
+
1918
+
1919
+
1920
+
1921
+ optin_keywords: "TS",
1922
+
1923
+
1924
+
1925
+
1926
+ optout_keywords: "TS",
1927
+
1928
+
1929
+
1930
+
1931
+ help_keywords: "TS",
1932
+
1933
+
1934
+
1935
+
1936
+ optin_message: "TS",
1937
+
1938
+
1939
+
1940
+
1941
+ optout_message: "TS",
1942
+
1943
+
1944
+
1945
+
1946
+ reference_id: "TS",
1947
+
1948
+
1949
+
1950
+ mock: true,
1951
+
1952
+
1953
+
1954
+
1955
+ next_renewal_or_expiration_date: "2000-01-01",
1956
+
1957
+
1958
+ )
1959
+ expect(instance.hash).to be_a_kind_of(Integer)
614
1960
  end
615
-
616
- it 'checks if objects are not equal' do
1961
+ end
1962
+
1963
+ describe 'test method "build_from_hash"' do
1964
+ it 'builds equivalent model from hash code' do
617
1965
  instance_1 = Freeclimb::SMSTenDLCCampaign.new(
618
- account_id: "TS",
619
- campaign_id: "TS",
620
- csp_id: "TS",
621
- reseller_id: "TS",
622
- status:"ACTIVE",
623
- auto_renewal: true,
624
- brand_id: "TS",
625
- usecase: "TS",
626
- sub_usecases: [],
627
- description: "TS",
628
- embedded_link: true,
629
- embedded_phone: true,
630
- affiliate_marketing: true,
631
- number_pool: true,
632
- age_gated: true,
633
- direct_lending: true,
634
- subscriber_optin: true,
635
- subscriber_optout: true,
636
- subscriber_help: true,
637
- sample1: "TS",
638
- sample2: "TS",
639
- sample3: "TS",
640
- sample4: "TS",
641
- sample5: "TS",
642
- message_flow: "TS",
643
- help_message: "TS",
644
- optin_keywords: "TS",
645
- optout_keywords: "TS",
646
- help_keywords: "TS",
647
- optin_message: "TS",
648
- optout_message: "TS",
649
- reference_id: "TS",
650
- mock: true,
1966
+
1967
+ account_id: "TS",
1968
+
1969
+
1970
+
1971
+
1972
+ campaign_id: "TS",
1973
+
1974
+
1975
+
1976
+
1977
+ csp_id: "TS",
1978
+
1979
+
1980
+
1981
+
1982
+ reseller_id: "TS",
1983
+
1984
+
1985
+
1986
+
1987
+ status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
1988
+
1989
+
1990
+
1991
+
1992
+ create_date: "2022-07-05T15:17:05Z",
1993
+
1994
+
1995
+ auto_renewal: true,
1996
+
1997
+
1998
+
1999
+
2000
+ billed_date: "2022-07-05T15:17:05Z",
2001
+
2002
+
2003
+
2004
+ brand_id: "TS",
2005
+
2006
+
2007
+
2008
+
2009
+ usecase: "TS",
2010
+
2011
+
2012
+
2013
+ sub_usecases: Array.new(),
2014
+
2015
+
2016
+
2017
+
2018
+ description: "TS",
2019
+
2020
+
2021
+
2022
+ embedded_link: true,
2023
+
2024
+
2025
+
2026
+ embedded_phone: true,
2027
+
2028
+
2029
+
2030
+ affiliate_marketing: true,
2031
+
2032
+
2033
+
2034
+ number_pool: true,
2035
+
2036
+
2037
+
2038
+ age_gated: true,
2039
+
2040
+
2041
+
2042
+ direct_lending: true,
2043
+
2044
+
2045
+
2046
+ subscriber_optin: true,
2047
+
2048
+
2049
+
2050
+ subscriber_optout: true,
2051
+
2052
+
2053
+
2054
+ subscriber_help: true,
2055
+
2056
+
2057
+
2058
+
2059
+ sample1: "TS",
2060
+
2061
+
2062
+
2063
+
2064
+ sample2: "TS",
2065
+
2066
+
2067
+
2068
+
2069
+ sample3: "TS",
2070
+
2071
+
2072
+
2073
+
2074
+ sample4: "TS",
2075
+
2076
+
2077
+
2078
+
2079
+ sample5: "TS",
2080
+
2081
+
2082
+
2083
+
2084
+ message_flow: "TS",
2085
+
2086
+
2087
+
2088
+
2089
+ help_message: "TS",
2090
+
2091
+
2092
+
2093
+
2094
+ optin_keywords: "TS",
2095
+
2096
+
2097
+
2098
+
2099
+ optout_keywords: "TS",
2100
+
2101
+
2102
+
2103
+
2104
+ help_keywords: "TS",
2105
+
2106
+
2107
+
2108
+
2109
+ optin_message: "TS",
2110
+
2111
+
2112
+
2113
+
2114
+ optout_message: "TS",
2115
+
2116
+
2117
+
2118
+
2119
+ reference_id: "TS",
2120
+
2121
+
2122
+
2123
+ mock: true,
2124
+
2125
+
2126
+
2127
+
2128
+ next_renewal_or_expiration_date: "2000-01-01",
2129
+
2130
+
651
2131
  )
652
2132
  instance_2 = Freeclimb::SMSTenDLCCampaign.new(
653
- account_id: "ST",
654
- campaign_id: "ST",
655
- csp_id: "ST",
656
- reseller_id: "ST",
657
- status:"ACTIVE",
658
- auto_renewal: false,
659
- brand_id: "ST",
660
- usecase: "ST",
661
- sub_usecases: nil,
662
- description: "ST",
663
- embedded_link: false,
664
- embedded_phone: false,
665
- affiliate_marketing: false,
666
- number_pool: false,
667
- age_gated: false,
668
- direct_lending: false,
669
- subscriber_optin: false,
670
- subscriber_optout: false,
671
- subscriber_help: false,
672
- sample1: "ST",
673
- sample2: "ST",
674
- sample3: "ST",
675
- sample4: "ST",
676
- sample5: "ST",
677
- message_flow: "ST",
678
- help_message: "ST",
679
- optin_keywords: "ST",
680
- optout_keywords: "ST",
681
- help_keywords: "ST",
682
- optin_message: "ST",
683
- optout_message: "ST",
684
- reference_id: "ST",
685
- mock: false,
686
- )
687
- expect(instance_1.eql?(instance_2)).to eq(false)
688
- end
689
- end
690
-
691
- describe 'test method "hash"' do
692
- it 'calculates hash code' do
693
- instance = Freeclimb::SMSTenDLCCampaign.new(
694
- account_id: "TS",
695
- campaign_id: "TS",
696
- csp_id: "TS",
697
- reseller_id: "TS",
698
- status:"ACTIVE",
699
- create_date: "2022-07-05T15:17:05Z",
700
- auto_renewal: true,
701
- billed_date: "2022-07-05T15:17:05Z",
702
- brand_id: "TS",
703
- usecase: "TS",
704
- sub_usecases: Array.new(),
705
- description: "TS",
706
- embedded_link: true,
707
- embedded_phone: true,
708
- affiliate_marketing: true,
709
- number_pool: true,
710
- age_gated: true,
711
- direct_lending: true,
712
- subscriber_optin: true,
713
- subscriber_optout: true,
714
- subscriber_help: true,
715
- sample1: "TS",
716
- sample2: "TS",
717
- sample3: "TS",
718
- sample4: "TS",
719
- sample5: "TS",
720
- message_flow: "TS",
721
- help_message: "TS",
722
- optin_keywords: "TS",
723
- optout_keywords: "TS",
724
- help_keywords: "TS",
725
- optin_message: "TS",
726
- optout_message: "TS",
727
- reference_id: "TS",
728
- mock: true,
729
- next_renewal_or_expiration_date: "2000-01-01",
730
- )
731
- expect(instance.hash).to be_a_kind_of(Integer)
732
- end
733
- end
734
-
735
- describe 'test method "build_from_hash"' do
736
- it 'builds equivalent model from hash code' do
737
- instance_1 = Freeclimb::SMSTenDLCCampaign.new(
2133
+
738
2134
  account_id: "TS",
2135
+
2136
+
2137
+
2138
+
739
2139
  campaign_id: "TS",
2140
+
2141
+
2142
+
2143
+
740
2144
  csp_id: "TS",
2145
+
2146
+
2147
+
2148
+
741
2149
  reseller_id: "TS",
742
- status:"ACTIVE",
2150
+
2151
+
2152
+
2153
+
2154
+ status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
2155
+
2156
+
2157
+
2158
+
743
2159
  create_date: "2022-07-05T15:17:05Z",
2160
+
2161
+
744
2162
  auto_renewal: true,
2163
+
2164
+
2165
+
2166
+
745
2167
  billed_date: "2022-07-05T15:17:05Z",
2168
+
2169
+
2170
+
746
2171
  brand_id: "TS",
2172
+
2173
+
2174
+
2175
+
747
2176
  usecase: "TS",
2177
+
2178
+
2179
+
748
2180
  sub_usecases: Array.new(),
2181
+
2182
+
2183
+
2184
+
749
2185
  description: "TS",
2186
+
2187
+
2188
+
750
2189
  embedded_link: true,
2190
+
2191
+
2192
+
751
2193
  embedded_phone: true,
2194
+
2195
+
2196
+
752
2197
  affiliate_marketing: true,
2198
+
2199
+
2200
+
753
2201
  number_pool: true,
2202
+
2203
+
2204
+
754
2205
  age_gated: true,
2206
+
2207
+
2208
+
755
2209
  direct_lending: true,
2210
+
2211
+
2212
+
756
2213
  subscriber_optin: true,
2214
+
2215
+
2216
+
757
2217
  subscriber_optout: true,
2218
+
2219
+
2220
+
758
2221
  subscriber_help: true,
2222
+
2223
+
2224
+
2225
+
759
2226
  sample1: "TS",
2227
+
2228
+
2229
+
2230
+
760
2231
  sample2: "TS",
2232
+
2233
+
2234
+
2235
+
761
2236
  sample3: "TS",
2237
+
2238
+
2239
+
2240
+
762
2241
  sample4: "TS",
2242
+
2243
+
2244
+
2245
+
763
2246
  sample5: "TS",
2247
+
2248
+
2249
+
2250
+
764
2251
  message_flow: "TS",
2252
+
2253
+
2254
+
2255
+
765
2256
  help_message: "TS",
2257
+
2258
+
2259
+
2260
+
766
2261
  optin_keywords: "TS",
2262
+
2263
+
2264
+
2265
+
767
2266
  optout_keywords: "TS",
2267
+
2268
+
2269
+
2270
+
768
2271
  help_keywords: "TS",
2272
+
2273
+
2274
+
2275
+
769
2276
  optin_message: "TS",
2277
+
2278
+
2279
+
2280
+
770
2281
  optout_message: "TS",
2282
+
2283
+
2284
+
2285
+
771
2286
  reference_id: "TS",
2287
+
2288
+
2289
+
772
2290
  mock: true,
2291
+
2292
+
2293
+
2294
+
773
2295
  next_renewal_or_expiration_date: "2000-01-01",
2296
+
2297
+
774
2298
  )
775
- instance_2 = Freeclimb::SMSTenDLCCampaign.new
2299
+
776
2300
  expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
777
2301
  end
778
2302
  end
779
2303
 
780
2304
  describe 'test method "_deserialize"' do
781
2305
  instance = Freeclimb::SMSTenDLCCampaign.new(
2306
+
782
2307
  account_id: "TS",
2308
+
2309
+
2310
+
2311
+
783
2312
  campaign_id: "TS",
2313
+
2314
+
2315
+
2316
+
784
2317
  csp_id: "TS",
2318
+
2319
+
2320
+
2321
+
785
2322
  reseller_id: "TS",
786
- status:"ACTIVE",
2323
+
2324
+
2325
+
2326
+
2327
+ status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
2328
+
2329
+
2330
+
2331
+
787
2332
  create_date: "2022-07-05T15:17:05Z",
2333
+
2334
+
788
2335
  auto_renewal: true,
2336
+
2337
+
2338
+
2339
+
789
2340
  billed_date: "2022-07-05T15:17:05Z",
2341
+
2342
+
2343
+
790
2344
  brand_id: "TS",
2345
+
2346
+
2347
+
2348
+
791
2349
  usecase: "TS",
2350
+
2351
+
2352
+
792
2353
  sub_usecases: Array.new(),
2354
+
2355
+
2356
+
2357
+
793
2358
  description: "TS",
2359
+
2360
+
2361
+
794
2362
  embedded_link: true,
2363
+
2364
+
2365
+
795
2366
  embedded_phone: true,
2367
+
2368
+
2369
+
796
2370
  affiliate_marketing: true,
2371
+
2372
+
2373
+
797
2374
  number_pool: true,
2375
+
2376
+
2377
+
798
2378
  age_gated: true,
2379
+
2380
+
2381
+
799
2382
  direct_lending: true,
2383
+
2384
+
2385
+
800
2386
  subscriber_optin: true,
2387
+
2388
+
2389
+
801
2390
  subscriber_optout: true,
2391
+
2392
+
2393
+
802
2394
  subscriber_help: true,
2395
+
2396
+
2397
+
2398
+
803
2399
  sample1: "TS",
2400
+
2401
+
2402
+
2403
+
804
2404
  sample2: "TS",
2405
+
2406
+
2407
+
2408
+
805
2409
  sample3: "TS",
2410
+
2411
+
2412
+
2413
+
806
2414
  sample4: "TS",
2415
+
2416
+
2417
+
2418
+
807
2419
  sample5: "TS",
2420
+
2421
+
2422
+
2423
+
808
2424
  message_flow: "TS",
2425
+
2426
+
2427
+
2428
+
809
2429
  help_message: "TS",
2430
+
2431
+
2432
+
2433
+
810
2434
  optin_keywords: "TS",
2435
+
2436
+
2437
+
2438
+
811
2439
  optout_keywords: "TS",
2440
+
2441
+
2442
+
2443
+
812
2444
  help_keywords: "TS",
2445
+
2446
+
2447
+
2448
+
813
2449
  optin_message: "TS",
2450
+
2451
+
2452
+
2453
+
814
2454
  optout_message: "TS",
2455
+
2456
+
2457
+
2458
+
815
2459
  reference_id: "TS",
2460
+
2461
+
2462
+
816
2463
  mock: true,
2464
+
2465
+
2466
+
2467
+
817
2468
  next_renewal_or_expiration_date: "2000-01-01",
2469
+
2470
+
818
2471
  )
819
2472
  it 'deserializes the data of account_id' do
820
2473
  expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String)
821
2474
  end
2475
+
2476
+
822
2477
  it 'deserializes the data of campaign_id' do
823
2478
  expect(instance._deserialize("String", instance.campaign_id)).to be_a_kind_of(String)
824
2479
  end
2480
+
2481
+
825
2482
  it 'deserializes the data of csp_id' do
826
2483
  expect(instance._deserialize("String", instance.csp_id)).to be_a_kind_of(String)
827
2484
  end
2485
+
2486
+
828
2487
  it 'deserializes the data of reseller_id' do
829
2488
  expect(instance._deserialize("String", instance.reseller_id)).to be_a_kind_of(String)
830
2489
  end
831
- it 'deserializes the data of status' do
832
- expect(instance._deserialize("String", instance.status)).to be_a_kind_of(String)
833
- end
2490
+
2491
+
2492
+
2493
+
834
2494
  it 'deserializes the data of create_date' do
835
2495
  expect(instance._deserialize("Time", instance.create_date)).to be_a_kind_of(Time)
836
2496
  end
2497
+
2498
+
2499
+
2500
+
837
2501
  it 'deserializes the data of auto_renewal' do
838
2502
  expect(instance._deserialize("Boolean", instance.auto_renewal)).to be_a_kind_of(TrueClass)
839
2503
  end
840
2504
  it 'deserializes the data of billed_date' do
841
2505
  expect(instance._deserialize("Time", instance.billed_date)).to be_a_kind_of(Time)
842
2506
  end
2507
+
2508
+
843
2509
  it 'deserializes the data of brand_id' do
844
2510
  expect(instance._deserialize("String", instance.brand_id)).to be_a_kind_of(String)
845
2511
  end
2512
+
2513
+
846
2514
  it 'deserializes the data of usecase' do
847
2515
  expect(instance._deserialize("String", instance.usecase)).to be_a_kind_of(String)
848
2516
  end
2517
+
2518
+
849
2519
  it 'deserializes the data of sub_usecases' do
850
2520
  expect(instance._deserialize("Array<String>", instance.sub_usecases)).to be_a_kind_of(Array)
851
2521
  end
2522
+
2523
+
852
2524
  it 'deserializes the data of description' do
853
2525
  expect(instance._deserialize("String", instance.description)).to be_a_kind_of(String)
854
2526
  end
2527
+
2528
+
2529
+
2530
+
855
2531
  it 'deserializes the data of embedded_link' do
856
2532
  expect(instance._deserialize("Boolean", instance.embedded_link)).to be_a_kind_of(TrueClass)
857
2533
  end
2534
+
2535
+
858
2536
  it 'deserializes the data of embedded_phone' do
859
2537
  expect(instance._deserialize("Boolean", instance.embedded_phone)).to be_a_kind_of(TrueClass)
860
2538
  end
2539
+
2540
+
861
2541
  it 'deserializes the data of affiliate_marketing' do
862
2542
  expect(instance._deserialize("Boolean", instance.affiliate_marketing)).to be_a_kind_of(TrueClass)
863
2543
  end
2544
+
2545
+
864
2546
  it 'deserializes the data of number_pool' do
865
2547
  expect(instance._deserialize("Boolean", instance.number_pool)).to be_a_kind_of(TrueClass)
866
2548
  end
2549
+
2550
+
867
2551
  it 'deserializes the data of age_gated' do
868
2552
  expect(instance._deserialize("Boolean", instance.age_gated)).to be_a_kind_of(TrueClass)
869
2553
  end
2554
+
2555
+
870
2556
  it 'deserializes the data of direct_lending' do
871
2557
  expect(instance._deserialize("Boolean", instance.direct_lending)).to be_a_kind_of(TrueClass)
872
2558
  end
2559
+
2560
+
873
2561
  it 'deserializes the data of subscriber_optin' do
874
2562
  expect(instance._deserialize("Boolean", instance.subscriber_optin)).to be_a_kind_of(TrueClass)
875
2563
  end
2564
+
2565
+
876
2566
  it 'deserializes the data of subscriber_optout' do
877
2567
  expect(instance._deserialize("Boolean", instance.subscriber_optout)).to be_a_kind_of(TrueClass)
878
2568
  end
2569
+
2570
+
879
2571
  it 'deserializes the data of subscriber_help' do
880
2572
  expect(instance._deserialize("Boolean", instance.subscriber_help)).to be_a_kind_of(TrueClass)
881
2573
  end
882
2574
  it 'deserializes the data of sample1' do
883
2575
  expect(instance._deserialize("String", instance.sample1)).to be_a_kind_of(String)
884
2576
  end
2577
+
2578
+
885
2579
  it 'deserializes the data of sample2' do
886
2580
  expect(instance._deserialize("String", instance.sample2)).to be_a_kind_of(String)
887
2581
  end
2582
+
2583
+
888
2584
  it 'deserializes the data of sample3' do
889
2585
  expect(instance._deserialize("String", instance.sample3)).to be_a_kind_of(String)
890
2586
  end
2587
+
2588
+
891
2589
  it 'deserializes the data of sample4' do
892
2590
  expect(instance._deserialize("String", instance.sample4)).to be_a_kind_of(String)
893
2591
  end
2592
+
2593
+
894
2594
  it 'deserializes the data of sample5' do
895
2595
  expect(instance._deserialize("String", instance.sample5)).to be_a_kind_of(String)
896
2596
  end
2597
+
2598
+
897
2599
  it 'deserializes the data of message_flow' do
898
2600
  expect(instance._deserialize("String", instance.message_flow)).to be_a_kind_of(String)
899
2601
  end
2602
+
2603
+
900
2604
  it 'deserializes the data of help_message' do
901
2605
  expect(instance._deserialize("String", instance.help_message)).to be_a_kind_of(String)
902
2606
  end
2607
+
2608
+
903
2609
  it 'deserializes the data of optin_keywords' do
904
2610
  expect(instance._deserialize("String", instance.optin_keywords)).to be_a_kind_of(String)
905
2611
  end
2612
+
2613
+
906
2614
  it 'deserializes the data of optout_keywords' do
907
2615
  expect(instance._deserialize("String", instance.optout_keywords)).to be_a_kind_of(String)
908
2616
  end
2617
+
2618
+
909
2619
  it 'deserializes the data of help_keywords' do
910
2620
  expect(instance._deserialize("String", instance.help_keywords)).to be_a_kind_of(String)
911
2621
  end
2622
+
2623
+
912
2624
  it 'deserializes the data of optin_message' do
913
2625
  expect(instance._deserialize("String", instance.optin_message)).to be_a_kind_of(String)
914
2626
  end
2627
+
2628
+
915
2629
  it 'deserializes the data of optout_message' do
916
2630
  expect(instance._deserialize("String", instance.optout_message)).to be_a_kind_of(String)
917
2631
  end
2632
+
2633
+
918
2634
  it 'deserializes the data of reference_id' do
919
2635
  expect(instance._deserialize("String", instance.reference_id)).to be_a_kind_of(String)
920
2636
  end
2637
+
2638
+
2639
+
2640
+
921
2641
  it 'deserializes the data of mock' do
922
2642
  expect(instance._deserialize("Boolean", instance.mock)).to be_a_kind_of(TrueClass)
923
2643
  end
924
2644
  it 'deserializes the data of next_renewal_or_expiration_date' do
925
2645
  expect(instance._deserialize("Date", instance.next_renewal_or_expiration_date)).to be_a_kind_of(Date)
926
2646
  end
2647
+
2648
+
927
2649
  end
928
2650
 
929
2651
  describe 'test method "to_s"' do
930
2652
  it 'returns the string representation of the object' do
931
2653
  instance = Freeclimb::SMSTenDLCCampaign.new(
2654
+
932
2655
  account_id: "TS",
2656
+
2657
+
2658
+
2659
+
933
2660
  campaign_id: "TS",
2661
+
2662
+
2663
+
2664
+
934
2665
  csp_id: "TS",
2666
+
2667
+
2668
+
2669
+
935
2670
  reseller_id: "TS",
936
- status:"ACTIVE",
2671
+
2672
+
2673
+
2674
+
2675
+ status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
2676
+
2677
+
2678
+
2679
+
937
2680
  create_date: "2022-07-05T15:17:05Z",
2681
+
2682
+
938
2683
  auto_renewal: true,
2684
+
2685
+
2686
+
2687
+
939
2688
  billed_date: "2022-07-05T15:17:05Z",
2689
+
2690
+
2691
+
940
2692
  brand_id: "TS",
2693
+
2694
+
2695
+
2696
+
941
2697
  usecase: "TS",
2698
+
2699
+
2700
+
942
2701
  sub_usecases: Array.new(),
2702
+
2703
+
2704
+
2705
+
943
2706
  description: "TS",
2707
+
2708
+
2709
+
944
2710
  embedded_link: true,
2711
+
2712
+
2713
+
945
2714
  embedded_phone: true,
2715
+
2716
+
2717
+
946
2718
  affiliate_marketing: true,
2719
+
2720
+
2721
+
947
2722
  number_pool: true,
2723
+
2724
+
2725
+
948
2726
  age_gated: true,
2727
+
2728
+
2729
+
949
2730
  direct_lending: true,
2731
+
2732
+
2733
+
950
2734
  subscriber_optin: true,
2735
+
2736
+
2737
+
951
2738
  subscriber_optout: true,
2739
+
2740
+
2741
+
952
2742
  subscriber_help: true,
2743
+
2744
+
2745
+
2746
+
953
2747
  sample1: "TS",
2748
+
2749
+
2750
+
2751
+
954
2752
  sample2: "TS",
2753
+
2754
+
2755
+
2756
+
955
2757
  sample3: "TS",
2758
+
2759
+
2760
+
2761
+
956
2762
  sample4: "TS",
2763
+
2764
+
2765
+
2766
+
957
2767
  sample5: "TS",
2768
+
2769
+
2770
+
2771
+
958
2772
  message_flow: "TS",
2773
+
2774
+
2775
+
2776
+
959
2777
  help_message: "TS",
2778
+
2779
+
2780
+
2781
+
960
2782
  optin_keywords: "TS",
2783
+
2784
+
2785
+
2786
+
961
2787
  optout_keywords: "TS",
2788
+
2789
+
2790
+
2791
+
962
2792
  help_keywords: "TS",
2793
+
2794
+
2795
+
2796
+
963
2797
  optin_message: "TS",
2798
+
2799
+
2800
+
2801
+
964
2802
  optout_message: "TS",
2803
+
2804
+
2805
+
2806
+
965
2807
  reference_id: "TS",
2808
+
2809
+
2810
+
966
2811
  mock: true,
2812
+
2813
+
2814
+
2815
+
967
2816
  next_renewal_or_expiration_date: "2000-01-01",
2817
+
2818
+
968
2819
  )
969
2820
  expect(instance.to_s).to eq(instance.to_hash.to_s)
970
2821
  end
@@ -973,122 +2824,544 @@ describe Freeclimb::SMSTenDLCCampaign do
973
2824
  describe 'test method "to_hash"' do
974
2825
  it 'returns the object in the form of hash' do
975
2826
  instance = Freeclimb::SMSTenDLCCampaign.new(
2827
+
976
2828
  account_id: "TS",
2829
+
2830
+
2831
+
2832
+
977
2833
  campaign_id: "TS",
2834
+
2835
+
2836
+
2837
+
978
2838
  csp_id: "TS",
2839
+
2840
+
2841
+
2842
+
979
2843
  reseller_id: "TS",
980
- status:"ACTIVE",
2844
+
2845
+
2846
+
2847
+
2848
+ status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
2849
+
2850
+
2851
+
2852
+
981
2853
  create_date: "2022-07-05T15:17:05Z",
2854
+
2855
+
982
2856
  auto_renewal: true,
2857
+
2858
+
2859
+
2860
+
983
2861
  billed_date: "2022-07-05T15:17:05Z",
2862
+
2863
+
2864
+
984
2865
  brand_id: "TS",
2866
+
2867
+
2868
+
2869
+
985
2870
  usecase: "TS",
2871
+
2872
+
2873
+
986
2874
  sub_usecases: Array.new(),
2875
+
2876
+
2877
+
2878
+
987
2879
  description: "TS",
2880
+
2881
+
2882
+
988
2883
  embedded_link: true,
2884
+
2885
+
2886
+
989
2887
  embedded_phone: true,
2888
+
2889
+
2890
+
990
2891
  affiliate_marketing: true,
2892
+
2893
+
2894
+
991
2895
  number_pool: true,
2896
+
2897
+
2898
+
992
2899
  age_gated: true,
2900
+
2901
+
2902
+
993
2903
  direct_lending: true,
2904
+
2905
+
2906
+
994
2907
  subscriber_optin: true,
2908
+
2909
+
2910
+
995
2911
  subscriber_optout: true,
2912
+
2913
+
2914
+
996
2915
  subscriber_help: true,
2916
+
2917
+
2918
+
2919
+
997
2920
  sample1: "TS",
2921
+
2922
+
2923
+
2924
+
998
2925
  sample2: "TS",
2926
+
2927
+
2928
+
2929
+
999
2930
  sample3: "TS",
2931
+
2932
+
2933
+
2934
+
1000
2935
  sample4: "TS",
2936
+
2937
+
2938
+
2939
+
1001
2940
  sample5: "TS",
2941
+
2942
+
2943
+
2944
+
1002
2945
  message_flow: "TS",
2946
+
2947
+
2948
+
2949
+
1003
2950
  help_message: "TS",
2951
+
2952
+
2953
+
2954
+
1004
2955
  optin_keywords: "TS",
2956
+
2957
+
2958
+
2959
+
1005
2960
  optout_keywords: "TS",
2961
+
2962
+
2963
+
2964
+
1006
2965
  help_keywords: "TS",
2966
+
2967
+
2968
+
2969
+
1007
2970
  optin_message: "TS",
2971
+
2972
+
2973
+
2974
+
1008
2975
  optout_message: "TS",
2976
+
2977
+
2978
+
2979
+
1009
2980
  reference_id: "TS",
2981
+
2982
+
2983
+
1010
2984
  mock: true,
2985
+
2986
+
2987
+
2988
+
1011
2989
  next_renewal_or_expiration_date: "2000-01-01",
2990
+
2991
+
1012
2992
  )
1013
2993
  expect(instance.to_hash).to be_a_kind_of(Hash)
1014
2994
  end
1015
2995
  it 'creates equal hash for two equal objects' do
1016
- obj = Object.new()
2996
+
2997
+
2998
+
2999
+
3000
+
3001
+
3002
+
3003
+
3004
+
3005
+
3006
+
3007
+
3008
+
3009
+
3010
+
3011
+
3012
+
3013
+
3014
+
3015
+
3016
+
3017
+
3018
+
3019
+
3020
+
3021
+
3022
+
3023
+
3024
+
3025
+
3026
+
3027
+
3028
+
3029
+
3030
+
3031
+
1017
3032
  instance_1 = Freeclimb::SMSTenDLCCampaign.new(
3033
+
1018
3034
  account_id: "TS",
3035
+
3036
+
3037
+
3038
+
1019
3039
  campaign_id: "TS",
3040
+
3041
+
3042
+
3043
+
1020
3044
  csp_id: "TS",
3045
+
3046
+
3047
+
3048
+
1021
3049
  reseller_id: "TS",
1022
- status:"ACTIVE",
3050
+
3051
+
3052
+
3053
+
3054
+ status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
3055
+
3056
+
3057
+
3058
+
1023
3059
  create_date: "2022-07-05T15:17:05Z",
3060
+
3061
+
1024
3062
  auto_renewal: true,
3063
+
3064
+
3065
+
3066
+
1025
3067
  billed_date: "2022-07-05T15:17:05Z",
3068
+
3069
+
3070
+
1026
3071
  brand_id: "TS",
3072
+
3073
+
3074
+
3075
+
1027
3076
  usecase: "TS",
3077
+
3078
+
3079
+
1028
3080
  sub_usecases: Array.new(),
3081
+
3082
+
3083
+
3084
+
1029
3085
  description: "TS",
3086
+
3087
+
3088
+
1030
3089
  embedded_link: true,
3090
+
3091
+
3092
+
1031
3093
  embedded_phone: true,
3094
+
3095
+
3096
+
1032
3097
  affiliate_marketing: true,
3098
+
3099
+
3100
+
1033
3101
  number_pool: true,
3102
+
3103
+
3104
+
1034
3105
  age_gated: true,
3106
+
3107
+
3108
+
1035
3109
  direct_lending: true,
3110
+
3111
+
3112
+
1036
3113
  subscriber_optin: true,
3114
+
3115
+
3116
+
1037
3117
  subscriber_optout: true,
3118
+
3119
+
3120
+
1038
3121
  subscriber_help: true,
3122
+
3123
+
3124
+
3125
+
1039
3126
  sample1: "TS",
3127
+
3128
+
3129
+
3130
+
1040
3131
  sample2: "TS",
3132
+
3133
+
3134
+
3135
+
1041
3136
  sample3: "TS",
3137
+
3138
+
3139
+
3140
+
1042
3141
  sample4: "TS",
3142
+
3143
+
3144
+
3145
+
1043
3146
  sample5: "TS",
3147
+
3148
+
3149
+
3150
+
1044
3151
  message_flow: "TS",
3152
+
3153
+
3154
+
3155
+
1045
3156
  help_message: "TS",
3157
+
3158
+
3159
+
3160
+
1046
3161
  optin_keywords: "TS",
3162
+
3163
+
3164
+
3165
+
1047
3166
  optout_keywords: "TS",
3167
+
3168
+
3169
+
3170
+
1048
3171
  help_keywords: "TS",
3172
+
3173
+
3174
+
3175
+
1049
3176
  optin_message: "TS",
3177
+
3178
+
3179
+
3180
+
1050
3181
  optout_message: "TS",
3182
+
3183
+
3184
+
3185
+
1051
3186
  reference_id: "TS",
3187
+
3188
+
3189
+
1052
3190
  mock: true,
3191
+
3192
+
3193
+
3194
+
1053
3195
  next_renewal_or_expiration_date: "2000-01-01",
3196
+
3197
+
1054
3198
  )
1055
3199
  instance_2 = Freeclimb::SMSTenDLCCampaign.new(
3200
+
1056
3201
  account_id: "TS",
3202
+
3203
+
3204
+
3205
+
1057
3206
  campaign_id: "TS",
3207
+
3208
+
3209
+
3210
+
1058
3211
  csp_id: "TS",
3212
+
3213
+
3214
+
3215
+
1059
3216
  reseller_id: "TS",
1060
- status:"ACTIVE",
3217
+
3218
+
3219
+
3220
+
3221
+ status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
3222
+
3223
+
3224
+
3225
+
1061
3226
  create_date: "2022-07-05T15:17:05Z",
3227
+
3228
+
1062
3229
  auto_renewal: true,
3230
+
3231
+
3232
+
3233
+
1063
3234
  billed_date: "2022-07-05T15:17:05Z",
3235
+
3236
+
3237
+
1064
3238
  brand_id: "TS",
3239
+
3240
+
3241
+
3242
+
1065
3243
  usecase: "TS",
3244
+
3245
+
3246
+
1066
3247
  sub_usecases: Array.new(),
3248
+
3249
+
3250
+
3251
+
1067
3252
  description: "TS",
3253
+
3254
+
3255
+
1068
3256
  embedded_link: true,
3257
+
3258
+
3259
+
1069
3260
  embedded_phone: true,
3261
+
3262
+
3263
+
1070
3264
  affiliate_marketing: true,
3265
+
3266
+
3267
+
1071
3268
  number_pool: true,
3269
+
3270
+
3271
+
1072
3272
  age_gated: true,
3273
+
3274
+
3275
+
1073
3276
  direct_lending: true,
3277
+
3278
+
3279
+
1074
3280
  subscriber_optin: true,
3281
+
3282
+
3283
+
1075
3284
  subscriber_optout: true,
3285
+
3286
+
3287
+
1076
3288
  subscriber_help: true,
3289
+
3290
+
3291
+
3292
+
1077
3293
  sample1: "TS",
3294
+
3295
+
3296
+
3297
+
1078
3298
  sample2: "TS",
3299
+
3300
+
3301
+
3302
+
1079
3303
  sample3: "TS",
3304
+
3305
+
3306
+
3307
+
1080
3308
  sample4: "TS",
3309
+
3310
+
3311
+
3312
+
1081
3313
  sample5: "TS",
3314
+
3315
+
3316
+
3317
+
1082
3318
  message_flow: "TS",
3319
+
3320
+
3321
+
3322
+
1083
3323
  help_message: "TS",
3324
+
3325
+
3326
+
3327
+
1084
3328
  optin_keywords: "TS",
3329
+
3330
+
3331
+
3332
+
1085
3333
  optout_keywords: "TS",
3334
+
3335
+
3336
+
3337
+
1086
3338
  help_keywords: "TS",
3339
+
3340
+
3341
+
3342
+
1087
3343
  optin_message: "TS",
3344
+
3345
+
3346
+
3347
+
1088
3348
  optout_message: "TS",
3349
+
3350
+
3351
+
3352
+
1089
3353
  reference_id: "TS",
3354
+
3355
+
3356
+
1090
3357
  mock: true,
3358
+
3359
+
3360
+
3361
+
1091
3362
  next_renewal_or_expiration_date: "2000-01-01",
3363
+
3364
+
1092
3365
  )
1093
3366
  expect(instance_1.to_hash).to eq(instance_2.to_hash)
1094
3367
  end
@@ -1096,76 +3369,133 @@ describe Freeclimb::SMSTenDLCCampaign do
1096
3369
 
1097
3370
  describe 'test method "_to_hash"' do
1098
3371
  instance = Freeclimb::SMSTenDLCCampaign.new(
3372
+
1099
3373
  account_id: "TS",
3374
+
1100
3375
 
3376
+
1101
3377
  campaign_id: "TS",
3378
+
1102
3379
 
3380
+
1103
3381
  csp_id: "TS",
3382
+
1104
3383
 
3384
+
1105
3385
  reseller_id: "TS",
3386
+
1106
3387
 
1107
- status:"ACTIVE",
3388
+
3389
+ status: Freeclimb::SMSTenDLCCampaignStatus::ACTIVE,
3390
+
1108
3391
 
3392
+
1109
3393
  create_date: "2022-07-05T15:17:05Z",
1110
3394
 
1111
3395
  auto_renewal: true,
3396
+
1112
3397
 
3398
+
1113
3399
  billed_date: "2022-07-05T15:17:05Z",
1114
3400
 
3401
+
1115
3402
  brand_id: "TS",
3403
+
1116
3404
 
3405
+
1117
3406
  usecase: "TS",
3407
+
1118
3408
 
1119
3409
  sub_usecases: Array.new(),
3410
+
1120
3411
 
3412
+
1121
3413
  description: "TS",
3414
+
1122
3415
 
1123
3416
  embedded_link: true,
3417
+
1124
3418
 
1125
3419
  embedded_phone: true,
3420
+
1126
3421
 
1127
3422
  affiliate_marketing: true,
3423
+
1128
3424
 
1129
3425
  number_pool: true,
3426
+
1130
3427
 
1131
3428
  age_gated: true,
3429
+
1132
3430
 
1133
3431
  direct_lending: true,
3432
+
1134
3433
 
1135
3434
  subscriber_optin: true,
3435
+
1136
3436
 
1137
3437
  subscriber_optout: true,
3438
+
1138
3439
 
1139
3440
  subscriber_help: true,
3441
+
1140
3442
 
3443
+
1141
3444
  sample1: "TS",
3445
+
1142
3446
 
3447
+
1143
3448
  sample2: "TS",
3449
+
1144
3450
 
3451
+
1145
3452
  sample3: "TS",
3453
+
1146
3454
 
3455
+
1147
3456
  sample4: "TS",
3457
+
1148
3458
 
3459
+
1149
3460
  sample5: "TS",
3461
+
1150
3462
 
3463
+
1151
3464
  message_flow: "TS",
3465
+
1152
3466
 
3467
+
1153
3468
  help_message: "TS",
3469
+
1154
3470
 
3471
+
1155
3472
  optin_keywords: "TS",
3473
+
1156
3474
 
3475
+
1157
3476
  optout_keywords: "TS",
3477
+
1158
3478
 
3479
+
1159
3480
  help_keywords: "TS",
3481
+
1160
3482
 
3483
+
1161
3484
  optin_message: "TS",
3485
+
1162
3486
 
3487
+
1163
3488
  optout_message: "TS",
3489
+
1164
3490
 
3491
+
1165
3492
  reference_id: "TS",
3493
+
1166
3494
 
1167
3495
  mock: true,
3496
+
1168
3497
 
3498
+
1169
3499
  next_renewal_or_expiration_date: "2000-01-01",
1170
3500
  )
1171
3501
  it 'returns account_id in the form of hash' do