freeclimb 4.9.0 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (438) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +14 -0
  3. data/Gemfile.lock +34 -18
  4. data/README.md +43 -51
  5. data/docs/AddToConferenceNotificationWebhook.md +42 -0
  6. data/docs/AddToQueueNotificationWebhook.md +34 -0
  7. data/docs/BargeInReason.md +18 -0
  8. data/docs/CallControlWebhook.md +26 -0
  9. data/docs/CallEndedReason.md +38 -0
  10. data/docs/CallStatusWebhook.md +36 -0
  11. data/docs/CompletionResult.md +1 -1
  12. data/docs/CompletionResultStatus.md +17 -0
  13. data/docs/ConferenceRecordingStatusWebhook.md +42 -0
  14. data/docs/ConferenceResult.md +1 -1
  15. data/docs/ConferenceStatusWebhook.md +42 -0
  16. data/docs/CreateConference.md +1 -1
  17. data/docs/CreateConferenceRequest.md +1 -1
  18. data/docs/CreateConferenceWebhook.md +42 -0
  19. data/docs/DequeueWebhook.md +38 -0
  20. data/docs/GetDigitsReason.md +19 -0
  21. data/docs/GetDigitsWebhook.md +40 -0
  22. data/docs/GetSpeechWebhook.md +50 -0
  23. data/docs/InboundCallWebhook.md +36 -0
  24. data/docs/LeaveConferenceWebhook.md +34 -0
  25. data/docs/MachineDetectedWebhook.md +38 -0
  26. data/docs/MachineType.md +2 -2
  27. data/docs/MessageDeliveryWebhook.md +36 -0
  28. data/docs/MessageStatusWebhook.md +38 -0
  29. data/docs/OutDialApiConnectWebhook.md +36 -0
  30. data/docs/OutDialConnectWebhook.md +36 -0
  31. data/docs/OutDialStartWebhook.md +38 -0
  32. data/docs/QueueWaitWebhook.md +40 -0
  33. data/docs/RecordWebhook.md +50 -0
  34. data/docs/RedirectWebhook.md +36 -0
  35. data/docs/RemoveFromQueueNotificationWebhook.md +38 -0
  36. data/docs/SMSTenDLCBrand.md +6 -6
  37. data/docs/SMSTenDLCBrandAltBusinessIdType.md +19 -0
  38. data/docs/SMSTenDLCBrandEntityType.md +20 -0
  39. data/docs/SMSTenDLCBrandIdentityStatus.md +19 -0
  40. data/docs/SMSTenDLCBrandRelationship.md +20 -0
  41. data/docs/SMSTenDLCBrandStockExchange.md +42 -0
  42. data/docs/SMSTenDLCCampaign.md +1 -1
  43. data/docs/SMSTenDLCCampaignStatus.md +17 -0
  44. data/docs/SMSTenDLCPartnerCampaign.md +1 -1
  45. data/docs/SMSTenDLCPartnerCampaignStatus.md +17 -0
  46. data/docs/SMSTollFreeCampaign.md +1 -1
  47. data/docs/SMSTollFreeCampaignRegistrationStatus.md +20 -0
  48. data/docs/TranscribeReason.md +20 -0
  49. data/docs/TranscribeTermReason.md +17 -0
  50. data/docs/TranscribeUtterance.md +2 -2
  51. data/docs/TranscribeWebhook.md +62 -0
  52. data/docs/UpdateConferenceRequest.md +1 -1
  53. data/docs/Webhook.md +18 -0
  54. data/freeclimb.gemspec +1 -1
  55. data/lib/freeclimb/api/default_api.rb +18 -18
  56. data/lib/freeclimb/api_client.rb +1 -1
  57. data/lib/freeclimb/api_error.rb +1 -1
  58. data/lib/freeclimb/configuration.rb +1 -2
  59. data/lib/freeclimb/models/account_request.rb +1 -3
  60. data/lib/freeclimb/models/account_result.rb +23 -4
  61. data/lib/freeclimb/models/account_status.rb +1 -1
  62. data/lib/freeclimb/models/account_type.rb +1 -1
  63. data/lib/freeclimb/models/add_to_conference.rb +1 -4
  64. data/lib/freeclimb/models/add_to_conference_notification_webhook.rb +384 -0
  65. data/lib/freeclimb/models/{conference_participant_result_all_of.rb → add_to_queue_notification_webhook.rb} +112 -59
  66. data/lib/freeclimb/models/answered_by.rb +1 -1
  67. data/lib/freeclimb/models/application_list.rb +1 -4
  68. data/lib/freeclimb/models/application_request.rb +1 -3
  69. data/lib/freeclimb/models/application_result.rb +1 -4
  70. data/lib/freeclimb/models/available_number.rb +1 -3
  71. data/lib/freeclimb/models/available_number_list.rb +1 -4
  72. data/lib/freeclimb/models/barge_in_reason.rb +38 -0
  73. data/lib/freeclimb/models/buy_incoming_number_request.rb +1 -3
  74. data/lib/freeclimb/models/{recording_result_all_of.rb → call_control_webhook.rb} +57 -45
  75. data/lib/freeclimb/models/call_direction.rb +1 -1
  76. data/lib/freeclimb/models/call_ended_reason.rb +58 -0
  77. data/lib/freeclimb/models/call_list.rb +1 -4
  78. data/lib/freeclimb/models/call_result.rb +23 -4
  79. data/lib/freeclimb/models/call_status.rb +1 -1
  80. data/lib/freeclimb/models/call_status_webhook.rb +354 -0
  81. data/lib/freeclimb/models/capabilities.rb +1 -3
  82. data/lib/freeclimb/models/completion_request.rb +1 -3
  83. data/lib/freeclimb/models/completion_result.rb +2 -15
  84. data/lib/freeclimb/models/completion_result_status.rb +37 -0
  85. data/lib/freeclimb/models/conference_list.rb +1 -4
  86. data/lib/freeclimb/models/conference_participant_list.rb +1 -4
  87. data/lib/freeclimb/models/conference_participant_result.rb +1 -4
  88. data/lib/freeclimb/models/conference_recording_status_webhook.rb +384 -0
  89. data/lib/freeclimb/models/conference_result.rb +23 -6
  90. data/lib/freeclimb/models/conference_status.rb +1 -1
  91. data/lib/freeclimb/models/conference_status_webhook.rb +387 -0
  92. data/lib/freeclimb/models/create_conference.rb +23 -6
  93. data/lib/freeclimb/models/create_conference_request.rb +23 -5
  94. data/lib/freeclimb/models/create_conference_webhook.rb +387 -0
  95. data/lib/freeclimb/models/create_web_rtc_token.rb +1 -3
  96. data/lib/freeclimb/models/dequeue.rb +1 -3
  97. data/lib/freeclimb/models/dequeue_webhook.rb +365 -0
  98. data/lib/freeclimb/models/enqueue.rb +1 -4
  99. data/lib/freeclimb/models/filter_logs_request.rb +1 -3
  100. data/lib/freeclimb/models/get_digits.rb +1 -4
  101. data/lib/freeclimb/models/get_digits_reason.rb +39 -0
  102. data/lib/freeclimb/models/get_digits_webhook.rb +373 -0
  103. data/lib/freeclimb/models/get_speech.rb +23 -4
  104. data/lib/freeclimb/models/get_speech_reason.rb +1 -1
  105. data/lib/freeclimb/models/get_speech_webhook.rb +423 -0
  106. data/lib/freeclimb/models/grammar_file_built_in.rb +1 -1
  107. data/lib/freeclimb/models/grammar_type.rb +1 -1
  108. data/lib/freeclimb/models/hangup.rb +1 -4
  109. data/lib/freeclimb/models/if_machine.rb +1 -1
  110. data/lib/freeclimb/models/inbound_call_webhook.rb +355 -0
  111. data/lib/freeclimb/models/incoming_number_list.rb +1 -4
  112. data/lib/freeclimb/models/incoming_number_request.rb +1 -3
  113. data/lib/freeclimb/models/incoming_number_result.rb +1 -4
  114. data/lib/freeclimb/models/language.rb +1 -1
  115. data/lib/freeclimb/models/{conference_result_all_of.rb → leave_conference_webhook.rb} +110 -89
  116. data/lib/freeclimb/models/log_level.rb +1 -1
  117. data/lib/freeclimb/models/log_list.rb +1 -4
  118. data/lib/freeclimb/models/log_result.rb +23 -3
  119. data/lib/freeclimb/models/{call_result_all_of.rb → machine_detected_webhook.rb} +96 -119
  120. data/lib/freeclimb/models/machine_type.rb +3 -3
  121. data/lib/freeclimb/models/make_call_request.rb +1 -3
  122. data/lib/freeclimb/models/{message_result_all_of.rb → message_delivery_webhook.rb} +71 -87
  123. data/lib/freeclimb/models/message_direction.rb +1 -1
  124. data/lib/freeclimb/models/message_request.rb +1 -4
  125. data/lib/freeclimb/models/message_result.rb +23 -4
  126. data/lib/freeclimb/models/message_status.rb +1 -1
  127. data/lib/freeclimb/models/{incoming_number_result_all_of.rb → message_status_webhook.rb} +117 -107
  128. data/lib/freeclimb/models/messages_list.rb +1 -4
  129. data/lib/freeclimb/models/mutable_resource_model.rb +1 -3
  130. data/lib/freeclimb/models/out_dial.rb +23 -4
  131. data/lib/freeclimb/models/out_dial_api_connect_webhook.rb +355 -0
  132. data/lib/freeclimb/models/out_dial_connect_webhook.rb +355 -0
  133. data/lib/freeclimb/models/out_dial_start_webhook.rb +366 -0
  134. data/lib/freeclimb/models/pagination_model.rb +1 -3
  135. data/lib/freeclimb/models/park.rb +1 -4
  136. data/lib/freeclimb/models/pause.rb +1 -4
  137. data/lib/freeclimb/models/percl_command.rb +3 -5
  138. data/lib/freeclimb/models/percl_script.rb +2 -4
  139. data/lib/freeclimb/models/play.rb +2 -5
  140. data/lib/freeclimb/models/play_beep.rb +1 -1
  141. data/lib/freeclimb/models/play_early_media.rb +2 -5
  142. data/lib/freeclimb/models/queue_list.rb +2 -5
  143. data/lib/freeclimb/models/queue_member.rb +1 -3
  144. data/lib/freeclimb/models/queue_member_list.rb +2 -5
  145. data/lib/freeclimb/models/queue_request.rb +1 -3
  146. data/lib/freeclimb/models/queue_result.rb +2 -5
  147. data/lib/freeclimb/models/queue_result_status.rb +1 -1
  148. data/lib/freeclimb/models/queue_wait_webhook.rb +375 -0
  149. data/lib/freeclimb/models/record_utterance.rb +2 -5
  150. data/lib/freeclimb/models/record_utterance_term_reason.rb +1 -1
  151. data/lib/freeclimb/models/record_webhook.rb +424 -0
  152. data/lib/freeclimb/models/recording_list.rb +2 -5
  153. data/lib/freeclimb/models/recording_result.rb +2 -5
  154. data/lib/freeclimb/models/redirect.rb +2 -5
  155. data/lib/freeclimb/models/redirect_webhook.rb +355 -0
  156. data/lib/freeclimb/models/reject.rb +2 -5
  157. data/lib/freeclimb/models/remove_from_conference.rb +1 -3
  158. data/lib/freeclimb/models/remove_from_queue_notification_webhook.rb +364 -0
  159. data/lib/freeclimb/models/request_type.rb +1 -1
  160. data/lib/freeclimb/models/say.rb +2 -5
  161. data/lib/freeclimb/models/send_digits.rb +2 -5
  162. data/lib/freeclimb/models/set_dtmf_pass_through.rb +2 -5
  163. data/lib/freeclimb/models/set_listen.rb +2 -5
  164. data/lib/freeclimb/models/set_talk.rb +2 -5
  165. data/lib/freeclimb/models/sms.rb +2 -5
  166. data/lib/freeclimb/models/sms_ten_dlc_brand.rb +6 -67
  167. data/lib/freeclimb/models/sms_ten_dlc_brand_alt_business_id_type.rb +39 -0
  168. data/lib/freeclimb/models/sms_ten_dlc_brand_entity_type.rb +40 -0
  169. data/lib/freeclimb/models/sms_ten_dlc_brand_identity_status.rb +39 -0
  170. data/lib/freeclimb/models/sms_ten_dlc_brand_relationship.rb +40 -0
  171. data/lib/freeclimb/models/sms_ten_dlc_brand_stock_exchange.rb +62 -0
  172. data/lib/freeclimb/models/sms_ten_dlc_brands_list_result.rb +2 -5
  173. data/lib/freeclimb/models/sms_ten_dlc_campaign.rb +2 -15
  174. data/lib/freeclimb/models/sms_ten_dlc_campaign_status.rb +37 -0
  175. data/lib/freeclimb/models/sms_ten_dlc_campaigns_list_result.rb +2 -5
  176. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb +2 -15
  177. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_brand.rb +1 -3
  178. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_status.rb +37 -0
  179. data/lib/freeclimb/models/sms_ten_dlc_partner_campaigns_list_result.rb +2 -5
  180. data/lib/freeclimb/models/sms_toll_free_campaign.rb +2 -15
  181. data/lib/freeclimb/models/sms_toll_free_campaign_registration_status.rb +40 -0
  182. data/lib/freeclimb/models/sms_toll_free_campaigns_list_result.rb +2 -5
  183. data/lib/freeclimb/models/start_record_call.rb +1 -3
  184. data/lib/freeclimb/models/terminate_conference.rb +1 -3
  185. data/lib/freeclimb/models/tfn.rb +1 -3
  186. data/lib/freeclimb/models/transcribe_reason.rb +40 -0
  187. data/lib/freeclimb/models/transcribe_term_reason.rb +37 -0
  188. data/lib/freeclimb/models/transcribe_utterance.rb +4 -7
  189. data/lib/freeclimb/models/{transcribe_utterance_all_of_record.rb → transcribe_utterance_record.rb} +8 -10
  190. data/lib/freeclimb/models/transcribe_webhook.rb +481 -0
  191. data/lib/freeclimb/models/unpark.rb +1 -3
  192. data/lib/freeclimb/models/update_call_request.rb +23 -3
  193. data/lib/freeclimb/models/update_call_request_status.rb +1 -1
  194. data/lib/freeclimb/models/update_conference_participant_request.rb +1 -3
  195. data/lib/freeclimb/models/update_conference_request.rb +23 -5
  196. data/lib/freeclimb/models/update_conference_request_status.rb +1 -1
  197. data/lib/freeclimb/models/{call_list_all_of.rb → webhook.rb} +18 -17
  198. data/lib/freeclimb/utils/request_verifier.rb +51 -51
  199. data/lib/freeclimb/utils/signature_information.rb +34 -34
  200. data/lib/freeclimb/version.rb +2 -2
  201. data/lib/freeclimb.rb +41 -49
  202. data/openapi.json +1734 -681
  203. data/package.json +3 -1
  204. data/spec/api/default_api_spec.rb +61 -35
  205. data/spec/factories.rb +78 -78
  206. data/spec/models/account_request_spec.rb +55 -17
  207. data/spec/models/account_result_spec.rb +304 -80
  208. data/spec/models/account_status_spec.rb +1 -1
  209. data/spec/models/account_type_spec.rb +1 -1
  210. data/spec/models/add_to_conference_notification_webhook_spec.rb +866 -0
  211. data/spec/models/add_to_conference_spec.rb +251 -38
  212. data/spec/models/add_to_queue_notification_webhook_spec.rb +643 -0
  213. data/spec/models/answered_by_spec.rb +1 -1
  214. data/spec/models/application_list_spec.rb +181 -39
  215. data/spec/models/application_request_spec.rb +160 -32
  216. data/spec/models/application_result_spec.rb +286 -50
  217. data/spec/models/available_number_list_spec.rb +181 -39
  218. data/spec/models/available_number_spec.rb +160 -32
  219. data/spec/models/barge_in_reason_spec.rb +77 -0
  220. data/spec/models/buy_incoming_number_request_spec.rb +76 -20
  221. data/spec/models/call_control_webhook_spec.rb +385 -0
  222. data/spec/models/call_direction_spec.rb +1 -1
  223. data/spec/models/call_ended_reason_spec.rb +397 -0
  224. data/spec/models/call_list_spec.rb +181 -39
  225. data/spec/models/call_result_spec.rb +551 -122
  226. data/spec/models/call_status_spec.rb +1 -1
  227. data/spec/models/call_status_webhook_spec.rb +793 -0
  228. data/spec/models/capabilities_spec.rb +118 -26
  229. data/spec/models/completion_request_spec.rb +35 -15
  230. data/spec/models/completion_result_spec.rb +91 -45
  231. data/spec/models/completion_result_status_spec.rb +61 -0
  232. data/spec/models/conference_list_spec.rb +181 -39
  233. data/spec/models/conference_participant_list_spec.rb +181 -39
  234. data/spec/models/conference_participant_result_spec.rb +272 -41
  235. data/spec/models/conference_recording_status_webhook_spec.rb +866 -0
  236. data/spec/models/conference_result_spec.rb +367 -89
  237. data/spec/models/conference_status_spec.rb +1 -1
  238. data/spec/models/conference_status_webhook_spec.rb +866 -0
  239. data/spec/models/create_conference_request_spec.rb +148 -44
  240. data/spec/models/create_conference_spec.rb +169 -47
  241. data/spec/models/create_conference_webhook_spec.rb +866 -0
  242. data/spec/models/create_web_rtc_token_spec.rb +76 -20
  243. data/spec/models/dequeue_spec.rb +1 -1
  244. data/spec/models/dequeue_webhook_spec.rb +743 -0
  245. data/spec/models/enqueue_spec.rb +97 -23
  246. data/spec/models/filter_logs_request_spec.rb +34 -14
  247. data/spec/models/get_digits_reason_spec.rb +93 -0
  248. data/spec/models/get_digits_spec.rb +202 -42
  249. data/spec/models/get_digits_webhook_spec.rb +815 -0
  250. data/spec/models/get_speech_reason_spec.rb +1 -1
  251. data/spec/models/get_speech_spec.rb +308 -66
  252. data/spec/models/get_speech_webhook_spec.rb +1072 -0
  253. data/spec/models/grammar_file_built_in_spec.rb +1 -1
  254. data/spec/models/grammar_type_spec.rb +1 -1
  255. data/spec/models/hangup_spec.rb +34 -14
  256. data/spec/models/if_machine_spec.rb +1 -1
  257. data/spec/models/inbound_call_webhook_spec.rb +692 -0
  258. data/spec/models/incoming_number_list_spec.rb +181 -39
  259. data/spec/models/incoming_number_request_spec.rb +76 -20
  260. data/spec/models/incoming_number_result_spec.rb +370 -62
  261. data/spec/models/language_spec.rb +1 -1
  262. data/spec/models/leave_conference_webhook_spec.rb +643 -0
  263. data/spec/models/log_level_spec.rb +1 -1
  264. data/spec/models/log_list_spec.rb +181 -39
  265. data/spec/models/log_result_spec.rb +190 -50
  266. data/spec/models/machine_detected_webhook_spec.rb +758 -0
  267. data/spec/models/machine_type_spec.rb +10 -10
  268. data/spec/models/make_call_request_spec.rb +223 -41
  269. data/spec/models/message_delivery_webhook_spec.rb +630 -0
  270. data/spec/models/message_direction_spec.rb +1 -1
  271. data/spec/models/message_request_spec.rb +202 -38
  272. data/spec/models/message_result_spec.rb +375 -74
  273. data/spec/models/message_status_spec.rb +1 -1
  274. data/spec/models/message_status_webhook_spec.rb +732 -0
  275. data/spec/models/messages_list_spec.rb +181 -39
  276. data/spec/models/mutable_resource_model_spec.rb +97 -23
  277. data/spec/models/out_dial_api_connect_webhook_spec.rb +692 -0
  278. data/spec/models/out_dial_connect_webhook_spec.rb +692 -0
  279. data/spec/models/out_dial_spec.rb +253 -59
  280. data/spec/models/out_dial_start_webhook_spec.rb +741 -0
  281. data/spec/models/pagination_model_spec.rb +160 -32
  282. data/spec/models/park_spec.rb +76 -20
  283. data/spec/models/pause_spec.rb +34 -14
  284. data/spec/models/percl_command_spec.rb +34 -14
  285. data/spec/models/percl_script_spec.rb +34 -18
  286. data/spec/models/play_beep_spec.rb +1 -1
  287. data/spec/models/play_early_media_spec.rb +34 -14
  288. data/spec/models/play_spec.rb +76 -20
  289. data/spec/models/queue_list_spec.rb +181 -39
  290. data/spec/models/queue_member_list_spec.rb +181 -39
  291. data/spec/models/queue_member_spec.rb +118 -26
  292. data/spec/models/queue_request_spec.rb +55 -17
  293. data/spec/models/queue_result_spec.rb +244 -44
  294. data/spec/models/queue_result_status_spec.rb +1 -1
  295. data/spec/models/queue_wait_webhook_spec.rb +794 -0
  296. data/spec/models/record_utterance_spec.rb +160 -32
  297. data/spec/models/record_utterance_term_reason_spec.rb +1 -1
  298. data/spec/models/record_webhook_spec.rb +1062 -0
  299. data/spec/models/recording_list_spec.rb +181 -39
  300. data/spec/models/recording_result_spec.rb +202 -38
  301. data/spec/models/redirect_spec.rb +34 -14
  302. data/spec/models/redirect_webhook_spec.rb +692 -0
  303. data/spec/models/reject_spec.rb +34 -14
  304. data/spec/models/remove_from_conference_spec.rb +1 -1
  305. data/spec/models/remove_from_queue_notification_webhook_spec.rb +768 -0
  306. data/spec/models/request_type_spec.rb +1 -1
  307. data/spec/models/say_spec.rb +97 -23
  308. data/spec/models/send_digits_spec.rb +76 -20
  309. data/spec/models/set_dtmf_pass_through_spec.rb +34 -14
  310. data/spec/models/set_listen_spec.rb +34 -14
  311. data/spec/models/set_talk_spec.rb +34 -14
  312. data/spec/models/sms_spec.rb +97 -23
  313. data/spec/models/sms_ten_dlc_brand_alt_business_id_type_spec.rb +93 -0
  314. data/spec/models/sms_ten_dlc_brand_entity_type_spec.rb +109 -0
  315. data/spec/models/sms_ten_dlc_brand_identity_status_spec.rb +93 -0
  316. data/spec/models/sms_ten_dlc_brand_relationship_spec.rb +109 -0
  317. data/spec/models/sms_ten_dlc_brand_spec.rb +933 -378
  318. data/spec/models/sms_ten_dlc_brand_stock_exchange_spec.rb +461 -0
  319. data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +181 -39
  320. data/spec/models/sms_ten_dlc_campaign_spec.rb +820 -164
  321. data/spec/models/sms_ten_dlc_campaign_status_spec.rb +61 -0
  322. data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +181 -39
  323. data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +251 -51
  324. data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +713 -183
  325. data/spec/models/sms_ten_dlc_partner_campaign_status_spec.rb +61 -0
  326. data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +181 -39
  327. data/spec/models/sms_toll_free_campaign_registration_status_spec.rb +109 -0
  328. data/spec/models/sms_toll_free_campaign_spec.rb +200 -69
  329. data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +181 -39
  330. data/spec/models/start_record_call_spec.rb +1 -1
  331. data/spec/models/terminate_conference_spec.rb +1 -1
  332. data/spec/models/tfn_spec.rb +34 -14
  333. data/spec/models/transcribe_reason_spec.rb +109 -0
  334. data/spec/models/transcribe_term_reason_spec.rb +61 -0
  335. data/spec/models/{transcribe_utterance_all_of_record_spec.rb → transcribe_utterance_record_spec.rb} +99 -43
  336. data/spec/models/transcribe_utterance_spec.rb +155 -45
  337. data/spec/models/transcribe_webhook_spec.rb +1373 -0
  338. data/spec/models/unpark_spec.rb +1 -1
  339. data/spec/models/update_call_request_spec.rb +64 -32
  340. data/spec/models/update_call_request_status_spec.rb +1 -1
  341. data/spec/models/update_conference_participant_request_spec.rb +104 -17
  342. data/spec/models/update_conference_request_spec.rb +136 -56
  343. data/spec/models/update_conference_request_status_spec.rb +1 -1
  344. data/spec/models/webhook_spec.rb +176 -0
  345. data/spec/quickstart_spec.rb +7 -7
  346. data/spec/spec_helper.rb +1 -1
  347. data/spec/utils/request_verifier_spec.rb +123 -123
  348. data/spec/utils/signature_information_spec.rb +36 -36
  349. data/yarn.lock +91 -91
  350. metadata +157 -100
  351. data/docs/AccountResultAllOf.md +0 -30
  352. data/docs/AddToConferenceAllOf.md +0 -36
  353. data/docs/ApplicationListAllOf.md +0 -18
  354. data/docs/ApplicationResultAllOf.md +0 -34
  355. data/docs/AvailableNumberListAllOf.md +0 -18
  356. data/docs/CallListAllOf.md +0 -18
  357. data/docs/CallResultAllOf.md +0 -48
  358. data/docs/ConferenceListAllOf.md +0 -18
  359. data/docs/ConferenceParticipantListAllOf.md +0 -18
  360. data/docs/ConferenceParticipantResultAllOf.md +0 -30
  361. data/docs/ConferenceResultAllOf.md +0 -36
  362. data/docs/CreateConferenceAllOf.md +0 -28
  363. data/docs/EnqueueAllOf.md +0 -24
  364. data/docs/GetDigitsAllOf.md +0 -34
  365. data/docs/GetSpeechAllOf.md +0 -42
  366. data/docs/HangupAllOf.md +0 -18
  367. data/docs/IncomingNumberListAllOf.md +0 -18
  368. data/docs/IncomingNumberResultAllOf.md +0 -42
  369. data/docs/LogListAllOf.md +0 -18
  370. data/docs/MessageRequestAllOf.md +0 -26
  371. data/docs/MessageResultAllOf.md +0 -40
  372. data/docs/MessagesListAllOf.md +0 -18
  373. data/docs/OutDialAllOf.md +0 -36
  374. data/docs/ParkAllOf.md +0 -22
  375. data/docs/PauseAllOf.md +0 -18
  376. data/docs/PlayAllOf.md +0 -22
  377. data/docs/PlayEarlyMediaAllOf.md +0 -18
  378. data/docs/QueueListAllOf.md +0 -18
  379. data/docs/QueueMemberListAllOf.md +0 -18
  380. data/docs/QueueResultAllOf.md +0 -30
  381. data/docs/RecordUtteranceAllOf.md +0 -30
  382. data/docs/RecordingListAllOf.md +0 -18
  383. data/docs/RecordingResultAllOf.md +0 -26
  384. data/docs/RedirectAllOf.md +0 -18
  385. data/docs/RejectAllOf.md +0 -18
  386. data/docs/RemoveFromConferenceAllOf.md +0 -18
  387. data/docs/SMSTenDLCBrandsListResultAllOf.md +0 -18
  388. data/docs/SMSTenDLCCampaignsListResultAllOf.md +0 -18
  389. data/docs/SMSTenDLCPartnerCampaignsListResultAllOf.md +0 -18
  390. data/docs/SMSTollFreeCampaignsListResultAllOf.md +0 -18
  391. data/docs/SayAllOf.md +0 -24
  392. data/docs/SendDigitsAllOf.md +0 -22
  393. data/docs/SetDTMFPassThroughAllOf.md +0 -18
  394. data/docs/SetListenAllOf.md +0 -18
  395. data/docs/SetTalkAllOf.md +0 -18
  396. data/docs/SmsAllOf.md +0 -24
  397. data/docs/TerminateConferenceAllOf.md +0 -18
  398. data/docs/TranscribeUtteranceAllOf.md +0 -28
  399. data/docs/TranscribeUtteranceAllOfRecord.md +0 -22
  400. data/lib/freeclimb/models/account_result_all_of.rb +0 -289
  401. data/lib/freeclimb/models/add_to_conference_all_of.rb +0 -318
  402. data/lib/freeclimb/models/application_list_all_of.rb +0 -226
  403. data/lib/freeclimb/models/application_result_all_of.rb +0 -313
  404. data/lib/freeclimb/models/available_number_list_all_of.rb +0 -226
  405. data/lib/freeclimb/models/conference_list_all_of.rb +0 -226
  406. data/lib/freeclimb/models/conference_participant_list_all_of.rb +0 -226
  407. data/lib/freeclimb/models/create_conference_all_of.rb +0 -280
  408. data/lib/freeclimb/models/enqueue_all_of.rb +0 -266
  409. data/lib/freeclimb/models/get_digits_all_of.rb +0 -310
  410. data/lib/freeclimb/models/get_speech_all_of.rb +0 -354
  411. data/lib/freeclimb/models/hangup_all_of.rb +0 -224
  412. data/lib/freeclimb/models/incoming_number_list_all_of.rb +0 -226
  413. data/lib/freeclimb/models/log_list_all_of.rb +0 -226
  414. data/lib/freeclimb/models/message_request_all_of.rb +0 -279
  415. data/lib/freeclimb/models/messages_list_all_of.rb +0 -227
  416. data/lib/freeclimb/models/out_dial_all_of.rb +0 -329
  417. data/lib/freeclimb/models/park_all_of.rb +0 -252
  418. data/lib/freeclimb/models/pause_all_of.rb +0 -228
  419. data/lib/freeclimb/models/play_all_of.rb +0 -248
  420. data/lib/freeclimb/models/play_early_media_all_of.rb +0 -228
  421. data/lib/freeclimb/models/queue_list_all_of.rb +0 -226
  422. data/lib/freeclimb/models/queue_member_list_all_of.rb +0 -226
  423. data/lib/freeclimb/models/queue_result_all_of.rb +0 -291
  424. data/lib/freeclimb/models/record_utterance_all_of.rb +0 -288
  425. data/lib/freeclimb/models/recording_list_all_of.rb +0 -226
  426. data/lib/freeclimb/models/redirect_all_of.rb +0 -228
  427. data/lib/freeclimb/models/reject_all_of.rb +0 -224
  428. data/lib/freeclimb/models/say_all_of.rb +0 -260
  429. data/lib/freeclimb/models/send_digits_all_of.rb +0 -248
  430. data/lib/freeclimb/models/set_dtmf_pass_through_all_of.rb +0 -224
  431. data/lib/freeclimb/models/set_listen_all_of.rb +0 -224
  432. data/lib/freeclimb/models/set_talk_all_of.rb +0 -224
  433. data/lib/freeclimb/models/sms_all_of.rb +0 -266
  434. data/lib/freeclimb/models/sms_ten_dlc_brands_list_result_all_of.rb +0 -226
  435. data/lib/freeclimb/models/sms_ten_dlc_campaigns_list_result_all_of.rb +0 -226
  436. data/lib/freeclimb/models/sms_ten_dlc_partner_campaigns_list_result_all_of.rb +0 -226
  437. data/lib/freeclimb/models/sms_toll_free_campaigns_list_result_all_of.rb +0 -226
  438. data/lib/freeclimb/models/transcribe_utterance_all_of.rb +0 -281
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: support@freeclimb.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.4.0
9
+ OpenAPI Generator version: 7.9.0
10
10
 
