freeclimb 5.0.0 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -1
  3. data/Gemfile +2 -1
  4. data/Gemfile.lock +21 -15
  5. data/README.md +5 -4
  6. data/docs/MessageResult.md +7 -1
  7. data/docs/TFNCampaign.md +34 -0
  8. data/lib/freeclimb/configuration.rb +1 -2
  9. data/lib/freeclimb/models/dequeue.rb +2 -4
  10. data/lib/freeclimb/models/message_result.rb +36 -5
  11. data/lib/freeclimb/models/remove_from_conference.rb +2 -4
  12. data/lib/freeclimb/models/start_record_call.rb +2 -4
  13. data/lib/freeclimb/models/terminate_conference.rb +2 -4
  14. data/lib/freeclimb/models/tfn_campaign.rb +370 -0
  15. data/lib/freeclimb/models/unpark.rb +2 -4
  16. data/lib/freeclimb/version.rb +1 -1
  17. data/lib/freeclimb.rb +1 -0
  18. data/openapi.json +93 -38
  19. data/spec/api/default_api_spec.rb +39 -117
  20. data/spec/models/account_request_spec.rb +113 -2
  21. data/spec/models/account_result_spec.rb +591 -28
  22. data/spec/models/account_status_spec.rb +1 -0
  23. data/spec/models/account_type_spec.rb +1 -0
  24. data/spec/models/add_to_conference_notification_webhook_spec.rb +654 -5
  25. data/spec/models/add_to_conference_spec.rb +471 -2
  26. data/spec/models/add_to_queue_notification_webhook_spec.rb +465 -2
  27. data/spec/models/answered_by_spec.rb +1 -0
  28. data/spec/models/application_list_spec.rb +323 -2
  29. data/spec/models/application_request_spec.rb +393 -2
  30. data/spec/models/application_result_spec.rb +723 -14
  31. data/spec/models/available_number_list_spec.rb +323 -2
  32. data/spec/models/available_number_spec.rb +380 -21
  33. data/spec/models/barge_in_reason_spec.rb +1 -0
  34. data/spec/models/buy_incoming_number_request_spec.rb +169 -2
  35. data/spec/models/call_control_webhook_spec.rb +281 -2
  36. data/spec/models/call_direction_spec.rb +1 -0
  37. data/spec/models/call_ended_reason_spec.rb +1 -0
  38. data/spec/models/call_list_spec.rb +323 -2
  39. data/spec/models/call_result_spec.rb +1020 -9
  40. data/spec/models/call_status_spec.rb +1 -0
  41. data/spec/models/call_status_webhook_spec.rb +501 -2
  42. data/spec/models/capabilities_spec.rb +191 -2
  43. data/spec/models/completion_request_spec.rb +54 -2
  44. data/spec/models/completion_result_spec.rb +93 -2
  45. data/spec/models/completion_result_status_spec.rb +1 -0
  46. data/spec/models/conference_list_spec.rb +323 -2
  47. data/spec/models/conference_participant_list_spec.rb +323 -2
  48. data/spec/models/conference_participant_result_spec.rb +532 -7
  49. data/spec/models/conference_recording_status_webhook_spec.rb +654 -5
  50. data/spec/models/conference_result_spec.rb +768 -55
  51. data/spec/models/conference_status_spec.rb +1 -0
  52. data/spec/models/conference_status_webhook_spec.rb +654 -5
  53. data/spec/models/create_conference_request_spec.rb +243 -2
  54. data/spec/models/create_conference_spec.rb +281 -2
  55. data/spec/models/create_conference_webhook_spec.rb +654 -5
  56. data/spec/models/create_web_rtc_token_spec.rb +151 -2
  57. data/spec/models/dequeue_spec.rb +1 -0
  58. data/spec/models/dequeue_webhook_spec.rb +565 -8
  59. data/spec/models/enqueue_spec.rb +225 -2
  60. data/spec/models/filter_logs_request_spec.rb +57 -2
  61. data/spec/models/get_digits_reason_spec.rb +1 -0
  62. data/spec/models/get_digits_spec.rb +379 -2
  63. data/spec/models/get_digits_webhook_spec.rb +623 -12
  64. data/spec/models/get_speech_reason_spec.rb +1 -0
  65. data/spec/models/get_speech_spec.rb +556 -11
  66. data/spec/models/get_speech_webhook_spec.rb +870 -15
  67. data/spec/models/grammar_file_built_in_spec.rb +1 -0
  68. data/spec/models/grammar_type_spec.rb +1 -0
  69. data/spec/models/hangup_spec.rb +57 -2
  70. data/spec/models/if_machine_spec.rb +1 -0
  71. data/spec/models/inbound_call_webhook_spec.rb +521 -2
  72. data/spec/models/incoming_number_list_spec.rb +323 -2
  73. data/spec/models/incoming_number_request_spec.rb +169 -2
  74. data/spec/models/incoming_number_result_spec.rb +930 -43
  75. data/spec/models/language_spec.rb +1 -0
  76. data/spec/models/leave_conference_webhook_spec.rb +465 -2
  77. data/spec/models/log_level_spec.rb +1 -0
  78. data/spec/models/log_list_spec.rb +323 -2
  79. data/spec/models/log_result_spec.rb +368 -9
  80. data/spec/models/machine_detected_webhook_spec.rb +565 -10
  81. data/spec/models/machine_type_spec.rb +1 -0
  82. data/spec/models/make_call_request_spec.rb +529 -6
  83. data/spec/models/message_delivery_webhook_spec.rb +565 -6
  84. data/spec/models/message_direction_spec.rb +1 -0
  85. data/spec/models/message_request_spec.rb +469 -2
  86. data/spec/models/message_result_spec.rb +1364 -225
  87. data/spec/models/message_status_spec.rb +1 -0
  88. data/spec/models/message_status_webhook_spec.rb +615 -20
  89. data/spec/models/messages_list_spec.rb +323 -2
  90. data/spec/models/mutable_resource_model_spec.rb +207 -2
  91. data/spec/models/out_dial_api_connect_webhook_spec.rb +521 -2
  92. data/spec/models/out_dial_connect_webhook_spec.rb +521 -2
  93. data/spec/models/out_dial_spec.rb +505 -2
  94. data/spec/models/out_dial_start_webhook_spec.rb +599 -24
  95. data/spec/models/pagination_model_spec.rb +285 -2
  96. data/spec/models/park_spec.rb +169 -2
  97. data/spec/models/pause_spec.rb +39 -2
  98. data/spec/models/percl_command_spec.rb +54 -2
  99. data/spec/models/percl_script_spec.rb +39 -2
  100. data/spec/models/play_beep_spec.rb +1 -0
  101. data/spec/models/play_early_media_spec.rb +57 -2
  102. data/spec/models/play_spec.rb +133 -2
  103. data/spec/models/queue_list_spec.rb +323 -2
  104. data/spec/models/queue_member_list_spec.rb +323 -2
  105. data/spec/models/queue_member_spec.rb +245 -2
  106. data/spec/models/queue_request_spec.rb +95 -2
  107. data/spec/models/queue_result_spec.rb +564 -15
  108. data/spec/models/queue_result_status_spec.rb +1 -0
  109. data/spec/models/queue_wait_webhook_spec.rb +616 -21
  110. data/spec/models/record_utterance_spec.rb +303 -2
  111. data/spec/models/record_utterance_term_reason_spec.rb +1 -0
  112. data/spec/models/record_webhook_spec.rb +868 -13
  113. data/spec/models/recording_list_spec.rb +323 -2
  114. data/spec/models/recording_result_spec.rb +469 -2
  115. data/spec/models/redirect_spec.rb +57 -2
  116. data/spec/models/redirect_webhook_spec.rb +521 -2
  117. data/spec/models/reject_spec.rb +57 -2
  118. data/spec/models/remove_from_conference_spec.rb +1 -0
  119. data/spec/models/remove_from_queue_notification_webhook_spec.rb +546 -9
  120. data/spec/models/request_type_spec.rb +1 -0
  121. data/spec/models/say_spec.rb +189 -2
  122. data/spec/models/send_digits_spec.rb +133 -2
  123. data/spec/models/set_dtmf_pass_through_spec.rb +39 -2
  124. data/spec/models/set_listen_spec.rb +39 -2
  125. data/spec/models/set_talk_spec.rb +39 -2
  126. data/spec/models/sms_spec.rb +225 -2
  127. data/spec/models/sms_ten_dlc_brand_alt_business_id_type_spec.rb +1 -0
  128. data/spec/models/sms_ten_dlc_brand_entity_type_spec.rb +1 -0
  129. data/spec/models/sms_ten_dlc_brand_identity_status_spec.rb +1 -0
  130. data/spec/models/sms_ten_dlc_brand_relationship_spec.rb +1 -0
  131. data/spec/models/sms_ten_dlc_brand_spec.rb +1969 -423
  132. data/spec/models/sms_ten_dlc_brand_stock_exchange_spec.rb +1 -0
  133. data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +323 -2
  134. data/spec/models/sms_ten_dlc_campaign_spec.rb +2224 -550
  135. data/spec/models/sms_ten_dlc_campaign_status_spec.rb +1 -0
  136. data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +323 -2
  137. data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +597 -17
  138. data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +1537 -155
  139. data/spec/models/sms_ten_dlc_partner_campaign_status_spec.rb +1 -0
  140. data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +323 -2
  141. data/spec/models/sms_toll_free_campaign_registration_status_spec.rb +1 -0
  142. data/spec/models/sms_toll_free_campaign_spec.rb +355 -2
  143. data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +323 -2
  144. data/spec/models/start_record_call_spec.rb +1 -0
  145. data/spec/models/terminate_conference_spec.rb +1 -0
  146. data/spec/models/tfn_campaign_spec.rb +1089 -0
  147. data/spec/models/tfn_spec.rb +57 -2
  148. data/spec/models/transcribe_reason_spec.rb +1 -0
  149. data/spec/models/transcribe_term_reason_spec.rb +1 -0
  150. data/spec/models/transcribe_utterance_record_spec.rb +115 -2
  151. data/spec/models/transcribe_utterance_spec.rb +288 -21
  152. data/spec/models/transcribe_webhook_spec.rb +1049 -4
  153. data/spec/models/unpark_spec.rb +1 -0
  154. data/spec/models/update_call_request_spec.rb +37 -2
  155. data/spec/models/update_call_request_status_spec.rb +1 -0
  156. data/spec/models/update_conference_participant_request_spec.rb +115 -2
  157. data/spec/models/update_conference_request_spec.rb +129 -2
  158. data/spec/models/update_conference_request_status_spec.rb +1 -0
  159. data/spec/models/webhook_spec.rb +54 -2
  160. metadata +129 -125
