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::MessageRequest
18
19
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
@@ -28,25 +29,34 @@ describe Freeclimb::MessageRequest 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,38 +67,52 @@ describe Freeclimb::MessageRequest 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 "from"' do
64
76
  it 'should work' do
77
+
65
78
  instance.from = "TEST_STRING"
66
79
  expect(instance.from).to eq("TEST_STRING")
67
80
 
81
+
82
+
68
83
  end
69
84
  end
70
85
 
71
86
  describe 'test attribute "to"' do
72
87
  it 'should work' do
88
+
73
89
  instance.to = "TEST_STRING"
74
90
  expect(instance.to).to eq("TEST_STRING")
75
91
 
92
+
93
+
76
94
  end
77
95
  end
78
96
 
79
97
  describe 'test attribute "text"' do
80
98
  it 'should work' do
99
+
81
100
  instance.text = "TEST_STRING"
82
101
  expect(instance.text).to eq("TEST_STRING")
83
102
 
103
+
104
+
84
105
  end
85
106
  end
86
107
 
87
108
  describe 'test attribute "notification_url"' do
88
109
  it 'should work' do
110
+
89
111
  instance.notification_url = "TEST_STRING"
90
112
  expect(instance.notification_url).to eq("TEST_STRING")
91
113
 
114
+
115
+
92
116
  end
93
117
  end
94
118
 
@@ -97,75 +121,152 @@ describe Freeclimb::MessageRequest do
97
121
 
98
122
  instance.media_urls = ["ELEMENT_1", "ELEMENT_2"]
99
123
  expect(instance.media_urls).to eq(["ELEMENT_1", "ELEMENT_2"])
124
+
125
+
100
126
  end
101
127
  end
102
128
 
103
129
  describe 'test method "initialize"' do
104
130
  it 'properly initializes with values' do
105
131
  expect { instance = Freeclimb::MessageRequest.new(
132
+
106
133
  uri: "TS",
107
134
 
135
+
136
+
137
+
108
138
  date_created: "TS",
109
139
 
140
+
141
+
142
+
110
143
  date_updated: "TS",
111
144
 
145
+
146
+
112
147
  revision: 1,
113
148
 
149
+
150
+
151
+
114
152
  from: "TS",
115
153
 
154
+
155
+
156
+
116
157
  to: "TS",
117
158
 
159
+
160
+
161
+
118
162
  text: "TS",
119
163
 
164
+
165
+
166
+
120
167
  notification_url: "TS",
121
168
 
169
+
170
+
122
171
  media_urls: Array.new(),
123
172
 
173
+
174
+
124
175
  )}.not_to raise_error()
125
176
  end
126
177
  it 'fails to initialize with input argument that is not a hash in Freeclimb::MessageRequest' do
127
178
  expect { instance = Freeclimb::MessageRequest.new(
179
+
128
180
  uri: "TS",
129
181
 
182
+
183
+
184
+
130
185
  date_created: "TS",
131
186
 
187
+
188
+
189
+
132
190
  date_updated: "TS",
133
191
 
192
+
193
+
134
194
  revision: 1,
135
195
 
196
+
197
+
198
+
136
199
  from: "TS",
137
200
 
201
+
202
+
203
+
138
204
  to: "TS",
139
205
 
206
+
207
+
208
+
140
209
  text: "TS",
141
210
 
211
+
212
+
213
+
142
214
  notification_url: "TS",
143
215
 
216
+
217
+
144
218
  media_urls: Array.new(),
145
219
 
220
+
221
+
146
222
  invalid_attribute: true
147
223
  )}.to raise_error(ArgumentError)
148
224
  end
149
225
  it 'fails to initialize with invalid attribute' do
150
226
  expect { instance = Freeclimb::MessageRequest.new(
227
+
151
228
  uri: "TS",
152
229
 
230
+
231
+
232
+
153
233
  date_created: "TS",
154
234
 
235
+
236
+
237
+
155
238
  date_updated: "TS",
156
239
 
240
+
241
+
157
242
  revision: 1,
158
243
 
244
+
245
+
246
+
159
247
  from: "TS",
160
248
 
249
+
250
+
251
+
161
252
  to: "TS",
162
253
 
254
+
255
+
256
+
163
257
  text: "TS",
164
258
 
259
+
260
+
261
+
165
262
  notification_url: "TS",
166
263
 
264
+
265
+
167
266
  media_urls: Array.new(),
168
267
 
268
+
269
+
169
270
  invalid_attribute: true
170
271
  )}.to raise_error(ArgumentError)
171
272
  end
@@ -174,24 +275,49 @@ describe Freeclimb::MessageRequest do
174
275
  describe 'test method "valid"' do
175
276
  it 'checks if properties are valid' do