11
11
  =end
12
12
 
@@ -44,23 +44,15 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
44
44
 
45
45
 
46
46
  describe 'test attribute "status"' do
47
-
48
47
  it 'assigns value ACTIVE' do
49
- instance.status = "ACTIVE"
50
- expect(instance.status).to eq("ACTIVE")
48
+ instance.status = Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE
49
+ expect(instance.status).to eq(Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE)
51
50
  end
52
-
53
51
  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)
52
+ instance.status = Freeclimb::SMSTenDLCPartnerCampaignStatus::EXPIRED
53
+ expect(instance.status).to eq(Freeclimb::SMSTenDLCPartnerCampaignStatus::EXPIRED)
61
54
  end
62
55
  end
63
-
64
56
  describe 'test attribute "create_date"' do
65
57
  it 'should work' do
66
58
  instance.create_date = "2022-07-05T15:17:05Z"
@@ -75,7 +67,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
75
67
  expect(instance.brand_id).to eq("T" * 8)
76
68
  end
77
69
  it 'should not assign a value over maxLength' do
78
- expect{instance.brand_id = "T" * (8 + 1)}.to raise_error(ArgumentError)
70
+ expect { instance.brand_id = "T" * (8 + 1) }.to raise_error(ArgumentError)
79
71
  end
80
72
  end