@@ -13,6 +13,7 @@ OpenAPI Generator version: 7.9.0
13
13
  require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
+ include Freeclimb
16
17
 
17
18
  # Unit tests for Freeclimb::MessageResult
18
19
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
@@ -28,25 +29,34 @@ describe Freeclimb::MessageResult do
28
29
 
29
30
  describe 'test attribute "uri"' do
30
31
  it 'should work' do
32
+
31
33
  instance.uri = "TEST_STRING"
32
34
  expect(instance.uri).to eq("TEST_STRING")
33
35
 
36
+
37
+
34
38
  end
35
39
  end
36
40
 
37
41
  describe 'test attribute "date_created"' do
38
42
  it 'should work' do
43
+
39
44
  instance.date_created = "TEST_STRING"
40
45
  expect(instance.date_created).to eq("TEST_STRING")
41
46
 
47
+
48
+
42
49
  end
43
50
  end
44
51
 
45
52
  describe 'test attribute "date_updated"' do
46
53
  it 'should work' do
54
+
47
55
  instance.date_updated = "TEST_STRING"
48
56
  expect(instance.date_updated).to eq("TEST_STRING")
49
57
 
58
+
59
+
50
60
  end
51
61
  end
52
62
 
@@ -57,22 +67,30 @@ describe Freeclimb::MessageResult do
57
67
  instance.revision = 1
58
68
  expect(instance.revision).to eq(1)
59
69
 
70
+
71
+
60
72
  end
61
73
  end
62
74
 
63
75
  describe 'test attribute "account_id"' do
64
76
  it 'should work' do
77
+
65
78
  instance.account_id = "TEST_STRING"
66
79
  expect(instance.account_id).to eq("TEST_STRING")
67
80
 
81
+
82
+
68
83
  end
69
84
  end
70
85
 
71
86
  describe 'test attribute "message_id"' do
72
87
  it 'should work' do
88
+
73
89
  instance.message_id = "TEST_STRING"
74
90
  expect(instance.message_id).to eq("TEST_STRING")
75
91
 
92
+
93
+
76
94
  end
77
95
  end
78
96
 
@@ -125,57 +143,78 @@ describe Freeclimb::MessageResult do
125
143
  end
126
144
  describe 'test attribute "from"' do
127
145
  it 'should work' do
146
+
128
147
  instance.from = "TEST_STRING"
129
148
  expect(instance.from).to eq("TEST_STRING")
130
149
 
150
+
151
+
131
152
  end
132
153
  end
133
154
 
134
155
  describe 'test attribute "to"' do
135
156
  it 'should work' do
157
+
136
158
  instance.to = "TEST_STRING"
137
159
  expect(instance.to).to eq("TEST_STRING")
138
160
 
161
+
162
+
139
163
  end
140
164
  end
141
165
 
142
166
  describe 'test attribute "text"' do
143
167
  it 'should work' do
168
+
144
169
  instance.text = "TEST_STRING"
145
170
  expect(instance.text).to eq("TEST_STRING")
146
171
 
172
+
173
+
147
174
  end
148
175
  end
149
176
 
150
177
  describe 'test attribute "direction"' do
151
178
  it 'should work' do
179
+
152
180
  instance.direction = "TEST_STRING"
153
181
  expect(instance.direction).to eq("TEST_STRING")
154
182
 
183
+
184
+
155
185
  end
156
186
  end
157
187
 
158
188
  describe 'test attribute "notification_url"' do
159
189
  it 'should work' do
190
+
160
191
  instance.notification_url = "TEST_STRING"
161
192
  expect(instance.notification_url).to eq("TEST_STRING")
162
193
 
194
+
195
+
163
196
  end
164
197
  end
165
198
 
166
199
  describe 'test attribute "brand_id"' do
167
200
  it 'should work' do
201
+
168
202
  instance.brand_id = "TEST_STRING"
169
203
  expect(instance.brand_id).to eq("TEST_STRING")
170
204
 
205
+
206
+
171
207
  end
172
208
  end
173
209
 
174
210
  describe 'test attribute "campaign_id"' do
175
211
  it 'should work' do
212
+
176
213
  instance.campaign_id = "TEST_STRING"