176
277
  instance = Freeclimb::MessageRequest.new(
278
+
177
279
  uri: "TS",
178
280
 
281
+
282
+
283
+
179
284
  date_created: "TS",
180
285
 
286
+
287
+
288
+
181
289
  date_updated: "TS",
182
290
 
291
+
292
+
183
293
  revision: 1,
184
294
 
295
+
296
+
297
+
185
298
  from: "TS",
186
299
 
300
+
301
+
302
+
187
303
  to: "TS",
188
304
 
305
+
306
+
307
+
189
308
  text: "TS",
190
309
 
310
+
311
+
312
+
191
313
  notification_url: "TS",
192
314
 
315
+
316
+
193
317
  media_urls: Array.new(),
194
318
 
319
+
320
+
195
321
  )
196
322
  expect(instance.valid?).to eq(true)
197
323
  end
@@ -208,44 +334,102 @@ describe Freeclimb::MessageRequest do
208
334
 
209
335
  describe 'test method "eql?"' do
210
336
  it 'checks if objects are equal' do
211
- obj = Object.new()
337
+
338
+
339
+
340
+
341
+
342
+
343
+
344
+
345
+
212
346
  instance_1 = Freeclimb::MessageRequest.new(
347
+
213
348
  uri: "TS",
214
349
 
350
+
351
+
352
+
215
353
  date_created: "TS",
216
354
 
355
+
356
+
357
+
217
358
  date_updated: "TS",
218
359
 
360
+
361
+
219
362
  revision: 1,
220
363
 
364
+
365
+
366
+
221
367
  from: "TS",
222
368
 
369
+
370
+
371
+
223
372
  to: "TS",
224
373
 
374
+
375
+
376
+
225
377
  text: "TS",
226
378
 
379
+
380
+
381
+
227
382
  notification_url: "TS",
228
383
 
384
+
385
+
386
+
387
+
229
388
  media_urls: [],
230
389
 
231
390
  )
232
391
  instance_2 = Freeclimb::MessageRequest.new(
392
+
233
393
  uri: "TS",
234
394
 
395
+
396
+
397
+
235
398
  date_created: "TS",
236
399
 
400
+
401
+
402
+
237
403
  date_updated: "TS",
238
404
 
405
+
406
+
407
+
408
+
239
409
  revision: 1,
240
410
 
411
+
241
412
  from: "TS",
242
413
 
414
+
415
+
416
+
243
417
  to: "TS",
244
418
 
419
+
420
+
421
+
245
422
  text: "TS",
246
423
 
424
+
425
+
426
+
247
427
  notification_url: "TS",
248
428
 
429
+
430
+
431
+
432
+
249
433
  media_urls: [],
250
434
 
251
435
  )
@@ -254,42 +438,92 @@ describe Freeclimb::MessageRequest do
254
438
 
255
439
  it 'checks if objects are not equal' do
256
440
  instance_1 = Freeclimb::MessageRequest.new(
441
+
257
442
  uri: "TS",
258
443
 
444
+
445
+
446
+
259
447
  date_created: "TS",
260
448
 
449
+
450
+
451
+
261
452
  date_updated: "TS",
262
453
 
454
+
455
+
263
456
  revision: 2,
264
457
 
458
+
459
+
460
+
265
461
  from: "TS",
266
462
 
463
+
464
+
465
+
267
466
  to: "TS",
268
467
 
468
+
469
+
470
+
269
471
  text: "TS",
270
472
 
473
+
474
+
475
+
271
476
  notification_url: "TS",
272
477
 
478
+
479
+
480
+
481
+
273
482
  media_urls: [],
274
483
 
275
484
  )
276
485
  instance_2 = Freeclimb::MessageRequest.new(
486
+
277
487
  uri: "ST",
278
488
 
489
+
490
+
491
+
279
492
  date_created: "ST",
280
493
 
494
+
495
+
496
+
281
497
  date_updated: "ST",
282
498
 
499
+
500
+
283
501
  revision: 1,
284
502
 
503
+
504
+
505
+
285
506
  from: "ST",
286
507
 
508
+
509
+
510
+
287
511
  to: "ST",
288
512
 
513
+
514
+
515
+
289
516
  text: "ST",
290
517
 
518
+
519
+
520
+
291
521
  notification_url: "ST",
292
522
 
523
+
524
+
525
+
526
+
293
527
  media_urls: nil,
294
528
 
295
529
  )
@@ -300,24 +534,49 @@ describe Freeclimb::MessageRequest do
300
534
  describe 'test method "hash"' do
301
535
  it 'calculates hash code' do