81
73
 
@@ -85,7 +77,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
85
77
  expect(instance.usecase).to eq("T" * 20)
86
78
  end
87
79
  it 'should not assign a value over maxLength' do
88
- expect{instance.usecase = "T" * (20 + 1)}.to raise_error(ArgumentError)
80
+ expect { instance.usecase = "T" * (20 + 1) }.to raise_error(ArgumentError)
89
81
  end
90
82
  end
91
83
 
@@ -95,7 +87,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
95
87
  expect(instance.description).to eq("T" * 4096)
96
88
  end
97
89
  it 'should not assign a value over maxLength' do
98
- expect{instance.description = "T" * (4096 + 1)}.to raise_error(ArgumentError)
90
+ expect { instance.description = "T" * (4096 + 1) }.to raise_error(ArgumentError)
99
91
  end
100
92
  end
101
93
 
@@ -177,7 +169,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
177
169
  expect(instance.sample1).to eq("T" * 1024)
178
170
  end
179
171
  it 'should not assign a value over maxLength' do
180
- expect{instance.sample1 = "T" * (1024 + 1)}.to raise_error(ArgumentError)
172
+ expect { instance.sample1 = "T" * (1024 + 1) }.to raise_error(ArgumentError)
181
173
  end
182
174
  end
183
175
 