177
214
  expect(instance.campaign_id).to eq("TEST_STRING")
178
215
 
216
+
217
+
179
218
  end
180
219
  end
181
220
 
@@ -186,6 +225,8 @@ describe Freeclimb::MessageResult do
186
225
  instance.segment_count = 1.0
187
226
  expect(instance.segment_count).to eq(1.0)
188
227
 
228
+
229
+
189
230
  end
190
231
  end
191
232
 
@@ -194,117 +235,329 @@ describe Freeclimb::MessageResult do
194
235
 
195
236
  instance.media_urls = ["ELEMENT_1", "ELEMENT_2"]
196
237
  expect(instance.media_urls).to eq(["ELEMENT_1", "ELEMENT_2"])
238
+
239
+
240
+ end
241
+ end
242
+
243
+ describe 'test attribute "tfn"' do
244
+ it 'should work' do
245
+
246
+
247
+
248
+ instance.tfn = TFN.new
249
+ expect(instance.tfn).to be_instance_of(TFN)
250
+
251
+ end
252
+ end
253
+
254
+ describe 'test attribute "phone_number_id"' do
255
+ it 'should work' do
256
+
257
+ instance.phone_number_id = "TEST_STRING"
258
+ expect(instance.phone_number_id).to eq("TEST_STRING")
259
+
260
+
261
+
262
+ end
263
+ end
264
+
265
+ describe 'test attribute "application_id"' do
266
+ it 'should work' do
267
+
268
+ instance.application_id = "TEST_STRING"
269
+ expect(instance.application_id).to eq("TEST_STRING")
270
+
271
+
272
+
197
273
  end
198
274
  end
199
275
 
200
276
  describe 'test method "initialize"' do
201
277
  it 'properly initializes with values' do
202
278
  expect { instance = Freeclimb::MessageResult.new(
279
+
203
280
  uri: "TS",
204
281
 
282
+
283
+
284
+
205
285
  date_created: "TS",
206
286
 
287
+
288
+
289
+
207
290
  date_updated: "TS",
208
291
 
292
+
293
+
209
294
  revision: 1,
210
295
 
296
+
297
+
298
+
211
299
  account_id: "TS",
212
300
 
301
+
302
+
303
+
213
304
  message_id: "TS",
214
305
 
215
306
 
307
+
308
+
216
309
  status: Freeclimb::MessageStatus::NEW,
217
310
 
311
+
312
+
313
+
218
314
  from: "TS",
219
315
 
316
+
317
+
318
+
220
319
  to: "TS",
221
320
 
321
+
322
+
323
+
222
324
  text: "TS",
223
325
 
326
+
327
+
328
+
224
329
  direction: "TS",
225
330
 
331
+
332
+
333
+
226
334
  notification_url: "TS",
227
335
 
336
+
337
+
338
+
228
339
  brand_id: "TS",
229
340
 
341
+
342
+
343
+
230
344
  campaign_id: "TS",
231
345
 
232
346
 
347
+
348
+
349
+
350
+
233
351
  media_urls: Array.new(),
234
352
 
353
+
354
+
355
+
356
+
357
+
358
+ tfn: TFN.new(),
359
+
360
+
361
+ phone_number_id: "TS",
362
+
363
+
364
+
365
+
366
+ application_id: "TS",
367
+
368
+
369
+
235
370
  )}.not_to raise_error()
236
371
  end
237
372
  it 'fails to initialize with input argument that is not a hash in Freeclimb::MessageResult' do
238
373
  expect { instance = Freeclimb::MessageResult.new(
374
+
239
375
  uri: "TS",
240
376
 
377
+
378
+
379
+
241
380
  date_created: "TS",
242
381
 
382
+
383
+
384
+
243
385
  date_updated: "TS",
244
386
 
387
+
388
+
245
389
  revision: 1,
246
390
 
391
+
392
+
393
+
247
394
  account_id: "TS",
248
395
 
396
+
397
+
398
+
249
399
  message_id: "TS",
250
400
 
251
401
 
402
+
403
+
252
404
  status: Freeclimb::MessageStatus::NEW,
253
405
 
406
+
407
+
408
+
254
409
  from: "TS",
255
410
 
411
+
412
+
413
+
256
414
  to: "TS",
257
415
 
416
+
417
+
418
+
258
419
  text: "TS",
259
420
 
421
+
422
+
423
+
260
424
  direction: "TS",
261
425
 
426
+
427
+
428
+
262
429
  notification_url: "TS",
263
430
 
431
+
432
+
433
+
264
434
  brand_id: "TS",
265
435
 
436
+
437
+
438
+
266
439
  campaign_id: "TS",
267
440
 
268
441
 
442
+
443
+
444
+
445
+
269
446
  media_urls: Array.new(),
270
447
 
448
+
449
+
450
+
451
+
452
+
453
+ tfn: TFN.new,
454
+
455
+
456
+ phone_number_id: "TS",
457
+
458
+
459
+
460
+
461
+ application_id: "TS",
462
+
463
+
464
+
271
465
  invalid_attribute: true
272
466
  )}.to raise_error(ArgumentError)
273
467
  end
274
468
  it 'fails to initialize with invalid attribute' do
275
469
  expect { instance = Freeclimb::MessageResult.new(
470
+
276
471
  uri: "TS",
277
472
 
473
+
474
+
475
+
278
476
  date_created: "TS",
279
477
 
478
+
479
+
480
+
280
481
  date_updated: "TS",
281
482
 
483
+
484
+
282
485
  revision: 1,
283
486
 
487
+
488
+
489
+
284
490
  account_id: "TS",
285
491
 
492
+
493
+
494
+
286
495
  message_id: "TS",
287
496
 
288
497
 
498
+
499
+
289
500
  status: Freeclimb::MessageStatus::NEW,
290
501
 
502
+
503
+
504
+
291
505
  from: "TS",
292
506
 
507
+
508
+
509
+
293
510
  to: "TS",
294
511
 
512
+
513
+
514
+
295
515
  text: "TS",
296
516
 
517
+
518
+
519
+
297
520
  direction: "TS",
298
521
 
522
+
523
+
524
+
299
525
  notification_url: "TS",
300
526
 
527
+
528
+
529
+
301
530
  brand_id: "TS",
302
531
 
532
+
533
+
534
+
303
535
  campaign_id: "TS",
304
536
 
305
537
 
538
+
539
+
540
+
541
+
306
542
  media_urls: Array.new(),
307
543
 
544
+
545
+
546
+
547
+
548
+
549
+ tfn: TFN.new,
550
+
551
+
552
+ phone_number_id: "TS",
553
+
554
+
555
+
556
+
557
+ application_id: "TS",
558
+
559
+
560
+
308
561
  invalid_attribute: true
309
562
  )}.to raise_error(ArgumentError)
310
563
  end
@@ -313,38 +566,97 @@ describe Freeclimb::MessageResult do
313
566
  describe 'test method "valid"' do
314
567
  it 'checks if properties are valid' do
