freeclimb 4.4.0 → 4.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -2
  3. data/Gemfile.lock +1 -1
  4. data/README.md +4 -4
  5. data/docs/AddToConference.md +1 -1
  6. data/docs/AddToConferenceAllOf.md +1 -1
  7. data/lib/freeclimb/models/add_to_conference.rb +1 -1
  8. data/lib/freeclimb/models/add_to_conference_all_of.rb +1 -1
  9. data/lib/freeclimb/version.rb +1 -1
  10. data/openapi.json +161 -60
  11. data/spec/models/account_request_spec.rb +143 -2
  12. data/spec/models/account_result_spec.rb +377 -13
  13. data/spec/models/account_status_spec.rb +39 -6
  14. data/spec/models/account_type_spec.rb +26 -4
  15. data/spec/models/add_to_conference_spec.rb +343 -10
  16. data/spec/models/answered_by_spec.rb +26 -4
  17. data/spec/models/application_list_spec.rb +293 -8
  18. data/spec/models/application_request_spec.rb +268 -7
  19. data/spec/models/application_result_spec.rb +418 -13
  20. data/spec/models/available_number_list_spec.rb +293 -8
  21. data/spec/models/available_number_spec.rb +263 -7
  22. data/spec/models/buy_incoming_number_request_spec.rb +168 -3
  23. data/spec/models/call_direction_spec.rb +39 -6
  24. data/spec/models/call_list_spec.rb +293 -8
  25. data/spec/models/call_result_spec.rb +603 -22
  26. data/spec/models/call_status_spec.rb +104 -16
  27. data/spec/models/capabilities_spec.rb +218 -5
  28. data/spec/models/conference_list_spec.rb +293 -8
  29. data/spec/models/conference_participant_list_spec.rb +293 -8
  30. data/spec/models/conference_participant_result_spec.rb +343 -10
  31. data/spec/models/conference_result_spec.rb +464 -16
  32. data/spec/models/conference_status_spec.rb +52 -8
  33. data/spec/models/create_conference_request_spec.rb +228 -6
  34. data/spec/models/create_conference_spec.rb +253 -7
  35. data/spec/models/enqueue_spec.rb +193 -4
  36. data/spec/models/filter_logs_request_spec.rb +118 -1
  37. data/spec/models/get_digits_spec.rb +318 -9
  38. data/spec/models/get_speech_reason_spec.rb +78 -12
  39. data/spec/models/get_speech_spec.rb +388 -14
  40. data/spec/models/grammar_file_built_in_spec.rb +195 -30
  41. data/spec/models/grammar_type_spec.rb +26 -4
  42. data/spec/models/hangup_spec.rb +118 -1
  43. data/spec/models/if_machine_spec.rb +26 -4
  44. data/spec/models/incoming_number_list_spec.rb +293 -8
  45. data/spec/models/incoming_number_request_spec.rb +173 -2
  46. data/spec/models/incoming_number_result_spec.rb +488 -16
  47. data/spec/models/language_spec.rb +338 -52
  48. data/spec/models/log_level_spec.rb +39 -6
  49. data/spec/models/log_list_spec.rb +293 -8
  50. data/spec/models/log_result_spec.rb +275 -8
  51. data/spec/models/machine_type_spec.rb +26 -4
  52. data/spec/models/make_call_request_spec.rb +343 -10
  53. data/spec/models/message_direction_spec.rb +26 -4
  54. data/spec/models/message_request_spec.rb +318 -9
  55. data/spec/models/message_result_spec.rb +431 -13
  56. data/spec/models/message_status_spec.rb +143 -22
  57. data/spec/models/messages_list_spec.rb +293 -8
  58. data/spec/models/mutable_resource_model_spec.rb +193 -4
  59. data/spec/models/out_dial_spec.rb +345 -11
  60. data/spec/models/pagination_model_spec.rb +268 -7
  61. data/spec/models/park_spec.rb +168 -3
  62. data/spec/models/pause_spec.rb +118 -1
  63. data/spec/models/percl_command_spec.rb +132 -3
  64. data/spec/models/percl_script_spec.rb +118 -1
  65. data/spec/models/play_beep_spec.rb +52 -8
  66. data/spec/models/play_early_media_spec.rb +118 -1
  67. data/spec/models/play_spec.rb +193 -4
  68. data/spec/models/queue_list_spec.rb +293 -8
  69. data/spec/models/queue_member_list_spec.rb +293 -8
  70. data/spec/models/queue_member_spec.rb +218 -5
  71. data/spec/models/queue_request_spec.rb +143 -2
  72. data/spec/models/queue_result_spec.rb +369 -11
  73. data/spec/models/queue_result_status_spec.rb +52 -8
  74. data/spec/models/record_utterance_spec.rb +268 -7
  75. data/spec/models/record_utterance_term_reason_spec.rb +52 -8
  76. data/spec/models/recording_list_spec.rb +293 -8
  77. data/spec/models/recording_result_spec.rb +318 -9
  78. data/spec/models/redirect_spec.rb +118 -1
  79. data/spec/models/reject_spec.rb +118 -1
  80. data/spec/models/remove_from_conference_spec.rb +118 -1
  81. data/spec/models/request_type_spec.rb +299 -46
  82. data/spec/models/say_spec.rb +218 -5
  83. data/spec/models/send_digits_spec.rb +168 -3
  84. data/spec/models/set_listen_spec.rb +143 -2
  85. data/spec/models/set_talk_spec.rb +143 -2
  86. data/spec/models/sms_spec.rb +193 -4
  87. data/spec/models/sms_ten_dlc_brand_spec.rb +1070 -64
  88. data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +294 -9
  89. data/spec/models/sms_ten_dlc_campaign_spec.rb +875 -38
  90. data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +294 -9
  91. data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +365 -11
  92. data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +823 -35
  93. data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +294 -9
  94. data/spec/models/terminate_conference_spec.rb +118 -1
  95. data/spec/models/update_call_request_spec.rb +120 -2
  96. data/spec/models/update_call_request_status_spec.rb +26 -4
  97. data/spec/models/update_conference_participant_request_spec.rb +143 -2
  98. data/spec/models/update_conference_request_spec.rb +180 -5
  99. data/spec/models/update_conference_request_status_spec.rb +26 -4
  100. metadata +77 -77