@@ -187,7 +179,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
187
179
  expect(instance.sample2).to eq("T" * 1024)
188
180
  end
189
181
  it 'should not assign a value over maxLength' do
190
- expect{instance.sample2 = "T" * (1024 + 1)}.to raise_error(ArgumentError)
182
+ expect { instance.sample2 = "T" * (1024 + 1) }.to raise_error(ArgumentError)
191
183
  end
192
184
  end
193
185
 
@@ -197,7 +189,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
197
189
  expect(instance.sample3).to eq("T" * 1024)
198
190
  end
199
191
  it 'should not assign a value over maxLength' do
200
- expect{instance.sample3 = "T" * (1024 + 1)}.to raise_error(ArgumentError)
192
+ expect { instance.sample3 = "T" * (1024 + 1) }.to raise_error(ArgumentError)
201
193
  end
202
194
  end
203
195
 
@@ -207,7 +199,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
207
199
  expect(instance.sample4).to eq("T" * 1024)
208
200
  end
209
201
  it 'should not assign a value over maxLength' do
210
- expect{instance.sample4 = "T" * (1024 + 1)}.to raise_error(ArgumentError)
202
+ expect { instance.sample4 = "T" * (1024 + 1) }.to raise_error(ArgumentError)
211
203
  end
212
204
  end
