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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -1
- data/Gemfile +2 -1
- data/Gemfile.lock +21 -15
- data/README.md +5 -4
- data/docs/MessageResult.md +7 -1
- data/docs/TFNCampaign.md +34 -0
- data/lib/freeclimb/configuration.rb +1 -2
- data/lib/freeclimb/models/dequeue.rb +2 -4
- data/lib/freeclimb/models/message_result.rb +36 -5
- data/lib/freeclimb/models/remove_from_conference.rb +2 -4
- data/lib/freeclimb/models/start_record_call.rb +2 -4
- data/lib/freeclimb/models/terminate_conference.rb +2 -4
- data/lib/freeclimb/models/tfn_campaign.rb +370 -0
- data/lib/freeclimb/models/unpark.rb +2 -4
- data/lib/freeclimb/version.rb +1 -1
- data/lib/freeclimb.rb +1 -0
- data/openapi.json +93 -38
- data/spec/api/default_api_spec.rb +39 -117
- data/spec/models/account_request_spec.rb +113 -2
- data/spec/models/account_result_spec.rb +591 -28
- data/spec/models/account_status_spec.rb +1 -0
- data/spec/models/account_type_spec.rb +1 -0
- data/spec/models/add_to_conference_notification_webhook_spec.rb +654 -5
- data/spec/models/add_to_conference_spec.rb +471 -2
- data/spec/models/add_to_queue_notification_webhook_spec.rb +465 -2
- data/spec/models/answered_by_spec.rb +1 -0
- data/spec/models/application_list_spec.rb +323 -2
- data/spec/models/application_request_spec.rb +393 -2
- data/spec/models/application_result_spec.rb +723 -14
- data/spec/models/available_number_list_spec.rb +323 -2
- data/spec/models/available_number_spec.rb +380 -21
- data/spec/models/barge_in_reason_spec.rb +1 -0
- data/spec/models/buy_incoming_number_request_spec.rb +169 -2
- data/spec/models/call_control_webhook_spec.rb +281 -2
- data/spec/models/call_direction_spec.rb +1 -0
- data/spec/models/call_ended_reason_spec.rb +1 -0
- data/spec/models/call_list_spec.rb +323 -2
- data/spec/models/call_result_spec.rb +1020 -9
- data/spec/models/call_status_spec.rb +1 -0
- data/spec/models/call_status_webhook_spec.rb +501 -2
- data/spec/models/capabilities_spec.rb +191 -2
- data/spec/models/completion_request_spec.rb +54 -2
- data/spec/models/completion_result_spec.rb +93 -2
- data/spec/models/completion_result_status_spec.rb +1 -0
- data/spec/models/conference_list_spec.rb +323 -2
- data/spec/models/conference_participant_list_spec.rb +323 -2
- data/spec/models/conference_participant_result_spec.rb +532 -7
- data/spec/models/conference_recording_status_webhook_spec.rb +654 -5
- data/spec/models/conference_result_spec.rb +768 -55
- data/spec/models/conference_status_spec.rb +1 -0
- data/spec/models/conference_status_webhook_spec.rb +654 -5
- data/spec/models/create_conference_request_spec.rb +243 -2
- data/spec/models/create_conference_spec.rb +281 -2
- data/spec/models/create_conference_webhook_spec.rb +654 -5
- data/spec/models/create_web_rtc_token_spec.rb +151 -2
- data/spec/models/dequeue_spec.rb +1 -0
- data/spec/models/dequeue_webhook_spec.rb +565 -8
- data/spec/models/enqueue_spec.rb +225 -2
- data/spec/models/filter_logs_request_spec.rb +57 -2
- data/spec/models/get_digits_reason_spec.rb +1 -0
- data/spec/models/get_digits_spec.rb +379 -2
- data/spec/models/get_digits_webhook_spec.rb +623 -12
- data/spec/models/get_speech_reason_spec.rb +1 -0
- data/spec/models/get_speech_spec.rb +556 -11
- data/spec/models/get_speech_webhook_spec.rb +870 -15
- data/spec/models/grammar_file_built_in_spec.rb +1 -0
- data/spec/models/grammar_type_spec.rb +1 -0
- data/spec/models/hangup_spec.rb +57 -2
- data/spec/models/if_machine_spec.rb +1 -0
- data/spec/models/inbound_call_webhook_spec.rb +521 -2
- data/spec/models/incoming_number_list_spec.rb +323 -2
- data/spec/models/incoming_number_request_spec.rb +169 -2
- data/spec/models/incoming_number_result_spec.rb +930 -43
- data/spec/models/language_spec.rb +1 -0
- data/spec/models/leave_conference_webhook_spec.rb +465 -2
- data/spec/models/log_level_spec.rb +1 -0
- data/spec/models/log_list_spec.rb +323 -2
- data/spec/models/log_result_spec.rb +368 -9
- data/spec/models/machine_detected_webhook_spec.rb +565 -10
- data/spec/models/machine_type_spec.rb +1 -0
- data/spec/models/make_call_request_spec.rb +529 -6
- data/spec/models/message_delivery_webhook_spec.rb +565 -6
- data/spec/models/message_direction_spec.rb +1 -0
- data/spec/models/message_request_spec.rb +469 -2
- data/spec/models/message_result_spec.rb +1364 -225
- data/spec/models/message_status_spec.rb +1 -0
- data/spec/models/message_status_webhook_spec.rb +615 -20
- data/spec/models/messages_list_spec.rb +323 -2
- data/spec/models/mutable_resource_model_spec.rb +207 -2
- data/spec/models/out_dial_api_connect_webhook_spec.rb +521 -2
- data/spec/models/out_dial_connect_webhook_spec.rb +521 -2
- data/spec/models/out_dial_spec.rb +505 -2
- data/spec/models/out_dial_start_webhook_spec.rb +599 -24
- data/spec/models/pagination_model_spec.rb +285 -2
- data/spec/models/park_spec.rb +169 -2
- data/spec/models/pause_spec.rb +39 -2
- data/spec/models/percl_command_spec.rb +54 -2
- data/spec/models/percl_script_spec.rb +39 -2
- data/spec/models/play_beep_spec.rb +1 -0
- data/spec/models/play_early_media_spec.rb +57 -2
- data/spec/models/play_spec.rb +133 -2
- data/spec/models/queue_list_spec.rb +323 -2
- data/spec/models/queue_member_list_spec.rb +323 -2
- data/spec/models/queue_member_spec.rb +245 -2
- data/spec/models/queue_request_spec.rb +95 -2
- data/spec/models/queue_result_spec.rb +564 -15
- data/spec/models/queue_result_status_spec.rb +1 -0
- data/spec/models/queue_wait_webhook_spec.rb +616 -21
- data/spec/models/record_utterance_spec.rb +303 -2
- data/spec/models/record_utterance_term_reason_spec.rb +1 -0
- data/spec/models/record_webhook_spec.rb +868 -13
- data/spec/models/recording_list_spec.rb +323 -2
- data/spec/models/recording_result_spec.rb +469 -2
- data/spec/models/redirect_spec.rb +57 -2
- data/spec/models/redirect_webhook_spec.rb +521 -2
- data/spec/models/reject_spec.rb +57 -2
- data/spec/models/remove_from_conference_spec.rb +1 -0
- data/spec/models/remove_from_queue_notification_webhook_spec.rb +546 -9
- data/spec/models/request_type_spec.rb +1 -0
- data/spec/models/say_spec.rb +189 -2
- data/spec/models/send_digits_spec.rb +133 -2
- data/spec/models/set_dtmf_pass_through_spec.rb +39 -2
- data/spec/models/set_listen_spec.rb +39 -2
- data/spec/models/set_talk_spec.rb +39 -2
- data/spec/models/sms_spec.rb +225 -2
- data/spec/models/sms_ten_dlc_brand_alt_business_id_type_spec.rb +1 -0
- data/spec/models/sms_ten_dlc_brand_entity_type_spec.rb +1 -0
- data/spec/models/sms_ten_dlc_brand_identity_status_spec.rb +1 -0
- data/spec/models/sms_ten_dlc_brand_relationship_spec.rb +1 -0
- data/spec/models/sms_ten_dlc_brand_spec.rb +1969 -423
- data/spec/models/sms_ten_dlc_brand_stock_exchange_spec.rb +1 -0
- data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +323 -2
- data/spec/models/sms_ten_dlc_campaign_spec.rb +2224 -550
- data/spec/models/sms_ten_dlc_campaign_status_spec.rb +1 -0
- data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +323 -2
- data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +597 -17
- data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +1537 -155
- data/spec/models/sms_ten_dlc_partner_campaign_status_spec.rb +1 -0
- data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +323 -2
- data/spec/models/sms_toll_free_campaign_registration_status_spec.rb +1 -0
- data/spec/models/sms_toll_free_campaign_spec.rb +355 -2
- data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +323 -2
- data/spec/models/start_record_call_spec.rb +1 -0
- data/spec/models/terminate_conference_spec.rb +1 -0
- data/spec/models/tfn_campaign_spec.rb +1089 -0
- data/spec/models/tfn_spec.rb +57 -2
- data/spec/models/transcribe_reason_spec.rb +1 -0
- data/spec/models/transcribe_term_reason_spec.rb +1 -0
- data/spec/models/transcribe_utterance_record_spec.rb +115 -2
- data/spec/models/transcribe_utterance_spec.rb +288 -21
- data/spec/models/transcribe_webhook_spec.rb +1049 -4
- data/spec/models/unpark_spec.rb +1 -0
- data/spec/models/update_call_request_spec.rb +37 -2
- data/spec/models/update_call_request_status_spec.rb +1 -0
- data/spec/models/update_conference_participant_request_spec.rb +115 -2
- data/spec/models/update_conference_request_spec.rb +129 -2
- data/spec/models/update_conference_request_status_spec.rb +1 -0
- data/spec/models/webhook_spec.rb +54 -2
- 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::MessageDeliveryWebhook
|
18
19
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
@@ -34,156 +35,276 @@ describe Freeclimb::MessageDeliveryWebhook do
|
|
34
35
|
|
35
36
|
describe 'test attribute "request_type"' do
|
36
37
|
it 'should work' do
|
38
|
+
|
37
39
|
instance.request_type = "TEST_STRING"
|
38
40
|
expect(instance.request_type).to eq("TEST_STRING")
|
39
41
|
|
42
|
+
|
43
|
+
|
40
44
|
end
|
41
45
|
end
|
42
46
|
|
43
47
|
describe 'test attribute "account_id"' do
|
44
48
|
it 'should work' do
|
49
|
+
|
45
50
|
instance.account_id = "TEST_STRING"
|
46
51
|
expect(instance.account_id).to eq("TEST_STRING")
|
47
52
|
|
53
|
+
|
54
|
+
|
48
55
|
end
|
49
56
|
end
|
50
57
|
|
51
58
|
describe 'test attribute "from"' do
|
52
59
|
it 'should work' do
|
60
|
+
|
53
61
|
instance.from = "TEST_STRING"
|
54
62
|
expect(instance.from).to eq("TEST_STRING")
|
55
63
|
|
64
|
+
|
65
|
+
|
56
66
|
end
|
57
67
|
end
|
58
68
|
|
59
69
|
describe 'test attribute "to"' do
|
60
70
|
it 'should work' do
|
71
|
+
|
61
72
|
instance.to = "TEST_STRING"
|
62
73
|
expect(instance.to).to eq("TEST_STRING")
|
63
74
|
|
75
|
+
|
76
|
+
|
64
77
|
end
|
65
78
|
end
|
66
79
|
|
67
80
|
describe 'test attribute "text"' do
|
68
81
|
it 'should work' do
|
82
|
+
|
69
83
|
instance.text = "TEST_STRING"
|
70
84
|
expect(instance.text).to eq("TEST_STRING")
|
71
85
|
|
86
|
+
|
87
|
+
|
72
88
|
end
|
73
89
|
end
|
74
90
|
|
75
91
|
describe 'test attribute "direction"' do
|
76
92
|
it 'should work' do
|
93
|
+
|
77
94
|
instance.direction = "TEST_STRING"
|
78
95
|
expect(instance.direction).to eq("TEST_STRING")
|
79
96
|
|
97
|
+
|
98
|
+
|
80
99
|
end
|
81
100
|
end
|
82
101
|
|
83
102
|
describe 'test attribute "application_id"' do
|
84
103
|
it 'should work' do
|
104
|
+
|
85
105
|
instance.application_id = "TEST_STRING"
|
86
106
|
expect(instance.application_id).to eq("TEST_STRING")
|
87
107
|
|
108
|
+
|
109
|
+
|
88
110
|
end
|
89
111
|
end
|
90
112
|
|
91
113
|
describe 'test attribute "status"' do
|
92
114
|
it 'should work' do
|
115
|
+
|
93
116
|
instance.status = "TEST_STRING"
|
94
117
|
expect(instance.status).to eq("TEST_STRING")
|
95
118
|
|
119
|
+
|
120
|
+
|
96
121
|
end
|
97
122
|
end
|
98
123
|
|
99
124
|
describe 'test attribute "phone_number_id"' do
|
100
125
|
it 'should work' do
|
126
|
+
|
101
127
|
instance.phone_number_id = "TEST_STRING"
|
102
128
|
expect(instance.phone_number_id).to eq("TEST_STRING")
|
103
129
|
|
130
|
+
|
131
|
+
|
104
132
|
end
|
105
133
|
end
|
106
134
|
|
107
135
|
describe 'test attribute "uri"' do
|
108
136
|
it 'should work' do
|
137
|
+
|
109
138
|
instance.uri = "TEST_STRING"
|
110
139
|
expect(instance.uri).to eq("TEST_STRING")
|
111
140
|
|
141
|
+
|
142
|
+
|
112
143
|
end
|
113
144
|
end
|
114
145
|
|
115
146
|
describe 'test method "initialize"' do
|
116
147
|
it 'properly initializes with values' do
|
117
148
|
expect { instance = Freeclimb::MessageDeliveryWebhook.new(
|
149
|
+
|
118
150
|
request_type: "TS",
|
119
151
|
|
152
|
+
|
153
|
+
|
154
|
+
|
120
155
|
account_id: "TS",
|
121
156
|
|
157
|
+
|
158
|
+
|
159
|
+
|
122
160
|
from: "TS",
|
123
161
|
|
162
|
+
|
163
|
+
|
164
|
+
|
124
165
|
to: "TS",
|
125
166
|
|
167
|
+
|
168
|
+
|
169
|
+
|
126
170
|
text: "TS",
|
127
171
|
|
172
|
+
|
173
|
+
|
174
|
+
|
128
175
|
direction: "TS",
|
129
176
|
|
177
|
+
|
178
|
+
|
179
|
+
|
130
180
|
application_id: "TS",
|
131
181
|
|
182
|
+
|
183
|
+
|
184
|
+
|
132
185
|
status: "TS",
|
133
186
|
|
187
|
+
|
188
|
+
|
189
|
+
|
134
190
|
phone_number_id: "TS",
|
135
191
|
|
192
|
+
|
193
|
+
|
194
|
+
|
136
195
|
uri: "TS",
|
137
196
|
|
197
|
+
|
198
|
+
|
138
199
|
)}.not_to raise_error()
|
139
200
|
end
|
140
201
|
it 'fails to initialize with input argument that is not a hash in Freeclimb::MessageDeliveryWebhook' do
|
141
202
|
expect { instance = Freeclimb::MessageDeliveryWebhook.new(
|
203
|
+
|
142
204
|
request_type: "TS",
|
143
205
|
|
206
|
+
|
207
|
+
|
208
|
+
|
144
209
|
account_id: "TS",
|
145
210
|
|
211
|
+
|
212
|
+
|
213
|
+
|
146
214
|
from: "TS",
|
147
215
|
|
216
|
+
|
217
|
+
|
218
|
+
|
148
219
|
to: "TS",
|
149
220
|
|
221
|
+
|
222
|
+
|
223
|
+
|
150
224
|
text: "TS",
|
151
225
|
|
226
|
+
|
227
|
+
|
228
|
+
|
152
229
|
direction: "TS",
|
153
230
|
|
231
|
+
|
232
|
+
|
233
|
+
|
154
234
|
application_id: "TS",
|
155
235
|
|
236
|
+
|
237
|
+
|
238
|
+
|
156
239
|
status: "TS",
|
157
240
|
|
241
|
+
|
242
|
+
|
243
|
+
|
158
244
|
phone_number_id: "TS",
|
159
245
|
|
246
|
+
|
247
|
+
|
248
|
+
|
160
249
|
uri: "TS",
|
161
250
|
|
251
|
+
|
252
|
+
|
162
253
|
invalid_attribute: true
|
163
254
|
)}.to raise_error(ArgumentError)
|
164
255
|
end
|
165
256
|
it 'fails to initialize with invalid attribute' do
|
166
257
|
expect { instance = Freeclimb::MessageDeliveryWebhook.new(
|
258
|
+
|
167
259
|
request_type: "TS",
|
168
260
|
|
261
|
+
|
262
|
+
|
263
|
+
|
169
264
|
account_id: "TS",
|
170
265
|
|
266
|
+
|
267
|
+
|
268
|
+
|
171
269
|
from: "TS",
|
172
270
|
|
271
|
+
|
272
|
+
|
273
|
+
|
173
274
|
to: "TS",
|
174
275
|
|
276
|
+
|
277
|
+
|
278
|
+
|
175
279
|
text: "TS",
|
176
280
|
|
281
|
+
|
282
|
+
|
283
|
+
|
177
284
|
direction: "TS",
|
178
285
|
|
286
|
+
|
287
|
+
|
288
|
+
|
179
289
|
application_id: "TS",
|
180
290
|
|
291
|
+
|
292
|
+
|
293
|
+
|
181
294
|
status: "TS",
|
182
295
|
|
296
|
+
|
297
|
+
|
298
|
+
|
183
299
|
phone_number_id: "TS",
|
184
300
|
|
301
|
+
|
302
|
+
|
303
|
+
|
185
304
|
uri: "TS",
|
186
305
|
|
306
|
+
|
307
|
+
|
187
308
|
invalid_attribute: true
|
188
309
|
)}.to raise_error(ArgumentError)
|
189
310
|
end
|
@@ -192,26 +313,56 @@ describe Freeclimb::MessageDeliveryWebhook do
|
|
192
313
|
describe 'test method "valid"' do
|
193
314
|
it 'checks if properties are valid' do
|
194
315
|
instance = Freeclimb::MessageDeliveryWebhook.new(
|
316
|
+
|
195
317
|
request_type: "TS",
|
196
318
|
|
319
|
+
|
320
|
+
|
321
|
+
|
197
322
|
account_id: "TS",
|
198
323
|
|
324
|
+
|
325
|
+
|
326
|
+
|
199
327
|
from: "TS",
|
200
328
|
|
329
|
+
|
330
|
+
|
331
|
+
|
201
332
|
to: "TS",
|
202
333
|
|
334
|
+
|
335
|
+
|
336
|
+
|
203
337
|
text: "TS",
|
204
338
|
|
339
|
+
|
340
|
+
|
341
|
+
|
205
342
|
direction: "TS",
|
206
343
|
|
344
|
+
|
345
|
+
|
346
|
+
|
207
347
|
application_id: "TS",
|
208
348
|
|
349
|
+
|
350
|
+
|
351
|
+
|
209
352
|
status: "TS",
|
210
353
|
|
354
|
+
|
355
|
+
|
356
|
+
|
211
357
|
phone_number_id: "TS",
|
212
358
|
|
359
|
+
|
360
|
+
|
361
|
+
|
213
362
|
uri: "TS",
|
214
363
|
|
364
|
+
|
365
|
+
|
215
366
|
)
|
216
367
|
expect(instance.valid?).to eq(true)
|
217
368
|
end
|
@@ -228,98 +379,227 @@ describe Freeclimb::MessageDeliveryWebhook do
|
|
228
379
|
|
229
380
|
describe 'test method "eql?"' do
|
230
381
|
it 'checks if objects are equal' do
|
231
|
-
|
382
|
+
|
383
|
+
|
384
|
+
|
385
|
+
|
386
|
+
|
387
|
+
|
388
|
+
|
389
|
+
|
390
|
+
|
391
|
+
|
232
392
|
instance_1 = Freeclimb::MessageDeliveryWebhook.new(
|
393
|
+
|
233
394
|
request_type: "TS",
|
234
395
|
|
396
|
+
|
397
|
+
|
398
|
+
|
235
399
|
account_id: "TS",
|
236
400
|
|
401
|
+
|
402
|
+
|
403
|
+
|
237
404
|
from: "TS",
|
238
405
|
|
406
|
+
|
407
|
+
|
408
|
+
|
239
409
|
to: "TS",
|
240
410
|
|
411
|
+
|
412
|
+
|
413
|
+
|
241
414
|
text: "TS",
|
242
415
|
|
416
|
+
|
417
|
+
|
418
|
+
|
243
419
|
direction: "TS",
|
244
420
|
|
421
|
+
|
422
|
+
|
423
|
+
|
245
424
|
application_id: "TS",
|
246
425
|
|
426
|
+
|
427
|
+
|
428
|
+
|
247
429
|
status: "TS",
|
248
430
|
|
431
|
+
|
432
|
+
|
433
|
+
|
249
434
|
phone_number_id: "TS",
|
250
435
|
|
436
|
+
|
437
|
+
|
438
|
+
|
251
439
|
uri: "TS",
|
252
440
|
|
441
|
+
|
442
|
+
|
253
443
|
)
|
254
444
|
instance_2 = Freeclimb::MessageDeliveryWebhook.new(
|
445
|
+
|
255
446
|
request_type: "TS",
|
256
447
|
|
448
|
+
|
449
|
+
|
450
|
+
|
257
451
|
account_id: "TS",
|
258
452
|
|
453
|
+
|
454
|
+
|
455
|
+
|
259
456
|
from: "TS",
|
260
457
|
|
458
|
+
|
459
|
+
|
460
|
+
|
261
461
|
to: "TS",
|
262
462
|
|
463
|
+
|
464
|
+
|
465
|
+
|
263
466
|
text: "TS",
|
264
467
|
|
468
|
+
|
469
|
+
|
470
|
+
|
265
471
|
direction: "TS",
|
266
472
|
|
473
|
+
|
474
|
+
|
475
|
+
|
267
476
|
application_id: "TS",
|
268
477
|
|
478
|
+
|
479
|
+
|
480
|
+
|
269
481
|
status: "TS",
|
270
482
|
|
483
|
+
|
484
|
+
|
485
|
+
|
271
486
|
phone_number_id: "TS",
|
272
487
|
|
488
|
+
|
489
|
+
|
490
|
+
|
273
491
|
uri: "TS",
|
274
492
|
|
493
|
+
|
494
|
+
|
275
495
|
)
|
276
496
|
expect(instance_1.eql?(instance_2)).to eq(true)
|
277
497
|
end
|
278
498
|
|
279
499
|
it 'checks if objects are not equal' do
|
280
500
|
instance_1 = Freeclimb::MessageDeliveryWebhook.new(
|
501
|
+
|
281
502
|
request_type: "TS",
|
282
503
|
|
504
|
+
|
505
|
+
|
506
|
+
|
283
507
|
account_id: "TS",
|
284
508
|
|
509
|
+
|
510
|
+
|
511
|
+
|
285
512
|
from: "TS",
|
286
513
|
|
514
|
+
|
515
|
+
|
516
|
+
|
287
517
|
to: "TS",
|
288
518
|
|
519
|
+
|
520
|
+
|
521
|
+
|
289
522
|
text: "TS",
|
290
523
|
|
524
|
+
|
525
|
+
|
526
|
+
|
291
527
|
direction: "TS",
|
292
528
|
|
529
|
+
|
530
|
+
|
531
|
+
|
293
532
|
application_id: "TS",
|
294
533
|
|
534
|
+
|
535
|
+
|
536
|
+
|
295
537
|
status: "TS",
|
296
538
|
|
539
|
+
|
540
|
+
|
541
|
+
|
297
542
|
phone_number_id: "TS",
|
298
543
|
|
544
|
+
|
545
|
+
|
546
|
+
|
299
547
|
uri: "TS",
|
300
548
|
|
549
|
+
|
550
|
+
|
301
551
|
)
|
302
552
|
instance_2 = Freeclimb::MessageDeliveryWebhook.new(
|
553
|
+
|
303
554
|
request_type: "ST",
|
304
555
|
|
305
|
-
account_id: "ST",
|
306
556
|
|
307
|
-
from: "ST",
|
308
557
|
|
309
|
-
to: "ST",
|
310
558
|
|
311
|
-
|
559
|
+
account_id: "ST",
|
560
|
+
|
561
|
+
|
562
|
+
|
563
|
+
|
564
|
+
from: "ST",
|
565
|
+
|
566
|
+
|
567
|
+
|
568
|
+
|
569
|
+
to: "ST",
|
570
|
+
|
571
|
+
|
572
|
+
|
573
|
+
|
574
|
+
text: "ST",
|
575
|
+
|
576
|
+
|
577
|
+
|
312
578
|
|
313
579
|
direction: "ST",
|
314
580
|
|
581
|
+
|
582
|
+
|
583
|
+
|
315
584
|
application_id: "ST",
|
316
585
|
|
586
|
+
|
587
|
+
|
588
|
+
|
317
589
|
status: "ST",
|
318
590
|
|
591
|
+
|
592
|
+
|
593
|
+
|
319
594
|
phone_number_id: "ST",
|
320
595
|
|
596
|
+
|
597
|
+
|
598
|
+
|
321
599
|
uri: "ST",
|
322
600
|
|
601
|
+
|
602
|
+
|
323
603
|
)
|
324
604
|
expect(instance_1.eql?(instance_2)).to eq(false)
|
325
605
|
end
|
@@ -328,26 +608,56 @@ describe Freeclimb::MessageDeliveryWebhook do
|
|
328
608
|
describe 'test method "hash"' do
|
329
609
|
it 'calculates hash code' do
|
330
610
|
instance = Freeclimb::MessageDeliveryWebhook.new(
|
611
|
+
|
331
612
|
request_type: "TS",
|
332
613
|
|
614
|
+
|
615
|
+
|
616
|
+
|
333
617
|
account_id: "TS",
|
334
618
|
|
619
|
+
|
620
|
+
|
621
|
+
|
335
622
|
from: "TS",
|
336
623
|
|
624
|
+
|
625
|
+
|
626
|
+
|
337
627
|
to: "TS",
|
338
628
|
|
629
|
+
|
630
|
+
|
631
|
+
|
339
632
|
text: "TS",
|
340
633
|
|
634
|
+
|
635
|
+
|
636
|
+
|
341
637
|
direction: "TS",
|
342
638
|
|
639
|
+
|
640
|
+
|
641
|
+
|
343
642
|
application_id: "TS",
|
344
643
|
|
644
|
+
|
645
|
+
|
646
|
+
|
345
647
|
status: "TS",
|
346
648
|
|
649
|
+
|
650
|
+
|
651
|
+
|
347
652
|
phone_number_id: "TS",
|
348
653
|
|
654
|
+
|
655
|
+
|
656
|
+
|
349
657
|
uri: "TS",
|
350
658
|
|
659
|
+
|
660
|
+
|
351
661
|
)
|
352
662
|
expect(instance.hash).to be_a_kind_of(Integer)
|
353
663
|
end
|
@@ -356,48 +666,108 @@ describe Freeclimb::MessageDeliveryWebhook do
|
|
356
666
|
describe 'test method "build_from_hash"' do
|
357
667
|
it 'builds equivalent model from hash code' do
|
358
668
|
instance_1 = Freeclimb::MessageDeliveryWebhook.new(
|
669
|
+
|
359
670
|
request_type: "TS",
|
360
671
|
|
672
|
+
|
673
|
+
|
674
|
+
|
361
675
|
account_id: "TS",
|
362
676
|
|
677
|
+
|
678
|
+
|
679
|
+
|
363
680
|
from: "TS",
|
364
681
|
|
682
|
+
|
683
|
+
|
684
|
+
|
365
685
|
to: "TS",
|
366
686
|
|
687
|
+
|
688
|
+
|
689
|
+
|
367
690
|
text: "TS",
|
368
691
|
|
692
|
+
|
693
|
+
|
694
|
+
|
369
695
|
direction: "TS",
|
370
696
|
|
697
|
+
|
698
|
+
|
699
|
+
|
371
700
|
application_id: "TS",
|
372
701
|
|
702
|
+
|
703
|
+
|
704
|
+
|
373
705
|
status: "TS",
|
374
706
|
|
707
|
+
|
708
|
+
|
709
|
+
|
375
710
|
phone_number_id: "TS",
|
376
711
|
|
712
|
+
|
713
|
+
|
714
|
+
|
377
715
|
uri: "TS",
|
378
716
|
|
717
|
+
|
718
|
+
|
379
719
|
)
|
380
720
|
instance_2 = Freeclimb::MessageDeliveryWebhook.new(
|
721
|
+
|
381
722
|
request_type: "TS",
|
382
723
|
|
724
|
+
|
725
|
+
|
726
|
+
|
383
727
|
account_id: "TS",
|
384
728
|
|
729
|
+
|
730
|
+
|
731
|
+
|
385
732
|
from: "TS",
|
386
733
|
|
734
|
+
|
735
|
+
|
736
|
+
|
387
737
|
to: "TS",
|
388
738
|
|
739
|
+
|
740
|
+
|
741
|
+
|
389
742
|
text: "TS",
|
390
743
|
|
744
|
+
|
745
|
+
|
746
|
+
|
391
747
|
direction: "TS",
|
392
748
|
|
749
|
+
|
750
|
+
|
751
|
+
|
393
752
|
application_id: "TS",
|
394
753
|
|
754
|
+
|
755
|
+
|
756
|
+
|
395
757
|
status: "TS",
|
396
758
|
|
759
|
+
|
760
|
+
|
761
|
+
|
397
762
|
phone_number_id: "TS",
|
398
763
|
|
764
|
+
|
765
|
+
|
766
|
+
|
399
767
|
uri: "TS",
|
400
768
|
|
769
|
+
|
770
|
+
|
401
771
|
)
|
402
772
|
|
403
773
|
expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
|
@@ -406,82 +776,162 @@ describe Freeclimb::MessageDeliveryWebhook do
|
|
406
776
|
|
407
777
|
describe 'test method "_deserialize"' do
|
408
778
|
instance = Freeclimb::MessageDeliveryWebhook.new(
|
779
|
+
|
409
780
|
request_type: "TS",
|
410
781
|
|
782
|
+
|
783
|
+
|
784
|
+
|
411
785
|
account_id: "TS",
|
412
786
|
|
787
|
+
|
788
|
+
|
789
|
+
|
413
790
|
from: "TS",
|
414
791
|
|
792
|
+
|
793
|
+
|
794
|
+
|
415
795
|
to: "TS",
|
416
796
|
|
797
|
+
|
798
|
+
|
799
|
+
|
417
800
|
text: "TS",
|
418
801
|
|
802
|
+
|
803
|
+
|
804
|
+
|
419
805
|
direction: "TS",
|
420
806
|
|
807
|
+
|
808
|
+
|
809
|
+
|
421
810
|
application_id: "TS",
|
422
811
|
|
812
|
+
|
813
|
+
|
814
|
+
|
423
815
|
status: "TS",
|
424
816
|
|
817
|
+
|
818
|
+
|
819
|
+
|
425
820
|
phone_number_id: "TS",
|
426
821
|
|
822
|
+
|
823
|
+
|
824
|
+
|
427
825
|
uri: "TS",
|
428
826
|
|
827
|
+
|
828
|
+
|
429
829
|
)
|
430
830
|
it 'deserializes the data of request_type' do
|
431
831
|
expect(instance._deserialize("String", instance.request_type)).to be_a_kind_of(String)
|
432
832
|
end
|
833
|
+
|
834
|
+
|
433
835
|
it 'deserializes the data of account_id' do
|
434
836
|
expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String)
|
435
837
|
end
|
838
|
+
|
839
|
+
|
436
840
|
it 'deserializes the data of from' do
|
437
841
|
expect(instance._deserialize("String", instance.from)).to be_a_kind_of(String)
|
438
842
|
end
|
843
|
+
|
844
|
+
|
439
845
|
it 'deserializes the data of to' do
|
440
846
|
expect(instance._deserialize("String", instance.to)).to be_a_kind_of(String)
|
441
847
|
end
|
848
|
+
|
849
|
+
|
442
850
|
it 'deserializes the data of text' do
|
443
851
|
expect(instance._deserialize("String", instance.text)).to be_a_kind_of(String)
|
444
852
|
end
|
853
|
+
|
854
|
+
|
445
855
|
it 'deserializes the data of direction' do
|
446
856
|
expect(instance._deserialize("String", instance.direction)).to be_a_kind_of(String)
|
447
857
|
end
|
858
|
+
|
859
|
+
|
448
860
|
it 'deserializes the data of application_id' do
|
449
861
|
expect(instance._deserialize("String", instance.application_id)).to be_a_kind_of(String)
|
450
862
|
end
|
863
|
+
|
864
|
+
|
451
865
|
it 'deserializes the data of status' do
|
452
866
|
expect(instance._deserialize("String", instance.status)).to be_a_kind_of(String)
|
453
867
|
end
|
868
|
+
|
869
|
+
|
454
870
|
it 'deserializes the data of phone_number_id' do
|
455
871
|
expect(instance._deserialize("String", instance.phone_number_id)).to be_a_kind_of(String)
|
456
872
|
end
|
873
|
+
|
874
|
+
|
457
875
|
it 'deserializes the data of uri' do
|
458
876
|
expect(instance._deserialize("String", instance.uri)).to be_a_kind_of(String)
|
459
877
|
end
|
878
|
+
|
879
|
+
|
460
880
|
end
|
461
881
|
|
462
882
|
describe 'test method "to_s"' do
|
463
883
|
it 'returns the string representation of the object' do
|
464
884
|
instance = Freeclimb::MessageDeliveryWebhook.new(
|
885
|
+
|
465
886
|
request_type: "TS",
|
466
887
|
|
888
|
+
|
889
|
+
|
890
|
+
|
467
891
|
account_id: "TS",
|
468
892
|
|
893
|
+
|
894
|
+
|
895
|
+
|
469
896
|
from: "TS",
|
470
897
|
|
898
|
+
|
899
|
+
|
900
|
+
|
471
901
|
to: "TS",
|
472
902
|
|
903
|
+
|
904
|
+
|
905
|
+
|
473
906
|
text: "TS",
|
474
907
|
|
908
|
+
|
909
|
+
|
910
|
+
|
475
911
|
direction: "TS",
|
476
912
|
|
913
|
+
|
914
|
+
|
915
|
+
|
477
916
|
application_id: "TS",
|
478
917
|
|
918
|
+
|
919
|
+
|
920
|
+
|
479
921
|
status: "TS",
|
480
922
|
|
923
|
+
|
924
|
+
|
925
|
+
|
481
926
|
phone_number_id: "TS",
|
482
927
|
|
928
|
+
|
929
|
+
|
930
|
+
|
483
931
|
uri: "TS",
|
484
932
|
|
933
|
+
|
934
|
+
|
485
935
|
)
|
486
936
|
expect(instance.to_s).to eq(instance.to_hash.to_s)
|
487
937
|
end
|
@@ -490,74 +940,173 @@ describe Freeclimb::MessageDeliveryWebhook do
|
|
490
940
|
describe 'test method "to_hash"' do
|
491
941
|
it 'returns the object in the form of hash' do
|
492
942
|
instance = Freeclimb::MessageDeliveryWebhook.new(
|
943
|
+
|
493
944
|
request_type: "TS",
|
494
945
|
|
946
|
+
|
947
|
+
|
948
|
+
|
495
949
|
account_id: "TS",
|
496
950
|
|
951
|
+
|
952
|
+
|
953
|
+
|
497
954
|
from: "TS",
|
498
955
|
|
956
|
+
|
957
|
+
|
958
|
+
|
499
959
|
to: "TS",
|
500
960
|
|
961
|
+
|
962
|
+
|
963
|
+
|
501
964
|
text: "TS",
|
502
965
|
|
966
|
+
|
967
|
+
|
968
|
+
|
503
969
|
direction: "TS",
|
504
970
|
|
971
|
+
|
972
|
+
|
973
|
+
|
505
974
|
application_id: "TS",
|
506
975
|
|
976
|
+
|
977
|
+
|
978
|
+
|
507
979
|
status: "TS",
|
508
980
|
|
981
|
+
|
982
|
+
|
983
|
+
|
509
984
|
phone_number_id: "TS",
|
510
985
|
|
986
|
+
|
987
|
+
|
988
|
+
|
511
989
|
uri: "TS",
|
512
990
|
|
991
|
+
|
992
|
+
|
513
993
|
)
|
514
994
|
expect(instance.to_hash).to be_a_kind_of(Hash)
|
515
995
|
end
|
516
996
|
it 'creates equal hash for two equal objects' do
|
517
|
-
|
997
|
+
|
998
|
+
|
999
|
+
|
1000
|
+
|
1001
|
+
|
1002
|
+
|
1003
|
+
|
1004
|
+
|
1005
|
+
|
1006
|
+
|
518
1007
|
instance_1 = Freeclimb::MessageDeliveryWebhook.new(
|
1008
|
+
|
519
1009
|
request_type: "TS",
|
520
1010
|
|
1011
|
+
|
1012
|
+
|
1013
|
+
|
521
1014
|
account_id: "TS",
|
522
1015
|
|
1016
|
+
|
1017
|
+
|
1018
|
+
|
523
1019
|
from: "TS",
|
524
1020
|
|
1021
|
+
|
1022
|
+
|
1023
|
+
|
525
1024
|
to: "TS",
|
526
1025
|
|
1026
|
+
|
1027
|
+
|
1028
|
+
|
527
1029
|
text: "TS",
|
528
1030
|
|
1031
|
+
|
1032
|
+
|
1033
|
+
|
529
1034
|
direction: "TS",
|
530
1035
|
|
1036
|
+
|
1037
|
+
|
1038
|
+
|
531
1039
|
application_id: "TS",
|
532
1040
|
|
1041
|
+
|
1042
|
+
|
1043
|
+
|
533
1044
|
status: "TS",
|
534
1045
|
|
1046
|
+
|
1047
|
+
|
1048
|
+
|
535
1049
|
phone_number_id: "TS",
|
536
1050
|
|
1051
|
+
|
1052
|
+
|
1053
|
+
|
537
1054
|
uri: "TS",
|
538
1055
|
|
1056
|
+
|
1057
|
+
|
539
1058
|
)
|
540
1059
|
instance_2 = Freeclimb::MessageDeliveryWebhook.new(
|
1060
|
+
|
541
1061
|
request_type: "TS",
|
542
1062
|
|
1063
|
+
|
1064
|
+
|
1065
|
+
|
543
1066
|
account_id: "TS",
|
544
1067
|
|
1068
|
+
|
1069
|
+
|
1070
|
+
|
545
1071
|
from: "TS",
|
546
1072
|
|
1073
|
+
|
1074
|
+
|
1075
|
+
|
547
1076
|
to: "TS",
|
548
1077
|
|
1078
|
+
|
1079
|
+
|
1080
|
+
|
549
1081
|
text: "TS",
|
550
1082
|
|
1083
|
+
|
1084
|
+
|
1085
|
+
|
551
1086
|
direction: "TS",
|
552
1087
|
|
1088
|
+
|
1089
|
+
|
1090
|
+
|
553
1091
|
application_id: "TS",
|
554
1092
|
|
1093
|
+
|
1094
|
+
|
1095
|
+
|
555
1096
|
status: "TS",
|
556
1097
|
|
1098
|
+
|
1099
|
+
|
1100
|
+
|
557
1101
|
phone_number_id: "TS",
|
558
1102
|
|
1103
|
+
|
1104
|
+
|
1105
|
+
|
559
1106
|
uri: "TS",
|
560
1107
|
|
1108
|
+
|
1109
|
+
|
561
1110
|
)
|
562
1111
|
expect(instance_1.to_hash).to eq(instance_2.to_hash)
|
563
1112
|
end
|
@@ -565,33 +1114,43 @@ describe Freeclimb::MessageDeliveryWebhook do
|
|
565
1114
|
|
566
1115
|
describe 'test method "_to_hash"' do
|
567
1116
|
instance = Freeclimb::MessageDeliveryWebhook.new(
|
1117
|
+
|
568
1118
|
request_type: "TS",
|
569
1119
|
|
570
1120
|
|
1121
|
+
|
571
1122
|
account_id: "TS",
|
572
1123
|
|
573
1124
|
|
1125
|
+
|
574
1126
|
from: "TS",
|
575
1127
|
|
576
1128
|
|
1129
|
+
|
577
1130
|
to: "TS",
|
578
1131
|
|
579
1132
|
|
1133
|
+
|
580
1134
|
text: "TS",
|
581
1135
|
|
582
1136
|
|
1137
|
+
|
583
1138
|
direction: "TS",
|
584
1139
|
|
585
1140
|
|
1141
|
+
|
586
1142
|
application_id: "TS",
|
587
1143
|
|
588
1144
|
|
1145
|
+
|
589
1146
|
status: "TS",
|
590
1147
|
|
591
1148
|
|
1149
|
+
|
592
1150
|
phone_number_id: "TS",
|
593
1151
|
|
594
1152
|
|
1153
|
+
|
595
1154
|
uri: "TS",
|
596
1155
|
|
597
1156
|
)
|