@@ -27,179 +27,967 @@ describe Freeclimb::SMSTenDLCPartnerCampaign do
27
27
  end
28
28
  describe 'test attribute "account_id"' do
29
29
  it 'should work' do
30
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
30
+ instance.account_id = "TEST_STRING"
31
+ expect(instance.account_id).to eq("TEST_STRING")
31
32
  end
32
33
  end
33
34
 
34
35
  describe 'test attribute "campaign_id"' do
35
36
  it 'should work' do
36
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ instance.campaign_id = "TEST_STRING"
38
+ expect(instance.campaign_id).to eq("TEST_STRING")
37
39
  end
38
40
  end
39
41
 
40
42
  describe 'test attribute "status"' do
41
- it 'should work' do
42
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["ACTIVE", "EXPIRED"])
44
- # validator.allowable_values.each do |value|
45
- # expect { instance.status = value }.not_to raise_error
46
- # end
43
+ it 'assigns value ACTIVE' do
44
+ instance.status = "ACTIVE"
45
+ expect(instance.status).to eq("ACTIVE")
46
+ end
47
+ it 'assigns value EXPIRED' do
48
+ instance.status = "EXPIRED"
49
+ expect(instance.status).to eq("EXPIRED")
50
+ end
51
+ it 'throws error on invalid enum' do
52
+ instance = Freeclimb::SMSTenDLCPartnerCampaign.new
53
+ expect{instance.status = "INVALID_ENUM"}.to raise_error(ArgumentError)
47
54
  end
48
55
  end
49
56
 
50
57
  describe 'test attribute "create_date"' do
51
58
  it 'should work' do
52
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
59
+ instance.create_date = "2022-07-05T15:17:05Z"
60
+ expect(instance.create_date).to eq("2022-07-05T15:17:05Z")
53
61
  end
54
62
  end
55
63
 
64
+
56
65
  describe 'test attribute "brand_id"' do
57
- it 'should work' do
58
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
66
+ it 'should work with length 8' do
67
+ instance.brand_id = "TEST_STR"
68
+ expect(instance.brand_id).to eq("TEST_STR")
69
+ end
70
+ it 'should not work with length > 8' do
71
+ expect{instance.brand_id = "TEST_STRING"}.to raise_error(ArgumentError)
59
72
  end
60
73
  end
61
74
 
62
75
  describe 'test attribute "usecase"' do
63
76
  it 'should work' do
64
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
77
+ instance.usecase = "TEST_STRING"
78
+ expect(instance.usecase).to eq("TEST_STRING")
65
79
  end
66
80
  end
67
81
 
68
82
  describe 'test attribute "description"' do
69
83
  it 'should work' do
70
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
84
+ instance.description = "TEST_STRING"
85
+ expect(instance.description).to eq("TEST_STRING")
71
86
  end
72
87
  end
73
88
 
74
89
  describe 'test attribute "embedded_link"' do
75
90
  it 'should work' do
76
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
91
+ instance.embedded_link = false
92
+ expect(instance.embedded_link).to eq(false)
77
93
  end
78
94
  end
79
95
 
80
96
  describe 'test attribute "embedded_phone"' do
81
97
  it 'should work' do
82
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
98
+ instance.embedded_phone = false
99
+ expect(instance.embedded_phone).to eq(false)
83
100
  end
84
101
  end
85
102
 
86
103
  describe 'test attribute "affiliate_marketing"' do
87
104
  it 'should work' do
88
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
105
+ instance.affiliate_marketing = false
106
+ expect(instance.affiliate_marketing).to eq(false)
89
107
  end
90
108
  end
91
109
 
92
110
  describe 'test attribute "number_pool"' do
93
111
  it 'should work' do
94
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
112
+ instance.number_pool = false
113
+ expect(instance.number_pool).to eq(false)
95
114
  end
96
115
  end
97
116
 
98
117
  describe 'test attribute "age_gated"' do
99
118
  it 'should work' do
100
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
119
+ instance.age_gated = false
120
+ expect(instance.age_gated).to eq(false)
101
121
  end
102
122
  end
103
123
 
104
124
  describe 'test attribute "direct_lending"' do
105
125
  it 'should work' do
106
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
126
+ instance.direct_lending = false
127
+ expect(instance.direct_lending).to eq(false)
107
128
  end
108
129
  end
109
130
 
110
131
  describe 'test attribute "subscriber_optin"' do
111
132
  it 'should work' do
112
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
133
+ instance.subscriber_optin = false
134
+ expect(instance.subscriber_optin).to eq(false)
113
135
  end
114
136
  end
115
137
 
116
138
  describe 'test attribute "subscriber_optout"' do
117
139
  it 'should work' do
118
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
140
+ instance.subscriber_optout = false
141
+ expect(instance.subscriber_optout).to eq(false)
119
142
  end