213
205
 
@@ -217,7 +209,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
217
209
  expect(instance.sample5).to eq("T" * 1024)
218
210
  end
219
211
  it 'should not assign a value over maxLength' do
220
- expect{instance.sample5 = "T" * (1024 + 1)}.to raise_error(ArgumentError)
212
+ expect { instance.sample5 = "T" * (1024 + 1) }.to raise_error(ArgumentError)
221
213
  end
222
214
  end
223
215
 
@@ -227,7 +219,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
227
219
  expect(instance.message_flow).to eq("T" * 2048)
228
220
  end
229
221
  it 'should not assign a value over maxLength' do
230
- expect{instance.message_flow = "T" * (2048 + 1)}.to raise_error(ArgumentError)
222
+ expect { instance.message_flow = "T" * (2048 + 1) }.to raise_error(ArgumentError)
231
223
  end
232
224
  end
233
225
 
@@ -237,7 +229,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
237
229
  expect(instance.help_message).to eq("T" * 255)
238
230
  end
239
231
  it 'should not assign a value over maxLength' do
240
- expect{instance.help_message = "T" * (255 + 1)}.to raise_error(ArgumentError)
232
+ expect { instance.help_message = "T" * (255 + 1) }.to raise_error(ArgumentError)
241
233
  end
242
234
  end
243
235
 
@@ -247,7 +239,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
247
239
  expect(instance.optin_keywords).to eq("T" * 255)
248
240
  end
249
241
  it 'should not assign a value over maxLength' do
250
- expect{instance.optin_keywords = "T" * (255 + 1)}.to raise_error(ArgumentError)
242
+ expect { instance.optin_keywords = "T" * (255 + 1) }.to raise_error(ArgumentError)
251
243
  end
252
244
  end
253
245
 
@@ -257,7 +249,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
257
249
  expect(instance.optout_keywords).to eq("T" * 255)
258
250
  end
259
251
  it 'should not assign a value over maxLength' do
260
- expect{instance.optout_keywords = "T" * (255 + 1)}.to raise_error(ArgumentError)
252
+ expect { instance.optout_keywords = "T" * (255 + 1) }.to raise_error(ArgumentError)
261
253
  end
262
254
  end
263
255
 
@@ -267,7 +259,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
267
259
  expect(instance.help_keywords).to eq("T" * 255)
268
260
  end
269
261
  it 'should not assign a value over maxLength' do
270
- expect{instance.help_keywords = "T" * (255 + 1)}.to raise_error(ArgumentError)
262
+ expect { instance.help_keywords = "T" * (255 + 1) }.to raise_error(ArgumentError)
271
263
  end
272
264
  end
273
265
 
@@ -277,7 +269,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
277
269
  expect(instance.optin_message).to eq("T" * 255)
278
270
  end
279
271
  it 'should not assign a value over maxLength' do
280
- expect{instance.optin_message = "T" * (255 + 1)}.to raise_error(ArgumentError)
272
+ expect { instance.optin_message = "T" * (255 + 1) }.to raise_error(ArgumentError)
281
273
  end
282
274
  end
283
275
 
@@ -287,7 +279,7 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
287
279
  expect(instance.optout_message).to eq("T" * 255)
288
280
  end
289
281
  it 'should not assign a value over maxLength' do
290
- expect{instance.optout_message = "T" * (255 + 1)}.to raise_error(ArgumentError)
282
+ expect { instance.optout_message = "T" * (255 + 1) }.to raise_error(ArgumentError)
291
283
  end
292
284
  end
293
285
 
@@ -301,105 +293,195 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
301
293
 
302
294
  describe 'test method "initialize"' do
303
295
  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()
296
+ expect { instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
297
+ account_id: "TS",
298
+
299
+ campaign_id: "TS",
300
+
301
+
302
+ status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
303
+
304
+
305
+ create_date: "2022-07-05T15:17:05Z",
306
+ brand_id: "TS",
307
+
308
+ usecase: "TS",
309
+
310
+ description: "TS",
311
+
312
+ embedded_link: true,
313
+
314
+ embedded_phone: true,
315
+
316
+ affiliate_marketing: true,
317
+
318
+ number_pool: true,
319
+
320
+ age_gated: true,
321
+
322
+ direct_lending: true,
323
+
324
+ subscriber_optin: true,
325
+
326
+ subscriber_optout: true,
327
+
328
+ subscriber_help: true,
329
+
330
+ sample1: "TS",
331
+
332
+ sample2: "TS",
333
+
334
+ sample3: "TS",
335
+
336
+ sample4: "TS",
337
+
338
+ sample5: "TS",
339
+
340
+ message_flow: "TS",
341
+
342
+ help_message: "TS",
343
+
344
+ optin_keywords: "TS",
345
+
346
+ optout_keywords: "TS",
347
+
348
+ help_keywords: "TS",
349
+
350
+ optin_message: "TS",
351
+
352
+ optout_message: "TS",
353
+
354
+
355
+ brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new(),
356
+ )}.not_to raise_error()
335
357
  end
336
358
  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)
359
+ expect { instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
360
+ account_id: "TS",
361
+
362
+ campaign_id: "TS",
363
+
364
+
365
+ status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
366
+
367
+
368
+ create_date: "2022-07-05T15:17:05Z",
369
+ brand_id: "TS",
370
+
371
+ usecase: "TS",
372
+
373
+ description: "TS",
374
+
375
+ embedded_link: true,
376
+
377
+ embedded_phone: true,
378
+
379
+ affiliate_marketing: true,
380
+
381
+ number_pool: true,
382
+
383
+ age_gated: true,
384
+
385
+ direct_lending: true,
386
+
387
+ subscriber_optin: true,
388
+
389
+ subscriber_optout: true,
390
+
391
+ subscriber_help: true,
392
+
393
+ sample1: "TS",
394
+
395
+ sample2: "TS",
396
+
397
+ sample3: "TS",
398
+
399
+ sample4: "TS",
400
+
401
+ sample5: "TS",
402
+
403
+ message_flow: "TS",
404
+
405
+ help_message: "TS",
406
+
407
+ optin_keywords: "TS",
408
+
409
+ optout_keywords: "TS",
410
+
411
+ help_keywords: "TS",
412
+
413
+ optin_message: "TS",
414
+
415
+ optout_message: "TS",
416
+
417
+
418
+ brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new,
419
+ invalid_attribute: true
420
+ )}.to raise_error(ArgumentError)
369
421
  end
370
422
  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)
423
+ expect { instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
424
+ account_id: "TS",
425
+
426
+ campaign_id: "TS",
427
+
428
+
429
+ status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
430
+
431
+
432
+ create_date: "2022-07-05T15:17:05Z",
433
+ brand_id: "TS",
434
+
435
+ usecase: "TS",
436
+
437
+ description: "TS",
438
+
439
+ embedded_link: true,
440
+
441
+ embedded_phone: true,
442
+
443
+ affiliate_marketing: true,
444
+
445
+ number_pool: true,
446
+
447
+ age_gated: true,
448
+
449
+ direct_lending: true,
450
+
451
+ subscriber_optin: true,
452
+
453
+ subscriber_optout: true,
454
+
455
+ subscriber_help: true,
456
+
457
+ sample1: "TS",
458
+
459
+ sample2: "TS",
460
+
461
+ sample3: "TS",
462
+
463
+ sample4: "TS",
464
+
465
+ sample5: "TS",
466
+
467
+ message_flow: "TS",
468
+
469
+ help_message: "TS",
470
+
471
+ optin_keywords: "TS",
472
+
473
+ optout_keywords: "TS",
474
+
475
+ help_keywords: "TS",
476
+
477
+ optin_message: "TS",
478
+
479
+ optout_message: "TS",
480
+
481
+
482
+ brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new,
483
+ invalid_attribute: true
484
+ )}.to raise_error(ArgumentError)
403
485
  end