302
536
  instance = Freeclimb::MessageRequest.new(
537
+
303
538
  uri: "TS",
304
539
 
540
+
541
+
542
+
305
543
  date_created: "TS",
306
544
 
545
+
546
+
547
+
307
548
  date_updated: "TS",
308
549
 
550
+
551
+
309
552
  revision: 1,
310
553
 
554
+
555
+
556
+
311
557
  from: "TS",
312
558
 
559
+
560
+
561
+
313
562
  to: "TS",
314
563
 
564
+
565
+
566
+
315
567
  text: "TS",
316
568
 
569
+
570
+
571
+
317
572
  notification_url: "TS",
318
573
 
574
+
575
+
319
576
  media_urls: Array.new(),
320
577
 
578
+
579
+
321
580
  )
322
581
  expect(instance.hash).to be_a_kind_of(Integer)
323
582
  end
@@ -326,44 +585,94 @@ describe Freeclimb::MessageRequest do
326
585
  describe 'test method "build_from_hash"' do
327
586
  it 'builds equivalent model from hash code' do
328
587
  instance_1 = Freeclimb::MessageRequest.new(
588
+
329
589
  uri: "TS",
330
590
 
591
+
592
+
593
+
331
594
  date_created: "TS",
332
595
 
596
+
597
+
598
+
333
599
  date_updated: "TS",
334
600
 
601
+
602
+
335
603
  revision: 1,
336
604
 
605
+
606
+
607
+
337
608
  from: "TS",
338
609
 
610
+
611
+
612
+
339
613
  to: "TS",
340
614
 
615
+
616
+
617
+
341
618
  text: "TS",
342
619
 
620
+
621
+
622
+
343
623
  notification_url: "TS",
344
624
 
625
+
626
+
345
627
  media_urls: Array.new(),
346
628
 
629
+
630
+
347
631
  )
348
632
  instance_2 = Freeclimb::MessageRequest.new(
633
+
349
634
  uri: "TS",
350
635
 
636
+
637
+
638
+
351
639
  date_created: "TS",
352
640
 
641
+
642
+
643
+
353
644
  date_updated: "TS",
354
645
 
646
+
647
+
355
648
  revision: 1,
356
649
 
650
+
651
+
652
+
357
653
  from: "TS",
358
654
 
655
+
656
+
657
+
359
658
  to: "TS",
360
659
 
660
+
661
+
662
+
361
663
  text: "TS",
362
664
 
665
+
666
+
667
+
363
668
  notification_url: "TS",
364
669
 
670
+
671
+
365
672
  media_urls: Array.new(),
366
673
 
674
+
675
+
367
676
  )
368
677
 
369
678
  expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
@@ -372,75 +681,143 @@ describe Freeclimb::MessageRequest do
372
681
 
373
682
  describe 'test method "_deserialize"' do
374
683
  instance = Freeclimb::MessageRequest.new(
684
+
375
685
  uri: "TS",
376
686
 
687
+
688
+
689
+
377
690
  date_created: "TS",
378
691
 
692
+
693
+
694
+
379
695
  date_updated: "TS",
380
696
 
697
+
698
+
381
699
  revision: 1,
382
700
 
701
+
702
+
703
+
383
704
  from: "TS",
384
705
 
706
+
707
+
708
+
385
709
  to: "TS",
386
710
 
711
+
712
+
713
+
387
714
  text: "TS",
388
715
 
716
+
717
+
718
+
389
719
  notification_url: "TS",
390
720
 
721
+
722
+
391
723
  media_urls: Array.new(),
392
724
 
725
+
726
+
393
727
  )
394
728
  it 'deserializes the data of uri' do
395
729
  expect(instance._deserialize("String", instance.uri)).to be_a_kind_of(String)
396
730
  end
731
+
732
+
397
733
  it 'deserializes the data of date_created' do
398
734
  expect(instance._deserialize("String", instance.date_created)).to be_a_kind_of(String)
399
735
  end
736
+
737
+
400
738
  it 'deserializes the data of date_updated' do
401
739
  expect(instance._deserialize("String", instance.date_updated)).to be_a_kind_of(String)
402
740
  end
741
+
742
+
403
743
  it 'deserializes the data of revision' do
404
744
  expect(instance._deserialize("Integer", instance.revision)).to be_a_kind_of(Integer)
405
745
  end
746
+
747
+
406
748
  it 'deserializes the data of from' do
407
749
  expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String)
408
750
  end
751
+
752
+
409
753
  it 'deserializes the data of to' do
410
754
  expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String)
411
755
  end
756
+
757
+
412
758
  it 'deserializes the data of text' do
413
759
  expect(instance._deserialize("String", instance.text)).to be_a_kind_of(String)
414
760
  end
761
+
762
+
415
763
  it 'deserializes the data of notification_url' do
416
764
  expect(instance._deserialize("String", instance.notification_url)).to be_a_kind_of(String)
417
765
  end
766
+
767
+
418
768
  it 'deserializes the data of media_urls' do
419
769
  expect(instance._deserialize("Array<String>", instance.media_urls)).to be_a_kind_of(Array)