315
568
  instance = Freeclimb::MessageResult.new(
569
+
316
570
  uri: "TS",
317
571
 
572
+
573
+
574
+
318
575
  date_created: "TS",
319
576
 
320
- date_updated: "TS",
321
577
 
322
- revision: 1,
323
578
 
324
- account_id: "TS",
325
579
 
326
- message_id: "TS",
580
+ date_updated: "TS",
327
581
 
328
582
 
329
- status: Freeclimb::MessageStatus::NEW,
330
583
 
331
- from: "TS",
584
+ revision: 1,
332
585
 
333
- to: "TS",
334
586
 
335
- text: "TS",
336
587
 
337
- direction: "TS",
338
588
 
339
- notification_url: "TS",
589
+ account_id: "TS",
340
590
 
341
- brand_id: "TS",
342
591
 
343
- campaign_id: "TS",
344
592
 
345
- segment_count: 1,
346
593
 
347
- media_urls: Array.new(),
594
+ message_id: "TS",
595
+
596
+
597
+
598
+
599
+ status: Freeclimb::MessageStatus::NEW,
600
+
601
+
602
+
603
+
604
+ from: "TS",
605
+
606
+
607
+
608
+
609
+ to: "TS",
610
+
611
+
612
+
613
+
614
+ text: "TS",
615
+
616
+
617
+
618
+
619
+ direction: "TS",
620
+
621
+
622
+
623
+
624
+ notification_url: "TS",
625
+
626
+
627
+
628
+
629
+ brand_id: "TS",
630
+
631
+
632
+
633
+
634
+ campaign_id: "TS",
635
+
636
+
637
+
638
+ segment_count: 1,
639
+
640
+
641
+
642
+ media_urls: Array.new(),
643
+
644
+
645
+
646
+
647
+
648
+
649
+ tfn: TFN.new(),
650
+
651
+
652
+ phone_number_id: "TS",
653
+
654
+
655
+
656
+
657
+ application_id: "TS",
658
+
659
+
348
660
 
349
661
  )
350
662
  expect(instance.valid?).to eq(true)
@@ -362,494 +674,1290 @@ describe Freeclimb::MessageResult do
362
674
 
363
675
  describe 'test method "eql?"' do
364
676
  it 'checks if objects are equal' do
365
- obj = Object.new()
677
+
678
+
679
+
680
+
681
+
682
+
683
+
684
+
685
+
686
+
687
+
688
+
689
+
690
+
691
+
692
+
693
+
694
+ obj_TFN = TFN.new()
695
+
696
+
697
+
366
698
  instance_1 = Freeclimb::MessageResult.new(
699
+
367
700
  uri: "TS",
368
701
 
702
+
703
+
704
+
369
705
  date_created: "TS",
370
706
 
707
+
708
+
709
+
371
710
  date_updated: "TS",
372
711
 
712
+
713
+
373
714
  revision: 1,
374
715
 
716
+
717
+
718
+
375
719
  account_id: "TS",
376
720
 
721
+
722
+
723
+
377
724
  message_id: "TS",
378
725
 
379
726
 
727
+
728
+
729
+
730
+
380
731
  status: Freeclimb::MessageStatus::NEW,
381
732
 
733
+
382
734
  from: "TS",
383
735
 
736
+
737
+
738
+
384
739
  to: "TS",
385
740
 
741
+
742
+
743
+
386
744
  text: "TS",
387
745
 
746
+
747
+
748
+
388
749
  direction: "TS",
389
750
 
751
+
752
+
753
+
390
754
  notification_url: "TS",
391
755
 
756
+
757
+
758
+
392
759
  brand_id: "TS",
393
760
 
761
+
762
+
763
+
394
764
  campaign_id: "TS",
395
765
 
396
766
 
767
+
768
+
769
+
770
+
771
+
772
+
397
773
  media_urls: [],
398
774
 
775
+
776
+
777
+ tfn: obj_TFN,
778
+
779
+
780
+
781
+ phone_number_id: "TS",
782
+
783
+
784
+
785
+
786
+ application_id: "TS",
787
+
788
+
789
+
399
790
  )
400
791
  instance_2 = Freeclimb::MessageResult.new(
792
+
401
793
  uri: "TS",
402
794
 
795
+
796
+
797
+
403
798
  date_created: "TS",
404
799
 
800
+
801
+
802
+
405
803
  date_updated: "TS",
406
804
 
805
+
806
+
807
+
808
+
407
809
  revision: 1,
408
810
 
811
+
409
812
  account_id: "TS",
410
813
 
814
+
815
+
816
+
411
817
  message_id: "TS",
412
818
 
413
819
 
820
+
821
+
822
+
823
+
414
824
  status: Freeclimb::MessageStatus::NEW,
415
825
 
826
+
416
827
  from: "TS",
417
828
 
829
+
830
+
831
+
418
832
  to: "TS",
419
833
 
834
+
835
+
836
+
420
837
  text: "TS",
421
838
 
839
+
840
+
841
+
422
842
  direction: "TS",
423
843
 
844
+
845
+
846
+
424
847
  notification_url: "TS",
425
848
 
849
+
850
+
851
+
426
852
  brand_id: "TS",
427
853
 
854
+
855
+
856
+
428
857
  campaign_id: "TS",
429
858
 
430
859
 
860
+
861
+
862
+
863
+
864
+
865
+
431
866
  media_urls: [],
432
867
 
868
+
869
+
870
+ tfn: obj_TFN,
871
+
872
+
873
+
874
+ phone_number_id: "TS",
875
+
876
+
877
+
878
+
879
+ application_id: "TS",
880
+
881
+
882
+
433
883
  )
434
884
  expect(instance_1.eql?(instance_2)).to eq(true)
435
885
  end
436
886
 
437
887
  it 'checks if objects are not equal' do
438
888
  instance_1 = Freeclimb::MessageResult.new(
889
+
439
890
  uri: "TS",
440
891
 
892
+
893
+
894
+
441
895
  date_created: "TS",
442
896
 
897
+
898
+
899
+
443
900
  date_updated: "TS",
444
901
 
902
+
903
+
445
904
  revision: 2,
446
905
 
906
+
907
+
908
+
447
909
  account_id: "TS",
448
910
 
911
+
912
+
913
+
449
914
  message_id: "TS",
450
915
 
451
916
 
917
+
918
+
919
+
920
+
452
921
  status: Freeclimb::MessageStatus::NEW,
453
922
 
923
+
454
924
  from: "TS",
455
925
 
926
+
927
+
928
+
456
929
  to: "TS",
457
930
 
931
+
932
+
933
+
458
934
  text: "TS",
459
935
 
936
+
937
+
938
+
460
939
  direction: "TS",
461
940
 
941
+
942
+
943
+
462
944
  notification_url: "TS",
463
945
 
946
+
947
+
948
+
464
949
  brand_id: "TS",
465
950
 
951
+
952
+
953
+
466
954
  campaign_id: "TS",
467
955
 
468
956
 
469
- media_urls: [],
470
957
 
471
- )
472
- instance_2 = Freeclimb::MessageResult.new(
473
- uri: "ST",
474
958
 
475
- date_created: "ST",
476
959
 
477
- date_updated: "ST",
478
960
 
479
- revision: 1,
480
961
 
481
- account_id: "ST",
482
962
 
483
- message_id: "ST",
963
+ media_urls: [],
484
964
 
485
965
 
486
- status: nil,
487
966
 
488
- from: "ST",
967
+ tfn: TFN.new(),
489
968
 
490
- to: "ST",
491
969
 
492
- text: "ST",
493
970
 
494
- direction: "ST",
971
+ phone_number_id: "TS",
495
972
 
496
- notification_url: "ST",
497
973
 
498
- brand_id: "ST",
499
974
 
500
- campaign_id: "ST",
975
+
976
+ application_id: "TS",
501
977
 
502
978
 
503
- media_urls: nil,
504
979
 
505
980
  )