404
486
  end
405
487
 
@@ -407,33 +489,63 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
407
489
  it 'checks if properties are valid' do
408
490
  instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
409
491
  account_id: "TS",
492
+
410
493
  campaign_id: "TS",
411
- status:"ACTIVE",
494
+
495
+
496
+ status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
497
+
498
+
412
499
  create_date: "2022-07-05T15:17:05Z",
413
500
  brand_id: "TS",
501
+
414
502
  usecase: "TS",
503
+
415
504
  description: "TS",
505
+
416
506
  embedded_link: true,
507
+
417
508
  embedded_phone: true,
509
+
418
510
  affiliate_marketing: true,
511
+
419
512
  number_pool: true,
513
+
420
514
  age_gated: true,
515
+
421
516
  direct_lending: true,
517
+
422
518
  subscriber_optin: true,
519
+
423
520
  subscriber_optout: true,
521
+
424
522
  subscriber_help: true,
523
+
425
524
  sample1: "TS",
525
+
426
526
  sample2: "TS",
527
+
427
528
  sample3: "TS",
529
+
428
530
  sample4: "TS",
531
+
429
532
  sample5: "TS",
533
+
430
534
  message_flow: "TS",
535
+
431
536
  help_message: "TS",
537
+
432
538
  optin_keywords: "TS",
539
+
433
540
  optout_keywords: "TS",
541
+
434
542
  help_keywords: "TS",
543
+
435
544
  optin_message: "TS",
545
+
436
546
  optout_message: "TS",
547
+
548
+
437
549
  brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new(),
438
550
  )
439
551
  expect(instance.valid?).to eq(true)
@@ -454,63 +566,123 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
454
566
  obj = Object.new()
455
567
  instance_1 = Freeclimb::SMSTenDLCPartnerCampaign.new(
456
568
  account_id: "TS",
569
+
457
570
  campaign_id: "TS",
458
- status:"ACTIVE",
571
+
572
+
573
+ status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
574
+
575
+
459
576
  brand_id: "TS",
577
+
460
578
  usecase: "TS",
579
+
461
580
  description: "TS",
581
+
462
582
  embedded_link: true,
583
+
463
584
  embedded_phone: true,
585
+
464
586
  affiliate_marketing: true,
587
+
465
588
  number_pool: true,
589
+
466
590
  age_gated: true,
591
+
467
592
  direct_lending: true,
593
+
468
594
  subscriber_optin: true,
595
+
469
596
  subscriber_optout: true,
597
+
470
598
  subscriber_help: true,
599
+
471
600
  sample1: "TS",
601
+
472
602
  sample2: "TS",
603
+
473
604
  sample3: "TS",
605
+
474
606
  sample4: "TS",
607
+
475
608
  sample5: "TS",
609
+
476
610
  message_flow: "TS",
611
+
477
612
  help_message: "TS",
613
+
478
614
  optin_keywords: "TS",
615
+
479
616
  optout_keywords: "TS",
617
+
480
618
  help_keywords: "TS",
619
+
481
620
  optin_message: "TS",
621
+
482
622
  optout_message: "TS",
623
+
483
624
  brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new(),
625
+
484
626
  )
485
627
  instance_2 = Freeclimb::SMSTenDLCPartnerCampaign.new(
486
628
  account_id: "TS",
629
+
487
630
  campaign_id: "TS",
488
- status:"ACTIVE",
631
+
632
+
633
+ status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
634
+
635
+
489
636
  brand_id: "TS",
637
+
490
638
  usecase: "TS",
639
+
491
640
  description: "TS",
641
+
492
642
  embedded_link: true,
643
+
493
644
  embedded_phone: true,
645
+
494
646
  affiliate_marketing: true,
647
+
495
648
  number_pool: true,
649
+
496
650
  age_gated: true,
651
+
497
652
  direct_lending: true,
653
+
498
654
  subscriber_optin: true,
655
+
499
656
  subscriber_optout: true,
657
+
500
658
  subscriber_help: true,
659
+
501
660
  sample1: "TS",
661
+
502
662
  sample2: "TS",
663
+
503
664
  sample3: "TS",
665
+
504
666
  sample4: "TS",
667
+
505
668
  sample5: "TS",
669
+
506
670
  message_flow: "TS",
671
+
507
672
  help_message: "TS",
673
+
508
674
  optin_keywords: "TS",
675
+
509
676
  optout_keywords: "TS",
677
+
510
678
  help_keywords: "TS",
679
+
511
680
  optin_message: "TS",
681
+
512
682
  optout_message: "TS",
683
+
513
684
  brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new(),
685
+
514
686
  )
515
687
  expect(instance_1.eql?(instance_2)).to eq(true)
516
688
  end
@@ -518,139 +690,320 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
518
690
  it 'checks if objects are not equal' do
519
691
  instance_1 = Freeclimb::SMSTenDLCPartnerCampaign.new(
520
692
  account_id: "TS",
693
+
521
694
  campaign_id: "TS",
522
- status:"ACTIVE",
695
+
696
+
697
+ status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
698
+
699
+
523
700
  brand_id: "TS",
701
+
524
702
  usecase: "TS",
703
+
525
704
  description: "TS",
705
+
526
706
  embedded_link: true,
707
+
527
708
  embedded_phone: true,
709
+
528
710
  affiliate_marketing: true,
711
+
529
712
  number_pool: true,
713
+
530
714
  age_gated: true,
715
+
531
716
  direct_lending: true,
717
+
532
718
  subscriber_optin: true,
719
+
533
720
  subscriber_optout: true,
721
+
534
722
  subscriber_help: true,
723
+
535
724
  sample1: "TS",
725
+
536
726
  sample2: "TS",
727
+
537
728
  sample3: "TS",
729
+
538
730
  sample4: "TS",
731
+
539
732
  sample5: "TS",
733
+
540
734
  message_flow: "TS",
735
+
541
736
  help_message: "TS",
737
+
542
738
  optin_keywords: "TS",
739
+
543
740
  optout_keywords: "TS",
741
+
544
742
  help_keywords: "TS",
743
+
545
744
  optin_message: "TS",
745
+
546
746
  optout_message: "TS",
747
+
547
748
  brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new(),
749
+
548
750
  )