420
770
  end
771
+
772
+
421
773
  end
422
774
 
423
775
  describe 'test method "to_s"' do
424
776
  it 'returns the string representation of the object' do
425
777
  instance = Freeclimb::MessageRequest.new(
778
+
426
779
  uri: "TS",
427
780
 
781
+
782
+
783
+
428
784
  date_created: "TS",
429
785
 
786
+
787
+
788
+
430
789
  date_updated: "TS",
431
790
 
791
+
792
+
432
793
  revision: 1,
433
794
 
795
+
796
+
797
+
434
798
  from: "TS",
435
799
 
800
+
801
+
802
+
436
803
  to: "TS",
437
804
 
805
+
806
+
807
+
438
808
  text: "TS",
439
809
 
810
+
811
+
812
+
440
813
  notification_url: "TS",
441
814
 
815
+
816
+
442
817
  media_urls: Array.new(),
443
818
 
819
+
820
+
444
821
  )
445
822
  expect(instance.to_s).to eq(instance.to_hash.to_s)
446
823
  end
@@ -449,68 +826,151 @@ describe Freeclimb::MessageRequest do
449
826
  describe 'test method "to_hash"' do
450
827
  it 'returns the object in the form of hash' do
451
828
  instance = Freeclimb::MessageRequest.new(
829
+
452
830
  uri: "TS",
453
831
 
832
+
833
+
834
+
454
835
  date_created: "TS",
455
836
 
837
+
838
+
839
+
456
840
  date_updated: "TS",
457
841
 
842
+
843
+
458
844
  revision: 1,
459
845
 
846
+
847
+
848
+
460
849
  from: "TS",
461
850
 
851
+
852
+
853
+
462
854
  to: "TS",
463
855
 
856
+
857
+
858
+
464
859
  text: "TS",
465
860
 
861
+
862
+
863
+
466
864
  notification_url: "TS",
467
865
 
866
+
867
+
468
868
  media_urls: Array.new(),
469
869
 
870
+
871
+
470
872
  )
471
873
  expect(instance.to_hash).to be_a_kind_of(Hash)
472
874
  end
473
875
  it 'creates equal hash for two equal objects' do
474
- obj = Object.new()
876
+
877
+
878
+
879
+
880
+
881
+
882
+
883
+
884
+
475
885
  instance_1 = Freeclimb::MessageRequest.new(
886
+
476
887
  uri: "TS",
477
888
 
889
+
890
+
891
+
478
892
  date_created: "TS",
479
893
 
894
+
895
+
896
+
480
897
  date_updated: "TS",
481
898
 
899
+
900
+
482
901
  revision: 1,
483
902
 
903
+
904
+
905
+
484
906
  from: "TS",
485
907
 
908
+
909
+
910
+
486
911
  to: "TS",
487
912
 
913
+
914
+
915
+
488
916
  text: "TS",
489
917
 
918
+
919
+
920
+
490
921
  notification_url: "TS",
491
922
 
923
+
924
+
492
925
  media_urls: Array.new(),
493
926
 
927
+
928
+
494
929
  )
495
930
  instance_2 = Freeclimb::MessageRequest.new(
931
+
496
932
  uri: "TS",
497
933
 
934
+
935
+
936
+
498
937
  date_created: "TS",
499
938
 
939
+
940
+
941
+
500
942
  date_updated: "TS",
501
943
 
944
+
945
+
502
946
  revision: 1,
503
947
 
948
+
949
+
950
+
504
951
  from: "TS",
505
952
 
953
+
954
+
955
+
506
956
  to: "TS",
507
957
 
958
+
959
+
960
+
508
961
  text: "TS",
509
962
 
963
+
964
+
965
+
510
966
  notification_url: "TS",
511
967
 
968
+
969
+
512
970
  media_urls: Array.new(),
513
971
 
972
+
973
+
514
974
  )
515
975
  expect(instance_1.to_hash).to eq(instance_2.to_hash)
516
976
  end
@@ -518,27 +978,34 @@ describe Freeclimb::MessageRequest do
518
978
 
519
979
  describe 'test method "_to_hash"' do
520
980
  instance = Freeclimb::MessageRequest.new(
981
+
521
982
  uri: "TS",
522
983
 
523
984
 
985
+
524
986
  date_created: "TS",
525
987
 
526
988
 
989
+
527
990
  date_updated: "TS",
528
991
 
529
992
 
530
993
  revision: 1,
531
994
 
532
995
 
996
+
533
997
  from: "TS",
534
998
 
535
999
 
1000
+
536
1001
  to: "TS",
537
1002
 
538
1003
 
1004
+
539
1005
  text: "TS",
540
1006
 
541
1007
 
1008
+
542
1009
  notification_url: "TS",
543
1010
 
544
1011