freeclimb 4.3.0 → 4.4.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 +14 -0
- data/Gemfile.lock +1 -1
- data/README.md +20 -4
- data/docs/DefaultApi.md +433 -0
- data/docs/IncomingNumberRequest.md +3 -1
- data/docs/SMSTenDLCBrand.md +78 -0
- data/docs/SMSTenDLCBrandsListResult.md +32 -0
- data/docs/SMSTenDLCBrandsListResultAllOf.md +18 -0
- data/docs/SMSTenDLCCampaign.md +78 -0
- data/docs/SMSTenDLCCampaignsListResult.md +32 -0
- data/docs/SMSTenDLCCampaignsListResultAllOf.md +18 -0
- data/docs/SMSTenDLCPartnerCampaign.md +74 -0
- data/docs/SMSTenDLCPartnerCampaignBrand.md +38 -0
- data/docs/SMSTenDLCPartnerCampaignsListResult.md +32 -0
- data/docs/SMSTenDLCPartnerCampaignsListResultAllOf.md +18 -0
- data/lib/freeclimb/api/default_api.rb +360 -0
- data/lib/freeclimb/models/incoming_number_request.rb +15 -4
- data/lib/freeclimb/models/sms_ten_dlc_brand.rb +960 -0
- data/lib/freeclimb/models/sms_ten_dlc_brands_list_result.rb +306 -0
- data/lib/freeclimb/models/sms_ten_dlc_brands_list_result_all_of.rb +221 -0
- data/lib/freeclimb/models/sms_ten_dlc_campaign.rb +814 -0
- data/lib/freeclimb/models/sms_ten_dlc_campaigns_list_result.rb +306 -0
- data/lib/freeclimb/models/sms_ten_dlc_campaigns_list_result_all_of.rb +221 -0
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb +807 -0
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_brand.rb +445 -0
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaigns_list_result.rb +306 -0
- data/lib/freeclimb/models/sms_ten_dlc_partner_campaigns_list_result_all_of.rb +221 -0
- data/lib/freeclimb/version.rb +1 -1
- data/lib/freeclimb.rb +10 -0
- data/openapi.json +1277 -12
- data/spec/api/default_api_spec.rb +151 -1
- data/spec/models/account_request_spec.rb +143 -2
- data/spec/models/account_result_spec.rb +377 -13
- data/spec/models/account_status_spec.rb +39 -6
- data/spec/models/account_type_spec.rb +26 -4
- data/spec/models/add_to_conference_spec.rb +343 -10
- data/spec/models/answered_by_spec.rb +26 -4
- data/spec/models/application_list_spec.rb +293 -8
- data/spec/models/application_request_spec.rb +268 -7
- data/spec/models/application_result_spec.rb +418 -13
- data/spec/models/available_number_list_spec.rb +293 -8
- data/spec/models/available_number_spec.rb +263 -7
- data/spec/models/buy_incoming_number_request_spec.rb +168 -3
- data/spec/models/call_direction_spec.rb +39 -6
- data/spec/models/call_list_spec.rb +293 -8
- data/spec/models/call_result_spec.rb +603 -22
- data/spec/models/call_status_spec.rb +104 -16
- data/spec/models/capabilities_spec.rb +218 -5
- data/spec/models/conference_list_spec.rb +293 -8
- data/spec/models/conference_participant_list_spec.rb +293 -8
- data/spec/models/conference_participant_result_spec.rb +343 -10
- data/spec/models/conference_result_spec.rb +464 -16
- data/spec/models/conference_status_spec.rb +52 -8
- data/spec/models/create_conference_request_spec.rb +228 -6
- data/spec/models/create_conference_spec.rb +253 -7
- data/spec/models/enqueue_spec.rb +193 -4
- data/spec/models/filter_logs_request_spec.rb +118 -1
- data/spec/models/get_digits_spec.rb +318 -9
- data/spec/models/get_speech_reason_spec.rb +78 -12
- data/spec/models/get_speech_spec.rb +388 -14
- data/spec/models/grammar_file_built_in_spec.rb +195 -30
- data/spec/models/grammar_type_spec.rb +26 -4
- data/spec/models/hangup_spec.rb +118 -1
- data/spec/models/if_machine_spec.rb +26 -4
- data/spec/models/incoming_number_list_spec.rb +293 -8
- data/spec/models/incoming_number_request_spec.rb +173 -2
- data/spec/models/incoming_number_result_spec.rb +488 -16
- data/spec/models/language_spec.rb +338 -52
- data/spec/models/log_level_spec.rb +39 -6
- data/spec/models/log_list_spec.rb +293 -8
- data/spec/models/log_result_spec.rb +275 -8
- data/spec/models/machine_type_spec.rb +26 -4
- data/spec/models/make_call_request_spec.rb +343 -10
- data/spec/models/message_direction_spec.rb +26 -4
- data/spec/models/message_request_spec.rb +318 -9
- data/spec/models/message_result_spec.rb +431 -13
- data/spec/models/message_status_spec.rb +143 -22
- data/spec/models/messages_list_spec.rb +293 -8
- data/spec/models/mutable_resource_model_spec.rb +193 -4
- data/spec/models/out_dial_spec.rb +345 -11
- data/spec/models/pagination_model_spec.rb +268 -7
- data/spec/models/park_spec.rb +168 -3
- data/spec/models/pause_spec.rb +118 -1
- data/spec/models/percl_command_spec.rb +132 -3
- data/spec/models/percl_script_spec.rb +118 -1
- data/spec/models/play_beep_spec.rb +52 -8
- data/spec/models/play_early_media_spec.rb +118 -1
- data/spec/models/play_spec.rb +193 -4
- data/spec/models/queue_list_spec.rb +293 -8
- data/spec/models/queue_member_list_spec.rb +293 -8
- data/spec/models/queue_member_spec.rb +218 -5
- data/spec/models/queue_request_spec.rb +143 -2
- data/spec/models/queue_result_spec.rb +369 -11
- data/spec/models/queue_result_status_spec.rb +52 -8
- data/spec/models/record_utterance_spec.rb +268 -7
- data/spec/models/record_utterance_term_reason_spec.rb +52 -8
- data/spec/models/recording_list_spec.rb +293 -8
- data/spec/models/recording_result_spec.rb +318 -9
- data/spec/models/redirect_spec.rb +118 -1
- data/spec/models/reject_spec.rb +118 -1
- data/spec/models/remove_from_conference_spec.rb +118 -1
- data/spec/models/request_type_spec.rb +299 -46
- data/spec/models/say_spec.rb +218 -5
- data/spec/models/send_digits_spec.rb +168 -3
- data/spec/models/set_listen_spec.rb +143 -2
- data/spec/models/set_talk_spec.rb +143 -2
- data/spec/models/sms_spec.rb +193 -4
- data/spec/models/sms_ten_dlc_brand_spec.rb +1240 -0
- data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +361 -0
- data/spec/models/sms_ten_dlc_campaign_spec.rb +1055 -0
- data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +361 -0
- data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +448 -0
- data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +994 -0
- data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +361 -0
- data/spec/models/terminate_conference_spec.rb +118 -1
- data/spec/models/update_call_request_spec.rb +120 -2
- data/spec/models/update_call_request_status_spec.rb +26 -4
- data/spec/models/update_conference_participant_request_spec.rb +143 -2
- data/spec/models/update_conference_request_spec.rb +180 -5
- data/spec/models/update_conference_request_status_spec.rb +26 -4
- metadata +102 -68
@@ -0,0 +1,994 @@
|
|
1
|
+
=begin
|
2
|
+
#FreeClimb API
|
3
|
+
|
4
|
+
#FreeClimb is a cloud-based application programming interface (API) that puts the power of the Vail platform in your hands. FreeClimb simplifies the process of creating applications that can use a full range of telephony features without requiring specialized or on-site telephony equipment. Using the FreeClimb REST API to write applications is easy! You have the option to use the language of your choice or hit the API directly. Your application can execute a command by issuing a RESTful request to the FreeClimb API. The base URL to send HTTP requests to the FreeClimb REST API is: /apiserver. FreeClimb authenticates and processes your request.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: support@freeclimb.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for Freeclimb::SMSTenDLCPartnerCampaign
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe Freeclimb::SMSTenDLCPartnerCampaign do
|
21
|
+
let(:instance) { Freeclimb::SMSTenDLCPartnerCampaign.new }
|
22
|
+
|
23
|
+
describe 'test an instance of SMSTenDLCPartnerCampaign' do
|
24
|
+
it 'should create an instance of SMSTenDLCPartnerCampaign' do
|
25
|
+
expect(instance).to be_instance_of(Freeclimb::SMSTenDLCPartnerCampaign)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "account_id"' do
|
29
|
+
it 'should work' do
|
30
|
+
instance.account_id = "TEST_STRING"
|
31
|
+
expect(instance.account_id).to eq("TEST_STRING")
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
describe 'test attribute "campaign_id"' do
|
36
|
+
it 'should work' do
|
37
|
+
instance.campaign_id = "TEST_STRING"
|
38
|
+
expect(instance.campaign_id).to eq("TEST_STRING")
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
describe 'test attribute "status"' do
|
43
|
+
it 'assigns value ACTIVE' do
|
44
|
+
instance.status = "ACTIVE"
|
45
|
+
expect(instance.status).to eq("ACTIVE")
|
46
|
+
end
|
47
|
+
it 'assigns value EXPIRED' do
|
48
|
+
instance.status = "EXPIRED"
|
49
|
+
expect(instance.status).to eq("EXPIRED")
|
50
|
+
end
|
51
|
+
it 'throws error on invalid enum' do
|
52
|
+
instance = Freeclimb::SMSTenDLCPartnerCampaign.new
|
53
|
+
expect{instance.status = "INVALID_ENUM"}.to raise_error(ArgumentError)
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
describe 'test attribute "create_date"' do
|
58
|
+
it 'should work' do
|
59
|
+
instance.create_date = "2022-07-05T15:17:05Z"
|
60
|
+
expect(instance.create_date).to eq("2022-07-05T15:17:05Z")
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
|
65
|
+
describe 'test attribute "brand_id"' do
|
66
|
+
it 'should work with length 8' do
|
67
|
+
instance.brand_id = "TEST_STR"
|
68
|
+
expect(instance.brand_id).to eq("TEST_STR")
|
69
|
+
end
|
70
|
+
it 'should not work with length > 8' do
|
71
|
+
expect{instance.brand_id = "TEST_STRING"}.to raise_error(ArgumentError)
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
describe 'test attribute "usecase"' do
|
76
|
+
it 'should work' do
|
77
|
+
instance.usecase = "TEST_STRING"
|
78
|
+
expect(instance.usecase).to eq("TEST_STRING")
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
describe 'test attribute "description"' do
|
83
|
+
it 'should work' do
|
84
|
+
instance.description = "TEST_STRING"
|
85
|
+
expect(instance.description).to eq("TEST_STRING")
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
describe 'test attribute "embedded_link"' do
|
90
|
+
it 'should work' do
|
91
|
+
instance.embedded_link = false
|
92
|
+
expect(instance.embedded_link).to eq(false)
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
describe 'test attribute "embedded_phone"' do
|
97
|
+
it 'should work' do
|
98
|
+
instance.embedded_phone = false
|
99
|
+
expect(instance.embedded_phone).to eq(false)
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
describe 'test attribute "affiliate_marketing"' do
|
104
|
+
it 'should work' do
|
105
|
+
instance.affiliate_marketing = false
|
106
|
+
expect(instance.affiliate_marketing).to eq(false)
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
describe 'test attribute "number_pool"' do
|
111
|
+
it 'should work' do
|
112
|
+
instance.number_pool = false
|
113
|
+
expect(instance.number_pool).to eq(false)
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
describe 'test attribute "age_gated"' do
|
118
|
+
it 'should work' do
|
119
|
+
instance.age_gated = false
|
120
|
+
expect(instance.age_gated).to eq(false)
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
describe 'test attribute "direct_lending"' do
|
125
|
+
it 'should work' do
|
126
|
+
instance.direct_lending = false
|
127
|
+
expect(instance.direct_lending).to eq(false)
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
describe 'test attribute "subscriber_optin"' do
|
132
|
+
it 'should work' do
|
133
|
+
instance.subscriber_optin = false
|
134
|
+
expect(instance.subscriber_optin).to eq(false)
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
138
|
+
describe 'test attribute "subscriber_optout"' do
|
139
|
+
it 'should work' do
|
140
|
+
instance.subscriber_optout = false
|
141
|
+
expect(instance.subscriber_optout).to eq(false)
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
145
|
+
describe 'test attribute "subscriber_help"' do
|
146
|
+
it 'should work' do
|
147
|
+
instance.subscriber_help = false
|
148
|
+
expect(instance.subscriber_help).to eq(false)
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
152
|
+
describe 'test attribute "sample1"' do
|
153
|
+
it 'should work' do
|
154
|
+
instance.sample1 = "TEST_STRING"
|
155
|
+
expect(instance.sample1).to eq("TEST_STRING")
|
156
|
+
end
|
157
|
+
end
|
158
|
+
|
159
|
+
describe 'test attribute "sample2"' do
|
160
|
+
it 'should work' do
|
161
|
+
instance.sample2 = "TEST_STRING"
|
162
|
+
expect(instance.sample2).to eq("TEST_STRING")
|
163
|
+
end
|
164
|
+
end
|
165
|
+
|
166
|
+
describe 'test attribute "sample3"' do
|
167
|
+
it 'should work' do
|
168
|
+
instance.sample3 = "TEST_STRING"
|
169
|
+
expect(instance.sample3).to eq("TEST_STRING")
|
170
|
+
end
|
171
|
+
end
|
172
|
+
|
173
|
+
describe 'test attribute "sample4"' do
|
174
|
+
it 'should work' do
|
175
|
+
instance.sample4 = "TEST_STRING"
|
176
|
+
expect(instance.sample4).to eq("TEST_STRING")
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
describe 'test attribute "sample5"' do
|
181
|
+
it 'should work' do
|
182
|
+
instance.sample5 = "TEST_STRING"
|
183
|
+
expect(instance.sample5).to eq("TEST_STRING")
|
184
|
+
end
|
185
|
+
end
|
186
|
+
|
187
|
+
describe 'test attribute "message_flow"' do
|
188
|
+
it 'should work' do
|
189
|
+
instance.message_flow = "TEST_STRING"
|
190
|
+
expect(instance.message_flow).to eq("TEST_STRING")
|
191
|
+
end
|
192
|
+
end
|
193
|
+
|
194
|
+
describe 'test attribute "help_message"' do
|
195
|
+
it 'should work' do
|
196
|
+
instance.help_message = "TEST_STRING"
|
197
|
+
expect(instance.help_message).to eq("TEST_STRING")
|
198
|
+
end
|
199
|
+
end
|
200
|
+
|
201
|
+
describe 'test attribute "optin_keywords"' do
|
202
|
+
it 'should work' do
|
203
|
+
instance.optin_keywords = "TEST_STRING"
|
204
|
+
expect(instance.optin_keywords).to eq("TEST_STRING")
|
205
|
+
end
|
206
|
+
end
|
207
|
+
|
208
|
+
describe 'test attribute "optout_keywords"' do
|
209
|
+
it 'should work' do
|
210
|
+
instance.optout_keywords = "TEST_STRING"
|
211
|
+
expect(instance.optout_keywords).to eq("TEST_STRING")
|
212
|
+
end
|
213
|
+
end
|
214
|
+
|
215
|
+
describe 'test attribute "help_keywords"' do
|
216
|
+
it 'should work' do
|
217
|
+
instance.help_keywords = "TEST_STRING"
|
218
|
+
expect(instance.help_keywords).to eq("TEST_STRING")
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
222
|
+
describe 'test attribute "optin_message"' do
|
223
|
+
it 'should work' do
|
224
|
+
instance.optin_message = "TEST_STRING"
|
225
|
+
expect(instance.optin_message).to eq("TEST_STRING")
|
226
|
+
end
|
227
|
+
end
|
228
|
+
|
229
|
+
describe 'test attribute "optout_message"' do
|
230
|
+
it 'should work' do
|
231
|
+
instance.optout_message = "TEST_STRING"
|
232
|
+
expect(instance.optout_message).to eq("TEST_STRING")
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
236
|
+
describe 'test attribute "brand"' do
|
237
|
+
it 'should work' do
|
238
|
+
instance.brand = Freeclimb::SMSTenDLCPartnerCampaignBrand.new
|
239
|
+
expect(instance.brand).to be_instance_of(Freeclimb::SMSTenDLCPartnerCampaignBrand)
|
240
|
+
end
|
241
|
+
end
|
242
|
+
|
243
|
+
describe 'test method "initialize"' do
|
244
|
+
it 'properly initializes with values' do
|
245
|
+
expect{instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
|
246
|
+
account_id: "TS",
|
247
|
+
campaign_id: "TS",
|
248
|
+
status: "ACTIVE",
|
249
|
+
create_date: "2022-07-05T15:17:05Z",
|
250
|
+
brand_id: "TS",
|
251
|
+
usecase: "TS",
|
252
|
+
description: "TS",
|
253
|
+
embedded_link: true,
|
254
|
+
embedded_phone: true,
|
255
|
+
affiliate_marketing: true,
|
256
|
+
number_pool: true,
|
257
|
+
age_gated: true,
|
258
|
+
direct_lending: true,
|
259
|
+
subscriber_optin: true,
|
260
|
+
subscriber_optout: true,
|
261
|
+
subscriber_help: true,
|
262
|
+
sample1: "TS",
|
263
|
+
sample2: "TS",
|
264
|
+
sample3: "TS",
|
265
|
+
sample4: "TS",
|
266
|
+
sample5: "TS",
|
267
|
+
message_flow: "TS",
|
268
|
+
help_message: "TS",
|
269
|
+
optin_keywords: "TS",
|
270
|
+
optout_keywords: "TS",
|
271
|
+
help_keywords: "TS",
|
272
|
+
optin_message: "TS",
|
273
|
+
optout_message: "TS",
|
274
|
+
brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new,
|
275
|
+
)}.not_to raise_error()
|
276
|
+
end
|
277
|
+
it 'fails to initialize with input argument that is not a hash in Freeclimb::SMSTenDLCPartnerCampaign' do
|
278
|
+
expect{instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
|
279
|
+
account_id: "TS",
|
280
|
+
campaign_id: "TS",
|
281
|
+
status: "ACTIVE",
|
282
|
+
create_date: "2022-07-05T15:17:05Z",
|
283
|
+
brand_id: "TS",
|
284
|
+
usecase: "TS",
|
285
|
+
description: "TS",
|
286
|
+
embedded_link: true,
|
287
|
+
embedded_phone: true,
|
288
|
+
affiliate_marketing: true,
|
289
|
+
number_pool: true,
|
290
|
+
age_gated: true,
|
291
|
+
direct_lending: true,
|
292
|
+
subscriber_optin: true,
|
293
|
+
subscriber_optout: true,
|
294
|
+
subscriber_help: true,
|
295
|
+
sample1: "TS",
|
296
|
+
sample2: "TS",
|
297
|
+
sample3: "TS",
|
298
|
+
sample4: "TS",
|
299
|
+
sample5: "TS",
|
300
|
+
message_flow: "TS",
|
301
|
+
help_message: "TS",
|
302
|
+
optin_keywords: "TS",
|
303
|
+
optout_keywords: "TS",
|
304
|
+
help_keywords: "TS",
|
305
|
+
optin_message: "TS",
|
306
|
+
optout_message: "TS",
|
307
|
+
brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new,
|
308
|
+
invalid_attribute: true
|
309
|
+
)}.to raise_error(ArgumentError)
|
310
|
+
end
|
311
|
+
it 'fails to initialize with invalid attribute' do
|
312
|
+
expect{instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
|
313
|
+
account_id: "TS",
|
314
|
+
campaign_id: "TS",
|
315
|
+
status: "ACTIVE",
|
316
|
+
create_date: "2022-07-05T15:17:05Z",
|
317
|
+
brand_id: "TS",
|
318
|
+
usecase: "TS",
|
319
|
+
description: "TS",
|
320
|
+
embedded_link: true,
|
321
|
+
embedded_phone: true,
|
322
|
+
affiliate_marketing: true,
|
323
|
+
number_pool: true,
|
324
|
+
age_gated: true,
|
325
|
+
direct_lending: true,
|
326
|
+
subscriber_optin: true,
|
327
|
+
subscriber_optout: true,
|
328
|
+
subscriber_help: true,
|
329
|
+
sample1: "TS",
|
330
|
+
sample2: "TS",
|
331
|
+
sample3: "TS",
|
332
|
+
sample4: "TS",
|
333
|
+
sample5: "TS",
|
334
|
+
message_flow: "TS",
|
335
|
+
help_message: "TS",
|
336
|
+
optin_keywords: "TS",
|
337
|
+
optout_keywords: "TS",
|
338
|
+
help_keywords: "TS",
|
339
|
+
optin_message: "TS",
|
340
|
+
optout_message: "TS",
|
341
|
+
brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new,
|
342
|
+
invalid_attribute: true
|
343
|
+
)}.to raise_error(ArgumentError)
|
344
|
+
end
|
345
|
+
end
|
346
|
+
|
347
|
+
describe 'test method "valid"' do
|
348
|
+
it 'checks if properties are valid' do
|
349
|
+
instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
|
350
|
+
account_id: "TS",
|
351
|
+
campaign_id: "TS",
|
352
|
+
status: "ACTIVE",
|
353
|
+
create_date: "2022-07-05T15:17:05Z",
|
354
|
+
brand_id: "TS",
|
355
|
+
usecase: "TS",
|
356
|
+
description: "TS",
|
357
|
+
embedded_link: true,
|
358
|
+
embedded_phone: true,
|
359
|
+
affiliate_marketing: true,
|
360
|
+
number_pool: true,
|
361
|
+
age_gated: true,
|
362
|
+
direct_lending: true,
|
363
|
+
subscriber_optin: true,
|
364
|
+
subscriber_optout: true,
|
365
|
+
subscriber_help: true,
|
366
|
+
sample1: "TS",
|
367
|
+
sample2: "TS",
|
368
|
+
sample3: "TS",
|
369
|
+
sample4: "TS",
|
370
|
+
sample5: "TS",
|
371
|
+
message_flow: "TS",
|
372
|
+
help_message: "TS",
|
373
|
+
optin_keywords: "TS",
|
374
|
+
optout_keywords: "TS",
|
375
|
+
help_keywords: "TS",
|
376
|
+
optin_message: "TS",
|
377
|
+
optout_message: "TS",
|
378
|
+
brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new,
|
379
|
+
)
|
380
|
+
expect(instance.valid?).to eq(true)
|
381
|
+
end
|
382
|
+
end
|
383
|
+
|
384
|
+
describe 'test method "eql?"' do
|
385
|
+
it 'checks if objects are equal' do
|
386
|
+
obj = Object.new()
|
387
|
+
instance_1 = Freeclimb::SMSTenDLCPartnerCampaign.new(
|
388
|
+
account_id: "TS",
|
389
|
+
campaign_id: "TS",
|
390
|
+
status: "ACTIVE",
|
391
|
+
brand_id: "TS",
|
392
|
+
usecase: "TS",
|
393
|
+
description: "TS",
|
394
|
+
embedded_link: true,
|
395
|
+
embedded_phone: true,
|
396
|
+
affiliate_marketing: true,
|
397
|
+
number_pool: true,
|
398
|
+
age_gated: true,
|
399
|
+
direct_lending: true,
|
400
|
+
subscriber_optin: true,
|
401
|
+
subscriber_optout: true,
|
402
|
+
subscriber_help: true,
|
403
|
+
sample1: "TS",
|
404
|
+
sample2: "TS",
|
405
|
+
sample3: "TS",
|
406
|
+
sample4: "TS",
|
407
|
+
sample5: "TS",
|
408
|
+
message_flow: "TS",
|
409
|
+
help_message: "TS",
|
410
|
+
optin_keywords: "TS",
|
411
|
+
optout_keywords: "TS",
|
412
|
+
help_keywords: "TS",
|
413
|
+
optin_message: "TS",
|
414
|
+
optout_message: "TS",
|
415
|
+
)
|
416
|
+
instance_2 = Freeclimb::SMSTenDLCPartnerCampaign.new(
|
417
|
+
account_id: "TS",
|
418
|
+
campaign_id: "TS",
|
419
|
+
status: "ACTIVE",
|
420
|
+
brand_id: "TS",
|
421
|
+
usecase: "TS",
|
422
|
+
description: "TS",
|
423
|
+
embedded_link: true,
|
424
|
+
embedded_phone: true,
|
425
|
+
affiliate_marketing: true,
|
426
|
+
number_pool: true,
|
427
|
+
age_gated: true,
|
428
|
+
direct_lending: true,
|
429
|
+
subscriber_optin: true,
|
430
|
+
subscriber_optout: true,
|
431
|
+
subscriber_help: true,
|
432
|
+
sample1: "TS",
|
433
|
+
sample2: "TS",
|
434
|
+
sample3: "TS",
|
435
|
+
sample4: "TS",
|
436
|
+
sample5: "TS",
|
437
|
+
message_flow: "TS",
|
438
|
+
help_message: "TS",
|
439
|
+
optin_keywords: "TS",
|
440
|
+
optout_keywords: "TS",
|
441
|
+
help_keywords: "TS",
|
442
|
+
optin_message: "TS",
|
443
|
+
optout_message: "TS",
|
444
|
+
)
|
445
|
+
expect(instance_1.eql?(instance_2)).to eq(true)
|
446
|
+
end
|
447
|
+
it 'checks if objects are not equal' do
|
448
|
+
instance_1 = Freeclimb::SMSTenDLCPartnerCampaign.new(
|
449
|
+
account_id: "TS",
|
450
|
+
campaign_id: "TS",
|
451
|
+
status: "ACTIVE",
|
452
|
+
brand_id: "TS",
|
453
|
+
usecase: "TS",
|
454
|
+
description: "TS",
|
455
|
+
embedded_link: true,
|
456
|
+
embedded_phone: true,
|
457
|
+
affiliate_marketing: true,
|
458
|
+
number_pool: true,
|
459
|
+
age_gated: true,
|
460
|
+
direct_lending: true,
|
461
|
+
subscriber_optin: true,
|
462
|
+
subscriber_optout: true,
|
463
|
+
subscriber_help: true,
|
464
|
+
sample1: "TS",
|
465
|
+
sample2: "TS",
|
466
|
+
sample3: "TS",
|
467
|
+
sample4: "TS",
|
468
|
+
sample5: "TS",
|
469
|
+
message_flow: "TS",
|
470
|
+
help_message: "TS",
|
471
|
+
optin_keywords: "TS",
|
472
|
+
optout_keywords: "TS",
|
473
|
+
help_keywords: "TS",
|
474
|
+
optin_message: "TS",
|
475
|
+
optout_message: "TS",
|
476
|
+
)
|
477
|
+
instance_2 = Freeclimb::SMSTenDLCPartnerCampaign.new(
|
478
|
+
account_id: "ST",
|
479
|
+
campaign_id: "ST",
|
480
|
+
status: "EXPIRED",
|
481
|
+
brand_id: "ST",
|
482
|
+
usecase: "ST",
|
483
|
+
description: "ST",
|
484
|
+
embedded_link: false,
|
485
|
+
embedded_phone: false,
|
486
|
+
affiliate_marketing: false,
|
487
|
+
number_pool: false,
|
488
|
+
age_gated: false,
|
489
|
+
direct_lending: false,
|
490
|
+
subscriber_optin: false,
|
491
|
+
subscriber_optout: false,
|
492
|
+
subscriber_help: false,
|
493
|
+
sample1: "ST",
|
494
|
+
sample2: "ST",
|
495
|
+
sample3: "ST",
|
496
|
+
sample4: "ST",
|
497
|
+
sample5: "ST",
|
498
|
+
message_flow: "ST",
|
499
|
+
help_message: "ST",
|
500
|
+
optin_keywords: "ST",
|
501
|
+
optout_keywords: "ST",
|
502
|
+
help_keywords: "ST",
|
503
|
+
optin_message: "ST",
|
504
|
+
optout_message: "ST",
|
505
|
+
)
|
506
|
+
expect(instance_1.eql?(instance_2)).to eq(false)
|
507
|
+
end
|
508
|
+
end
|
509
|
+
|
510
|
+
describe 'test method "hash"' do
|
511
|
+
it 'calculates hash code' do
|
512
|
+
instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
|
513
|
+
account_id: "TS",
|
514
|
+
campaign_id: "TS",
|
515
|
+
status: "ACTIVE",
|
516
|
+
create_date: "2022-07-05T15:17:05Z",
|
517
|
+
brand_id: "TS",
|
518
|
+
usecase: "TS",
|
519
|
+
description: "TS",
|
520
|
+
embedded_link: true,
|
521
|
+
embedded_phone: true,
|
522
|
+
affiliate_marketing: true,
|
523
|
+
number_pool: true,
|
524
|
+
age_gated: true,
|
525
|
+
direct_lending: true,
|
526
|
+
subscriber_optin: true,
|
527
|
+
subscriber_optout: true,
|
528
|
+
subscriber_help: true,
|
529
|
+
sample1: "TS",
|
530
|
+
sample2: "TS",
|
531
|
+
sample3: "TS",
|
532
|
+
sample4: "TS",
|
533
|
+
sample5: "TS",
|
534
|
+
message_flow: "TS",
|
535
|
+
help_message: "TS",
|
536
|
+
optin_keywords: "TS",
|
537
|
+
optout_keywords: "TS",
|
538
|
+
help_keywords: "TS",
|
539
|
+
optin_message: "TS",
|
540
|
+
optout_message: "TS",
|
541
|
+
brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new,
|
542
|
+
)
|
543
|
+
expect(instance.hash).to be_a_kind_of(Integer)
|
544
|
+
end
|
545
|
+
end
|
546
|
+
|
547
|
+
describe 'test method "build_from_hash"' do
|
548
|
+
it 'builds equivalent model from hash code' do
|
549
|
+
instance_1 = Freeclimb::SMSTenDLCPartnerCampaign.new(
|
550
|
+
account_id: "TS",
|
551
|
+
campaign_id: "TS",
|
552
|
+
status: "ACTIVE",
|
553
|
+
create_date: "2022-07-05T15:17:05Z",
|
554
|
+
brand_id: "TS",
|
555
|
+
usecase: "TS",
|
556
|
+
description: "TS",
|
557
|
+
embedded_link: true,
|
558
|
+
embedded_phone: true,
|
559
|
+
affiliate_marketing: true,
|
560
|
+
number_pool: true,
|
561
|
+
age_gated: true,
|
562
|
+
direct_lending: true,
|
563
|
+
subscriber_optin: true,
|
564
|
+
subscriber_optout: true,
|
565
|
+
subscriber_help: true,
|
566
|
+
sample1: "TS",
|
567
|
+
sample2: "TS",
|
568
|
+
sample3: "TS",
|
569
|
+
sample4: "TS",
|
570
|
+
sample5: "TS",
|
571
|
+
message_flow: "TS",
|
572
|
+
help_message: "TS",
|
573
|
+
optin_keywords: "TS",
|
574
|
+
optout_keywords: "TS",
|
575
|
+
help_keywords: "TS",
|
576
|
+
optin_message: "TS",
|
577
|
+
optout_message: "TS",
|
578
|
+
brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new,
|
579
|
+
)
|
580
|
+
instance_2 = Freeclimb::SMSTenDLCPartnerCampaign.new
|
581
|
+
expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
|
582
|
+
end
|
583
|
+
end
|
584
|
+
|
585
|
+
describe 'test method "_deserialize"' do
|
586
|
+
instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
|
587
|
+
account_id: "TS",
|
588
|
+
campaign_id: "TS",
|
589
|
+
status: "ACTIVE",
|
590
|
+
create_date: "2022-07-05T15:17:05Z",
|
591
|
+
brand_id: "TS",
|
592
|
+
usecase: "TS",
|
593
|
+
description: "TS",
|
594
|
+
embedded_link: true,
|
595
|
+
embedded_phone: true,
|
596
|
+
affiliate_marketing: true,
|
597
|
+
number_pool: true,
|
598
|
+
age_gated: true,
|
599
|
+
direct_lending: true,
|
600
|
+
subscriber_optin: true,
|
601
|
+
subscriber_optout: true,
|
602
|
+
subscriber_help: true,
|
603
|
+
sample1: "TS",
|
604
|
+
sample2: "TS",
|
605
|
+
sample3: "TS",
|
606
|
+
sample4: "TS",
|
607
|
+
sample5: "TS",
|
608
|
+
message_flow: "TS",
|
609
|
+
help_message: "TS",
|
610
|
+
optin_keywords: "TS",
|
611
|
+
optout_keywords: "TS",
|
612
|
+
help_keywords: "TS",
|
613
|
+
optin_message: "TS",
|
614
|
+
optout_message: "TS",
|
615
|
+
brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new,
|
616
|
+
)
|
617
|
+
it 'deserializes the data of account_id' do
|
618
|
+
expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String)
|
619
|
+
end
|
620
|
+
it 'deserializes the data of campaign_id' do
|
621
|
+
expect(instance._deserialize("String", instance.campaign_id)).to be_a_kind_of(String)
|
622
|
+
end
|
623
|
+
it 'deserializes the data of status' do
|
624
|
+
expect(instance._deserialize("String", instance.status)).to be_a_kind_of(String)
|
625
|
+
end
|
626
|
+
it 'deserializes the data of create_date' do
|
627
|
+
expect(instance._deserialize("Time", instance.create_date)).to be_a_kind_of(Time)
|
628
|
+
end
|
629
|
+
it 'deserializes the data of brand_id' do
|
630
|
+
expect(instance._deserialize("String", instance.brand_id)).to be_a_kind_of(String)
|
631
|
+
end
|
632
|
+
it 'deserializes the data of usecase' do
|
633
|
+
expect(instance._deserialize("String", instance.usecase)).to be_a_kind_of(String)
|
634
|
+
end
|
635
|
+
it 'deserializes the data of description' do
|
636
|
+
expect(instance._deserialize("String", instance.description)).to be_a_kind_of(String)
|
637
|
+
end
|
638
|
+
it 'deserializes the data of embedded_link' do
|
639
|
+
expect(instance._deserialize("Boolean", instance.embedded_link)).to be_a_kind_of(TrueClass)
|
640
|
+
end
|
641
|
+
it 'deserializes the data of embedded_phone' do
|
642
|
+
expect(instance._deserialize("Boolean", instance.embedded_phone)).to be_a_kind_of(TrueClass)
|
643
|
+
end
|
644
|
+
it 'deserializes the data of affiliate_marketing' do
|
645
|
+
expect(instance._deserialize("Boolean", instance.affiliate_marketing)).to be_a_kind_of(TrueClass)
|
646
|
+
end
|
647
|
+
it 'deserializes the data of number_pool' do
|
648
|
+
expect(instance._deserialize("Boolean", instance.number_pool)).to be_a_kind_of(TrueClass)
|
649
|
+
end
|
650
|
+
it 'deserializes the data of age_gated' do
|
651
|
+
expect(instance._deserialize("Boolean", instance.age_gated)).to be_a_kind_of(TrueClass)
|
652
|
+
end
|
653
|
+
it 'deserializes the data of direct_lending' do
|
654
|
+
expect(instance._deserialize("Boolean", instance.direct_lending)).to be_a_kind_of(TrueClass)
|
655
|
+
end
|
656
|
+
it 'deserializes the data of subscriber_optin' do
|
657
|
+
expect(instance._deserialize("Boolean", instance.subscriber_optin)).to be_a_kind_of(TrueClass)
|
658
|
+
end
|
659
|
+
it 'deserializes the data of subscriber_optout' do
|
660
|
+
expect(instance._deserialize("Boolean", instance.subscriber_optout)).to be_a_kind_of(TrueClass)
|
661
|
+
end
|
662
|
+
it 'deserializes the data of subscriber_help' do
|
663
|
+
expect(instance._deserialize("Boolean", instance.subscriber_help)).to be_a_kind_of(TrueClass)
|
664
|
+
end
|
665
|
+
it 'deserializes the data of sample1' do
|
666
|
+
expect(instance._deserialize("String", instance.sample1)).to be_a_kind_of(String)
|
667
|
+
end
|
668
|
+
it 'deserializes the data of sample2' do
|
669
|
+
expect(instance._deserialize("String", instance.sample2)).to be_a_kind_of(String)
|
670
|
+
end
|
671
|
+
it 'deserializes the data of sample3' do
|
672
|
+
expect(instance._deserialize("String", instance.sample3)).to be_a_kind_of(String)
|
673
|
+
end
|
674
|
+
it 'deserializes the data of sample4' do
|
675
|
+
expect(instance._deserialize("String", instance.sample4)).to be_a_kind_of(String)
|
676
|
+
end
|
677
|
+
it 'deserializes the data of sample5' do
|
678
|
+
expect(instance._deserialize("String", instance.sample5)).to be_a_kind_of(String)
|
679
|
+
end
|
680
|
+
it 'deserializes the data of message_flow' do
|
681
|
+
expect(instance._deserialize("String", instance.message_flow)).to be_a_kind_of(String)
|
682
|
+
end
|
683
|
+
it 'deserializes the data of help_message' do
|
684
|
+
expect(instance._deserialize("String", instance.help_message)).to be_a_kind_of(String)
|
685
|
+
end
|
686
|
+
it 'deserializes the data of optin_keywords' do
|
687
|
+
expect(instance._deserialize("String", instance.optin_keywords)).to be_a_kind_of(String)
|
688
|
+
end
|
689
|
+
it 'deserializes the data of optout_keywords' do
|
690
|
+
expect(instance._deserialize("String", instance.optout_keywords)).to be_a_kind_of(String)
|
691
|
+
end
|
692
|
+
it 'deserializes the data of help_keywords' do
|
693
|
+
expect(instance._deserialize("String", instance.help_keywords)).to be_a_kind_of(String)
|
694
|
+
end
|
695
|
+
it 'deserializes the data of optin_message' do
|
696
|
+
expect(instance._deserialize("String", instance.optin_message)).to be_a_kind_of(String)
|
697
|
+
end
|
698
|
+
it 'deserializes the data of optout_message' do
|
699
|
+
expect(instance._deserialize("String", instance.optout_message)).to be_a_kind_of(String)
|
700
|
+
end
|
701
|
+
it 'deserializes the data of brand' do
|
702
|
+
expect(instance._deserialize("Object", instance.brand)).to be_a_kind_of(Freeclimb::SMSTenDLCPartnerCampaignBrand)
|
703
|
+
end
|
704
|
+
end
|
705
|
+
|
706
|
+
describe 'test method "to_s"' do
|
707
|
+
it 'returns the string representation of the object' do
|
708
|
+
instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
|
709
|
+
account_id: "TS",
|
710
|
+
campaign_id: "TS",
|
711
|
+
status: "ACTIVE",
|
712
|
+
create_date: "2022-07-05T15:17:05Z",
|
713
|
+
brand_id: "TS",
|
714
|
+
usecase: "TS",
|
715
|
+
description: "TS",
|
716
|
+
embedded_link: true,
|
717
|
+
embedded_phone: true,
|
718
|
+
affiliate_marketing: true,
|
719
|
+
number_pool: true,
|
720
|
+
age_gated: true,
|
721
|
+
direct_lending: true,
|
722
|
+
subscriber_optin: true,
|
723
|
+
subscriber_optout: true,
|
724
|
+
subscriber_help: true,
|
725
|
+
sample1: "TS",
|
726
|
+
sample2: "TS",
|
727
|
+
sample3: "TS",
|
728
|
+
sample4: "TS",
|
729
|
+
sample5: "TS",
|
730
|
+
message_flow: "TS",
|
731
|
+
help_message: "TS",
|
732
|
+
optin_keywords: "TS",
|
733
|
+
optout_keywords: "TS",
|
734
|
+
help_keywords: "TS",
|
735
|
+
optin_message: "TS",
|
736
|
+
optout_message: "TS",
|
737
|
+
brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new,
|
738
|
+
)
|
739
|
+
expect(instance.to_s).to eq(instance.to_hash.to_s)
|
740
|
+
end
|
741
|
+
end
|
742
|
+
|
743
|
+
describe 'test method "to_hash"' do
|
744
|
+
it 'returns the object in the form of hash' do
|
745
|
+
instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
|
746
|
+
account_id: "TS",
|
747
|
+
campaign_id: "TS",
|
748
|
+
status: "ACTIVE",
|
749
|
+
create_date: "2022-07-05T15:17:05Z",
|
750
|
+
brand_id: "TS",
|
751
|
+
usecase: "TS",
|
752
|
+
description: "TS",
|
753
|
+
embedded_link: true,
|
754
|
+
embedded_phone: true,
|
755
|
+
affiliate_marketing: true,
|
756
|
+
number_pool: true,
|
757
|
+
age_gated: true,
|
758
|
+
direct_lending: true,
|
759
|
+
subscriber_optin: true,
|
760
|
+
subscriber_optout: true,
|
761
|
+
subscriber_help: true,
|
762
|
+
sample1: "TS",
|
763
|
+
sample2: "TS",
|
764
|
+
sample3: "TS",
|
765
|
+
sample4: "TS",
|
766
|
+
sample5: "TS",
|
767
|
+
message_flow: "TS",
|
768
|
+
help_message: "TS",
|
769
|
+
optin_keywords: "TS",
|
770
|
+
optout_keywords: "TS",
|
771
|
+
help_keywords: "TS",
|
772
|
+
optin_message: "TS",
|
773
|
+
optout_message: "TS",
|
774
|
+
brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new,
|
775
|
+
)
|
776
|
+
expect(instance.to_hash).to be_a_kind_of(Hash)
|
777
|
+
end
|
778
|
+
it 'creates equal hash for two equal objects' do
|
779
|
+
obj = Object.new()
|
780
|
+
instance_1 = Freeclimb::SMSTenDLCPartnerCampaign.new(
|
781
|
+
account_id: "TS",
|
782
|
+
campaign_id: "TS",
|
783
|
+
status: "ACTIVE",
|
784
|
+
create_date: "2022-07-05T15:17:05Z",
|
785
|
+
brand_id: "TS",
|
786
|
+
usecase: "TS",
|
787
|
+
description: "TS",
|
788
|
+
embedded_link: true,
|
789
|
+
embedded_phone: true,
|
790
|
+
affiliate_marketing: true,
|
791
|
+
number_pool: true,
|
792
|
+
age_gated: true,
|
793
|
+
direct_lending: true,
|
794
|
+
subscriber_optin: true,
|
795
|
+
subscriber_optout: true,
|
796
|
+
subscriber_help: true,
|
797
|
+
sample1: "TS",
|
798
|
+
sample2: "TS",
|
799
|
+
sample3: "TS",
|
800
|
+
sample4: "TS",
|
801
|
+
sample5: "TS",
|
802
|
+
message_flow: "TS",
|
803
|
+
help_message: "TS",
|
804
|
+
optin_keywords: "TS",
|
805
|
+
optout_keywords: "TS",
|
806
|
+
help_keywords: "TS",
|
807
|
+
optin_message: "TS",
|
808
|
+
optout_message: "TS",
|
809
|
+
brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new,
|
810
|
+
)
|
811
|
+
instance_2 = Freeclimb::SMSTenDLCPartnerCampaign.new(
|
812
|
+
account_id: "TS",
|
813
|
+
campaign_id: "TS",
|
814
|
+
status: "ACTIVE",
|
815
|
+
create_date: "2022-07-05T15:17:05Z",
|
816
|
+
brand_id: "TS",
|
817
|
+
usecase: "TS",
|
818
|
+
description: "TS",
|
819
|
+
embedded_link: true,
|
820
|
+
embedded_phone: true,
|
821
|
+
affiliate_marketing: true,
|
822
|
+
number_pool: true,
|
823
|
+
age_gated: true,
|
824
|
+
direct_lending: true,
|
825
|
+
subscriber_optin: true,
|
826
|
+
subscriber_optout: true,
|
827
|
+
subscriber_help: true,
|
828
|
+
sample1: "TS",
|
829
|
+
sample2: "TS",
|
830
|
+
sample3: "TS",
|
831
|
+
sample4: "TS",
|
832
|
+
sample5: "TS",
|
833
|
+
message_flow: "TS",
|
834
|
+
help_message: "TS",
|
835
|
+
optin_keywords: "TS",
|
836
|
+
optout_keywords: "TS",
|
837
|
+
help_keywords: "TS",
|
838
|
+
optin_message: "TS",
|
839
|
+
optout_message: "TS",
|
840
|
+
brand: Freeclimb::SMSTenDLCPartnerCampaignBrand.new,
|
841
|
+
)
|
842
|
+
expect(instance_1.to_hash).to eq(instance_2.to_hash)
|
843
|
+
end
|
844
|
+
end
|
845
|
+
|
846
|
+
describe 'test method "_to_hash"' do
|
847
|
+
instance = Freeclimb::SMSTenDLCPartnerCampaign.new(
|
848
|
+
account_id: "TS",
|
849
|
+
|
850
|
+
campaign_id: "TS",
|
851
|
+
|
852
|
+
status: "ACTIVE",
|
853
|
+
|
854
|
+
create_date: "2022-07-05T15:17:05Z",
|
855
|
+
|
856
|
+
brand_id: "TS",
|
857
|
+
|
858
|
+
usecase: "TS",
|
859
|
+
|
860
|
+
description: "TS",
|
861
|
+
|
862
|
+
embedded_link: true,
|
863
|
+
|
864
|
+
embedded_phone: true,
|
865
|
+
|
866
|
+
affiliate_marketing: true,
|
867
|
+
|
868
|
+
number_pool: true,
|
869
|
+
|
870
|
+
age_gated: true,
|
871
|
+
|
872
|
+
direct_lending: true,
|
873
|
+
|
874
|
+
subscriber_optin: true,
|
875
|
+
|
876
|
+
subscriber_optout: true,
|
877
|
+
|
878
|
+
subscriber_help: true,
|
879
|
+
|
880
|
+
sample1: "TS",
|
881
|
+
|
882
|
+
sample2: "TS",
|
883
|
+
|
884
|
+
sample3: "TS",
|
885
|
+
|
886
|
+
sample4: "TS",
|
887
|
+
|
888
|
+
sample5: "TS",
|
889
|
+
|
890
|
+
message_flow: "TS",
|
891
|
+
|
892
|
+
help_message: "TS",
|
893
|
+
|
894
|
+
optin_keywords: "TS",
|
895
|
+
|
896
|
+
optout_keywords: "TS",
|
897
|
+
|
898
|
+
help_keywords: "TS",
|
899
|
+
|
900
|
+
optin_message: "TS",
|
901
|
+
|
902
|
+
optout_message: "TS",
|
903
|
+
|
904
|
+
)
|
905
|
+
it 'returns account_id in the form of hash' do
|
906
|
+
expect(instance._to_hash(instance.account_id)).to eq(instance.account_id)
|
907
|
+
end
|
908
|
+
it 'returns campaign_id in the form of hash' do
|
909
|
+
expect(instance._to_hash(instance.campaign_id)).to eq(instance.campaign_id)
|
910
|
+
end
|
911
|
+
it 'returns status in the form of hash' do
|
912
|
+
expect(instance._to_hash(instance.status)).to eq(instance.status)
|
913
|
+
end
|
914
|
+
it 'returns create_date in the form of hash' do
|
915
|
+
expect(instance._to_hash(instance.create_date)).to eq(instance.create_date)
|
916
|
+
end
|
917
|
+
it 'returns brand_id in the form of hash' do
|
918
|
+
expect(instance._to_hash(instance.brand_id)).to eq(instance.brand_id)
|
919
|
+
end
|
920
|
+
it 'returns usecase in the form of hash' do
|
921
|
+
expect(instance._to_hash(instance.usecase)).to eq(instance.usecase)
|
922
|
+
end
|
923
|
+
it 'returns description in the form of hash' do
|
924
|
+
expect(instance._to_hash(instance.description)).to eq(instance.description)
|
925
|
+
end
|
926
|
+
it 'returns embedded_link in the form of hash' do
|
927
|
+
expect(instance._to_hash(instance.embedded_link)).to eq(instance.embedded_link)
|
928
|
+
end
|
929
|
+
it 'returns embedded_phone in the form of hash' do
|
930
|
+
expect(instance._to_hash(instance.embedded_phone)).to eq(instance.embedded_phone)
|
931
|
+
end
|
932
|
+
it 'returns affiliate_marketing in the form of hash' do
|
933
|
+
expect(instance._to_hash(instance.affiliate_marketing)).to eq(instance.affiliate_marketing)
|
934
|
+
end
|
935
|
+
it 'returns number_pool in the form of hash' do
|
936
|
+
expect(instance._to_hash(instance.number_pool)).to eq(instance.number_pool)
|
937
|
+
end
|
938
|
+
it 'returns age_gated in the form of hash' do
|
939
|
+
expect(instance._to_hash(instance.age_gated)).to eq(instance.age_gated)
|
940
|
+
end
|
941
|
+
it 'returns direct_lending in the form of hash' do
|
942
|
+
expect(instance._to_hash(instance.direct_lending)).to eq(instance.direct_lending)
|
943
|
+
end
|
944
|
+
it 'returns subscriber_optin in the form of hash' do
|
945
|
+
expect(instance._to_hash(instance.subscriber_optin)).to eq(instance.subscriber_optin)
|
946
|
+
end
|
947
|
+
it 'returns subscriber_optout in the form of hash' do
|
948
|
+
expect(instance._to_hash(instance.subscriber_optout)).to eq(instance.subscriber_optout)
|
949
|
+
end
|
950
|
+
it 'returns subscriber_help in the form of hash' do
|
951
|
+
expect(instance._to_hash(instance.subscriber_help)).to eq(instance.subscriber_help)
|
952
|
+
end
|
953
|
+
it 'returns sample1 in the form of hash' do
|
954
|
+
expect(instance._to_hash(instance.sample1)).to eq(instance.sample1)
|
955
|
+
end
|
956
|
+
it 'returns sample2 in the form of hash' do
|
957
|
+
expect(instance._to_hash(instance.sample2)).to eq(instance.sample2)
|
958
|
+
end
|
959
|
+
it 'returns sample3 in the form of hash' do
|
960
|
+
expect(instance._to_hash(instance.sample3)).to eq(instance.sample3)
|
961
|
+
end
|
962
|
+
it 'returns sample4 in the form of hash' do
|
963
|
+
expect(instance._to_hash(instance.sample4)).to eq(instance.sample4)
|
964
|
+
end
|
965
|
+
it 'returns sample5 in the form of hash' do
|
966
|
+
expect(instance._to_hash(instance.sample5)).to eq(instance.sample5)
|
967
|
+
end
|
968
|
+
it 'returns message_flow in the form of hash' do
|
969
|
+
expect(instance._to_hash(instance.message_flow)).to eq(instance.message_flow)
|
970
|
+
end
|
971
|
+
it 'returns help_message in the form of hash' do
|
972
|
+
expect(instance._to_hash(instance.help_message)).to eq(instance.help_message)
|
973
|
+
end
|
974
|
+
it 'returns optin_keywords in the form of hash' do
|
975
|
+
expect(instance._to_hash(instance.optin_keywords)).to eq(instance.optin_keywords)
|
976
|
+
end
|
977
|
+
it 'returns optout_keywords in the form of hash' do
|
978
|
+
expect(instance._to_hash(instance.optout_keywords)).to eq(instance.optout_keywords)
|
979
|
+
end
|
980
|
+
it 'returns help_keywords in the form of hash' do
|
981
|
+
expect(instance._to_hash(instance.help_keywords)).to eq(instance.help_keywords)
|
982
|
+
end
|
983
|
+
it 'returns optin_message in the form of hash' do
|
984
|
+
expect(instance._to_hash(instance.optin_message)).to eq(instance.optin_message)
|
985
|
+
end
|
986
|
+
it 'returns optout_message in the form of hash' do
|
987
|
+
expect(instance._to_hash(instance.optout_message)).to eq(instance.optout_message)
|
988
|
+
end
|
989
|
+
it 'returns brand in the form of hash' do
|
990
|
+
expect(instance._to_hash(instance.brand)).to eq(instance.brand)
|
991
|
+
end
|
992
|
+
end
|
993
|
+
|
994
|
+
end
|