549
751
  instance_2 = Freeclimb::SMSTenDLCPartnerCampaign.new(
550
752
  account_id: "ST",
753
+
551
754
  campaign_id: "ST",
552
- status:"ACTIVE",
755
+
756
+
757
+ status: nil,
758
+
759
+
553
760
  brand_id: "ST",
761
+
554
762
  usecase: "ST",
763
+
555
764
  description: "ST",
765
+
556
766
  embedded_link: false,
767
+
557
768
  embedded_phone: false,
769
+
558
770
  affiliate_marketing: false,
771
+
559
772
  number_pool: false,
773
+
560
774
  age_gated: false,
775
+
561
776
  direct_lending: false,
777
+
562
778
  subscriber_optin: false,
779
+
563
780
  subscriber_optout: false,
781
+
564
782
  subscriber_help: false,
783
+
565
784
  sample1: "ST",
785
+
566
786
  sample2: "ST",
787
+
567
788
  sample3: "ST",
789
+
568
790
  sample4: "ST",
791
+
569
792
  sample5: "ST",
793
+
570
794
  message_flow: "ST",
795
+
571
796
  help_message: "ST",
797
+
572
798
  optin_keywords: "ST",
799
+
573
800
  optout_keywords: "ST",
801
+
574
802
  help_keywords: "ST",
803
+
575
804
  optin_message: "ST",
805
+
576
806
  optout_message: "ST",
807
+
577
808
  brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new(),
809
+
810
+ )
811
+ expect(instance_1.eql?(instance_2)).to eq(false)
812
+ end
813
+ end
814
+
815
+ describe 'test method "hash"' do
816
+ it 'calculates hash code' do
817
+ instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
818
+ account_id: "TS",
819
+
820
+ campaign_id: "TS",
821
+
822
+
823
+ status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
824
+
825
+
826
+ create_date: "2022-07-05T15:17:05Z",
827
+ brand_id: "TS",
828
+
829
+ usecase: "TS",
830
+
831
+ description: "TS",
832
+
833
+ embedded_link: true,
834
+
835
+ embedded_phone: true,
836
+
837
+ affiliate_marketing: true,
838
+
839
+ number_pool: true,
840
+
841
+ age_gated: true,
842
+
843
+ direct_lending: true,
844
+
845
+ subscriber_optin: true,
846
+
847
+ subscriber_optout: true,
848
+
849
+ subscriber_help: true,
850
+
851
+ sample1: "TS",
852
+
853
+ sample2: "TS",
854
+
855
+ sample3: "TS",
856
+
857
+ sample4: "TS",
858
+
859
+ sample5: "TS",
860
+
861
+ message_flow: "TS",
862
+
863
+ help_message: "TS",
864
+
865
+ optin_keywords: "TS",
866
+
867
+ optout_keywords: "TS",
868
+
869
+ help_keywords: "TS",
870
+
871
+ optin_message: "TS",
872
+
873
+ optout_message: "TS",
874
+
875
+
876
+ brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new(),
877
+ )
878
+ expect(instance.hash).to be_a_kind_of(Integer)
879
+ end
880
+ end
881
+
882
+ describe 'test method "build_from_hash"' do
883
+ it 'builds equivalent model from hash code' do
884
+ instance_1 = Freeclimb::SMSTenDLCPartnerCampaign.new(
885
+ account_id: "TS",
886
+
887
+ campaign_id: "TS",
888
+
889
+
890
+ status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
891
+
892
+
893
+ create_date: "2022-07-05T15:17:05Z",
894
+ brand_id: "TS",
895
+
896
+ usecase: "TS",
897
+
898
+ description: "TS",
899
+
900
+ embedded_link: true,
901
+
902
+ embedded_phone: true,
903
+
904
+ affiliate_marketing: true,
905
+
906
+ number_pool: true,
907
+
908
+ age_gated: true,
909
+
910
+ direct_lending: true,
911
+
912
+ subscriber_optin: true,
913
+
914
+ subscriber_optout: true,
915
+
916
+ subscriber_help: true,
917
+
918
+ sample1: "TS",
919
+
920
+ sample2: "TS",
921
+
922
+ sample3: "TS",
923
+
924
+ sample4: "TS",
925
+
926
+ sample5: "TS",
927
+
928
+ message_flow: "TS",
929
+
930
+ help_message: "TS",
931
+
932
+ optin_keywords: "TS",
933
+
934
+ optout_keywords: "TS",
935
+
936
+ help_keywords: "TS",
937
+
938
+ optin_message: "TS",
939
+
940
+ optout_message: "TS",
941
+
942
+
943
+ brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new(),
578
944
  )
579
- expect(instance_1.eql?(instance_2)).to eq(false)
580
- end
581
- end
582
-
583
- describe 'test method "hash"' do
584
- it 'calculates hash code' do
585
- instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
586
- account_id: "TS",
587
- campaign_id: "TS",
588
- status:"ACTIVE",
589
- create_date: "2022-07-05T15:17:05Z",
590
- brand_id: "TS",
591
- usecase: "TS",
592
- description: "TS",
593
- embedded_link: true,
594
- embedded_phone: true,
595
- affiliate_marketing: true,
596
- number_pool: true,
597
- age_gated: true,
598
- direct_lending: true,
599
- subscriber_optin: true,
600
- subscriber_optout: true,
601
- subscriber_help: true,
602
- sample1: "TS",
603
- sample2: "TS",
604
- sample3: "TS",
605
- sample4: "TS",
606
- sample5: "TS",
607
- message_flow: "TS",
608
- help_message: "TS",
609
- optin_keywords: "TS",
610
- optout_keywords: "TS",
611
- help_keywords: "TS",
612
- optin_message: "TS",
613
- optout_message: "TS",
614
- brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new(),
615
- )
616
- expect(instance.hash).to be_a_kind_of(Integer)
617
- end
618
- end
619
-
620
- describe 'test method "build_from_hash"' do
621
- it 'builds equivalent model from hash code' do
622
- instance_1 = Freeclimb::SMSTenDLCPartnerCampaign.new(
945
+ instance_2 = Freeclimb::SMSTenDLCPartnerCampaign.new(
623
946
  account_id: "TS",
947
+
624
948
  campaign_id: "TS",
625
- status:"ACTIVE",
949
+
950
+
951
+ status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
952
+
953
+
626
954
  create_date: "2022-07-05T15:17:05Z",
627
955
  brand_id: "TS",
956
+
628
957
  usecase: "TS",
958
+
629
959
  description: "TS",
960
+
630
961
  embedded_link: true,
962
+
631
963
  embedded_phone: true,
964
+
632
965
  affiliate_marketing: true,
966
+
633
967
  number_pool: true,
968
+
634
969
  age_gated: true,
970
+
635
971
  direct_lending: true,
972
+
636
973
  subscriber_optin: true,
974
+
637
975
  subscriber_optout: true,
976
+
638
977
  subscriber_help: true,
978
+
639
979
  sample1: "TS",
980
+
640
981
  sample2: "TS",
982
+
641
983
  sample3: "TS",
984
+
642
985
  sample4: "TS",
986
+
643
987
  sample5: "TS",
988
+
644
989
  message_flow: "TS",
990
+
645
991
  help_message: "TS",
992
+
646
993
  optin_keywords: "TS",
994
+
647
995
  optout_keywords: "TS",
996
+
648
997
  help_keywords: "TS",
998
+
649
999
  optin_message: "TS",
1000
+
650
1001
  optout_message: "TS",
1002
+
1003
+
651
1004
  brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new(),
652
1005
  )
653
- instance_2 = Freeclimb::SMSTenDLCPartnerCampaign.new
1006
+
654
1007
  expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
655
1008
  end
656
1009
  end
@@ -658,33 +1011,63 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
658
1011
  describe 'test method "_deserialize"' do
659
1012
  instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
660
1013
  account_id: "TS",
1014
+
661
1015
  campaign_id: "TS",
662
- status:"ACTIVE",
1016
+
1017
+
1018
+ status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
1019
+
1020
+
663
1021
  create_date: "2022-07-05T15:17:05Z",
664
1022
  brand_id: "TS",
1023
+
665
1024
  usecase: "TS",
1025
+
666
1026
  description: "TS",
1027
+
667
1028
  embedded_link: true,
1029
+
668
1030
  embedded_phone: true,
1031
+
669
1032
  affiliate_marketing: true,
1033
+
670
1034
  number_pool: true,
1035
+
671
1036
  age_gated: true,
1037
+
672
1038
  direct_lending: true,
1039
+
673
1040
  subscriber_optin: true,
1041
+
674
1042
  subscriber_optout: true,
1043
+
675
1044
  subscriber_help: true,
1045
+
676
1046
  sample1: "TS",
1047
+
677
1048
  sample2: "TS",
1049
+
678
1050
  sample3: "TS",
1051
+
679
1052
  sample4: "TS",
1053
+
680
1054
  sample5: "TS",
1055
+
681
1056
  message_flow: "TS",
1057
+
682
1058
  help_message: "TS",
1059
+
683
1060
  optin_keywords: "TS",
1061
+
684
1062
  optout_keywords: "TS",
1063
+
685
1064
  help_keywords: "TS",
1065
+
686
1066
  optin_message: "TS",
1067
+
687
1068
  optout_message: "TS",
1069
+
1070
+
688
1071
  brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new,
689
1072
  )
690
1073
  it 'deserializes the data of account_id' do
@@ -693,9 +1076,6 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
693
1076
  it 'deserializes the data of campaign_id' do
694
1077
  expect(instance._deserialize("String", instance.campaign_id)).to be_a_kind_of(String)
695
1078
  end
696
- it 'deserializes the data of status' do
697
- expect(instance._deserialize("String", instance.status)).to be_a_kind_of(String)
698
- end
699
1079
  it 'deserializes the data of create_date' do
700
1080
  expect(instance._deserialize("Time", instance.create_date)).to be_a_kind_of(Time)
701
1081
  end
@@ -780,33 +1160,63 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
780
1160
  it 'returns the string representation of the object' do
781
1161
  instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
782
1162
  account_id: "TS",
1163
+
783
1164
  campaign_id: "TS",
784
- status:"ACTIVE",
1165
+
1166
+
1167
+ status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
1168
+
1169
+
785
1170
  create_date: "2022-07-05T15:17:05Z",
786
1171
  brand_id: "TS",
1172
+
787
1173
  usecase: "TS",
1174
+
788
1175
  description: "TS",
1176
+
789
1177
  embedded_link: true,
1178
+
790
1179
  embedded_phone: true,
1180
+
791
1181
  affiliate_marketing: true,
1182
+
792
1183
  number_pool: true,