120
143
  end
121
144
 
122
145
  describe 'test attribute "subscriber_help"' do
123
146
  it 'should work' do
124
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
147
+ instance.subscriber_help = false
148
+ expect(instance.subscriber_help).to eq(false)
125
149
  end
126
150
  end
127
151
 
128
152
  describe 'test attribute "sample1"' do
129
153
  it 'should work' do
130
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
154
+ instance.sample1 = "TEST_STRING"
155
+ expect(instance.sample1).to eq("TEST_STRING")
131
156
  end
132
157
  end
133
158
 
134
159
  describe 'test attribute "sample2"' do
135
160
  it 'should work' do
136
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
161
+ instance.sample2 = "TEST_STRING"
162
+ expect(instance.sample2).to eq("TEST_STRING")
137
163
  end
138
164
  end
139
165
 
140
166
  describe 'test attribute "sample3"' do
141
167
  it 'should work' do
142
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
168
+ instance.sample3 = "TEST_STRING"
169
+ expect(instance.sample3).to eq("TEST_STRING")
143
170
  end
144
171
  end
145
172
 
146
173
  describe 'test attribute "sample4"' do
147
174
  it 'should work' do
148
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
175
+ instance.sample4 = "TEST_STRING"
176
+ expect(instance.sample4).to eq("TEST_STRING")
149
177
  end
150
178
  end
151
179
 
152
180
  describe 'test attribute "sample5"' do
153
181
  it 'should work' do
154
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
182
+ instance.sample5 = "TEST_STRING"
183
+ expect(instance.sample5).to eq("TEST_STRING")
155
184
  end
156
185
  end
157
186
 
158
187
  describe 'test attribute "message_flow"' do
159
188
  it 'should work' do
160
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
189
+ instance.message_flow = "TEST_STRING"
190
+ expect(instance.message_flow).to eq("TEST_STRING")
161
191
  end
162
192
  end
163
193
 
164
194
  describe 'test attribute "help_message"' do
165
195
  it 'should work' do
166
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
196
+ instance.help_message = "TEST_STRING"
197
+ expect(instance.help_message).to eq("TEST_STRING")
167
198
  end
168
199
  end
169
200
 
170
201
  describe 'test attribute "optin_keywords"' do
171
202
  it 'should work' do
172
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
203
+ instance.optin_keywords = "TEST_STRING"
204
+ expect(instance.optin_keywords).to eq("TEST_STRING")
173
205
  end
174
206
  end
175
207
 
176
208
  describe 'test attribute "optout_keywords"' do
177
209
  it 'should work' do
178
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
210
+ instance.optout_keywords = "TEST_STRING"
211
+ expect(instance.optout_keywords).to eq("TEST_STRING")
179
212
  end
180
213
  end
181
214
 
182
215
  describe 'test attribute "help_keywords"' do
183
216
  it 'should work' do
184
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
217
+ instance.help_keywords = "TEST_STRING"
218
+ expect(instance.help_keywords).to eq("TEST_STRING")
185
219
  end
186
220
  end
187
221
 
188
222
  describe 'test attribute "optin_message"' do
189
223
  it 'should work' do
190
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
224
+ instance.optin_message = "TEST_STRING"
225
+ expect(instance.optin_message).to eq("TEST_STRING")
191
226
  end
192
227
  end
193
228
 
194
229
  describe 'test attribute "optout_message"' do
195
230
  it 'should work' do
196
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
231
+ instance.optout_message = "TEST_STRING"
232
+ expect(instance.optout_message).to eq("TEST_STRING")
197
233
  end
198
234
  end
199
235
 
200
236
  describe 'test attribute "brand"' do
201
237
  it 'should work' do