506
- expect(instance_1.eql?(instance_2)).to eq(false)
507
- end
508
- end
509
-
981
+ instance_2 = Freeclimb::MessageResult.new(
982
+
983
+ uri: "ST",
984
+
985
+
986
+
987
+
988
+ date_created: "ST",
989
+
990
+
991
+
992
+
993
+ date_updated: "ST",
994
+
995
+
996
+
997
+ revision: 1,
998
+
999
+
1000
+
1001
+
1002
+ account_id: "ST",
1003
+
1004
+
1005
+
1006
+
1007
+ message_id: "ST",
1008
+
1009
+
1010
+
1011
+
1012
+
1013
+
1014
+ status: nil,
1015
+
1016
+
1017
+ from: "ST",
1018
+
1019
+
1020
+
1021
+
1022
+ to: "ST",
1023
+
1024
+
1025
+
1026
+
1027
+ text: "ST",
1028
+
1029
+
1030
+
1031
+
1032
+ direction: "ST",
1033
+
1034
+
1035
+
1036
+
1037
+ notification_url: "ST",
1038
+
1039
+
1040
+
1041
+
1042
+ brand_id: "ST",
1043
+
1044
+
1045
+
1046
+
1047
+ campaign_id: "ST",
1048
+
1049
+
1050
+
1051
+
1052
+
1053
+
1054
+
1055
+
1056
+ media_urls: nil,
1057
+
1058
+
1059
+
1060
+ tfn: TFN.new(),
1061
+
1062
+
1063
+
1064
+ phone_number_id: "ST",
1065
+
1066
+
1067
+
1068
+
1069
+ application_id: "ST",
1070
+
1071
+
1072
+
1073
+ )
1074
+ expect(instance_1.eql?(instance_2)).to eq(false)
1075
+ end
1076
+ end
1077
+
510
1078
  describe 'test method "hash"' do
511
1079
  it 'calculates hash code' do
