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::SMSTollFreeCampaign
|
18
19
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
@@ -28,25 +29,34 @@ describe Freeclimb::SMSTollFreeCampaign do
|
|
28
29
|
|
29
30
|
describe 'test attribute "account_id"' do
|
30
31
|
it 'should work' do
|
32
|
+
|
31
33
|
instance.account_id = "TEST_STRING"
|
32
34
|
expect(instance.account_id).to eq("TEST_STRING")
|
33
35
|
|
36
|
+
|
37
|
+
|
34
38
|
end
|
35
39
|
end
|
36
40
|
|
37
41
|
describe 'test attribute "campaign_id"' do
|
38
42
|
it 'should work' do
|
43
|
+
|
39
44
|
instance.campaign_id = "TEST_STRING"
|
40
45
|
expect(instance.campaign_id).to eq("TEST_STRING")
|
41
46
|
|
47
|
+
|
48
|
+
|
42
49
|
end
|
43
50
|
end
|
44
51
|
|
45
52
|
describe 'test attribute "use_case"' do
|
46
53
|
it 'should work' do
|
54
|
+
|
47
55
|
instance.use_case = "TEST_STRING"
|
48
56
|
expect(instance.use_case).to eq("TEST_STRING")
|
49
57
|
|
58
|
+
|
59
|
+
|
50
60
|
end
|
51
61
|
end
|
52
62
|
|
@@ -75,17 +85,23 @@ describe Freeclimb::SMSTollFreeCampaign do
|
|
75
85
|
end
|
76
86
|
describe 'test attribute "date_created"' do
|
77
87
|
it 'should work' do
|
88
|
+
|
78
89
|
instance.date_created = "TEST_STRING"
|
79
90
|
expect(instance.date_created).to eq("TEST_STRING")
|
80
91
|
|
92
|
+
|
93
|
+
|
81
94
|
end
|
82
95
|
end
|
83
96
|
|
84
97
|
describe 'test attribute "date_updated"' do
|
85
98
|
it 'should work' do
|
99
|
+
|
86
100
|
instance.date_updated = "TEST_STRING"
|
87
101
|
expect(instance.date_updated).to eq("TEST_STRING")
|
88
102
|
|
103
|
+
|
104
|
+
|
89
105
|
end
|
90
106
|
end
|
91
107
|
|
@@ -96,66 +112,125 @@ describe Freeclimb::SMSTollFreeCampaign do
|
|
96
112
|
instance.revision = 1
|
97
113
|
expect(instance.revision).to eq(1)
|
98
114
|
|
115
|
+
|
116
|
+
|
99
117
|
end
|
100
118
|
end
|
101
119
|
|
102
120
|
describe 'test method "initialize"' do
|
103
121
|
it 'properly initializes with values' do
|
104
122
|
expect { instance = Freeclimb::SMSTollFreeCampaign.new(
|
123
|
+
|
105
124
|
account_id: "TS",
|
106
125
|
|
126
|
+
|
127
|
+
|
128
|
+
|
107
129
|
campaign_id: "TS",
|
108
130
|
|
131
|
+
|
132
|
+
|
133
|
+
|
109
134
|
use_case: "TS",
|
110
135
|
|
111
136
|
|
137
|
+
|
138
|
+
|
112
139
|
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
113
140
|
|
141
|
+
|
142
|
+
|
143
|
+
|
114
144
|
date_created: "TS",
|
115
145
|
|
146
|
+
|
147
|
+
|
148
|
+
|
116
149
|
date_updated: "TS",
|
117
150
|
|
151
|
+
|
152
|
+
|
118
153
|
revision: 1,
|
119
154
|
|
155
|
+
|
156
|
+
|
120
157
|
)}.not_to raise_error()
|
121
158
|
end
|
122
159
|
it 'fails to initialize with input argument that is not a hash in Freeclimb::SMSTollFreeCampaign' do
|
123
160
|
expect { instance = Freeclimb::SMSTollFreeCampaign.new(
|
161
|
+
|
124
162
|
account_id: "TS",
|
125
163
|
|
164
|
+
|
165
|
+
|
166
|
+
|
126
167
|
campaign_id: "TS",
|
127
168
|
|
169
|
+
|
170
|
+
|
171
|
+
|
128
172
|
use_case: "TS",
|
129
173
|
|
130
174
|
|
175
|
+
|
176
|
+
|
131
177
|
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
132
178
|
|
179
|
+
|
180
|
+
|
181
|
+
|
133
182
|
date_created: "TS",
|
134
183
|
|
184
|
+
|
185
|
+
|
186
|
+
|
135
187
|
date_updated: "TS",
|
136
188
|
|
189
|
+
|
190
|
+
|
137
191
|
revision: 1,
|
138
192
|
|
193
|
+
|
194
|
+
|
139
195
|
invalid_attribute: true
|
140
196
|
)}.to raise_error(ArgumentError)
|
141
197
|
end
|
142
198
|
it 'fails to initialize with invalid attribute' do
|
143
199
|
expect { instance = Freeclimb::SMSTollFreeCampaign.new(
|
200
|
+
|
144
201
|
account_id: "TS",
|
145
202
|
|
203
|
+
|
204
|
+
|
205
|
+
|
146
206
|
campaign_id: "TS",
|
147
207
|
|
208
|
+
|
209
|
+
|
210
|
+
|
148
211
|
use_case: "TS",
|
149
212
|
|
150
213
|
|
214
|
+
|
215
|
+
|
151
216
|
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
152
217
|
|
218
|
+
|
219
|
+
|
220
|
+
|
153
221
|
date_created: "TS",
|
154
222
|
|
223
|
+
|
224
|
+
|
225
|
+
|
155
226
|
date_updated: "TS",
|
156
227
|
|
228
|
+
|
229
|
+
|
157
230
|
revision: 1,
|
158
231
|
|
232
|
+
|
233
|
+
|
159
234
|
invalid_attribute: true
|
160
235
|
)}.to raise_error(ArgumentError)
|
161
236
|
end
|
@@ -164,21 +239,40 @@ describe Freeclimb::SMSTollFreeCampaign do
|
|
164
239
|
describe 'test method "valid"' do
|
165
240
|
it 'checks if properties are valid' do
|
166
241
|
instance = Freeclimb::SMSTollFreeCampaign.new(
|
242
|
+
|
167
243
|
account_id: "TS",
|
168
244
|
|
245
|
+
|
246
|
+
|
247
|
+
|
169
248
|
campaign_id: "TS",
|
170
249
|
|
250
|
+
|
251
|
+
|
252
|
+
|
171
253
|
use_case: "TS",
|
172
254
|
|
173
255
|
|
256
|
+
|
257
|
+
|
174
258
|
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
175
259
|
|
260
|
+
|
261
|
+
|
262
|
+
|
176
263
|
date_created: "TS",
|
177
264
|
|
265
|
+
|
266
|
+
|
267
|
+
|
178
268
|
date_updated: "TS",
|
179
269
|
|
270
|
+
|
271
|
+
|
180
272
|
revision: 1,
|
181
273
|
|
274
|
+
|
275
|
+
|
182
276
|
)
|
183
277
|
expect(instance.valid?).to eq(true)
|
184
278
|
end
|
@@ -195,38 +289,82 @@ describe Freeclimb::SMSTollFreeCampaign do
|
|
195
289
|
|
196
290
|
describe 'test method "eql?"' do
|
197
291
|
it 'checks if objects are equal' do
|
198
|
-
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
|
298
|
+
|
199
299
|
instance_1 = Freeclimb::SMSTollFreeCampaign.new(
|
300
|
+
|
200
301
|
account_id: "TS",
|
201
302
|
|
303
|
+
|
304
|
+
|
305
|
+
|
202
306
|
campaign_id: "TS",
|
203
307
|
|
308
|
+
|
309
|
+
|
310
|
+
|
204
311
|
use_case: "TS",
|
205
312
|
|
206
313
|
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
|
207
318
|
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
208
319
|
|
320
|
+
|
209
321
|
date_created: "TS",
|
210
322
|
|
323
|
+
|
324
|
+
|
325
|
+
|
211
326
|
date_updated: "TS",
|
212
327
|
|
328
|
+
|
329
|
+
|
213
330
|
revision: 1,
|
214
331
|
|
332
|
+
|
333
|
+
|
215
334
|
)
|
216
335
|
instance_2 = Freeclimb::SMSTollFreeCampaign.new(
|
336
|
+
|
217
337
|
account_id: "TS",
|
218
338
|
|
339
|
+
|
340
|
+
|
341
|
+
|
219
342
|
campaign_id: "TS",
|
220
343
|
|
344
|
+
|
345
|
+
|
346
|
+
|
221
347
|
use_case: "TS",
|
222
348
|
|
223
349
|
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
|
224
354
|
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
225
355
|
|
356
|
+
|
226
357
|
date_created: "TS",
|
227
358
|
|
359
|
+
|
360
|
+
|
361
|
+
|
228
362
|
date_updated: "TS",
|
229
363
|
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
|
230
368
|
revision: 1,
|
231
369
|
|
232
370
|
)
|
@@ -235,38 +373,76 @@ describe Freeclimb::SMSTollFreeCampaign do
|
|
235
373
|
|
236
374
|
it 'checks if objects are not equal' do
|
237
375
|
instance_1 = Freeclimb::SMSTollFreeCampaign.new(
|
376
|
+
|
238
377
|
account_id: "TS",
|
239
378
|
|
379
|
+
|
380
|
+
|
381
|
+
|
240
382
|
campaign_id: "TS",
|
241
383
|
|
384
|
+
|
385
|
+
|
386
|
+
|
242
387
|
use_case: "TS",
|
243
388
|
|
244
389
|
|
390
|
+
|
391
|
+
|
392
|
+
|
393
|
+
|
245
394
|
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
246
395
|
|
396
|
+
|
247
397
|
date_created: "TS",
|
248
398
|
|
399
|
+
|
400
|
+
|
401
|
+
|
249
402
|
date_updated: "TS",
|
250
403
|
|
404
|
+
|
405
|
+
|
251
406
|
revision: 2,
|
252
407
|
|
408
|
+
|
409
|
+
|
253
410
|
)
|
254
411
|
instance_2 = Freeclimb::SMSTollFreeCampaign.new(
|
412
|
+
|
255
413
|
account_id: "ST",
|
256
414
|
|
415
|
+
|
416
|
+
|
417
|
+
|
257
418
|
campaign_id: "ST",
|
258
419
|
|
420
|
+
|
421
|
+
|
422
|
+
|
259
423
|
use_case: "ST",
|
260
424
|
|
261
425
|
|
426
|
+
|
427
|
+
|
428
|
+
|
429
|
+
|
262
430
|
registration_status: nil,
|
263
431
|
|
432
|
+
|
264
433
|
date_created: "ST",
|
265
434
|
|
435
|
+
|
436
|
+
|
437
|
+
|
266
438
|
date_updated: "ST",
|
267
439
|
|
440
|
+
|
441
|
+
|
268
442
|
revision: 1,
|
269
443
|
|
444
|
+
|
445
|
+
|
270
446
|
)
|
271
447
|
expect(instance_1.eql?(instance_2)).to eq(false)
|
272
448
|
end
|
@@ -275,21 +451,40 @@ describe Freeclimb::SMSTollFreeCampaign do
|
|
275
451
|
describe 'test method "hash"' do
|
276
452
|
it 'calculates hash code' do
|
277
453
|
instance = Freeclimb::SMSTollFreeCampaign.new(
|
454
|
+
|
278
455
|
account_id: "TS",
|
279
456
|
|
457
|
+
|
458
|
+
|
459
|
+
|
280
460
|
campaign_id: "TS",
|
281
461
|
|
462
|
+
|
463
|
+
|
464
|
+
|
282
465
|
use_case: "TS",
|
283
466
|
|
284
467
|
|
468
|
+
|
469
|
+
|
285
470
|
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
286
471
|
|
472
|
+
|
473
|
+
|
474
|
+
|
287
475
|
date_created: "TS",
|
288
476
|
|
477
|
+
|
478
|
+
|
479
|
+
|
289
480
|
date_updated: "TS",
|
290
481
|
|
482
|
+
|
483
|
+
|
291
484
|
revision: 1,
|
292
485
|
|
486
|
+
|
487
|
+
|
293
488
|
)
|
294
489
|
expect(instance.hash).to be_a_kind_of(Integer)
|
295
490
|
end
|
@@ -298,38 +493,76 @@ describe Freeclimb::SMSTollFreeCampaign do
|
|
298
493
|
describe 'test method "build_from_hash"' do
|
299
494
|
it 'builds equivalent model from hash code' do
|
300
495
|
instance_1 = Freeclimb::SMSTollFreeCampaign.new(
|
496
|
+
|
301
497
|
account_id: "TS",
|
302
498
|
|
499
|
+
|
500
|
+
|
501
|
+
|
303
502
|
campaign_id: "TS",
|
304
503
|
|
504
|
+
|
505
|
+
|
506
|
+
|
305
507
|
use_case: "TS",
|
306
508
|
|
307
509
|
|
510
|
+
|
511
|
+
|
308
512
|
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
309
513
|
|
514
|
+
|
515
|
+
|
516
|
+
|
310
517
|
date_created: "TS",
|
311
518
|
|
519
|
+
|
520
|
+
|
521
|
+
|
312
522
|
date_updated: "TS",
|
313
523
|
|
524
|
+
|
525
|
+
|
314
526
|
revision: 1,
|
315
527
|
|
528
|
+
|
529
|
+
|
316
530
|
)
|
317
531
|
instance_2 = Freeclimb::SMSTollFreeCampaign.new(
|
532
|
+
|
318
533
|
account_id: "TS",
|
319
534
|
|
535
|
+
|
536
|
+
|
537
|
+
|
320
538
|
campaign_id: "TS",
|
321
539
|
|
540
|
+
|
541
|
+
|
542
|
+
|
322
543
|
use_case: "TS",
|
323
544
|
|
324
545
|
|
546
|
+
|
547
|
+
|
325
548
|
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
326
549
|
|
550
|
+
|
551
|
+
|
552
|
+
|
327
553
|
date_created: "TS",
|
328
554
|
|
555
|
+
|
556
|
+
|
557
|
+
|
329
558
|
date_updated: "TS",
|
330
559
|
|
560
|
+
|
561
|
+
|
331
562
|
revision: 1,
|
332
563
|
|
564
|
+
|
565
|
+
|
333
566
|
)
|
334
567
|
|
335
568
|
expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
|
@@ -338,60 +571,112 @@ describe Freeclimb::SMSTollFreeCampaign do
|
|
338
571
|
|
339
572
|
describe 'test method "_deserialize"' do
|
340
573
|
instance = Freeclimb::SMSTollFreeCampaign.new(
|
574
|
+
|
341
575
|
account_id: "TS",
|
342
576
|
|
577
|
+
|
578
|
+
|
579
|
+
|
343
580
|
campaign_id: "TS",
|
344
581
|
|
582
|
+
|
583
|
+
|
584
|
+
|
345
585
|
use_case: "TS",
|
346
586
|
|
347
587
|
|
588
|
+
|
589
|
+
|
348
590
|
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
349
591
|
|
592
|
+
|
593
|
+
|
594
|
+
|
350
595
|
date_created: "TS",
|
351
596
|
|
597
|
+
|
598
|
+
|
599
|
+
|
352
600
|
date_updated: "TS",
|
353
601
|
|
602
|
+
|
603
|
+
|
354
604
|
revision: 1,
|
355
605
|
|
606
|
+
|
607
|
+
|
356
608
|
)
|
357
609
|
it 'deserializes the data of account_id' do
|
358
610
|
expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String)
|
359
611
|
end
|
612
|
+
|
613
|
+
|
360
614
|
it 'deserializes the data of campaign_id' do
|
361
615
|
expect(instance._deserialize("String", instance.campaign_id)).to be_a_kind_of(String)
|
362
616
|
end
|
617
|
+
|
618
|
+
|
363
619
|
it 'deserializes the data of use_case' do
|
364
620
|
expect(instance._deserialize("String", instance.use_case)).to be_a_kind_of(String)
|
365
621
|
end
|
622
|
+
|
623
|
+
|
624
|
+
|
625
|
+
|
366
626
|
it 'deserializes the data of date_created' do
|
367
627
|
expect(instance._deserialize("String", instance.date_created)).to be_a_kind_of(String)
|
368
628
|
end
|
629
|
+
|
630
|
+
|
369
631
|
it 'deserializes the data of date_updated' do
|
370
632
|
expect(instance._deserialize("String", instance.date_updated)).to be_a_kind_of(String)
|
371
633
|
end
|
634
|
+
|
635
|
+
|
372
636
|
it 'deserializes the data of revision' do
|
373
637
|
expect(instance._deserialize("Integer", instance.revision)).to be_a_kind_of(Integer)
|
374
638
|
end
|
639
|
+
|
640
|
+
|
375
641
|
end
|
376
642
|
|
377
643
|
describe 'test method "to_s"' do
|
378
644
|
it 'returns the string representation of the object' do
|
379
645
|
instance = Freeclimb::SMSTollFreeCampaign.new(
|
646
|
+
|
380
647
|
account_id: "TS",
|
381
648
|
|
649
|
+
|
650
|
+
|
651
|
+
|
382
652
|
campaign_id: "TS",
|
383
653
|
|
654
|
+
|
655
|
+
|
656
|
+
|
384
657
|
use_case: "TS",
|
385
658
|
|
386
659
|
|
660
|
+
|
661
|
+
|
387
662
|
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
388
663
|
|
664
|
+
|
665
|
+
|
666
|
+
|
389
667
|
date_created: "TS",
|
390
668
|
|
669
|
+
|
670
|
+
|
671
|
+
|
391
672
|
date_updated: "TS",
|
392
673
|
|
674
|
+
|
675
|
+
|
393
676
|
revision: 1,
|
394
677
|
|
678
|
+
|
679
|
+
|
395
680
|
)
|
396
681
|
expect(instance.to_s).to eq(instance.to_hash.to_s)
|
397
682
|
end
|
@@ -400,59 +685,122 @@ describe Freeclimb::SMSTollFreeCampaign do
|
|
400
685
|
describe 'test method "to_hash"' do
|
401
686
|
it 'returns the object in the form of hash' do
|
402
687
|
instance = Freeclimb::SMSTollFreeCampaign.new(
|
688
|
+
|
403
689
|
account_id: "TS",
|
404
690
|
|
691
|
+
|
692
|
+
|
693
|
+
|
405
694
|
campaign_id: "TS",
|
406
695
|
|
696
|
+
|
697
|
+
|
698
|
+
|
407
699
|
use_case: "TS",
|
408
700
|
|
409
701
|
|
702
|
+
|
703
|
+
|
410
704
|
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
411
705
|
|
706
|
+
|
707
|
+
|
708
|
+
|
412
709
|
date_created: "TS",
|
413
710
|
|
711
|
+
|
712
|
+
|
713
|
+
|
414
714
|
date_updated: "TS",
|
415
715
|
|
716
|
+
|
717
|
+
|
416
718
|
revision: 1,
|
417
719
|
|
720
|
+
|
721
|
+
|
418
722
|
)
|
419
723
|
expect(instance.to_hash).to be_a_kind_of(Hash)
|
420
724
|
end
|
421
725
|
it 'creates equal hash for two equal objects' do
|
422
|
-
|
726
|
+
|
727
|
+
|
728
|
+
|
729
|
+
|
730
|
+
|
731
|
+
|
732
|
+
|
423
733
|
instance_1 = Freeclimb::SMSTollFreeCampaign.new(
|
734
|
+
|
424
735
|
account_id: "TS",
|
425
736
|
|
737
|
+
|
738
|
+
|
739
|
+
|
426
740
|
campaign_id: "TS",
|
427
741
|
|
742
|
+
|
743
|
+
|
744
|
+
|
428
745
|
use_case: "TS",
|
429
746
|
|
430
747
|
|
748
|
+
|
749
|
+
|
431
750
|
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
432
751
|
|
752
|
+
|
753
|
+
|
754
|
+
|
433
755
|
date_created: "TS",
|
434
756
|
|
757
|
+
|
758
|
+
|
759
|
+
|
435
760
|
date_updated: "TS",
|
436
761
|
|
762
|
+
|
763
|
+
|
437
764
|
revision: 1,
|
438
765
|
|
766
|
+
|
767
|
+
|
439
768
|
)
|
440
769
|
instance_2 = Freeclimb::SMSTollFreeCampaign.new(
|
770
|
+
|
441
771
|
account_id: "TS",
|
442
772
|
|
773
|
+
|
774
|
+
|
775
|
+
|
443
776
|
campaign_id: "TS",
|
444
777
|
|
778
|
+
|
779
|
+
|
780
|
+
|
445
781
|
use_case: "TS",
|
446
782
|
|
447
783
|
|
784
|
+
|
785
|
+
|
448
786
|
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
449
787
|
|
788
|
+
|
789
|
+
|
790
|
+
|
450
791
|
date_created: "TS",
|
451
792
|
|
793
|
+
|
794
|
+
|
795
|
+
|
452
796
|
date_updated: "TS",
|
453
797
|
|
798
|
+
|
799
|
+
|
454
800
|
revision: 1,
|
455
801
|
|
802
|
+
|
803
|
+
|
456
804
|
)
|
457
805
|
expect(instance_1.to_hash).to eq(instance_2.to_hash)
|
458
806
|
end
|
@@ -460,12 +808,15 @@ describe Freeclimb::SMSTollFreeCampaign do
|
|
460
808
|
|
461
809
|
describe 'test method "_to_hash"' do
|
462
810
|
instance = Freeclimb::SMSTollFreeCampaign.new(
|
811
|
+
|
463
812
|
account_id: "TS",
|
464
813
|
|
465
814
|
|
815
|
+
|
466
816
|
campaign_id: "TS",
|
467
817
|
|
468
818
|
|
819
|
+
|
469
820
|
use_case: "TS",
|
470
821
|
|
471
822
|
|
@@ -473,9 +824,11 @@ describe Freeclimb::SMSTollFreeCampaign do
|
|
473
824
|
registration_status: Freeclimb::SMSTollFreeCampaignRegistrationStatus::UNREGISTERED,
|
474
825
|
|
475
826
|
|
827
|
+
|
476
828
|
date_created: "TS",
|
477
829
|
|
478
830
|
|
831
|
+
|
479
832
|
date_updated: "TS",
|
480
833
|
|
481
834
|
|