1184
+
793
1185
  age_gated: true,
1186
+
794
1187
  direct_lending: true,
1188
+
795
1189
  subscriber_optin: true,
1190
+
796
1191
  subscriber_optout: true,
1192
+
797
1193
  subscriber_help: true,
1194
+
798
1195
  sample1: "TS",
1196
+
799
1197
  sample2: "TS",
1198
+
800
1199
  sample3: "TS",
1200
+
801
1201
  sample4: "TS",
1202
+
802
1203
  sample5: "TS",
1204
+
803
1205
  message_flow: "TS",
1206
+
804
1207
  help_message: "TS",
1208
+
805
1209
  optin_keywords: "TS",
1210
+
806
1211
  optout_keywords: "TS",
1212
+
807
1213
  help_keywords: "TS",
1214
+
808
1215
  optin_message: "TS",
1216
+
809
1217
  optout_message: "TS",
1218
+
1219
+
810
1220
  brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new,
811
1221
  )
812
1222
  expect(instance.to_s).to eq(instance.to_hash.to_s)
@@ -817,33 +1227,63 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
817
1227
  it 'returns the object in the form of hash' do
818
1228
  instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
819
1229
  account_id: "TS",
1230
+
820
1231
  campaign_id: "TS",
821
- status:"ACTIVE",
1232
+
1233
+
1234
+ status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
1235
+
1236
+
822
1237
  create_date: "2022-07-05T15:17:05Z",
823
1238
  brand_id: "TS",
1239
+
824
1240
  usecase: "TS",
1241
+
825
1242
  description: "TS",
1243
+
826
1244
  embedded_link: true,
1245
+
827
1246
  embedded_phone: true,
1247
+
828
1248
  affiliate_marketing: true,
1249
+
829
1250
  number_pool: true,
1251
+
830
1252
  age_gated: true,
1253
+
831
1254
  direct_lending: true,
1255
+
832
1256
  subscriber_optin: true,
1257
+
833
1258
  subscriber_optout: true,
1259
+
834
1260
  subscriber_help: true,
1261
+
835
1262
  sample1: "TS",
1263
+
836
1264
  sample2: "TS",
1265
+
837
1266
  sample3: "TS",
1267
+
838
1268
  sample4: "TS",
1269
+
839
1270
  sample5: "TS",
1271
+
840
1272
  message_flow: "TS",
1273
+
841
1274
  help_message: "TS",
1275
+
842
1276
  optin_keywords: "TS",
1277
+
843
1278
  optout_keywords: "TS",
1279
+
844
1280
  help_keywords: "TS",
1281
+
845
1282
  optin_message: "TS",
1283
+
846
1284
  optout_message: "TS",
1285
+
1286
+
847
1287
  brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new,
848
1288
  )
849
1289
  expect(instance.to_hash).to be_a_kind_of(Hash)
@@ -852,64 +1292,124 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
852
1292
  obj = Object.new()
853
1293
  instance_1 = Freeclimb::SMSTenDLCPartnerCampaign.new(
854
1294
  account_id: "TS",
1295
+
855
1296
  campaign_id: "TS",
856
- status:"ACTIVE",
1297
+
1298
+
1299
+ status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
1300
+
1301
+
857
1302
  create_date: "2022-07-05T15:17:05Z",
858
1303
  brand_id: "TS",
1304
+
859
1305
  usecase: "TS",
1306
+
860
1307
  description: "TS",
1308
+
861
1309
  embedded_link: true,
1310
+
862
1311
  embedded_phone: true,
1312
+
863
1313
  affiliate_marketing: true,
1314
+
864
1315
  number_pool: true,
1316
+
865
1317
  age_gated: true,
1318
+
866
1319
  direct_lending: true,
1320
+
867
1321
  subscriber_optin: true,
1322
+
868
1323
  subscriber_optout: true,
1324
+
869
1325
  subscriber_help: true,
1326
+
870
1327
  sample1: "TS",
1328
+
871
1329
  sample2: "TS",
1330
+
872
1331
  sample3: "TS",
1332
+
873
1333
  sample4: "TS",
1334
+
874
1335
  sample5: "TS",
1336
+
875
1337
  message_flow: "TS",
1338
+
876
1339
  help_message: "TS",
1340
+
877
1341
  optin_keywords: "TS",
1342
+
878
1343
  optout_keywords: "TS",
1344
+
879
1345
  help_keywords: "TS",
1346
+
880
1347
  optin_message: "TS",
1348
+
881
1349
  optout_message: "TS",
1350
+
1351
+
882
1352
  brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new,
883
1353
  )
884
1354
  instance_2 = Freeclimb::SMSTenDLCPartnerCampaign.new(
885
1355
  account_id: "TS",
1356
+
886
1357
  campaign_id: "TS",
887
- status:"ACTIVE",
1358
+
1359
+
1360
+ status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
1361
+
1362
+
888
1363
  create_date: "2022-07-05T15:17:05Z",
889
1364
  brand_id: "TS",
1365
+
890
1366
  usecase: "TS",
1367
+
891
1368
  description: "TS",
1369
+
892
1370
  embedded_link: true,
1371
+
893
1372
  embedded_phone: true,
1373
+
894
1374
  affiliate_marketing: true,
1375
+
895
1376
  number_pool: true,
1377
+
896
1378
  age_gated: true,
1379
+
897
1380
  direct_lending: true,
1381
+
898
1382
  subscriber_optin: true,
1383
+
899
1384
  subscriber_optout: true,
1385
+
900
1386
  subscriber_help: true,
1387
+
901
1388
  sample1: "TS",
1389
+
902
1390
  sample2: "TS",
1391
+
903
1392
  sample3: "TS",
1393
+
904
1394
  sample4: "TS",
1395
+
905
1396
  sample5: "TS",
1397
+
906
1398
  message_flow: "TS",
1399
+
907
1400
  help_message: "TS",
1401
+
908
1402
  optin_keywords: "TS",
1403
+
909
1404
  optout_keywords: "TS",
1405
+
910
1406
  help_keywords: "TS",
1407
+
911
1408
  optin_message: "TS",
1409
+
912
1410
  optout_message: "TS",
1411
+
1412
+
913
1413
  brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new,
914
1414
  )
915
1415
  expect(instance_1.to_hash).to eq(instance_2.to_hash)
@@ -919,61 +1419,91 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
919
1419
  describe 'test method "_to_hash"' do
920
1420
  instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
921
1421
  account_id: "TS",
1422
+
922
1423
 
923
1424
  campaign_id: "TS",
1425
+
924
1426
 
925
- status:"ACTIVE",
1427
+
1428
+ status: Freeclimb::SMSTenDLCPartnerCampaignStatus::ACTIVE,
1429
+
926
1430
 
1431
+
927
1432
  create_date: "2022-07-05T15:17:05Z",
928
1433
 
929
1434
  brand_id: "TS",
1435
+
930
1436
 
931
1437
  usecase: "TS",
1438
+
932
1439
 
933
1440
  description: "TS",
1441
+
934
1442
 
935
1443
  embedded_link: true,
1444
+
936
1445
 
937
1446
  embedded_phone: true,
1447
+
938
1448
 
939
1449
  affiliate_marketing: true,
1450
+
940
1451
 
941
1452
  number_pool: true,
1453
+
942
1454
 
943
1455
  age_gated: true,
1456
+
944
1457
 
945
1458
  direct_lending: true,
1459
+
946
1460
 
947
1461
  subscriber_optin: true,
1462
+
948
1463
 
949
1464
  subscriber_optout: true,
1465
+
950
1466
 
951
1467
  subscriber_help: true,
1468
+
952
1469
 
953
1470
  sample1: "TS",
1471
+
954
1472
 
955
1473
  sample2: "TS",
1474
+
956
1475
 
957
1476
  sample3: "TS",
1477
+
958
1478
 
959
1479
  sample4: "TS",
1480
+
960
1481
 
961
1482
  sample5: "TS",
1483
+
962
1484
 
963
1485
  message_flow: "TS",
1486
+
964
1487
 
965
1488
  help_message: "TS",
1489
+
966
1490
 
967
1491
  optin_keywords: "TS",
1492
+
968
1493
 
969
1494
  optout_keywords: "TS",
1495
+
970
1496
 
971
1497
  help_keywords: "TS",
1498
+
972
1499
 
973
1500
  optin_message: "TS",
1501
+
974
1502
 
975
1503
  optout_message: "TS",
1504
+
976
1505
 
1506
+
977
1507
  )
978
1508
  it 'returns account_id in the form of hash' do
979
1509
  expect(instance._to_hash(instance.account_id)).to eq(instance.account_id)