freeclimb 5.0.0 → 5.2.0

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