512
1080
  instance = Freeclimb::MessageResult.new(
1081
+
513
1082
  uri: "TS",
514
1083
 
1084
+
1085
+
1086
+
515
1087
  date_created: "TS",
516
1088
 
1089
+
1090
+
1091
+
517
1092
  date_updated: "TS",
518
1093
 
519
- revision: 1,
520
1094
 
521
- account_id: "TS",
522
1095
 
523
- message_id: "TS",
1096
+ revision: 1,
1097
+
1098
+
1099
+
1100
+
1101
+ account_id: "TS",
1102
+
1103
+
1104
+
1105
+
1106
+ message_id: "TS",
1107
+
1108
+
1109
+
1110
+
1111
+ status: Freeclimb::MessageStatus::NEW,
1112
+
1113
+
1114
+
1115
+
1116
+ from: "TS",
1117
+
1118
+
1119
+
1120
+
1121
+ to: "TS",
1122
+
1123
+
1124
+
1125
+
1126
+ text: "TS",
1127
+
1128
+
1129
+
1130
+
1131
+ direction: "TS",
1132
+
1133
+
1134
+
1135
+
1136
+ notification_url: "TS",
1137
+
1138
+
1139
+
1140
+
1141
+ brand_id: "TS",
1142
+
1143
+
1144
+
1145
+
1146
+ campaign_id: "TS",
1147
+
1148
+
1149
+
1150
+
1151
+
1152
+
1153
+ media_urls: Array.new(),
1154
+
1155
+
1156
+
1157
+
1158
+
1159
+
1160
+ tfn: TFN.new(),
1161
+
1162
+
1163
+ phone_number_id: "TS",
1164
+
1165
+
1166
+
1167
+
1168
+ application_id: "TS",
1169
+
1170
+
1171
+
1172
+ )
1173
+ expect(instance.hash).to be_a_kind_of(Integer)
1174
+ end
1175
+ end
1176
+
1177
+ describe 'test method "build_from_hash"' do
1178
+ it 'builds equivalent model from hash code' do
1179
+ instance_1 = Freeclimb::MessageResult.new(
1180
+
1181
+ uri: "TS",
1182
+
1183
+
1184
+
1185
+
1186
+ date_created: "TS",
1187
+
1188
+
1189
+
1190
+
1191
+ date_updated: "TS",
1192
+
1193
+
1194
+
1195
+ revision: 1,
1196
+
1197
+
1198
+
1199
+
1200
+ account_id: "TS",
1201
+
1202
+
1203
+
1204
+
1205
+ message_id: "TS",
1206
+
1207
+
1208
+
1209
+
1210
+ status: Freeclimb::MessageStatus::NEW,
1211
+
1212
+
1213
+
1214
+
1215
+ from: "TS",
1216
+
1217
+
1218
+
1219
+
1220
+ to: "TS",
1221
+
1222
+
1223
+
1224
+
1225
+ text: "TS",
1226
+
1227
+
1228
+
1229
+
1230
+ direction: "TS",
1231
+
1232
+
1233
+
1234
+
1235
+ notification_url: "TS",
1236
+
1237
+
1238
+
1239
+
1240
+ brand_id: "TS",
1241
+
1242
+
1243
+
1244
+
1245
+ campaign_id: "TS",
1246
+
1247
+
1248
+
1249
+
1250
+
1251
+
1252
+ media_urls: Array.new(),
1253
+
1254
+
1255
+
1256
+
1257
+
1258
+
1259
+ tfn: TFN.new(),
1260
+
1261
+
1262
+ phone_number_id: "TS",
1263
+
1264
+
1265
+
1266
+
1267
+ application_id: "TS",
1268
+
1269
+
1270
+
1271
+ )
1272
+ instance_2 = Freeclimb::MessageResult.new(
1273
+
1274
+ uri: "TS",
1275
+
1276
+
1277
+
1278
+
1279
+ date_created: "TS",
1280
+
1281
+
1282
+
1283
+
1284
+ date_updated: "TS",
1285
+
1286
+
1287
+
1288
+ revision: 1,
1289
+
1290
+
1291
+
1292
+
1293
+ account_id: "TS",
1294
+
1295
+
1296
+
1297
+
1298
+ message_id: "TS",
1299
+
1300
+
1301
+
1302
+
1303
+ status: Freeclimb::MessageStatus::NEW,
1304
+
1305
+
1306
+
1307
+
1308
+ from: "TS",
1309
+
1310
+
1311
+
1312
+
1313
+ to: "TS",
1314
+
1315
+
1316
+
1317
+
1318
+ text: "TS",
1319
+
1320
+
1321
+
1322
+
1323
+ direction: "TS",
1324
+
1325
+
1326
+
1327
+
1328
+ notification_url: "TS",
1329
+
1330
+
1331
+
1332
+
1333
+ brand_id: "TS",
1334
+
1335
+
1336
+
1337
+
1338
+ campaign_id: "TS",
1339
+
1340
+
1341
+
1342
+
1343
+
1344
+
1345
+ media_urls: Array.new(),
1346
+
1347
+
1348
+
1349
+
1350
+
1351
+
1352
+ tfn: TFN.new(),
1353
+
1354
+
1355
+ phone_number_id: "TS",
1356
+
1357
+
1358
+
1359
+
1360
+ application_id: "TS",
1361
+
1362
+
1363
+
1364
+ )
1365
+
1366
+ expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
1367
+ end
1368
+ end
1369
+
1370
+ describe 'test method "_deserialize"' do
1371
+ instance = Freeclimb::MessageResult.new(
1372
+
1373
+ uri: "TS",
1374
+
1375
+
1376
+
1377
+
1378
+ date_created: "TS",
1379
+
1380
+
1381
+
1382
+
1383
+ date_updated: "TS",
1384
+
1385
+
1386
+
1387
+ revision: 1,
1388
+
1389
+
1390
+
1391
+
1392
+ account_id: "TS",
1393
+
1394
+
1395
+
1396
+
1397
+ message_id: "TS",
1398
+
1399
+
1400
+
1401
+
1402
+ status: Freeclimb::MessageStatus::NEW,
1403
+
1404
+
1405
+
1406
+
1407
+ from: "TS",
1408
+
1409
+
1410
+
1411
+
1412
+ to: "TS",
1413
+
1414
+
1415
+
1416
+
1417
+ text: "TS",
1418
+
1419
+
1420
+
1421
+
1422
+ direction: "TS",
1423
+
1424
+
1425
+
1426
+
1427
+ notification_url: "TS",
1428
+
1429
+
1430
+
1431
+
1432
+ brand_id: "TS",
1433
+
1434
+
1435
+
1436
+
1437
+ campaign_id: "TS",
1438
+
1439
+
1440
+
1441
+
1442
+
1443
+
1444
+ media_urls: Array.new(),
1445
+
1446
+
1447
+
1448
+
1449
+
1450
+
1451
+ tfn: TFN.new(),
1452
+
1453
+
1454
+ phone_number_id: "TS",
1455
+
1456
+
1457
+
1458
+
1459
+ application_id: "TS",
1460
+
1461
+
1462
+
1463
+ )
1464
+ it 'deserializes the data of uri' do
1465
+ expect(instance._deserialize("String", instance.uri)).to be_a_kind_of(String)
1466
+ end
1467
+
1468
+
1469
+ it 'deserializes the data of date_created' do
1470
+ expect(instance._deserialize("String", instance.date_created)).to be_a_kind_of(String)
1471
+ end
1472
+
1473
+
1474
+ it 'deserializes the data of date_updated' do
1475
+ expect(instance._deserialize("String", instance.date_updated)).to be_a_kind_of(String)
1476
+ end
1477
+
1478
+
1479
+ it 'deserializes the data of revision' do
1480
+ expect(instance._deserialize("Integer", instance.revision)).to be_a_kind_of(Integer)
1481
+ end
1482
+
1483
+
1484
+ it 'deserializes the data of account_id' do
1485
+ expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String)
1486
+ end
1487
+
1488
+
1489
+ it 'deserializes the data of message_id' do
1490
+ expect(instance._deserialize("String", instance.message_id)).to be_a_kind_of(String)
1491
+ end
1492
+
1493
+
1494
+
1495
+
1496
+ it 'deserializes the data of from' do
1497
+ expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String)
1498
+ end
1499
+
1500
+
1501
+ it 'deserializes the data of to' do
1502
+ expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String)
1503
+ end
1504
+
1505
+
1506
+ it 'deserializes the data of text' do
1507
+ expect(instance._deserialize("String", instance.text)).to be_a_kind_of(String)
1508
+ end
1509
+
1510
+
1511
+ it 'deserializes the data of direction' do
1512
+ expect(instance._deserialize("String", instance.direction)).to be_a_kind_of(String)
1513
+ end
1514
+
1515
+
1516
+ it 'deserializes the data of notification_url' do
1517
+ expect(instance._deserialize("String", instance.notification_url)).to be_a_kind_of(String)
1518
+ end
1519
+
1520
+
1521
+ it 'deserializes the data of brand_id' do
1522
+ expect(instance._deserialize("String", instance.brand_id)).to be_a_kind_of(String)
1523
+ end
1524
+
1525
+
1526
+ it 'deserializes the data of campaign_id' do
1527
+ expect(instance._deserialize("String", instance.campaign_id)).to be_a_kind_of(String)
1528
+ end
1529
+
1530
+
1531
+ it 'deserializes the data of segment_count' do
1532
+ expect(instance._deserialize("Float", instance.segment_count)).to be_a_kind_of(Float)
1533
+ end
1534
+
1535
+
1536
+ it 'deserializes the data of media_urls' do
1537
+ expect(instance._deserialize("Array<String>", instance.media_urls)).to be_a_kind_of(Array)
1538
+ end
1539
+
1540
+
1541
+
1542
+
1543
+ it 'deserializes the data of tfn' do
1544
+ expect(instance._deserialize("Object", instance.tfn)).to be_a_kind_of(TFN)
1545
+ end
1546
+
1547
+ it 'deserializes the data of phone_number_id' do
1548
+ expect(instance._deserialize("String", instance.phone_number_id)).to be_a_kind_of(String)
1549
+ end
1550
+
1551
+
1552
+ it 'deserializes the data of application_id' do
1553
+ expect(instance._deserialize("String", instance.application_id)).to be_a_kind_of(String)
1554
+ end
1555
+
1556
+
1557
+ end
1558
+
1559
+ describe 'test method "to_s"' do
1560
+ it 'returns the string representation of the object' do
1561
+ instance = Freeclimb::MessageResult.new(
1562
+
1563
+ uri: "TS",
1564
+
1565
+
1566
+
1567
+
1568
+ date_created: "TS",
1569
+
1570
+
1571
+
1572
+
1573
+ date_updated: "TS",
1574
+
1575
+
1576
+
1577
+ revision: 1,
1578
+
1579
+
1580
+
1581
+
1582
+ account_id: "TS",
1583
+
1584
+
1585
+
1586
+
1587
+ message_id: "TS",
1588
+
1589
+
1590
+
1591
+
1592
+ status: Freeclimb::MessageStatus::NEW,
1593
+
1594
+
1595
+
1596
+
1597
+ from: "TS",
1598
+
1599
+
1600
+
1601
+
1602
+ to: "TS",
1603
+
1604
+
1605
+
1606
+
1607
+ text: "TS",
1608
+
1609
+
1610
+
1611
+
1612
+ direction: "TS",
1613
+
1614
+
1615
+
1616
+
1617
+ notification_url: "TS",
1618
+
1619
+
1620
+
1621
+
1622
+ brand_id: "TS",
1623
+
1624
+
1625
+
1626
+
1627
+ campaign_id: "TS",
1628
+
1629
+
1630
+
1631
+
1632
+
1633
+
1634
+ media_urls: Array.new(),
1635
+
1636
+
1637
+
1638
+
1639
+
1640
+
1641
+ tfn: TFN.new,
1642
+
1643
+
1644
+ phone_number_id: "TS",
1645
+
1646
+
1647
+
1648
+
1649
+ application_id: "TS",
1650
+
1651
+
1652
+
1653
+ )
1654
+ expect(instance.to_s).to eq(instance.to_hash.to_s)
1655
+ end
1656
+ end
1657
+
1658
+ describe 'test method "to_hash"' do
1659
+ it 'returns the object in the form of hash' do
1660
+ instance = Freeclimb::MessageResult.new(
1661
+
1662
+ uri: "TS",
1663
+
1664
+
1665
+
1666
+
1667
+ date_created: "TS",
1668
+
1669
+
1670
+
1671
+
1672
+ date_updated: "TS",
1673
+
1674
+
1675
+
1676
+ revision: 1,
1677
+
1678
+
1679
+
1680
+
1681
+ account_id: "TS",
1682
+
1683
+
1684
+
1685
+
1686
+ message_id: "TS",
1687
+
1688
+
1689
+
1690
+
1691
+ status: Freeclimb::MessageStatus::NEW,
1692
+
1693
+
1694
+
1695
+
1696
+ from: "TS",
1697
+
1698
+
1699
+
1700
+
1701
+ to: "TS",
1702
+
1703
+
1704
+
1705
+
1706
+ text: "TS",
1707
+
1708
+
1709
+
1710
+
1711
+ direction: "TS",
1712
+
1713
+
1714
+
1715
+
1716
+ notification_url: "TS",
1717
+
1718
+
1719
+
1720
+
1721
+ brand_id: "TS",
1722
+
1723
+
1724
+
1725
+
1726
+ campaign_id: "TS",
1727
+
1728
+
1729
+
1730
+
1731
+
1732
+
1733
+ media_urls: Array.new(),
1734
+
1735
+
1736
+
1737
+
1738
+
1739
+
1740
+ tfn: TFN.new,
1741
+
1742
+
1743
+ phone_number_id: "TS",
1744
+
1745
+
1746
+
1747
+
1748
+ application_id: "TS",
1749
+
1750
+
1751
+
1752
+ )
1753
+ expect(instance.to_hash).to be_a_kind_of(Hash)
1754
+ end
1755
+ it 'creates equal hash for two equal objects' do
1756
+
1757
+
1758
+
1759
+
1760
+
1761
+
1762
+
1763
+
524
1764
 