202
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
238
+ instance.brand = Freeclimb::SMSTenDLCPartnerCampaignBrand.new
239
+ expect(instance.brand).to be_instance_of(Freeclimb::SMSTenDLCPartnerCampaignBrand)
240
+ end
241
+ end
242
+
243
+ describe 'test method "initialize"' do
244
+ it 'properly initializes with values' do
245
+ expect{instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
246
+ account_id: "TS",
247
+ campaign_id: "TS",
248
+ status: "ACTIVE",
249
+ create_date: "2022-07-05T15:17:05Z",
250
+ brand_id: "TS",
251
+ usecase: "TS",
252
+ description: "TS",
253
+ embedded_link: true,
254
+ embedded_phone: true,
255
+ affiliate_marketing: true,
256
+ number_pool: true,
257
+ age_gated: true,
258
+ direct_lending: true,
259
+ subscriber_optin: true,
260
+ subscriber_optout: true,
261
+ subscriber_help: true,
262
+ sample1: "TS",
263
+ sample2: "TS",
264
+ sample3: "TS",
265
+ sample4: "TS",
266
+ sample5: "TS",
267
+ message_flow: "TS",
268
+ help_message: "TS",
269
+ optin_keywords: "TS",
270
+ optout_keywords: "TS",
271
+ help_keywords: "TS",
272
+ optin_message: "TS",
273
+ optout_message: "TS",
274
+ brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new,
275
+ )}.not_to raise_error()
276
+ end
277
+ it 'fails to initialize with input argument that is not a hash in Freeclimb::SMSTenDLCPartnerCampaign' do
278
+ expect{instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
279
+ account_id: "TS",
280
+ campaign_id: "TS",
281
+ status: "ACTIVE",
282
+ create_date: "2022-07-05T15:17:05Z",
283
+ brand_id: "TS",
284
+ usecase: "TS",
285
+ description: "TS",
286
+ embedded_link: true,
287
+ embedded_phone: true,
288
+ affiliate_marketing: true,
289
+ number_pool: true,
290
+ age_gated: true,
291
+ direct_lending: true,
292
+ subscriber_optin: true,
293
+ subscriber_optout: true,
294
+ subscriber_help: true,
295
+ sample1: "TS",
296
+ sample2: "TS",
297
+ sample3: "TS",
298
+ sample4: "TS",
299
+ sample5: "TS",
300
+ message_flow: "TS",
301
+ help_message: "TS",
302
+ optin_keywords: "TS",
303
+ optout_keywords: "TS",
304
+ help_keywords: "TS",
305
+ optin_message: "TS",
306
+ optout_message: "TS",
307
+ brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new,
308
+ invalid_attribute: true
309
+ )}.to raise_error(ArgumentError)
310
+ end
311
+ it 'fails to initialize with invalid attribute' do
312
+ expect{instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
313
+ account_id: "TS",
314
+ campaign_id: "TS",
315
+ status: "ACTIVE",
316
+ create_date: "2022-07-05T15:17:05Z",
317
+ brand_id: "TS",
318
+ usecase: "TS",
319
+ description: "TS",
320
+ embedded_link: true,
321
+ embedded_phone: true,
322
+ affiliate_marketing: true,
323
+ number_pool: true,
324
+ age_gated: true,
325
+ direct_lending: true,
326
+ subscriber_optin: true,
327
+ subscriber_optout: true,
328
+ subscriber_help: true,
329
+ sample1: "TS",
330
+ sample2: "TS",
331
+ sample3: "TS",
332
+ sample4: "TS",
333
+ sample5: "TS",
334
+ message_flow: "TS",
335
+ help_message: "TS",
336
+ optin_keywords: "TS",
337
+ optout_keywords: "TS",
338
+ help_keywords: "TS",
339
+ optin_message: "TS",
340
+ optout_message: "TS",
341
+ brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new,
342
+ invalid_attribute: true
343
+ )}.to raise_error(ArgumentError)
344
+ end
345
+ end
346
+
347
+ describe 'test method "valid"' do
348
+ it 'checks if properties are valid' do
349
+ instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
350
+ account_id: "TS",
351
+ campaign_id: "TS",
352
+ status: "ACTIVE",
353
+ create_date: "2022-07-05T15:17:05Z",
354
+ brand_id: "TS",
355
+ usecase: "TS",
356
+ description: "TS",
357
+ embedded_link: true,
358
+ embedded_phone: true,
359
+ affiliate_marketing: true,
360
+ number_pool: true,
361
+ age_gated: true,
362
+ direct_lending: true,
363
+ subscriber_optin: true,
364
+ subscriber_optout: true,
365
+ subscriber_help: true,
366
+ sample1: "TS",
367
+ sample2: "TS",
368
+ sample3: "TS",
369
+ sample4: "TS",
370
+ sample5: "TS",
371
+ message_flow: "TS",
372
+ help_message: "TS",
373
+ optin_keywords: "TS",
374
+ optout_keywords: "TS",
375
+ help_keywords: "TS",
376
+ optin_message: "TS",
377
+ optout_message: "TS",
378
+ brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new,
379
+ )
380
+ expect(instance.valid?).to eq(true)
381
+ end
382
+ end
383
+
384
+ describe 'test method "eql?"' do
385
+ it 'checks if objects are equal' do
386
+ obj = Object.new()
387
+ instance_1 = Freeclimb::SMSTenDLCPartnerCampaign.new(
388
+ account_id: "TS",
389
+ campaign_id: "TS",
390
+ status: "ACTIVE",
391
+ brand_id: "TS",
392
+ usecase: "TS",
393
+ description: "TS",
394
+ embedded_link: true,
395
+ embedded_phone: true,
396
+ affiliate_marketing: true,
397
+ number_pool: true,
398
+ age_gated: true,
399
+ direct_lending: true,
400
+ subscriber_optin: true,
401
+ subscriber_optout: true,
402
+ subscriber_help: true,
403
+ sample1: "TS",
404
+ sample2: "TS",
405
+ sample3: "TS",
406
+ sample4: "TS",
407
+ sample5: "TS",
408
+ message_flow: "TS",
409
+ help_message: "TS",
410
+ optin_keywords: "TS",
411
+ optout_keywords: "TS",
412
+ help_keywords: "TS",
413
+ optin_message: "TS",
414
+ optout_message: "TS",
415
+ )
416
+ instance_2 = Freeclimb::SMSTenDLCPartnerCampaign.new(
417
+ account_id: "TS",
418
+ campaign_id: "TS",
419
+ status: "ACTIVE",
420
+ brand_id: "TS",
421
+ usecase: "TS",
422
+ description: "TS",
423
+ embedded_link: true,
424
+ embedded_phone: true,
425
+ affiliate_marketing: true,
426
+ number_pool: true,
427
+ age_gated: true,
428
+ direct_lending: true,
429
+ subscriber_optin: true,
430
+ subscriber_optout: true,
431
+ subscriber_help: true,
432
+ sample1: "TS",
433
+ sample2: "TS",
434
+ sample3: "TS",
435
+ sample4: "TS",
436
+ sample5: "TS",
437
+ message_flow: "TS",
438
+ help_message: "TS",
439
+ optin_keywords: "TS",
440
+ optout_keywords: "TS",
441
+ help_keywords: "TS",
442
+ optin_message: "TS",
443
+ optout_message: "TS",
444
+ )
445
+ expect(instance_1.eql?(instance_2)).to eq(true)
446
+ end
447
+ it 'checks if objects are not equal' do
448
+ instance_1 = Freeclimb::SMSTenDLCPartnerCampaign.new(
449
+ account_id: "TS",
450
+ campaign_id: "TS",
451
+ status: "ACTIVE",
452
+ brand_id: "TS",
453
+ usecase: "TS",
454
+ description: "TS",
455
+ embedded_link: true,
456
+ embedded_phone: true,
457
+ affiliate_marketing: true,
458
+ number_pool: true,
459
+ age_gated: true,
460
+ direct_lending: true,
461
+ subscriber_optin: true,
462
+ subscriber_optout: true,
463
+ subscriber_help: true,
464
+ sample1: "TS",
465
+ sample2: "TS",
466
+ sample3: "TS",
467
+ sample4: "TS",
468
+ sample5: "TS",
469
+ message_flow: "TS",
470
+ help_message: "TS",
471
+ optin_keywords: "TS",
472
+ optout_keywords: "TS",
473
+ help_keywords: "TS",
474
+ optin_message: "TS",
475
+ optout_message: "TS",
476
+ )
477
+ instance_2 = Freeclimb::SMSTenDLCPartnerCampaign.new(
478
+ account_id: "ST",
479
+ campaign_id: "ST",
480
+ status: "EXPIRED",
481
+ brand_id: "ST",
482
+ usecase: "ST",
483
+ description: "ST",
484
+ embedded_link: false,
485
+ embedded_phone: false,
486
+ affiliate_marketing: false,
487
+ number_pool: false,
488
+ age_gated: false,
489
+ direct_lending: false,
490
+ subscriber_optin: false,
491
+ subscriber_optout: false,
492
+ subscriber_help: false,
493
+ sample1: "ST",
494
+ sample2: "ST",
495
+ sample3: "ST",
496
+ sample4: "ST",
497
+ sample5: "ST",
498
+ message_flow: "ST",
499
+ help_message: "ST",
500
+ optin_keywords: "ST",
501
+ optout_keywords: "ST",
502
+ help_keywords: "ST",
503
+ optin_message: "ST",
504
+ optout_message: "ST",
505
+ )
506
+ expect(instance_1.eql?(instance_2)).to eq(false)
507
+ end
508
+ end
509
+
510
+ describe 'test method "hash"' do
511
+ it 'calculates hash code' do
512
+ instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
513
+ account_id: "TS",
514
+ campaign_id: "TS",
515
+ status: "ACTIVE",
516
+ create_date: "2022-07-05T15:17:05Z",
517
+ brand_id: "TS",
518
+ usecase: "TS",
519
+ description: "TS",
520
+ embedded_link: true,
521
+ embedded_phone: true,
522
+ affiliate_marketing: true,
523
+ number_pool: true,
524
+ age_gated: true,
525
+ direct_lending: true,
526
+ subscriber_optin: true,
527
+ subscriber_optout: true,
528
+ subscriber_help: true,
529
+ sample1: "TS",
530
+ sample2: "TS",
531
+ sample3: "TS",
532
+ sample4: "TS",
533
+ sample5: "TS",
534
+ message_flow: "TS",
535
+ help_message: "TS",
536
+ optin_keywords: "TS",
537
+ optout_keywords: "TS",
538
+ help_keywords: "TS",
539
+ optin_message: "TS",
540
+ optout_message: "TS",
541
+ brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new,
542
+ )
543
+ expect(instance.hash).to be_a_kind_of(Integer)
544
+ end
545
+ end
546
+
547
+ describe 'test method "build_from_hash"' do
548
+ it 'builds equivalent model from hash code' do
549
+ instance_1 = Freeclimb::SMSTenDLCPartnerCampaign.new(
550
+ account_id: "TS",
551
+ campaign_id: "TS",
552
+ status: "ACTIVE",
553
+ create_date: "2022-07-05T15:17:05Z",
554
+ brand_id: "TS",
555
+ usecase: "TS",
556
+ description: "TS",
557
+ embedded_link: true,
558
+ embedded_phone: true,
559
+ affiliate_marketing: true,
560
+ number_pool: true,
561
+ age_gated: true,
562
+ direct_lending: true,
563
+ subscriber_optin: true,
564
+ subscriber_optout: true,
565
+ subscriber_help: true,
566
+ sample1: "TS",
567
+ sample2: "TS",
568
+ sample3: "TS",
569
+ sample4: "TS",
570
+ sample5: "TS",
571
+ message_flow: "TS",
572
+ help_message: "TS",
573
+ optin_keywords: "TS",
574
+ optout_keywords: "TS",
575
+ help_keywords: "TS",
576
+ optin_message: "TS",
577
+ optout_message: "TS",
578
+ brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new,
579
+ )
580
+ instance_2 = Freeclimb::SMSTenDLCPartnerCampaign.new
581
+ expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
582
+ end
583
+ end
584
+
585
+ describe 'test method "_deserialize"' do
586
+ instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
587
+ account_id: "TS",
588
+ campaign_id: "TS",
589
+ status: "ACTIVE",
590
+ create_date: "2022-07-05T15:17:05Z",
591
+ brand_id: "TS",
592
+ usecase: "TS",
593
+ description: "TS",
594
+ embedded_link: true,
595
+ embedded_phone: true,
596
+ affiliate_marketing: true,
597
+ number_pool: true,
598
+ age_gated: true,
599
+ direct_lending: true,
600
+ subscriber_optin: true,
601
+ subscriber_optout: true,
602
+ subscriber_help: true,
603
+ sample1: "TS",
604
+ sample2: "TS",
605
+ sample3: "TS",
606
+ sample4: "TS",
607
+ sample5: "TS",
608
+ message_flow: "TS",
609
+ help_message: "TS",
610
+ optin_keywords: "TS",
611
+ optout_keywords: "TS",
612
+ help_keywords: "TS",
613
+ optin_message: "TS",
614
+ optout_message: "TS",
615
+ brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new,
616
+ )
617
+ it 'deserializes the data of account_id' do
618
+ expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String)
619
+ end
620
+ it 'deserializes the data of campaign_id' do
621
+ expect(instance._deserialize("String", instance.campaign_id)).to be_a_kind_of(String)
622
+ end
623
+ it 'deserializes the data of status' do
624
+ expect(instance._deserialize("String", instance.status)).to be_a_kind_of(String)
625
+ end
626
+ it 'deserializes the data of create_date' do
627
+ expect(instance._deserialize("Time", instance.create_date)).to be_a_kind_of(Time)
628
+ end
629
+ it 'deserializes the data of brand_id' do
630
+ expect(instance._deserialize("String", instance.brand_id)).to be_a_kind_of(String)
631
+ end
632
+ it 'deserializes the data of usecase' do
633
+ expect(instance._deserialize("String", instance.usecase)).to be_a_kind_of(String)
634
+ end
635
+ it 'deserializes the data of description' do
636
+ expect(instance._deserialize("String", instance.description)).to be_a_kind_of(String)
637
+ end
638
+ it 'deserializes the data of embedded_link' do
639
+ expect(instance._deserialize("Boolean", instance.embedded_link)).to be_a_kind_of(TrueClass)
640
+ end
641
+ it 'deserializes the data of embedded_phone' do
642
+ expect(instance._deserialize("Boolean", instance.embedded_phone)).to be_a_kind_of(TrueClass)
643
+ end
644
+ it 'deserializes the data of affiliate_marketing' do
645
+ expect(instance._deserialize("Boolean", instance.affiliate_marketing)).to be_a_kind_of(TrueClass)
646
+ end
647
+ it 'deserializes the data of number_pool' do
648
+ expect(instance._deserialize("Boolean", instance.number_pool)).to be_a_kind_of(TrueClass)
649
+ end
650
+ it 'deserializes the data of age_gated' do
651
+ expect(instance._deserialize("Boolean", instance.age_gated)).to be_a_kind_of(TrueClass)
652
+ end
653
+ it 'deserializes the data of direct_lending' do
654
+ expect(instance._deserialize("Boolean", instance.direct_lending)).to be_a_kind_of(TrueClass)
655
+ end
656
+ it 'deserializes the data of subscriber_optin' do
657
+ expect(instance._deserialize("Boolean", instance.subscriber_optin)).to be_a_kind_of(TrueClass)
658
+ end
659
+ it 'deserializes the data of subscriber_optout' do
660
+ expect(instance._deserialize("Boolean", instance.subscriber_optout)).to be_a_kind_of(TrueClass)
661
+ end
662
+ it 'deserializes the data of subscriber_help' do
663
+ expect(instance._deserialize("Boolean", instance.subscriber_help)).to be_a_kind_of(TrueClass)
664
+ end
665
+ it 'deserializes the data of sample1' do
666
+ expect(instance._deserialize("String", instance.sample1)).to be_a_kind_of(String)
667
+ end
668
+ it 'deserializes the data of sample2' do
669
+ expect(instance._deserialize("String", instance.sample2)).to be_a_kind_of(String)
670
+ end
671
+ it 'deserializes the data of sample3' do
672
+ expect(instance._deserialize("String", instance.sample3)).to be_a_kind_of(String)
673
+ end
674
+ it 'deserializes the data of sample4' do
675
+ expect(instance._deserialize("String", instance.sample4)).to be_a_kind_of(String)
676
+ end
677
+ it 'deserializes the data of sample5' do
678
+ expect(instance._deserialize("String", instance.sample5)).to be_a_kind_of(String)
679
+ end
680
+ it 'deserializes the data of message_flow' do
681
+ expect(instance._deserialize("String", instance.message_flow)).to be_a_kind_of(String)
682
+ end
683
+ it 'deserializes the data of help_message' do
684
+ expect(instance._deserialize("String", instance.help_message)).to be_a_kind_of(String)
685
+ end
686
+ it 'deserializes the data of optin_keywords' do
687
+ expect(instance._deserialize("String", instance.optin_keywords)).to be_a_kind_of(String)
688
+ end
689
+ it 'deserializes the data of optout_keywords' do
690
+ expect(instance._deserialize("String", instance.optout_keywords)).to be_a_kind_of(String)
691
+ end
692
+ it 'deserializes the data of help_keywords' do
693
+ expect(instance._deserialize("String", instance.help_keywords)).to be_a_kind_of(String)
694
+ end
695
+ it 'deserializes the data of optin_message' do
696
+ expect(instance._deserialize("String", instance.optin_message)).to be_a_kind_of(String)
697
+ end
698
+ it 'deserializes the data of optout_message' do
699
+ expect(instance._deserialize("String", instance.optout_message)).to be_a_kind_of(String)
700
+ end
701
+ it 'deserializes the data of brand' do
702
+ expect(instance._deserialize("Object", instance.brand)).to be_a_kind_of(Freeclimb::SMSTenDLCPartnerCampaignBrand)
703
+ end
704
+ end
705
+
706
+ describe 'test method "to_s"' do
707
+ it 'returns the string representation of the object' do
708
+ instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
709
+ account_id: "TS",
710
+ campaign_id: "TS",
711
+ status: "ACTIVE",
712
+ create_date: "2022-07-05T15:17:05Z",
713
+ brand_id: "TS",
714
+ usecase: "TS",
715
+ description: "TS",
716
+ embedded_link: true,
717
+ embedded_phone: true,
718
+ affiliate_marketing: true,
719
+ number_pool: true,
720
+ age_gated: true,
721
+ direct_lending: true,
722
+ subscriber_optin: true,
723
+ subscriber_optout: true,
724
+ subscriber_help: true,
725
+ sample1: "TS",
726
+ sample2: "TS",
727
+ sample3: "TS",
728
+ sample4: "TS",
729
+ sample5: "TS",
730
+ message_flow: "TS",
731
+ help_message: "TS",
732
+ optin_keywords: "TS",
733
+ optout_keywords: "TS",
734
+ help_keywords: "TS",
735
+ optin_message: "TS",
736
+ optout_message: "TS",
737
+ brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new,
738
+ )
739
+ expect(instance.to_s).to eq(instance.to_hash.to_s)
740
+ end
741
+ end
742
+
743
+ describe 'test method "to_hash"' do
744
+ it 'returns the object in the form of hash' do
745
+ instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
746
+ account_id: "TS",
747
+ campaign_id: "TS",
748
+ status: "ACTIVE",
749
+ create_date: "2022-07-05T15:17:05Z",
750
+ brand_id: "TS",
751
+ usecase: "TS",
752
+ description: "TS",
753
+ embedded_link: true,
754
+ embedded_phone: true,
755
+ affiliate_marketing: true,
756
+ number_pool: true,
757
+ age_gated: true,
758
+ direct_lending: true,
759
+ subscriber_optin: true,
760
+ subscriber_optout: true,
761
+ subscriber_help: true,
762
+ sample1: "TS",
763
+ sample2: "TS",
764
+ sample3: "TS",
765
+ sample4: "TS",
766
+ sample5: "TS",
767
+ message_flow: "TS",
768
+ help_message: "TS",
769
+ optin_keywords: "TS",
770
+ optout_keywords: "TS",
771
+ help_keywords: "TS",
772
+ optin_message: "TS",
773
+ optout_message: "TS",
774
+ brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new,
775
+ )
776
+ expect(instance.to_hash).to be_a_kind_of(Hash)
777
+ end
778
+ it 'creates equal hash for two equal objects' do
779
+ obj = Object.new()
780
+ instance_1 = Freeclimb::SMSTenDLCPartnerCampaign.new(
781
+ account_id: "TS",
782
+ campaign_id: "TS",
783
+ status: "ACTIVE",
784
+ create_date: "2022-07-05T15:17:05Z",
785
+ brand_id: "TS",
786
+ usecase: "TS",
787
+ description: "TS",
788
+ embedded_link: true,
789
+ embedded_phone: true,
790
+ affiliate_marketing: true,
791
+ number_pool: true,
792
+ age_gated: true,
793
+ direct_lending: true,
794
+ subscriber_optin: true,
795
+ subscriber_optout: true,
796
+ subscriber_help: true,
797
+ sample1: "TS",
798
+ sample2: "TS",
799
+ sample3: "TS",
800
+ sample4: "TS",
801
+ sample5: "TS",
802
+ message_flow: "TS",
803
+ help_message: "TS",
804
+ optin_keywords: "TS",
805
+ optout_keywords: "TS",
806
+ help_keywords: "TS",
807
+ optin_message: "TS",
808
+ optout_message: "TS",
809
+ brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new,
810
+ )
811
+ instance_2 = Freeclimb::SMSTenDLCPartnerCampaign.new(
812
+ account_id: "TS",
813
+ campaign_id: "TS",
814
+ status: "ACTIVE",
815
+ create_date: "2022-07-05T15:17:05Z",
816
+ brand_id: "TS",
817
+ usecase: "TS",
818
+ description: "TS",
819
+ embedded_link: true,
820
+ embedded_phone: true,
821
+ affiliate_marketing: true,
822
+ number_pool: true,
823
+ age_gated: true,
824
+ direct_lending: true,
825
+ subscriber_optin: true,
826
+ subscriber_optout: true,
827
+ subscriber_help: true,
828
+ sample1: "TS",
829
+ sample2: "TS",
830
+ sample3: "TS",
831
+ sample4: "TS",
832
+ sample5: "TS",
833
+ message_flow: "TS",
834
+ help_message: "TS",
835
+ optin_keywords: "TS",
836
+ optout_keywords: "TS",
837
+ help_keywords: "TS",
838
+ optin_message: "TS",
839
+ optout_message: "TS",
840
+ brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new,
841
+ )
842
+ expect(instance_1.to_hash).to eq(instance_2.to_hash)
843
+ end
844
+ end
845
+
846
+ describe 'test method "_to_hash"' do
847
+ instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
848
+ account_id: "TS",
849
+
850
+ campaign_id: "TS",
851
+
852
+ status: "ACTIVE",
853
+
854
+ create_date: "2022-07-05T15:17:05Z",
855
+
856
+ brand_id: "TS",
857
+
858
+ usecase: "TS",
859
+
860
+ description: "TS",
861
+
862
+ embedded_link: true,
863
+
864
+ embedded_phone: true,
865
+
866
+ affiliate_marketing: true,
867
+
868
+ number_pool: true,
869
+
870
+ age_gated: true,
871
+
872
+ direct_lending: true,
873
+
874
+ subscriber_optin: true,
875
+
876
+ subscriber_optout: true,
877
+
878
+ subscriber_help: true,
879
+
880
+ sample1: "TS",
881
+
882
+ sample2: "TS",
883
+
884
+ sample3: "TS",
885
+
886
+ sample4: "TS",
887
+
888
+ sample5: "TS",
889
+
890
+ message_flow: "TS",
891
+
892
+ help_message: "TS",
893
+
894
+ optin_keywords: "TS",
895
+
896
+ optout_keywords: "TS",
897
+
898
+ help_keywords: "TS",
899
+
900
+ optin_message: "TS",
901
+
902
+ optout_message: "TS",
903
+
904
+ )
905
+ it 'returns account_id in the form of hash' do
906
+ expect(instance._to_hash(instance.account_id)).to eq(instance.account_id)
907
+ end
908
+ it 'returns campaign_id in the form of hash' do
909
+ expect(instance._to_hash(instance.campaign_id)).to eq(instance.campaign_id)
910
+ end
911
+ it 'returns status in the form of hash' do
912
+ expect(instance._to_hash(instance.status)).to eq(instance.status)
913
+ end
914
+ it 'returns create_date in the form of hash' do
915
+ expect(instance._to_hash(instance.create_date)).to eq(instance.create_date)
916
+ end
917
+ it 'returns brand_id in the form of hash' do
918
+ expect(instance._to_hash(instance.brand_id)).to eq(instance.brand_id)
919
+ end
920
+ it 'returns usecase in the form of hash' do
921
+ expect(instance._to_hash(instance.usecase)).to eq(instance.usecase)
922
+ end
923
+ it 'returns description in the form of hash' do
924
+ expect(instance._to_hash(instance.description)).to eq(instance.description)
925
+ end
926
+ it 'returns embedded_link in the form of hash' do
927
+ expect(instance._to_hash(instance.embedded_link)).to eq(instance.embedded_link)
928
+ end
929
+ it 'returns embedded_phone in the form of hash' do
930
+ expect(instance._to_hash(instance.embedded_phone)).to eq(instance.embedded_phone)
931
+ end
932
+ it 'returns affiliate_marketing in the form of hash' do
933
+ expect(instance._to_hash(instance.affiliate_marketing)).to eq(instance.affiliate_marketing)
934
+ end
935
+ it 'returns number_pool in the form of hash' do
936
+ expect(instance._to_hash(instance.number_pool)).to eq(instance.number_pool)
937
+ end
938
+ it 'returns age_gated in the form of hash' do
939
+ expect(instance._to_hash(instance.age_gated)).to eq(instance.age_gated)
940
+ end
941
+ it 'returns direct_lending in the form of hash' do
942
+ expect(instance._to_hash(instance.direct_lending)).to eq(instance.direct_lending)
943
+ end
944
+ it 'returns subscriber_optin in the form of hash' do
945
+ expect(instance._to_hash(instance.subscriber_optin)).to eq(instance.subscriber_optin)
946
+ end
947
+ it 'returns subscriber_optout in the form of hash' do
948
+ expect(instance._to_hash(instance.subscriber_optout)).to eq(instance.subscriber_optout)
949
+ end
950
+ it 'returns subscriber_help in the form of hash' do
951
+ expect(instance._to_hash(instance.subscriber_help)).to eq(instance.subscriber_help)
952
+ end
953
+ it 'returns sample1 in the form of hash' do
954
+ expect(instance._to_hash(instance.sample1)).to eq(instance.sample1)
955
+ end
956
+ it 'returns sample2 in the form of hash' do
957
+ expect(instance._to_hash(instance.sample2)).to eq(instance.sample2)
958
+ end
959
+ it 'returns sample3 in the form of hash' do
960
+ expect(instance._to_hash(instance.sample3)).to eq(instance.sample3)
961
+ end
962
+ it 'returns sample4 in the form of hash' do
963
+ expect(instance._to_hash(instance.sample4)).to eq(instance.sample4)
964
+ end
965
+ it 'returns sample5 in the form of hash' do
966
+ expect(instance._to_hash(instance.sample5)).to eq(instance.sample5)
967
+ end
968
+ it 'returns message_flow in the form of hash' do
969
+ expect(instance._to_hash(instance.message_flow)).to eq(instance.message_flow)
970
+ end
971
+ it 'returns help_message in the form of hash' do
972
+ expect(instance._to_hash(instance.help_message)).to eq(instance.help_message)
973
+ end
974
+ it 'returns optin_keywords in the form of hash' do
975
+ expect(instance._to_hash(instance.optin_keywords)).to eq(instance.optin_keywords)
976
+ end
977
+ it 'returns optout_keywords in the form of hash' do
978
+ expect(instance._to_hash(instance.optout_keywords)).to eq(instance.optout_keywords)
979
+ end
980
+ it 'returns help_keywords in the form of hash' do
981
+ expect(instance._to_hash(instance.help_keywords)).to eq(instance.help_keywords)
982
+ end
983
+ it 'returns optin_message in the form of hash' do
984
+ expect(instance._to_hash(instance.optin_message)).to eq(instance.optin_message)
985
+ end
986
+ it 'returns optout_message in the form of hash' do
987
+ expect(instance._to_hash(instance.optout_message)).to eq(instance.optout_message)
988
+ end
989
+ it 'returns brand in the form of hash' do
990
+ expect(instance._to_hash(instance.brand)).to eq(instance.brand)
203
991
  end
204
992
  end
205
993