freeclimb 4.5.2 → 4.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/Gemfile.lock +1 -1
- data/README.md +15 -7
- data/docs/AddToConference.md +0 -2
- data/docs/AddToConferenceAllOf.md +0 -2
- data/docs/CreateWebRTCToken.md +22 -0
- data/docs/DefaultApi.md +303 -7
- data/docs/GetDigits.md +1 -1
- data/docs/GetDigitsAllOf.md +1 -1
- data/docs/IncomingNumberResult.md +3 -1
- data/docs/IncomingNumberResultAllOf.md +3 -1
- data/docs/MessageRequest.md +2 -2
- data/docs/MessageRequestAllOf.md +2 -2
- data/docs/MessageResult.md +3 -1
- data/docs/MessageResultAllOf.md +3 -1
- data/docs/Play.md +0 -2
- data/docs/PlayAllOf.md +0 -2
- data/docs/RemoveFromConference.md +1 -4
- data/docs/SMSTenDLCCampaign.md +10 -0
- data/docs/SMSTollFreeCampaign.md +30 -0
- data/docs/SMSTollFreeCampaignsListResult.md +32 -0
- data/docs/SMSTollFreeCampaignsListResultAllOf.md +18 -0
- data/docs/Say.md +0 -2
- data/docs/SayAllOf.md +0 -2
- data/docs/SetListen.md +0 -2
- data/docs/SetListenAllOf.md +0 -2
- data/docs/SetTalk.md +0 -2
- data/docs/SetTalkAllOf.md +0 -2
- data/docs/TFN.md +18 -0
- data/docs/TerminateConference.md +1 -4
- data/docs/TranscribeUtterance.md +1 -1
- data/docs/TranscribeUtteranceAllOf.md +28 -0
- data/docs/TranscribeUtteranceAllOfRecord.md +22 -0
- data/lib/freeclimb/api/default_api.rb +262 -7
- data/lib/freeclimb/models/account_request.rb +0 -2
- data/lib/freeclimb/models/account_result.rb +0 -6
- data/lib/freeclimb/models/add_to_conference.rb +1 -29
- data/lib/freeclimb/models/add_to_conference_all_of.rb +1 -29
- data/lib/freeclimb/models/application_result.rb +0 -6
- data/lib/freeclimb/models/buy_incoming_number_request.rb +0 -4
- data/lib/freeclimb/models/call_result.rb +0 -6
- data/lib/freeclimb/models/conference_participant_result.rb +0 -6
- data/lib/freeclimb/models/conference_result.rb +0 -6
- data/lib/freeclimb/models/create_conference.rb +0 -8
- data/lib/freeclimb/models/create_conference_all_of.rb +0 -8
- data/lib/freeclimb/models/create_conference_request.rb +0 -6
- data/lib/freeclimb/models/create_web_rtc_token.rb +274 -0
- data/lib/freeclimb/models/dequeue.rb +1 -0
- data/lib/freeclimb/models/enqueue.rb +0 -6
- data/lib/freeclimb/models/enqueue_all_of.rb +0 -6
- data/lib/freeclimb/models/get_digits.rb +1 -17
- data/lib/freeclimb/models/get_digits_all_of.rb +1 -17
- data/lib/freeclimb/models/get_speech.rb +0 -22
- data/lib/freeclimb/models/get_speech_all_of.rb +0 -22
- data/lib/freeclimb/models/incoming_number_request.rb +0 -2
- data/lib/freeclimb/models/incoming_number_result.rb +14 -13
- data/lib/freeclimb/models/incoming_number_result_all_of.rb +14 -5
- data/lib/freeclimb/models/make_call_request.rb +0 -18
- data/lib/freeclimb/models/message_request.rb +10 -24
- data/lib/freeclimb/models/message_request_all_of.rb +10 -16
- data/lib/freeclimb/models/message_result.rb +17 -11
- data/lib/freeclimb/models/message_result_all_of.rb +17 -5
- data/lib/freeclimb/models/mutable_resource_model.rb +0 -6
- data/lib/freeclimb/models/out_dial.rb +0 -18
- data/lib/freeclimb/models/out_dial_all_of.rb +0 -18
- data/lib/freeclimb/models/park.rb +0 -4
- data/lib/freeclimb/models/park_all_of.rb +0 -4
- data/lib/freeclimb/models/play.rb +1 -17
- data/lib/freeclimb/models/play_all_of.rb +1 -17
- data/lib/freeclimb/models/queue_request.rb +0 -2
- data/lib/freeclimb/models/queue_result.rb +0 -6
- data/lib/freeclimb/models/record_utterance.rb +0 -12
- data/lib/freeclimb/models/record_utterance_all_of.rb +0 -12
- data/lib/freeclimb/models/recording_result.rb +0 -6
- data/lib/freeclimb/models/remove_from_conference.rb +4 -23
- data/lib/freeclimb/models/say.rb +1 -19
- data/lib/freeclimb/models/say_all_of.rb +1 -19
- data/lib/freeclimb/models/send_digits.rb +0 -4
- data/lib/freeclimb/models/send_digits_all_of.rb +0 -4
- data/lib/freeclimb/models/set_listen.rb +2 -18
- data/lib/freeclimb/models/set_listen_all_of.rb +2 -18
- data/lib/freeclimb/models/set_talk.rb +2 -18
- data/lib/freeclimb/models/set_talk_all_of.rb +2 -18
- data/lib/freeclimb/models/sms.rb +0 -6
- data/lib/freeclimb/models/sms_all_of.rb +0 -6
- data/lib/freeclimb/models/sms_ten_dlc_brand.rb +0 -60
- data/lib/freeclimb/models/sms_ten_dlc_campaign.rb +121 -41
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb +0 -44
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_brand.rb +0 -20
- data/lib/freeclimb/models/sms_toll_free_campaign.rb +337 -0
- data/lib/freeclimb/models/sms_toll_free_campaigns_list_result.rb +311 -0
- data/lib/freeclimb/models/{remove_from_conference_all_of.rb → sms_toll_free_campaigns_list_result_all_of.rb} +14 -16
- data/lib/freeclimb/models/start_record_call.rb +1 -0
- data/lib/freeclimb/models/terminate_conference.rb +4 -23
- data/lib/freeclimb/models/{terminate_conference_all_of.rb → tfn.rb} +15 -14
- data/lib/freeclimb/models/transcribe_utterance.rb +11 -16
- data/lib/freeclimb/models/transcribe_utterance_all_of.rb +281 -0
- data/lib/freeclimb/models/{transcribe_utterance_record.rb → transcribe_utterance_all_of_record.rb} +3 -7
- data/lib/freeclimb/models/unpark.rb +1 -0
- data/lib/freeclimb/models/update_conference_participant_request.rb +0 -2
- data/lib/freeclimb/models/update_conference_request.rb +0 -2
- data/lib/freeclimb/version.rb +1 -1
- data/lib/freeclimb.rb +8 -4
- data/openapi.json +407 -88
- data/package.json +8 -0
- data/spec/api/default_api_spec.rb +215 -55
- data/spec/models/account_request_spec.rb +8 -6
- data/spec/models/account_result_spec.rb +28 -9
- data/spec/models/add_to_conference_spec.rb +21 -37
- data/spec/models/application_list_spec.rb +46 -22
- data/spec/models/application_request_spec.rb +13 -6
- data/spec/models/application_result_spec.rb +24 -9
- data/spec/models/available_number_list_spec.rb +46 -22
- data/spec/models/available_number_spec.rb +23 -10
- data/spec/models/buy_incoming_number_request_spec.rb +11 -7
- data/spec/models/call_list_spec.rb +46 -22
- data/spec/models/call_result_spec.rb +49 -15
- data/spec/models/capabilities_spec.rb +26 -11
- data/spec/models/conference_list_spec.rb +46 -22
- data/spec/models/conference_participant_list_spec.rb +46 -22
- data/spec/models/conference_participant_result_spec.rb +24 -9
- data/spec/models/conference_result_spec.rb +32 -9
- data/spec/models/create_conference_request_spec.rb +15 -6
- data/spec/models/create_conference_spec.rb +19 -7
- data/spec/models/create_web_rtc_token_spec.rb +231 -0
- data/spec/models/enqueue_spec.rb +16 -9
- data/spec/models/filter_logs_request_spec.rb +9 -7
- data/spec/models/get_digits_spec.rb +59 -35
- data/spec/models/get_speech_spec.rb +60 -24
- data/spec/models/hangup_spec.rb +7 -6
- data/spec/models/incoming_number_list_spec.rb +46 -22
- data/spec/models/incoming_number_request_spec.rb +9 -6
- data/spec/models/incoming_number_result_spec.rb +68 -13
- data/spec/models/log_list_spec.rb +46 -22
- data/spec/models/log_result_spec.rb +21 -9
- data/spec/models/make_call_request_spec.rb +26 -11
- data/spec/models/message_request_spec.rb +49 -35
- data/spec/models/message_result_spec.rb +64 -11
- data/spec/models/messages_list_spec.rb +46 -22
- data/spec/models/mutable_resource_model_spec.rb +15 -9
- data/spec/models/out_dial_spec.rb +33 -13
- data/spec/models/pagination_model_spec.rb +40 -21
- data/spec/models/park_spec.rb +13 -8
- data/spec/models/pause_spec.rb +14 -10
- data/spec/models/percl_command_spec.rb +6 -6
- data/spec/models/percl_script_spec.rb +11 -6
- data/spec/models/play_early_media_spec.rb +9 -7
- data/spec/models/play_spec.rb +17 -40
- data/spec/models/queue_list_spec.rb +46 -22
- data/spec/models/queue_member_list_spec.rb +46 -22
- data/spec/models/queue_member_spec.rb +21 -12
- data/spec/models/queue_request_spec.rb +13 -9
- data/spec/models/queue_result_spec.rb +37 -18
- data/spec/models/record_utterance_spec.rb +28 -13
- data/spec/models/recording_list_spec.rb +46 -22
- data/spec/models/recording_result_spec.rb +25 -12
- data/spec/models/redirect_spec.rb +9 -7
- data/spec/models/reject_spec.rb +7 -6
- data/spec/models/remove_from_conference_spec.rb +0 -133
- data/spec/models/say_spec.rb +18 -40
- data/spec/models/send_digits_spec.rb +17 -10
- data/spec/models/set_listen_spec.rb +8 -37
- data/spec/models/set_talk_spec.rb +8 -37
- data/spec/models/sms_spec.rb +16 -9
- data/spec/models/sms_ten_dlc_brand_spec.rb +38 -4
- data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +46 -22
- data/spec/models/sms_ten_dlc_campaign_spec.rb +228 -4
- data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +46 -22
- data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +25 -7
- data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +56 -8
- data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +46 -22
- data/spec/models/sms_toll_free_campaign_spec.rb +382 -0
- data/spec/models/sms_toll_free_campaigns_list_result_spec.rb +395 -0
- data/spec/models/terminate_conference_spec.rb +0 -133
- data/spec/models/tfn_spec.rb +164 -0
- data/spec/models/{transcribe_utterance_record_spec.rb → transcribe_utterance_all_of_record_spec.rb} +78 -67
- data/spec/models/transcribe_utterance_spec.rb +37 -96
- data/spec/models/update_call_request_spec.rb +12 -7
- data/spec/models/update_conference_participant_request_spec.rb +10 -6
- data/spec/models/update_conference_request_spec.rb +15 -6
- data/yarn.lock +1292 -0
- metadata +105 -84
@@ -30,6 +30,7 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
30
30
|
it 'should work' do
|
31
31
|
instance.account_id = "TEST_STRING"
|
32
32
|
expect(instance.account_id).to eq("TEST_STRING")
|
33
|
+
|
33
34
|
end
|
34
35
|
end
|
35
36
|
|
@@ -37,6 +38,7 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
37
38
|
it 'should work' do
|
38
39
|
instance.campaign_id = "TEST_STRING"
|
39
40
|
expect(instance.campaign_id).to eq("TEST_STRING")
|
41
|
+
|
40
42
|
end
|
41
43
|
end
|
42
44
|
|
@@ -44,6 +46,7 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
44
46
|
it 'should work' do
|
45
47
|
instance.csp_id = "TEST_STRING"
|
46
48
|
expect(instance.csp_id).to eq("TEST_STRING")
|
49
|
+
|
47
50
|
end
|
48
51
|
end
|
49
52
|
|
@@ -77,6 +80,7 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
77
80
|
it 'should work' do
|
78
81
|
instance.create_date = "2022-07-05T15:17:05Z"
|
79
82
|
expect(instance.create_date).to eq("2022-07-05T15:17:05Z")
|
83
|
+
|
80
84
|
end
|
81
85
|
end
|
82
86
|
|
@@ -84,6 +88,7 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
84
88
|
it 'should work' do
|
85
89
|
instance.auto_renewal = false
|
86
90
|
expect(instance.auto_renewal).to eq(false)
|
91
|
+
|
87
92
|
end
|
88
93
|
end
|
89
94
|
|
@@ -91,6 +96,7 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
91
96
|
it 'should work' do
|
92
97
|
instance.billed_date = "2022-07-05T15:17:05Z"
|
93
98
|
expect(instance.billed_date).to eq("2022-07-05T15:17:05Z")
|
99
|
+
|
94
100
|
end
|
95
101
|
end
|
96
102
|
|
@@ -116,6 +122,7 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
116
122
|
|
117
123
|
describe 'test attribute "sub_usecases"' do
|
118
124
|
it 'should work' do
|
125
|
+
|
119
126
|
instance.sub_usecases = ["ELEMENT_1", "ELEMENT_2"]
|
120
127
|
expect(instance.sub_usecases).to eq(["ELEMENT_1", "ELEMENT_2"])
|
121
128
|
end
|
@@ -135,6 +142,7 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
135
142
|
it 'should work' do
|
136
143
|
instance.embedded_link = false
|
137
144
|
expect(instance.embedded_link).to eq(false)
|
145
|
+
|
138
146
|
end
|
139
147
|
end
|
140
148
|
|
@@ -142,6 +150,7 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
142
150
|
it 'should work' do
|
143
151
|
instance.embedded_phone = false
|
144
152
|
expect(instance.embedded_phone).to eq(false)
|
153
|
+
|
145
154
|
end
|
146
155
|
end
|
147
156
|
|
@@ -149,6 +158,7 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
149
158
|
it 'should work' do
|
150
159
|
instance.affiliate_marketing = false
|
151
160
|
expect(instance.affiliate_marketing).to eq(false)
|
161
|
+
|
152
162
|
end
|
153
163
|
end
|
154
164
|
|
@@ -156,6 +166,7 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
156
166
|
it 'should work' do
|
157
167
|
instance.number_pool = false
|
158
168
|
expect(instance.number_pool).to eq(false)
|
169
|
+
|
159
170
|
end
|
160
171
|
end
|
161
172
|
|
@@ -163,6 +174,7 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
163
174
|
it 'should work' do
|
164
175
|
instance.age_gated = false
|
165
176
|
expect(instance.age_gated).to eq(false)
|
177
|
+
|
166
178
|
end
|
167
179
|
end
|
168
180
|
|
@@ -170,6 +182,7 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
170
182
|
it 'should work' do
|
171
183
|
instance.direct_lending = false
|
172
184
|
expect(instance.direct_lending).to eq(false)
|
185
|
+
|
173
186
|
end
|
174
187
|
end
|
175
188
|
|
@@ -177,6 +190,7 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
177
190
|
it 'should work' do
|
178
191
|
instance.subscriber_optin = false
|
179
192
|
expect(instance.subscriber_optin).to eq(false)
|
193
|
+
|
180
194
|
end
|
181
195
|
end
|
182
196
|
|
@@ -184,6 +198,7 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
184
198
|
it 'should work' do
|
185
199
|
instance.subscriber_optout = false
|
186
200
|
expect(instance.subscriber_optout).to eq(false)
|
201
|
+
|
187
202
|
end
|
188
203
|
end
|
189
204
|
|
@@ -191,6 +206,7 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
191
206
|
it 'should work' do
|
192
207
|
instance.subscriber_help = false
|
193
208
|
expect(instance.subscriber_help).to eq(false)
|
209
|
+
|
194
210
|
end
|
195
211
|
end
|
196
212
|
|
@@ -264,6 +280,56 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
264
280
|
end
|
265
281
|
end
|
266
282
|
|
283
|
+
describe 'test attribute "optin_keywords"' do
|
284
|
+
it 'should assign a value of maxLength' do
|
285
|
+
instance.optin_keywords = "T" * 255
|
286
|
+
expect(instance.optin_keywords).to eq("T" * 255)
|
287
|
+
end
|
288
|
+
it 'should not assign a value over maxLength' do
|
289
|
+
expect{instance.optin_keywords = "T" * (255 + 1)}.to raise_error(ArgumentError)
|
290
|
+
end
|
291
|
+
end
|
292
|
+
|
293
|
+
describe 'test attribute "optout_keywords"' do
|
294
|
+
it 'should assign a value of maxLength' do
|
295
|
+
instance.optout_keywords = "T" * 255
|
296
|
+
expect(instance.optout_keywords).to eq("T" * 255)
|
297
|
+
end
|
298
|
+
it 'should not assign a value over maxLength' do
|
299
|
+
expect{instance.optout_keywords = "T" * (255 + 1)}.to raise_error(ArgumentError)
|
300
|
+
end
|
301
|
+
end
|
302
|
+
|
303
|
+
describe 'test attribute "help_keywords"' do
|
304
|
+
it 'should assign a value of maxLength' do
|
305
|
+
instance.help_keywords = "T" * 255
|
306
|
+
expect(instance.help_keywords).to eq("T" * 255)
|
307
|
+
end
|
308
|
+
it 'should not assign a value over maxLength' do
|
309
|
+
expect{instance.help_keywords = "T" * (255 + 1)}.to raise_error(ArgumentError)
|
310
|
+
end
|
311
|
+
end
|
312
|
+
|
313
|
+
describe 'test attribute "optin_message"' do
|
314
|
+
it 'should assign a value of maxLength' do
|
315
|
+
instance.optin_message = "T" * 255
|
316
|
+
expect(instance.optin_message).to eq("T" * 255)
|
317
|
+
end
|
318
|
+
it 'should not assign a value over maxLength' do
|
319
|
+
expect{instance.optin_message = "T" * (255 + 1)}.to raise_error(ArgumentError)
|
320
|
+
end
|
321
|
+
end
|
322
|
+
|
323
|
+
describe 'test attribute "optout_message"' do
|
324
|
+
it 'should assign a value of maxLength' do
|
325
|
+
instance.optout_message = "T" * 255
|
326
|
+
expect(instance.optout_message).to eq("T" * 255)
|
327
|
+
end
|
328
|
+
it 'should not assign a value over maxLength' do
|
329
|
+
expect{instance.optout_message = "T" * (255 + 1)}.to raise_error(ArgumentError)
|
330
|
+
end
|
331
|
+
end
|
332
|
+
|
267
333
|
describe 'test attribute "reference_id"' do
|
268
334
|
it 'should assign a value of maxLength' do
|
269
335
|
instance.reference_id = "T" * 50
|
@@ -278,6 +344,7 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
278
344
|
it 'should work' do
|
279
345
|
instance.mock = false
|
280
346
|
expect(instance.mock).to eq(false)
|
347
|
+
|
281
348
|
end
|
282
349
|
end
|
283
350
|
|
@@ -285,6 +352,7 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
285
352
|
it 'should work' do
|
286
353
|
instance.next_renewal_or_expiration_date = "2000-01-01"
|
287
354
|
expect(instance.next_renewal_or_expiration_date).to eq("2000-01-01")
|
355
|
+
|
288
356
|
end
|
289
357
|
end
|
290
358
|
|
@@ -319,6 +387,11 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
319
387
|
sample5: "TS",
|
320
388
|
message_flow: "TS",
|
321
389
|
help_message: "TS",
|
390
|
+
optin_keywords: "TS",
|
391
|
+
optout_keywords: "TS",
|
392
|
+
help_keywords: "TS",
|
393
|
+
optin_message: "TS",
|
394
|
+
optout_message: "TS",
|
322
395
|
reference_id: "TS",
|
323
396
|
mock: true,
|
324
397
|
next_renewal_or_expiration_date: "2000-01-01",
|
@@ -354,6 +427,11 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
354
427
|
sample5: "TS",
|
355
428
|
message_flow: "TS",
|
356
429
|
help_message: "TS",
|
430
|
+
optin_keywords: "TS",
|
431
|
+
optout_keywords: "TS",
|
432
|
+
help_keywords: "TS",
|
433
|
+
optin_message: "TS",
|
434
|
+
optout_message: "TS",
|
357
435
|
reference_id: "TS",
|
358
436
|
mock: true,
|
359
437
|
next_renewal_or_expiration_date: "2000-01-01",
|
@@ -390,6 +468,11 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
390
468
|
sample5: "TS",
|
391
469
|
message_flow: "TS",
|
392
470
|
help_message: "TS",
|
471
|
+
optin_keywords: "TS",
|
472
|
+
optout_keywords: "TS",
|
473
|
+
help_keywords: "TS",
|
474
|
+
optin_message: "TS",
|
475
|
+
optout_message: "TS",
|
393
476
|
reference_id: "TS",
|
394
477
|
mock: true,
|
395
478
|
next_renewal_or_expiration_date: "2000-01-01",
|
@@ -397,7 +480,7 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
397
480
|
)}.to raise_error(ArgumentError)
|
398
481
|
end
|
399
482
|
end
|
400
|
-
|
483
|
+
|
401
484
|
describe 'test method "valid"' do
|
402
485
|
it 'checks if properties are valid' do
|
403
486
|
instance = Freeclimb::SMSTenDLCCampaign.new(
|
@@ -429,16 +512,61 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
429
512
|
sample5: "TS",
|
430
513
|
message_flow: "TS",
|
431
514
|
help_message: "TS",
|
515
|
+
optin_keywords: "TS",
|
516
|
+
optout_keywords: "TS",
|
517
|
+
help_keywords: "TS",
|
518
|
+
optin_message: "TS",
|
519
|
+
optout_message: "TS",
|
432
520
|
reference_id: "TS",
|
433
521
|
mock: true,
|
434
522
|
next_renewal_or_expiration_date: "2000-01-01",
|
435
523
|
)
|
436
524
|
expect(instance.valid?).to eq(true)
|
437
525
|
end
|
438
|
-
|
439
|
-
|
526
|
+
|
527
|
+
it 'checks if properties are invalid' do
|
528
|
+
instance = Freeclimb::SMSTenDLCCampaign.new(
|
529
|
+
|
530
|
+
campaign_id: nil,
|
531
|
+
|
532
|
+
csp_id: nil,
|
533
|
+
reseller_id: nil,
|
534
|
+
auto_renewal: nil,
|
535
|
+
|
536
|
+
brand_id: "T" * 8,
|
537
|
+
usecase: "T" * 20,
|
538
|
+
sub_usecases: nil,
|
539
|
+
|
540
|
+
description: "T" * 4096,embedded_link: nil,
|
541
|
+
embedded_phone: nil,
|
542
|
+
affiliate_marketing: nil,
|
543
|
+
number_pool: nil,
|
544
|
+
age_gated: nil,
|
545
|
+
direct_lending: nil,
|
546
|
+
subscriber_optin: nil,
|
547
|
+
subscriber_optout: nil,
|
548
|
+
subscriber_help: nil,
|
549
|
+
sample1: nil,
|
550
|
+
sample2: nil,
|
551
|
+
sample3: nil,
|
552
|
+
sample4: nil,
|
553
|
+
sample5: nil,
|
554
|
+
message_flow: nil,
|
555
|
+
help_message: nil,
|
556
|
+
optin_keywords: nil,
|
557
|
+
optout_keywords: nil,
|
558
|
+
help_keywords: nil,
|
559
|
+
optin_message: nil,
|
560
|
+
optout_message: nil,
|
561
|
+
reference_id: nil,
|
562
|
+
mock: nil,
|
563
|
+
|
564
|
+
mock: nil,
|
565
|
+
|
566
|
+
)
|
440
567
|
expect(instance.valid?).to eq(false)
|
441
568
|
end
|
569
|
+
|
442
570
|
end
|
443
571
|
|
444
572
|
describe 'test method "eql?"' do
|
@@ -471,6 +599,11 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
471
599
|
sample5: "TS",
|
472
600
|
message_flow: "TS",
|
473
601
|
help_message: "TS",
|
602
|
+
optin_keywords: "TS",
|
603
|
+
optout_keywords: "TS",
|
604
|
+
help_keywords: "TS",
|
605
|
+
optin_message: "TS",
|
606
|
+
optout_message: "TS",
|
474
607
|
reference_id: "TS",
|
475
608
|
mock: true,
|
476
609
|
)
|
@@ -501,11 +634,17 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
501
634
|
sample5: "TS",
|
502
635
|
message_flow: "TS",
|
503
636
|
help_message: "TS",
|
637
|
+
optin_keywords: "TS",
|
638
|
+
optout_keywords: "TS",
|
639
|
+
help_keywords: "TS",
|
640
|
+
optin_message: "TS",
|
641
|
+
optout_message: "TS",
|
504
642
|
reference_id: "TS",
|
505
643
|
mock: true,
|
506
644
|
)
|
507
645
|
expect(instance_1.eql?(instance_2)).to eq(true)
|
508
646
|
end
|
647
|
+
|
509
648
|
it 'checks if objects are not equal' do
|
510
649
|
instance_1 = Freeclimb::SMSTenDLCCampaign.new(
|
511
650
|
account_id: "TS",
|
@@ -534,6 +673,11 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
534
673
|
sample5: "TS",
|
535
674
|
message_flow: "TS",
|
536
675
|
help_message: "TS",
|
676
|
+
optin_keywords: "TS",
|
677
|
+
optout_keywords: "TS",
|
678
|
+
help_keywords: "TS",
|
679
|
+
optin_message: "TS",
|
680
|
+
optout_message: "TS",
|
537
681
|
reference_id: "TS",
|
538
682
|
mock: true,
|
539
683
|
)
|
@@ -564,13 +708,18 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
564
708
|
sample5: "ST",
|
565
709
|
message_flow: "ST",
|
566
710
|
help_message: "ST",
|
711
|
+
optin_keywords: "ST",
|
712
|
+
optout_keywords: "ST",
|
713
|
+
help_keywords: "ST",
|
714
|
+
optin_message: "ST",
|
715
|
+
optout_message: "ST",
|
567
716
|
reference_id: "ST",
|
568
717
|
mock: false,
|
569
718
|
)
|
570
719
|
expect(instance_1.eql?(instance_2)).to eq(false)
|
571
720
|
end
|
572
721
|
end
|
573
|
-
|
722
|
+
|
574
723
|
describe 'test method "hash"' do
|
575
724
|
it 'calculates hash code' do
|
576
725
|
instance = Freeclimb::SMSTenDLCCampaign.new(
|
@@ -602,6 +751,11 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
602
751
|
sample5: "TS",
|
603
752
|
message_flow: "TS",
|
604
753
|
help_message: "TS",
|
754
|
+
optin_keywords: "TS",
|
755
|
+
optout_keywords: "TS",
|
756
|
+
help_keywords: "TS",
|
757
|
+
optin_message: "TS",
|
758
|
+
optout_message: "TS",
|
605
759
|
reference_id: "TS",
|
606
760
|
mock: true,
|
607
761
|
next_renewal_or_expiration_date: "2000-01-01",
|
@@ -641,6 +795,11 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
641
795
|
sample5: "TS",
|
642
796
|
message_flow: "TS",
|
643
797
|
help_message: "TS",
|
798
|
+
optin_keywords: "TS",
|
799
|
+
optout_keywords: "TS",
|
800
|
+
help_keywords: "TS",
|
801
|
+
optin_message: "TS",
|
802
|
+
optout_message: "TS",
|
644
803
|
reference_id: "TS",
|
645
804
|
mock: true,
|
646
805
|
next_renewal_or_expiration_date: "2000-01-01",
|
@@ -680,6 +839,11 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
680
839
|
sample5: "TS",
|
681
840
|
message_flow: "TS",
|
682
841
|
help_message: "TS",
|
842
|
+
optin_keywords: "TS",
|
843
|
+
optout_keywords: "TS",
|
844
|
+
help_keywords: "TS",
|
845
|
+
optin_message: "TS",
|
846
|
+
optout_message: "TS",
|
683
847
|
reference_id: "TS",
|
684
848
|
mock: true,
|
685
849
|
next_renewal_or_expiration_date: "2000-01-01",
|
@@ -768,6 +932,21 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
768
932
|
it 'deserializes the data of help_message' do
|
769
933
|
expect(instance._deserialize("String", instance.help_message)).to be_a_kind_of(String)
|
770
934
|
end
|
935
|
+
it 'deserializes the data of optin_keywords' do
|
936
|
+
expect(instance._deserialize("String", instance.optin_keywords)).to be_a_kind_of(String)
|
937
|
+
end
|
938
|
+
it 'deserializes the data of optout_keywords' do
|
939
|
+
expect(instance._deserialize("String", instance.optout_keywords)).to be_a_kind_of(String)
|
940
|
+
end
|
941
|
+
it 'deserializes the data of help_keywords' do
|
942
|
+
expect(instance._deserialize("String", instance.help_keywords)).to be_a_kind_of(String)
|
943
|
+
end
|
944
|
+
it 'deserializes the data of optin_message' do
|
945
|
+
expect(instance._deserialize("String", instance.optin_message)).to be_a_kind_of(String)
|
946
|
+
end
|
947
|
+
it 'deserializes the data of optout_message' do
|
948
|
+
expect(instance._deserialize("String", instance.optout_message)).to be_a_kind_of(String)
|
949
|
+
end
|
771
950
|
it 'deserializes the data of reference_id' do
|
772
951
|
expect(instance._deserialize("String", instance.reference_id)).to be_a_kind_of(String)
|
773
952
|
end
|
@@ -810,6 +989,11 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
810
989
|
sample5: "TS",
|
811
990
|
message_flow: "TS",
|
812
991
|
help_message: "TS",
|
992
|
+
optin_keywords: "TS",
|
993
|
+
optout_keywords: "TS",
|
994
|
+
help_keywords: "TS",
|
995
|
+
optin_message: "TS",
|
996
|
+
optout_message: "TS",
|
813
997
|
reference_id: "TS",
|
814
998
|
mock: true,
|
815
999
|
next_renewal_or_expiration_date: "2000-01-01",
|
@@ -849,6 +1033,11 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
849
1033
|
sample5: "TS",
|
850
1034
|
message_flow: "TS",
|
851
1035
|
help_message: "TS",
|
1036
|
+
optin_keywords: "TS",
|
1037
|
+
optout_keywords: "TS",
|
1038
|
+
help_keywords: "TS",
|
1039
|
+
optin_message: "TS",
|
1040
|
+
optout_message: "TS",
|
852
1041
|
reference_id: "TS",
|
853
1042
|
mock: true,
|
854
1043
|
next_renewal_or_expiration_date: "2000-01-01",
|
@@ -886,6 +1075,11 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
886
1075
|
sample5: "TS",
|
887
1076
|
message_flow: "TS",
|
888
1077
|
help_message: "TS",
|
1078
|
+
optin_keywords: "TS",
|
1079
|
+
optout_keywords: "TS",
|
1080
|
+
help_keywords: "TS",
|
1081
|
+
optin_message: "TS",
|
1082
|
+
optout_message: "TS",
|
889
1083
|
reference_id: "TS",
|
890
1084
|
mock: true,
|
891
1085
|
next_renewal_or_expiration_date: "2000-01-01",
|
@@ -919,6 +1113,11 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
919
1113
|
sample5: "TS",
|
920
1114
|
message_flow: "TS",
|
921
1115
|
help_message: "TS",
|
1116
|
+
optin_keywords: "TS",
|
1117
|
+
optout_keywords: "TS",
|
1118
|
+
help_keywords: "TS",
|
1119
|
+
optin_message: "TS",
|
1120
|
+
optout_message: "TS",
|
922
1121
|
reference_id: "TS",
|
923
1122
|
mock: true,
|
924
1123
|
next_renewal_or_expiration_date: "2000-01-01",
|
@@ -985,6 +1184,16 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
985
1184
|
|
986
1185
|
help_message: "TS",
|
987
1186
|
|
1187
|
+
optin_keywords: "TS",
|
1188
|
+
|
1189
|
+
optout_keywords: "TS",
|
1190
|
+
|
1191
|
+
help_keywords: "TS",
|
1192
|
+
|
1193
|
+
optin_message: "TS",
|
1194
|
+
|
1195
|
+
optout_message: "TS",
|
1196
|
+
|
988
1197
|
reference_id: "TS",
|
989
1198
|
|
990
1199
|
mock: true,
|
@@ -1075,6 +1284,21 @@ describe Freeclimb::SMSTenDLCCampaign do
|
|
1075
1284
|
it 'returns help_message in the form of hash' do
|
1076
1285
|
expect(instance._to_hash(instance.help_message)).to eq(instance.help_message)
|
1077
1286
|
end
|
1287
|
+
it 'returns optin_keywords in the form of hash' do
|
1288
|
+
expect(instance._to_hash(instance.optin_keywords)).to eq(instance.optin_keywords)
|
1289
|
+
end
|
1290
|
+
it 'returns optout_keywords in the form of hash' do
|
1291
|
+
expect(instance._to_hash(instance.optout_keywords)).to eq(instance.optout_keywords)
|
1292
|
+
end
|
1293
|
+
it 'returns help_keywords in the form of hash' do
|
1294
|
+
expect(instance._to_hash(instance.help_keywords)).to eq(instance.help_keywords)
|
1295
|
+
end
|
1296
|
+
it 'returns optin_message in the form of hash' do
|
1297
|
+
expect(instance._to_hash(instance.optin_message)).to eq(instance.optin_message)
|
1298
|
+
end
|
1299
|
+
it 'returns optout_message in the form of hash' do
|
1300
|
+
expect(instance._to_hash(instance.optout_message)).to eq(instance.optout_message)
|
1301
|
+
end
|
1078
1302
|
it 'returns reference_id in the form of hash' do
|
1079
1303
|
expect(instance._to_hash(instance.reference_id)).to eq(instance.reference_id)
|
1080
1304
|
end
|
@@ -28,43 +28,61 @@ describe Freeclimb::SMSTenDLCCampaignsListResult do
|
|
28
28
|
|
29
29
|
describe 'test attribute "total"' do
|
30
30
|
it 'should work' do
|
31
|
+
|
32
|
+
|
31
33
|
instance.total = 1
|
32
|
-
expect(instance.total).to eq(1)
|
34
|
+
expect(instance.total).to eq(1)
|
35
|
+
|
33
36
|
end
|
34
37
|
end
|
35
38
|
|
36
39
|
describe 'test attribute "start"' do
|
37
40
|
it 'should work' do
|
41
|
+
|
42
|
+
|
38
43
|
instance.start = 1
|
39
|
-
expect(instance.start).to eq(1)
|
44
|
+
expect(instance.start).to eq(1)
|
45
|
+
|
40
46
|
end
|
41
47
|
end
|
42
48
|
|
43
49
|
describe 'test attribute "_end"' do
|
44
50
|
it 'should work' do
|
51
|
+
|
52
|
+
|
45
53
|
instance._end = 1
|
46
|
-
expect(instance._end).to eq(1)
|
54
|
+
expect(instance._end).to eq(1)
|
55
|
+
|
47
56
|
end
|
48
57
|
end
|
49
58
|
|
50
59
|
describe 'test attribute "page"' do
|
51
60
|
it 'should work' do
|
61
|
+
|
62
|
+
|
52
63
|
instance.page = 1
|
53
|
-
expect(instance.page).to eq(1)
|
64
|
+
expect(instance.page).to eq(1)
|
65
|
+
|
54
66
|
end
|
55
67
|
end
|
56
68
|
|
57
69
|
describe 'test attribute "num_pages"' do
|
58
70
|
it 'should work' do
|
71
|
+
|
72
|
+
|
59
73
|
instance.num_pages = 1
|
60
|
-
expect(instance.num_pages).to eq(1)
|
74
|
+
expect(instance.num_pages).to eq(1)
|
75
|
+
|
61
76
|
end
|
62
77
|
end
|
63
78
|
|
64
79
|
describe 'test attribute "page_size"' do
|
65
80
|
it 'should work' do
|
81
|
+
|
82
|
+
|
66
83
|
instance.page_size = 1
|
67
|
-
expect(instance.page_size).to eq(1)
|
84
|
+
expect(instance.page_size).to eq(1)
|
85
|
+
|
68
86
|
end
|
69
87
|
end
|
70
88
|
|
@@ -72,11 +90,13 @@ describe Freeclimb::SMSTenDLCCampaignsListResult do
|
|
72
90
|
it 'should work' do
|
73
91
|
instance.next_page_uri = "TEST_STRING"
|
74
92
|
expect(instance.next_page_uri).to eq("TEST_STRING")
|
93
|
+
|
75
94
|
end
|
76
95
|
end
|
77
96
|
|
78
97
|
describe 'test attribute "campaigns"' do
|
79
98
|
it 'should work' do
|
99
|
+
|
80
100
|
instance.campaigns = ["ELEMENT_1", "ELEMENT_2"]
|
81
101
|
expect(instance.campaigns).to eq(["ELEMENT_1", "ELEMENT_2"])
|
82
102
|
end
|
@@ -122,7 +142,7 @@ describe Freeclimb::SMSTenDLCCampaignsListResult do
|
|
122
142
|
)}.to raise_error(ArgumentError)
|
123
143
|
end
|
124
144
|
end
|
125
|
-
|
145
|
+
|
126
146
|
describe 'test method "valid"' do
|
127
147
|
it 'checks if properties are valid' do
|
128
148
|
instance = Freeclimb::SMSTenDLCCampaignsListResult.new(
|
@@ -137,15 +157,14 @@ describe Freeclimb::SMSTenDLCCampaignsListResult do
|
|
137
157
|
)
|
138
158
|
expect(instance.valid?).to eq(true)
|
139
159
|
end
|
160
|
+
|
140
161
|
it 'checks if properties are invalid' do
|
141
162
|
instance = Freeclimb::SMSTenDLCCampaignsListResult.new(
|
163
|
+
|
142
164
|
)
|
143
165
|
expect(instance.valid?).to eq(false)
|
144
166
|
end
|
145
|
-
|
146
|
-
instance = Freeclimb::SMSTenDLCCampaignsListResult.new()
|
147
|
-
expect(instance.valid?).to eq(false)
|
148
|
-
end
|
167
|
+
|
149
168
|
end
|
150
169
|
|
151
170
|
describe 'test method "eql?"' do
|
@@ -159,6 +178,7 @@ describe Freeclimb::SMSTenDLCCampaignsListResult do
|
|
159
178
|
num_pages: 1,
|
160
179
|
page_size: 1,
|
161
180
|
next_page_uri: "TS",
|
181
|
+
campaigns: Freeclimb::SMSTenDLCCampaign.new(),
|
162
182
|
campaigns: [],
|
163
183
|
)
|
164
184
|
instance_2 = Freeclimb::SMSTenDLCCampaignsListResult.new(
|
@@ -169,35 +189,39 @@ describe Freeclimb::SMSTenDLCCampaignsListResult do
|
|
169
189
|
num_pages: 1,
|
170
190
|
page_size: 1,
|
171
191
|
next_page_uri: "TS",
|
192
|
+
campaigns: Freeclimb::SMSTenDLCCampaign.new(),
|
172
193
|
campaigns: [],
|
173
194
|
)
|
174
195
|
expect(instance_1.eql?(instance_2)).to eq(true)
|
175
196
|
end
|
197
|
+
|
176
198
|
it 'checks if objects are not equal' do
|
177
199
|
instance_1 = Freeclimb::SMSTenDLCCampaignsListResult.new(
|
200
|
+
total: 2,
|
201
|
+
start: 2,
|
202
|
+
_end: 2,
|
203
|
+
page: 2,
|
204
|
+
num_pages: 2,
|
205
|
+
page_size: 2,
|
206
|
+
next_page_uri: "TS",
|
207
|
+
campaigns: Freeclimb::SMSTenDLCCampaign.new(),
|
208
|
+
campaigns: [],
|
209
|
+
)
|
210
|
+
instance_2 = Freeclimb::SMSTenDLCCampaignsListResult.new(
|
178
211
|
total: 1,
|
179
212
|
start: 1,
|
180
213
|
_end: 1,
|
181
214
|
page: 1,
|
182
215
|
num_pages: 1,
|
183
216
|
page_size: 1,
|
184
|
-
next_page_uri: "TS",
|
185
|
-
campaigns: [],
|
186
|
-
)
|
187
|
-
instance_2 = Freeclimb::SMSTenDLCCampaignsListResult.new(
|
188
|
-
total: 0,
|
189
|
-
start: 0,
|
190
|
-
_end: 0,
|
191
|
-
page: 0,
|
192
|
-
num_pages: 0,
|
193
|
-
page_size: 0,
|
194
217
|
next_page_uri: "ST",
|
218
|
+
campaigns: Freeclimb::SMSTenDLCCampaign.new(),
|
195
219
|
campaigns: nil,
|
196
220
|
)
|
197
221
|
expect(instance_1.eql?(instance_2)).to eq(false)
|
198
222
|
end
|
199
223
|
end
|
200
|
-
|
224
|
+
|
201
225
|
describe 'test method "hash"' do
|
202
226
|
it 'calculates hash code' do
|
203
227
|
instance = Freeclimb::SMSTenDLCCampaignsListResult.new(
|