525
1765
 
526
- status: Freeclimb::MessageStatus::NEW,
527
1766
 
528
- from: "TS",
529
1767
 
530
- to: "TS",
531
1768
 
532
- text: "TS",
533
1769
 
534
- direction: "TS",
535
1770
 
536
- notification_url: "TS",
537
1771
 
538
- brand_id: "TS",
539
1772
 
540
- campaign_id: "TS",
1773
+ obj = TFN.new()
541
1774
 
542
1775
 
543
- media_urls: Array.new(),
544
1776
 
545
- )
546
- expect(instance.hash).to be_a_kind_of(Integer)
547
- end
548
- end
549
-
550
- describe 'test method "build_from_hash"' do
551
- it 'builds equivalent model from hash code' do
552
1777
  instance_1 = Freeclimb::MessageResult.new(
553
- uri: "TS",
554
1778
 
555
- date_created: "TS",
1779
+ uri: "TS",
556
1780
 
557
- date_updated: "TS",
558
1781
 
559
- revision: 1,
560
1782
 
561
- account_id: "TS",
562
1783
 
563
- message_id: "TS",
1784
+ date_created: "TS",
564
1785
 
565
1786
 
566
- status: Freeclimb::MessageStatus::NEW,
567
1787
 
568
- from: "TS",
569
1788
 
570
- to: "TS",
1789
+ date_updated: "TS",
571
1790
 
572
- text: "TS",
573
1791
 
574
- direction: "TS",
575
1792
 
576
- notification_url: "TS",
1793
+ revision: 1,
577
1794
 
578
- brand_id: "TS",
579
1795
 
580
- campaign_id: "TS",
581
1796
 
582
1797
 
583
- media_urls: Array.new(),
1798
+ account_id: "TS",
584
1799
 
585
- )
586
- instance_2 = Freeclimb::MessageResult.new(
587
- uri: "TS",
588
1800
 
589
- date_created: "TS",
590
1801
 
591
- date_updated: "TS",
592
1802
 
593
- revision: 1,
1803
+ message_id: "TS",
594
1804
 
595
- account_id: "TS",
596
1805
 
597
- message_id: "TS",
598
1806
 
599
1807
 
600
1808
  status: Freeclimb::MessageStatus::NEW,
601
1809
 
602
- from: "TS",
603
1810
 
604
- to: "TS",
605
1811
 
606
- text: "TS",
607
1812
 
608
- direction: "TS",
1813
+ from: "TS",
609
1814
 
610
- notification_url: "TS",
611
1815
 
612
- brand_id: "TS",
613
1816
 
614
- campaign_id: "TS",
615
1817
 
1818
+ to: "TS",
616
1819
 
617
- media_urls: Array.new(),
618
1820
 
619
- )
620
-
621
- expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
622
- end
623
- end
624
-
625
- describe 'test method "_deserialize"' do
626
- instance = Freeclimb::MessageResult.new(
627
- uri: "TS",
628
1821
 
629
- date_created: "TS",
630
1822
 
631
- date_updated: "TS",
1823
+ text: "TS",
632
1824
 
633
- revision: 1,
634
1825
 
635
- account_id: "TS",
636
1826
 
637
- message_id: "TS",
638
1827
 
1828
+ direction: "TS",
639
1829
 
640
- status: Freeclimb::MessageStatus::NEW,
641
1830
 
642
- from: "TS",
643
1831
 
644
- to: "TS",
645
1832
 
646
- text: "TS",
1833
+ notification_url: "TS",
1834
+
647
1835
 
648
- direction: "TS",
649
1836
 
650
- notification_url: "TS",
651
1837
 
652
1838
  brand_id: "TS",
653
1839
 
1840
+
1841
+
1842
+
654
1843
  campaign_id: "TS",
655
1844
 
656
1845
 
657
- media_urls: Array.new(),
658
1846
 
659
- )
660
- it 'deserializes the data of uri' do
661
- expect(instance._deserialize("String", instance.uri)).to be_a_kind_of(String)
662
- end
663
- it 'deserializes the data of date_created' do
664
- expect(instance._deserialize("String", instance.date_created)).to be_a_kind_of(String)
665
- end
666
- it 'deserializes the data of date_updated' do
667
- expect(instance._deserialize("String", instance.date_updated)).to be_a_kind_of(String)
668
- end
669
- it 'deserializes the data of revision' do
670
- expect(instance._deserialize("Integer", instance.revision)).to be_a_kind_of(Integer)
671
- end
672
- it 'deserializes the data of account_id' do
673
- expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String)
674
- end
675
- it 'deserializes the data of message_id' do
676
- expect(instance._deserialize("String", instance.message_id)).to be_a_kind_of(String)
677
- end
678
- it 'deserializes the data of from' do
679
- expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String)
680
- end
681
- it 'deserializes the data of to' do
682
- expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String)
683
- end
684
- it 'deserializes the data of text' do
685
- expect(instance._deserialize("String", instance.text)).to be_a_kind_of(String)
686
- end
687
- it 'deserializes the data of direction' do
688
- expect(instance._deserialize("String", instance.direction)).to be_a_kind_of(String)
689
- end
690
- it 'deserializes the data of notification_url' do
691
- expect(instance._deserialize("String", instance.notification_url)).to be_a_kind_of(String)
692
- end
693
- it 'deserializes the data of brand_id' do
694
- expect(instance._deserialize("String", instance.brand_id)).to be_a_kind_of(String)
695
- end
696
- it 'deserializes the data of campaign_id' do
697
- expect(instance._deserialize("String", instance.campaign_id)).to be_a_kind_of(String)
698
- end
699
- it 'deserializes the data of segment_count' do
700
- expect(instance._deserialize("Float", instance.segment_count)).to be_a_kind_of(Float)
701
- end
702
- it 'deserializes the data of media_urls' do
703
- expect(instance._deserialize("Array<String>", instance.media_urls)).to be_a_kind_of(Array)
704
- end
705
- end
706
-
707
- describe 'test method "to_s"' do
708
- it 'returns the string representation of the object' do
709
- instance = Freeclimb::MessageResult.new(
710
- uri: "TS",
711
1847
 
712
- date_created: "TS",
713
1848
 
714
- date_updated: "TS",
715
1849
 
716
- revision: 1,
1850
+ media_urls: Array.new(),
717
1851
 
718
- account_id: "TS",
719
1852
 
720
- message_id: "TS",
721
1853
 
722
1854
 
723
- status: Freeclimb::MessageStatus::NEW,
724
1855
 
725
- from: "TS",
726
1856
 
727
- to: "TS",
1857
+ tfn: obj,
728
1858
 
729
- text: "TS",
730
1859
 
731
- direction: "TS",
1860
+ phone_number_id: "TS",
732
1861
 
733
- notification_url: "TS",
734
1862
 
735
- brand_id: "TS",
736
1863
 
737
- campaign_id: "TS",
1864
+
1865
+ application_id: "TS",
738
1866
 
739
1867
 
740
- media_urls: Array.new(),
741
1868
 
742
1869
  )
