freeclimb 4.4.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 +8 -2
- data/Gemfile.lock +1 -1
- data/README.md +4 -4
- data/docs/SMSTenDLCCampaign.md +1 -1
- data/lib/freeclimb/version.rb +1 -1
- data/openapi.json +123 -18
- 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 +1070 -64
- data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +294 -9
- data/spec/models/sms_ten_dlc_campaign_spec.rb +875 -38
- data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +294 -9
- data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +365 -11
- data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +823 -35
- data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +294 -9
- 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 +77 -77
@@ -27,207 +27,1213 @@ describe Freeclimb::SMSTenDLCBrand do
|
|
27
27
|
end
|
28
28
|
describe 'test attribute "account_id"' do
|
29
29
|
it 'should work' do
|
30
|
-
|
30
|
+
instance.account_id = "TEST_STRING"
|
31
|
+
expect(instance.account_id).to eq("TEST_STRING")
|
31
32
|
end
|
32
33
|
end
|
33
34
|
|
34
35
|
describe 'test attribute "entity_type"' do
|
35
|
-
it '
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
36
|
+
it 'assigns value PRIVATE_PROFIT' do
|
37
|
+
instance.entity_type = "PRIVATE_PROFIT"
|
38
|
+
expect(instance.entity_type).to eq("PRIVATE_PROFIT")
|
39
|
+
end
|
40
|
+
it 'assigns value PUBLIC_PROFIT' do
|
41
|
+
instance.entity_type = "PUBLIC_PROFIT"
|
42
|
+
expect(instance.entity_type).to eq("PUBLIC_PROFIT")
|
43
|
+
end
|
44
|
+
it 'assigns value NON_PROFIT' do
|
45
|
+
instance.entity_type = "NON_PROFIT"
|
46
|
+
expect(instance.entity_type).to eq("NON_PROFIT")
|
47
|
+
end
|
48
|
+
it 'assigns value GOVERNMENT' do
|
49
|
+
instance.entity_type = "GOVERNMENT"
|
50
|
+
expect(instance.entity_type).to eq("GOVERNMENT")
|
51
|
+
end
|
52
|
+
it 'assigns value SOLE_PROPRIETOR' do
|
53
|
+
instance.entity_type = "SOLE_PROPRIETOR"
|
54
|
+
expect(instance.entity_type).to eq("SOLE_PROPRIETOR")
|
55
|
+
end
|
56
|
+
it 'throws error on invalid enum' do
|
57
|
+
instance = Freeclimb::SMSTenDLCBrand.new
|
58
|
+
expect{instance.entity_type = "INVALID_ENUM"}.to raise_error(ArgumentError)
|
41
59
|
end
|
42
60
|
end
|
43
61
|
|
44
62
|
describe 'test attribute "csp_id"' do
|
45
63
|
it 'should work' do
|
46
|
-
|
64
|
+
instance.csp_id = "TEST_STRING"
|
65
|
+
expect(instance.csp_id).to eq("TEST_STRING")
|
47
66
|
end
|
48
67
|
end
|
49
68
|
|
50
69
|
describe 'test attribute "brand_id"' do
|
51
70
|
it 'should work' do
|
52
|
-
|
71
|
+
instance.brand_id = "TEST_STRING"
|
72
|
+
expect(instance.brand_id).to eq("TEST_STRING")
|
53
73
|
end
|
54
74
|
end
|
55
75
|
|
56
76
|
describe 'test attribute "first_name"' do
|
57
77
|
it 'should work' do
|
58
|
-
|
78
|
+
instance.first_name = "TEST_STRING"
|
79
|
+
expect(instance.first_name).to eq("TEST_STRING")
|
59
80
|
end
|
60
81
|
end
|
61
82
|
|
62
83
|
describe 'test attribute "last_name"' do
|
63
84
|
it 'should work' do
|
64
|
-
|
85
|
+
instance.last_name = "TEST_STRING"
|
86
|
+
expect(instance.last_name).to eq("TEST_STRING")
|
65
87
|
end
|
66
88
|
end
|
67
89
|
|
68
90
|
describe 'test attribute "display_name"' do
|
69
91
|
it 'should work' do
|
70
|
-
|
92
|
+
instance.display_name = "TEST_STRING"
|
93
|
+
expect(instance.display_name).to eq("TEST_STRING")
|
71
94
|
end
|
72
95
|
end
|
73
96
|
|
74
97
|
describe 'test attribute "company_name"' do
|
75
98
|
it 'should work' do
|
76
|
-
|
99
|
+
instance.company_name = "TEST_STRING"
|
100
|
+
expect(instance.company_name).to eq("TEST_STRING")
|
77
101
|
end
|
78
102
|
end
|
79
103
|
|
80
104
|
describe 'test attribute "ein"' do
|
81
105
|
it 'should work' do
|
82
|
-
|
106
|
+
instance.ein = "TEST_STRING"
|
107
|
+
expect(instance.ein).to eq("TEST_STRING")
|
83
108
|
end
|
84
109
|
end
|
85
110
|
|
111
|
+
|
86
112
|
describe 'test attribute "ein_issuing_country"' do
|
87
|
-
it 'should work' do
|
88
|
-
|
113
|
+
it 'should work with length 2' do
|
114
|
+
instance.ein_issuing_country = "TS"
|
115
|
+
expect(instance.ein_issuing_country).to eq("TS")
|
89
116
|
end
|
90
|
-
|
117
|
+
it 'should not work with length > 2' do
|
118
|
+
expect{instance.ein_issuing_country = "TEST_STRING"}.to raise_error(ArgumentError)
|
119
|
+
end
|
120
|
+
end
|
91
121
|
|
92
122
|
describe 'test attribute "phone"' do
|
93
123
|
it 'should work' do
|
94
|
-
|
124
|
+
instance.phone = "TEST_STRING"
|
125
|
+
expect(instance.phone).to eq("TEST_STRING")
|
95
126
|
end
|
96
127
|
end
|
97
128
|
|
98
129
|
describe 'test attribute "street"' do
|
99
130
|
it 'should work' do
|
100
|
-
|
131
|
+
instance.street = "TEST_STRING"
|
132
|
+
expect(instance.street).to eq("TEST_STRING")
|
101
133
|
end
|
102
134
|
end
|
103
135
|
|
104
136
|
describe 'test attribute "city"' do
|
105
137
|
it 'should work' do
|
106
|
-
|
138
|
+
instance.city = "TEST_STRING"
|
139
|
+
expect(instance.city).to eq("TEST_STRING")
|
107
140
|
end
|
108
141
|
end
|
109
142
|
|
110
143
|
describe 'test attribute "state"' do
|
111
144
|
it 'should work' do
|
112
|
-
|
145
|
+
instance.state = "TEST_STRING"
|
146
|
+
expect(instance.state).to eq("TEST_STRING")
|
113
147
|
end
|
114
148
|
end
|
115
149
|
|
150
|
+
|
116
151
|
describe 'test attribute "postal_code"' do
|
117
|
-
it 'should work' do
|
118
|
-
|
152
|
+
it 'should work with length 10' do
|
153
|
+
instance.postal_code = "TEST_STRIN"
|
154
|
+
expect(instance.postal_code).to eq("TEST_STRIN")
|
119
155
|
end
|
120
|
-
|
156
|
+
it 'should not work with length > 10' do
|
157
|
+
expect{instance.postal_code = "TEST_STRING"}.to raise_error(ArgumentError)
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
121
161
|
|
122
162
|
describe 'test attribute "country"' do
|
123
|
-
it 'should work' do
|
124
|
-
|
163
|
+
it 'should work with length 2' do
|
164
|
+
instance.country = "TS"
|
165
|
+
expect(instance.country).to eq("TS")
|
125
166
|
end
|
126
|
-
|
167
|
+
it 'should not work with length > 2' do
|
168
|
+
expect{instance.country = "TEST_STRING"}.to raise_error(ArgumentError)
|
169
|
+
end
|
170
|
+
end
|
127
171
|
|
128
172
|
describe 'test attribute "email"' do
|
129
173
|
it 'should work' do
|
130
|
-
|
174
|
+
instance.email = "TEST_STRING"
|
175
|
+
expect(instance.email).to eq("TEST_STRING")
|
131
176
|
end
|
132
177
|
end
|
133
178
|
|
179
|
+
|
134
180
|
describe 'test attribute "stock_symbol"' do
|
135
|
-
it 'should work' do
|
136
|
-
|
181
|
+
it 'should work with length 10' do
|
182
|
+
instance.stock_symbol = "TEST_STRIN"
|
183
|
+
expect(instance.stock_symbol).to eq("TEST_STRIN")
|
137
184
|
end
|
138
|
-
|
185
|
+
it 'should not work with length > 10' do
|
186
|
+
expect{instance.stock_symbol = "TEST_STRING"}.to raise_error(ArgumentError)
|
187
|
+
end
|
188
|
+
end
|
139
189
|
|
140
190
|
describe 'test attribute "stock_exchange"' do
|
141
|
-
it '
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
191
|
+
it 'assigns value NONE' do
|
192
|
+
instance.stock_exchange = "NONE"
|
193
|
+
expect(instance.stock_exchange).to eq("NONE")
|
194
|
+
end
|
195
|
+
it 'assigns value NASDAQ' do
|
196
|
+
instance.stock_exchange = "NASDAQ"
|
197
|
+
expect(instance.stock_exchange).to eq("NASDAQ")
|
198
|
+
end
|
199
|
+
it 'assigns value NYSE' do
|
200
|
+
instance.stock_exchange = "NYSE"
|
201
|
+
expect(instance.stock_exchange).to eq("NYSE")
|
202
|
+
end
|
203
|
+
it 'assigns value AMEX' do
|
204
|
+
instance.stock_exchange = "AMEX"
|
205
|
+
expect(instance.stock_exchange).to eq("AMEX")
|
206
|
+
end
|
207
|
+
it 'assigns value AMX' do
|
208
|
+
instance.stock_exchange = "AMX"
|
209
|
+
expect(instance.stock_exchange).to eq("AMX")
|
210
|
+
end
|
211
|
+
it 'assigns value ASX' do
|
212
|
+
instance.stock_exchange = "ASX"
|
213
|
+
expect(instance.stock_exchange).to eq("ASX")
|
214
|
+
end
|
215
|
+
it 'assigns value B3' do
|
216
|
+
instance.stock_exchange = "B3"
|
217
|
+
expect(instance.stock_exchange).to eq("B3")
|
218
|
+
end
|
219
|
+
it 'assigns value BME' do
|
220
|
+
instance.stock_exchange = "BME"
|
221
|
+
expect(instance.stock_exchange).to eq("BME")
|
222
|
+
end
|
223
|
+
it 'assigns value BSE' do
|
224
|
+
instance.stock_exchange = "BSE"
|
225
|
+
expect(instance.stock_exchange).to eq("BSE")
|
226
|
+
end
|
227
|
+
it 'assigns value FRA' do
|
228
|
+
instance.stock_exchange = "FRA"
|
229
|
+
expect(instance.stock_exchange).to eq("FRA")
|
230
|
+
end
|
231
|
+
it 'assigns value ICEX' do
|
232
|
+
instance.stock_exchange = "ICEX"
|
233
|
+
expect(instance.stock_exchange).to eq("ICEX")
|
234
|
+
end
|
235
|
+
it 'assigns value JPX' do
|
236
|
+
instance.stock_exchange = "JPX"
|
237
|
+
expect(instance.stock_exchange).to eq("JPX")
|
238
|
+
end
|
239
|
+
it 'assigns value JSE' do
|
240
|
+
instance.stock_exchange = "JSE"
|
241
|
+
expect(instance.stock_exchange).to eq("JSE")
|
242
|
+
end
|
243
|
+
it 'assigns value KRX' do
|
244
|
+
instance.stock_exchange = "KRX"
|
245
|
+
expect(instance.stock_exchange).to eq("KRX")
|
246
|
+
end
|
247
|
+
it 'assigns value LON' do
|
248
|
+
instance.stock_exchange = "LON"
|
249
|
+
expect(instance.stock_exchange).to eq("LON")
|
250
|
+
end
|
251
|
+
it 'assigns value NSE' do
|
252
|
+
instance.stock_exchange = "NSE"
|
253
|
+
expect(instance.stock_exchange).to eq("NSE")
|
254
|
+
end
|
255
|
+
it 'assigns value OMX' do
|
256
|
+
instance.stock_exchange = "OMX"
|
257
|
+
expect(instance.stock_exchange).to eq("OMX")
|
258
|
+
end
|
259
|
+
it 'assigns value SEHK' do
|
260
|
+
instance.stock_exchange = "SEHK"
|
261
|
+
expect(instance.stock_exchange).to eq("SEHK")
|
262
|
+
end
|
263
|
+
it 'assigns value SGX' do
|
264
|
+
instance.stock_exchange = "SGX"
|
265
|
+
expect(instance.stock_exchange).to eq("SGX")
|
266
|
+
end
|
267
|
+
it 'assigns value SSE' do
|
268
|
+
instance.stock_exchange = "SSE"
|
269
|
+
expect(instance.stock_exchange).to eq("SSE")
|
270
|
+
end
|
271
|
+
it 'assigns value STO' do
|
272
|
+
instance.stock_exchange = "STO"
|
273
|
+
expect(instance.stock_exchange).to eq("STO")
|
274
|
+
end
|
275
|
+
it 'assigns value SWX' do
|
276
|
+
instance.stock_exchange = "SWX"
|
277
|
+
expect(instance.stock_exchange).to eq("SWX")
|
278
|
+
end
|
279
|
+
it 'assigns value SZSE' do
|
280
|
+
instance.stock_exchange = "SZSE"
|
281
|
+
expect(instance.stock_exchange).to eq("SZSE")
|
282
|
+
end
|
283
|
+
it 'assigns value TSX' do
|
284
|
+
instance.stock_exchange = "TSX"
|
285
|
+
expect(instance.stock_exchange).to eq("TSX")
|
286
|
+
end
|
287
|
+
it 'assigns value TWSE' do
|
288
|
+
instance.stock_exchange = "TWSE"
|
289
|
+
expect(instance.stock_exchange).to eq("TWSE")
|
290
|
+
end
|
291
|
+
it 'assigns value VSE' do
|
292
|
+
instance.stock_exchange = "VSE"
|
293
|
+
expect(instance.stock_exchange).to eq("VSE")
|
294
|
+
end
|
295
|
+
it 'assigns value OTHER' do
|
296
|
+
instance.stock_exchange = "OTHER"
|
297
|
+
expect(instance.stock_exchange).to eq("OTHER")
|
298
|
+
end
|
299
|
+
it 'throws error on invalid enum' do
|
300
|
+
instance = Freeclimb::SMSTenDLCBrand.new
|
301
|
+
expect{instance.stock_exchange = "INVALID_ENUM"}.to raise_error(ArgumentError)
|
147
302
|
end
|
148
303
|
end
|
149
304
|
|
150
305
|
describe 'test attribute "ip_address"' do
|
151
306
|
it 'should work' do
|
152
|
-
|
307
|
+
instance.ip_address = "TEST_STRING"
|
308
|
+
expect(instance.ip_address).to eq("TEST_STRING")
|
153
309
|
end
|
154
310
|
end
|
155
311
|
|
156
312
|
describe 'test attribute "website"' do
|
157
313
|
it 'should work' do
|
158
|
-
|
314
|
+
instance.website = "TEST_STRING"
|
315
|
+
expect(instance.website).to eq("TEST_STRING")
|
159
316
|
end
|
160
317
|
end
|
161
318
|
|
162
319
|
describe 'test attribute "brand_relationship"' do
|
163
|
-
it '
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
320
|
+
it 'assigns value BASIC_ACCOUNT' do
|
321
|
+
instance.brand_relationship = "BASIC_ACCOUNT"
|
322
|
+
expect(instance.brand_relationship).to eq("BASIC_ACCOUNT")
|
323
|
+
end
|
324
|
+
it 'assigns value SMALL_ACCOUNT' do
|
325
|
+
instance.brand_relationship = "SMALL_ACCOUNT"
|
326
|
+
expect(instance.brand_relationship).to eq("SMALL_ACCOUNT")
|
327
|
+
end
|
328
|
+
it 'assigns value MEDIUM_ACCOUNT' do
|
329
|
+
instance.brand_relationship = "MEDIUM_ACCOUNT"
|
330
|
+
expect(instance.brand_relationship).to eq("MEDIUM_ACCOUNT")
|
331
|
+
end
|
332
|
+
it 'assigns value LARGE_ACCOUNT' do
|
333
|
+
instance.brand_relationship = "LARGE_ACCOUNT"
|
334
|
+
expect(instance.brand_relationship).to eq("LARGE_ACCOUNT")
|
335
|
+
end
|
336
|
+
it 'assigns value KEY_ACCOUNT' do
|
337
|
+
instance.brand_relationship = "KEY_ACCOUNT"
|
338
|
+
expect(instance.brand_relationship).to eq("KEY_ACCOUNT")
|
339
|
+
end
|
340
|
+
it 'throws error on invalid enum' do
|
341
|
+
instance = Freeclimb::SMSTenDLCBrand.new
|
342
|
+
expect{instance.brand_relationship = "INVALID_ENUM"}.to raise_error(ArgumentError)
|
169
343
|
end
|
170
344
|
end
|
171
345
|
|
172
346
|
describe 'test attribute "vertical"' do
|
173
347
|
it 'should work' do
|
174
|
-
|
348
|
+
instance.vertical = "TEST_STRING"
|
349
|
+
expect(instance.vertical).to eq("TEST_STRING")
|
175
350
|
end
|
176
351
|
end
|
177
352
|
|
178
353
|
describe 'test attribute "alt_business_id"' do
|
179
354
|
it 'should work' do
|
180
|
-
|
355
|
+
instance.alt_business_id = "TEST_STRING"
|
356
|
+
expect(instance.alt_business_id).to eq("TEST_STRING")
|
181
357
|
end
|
182
358
|
end
|
183
359
|
|
184
360
|
describe 'test attribute "alt_business_id_type"' do
|
185
|
-
it '
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
361
|
+
it 'assigns value NONE' do
|
362
|
+
instance.alt_business_id_type = "NONE"
|
363
|
+
expect(instance.alt_business_id_type).to eq("NONE")
|
364
|
+
end
|
365
|
+
it 'assigns value DUNS' do
|
366
|
+
instance.alt_business_id_type = "DUNS"
|
367
|
+
expect(instance.alt_business_id_type).to eq("DUNS")
|
368
|
+
end
|
369
|
+
it 'assigns value GIIN' do
|
370
|
+
instance.alt_business_id_type = "GIIN"
|
371
|
+
expect(instance.alt_business_id_type).to eq("GIIN")
|
372
|
+
end
|
373
|
+
it 'assigns value LEI' do
|
374
|
+
instance.alt_business_id_type = "LEI"
|
375
|
+
expect(instance.alt_business_id_type).to eq("LEI")
|
376
|
+
end
|
377
|
+
it 'throws error on invalid enum' do
|
378
|
+
instance = Freeclimb::SMSTenDLCBrand.new
|
379
|
+
expect{instance.alt_business_id_type = "INVALID_ENUM"}.to raise_error(ArgumentError)
|
191
380
|
end
|
192
381
|
end
|
193
382
|
|
194
383
|
describe 'test attribute "universal_ein"' do
|
195
384
|
it 'should work' do
|
196
|
-
|
385
|
+
instance.universal_ein = "TEST_STRING"
|
386
|
+
expect(instance.universal_ein).to eq("TEST_STRING")
|
197
387
|
end
|
198
388
|
end
|
199
389
|
|
200
390
|
describe 'test attribute "reference_id"' do
|
201
391
|
it 'should work' do
|
202
|
-
|
392
|
+
instance.reference_id = "TEST_STRING"
|
393
|
+
expect(instance.reference_id).to eq("TEST_STRING")
|
203
394
|
end
|
204
395
|
end
|
205
396
|
|
206
397
|
describe 'test attribute "optional_attributes"' do
|
207
398
|
it 'should work' do
|
208
|
-
|
399
|
+
testObject = Object.new()
|
400
|
+
instance.optional_attributes = testObject
|
401
|
+
expect(instance.optional_attributes).to eq(testObject)
|
209
402
|
end
|
210
403
|
end
|
211
404
|
|
212
405
|
describe 'test attribute "mock"' do
|
213
406
|
it 'should work' do
|
214
|
-
|
407
|
+
instance.mock = false
|
408
|
+
expect(instance.mock).to eq(false)
|
215
409
|
end
|
216
410
|
end
|
217
411
|
|
218
412
|
describe 'test attribute "identity_status"' do
|
219
|
-
it '
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
413
|
+
it 'assigns value SELF_DECLARED' do
|
414
|
+
instance.identity_status = "SELF_DECLARED"
|
415
|
+
expect(instance.identity_status).to eq("SELF_DECLARED")
|
416
|
+
end
|
417
|
+
it 'assigns value UNVERIFIED' do
|
418
|
+
instance.identity_status = "UNVERIFIED"
|
419
|
+
expect(instance.identity_status).to eq("UNVERIFIED")
|
420
|
+
end
|
421
|
+
it 'assigns value VERIFIED' do
|
422
|
+
instance.identity_status = "VERIFIED"
|
423
|
+
expect(instance.identity_status).to eq("VERIFIED")
|
424
|
+
end
|
425
|
+
it 'assigns value VETTED_VERIFIED' do
|
426
|
+
instance.identity_status = "VETTED_VERIFIED"
|
427
|
+
expect(instance.identity_status).to eq("VETTED_VERIFIED")
|
428
|
+
end
|
429
|
+
it 'throws error on invalid enum' do
|
430
|
+
instance = Freeclimb::SMSTenDLCBrand.new
|
431
|
+
expect{instance.identity_status = "INVALID_ENUM"}.to raise_error(ArgumentError)
|
225
432
|
end
|
226
433
|
end
|
227
434
|
|
228
435
|
describe 'test attribute "create_date"' do
|
229
436
|
it 'should work' do
|
230
|
-
|
437
|
+
instance.create_date = "2022-07-05T15:17:05Z"
|
438
|
+
expect(instance.create_date).to eq("2022-07-05T15:17:05Z")
|
439
|
+
end
|
440
|
+
end
|
441
|
+
|
442
|
+
describe 'test method "initialize"' do
|
443
|
+
it 'properly initializes with values' do
|
444
|
+
expect{instance = Freeclimb::SMSTenDLCBrand.new(
|
445
|
+
account_id: "TS",
|
446
|
+
entity_type: "PRIVATE_PROFIT",
|
447
|
+
csp_id: "TS",
|
448
|
+
brand_id: "TS",
|
449
|
+
first_name: "TS",
|
450
|
+
last_name: "TS",
|
451
|
+
display_name: "TS",
|
452
|
+
company_name: "TS",
|
453
|
+
ein: "TS",
|
454
|
+
ein_issuing_country: "TS",
|
455
|
+
phone: "TS",
|
456
|
+
street: "TS",
|
457
|
+
city: "TS",
|
458
|
+
state: "TS",
|
459
|
+
postal_code: "TS",
|
460
|
+
country: "TS",
|
461
|
+
email: "TS",
|
462
|
+
stock_symbol: "TS",
|
463
|
+
stock_exchange: "NONE",
|
464
|
+
ip_address: "TS",
|
465
|
+
website: "TS",
|
466
|
+
brand_relationship: "BASIC_ACCOUNT",
|
467
|
+
vertical: "TS",
|
468
|
+
alt_business_id: "TS",
|
469
|
+
alt_business_id_type: "NONE",
|
470
|
+
universal_ein: "TS",
|
471
|
+
reference_id: "TS",
|
472
|
+
optional_attributes: Hash.new(),
|
473
|
+
mock: true,
|
474
|
+
identity_status: "SELF_DECLARED",
|
475
|
+
create_date: "2022-07-05T15:17:05Z",
|
476
|
+
)}.not_to raise_error()
|
477
|
+
end
|
478
|
+
it 'fails to initialize with input argument that is not a hash in Freeclimb::SMSTenDLCBrand' do
|
479
|
+
expect{instance = Freeclimb::SMSTenDLCBrand.new(
|
480
|
+
account_id: "TS",
|
481
|
+
entity_type: "PRIVATE_PROFIT",
|
482
|
+
csp_id: "TS",
|
483
|
+
brand_id: "TS",
|
484
|
+
first_name: "TS",
|
485
|
+
last_name: "TS",
|
486
|
+
display_name: "TS",
|
487
|
+
company_name: "TS",
|
488
|
+
ein: "TS",
|
489
|
+
ein_issuing_country: "TS",
|
490
|
+
phone: "TS",
|
491
|
+
street: "TS",
|
492
|
+
city: "TS",
|
493
|
+
state: "TS",
|
494
|
+
postal_code: "TS",
|
495
|
+
country: "TS",
|
496
|
+
email: "TS",
|
497
|
+
stock_symbol: "TS",
|
498
|
+
stock_exchange: "NONE",
|
499
|
+
ip_address: "TS",
|
500
|
+
website: "TS",
|
501
|
+
brand_relationship: "BASIC_ACCOUNT",
|
502
|
+
vertical: "TS",
|
503
|
+
alt_business_id: "TS",
|
504
|
+
alt_business_id_type: "NONE",
|
505
|
+
universal_ein: "TS",
|
506
|
+
reference_id: "TS",
|
507
|
+
optional_attributes: Hash.new(),
|
508
|
+
mock: true,
|
509
|
+
identity_status: "SELF_DECLARED",
|
510
|
+
create_date: "2022-07-05T15:17:05Z",
|
511
|
+
invalid_attribute: true
|
512
|
+
)}.to raise_error(ArgumentError)
|
513
|
+
end
|
514
|
+
it 'fails to initialize with invalid attribute' do
|
515
|
+
expect{instance = Freeclimb::SMSTenDLCBrand.new(
|
516
|
+
account_id: "TS",
|
517
|
+
entity_type: "PRIVATE_PROFIT",
|
518
|
+
csp_id: "TS",
|
519
|
+
brand_id: "TS",
|
520
|
+
first_name: "TS",
|
521
|
+
last_name: "TS",
|
522
|
+
display_name: "TS",
|
523
|
+
company_name: "TS",
|
524
|
+
ein: "TS",
|
525
|
+
ein_issuing_country: "TS",
|
526
|
+
phone: "TS",
|
527
|
+
street: "TS",
|
528
|
+
city: "TS",
|
529
|
+
state: "TS",
|
530
|
+
postal_code: "TS",
|
531
|
+
country: "TS",
|
532
|
+
email: "TS",
|
533
|
+
stock_symbol: "TS",
|
534
|
+
stock_exchange: "NONE",
|
535
|
+
ip_address: "TS",
|
536
|
+
website: "TS",
|
537
|
+
brand_relationship: "BASIC_ACCOUNT",
|
538
|
+
vertical: "TS",
|
539
|
+
alt_business_id: "TS",
|
540
|
+
alt_business_id_type: "NONE",
|
541
|
+
universal_ein: "TS",
|
542
|
+
reference_id: "TS",
|
543
|
+
optional_attributes: Hash.new(),
|
544
|
+
mock: true,
|
545
|
+
identity_status: "SELF_DECLARED",
|
546
|
+
create_date: "2022-07-05T15:17:05Z",
|
547
|
+
invalid_attribute: true
|
548
|
+
)}.to raise_error(ArgumentError)
|
549
|
+
end
|
550
|
+
end
|
551
|
+
|
552
|
+
describe 'test method "valid"' do
|
553
|
+
it 'checks if properties are valid' do
|
554
|
+
instance = Freeclimb::SMSTenDLCBrand.new(
|
555
|
+
account_id: "TS",
|
556
|
+
entity_type: "PRIVATE_PROFIT",
|
557
|
+
csp_id: "TS",
|
558
|
+
brand_id: "TS",
|
559
|
+
first_name: "TS",
|
560
|
+
last_name: "TS",
|
561
|
+
display_name: "TS",
|
562
|
+
company_name: "TS",
|
563
|
+
ein: "TS",
|
564
|
+
ein_issuing_country: "TS",
|
565
|
+
phone: "TS",
|
566
|
+
street: "TS",
|
567
|
+
city: "TS",
|
568
|
+
state: "TS",
|
569
|
+
postal_code: "TS",
|
570
|
+
country: "TS",
|
571
|
+
email: "TS",
|
572
|
+
stock_symbol: "TS",
|
573
|
+
stock_exchange: "NONE",
|
574
|
+
ip_address: "TS",
|
575
|
+
website: "TS",
|
576
|
+
brand_relationship: "BASIC_ACCOUNT",
|
577
|
+
vertical: "TS",
|
578
|
+
alt_business_id: "TS",
|
579
|
+
alt_business_id_type: "NONE",
|
580
|
+
universal_ein: "TS",
|
581
|
+
reference_id: "TS",
|
582
|
+
optional_attributes: Hash.new(),
|
583
|
+
mock: true,
|
584
|
+
identity_status: "SELF_DECLARED",
|
585
|
+
create_date: "2022-07-05T15:17:05Z",
|
586
|
+
)
|
587
|
+
expect(instance.valid?).to eq(true)
|
588
|
+
end
|
589
|
+
end
|
590
|
+
|
591
|
+
describe 'test method "eql?"' do
|
592
|
+
it 'checks if objects are equal' do
|
593
|
+
obj = Object.new()
|
594
|
+
instance_1 = Freeclimb::SMSTenDLCBrand.new(
|
595
|
+
account_id: "TS",
|
596
|
+
entity_type: "PRIVATE_PROFIT",
|
597
|
+
csp_id: "TS",
|
598
|
+
brand_id: "TS",
|
599
|
+
first_name: "TS",
|
600
|
+
last_name: "TS",
|
601
|
+
display_name: "TS",
|
602
|
+
company_name: "TS",
|
603
|
+
ein: "TS",
|
604
|
+
ein_issuing_country: "TS",
|
605
|
+
phone: "TS",
|
606
|
+
street: "TS",
|
607
|
+
city: "TS",
|
608
|
+
state: "TS",
|
609
|
+
postal_code: "TS",
|
610
|
+
country: "TS",
|
611
|
+
email: "TS",
|
612
|
+
stock_symbol: "TS",
|
613
|
+
stock_exchange: "NONE",
|
614
|
+
ip_address: "TS",
|
615
|
+
website: "TS",
|
616
|
+
brand_relationship: "BASIC_ACCOUNT",
|
617
|
+
vertical: "TS",
|
618
|
+
alt_business_id: "TS",
|
619
|
+
alt_business_id_type: "NONE",
|
620
|
+
universal_ein: "TS",
|
621
|
+
reference_id: "TS",
|
622
|
+
mock: true,
|
623
|
+
identity_status: "SELF_DECLARED",
|
624
|
+
)
|
625
|
+
instance_2 = Freeclimb::SMSTenDLCBrand.new(
|
626
|
+
account_id: "TS",
|
627
|
+
entity_type: "PRIVATE_PROFIT",
|
628
|
+
csp_id: "TS",
|
629
|
+
brand_id: "TS",
|
630
|
+
first_name: "TS",
|
631
|
+
last_name: "TS",
|
632
|
+
display_name: "TS",
|
633
|
+
company_name: "TS",
|
634
|
+
ein: "TS",
|
635
|
+
ein_issuing_country: "TS",
|
636
|
+
phone: "TS",
|
637
|
+
street: "TS",
|
638
|
+
city: "TS",
|
639
|
+
state: "TS",
|
640
|
+
postal_code: "TS",
|
641
|
+
country: "TS",
|
642
|
+
email: "TS",
|
643
|
+
stock_symbol: "TS",
|
644
|
+
stock_exchange: "NONE",
|
645
|
+
ip_address: "TS",
|
646
|
+
website: "TS",
|
647
|
+
brand_relationship: "BASIC_ACCOUNT",
|
648
|
+
vertical: "TS",
|
649
|
+
alt_business_id: "TS",
|
650
|
+
alt_business_id_type: "NONE",
|
651
|
+
universal_ein: "TS",
|
652
|
+
reference_id: "TS",
|
653
|
+
mock: true,
|
654
|
+
identity_status: "SELF_DECLARED",
|
655
|
+
)
|
656
|
+
expect(instance_1.eql?(instance_2)).to eq(true)
|
657
|
+
end
|
658
|
+
it 'checks if objects are not equal' do
|
659
|
+
instance_1 = Freeclimb::SMSTenDLCBrand.new(
|
660
|
+
account_id: "TS",
|
661
|
+
entity_type: "PRIVATE_PROFIT",
|
662
|
+
csp_id: "TS",
|
663
|
+
brand_id: "TS",
|
664
|
+
first_name: "TS",
|
665
|
+
last_name: "TS",
|
666
|
+
display_name: "TS",
|
667
|
+
company_name: "TS",
|
668
|
+
ein: "TS",
|
669
|
+
ein_issuing_country: "TS",
|
670
|
+
phone: "TS",
|
671
|
+
street: "TS",
|
672
|
+
city: "TS",
|
673
|
+
state: "TS",
|
674
|
+
postal_code: "TS",
|
675
|
+
country: "TS",
|
676
|
+
email: "TS",
|
677
|
+
stock_symbol: "TS",
|
678
|
+
stock_exchange: "NONE",
|
679
|
+
ip_address: "TS",
|
680
|
+
website: "TS",
|
681
|
+
brand_relationship: "BASIC_ACCOUNT",
|
682
|
+
vertical: "TS",
|
683
|
+
alt_business_id: "TS",
|
684
|
+
alt_business_id_type: "NONE",
|
685
|
+
universal_ein: "TS",
|
686
|
+
reference_id: "TS",
|
687
|
+
mock: true,
|
688
|
+
identity_status: "SELF_DECLARED",
|
689
|
+
)
|
690
|
+
instance_2 = Freeclimb::SMSTenDLCBrand.new(
|
691
|
+
account_id: "ST",
|
692
|
+
entity_type: "PUBLIC_PROFIT",
|
693
|
+
csp_id: "ST",
|
694
|
+
brand_id: "ST",
|
695
|
+
first_name: "ST",
|
696
|
+
last_name: "ST",
|
697
|
+
display_name: "ST",
|
698
|
+
company_name: "ST",
|
699
|
+
ein: "ST",
|
700
|
+
ein_issuing_country: "ST",
|
701
|
+
phone: "ST",
|
702
|
+
street: "ST",
|
703
|
+
city: "ST",
|
704
|
+
state: "ST",
|
705
|
+
postal_code: "ST",
|
706
|
+
country: "ST",
|
707
|
+
email: "ST",
|
708
|
+
stock_symbol: "ST",
|
709
|
+
stock_exchange: "NASDAQ",
|
710
|
+
ip_address: "ST",
|
711
|
+
website: "ST",
|
712
|
+
brand_relationship: "SMALL_ACCOUNT",
|
713
|
+
vertical: "ST",
|
714
|
+
alt_business_id: "ST",
|
715
|
+
alt_business_id_type: "DUNS",
|
716
|
+
universal_ein: "ST",
|
717
|
+
reference_id: "ST",
|
718
|
+
mock: false,
|
719
|
+
identity_status: "UNVERIFIED",
|
720
|
+
)
|
721
|
+
expect(instance_1.eql?(instance_2)).to eq(false)
|
722
|
+
end
|
723
|
+
end
|
724
|
+
|
725
|
+
describe 'test method "hash"' do
|
726
|
+
it 'calculates hash code' do
|
727
|
+
instance = Freeclimb::SMSTenDLCBrand.new(
|
728
|
+
account_id: "TS",
|
729
|
+
entity_type: "PRIVATE_PROFIT",
|
730
|
+
csp_id: "TS",
|
731
|
+
brand_id: "TS",
|
732
|
+
first_name: "TS",
|
733
|
+
last_name: "TS",
|
734
|
+
display_name: "TS",
|
735
|
+
company_name: "TS",
|
736
|
+
ein: "TS",
|
737
|
+
ein_issuing_country: "TS",
|
738
|
+
phone: "TS",
|
739
|
+
street: "TS",
|
740
|
+
city: "TS",
|
741
|
+
state: "TS",
|
742
|
+
postal_code: "TS",
|
743
|
+
country: "TS",
|
744
|
+
email: "TS",
|
745
|
+
stock_symbol: "TS",
|
746
|
+
stock_exchange: "NONE",
|
747
|
+
ip_address: "TS",
|
748
|
+
website: "TS",
|
749
|
+
brand_relationship: "BASIC_ACCOUNT",
|
750
|
+
vertical: "TS",
|
751
|
+
alt_business_id: "TS",
|
752
|
+
alt_business_id_type: "NONE",
|
753
|
+
universal_ein: "TS",
|
754
|
+
reference_id: "TS",
|
755
|
+
optional_attributes: Hash.new(),
|
756
|
+
mock: true,
|
757
|
+
identity_status: "SELF_DECLARED",
|
758
|
+
create_date: "2022-07-05T15:17:05Z",
|
759
|
+
)
|
760
|
+
expect(instance.hash).to be_a_kind_of(Integer)
|
761
|
+
end
|
762
|
+
end
|
763
|
+
|
764
|
+
describe 'test method "build_from_hash"' do
|
765
|
+
it 'builds equivalent model from hash code' do
|
766
|
+
instance_1 = Freeclimb::SMSTenDLCBrand.new(
|
767
|
+
account_id: "TS",
|
768
|
+
entity_type: "PRIVATE_PROFIT",
|
769
|
+
csp_id: "TS",
|
770
|
+
brand_id: "TS",
|
771
|
+
first_name: "TS",
|
772
|
+
last_name: "TS",
|
773
|
+
display_name: "TS",
|
774
|
+
company_name: "TS",
|
775
|
+
ein: "TS",
|
776
|
+
ein_issuing_country: "TS",
|
777
|
+
phone: "TS",
|
778
|
+
street: "TS",
|
779
|
+
city: "TS",
|
780
|
+
state: "TS",
|
781
|
+
postal_code: "TS",
|
782
|
+
country: "TS",
|
783
|
+
email: "TS",
|
784
|
+
stock_symbol: "TS",
|
785
|
+
stock_exchange: "NONE",
|
786
|
+
ip_address: "TS",
|
787
|
+
website: "TS",
|
788
|
+
brand_relationship: "BASIC_ACCOUNT",
|
789
|
+
vertical: "TS",
|
790
|
+
alt_business_id: "TS",
|
791
|
+
alt_business_id_type: "NONE",
|
792
|
+
universal_ein: "TS",
|
793
|
+
reference_id: "TS",
|
794
|
+
optional_attributes: Hash.new(),
|
795
|
+
mock: true,
|
796
|
+
identity_status: "SELF_DECLARED",
|
797
|
+
create_date: "2022-07-05T15:17:05Z",
|
798
|
+
)
|
799
|
+
instance_2 = Freeclimb::SMSTenDLCBrand.new
|
800
|
+
expect(instance_2.build_from_hash(instance_1.hash)).to eq(instance_1.build_from_hash(instance_1.hash))
|
801
|
+
end
|
802
|
+
end
|
803
|
+
|
804
|
+
describe 'test method "_deserialize"' do
|
805
|
+
instance = Freeclimb::SMSTenDLCBrand.new(
|
806
|
+
account_id: "TS",
|
807
|
+
entity_type: "PRIVATE_PROFIT",
|
808
|
+
csp_id: "TS",
|
809
|
+
brand_id: "TS",
|
810
|
+
first_name: "TS",
|
811
|
+
last_name: "TS",
|
812
|
+
display_name: "TS",
|
813
|
+
company_name: "TS",
|
814
|
+
ein: "TS",
|
815
|
+
ein_issuing_country: "TS",
|
816
|
+
phone: "TS",
|
817
|
+
street: "TS",
|
818
|
+
city: "TS",
|
819
|
+
state: "TS",
|
820
|
+
postal_code: "TS",
|
821
|
+
country: "TS",
|
822
|
+
email: "TS",
|
823
|
+
stock_symbol: "TS",
|
824
|
+
stock_exchange: "NONE",
|
825
|
+
ip_address: "TS",
|
826
|
+
website: "TS",
|
827
|
+
brand_relationship: "BASIC_ACCOUNT",
|
828
|
+
vertical: "TS",
|
829
|
+
alt_business_id: "TS",
|
830
|
+
alt_business_id_type: "NONE",
|
831
|
+
universal_ein: "TS",
|
832
|
+
reference_id: "TS",
|
833
|
+
optional_attributes: Hash.new(),
|
834
|
+
mock: true,
|
835
|
+
identity_status: "SELF_DECLARED",
|
836
|
+
create_date: "2022-07-05T15:17:05Z",
|
837
|
+
)
|
838
|
+
it 'deserializes the data of account_id' do
|
839
|
+
expect(instance._deserialize("String", instance.account_id)).to be_a_kind_of(String)
|
840
|
+
end
|
841
|
+
it 'deserializes the data of entity_type' do
|
842
|
+
expect(instance._deserialize("String", instance.entity_type)).to be_a_kind_of(String)
|
843
|
+
end
|
844
|
+
it 'deserializes the data of csp_id' do
|
845
|
+
expect(instance._deserialize("String", instance.csp_id)).to be_a_kind_of(String)
|
846
|
+
end
|
847
|
+
it 'deserializes the data of brand_id' do
|
848
|
+
expect(instance._deserialize("String", instance.brand_id)).to be_a_kind_of(String)
|
849
|
+
end
|
850
|
+
it 'deserializes the data of first_name' do
|
851
|
+
expect(instance._deserialize("String", instance.first_name)).to be_a_kind_of(String)
|
852
|
+
end
|
853
|
+
it 'deserializes the data of last_name' do
|
854
|
+
expect(instance._deserialize("String", instance.last_name)).to be_a_kind_of(String)
|
855
|
+
end
|
856
|
+
it 'deserializes the data of display_name' do
|
857
|
+
expect(instance._deserialize("String", instance.display_name)).to be_a_kind_of(String)
|
858
|
+
end
|
859
|
+
it 'deserializes the data of company_name' do
|
860
|
+
expect(instance._deserialize("String", instance.company_name)).to be_a_kind_of(String)
|
861
|
+
end
|
862
|
+
it 'deserializes the data of ein' do
|
863
|
+
expect(instance._deserialize("String", instance.ein)).to be_a_kind_of(String)
|
864
|
+
end
|
865
|
+
it 'deserializes the data of ein_issuing_country' do
|
866
|
+
expect(instance._deserialize("String", instance.ein_issuing_country)).to be_a_kind_of(String)
|
867
|
+
end
|
868
|
+
it 'deserializes the data of phone' do
|
869
|
+
expect(instance._deserialize("String", instance.phone)).to be_a_kind_of(String)
|
870
|
+
end
|
871
|
+
it 'deserializes the data of street' do
|
872
|
+
expect(instance._deserialize("String", instance.street)).to be_a_kind_of(String)
|
873
|
+
end
|
874
|
+
it 'deserializes the data of city' do
|
875
|
+
expect(instance._deserialize("String", instance.city)).to be_a_kind_of(String)
|
876
|
+
end
|
877
|
+
it 'deserializes the data of state' do
|
878
|
+
expect(instance._deserialize("String", instance.state)).to be_a_kind_of(String)
|
879
|
+
end
|
880
|
+
it 'deserializes the data of postal_code' do
|
881
|
+
expect(instance._deserialize("String", instance.postal_code)).to be_a_kind_of(String)
|
882
|
+
end
|
883
|
+
it 'deserializes the data of country' do
|
884
|
+
expect(instance._deserialize("String", instance.country)).to be_a_kind_of(String)
|
885
|
+
end
|
886
|
+
it 'deserializes the data of email' do
|
887
|
+
expect(instance._deserialize("String", instance.email)).to be_a_kind_of(String)
|
888
|
+
end
|
889
|
+
it 'deserializes the data of stock_symbol' do
|
890
|
+
expect(instance._deserialize("String", instance.stock_symbol)).to be_a_kind_of(String)
|
891
|
+
end
|
892
|
+
it 'deserializes the data of stock_exchange' do
|
893
|
+
expect(instance._deserialize("String", instance.stock_exchange)).to be_a_kind_of(String)
|
894
|
+
end
|
895
|
+
it 'deserializes the data of ip_address' do
|
896
|
+
expect(instance._deserialize("String", instance.ip_address)).to be_a_kind_of(String)
|
897
|
+
end
|
898
|
+
it 'deserializes the data of website' do
|
899
|
+
expect(instance._deserialize("String", instance.website)).to be_a_kind_of(String)
|
900
|
+
end
|
901
|
+
it 'deserializes the data of brand_relationship' do
|
902
|
+
expect(instance._deserialize("String", instance.brand_relationship)).to be_a_kind_of(String)
|
903
|
+
end
|
904
|
+
it 'deserializes the data of vertical' do
|
905
|
+
expect(instance._deserialize("String", instance.vertical)).to be_a_kind_of(String)
|
906
|
+
end
|
907
|
+
it 'deserializes the data of alt_business_id' do
|
908
|
+
expect(instance._deserialize("String", instance.alt_business_id)).to be_a_kind_of(String)
|
909
|
+
end
|
910
|
+
it 'deserializes the data of alt_business_id_type' do
|
911
|
+
expect(instance._deserialize("String", instance.alt_business_id_type)).to be_a_kind_of(String)
|
912
|
+
end
|
913
|
+
it 'deserializes the data of universal_ein' do
|
914
|
+
expect(instance._deserialize("String", instance.universal_ein)).to be_a_kind_of(String)
|
915
|
+
end
|
916
|
+
it 'deserializes the data of reference_id' do
|
917
|
+
expect(instance._deserialize("String", instance.reference_id)).to be_a_kind_of(String)
|
918
|
+
end
|
919
|
+
it 'deserializes the data of optional_attributes' do
|
920
|
+
expect(instance._deserialize("Hash<String, Object>", instance.optional_attributes)).to be_a_kind_of(Hash)
|
921
|
+
end
|
922
|
+
it 'deserializes the data of mock' do
|
923
|
+
expect(instance._deserialize("Boolean", instance.mock)).to be_a_kind_of(TrueClass)
|
924
|
+
end
|
925
|
+
it 'deserializes the data of identity_status' do
|
926
|
+
expect(instance._deserialize("String", instance.identity_status)).to be_a_kind_of(String)
|
927
|
+
end
|
928
|
+
it 'deserializes the data of create_date' do
|
929
|
+
expect(instance._deserialize("Time", instance.create_date)).to be_a_kind_of(Time)
|
930
|
+
end
|
931
|
+
end
|
932
|
+
|
933
|
+
describe 'test method "to_s"' do
|
934
|
+
it 'returns the string representation of the object' do
|
935
|
+
instance = Freeclimb::SMSTenDLCBrand.new(
|
936
|
+
account_id: "TS",
|
937
|
+
entity_type: "PRIVATE_PROFIT",
|
938
|
+
csp_id: "TS",
|
939
|
+
brand_id: "TS",
|
940
|
+
first_name: "TS",
|
941
|
+
last_name: "TS",
|
942
|
+
display_name: "TS",
|
943
|
+
company_name: "TS",
|
944
|
+
ein: "TS",
|
945
|
+
ein_issuing_country: "TS",
|
946
|
+
phone: "TS",
|
947
|
+
street: "TS",
|
948
|
+
city: "TS",
|
949
|
+
state: "TS",
|
950
|
+
postal_code: "TS",
|
951
|
+
country: "TS",
|
952
|
+
email: "TS",
|
953
|
+
stock_symbol: "TS",
|
954
|
+
stock_exchange: "NONE",
|
955
|
+
ip_address: "TS",
|
956
|
+
website: "TS",
|
957
|
+
brand_relationship: "BASIC_ACCOUNT",
|
958
|
+
vertical: "TS",
|
959
|
+
alt_business_id: "TS",
|
960
|
+
alt_business_id_type: "NONE",
|
961
|
+
universal_ein: "TS",
|
962
|
+
reference_id: "TS",
|
963
|
+
optional_attributes: Hash.new(),
|
964
|
+
mock: true,
|
965
|
+
identity_status: "SELF_DECLARED",
|
966
|
+
create_date: "2022-07-05T15:17:05Z",
|
967
|
+
)
|
968
|
+
expect(instance.to_s).to eq(instance.to_hash.to_s)
|
969
|
+
end
|
970
|
+
end
|
971
|
+
|
972
|
+
describe 'test method "to_hash"' do
|
973
|
+
it 'returns the object in the form of hash' do
|
974
|
+
instance = Freeclimb::SMSTenDLCBrand.new(
|
975
|
+
account_id: "TS",
|
976
|
+
entity_type: "PRIVATE_PROFIT",
|
977
|
+
csp_id: "TS",
|
978
|
+
brand_id: "TS",
|
979
|
+
first_name: "TS",
|
980
|
+
last_name: "TS",
|
981
|
+
display_name: "TS",
|
982
|
+
company_name: "TS",
|
983
|
+
ein: "TS",
|
984
|
+
ein_issuing_country: "TS",
|
985
|
+
phone: "TS",
|
986
|
+
street: "TS",
|
987
|
+
city: "TS",
|
988
|
+
state: "TS",
|
989
|
+
postal_code: "TS",
|
990
|
+
country: "TS",
|
991
|
+
email: "TS",
|
992
|
+
stock_symbol: "TS",
|
993
|
+
stock_exchange: "NONE",
|
994
|
+
ip_address: "TS",
|
995
|
+
website: "TS",
|
996
|
+
brand_relationship: "BASIC_ACCOUNT",
|
997
|
+
vertical: "TS",
|
998
|
+
alt_business_id: "TS",
|
999
|
+
alt_business_id_type: "NONE",
|
1000
|
+
universal_ein: "TS",
|
1001
|
+
reference_id: "TS",
|
1002
|
+
optional_attributes: Hash.new(),
|
1003
|
+
mock: true,
|
1004
|
+
identity_status: "SELF_DECLARED",
|
1005
|
+
create_date: "2022-07-05T15:17:05Z",
|
1006
|
+
)
|
1007
|
+
expect(instance.to_hash).to be_a_kind_of(Hash)
|
1008
|
+
end
|
1009
|
+
it 'creates equal hash for two equal objects' do
|
1010
|
+
obj = Object.new()
|
1011
|
+
instance_1 = Freeclimb::SMSTenDLCBrand.new(
|
1012
|
+
account_id: "TS",
|
1013
|
+
entity_type: "PRIVATE_PROFIT",
|
1014
|
+
csp_id: "TS",
|
1015
|
+
brand_id: "TS",
|
1016
|
+
first_name: "TS",
|
1017
|
+
last_name: "TS",
|
1018
|
+
display_name: "TS",
|
1019
|
+
company_name: "TS",
|
1020
|
+
ein: "TS",
|
1021
|
+
ein_issuing_country: "TS",
|
1022
|
+
phone: "TS",
|
1023
|
+
street: "TS",
|
1024
|
+
city: "TS",
|
1025
|
+
state: "TS",
|
1026
|
+
postal_code: "TS",
|
1027
|
+
country: "TS",
|
1028
|
+
email: "TS",
|
1029
|
+
stock_symbol: "TS",
|
1030
|
+
stock_exchange: "NONE",
|
1031
|
+
ip_address: "TS",
|
1032
|
+
website: "TS",
|
1033
|
+
brand_relationship: "BASIC_ACCOUNT",
|
1034
|
+
vertical: "TS",
|
1035
|
+
alt_business_id: "TS",
|
1036
|
+
alt_business_id_type: "NONE",
|
1037
|
+
universal_ein: "TS",
|
1038
|
+
reference_id: "TS",
|
1039
|
+
optional_attributes: Hash.new(),
|
1040
|
+
mock: true,
|
1041
|
+
identity_status: "SELF_DECLARED",
|
1042
|
+
create_date: "2022-07-05T15:17:05Z",
|
1043
|
+
)
|
1044
|
+
instance_2 = Freeclimb::SMSTenDLCBrand.new(
|
1045
|
+
account_id: "TS",
|
1046
|
+
entity_type: "PRIVATE_PROFIT",
|
1047
|
+
csp_id: "TS",
|
1048
|
+
brand_id: "TS",
|
1049
|
+
first_name: "TS",
|
1050
|
+
last_name: "TS",
|
1051
|
+
display_name: "TS",
|
1052
|
+
company_name: "TS",
|
1053
|
+
ein: "TS",
|
1054
|
+
ein_issuing_country: "TS",
|
1055
|
+
phone: "TS",
|
1056
|
+
street: "TS",
|
1057
|
+
city: "TS",
|
1058
|
+
state: "TS",
|
1059
|
+
postal_code: "TS",
|
1060
|
+
country: "TS",
|
1061
|
+
email: "TS",
|
1062
|
+
stock_symbol: "TS",
|
1063
|
+
stock_exchange: "NONE",
|
1064
|
+
ip_address: "TS",
|
1065
|
+
website: "TS",
|
1066
|
+
brand_relationship: "BASIC_ACCOUNT",
|
1067
|
+
vertical: "TS",
|
1068
|
+
alt_business_id: "TS",
|
1069
|
+
alt_business_id_type: "NONE",
|
1070
|
+
universal_ein: "TS",
|
1071
|
+
reference_id: "TS",
|
1072
|
+
optional_attributes: Hash.new(),
|
1073
|
+
mock: true,
|
1074
|
+
identity_status: "SELF_DECLARED",
|
1075
|
+
create_date: "2022-07-05T15:17:05Z",
|
1076
|
+
)
|
1077
|
+
expect(instance_1.to_hash).to eq(instance_2.to_hash)
|
1078
|
+
end
|
1079
|
+
end
|
1080
|
+
|
1081
|
+
describe 'test method "_to_hash"' do
|
1082
|
+
instance = Freeclimb::SMSTenDLCBrand.new(
|
1083
|
+
account_id: "TS",
|
1084
|
+
|
1085
|
+
entity_type: "PRIVATE_PROFIT",
|
1086
|
+
|
1087
|
+
csp_id: "TS",
|
1088
|
+
|
1089
|
+
brand_id: "TS",
|
1090
|
+
|
1091
|
+
first_name: "TS",
|
1092
|
+
|
1093
|
+
last_name: "TS",
|
1094
|
+
|
1095
|
+
display_name: "TS",
|
1096
|
+
|
1097
|
+
company_name: "TS",
|
1098
|
+
|
1099
|
+
ein: "TS",
|
1100
|
+
|
1101
|
+
ein_issuing_country: "TS",
|
1102
|
+
|
1103
|
+
phone: "TS",
|
1104
|
+
|
1105
|
+
street: "TS",
|
1106
|
+
|
1107
|
+
city: "TS",
|
1108
|
+
|
1109
|
+
state: "TS",
|
1110
|
+
|
1111
|
+
postal_code: "TS",
|
1112
|
+
|
1113
|
+
country: "TS",
|
1114
|
+
|
1115
|
+
email: "TS",
|
1116
|
+
|
1117
|
+
stock_symbol: "TS",
|
1118
|
+
|
1119
|
+
stock_exchange: "NONE",
|
1120
|
+
|
1121
|
+
ip_address: "TS",
|
1122
|
+
|
1123
|
+
website: "TS",
|
1124
|
+
|
1125
|
+
brand_relationship: "BASIC_ACCOUNT",
|
1126
|
+
|
1127
|
+
vertical: "TS",
|
1128
|
+
|
1129
|
+
alt_business_id: "TS",
|
1130
|
+
|
1131
|
+
alt_business_id_type: "NONE",
|
1132
|
+
|
1133
|
+
universal_ein: "TS",
|
1134
|
+
|
1135
|
+
reference_id: "TS",
|
1136
|
+
|
1137
|
+
optional_attributes: Hash.new(),
|
1138
|
+
|
1139
|
+
mock: true,
|
1140
|
+
|
1141
|
+
identity_status: "SELF_DECLARED",
|
1142
|
+
|
1143
|
+
create_date: "2022-07-05T15:17:05Z",
|
1144
|
+
)
|
1145
|
+
it 'returns account_id in the form of hash' do
|
1146
|
+
expect(instance._to_hash(instance.account_id)).to eq(instance.account_id)
|
1147
|
+
end
|
1148
|
+
it 'returns entity_type in the form of hash' do
|
1149
|
+
expect(instance._to_hash(instance.entity_type)).to eq(instance.entity_type)
|
1150
|
+
end
|
1151
|
+
it 'returns csp_id in the form of hash' do
|
1152
|
+
expect(instance._to_hash(instance.csp_id)).to eq(instance.csp_id)
|
1153
|
+
end
|
1154
|
+
it 'returns brand_id in the form of hash' do
|
1155
|
+
expect(instance._to_hash(instance.brand_id)).to eq(instance.brand_id)
|
1156
|
+
end
|
1157
|
+
it 'returns first_name in the form of hash' do
|
1158
|
+
expect(instance._to_hash(instance.first_name)).to eq(instance.first_name)
|
1159
|
+
end
|
1160
|
+
it 'returns last_name in the form of hash' do
|
1161
|
+
expect(instance._to_hash(instance.last_name)).to eq(instance.last_name)
|
1162
|
+
end
|
1163
|
+
it 'returns display_name in the form of hash' do
|
1164
|
+
expect(instance._to_hash(instance.display_name)).to eq(instance.display_name)
|
1165
|
+
end
|
1166
|
+
it 'returns company_name in the form of hash' do
|
1167
|
+
expect(instance._to_hash(instance.company_name)).to eq(instance.company_name)
|
1168
|
+
end
|
1169
|
+
it 'returns ein in the form of hash' do
|
1170
|
+
expect(instance._to_hash(instance.ein)).to eq(instance.ein)
|
1171
|
+
end
|
1172
|
+
it 'returns ein_issuing_country in the form of hash' do
|
1173
|
+
expect(instance._to_hash(instance.ein_issuing_country)).to eq(instance.ein_issuing_country)
|
1174
|
+
end
|
1175
|
+
it 'returns phone in the form of hash' do
|
1176
|
+
expect(instance._to_hash(instance.phone)).to eq(instance.phone)
|
1177
|
+
end
|
1178
|
+
it 'returns street in the form of hash' do
|
1179
|
+
expect(instance._to_hash(instance.street)).to eq(instance.street)
|
1180
|
+
end
|
1181
|
+
it 'returns city in the form of hash' do
|
1182
|
+
expect(instance._to_hash(instance.city)).to eq(instance.city)
|
1183
|
+
end
|
1184
|
+
it 'returns state in the form of hash' do
|
1185
|
+
expect(instance._to_hash(instance.state)).to eq(instance.state)
|
1186
|
+
end
|
1187
|
+
it 'returns postal_code in the form of hash' do
|
1188
|
+
expect(instance._to_hash(instance.postal_code)).to eq(instance.postal_code)
|
1189
|
+
end
|
1190
|
+
it 'returns country in the form of hash' do
|
1191
|
+
expect(instance._to_hash(instance.country)).to eq(instance.country)
|
1192
|
+
end
|
1193
|
+
it 'returns email in the form of hash' do
|
1194
|
+
expect(instance._to_hash(instance.email)).to eq(instance.email)
|
1195
|
+
end
|
1196
|
+
it 'returns stock_symbol in the form of hash' do
|
1197
|
+
expect(instance._to_hash(instance.stock_symbol)).to eq(instance.stock_symbol)
|
1198
|
+
end
|
1199
|
+
it 'returns stock_exchange in the form of hash' do
|
1200
|
+
expect(instance._to_hash(instance.stock_exchange)).to eq(instance.stock_exchange)
|
1201
|
+
end
|
1202
|
+
it 'returns ip_address in the form of hash' do
|
1203
|
+
expect(instance._to_hash(instance.ip_address)).to eq(instance.ip_address)
|
1204
|
+
end
|
1205
|
+
it 'returns website in the form of hash' do
|
1206
|
+
expect(instance._to_hash(instance.website)).to eq(instance.website)
|
1207
|
+
end
|
1208
|
+
it 'returns brand_relationship in the form of hash' do
|
1209
|
+
expect(instance._to_hash(instance.brand_relationship)).to eq(instance.brand_relationship)
|
1210
|
+
end
|
1211
|
+
it 'returns vertical in the form of hash' do
|
1212
|
+
expect(instance._to_hash(instance.vertical)).to eq(instance.vertical)
|
1213
|
+
end
|
1214
|
+
it 'returns alt_business_id in the form of hash' do
|
1215
|
+
expect(instance._to_hash(instance.alt_business_id)).to eq(instance.alt_business_id)
|
1216
|
+
end
|
1217
|
+
it 'returns alt_business_id_type in the form of hash' do
|
1218
|
+
expect(instance._to_hash(instance.alt_business_id_type)).to eq(instance.alt_business_id_type)
|
1219
|
+
end
|
1220
|
+
it 'returns universal_ein in the form of hash' do
|
1221
|
+
expect(instance._to_hash(instance.universal_ein)).to eq(instance.universal_ein)
|
1222
|
+
end
|
1223
|
+
it 'returns reference_id in the form of hash' do
|
1224
|
+
expect(instance._to_hash(instance.reference_id)).to eq(instance.reference_id)
|
1225
|
+
end
|
1226
|
+
it 'returns optional_attributes in the form of hash' do
|
1227
|
+
expect(instance._to_hash(instance.optional_attributes)).to eq(instance.optional_attributes)
|
1228
|
+
end
|
1229
|
+
it 'returns mock in the form of hash' do
|
1230
|
+
expect(instance._to_hash(instance.mock)).to eq(instance.mock)
|
1231
|
+
end
|
1232
|
+
it 'returns identity_status in the form of hash' do
|
1233
|
+
expect(instance._to_hash(instance.identity_status)).to eq(instance.identity_status)
|
1234
|
+
end
|
1235
|
+
it 'returns create_date in the form of hash' do
|
1236
|
+
expect(instance._to_hash(instance.create_date)).to eq(instance.create_date)
|
231
1237
|
end
|
232
1238
|
end
|
233
1239
|
|