743
- expect(instance.to_s).to eq(instance.to_hash.to_s)
744
- end
745
- end
746
-
747
- describe 'test method "to_hash"' do
748
- it 'returns the object in the form of hash' do
749
- instance = Freeclimb::MessageResult.new(
1870
+ instance_2 = Freeclimb::MessageResult.new(
1871
+
750
1872
  uri: "TS",
751
1873
 
1874
+
1875
+
1876
+
752
1877
  date_created: "TS",
753
1878
 
1879
+
1880
+
1881
+
754
1882
  date_updated: "TS",
755
1883
 
1884
+
1885
+
756
1886
  revision: 1,
757
1887
 
758
- account_id: "TS",
759
1888
 
760
- message_id: "TS",
761
1889
 
762
1890
 
763
- status: Freeclimb::MessageStatus::NEW,
1891
+ account_id: "TS",
764
1892
 
765
- from: "TS",
766
1893
 
767
- to: "TS",
768
1894
 
769
- text: "TS",
770
1895
 
771
- direction: "TS",
1896
+ message_id: "TS",
772
1897
 
773
- notification_url: "TS",
774
1898
 
775
- brand_id: "TS",
776
1899
 
777
- campaign_id: "TS",
778
1900
 
1901
+ status: Freeclimb::MessageStatus::NEW,
779
1902
 
780
- media_urls: Array.new(),
781
1903
 
782
- )
783
- expect(instance.to_hash).to be_a_kind_of(Hash)
784
- end
785
- it 'creates equal hash for two equal objects' do
786
- obj = Object.new()
787
- instance_1 = Freeclimb::MessageResult.new(
788
- uri: "TS",
789
1904
 
790
- date_created: "TS",
791
1905
 
792
- date_updated: "TS",
1906
+ from: "TS",
793
1907
 
794
- revision: 1,
795
1908
 
796
- account_id: "TS",
797
1909
 
798
- message_id: "TS",
799
1910
 
1911
+ to: "TS",
800
1912
 
801
- status: Freeclimb::MessageStatus::NEW,
802
1913
 
803
- from: "TS",
804
1914
 
805
- to: "TS",
806
1915
 
807
1916
  text: "TS",
808
1917
 
1918
+
1919
+
1920
+
809
1921
  direction: "TS",
810
1922
 
1923
+
1924
+
1925
+
811
1926
  notification_url: "TS",
812
1927
 
1928
+
1929
+
1930
+
813
1931
  brand_id: "TS",
814
1932
 
1933
+
1934
+
1935
+
815
1936
  campaign_id: "TS",
816
1937
 
817
1938
 
818
- media_urls: Array.new(),
819
1939
 
820
- )
821
- instance_2 = Freeclimb::MessageResult.new(
822
- uri: "TS",
823
1940
 
824
- date_created: "TS",
825
1941
 
826
- date_updated: "TS",
827
1942
 
828
- revision: 1,
1943
+ media_urls: Array.new(),
829
1944
 
830
- account_id: "TS",
831
1945
 
832
- message_id: "TS",
833
1946
 
834
1947
 
835
- status: Freeclimb::MessageStatus::NEW,
836
1948
 
837
- from: "TS",
838
1949
 
839
- to: "TS",
1950
+ tfn: obj,
840
1951
 
841
- text: "TS",
842
1952
 
843
- direction: "TS",
1953
+ phone_number_id: "TS",
844
1954
 
845
- notification_url: "TS",
846
1955
 
847
- brand_id: "TS",
848
1956
 
849
- campaign_id: "TS",
1957
+
1958
+ application_id: "TS",
850
1959
 
851
1960
 
852
- media_urls: Array.new(),
853
1961
 
854
1962
  )
855
1963
  expect(instance_1.to_hash).to eq(instance_2.to_hash)
@@ -858,21 +1966,26 @@ describe Freeclimb::MessageResult do
858
1966
 
859
1967
  describe 'test method "_to_hash"' do
860
1968
  instance = Freeclimb::MessageResult.new(
1969
+
861
1970
  uri: "TS",
862
1971
 
863
1972
 
1973
+
864
1974
  date_created: "TS",
865
1975
 
866
1976
 
1977
+
867
1978
  date_updated: "TS",
868
1979
 
869
1980
 
870
1981
  revision: 1,
871
1982
 
872
1983
 
1984
+
873
1985
  account_id: "TS",
874
1986
 
875
1987
 
1988
+
876
1989
  message_id: "TS",
877
1990
 
878
1991
 
@@ -880,24 +1993,31 @@ describe Freeclimb::MessageResult do
880
1993
  status: Freeclimb::MessageStatus::NEW,
881
1994
 
882
1995
 
1996
+
883
1997
  from: "TS",
884
1998
 
885
1999
 
2000
+
886
2001
  to: "TS",
887
2002
 
888
2003
 
2004
+
889
2005
  text: "TS",
890
2006
 
891
2007
 
2008
+
892
2009
  direction: "TS",
893
2010
 
894
2011
 
2012
+
895
2013
  notification_url: "TS",
896
2014
 
897
2015
 
2016
+
898
2017
  brand_id: "TS",
899
2018
 
900
2019
 
2020
+
901
2021
  campaign_id: "TS",
902
2022
 
903
2023
 
@@ -905,6 +2025,16 @@ describe Freeclimb::MessageResult do
905
2025
 
906
2026
  media_urls: Array.new(),
907
2027
 
2028
+
2029
+
2030
+
2031
+
2032
+ phone_number_id: "TS",
2033
+
2034
+
2035
+
2036
+ application_id: "TS",
2037
+
908
2038
  )
909
2039
  it 'returns uri in the form of hash' do
910
2040
  expect(instance._to_hash(instance.uri)).to eq(instance.uri)
@@ -954,6 +2084,15 @@ describe Freeclimb::MessageResult do
954
2084
  it 'returns media_urls in the form of hash' do
955
2085
  expect(instance._to_hash(instance.media_urls)).to eq(instance.media_urls)
956
2086
  end
2087
+ it 'returns tfn in the form of hash' do
2088
+ expect(instance._to_hash(instance.tfn)).to eq(instance.tfn)
2089
+ end
2090
+ it 'returns phone_number_id in the form of hash' do
2091
+ expect(instance._to_hash(instance.phone_number_id)).to eq(instance.phone_number_id)
2092
+ end
2093
+ it 'returns application_id in the form of hash' do
2094
+ expect(instance._to_hash(instance.application_id)).to eq(instance.application_id)
2095
+ end
957
2096
  end
958
2097
 
959
2098
  end