pingram 1.0.28 → 1.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/pingram/api_client.rb +1 -1
- data/lib/pingram/models/account_get_response.rb +44 -31
- data/lib/pingram/models/billing_post_response_body.rb +40 -27
- data/lib/pingram/models/ten_dlc_brand_admin_update_request.rb +13 -2
- data/lib/pingram/models/ten_dlc_brand_create_request.rb +99 -12
- data/lib/pingram/models/ten_dlc_brand_registration.rb +13 -1
- data/lib/pingram/models/ten_dlc_brand_registration_details.rb +13 -1
- data/lib/pingram/models/ten_dlc_brand_update_request.rb +13 -2
- data/lib/pingram/models/ten_dlc_campaign_admin_update_request.rb +20 -0
- data/lib/pingram/models/ten_dlc_campaign_registration.rb +20 -0
- data/lib/pingram/models/ten_dlc_campaign_registration_details.rb +20 -0
- data/lib/pingram/models/ten_dlc_campaign_update_request.rb +20 -0
- data/lib/pingram/version.rb +1 -1
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-13.0.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/date-3.5.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.9.2/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.9.2/mkmf.log +3 -3
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.5.0/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.8.1/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.2.0/gem_make.out +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ab6b12d140400b9c491e3025a6e639755a4b6886e63bcc4e2598d0188ce88b03
|
|
4
|
+
data.tar.gz: b6d665310b2a86321250102351d6cf0e33e075762100cd1f1241a0de94d95081
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e66a6cf106093028d03e68973ae5bd38ea5ccf83361652fbb3e0dc7aca6c79f406026d7c01f74000a70206f937c7cd37fd342631a037f2b5ff6b0098c0c04d11
|
|
7
|
+
data.tar.gz: 71085fe7822cbb180feef15ee59f2b0efb2d9ba584e64c80c84c07e4a0e29659e187b16c1ca5eaa77d419b25bfe552523f671d94e6976021e25e545de22d9cf4
|
data/Gemfile.lock
CHANGED
data/lib/pingram/api_client.rb
CHANGED
|
@@ -32,7 +32,7 @@ module Pingram
|
|
|
32
32
|
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
|
33
33
|
def initialize(config = Configuration.default)
|
|
34
34
|
@config = config
|
|
35
|
-
@user_agent = "pingram-ruby/1.0.
|
|
35
|
+
@user_agent = "pingram-ruby/1.0.29"
|
|
36
36
|
@default_headers = {
|
|
37
37
|
'Content-Type' => 'application/json',
|
|
38
38
|
'User-Agent' => @user_agent
|
|
@@ -38,8 +38,6 @@ module Pingram
|
|
|
38
38
|
# ISO date (YYYY-MM-DD) when the billing cycle resets.
|
|
39
39
|
attr_accessor :anniversary_date
|
|
40
40
|
|
|
41
|
-
attr_accessor :allow_overage
|
|
42
|
-
|
|
43
41
|
attr_accessor :created_at
|
|
44
42
|
|
|
45
43
|
attr_accessor :updated_at
|
|
@@ -48,6 +46,12 @@ module Pingram
|
|
|
48
46
|
|
|
49
47
|
attr_accessor :subscription_status
|
|
50
48
|
|
|
49
|
+
attr_accessor :pending_downgrade_effective_date
|
|
50
|
+
|
|
51
|
+
attr_accessor :pending_downgrade_cost_cap
|
|
52
|
+
|
|
53
|
+
attr_accessor :pending_downgrade_account_type
|
|
54
|
+
|
|
51
55
|
class EnumAttributeValidator
|
|
52
56
|
attr_reader :datatype
|
|
53
57
|
attr_reader :allowable_values
|
|
@@ -83,11 +87,13 @@ module Pingram
|
|
|
83
87
|
:'call_cap' => :'callCap',
|
|
84
88
|
:'billing_version' => :'billingVersion',
|
|
85
89
|
:'anniversary_date' => :'anniversaryDate',
|
|
86
|
-
:'allow_overage' => :'allowOverage',
|
|
87
90
|
:'created_at' => :'createdAt',
|
|
88
91
|
:'updated_at' => :'updatedAt',
|
|
89
92
|
:'status' => :'status',
|
|
90
|
-
:'subscription_status' => :'subscriptionStatus'
|
|
93
|
+
:'subscription_status' => :'subscriptionStatus',
|
|
94
|
+
:'pending_downgrade_effective_date' => :'pendingDowngradeEffectiveDate',
|
|
95
|
+
:'pending_downgrade_cost_cap' => :'pendingDowngradeCostCap',
|
|
96
|
+
:'pending_downgrade_account_type' => :'pendingDowngradeAccountType'
|
|
91
97
|
}
|
|
92
98
|
end
|
|
93
99
|
|
|
@@ -114,18 +120,20 @@ module Pingram
|
|
|
114
120
|
:'call_cap' => :'Float',
|
|
115
121
|
:'billing_version' => :'Float',
|
|
116
122
|
:'anniversary_date' => :'String',
|
|
117
|
-
:'allow_overage' => :'Boolean',
|
|
118
123
|
:'created_at' => :'String',
|
|
119
124
|
:'updated_at' => :'String',
|
|
120
125
|
:'status' => :'String',
|
|
121
|
-
:'subscription_status' => :'String'
|
|
126
|
+
:'subscription_status' => :'String',
|
|
127
|
+
:'pending_downgrade_effective_date' => :'String',
|
|
128
|
+
:'pending_downgrade_cost_cap' => :'Float',
|
|
129
|
+
:'pending_downgrade_account_type' => :'String'
|
|
122
130
|
}
|
|
123
131
|
end
|
|
124
132
|
|
|
125
133
|
# List of attributes with nullable: true
|
|
126
134
|
def self.openapi_nullable
|
|
127
135
|
Set.new([
|
|
128
|
-
:'subscription_status'
|
|
136
|
+
:'subscription_status',
|
|
129
137
|
])
|
|
130
138
|
end
|
|
131
139
|
|
|
@@ -195,12 +203,6 @@ module Pingram
|
|
|
195
203
|
self.anniversary_date = nil
|
|
196
204
|
end
|
|
197
205
|
|
|
198
|
-
if attributes.key?(:'allow_overage')
|
|
199
|
-
self.allow_overage = attributes[:'allow_overage']
|
|
200
|
-
else
|
|
201
|
-
self.allow_overage = nil
|
|
202
|
-
end
|
|
203
|
-
|
|
204
206
|
if attributes.key?(:'created_at')
|
|
205
207
|
self.created_at = attributes[:'created_at']
|
|
206
208
|
else
|
|
@@ -220,6 +222,18 @@ module Pingram
|
|
|
220
222
|
if attributes.key?(:'subscription_status')
|
|
221
223
|
self.subscription_status = attributes[:'subscription_status']
|
|
222
224
|
end
|
|
225
|
+
|
|
226
|
+
if attributes.key?(:'pending_downgrade_effective_date')
|
|
227
|
+
self.pending_downgrade_effective_date = attributes[:'pending_downgrade_effective_date']
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
if attributes.key?(:'pending_downgrade_cost_cap')
|
|
231
|
+
self.pending_downgrade_cost_cap = attributes[:'pending_downgrade_cost_cap']
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
if attributes.key?(:'pending_downgrade_account_type')
|
|
235
|
+
self.pending_downgrade_account_type = attributes[:'pending_downgrade_account_type']
|
|
236
|
+
end
|
|
223
237
|
end
|
|
224
238
|
|
|
225
239
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -247,10 +261,6 @@ module Pingram
|
|
|
247
261
|
invalid_properties.push('invalid value for "anniversary_date", anniversary_date cannot be nil.')
|
|
248
262
|
end
|
|
249
263
|
|
|
250
|
-
if @allow_overage.nil?
|
|
251
|
-
invalid_properties.push('invalid value for "allow_overage", allow_overage cannot be nil.')
|
|
252
|
-
end
|
|
253
|
-
|
|
254
264
|
if @created_at.nil?
|
|
255
265
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
256
266
|
end
|
|
@@ -275,13 +285,14 @@ module Pingram
|
|
|
275
285
|
billing_version_validator = EnumAttributeValidator.new('Float', [1, 3])
|
|
276
286
|
return false unless billing_version_validator.valid?(@billing_version)
|
|
277
287
|
return false if @anniversary_date.nil?
|
|
278
|
-
return false if @allow_overage.nil?
|
|
279
288
|
return false if @created_at.nil?
|
|
280
289
|
return false if @updated_at.nil?
|
|
281
290
|
status_validator = EnumAttributeValidator.new('String', ["verified", "unverified", "blocked"])
|
|
282
291
|
return false unless status_validator.valid?(@status)
|
|
283
292
|
subscription_status_validator = EnumAttributeValidator.new('String', ["active", "canceled", "past_due", "paused"])
|
|
284
293
|
return false unless subscription_status_validator.valid?(@subscription_status)
|
|
294
|
+
pending_downgrade_account_type_validator = EnumAttributeValidator.new('String', ["free"])
|
|
295
|
+
return false unless pending_downgrade_account_type_validator.valid?(@pending_downgrade_account_type)
|
|
285
296
|
true
|
|
286
297
|
end
|
|
287
298
|
|
|
@@ -345,16 +356,6 @@ module Pingram
|
|
|
345
356
|
@anniversary_date = anniversary_date
|
|
346
357
|
end
|
|
347
358
|
|
|
348
|
-
# Custom attribute writer method with validation
|
|
349
|
-
# @param [Object] allow_overage Value to be assigned
|
|
350
|
-
def allow_overage=(allow_overage)
|
|
351
|
-
if allow_overage.nil?
|
|
352
|
-
fail ArgumentError, 'allow_overage cannot be nil'
|
|
353
|
-
end
|
|
354
|
-
|
|
355
|
-
@allow_overage = allow_overage
|
|
356
|
-
end
|
|
357
|
-
|
|
358
359
|
# Custom attribute writer method with validation
|
|
359
360
|
# @param [Object] created_at Value to be assigned
|
|
360
361
|
def created_at=(created_at)
|
|
@@ -395,6 +396,16 @@ module Pingram
|
|
|
395
396
|
@subscription_status = subscription_status
|
|
396
397
|
end
|
|
397
398
|
|
|
399
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
400
|
+
# @param [Object] pending_downgrade_account_type Object to be assigned
|
|
401
|
+
def pending_downgrade_account_type=(pending_downgrade_account_type)
|
|
402
|
+
validator = EnumAttributeValidator.new('String', ["free"])
|
|
403
|
+
unless validator.valid?(pending_downgrade_account_type)
|
|
404
|
+
fail ArgumentError, "invalid value for \"pending_downgrade_account_type\", must be one of #{validator.allowable_values}."
|
|
405
|
+
end
|
|
406
|
+
@pending_downgrade_account_type = pending_downgrade_account_type
|
|
407
|
+
end
|
|
408
|
+
|
|
398
409
|
# Checks equality by comparing each attribute.
|
|
399
410
|
# @param [Object] Object to be compared
|
|
400
411
|
def ==(o)
|
|
@@ -410,11 +421,13 @@ module Pingram
|
|
|
410
421
|
call_cap == o.call_cap &&
|
|
411
422
|
billing_version == o.billing_version &&
|
|
412
423
|
anniversary_date == o.anniversary_date &&
|
|
413
|
-
allow_overage == o.allow_overage &&
|
|
414
424
|
created_at == o.created_at &&
|
|
415
425
|
updated_at == o.updated_at &&
|
|
416
426
|
status == o.status &&
|
|
417
|
-
subscription_status == o.subscription_status
|
|
427
|
+
subscription_status == o.subscription_status &&
|
|
428
|
+
pending_downgrade_effective_date == o.pending_downgrade_effective_date &&
|
|
429
|
+
pending_downgrade_cost_cap == o.pending_downgrade_cost_cap &&
|
|
430
|
+
pending_downgrade_account_type == o.pending_downgrade_account_type
|
|
418
431
|
end
|
|
419
432
|
|
|
420
433
|
# @see the `==` method
|
|
@@ -426,7 +439,7 @@ module Pingram
|
|
|
426
439
|
# Calculates hash code according to all attributes.
|
|
427
440
|
# @return [Integer] Hash code
|
|
428
441
|
def hash
|
|
429
|
-
[account_id, account_type, creator, name, messages_cap, cost_cap, sms_cap, call_cap, billing_version, anniversary_date,
|
|
442
|
+
[account_id, account_type, creator, name, messages_cap, cost_cap, sms_cap, call_cap, billing_version, anniversary_date, created_at, updated_at, status, subscription_status, pending_downgrade_effective_date, pending_downgrade_cost_cap, pending_downgrade_account_type].hash
|
|
430
443
|
end
|
|
431
444
|
|
|
432
445
|
# Builds the object from hash
|
|
@@ -38,8 +38,6 @@ module Pingram
|
|
|
38
38
|
# ISO date (YYYY-MM-DD) when the billing cycle resets.
|
|
39
39
|
attr_accessor :anniversary_date
|
|
40
40
|
|
|
41
|
-
attr_accessor :allow_overage
|
|
42
|
-
|
|
43
41
|
attr_accessor :created_at
|
|
44
42
|
|
|
45
43
|
attr_accessor :updated_at
|
|
@@ -48,6 +46,12 @@ module Pingram
|
|
|
48
46
|
|
|
49
47
|
attr_accessor :subscription_status
|
|
50
48
|
|
|
49
|
+
attr_accessor :pending_downgrade_effective_date
|
|
50
|
+
|
|
51
|
+
attr_accessor :pending_downgrade_cost_cap
|
|
52
|
+
|
|
53
|
+
attr_accessor :pending_downgrade_account_type
|
|
54
|
+
|
|
51
55
|
attr_accessor :session_id
|
|
52
56
|
|
|
53
57
|
attr_accessor :url
|
|
@@ -87,11 +91,13 @@ module Pingram
|
|
|
87
91
|
:'call_cap' => :'callCap',
|
|
88
92
|
:'billing_version' => :'billingVersion',
|
|
89
93
|
:'anniversary_date' => :'anniversaryDate',
|
|
90
|
-
:'allow_overage' => :'allowOverage',
|
|
91
94
|
:'created_at' => :'createdAt',
|
|
92
95
|
:'updated_at' => :'updatedAt',
|
|
93
96
|
:'status' => :'status',
|
|
94
97
|
:'subscription_status' => :'subscriptionStatus',
|
|
98
|
+
:'pending_downgrade_effective_date' => :'pendingDowngradeEffectiveDate',
|
|
99
|
+
:'pending_downgrade_cost_cap' => :'pendingDowngradeCostCap',
|
|
100
|
+
:'pending_downgrade_account_type' => :'pendingDowngradeAccountType',
|
|
95
101
|
:'session_id' => :'sessionId',
|
|
96
102
|
:'url' => :'url'
|
|
97
103
|
}
|
|
@@ -120,11 +126,13 @@ module Pingram
|
|
|
120
126
|
:'call_cap' => :'Float',
|
|
121
127
|
:'billing_version' => :'Float',
|
|
122
128
|
:'anniversary_date' => :'String',
|
|
123
|
-
:'allow_overage' => :'Boolean',
|
|
124
129
|
:'created_at' => :'String',
|
|
125
130
|
:'updated_at' => :'String',
|
|
126
131
|
:'status' => :'String',
|
|
127
132
|
:'subscription_status' => :'String',
|
|
133
|
+
:'pending_downgrade_effective_date' => :'String',
|
|
134
|
+
:'pending_downgrade_cost_cap' => :'Float',
|
|
135
|
+
:'pending_downgrade_account_type' => :'String',
|
|
128
136
|
:'session_id' => :'String',
|
|
129
137
|
:'url' => :'String'
|
|
130
138
|
}
|
|
@@ -203,12 +211,6 @@ module Pingram
|
|
|
203
211
|
self.anniversary_date = nil
|
|
204
212
|
end
|
|
205
213
|
|
|
206
|
-
if attributes.key?(:'allow_overage')
|
|
207
|
-
self.allow_overage = attributes[:'allow_overage']
|
|
208
|
-
else
|
|
209
|
-
self.allow_overage = nil
|
|
210
|
-
end
|
|
211
|
-
|
|
212
214
|
if attributes.key?(:'created_at')
|
|
213
215
|
self.created_at = attributes[:'created_at']
|
|
214
216
|
else
|
|
@@ -229,6 +231,18 @@ module Pingram
|
|
|
229
231
|
self.subscription_status = attributes[:'subscription_status']
|
|
230
232
|
end
|
|
231
233
|
|
|
234
|
+
if attributes.key?(:'pending_downgrade_effective_date')
|
|
235
|
+
self.pending_downgrade_effective_date = attributes[:'pending_downgrade_effective_date']
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
if attributes.key?(:'pending_downgrade_cost_cap')
|
|
239
|
+
self.pending_downgrade_cost_cap = attributes[:'pending_downgrade_cost_cap']
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
if attributes.key?(:'pending_downgrade_account_type')
|
|
243
|
+
self.pending_downgrade_account_type = attributes[:'pending_downgrade_account_type']
|
|
244
|
+
end
|
|
245
|
+
|
|
232
246
|
if attributes.key?(:'session_id')
|
|
233
247
|
self.session_id = attributes[:'session_id']
|
|
234
248
|
end
|
|
@@ -263,10 +277,6 @@ module Pingram
|
|
|
263
277
|
invalid_properties.push('invalid value for "anniversary_date", anniversary_date cannot be nil.')
|
|
264
278
|
end
|
|
265
279
|
|
|
266
|
-
if @allow_overage.nil?
|
|
267
|
-
invalid_properties.push('invalid value for "allow_overage", allow_overage cannot be nil.')
|
|
268
|
-
end
|
|
269
|
-
|
|
270
280
|
if @created_at.nil?
|
|
271
281
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
272
282
|
end
|
|
@@ -291,13 +301,14 @@ module Pingram
|
|
|
291
301
|
billing_version_validator = EnumAttributeValidator.new('Float', [1, 3])
|
|
292
302
|
return false unless billing_version_validator.valid?(@billing_version)
|
|
293
303
|
return false if @anniversary_date.nil?
|
|
294
|
-
return false if @allow_overage.nil?
|
|
295
304
|
return false if @created_at.nil?
|
|
296
305
|
return false if @updated_at.nil?
|
|
297
306
|
status_validator = EnumAttributeValidator.new('String', ["verified", "unverified", "blocked"])
|
|
298
307
|
return false unless status_validator.valid?(@status)
|
|
299
308
|
subscription_status_validator = EnumAttributeValidator.new('String', ["active", "canceled", "past_due", "paused"])
|
|
300
309
|
return false unless subscription_status_validator.valid?(@subscription_status)
|
|
310
|
+
pending_downgrade_account_type_validator = EnumAttributeValidator.new('String', ["free"])
|
|
311
|
+
return false unless pending_downgrade_account_type_validator.valid?(@pending_downgrade_account_type)
|
|
301
312
|
true
|
|
302
313
|
end
|
|
303
314
|
|
|
@@ -361,16 +372,6 @@ module Pingram
|
|
|
361
372
|
@anniversary_date = anniversary_date
|
|
362
373
|
end
|
|
363
374
|
|
|
364
|
-
# Custom attribute writer method with validation
|
|
365
|
-
# @param [Object] allow_overage Value to be assigned
|
|
366
|
-
def allow_overage=(allow_overage)
|
|
367
|
-
if allow_overage.nil?
|
|
368
|
-
fail ArgumentError, 'allow_overage cannot be nil'
|
|
369
|
-
end
|
|
370
|
-
|
|
371
|
-
@allow_overage = allow_overage
|
|
372
|
-
end
|
|
373
|
-
|
|
374
375
|
# Custom attribute writer method with validation
|
|
375
376
|
# @param [Object] created_at Value to be assigned
|
|
376
377
|
def created_at=(created_at)
|
|
@@ -411,6 +412,16 @@ module Pingram
|
|
|
411
412
|
@subscription_status = subscription_status
|
|
412
413
|
end
|
|
413
414
|
|
|
415
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
416
|
+
# @param [Object] pending_downgrade_account_type Object to be assigned
|
|
417
|
+
def pending_downgrade_account_type=(pending_downgrade_account_type)
|
|
418
|
+
validator = EnumAttributeValidator.new('String', ["free"])
|
|
419
|
+
unless validator.valid?(pending_downgrade_account_type)
|
|
420
|
+
fail ArgumentError, "invalid value for \"pending_downgrade_account_type\", must be one of #{validator.allowable_values}."
|
|
421
|
+
end
|
|
422
|
+
@pending_downgrade_account_type = pending_downgrade_account_type
|
|
423
|
+
end
|
|
424
|
+
|
|
414
425
|
# Checks equality by comparing each attribute.
|
|
415
426
|
# @param [Object] Object to be compared
|
|
416
427
|
def ==(o)
|
|
@@ -426,11 +437,13 @@ module Pingram
|
|
|
426
437
|
call_cap == o.call_cap &&
|
|
427
438
|
billing_version == o.billing_version &&
|
|
428
439
|
anniversary_date == o.anniversary_date &&
|
|
429
|
-
allow_overage == o.allow_overage &&
|
|
430
440
|
created_at == o.created_at &&
|
|
431
441
|
updated_at == o.updated_at &&
|
|
432
442
|
status == o.status &&
|
|
433
443
|
subscription_status == o.subscription_status &&
|
|
444
|
+
pending_downgrade_effective_date == o.pending_downgrade_effective_date &&
|
|
445
|
+
pending_downgrade_cost_cap == o.pending_downgrade_cost_cap &&
|
|
446
|
+
pending_downgrade_account_type == o.pending_downgrade_account_type &&
|
|
434
447
|
session_id == o.session_id &&
|
|
435
448
|
url == o.url
|
|
436
449
|
end
|
|
@@ -444,7 +457,7 @@ module Pingram
|
|
|
444
457
|
# Calculates hash code according to all attributes.
|
|
445
458
|
# @return [Integer] Hash code
|
|
446
459
|
def hash
|
|
447
|
-
[account_id, account_type, creator, name, messages_cap, cost_cap, sms_cap, call_cap, billing_version, anniversary_date,
|
|
460
|
+
[account_id, account_type, creator, name, messages_cap, cost_cap, sms_cap, call_cap, billing_version, anniversary_date, created_at, updated_at, status, subscription_status, pending_downgrade_effective_date, pending_downgrade_cost_cap, pending_downgrade_account_type, session_id, url].hash
|
|
448
461
|
end
|
|
449
462
|
|
|
450
463
|
# Builds the object from hash
|
|
@@ -22,32 +22,43 @@ module Pingram
|
|
|
22
22
|
# Legal entity type for a 10DLC brand. - PRIVATE_PROFIT: private for-profit (LLC, corp, etc.) - SOLE_PROPRIETOR: sole proprietorship - PUBLIC_PROFIT: publicly traded for-profit - NON_PROFIT: non-profit - GOVERNMENT: government
|
|
23
23
|
attr_accessor :business_type
|
|
24
24
|
|
|
25
|
+
# Official registered legal business name. For SOLE_PROPRIETOR, optional DBA or trade name (defaults to firstName and lastName).
|
|
25
26
|
attr_accessor :legal_name
|
|
26
27
|
|
|
27
|
-
#
|
|
28
|
+
# Public brand name shown to recipients and carriers. Use the name customers recognize (your DBA or trade name). For SOLE_PROPRIETOR, this is the brand you send as — not the individual's legal name. Omit to keep the existing value. If you change legalName and omit displayName, displayName is reset to the new legalName.
|
|
28
29
|
attr_accessor :display_name
|
|
29
30
|
|
|
31
|
+
# Legal first name of the sole proprietor. Required when businessType is SOLE_PROPRIETOR.
|
|
30
32
|
attr_accessor :first_name
|
|
31
33
|
|
|
34
|
+
# Legal last name of the sole proprietor. Required when businessType is SOLE_PROPRIETOR.
|
|
32
35
|
attr_accessor :last_name
|
|
33
36
|
|
|
34
|
-
# For US companies (country US): 9-digit EIN (Employer Identification Number). For Canada (country CA): 9-digit BN (Business Number). For other countries: national business tax identifier.
|
|
37
|
+
# For US companies (country US): 9-digit EIN (Employer Identification Number). For Canada (country CA): 9-digit BN (Business Number). For other countries: national business tax identifier. Required except when businessType is SOLE_PROPRIETOR.
|
|
35
38
|
attr_accessor :tax_id
|
|
36
39
|
|
|
40
|
+
# Public website for the brand. Include a scheme (https://) or a domain; https:// is prepended when omitted. Carriers expect a working site with privacy policy and terms.
|
|
37
41
|
attr_accessor :website
|
|
38
42
|
|
|
43
|
+
# ISO 3166-1 alpha-2 country of incorporation (for example US or CA).
|
|
39
44
|
attr_accessor :country
|
|
40
45
|
|
|
46
|
+
# Street address that matches official tax registration.
|
|
41
47
|
attr_accessor :street
|
|
42
48
|
|
|
49
|
+
# City that matches official tax registration.
|
|
43
50
|
attr_accessor :city
|
|
44
51
|
|
|
52
|
+
# State (US) or province (CA) that matches official tax registration.
|
|
45
53
|
attr_accessor :state
|
|
46
54
|
|
|
55
|
+
# ZIP code (US) or postal code (CA) that matches official tax registration.
|
|
47
56
|
attr_accessor :postal_code
|
|
48
57
|
|
|
58
|
+
# Email for the 10DLC compliance contact. Used for carrier and registration follow-up.
|
|
49
59
|
attr_accessor :compliance_contact_email
|
|
50
60
|
|
|
61
|
+
# Phone number for the 10DLC compliance contact. E.164 preferred; national numbers are normalized using country.
|
|
51
62
|
attr_accessor :compliance_contact_phone
|
|
52
63
|
|
|
53
64
|
# Industry vertical required before Pingram submits the brand to carriers.
|
|
@@ -22,31 +22,43 @@ module Pingram
|
|
|
22
22
|
# Legal entity type for a 10DLC brand. - PRIVATE_PROFIT: private for-profit (LLC, corp, etc.) - SOLE_PROPRIETOR: sole proprietorship - PUBLIC_PROFIT: publicly traded for-profit - NON_PROFIT: non-profit - GOVERNMENT: government
|
|
23
23
|
attr_accessor :business_type
|
|
24
24
|
|
|
25
|
+
# Official registered legal business name. For SOLE_PROPRIETOR, optional DBA or trade name (defaults to firstName and lastName).
|
|
25
26
|
attr_accessor :legal_name
|
|
26
27
|
|
|
27
|
-
#
|
|
28
|
+
# Public brand name shown to recipients and carriers. Use the name customers recognize (your DBA or trade name). For companies with no DBA, use the same value as legalName. For SOLE_PROPRIETOR, this is the brand you send as — not the individual's legal name (set firstName and lastName for that). If the sole proprietor has no DBA, use first and last name.
|
|
29
|
+
attr_accessor :display_name
|
|
30
|
+
|
|
31
|
+
# Legal first name of the sole proprietor. Required when businessType is SOLE_PROPRIETOR.
|
|
28
32
|
attr_accessor :first_name
|
|
29
33
|
|
|
30
|
-
# Required when businessType is SOLE_PROPRIETOR.
|
|
34
|
+
# Legal last name of the sole proprietor. Required when businessType is SOLE_PROPRIETOR.
|
|
31
35
|
attr_accessor :last_name
|
|
32
36
|
|
|
33
37
|
# For US companies (country US): 9-digit EIN (Employer Identification Number). For Canada (country CA): 9-digit BN (Business Number). For other countries: national business tax identifier. Required except when businessType is SOLE_PROPRIETOR.
|
|
34
38
|
attr_accessor :tax_id
|
|
35
39
|
|
|
40
|
+
# Public website for the brand. Include a scheme (https://) or a domain; https:// is prepended when omitted. Carriers expect a working site with privacy policy and terms.
|
|
36
41
|
attr_accessor :website
|
|
37
42
|
|
|
43
|
+
# ISO 3166-1 alpha-2 country of incorporation (for example US or CA).
|
|
38
44
|
attr_accessor :country
|
|
39
45
|
|
|
46
|
+
# Street address that matches official tax registration.
|
|
40
47
|
attr_accessor :street
|
|
41
48
|
|
|
49
|
+
# City that matches official tax registration.
|
|
42
50
|
attr_accessor :city
|
|
43
51
|
|
|
52
|
+
# State (US) or province (CA) that matches official tax registration.
|
|
44
53
|
attr_accessor :state
|
|
45
54
|
|
|
55
|
+
# ZIP code (US) or postal code (CA) that matches official tax registration.
|
|
46
56
|
attr_accessor :postal_code
|
|
47
57
|
|
|
58
|
+
# Email for the 10DLC compliance contact. Used for carrier and registration follow-up.
|
|
48
59
|
attr_accessor :compliance_contact_email
|
|
49
60
|
|
|
61
|
+
# Phone number for the 10DLC compliance contact. E.164 preferred; national numbers are normalized using country.
|
|
50
62
|
attr_accessor :compliance_contact_phone
|
|
51
63
|
|
|
52
64
|
class EnumAttributeValidator
|
|
@@ -77,6 +89,7 @@ module Pingram
|
|
|
77
89
|
:'scenario_id' => :'scenarioId',
|
|
78
90
|
:'business_type' => :'businessType',
|
|
79
91
|
:'legal_name' => :'legalName',
|
|
92
|
+
:'display_name' => :'displayName',
|
|
80
93
|
:'first_name' => :'firstName',
|
|
81
94
|
:'last_name' => :'lastName',
|
|
82
95
|
:'tax_id' => :'taxId',
|
|
@@ -107,6 +120,7 @@ module Pingram
|
|
|
107
120
|
:'scenario_id' => :'String',
|
|
108
121
|
:'business_type' => :'String',
|
|
109
122
|
:'legal_name' => :'String',
|
|
123
|
+
:'display_name' => :'String',
|
|
110
124
|
:'first_name' => :'String',
|
|
111
125
|
:'last_name' => :'String',
|
|
112
126
|
:'tax_id' => :'String',
|
|
@@ -157,8 +171,12 @@ module Pingram
|
|
|
157
171
|
|
|
158
172
|
if attributes.key?(:'legal_name')
|
|
159
173
|
self.legal_name = attributes[:'legal_name']
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
if attributes.key?(:'display_name')
|
|
177
|
+
self.display_name = attributes[:'display_name']
|
|
160
178
|
else
|
|
161
|
-
self.
|
|
179
|
+
self.display_name = nil
|
|
162
180
|
end
|
|
163
181
|
|
|
164
182
|
if attributes.key?(:'first_name')
|
|
@@ -187,18 +205,26 @@ module Pingram
|
|
|
187
205
|
|
|
188
206
|
if attributes.key?(:'street')
|
|
189
207
|
self.street = attributes[:'street']
|
|
208
|
+
else
|
|
209
|
+
self.street = nil
|
|
190
210
|
end
|
|
191
211
|
|
|
192
212
|
if attributes.key?(:'city')
|
|
193
213
|
self.city = attributes[:'city']
|
|
214
|
+
else
|
|
215
|
+
self.city = nil
|
|
194
216
|
end
|
|
195
217
|
|
|
196
218
|
if attributes.key?(:'state')
|
|
197
219
|
self.state = attributes[:'state']
|
|
220
|
+
else
|
|
221
|
+
self.state = nil
|
|
198
222
|
end
|
|
199
223
|
|
|
200
224
|
if attributes.key?(:'postal_code')
|
|
201
225
|
self.postal_code = attributes[:'postal_code']
|
|
226
|
+
else
|
|
227
|
+
self.postal_code = nil
|
|
202
228
|
end
|
|
203
229
|
|
|
204
230
|
if attributes.key?(:'compliance_contact_email')
|
|
@@ -227,8 +253,8 @@ module Pingram
|
|
|
227
253
|
invalid_properties.push('invalid value for "business_type", business_type cannot be nil.')
|
|
228
254
|
end
|
|
229
255
|
|
|
230
|
-
if @
|
|
231
|
-
invalid_properties.push('invalid value for "
|
|
256
|
+
if @display_name.nil?
|
|
257
|
+
invalid_properties.push('invalid value for "display_name", display_name cannot be nil.')
|
|
232
258
|
end
|
|
233
259
|
|
|
234
260
|
if @website.nil?
|
|
@@ -239,6 +265,22 @@ module Pingram
|
|
|
239
265
|
invalid_properties.push('invalid value for "country", country cannot be nil.')
|
|
240
266
|
end
|
|
241
267
|
|
|
268
|
+
if @street.nil?
|
|
269
|
+
invalid_properties.push('invalid value for "street", street cannot be nil.')
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
if @city.nil?
|
|
273
|
+
invalid_properties.push('invalid value for "city", city cannot be nil.')
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
if @state.nil?
|
|
277
|
+
invalid_properties.push('invalid value for "state", state cannot be nil.')
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
if @postal_code.nil?
|
|
281
|
+
invalid_properties.push('invalid value for "postal_code", postal_code cannot be nil.')
|
|
282
|
+
end
|
|
283
|
+
|
|
242
284
|
if @compliance_contact_email.nil?
|
|
243
285
|
invalid_properties.push('invalid value for "compliance_contact_email", compliance_contact_email cannot be nil.')
|
|
244
286
|
end
|
|
@@ -260,9 +302,13 @@ module Pingram
|
|
|
260
302
|
return false if @business_type.nil?
|
|
261
303
|
business_type_validator = EnumAttributeValidator.new('String', ["PRIVATE_PROFIT", "SOLE_PROPRIETOR", "PUBLIC_PROFIT", "NON_PROFIT", "GOVERNMENT"])
|
|
262
304
|
return false unless business_type_validator.valid?(@business_type)
|
|
263
|
-
return false if @
|
|
305
|
+
return false if @display_name.nil?
|
|
264
306
|
return false if @website.nil?
|
|
265
307
|
return false if @country.nil?
|
|
308
|
+
return false if @street.nil?
|
|
309
|
+
return false if @city.nil?
|
|
310
|
+
return false if @state.nil?
|
|
311
|
+
return false if @postal_code.nil?
|
|
266
312
|
return false if @compliance_contact_email.nil?
|
|
267
313
|
return false if @compliance_contact_phone.nil?
|
|
268
314
|
true
|
|
@@ -289,13 +335,13 @@ module Pingram
|
|
|
289
335
|
end
|
|
290
336
|
|
|
291
337
|
# Custom attribute writer method with validation
|
|
292
|
-
# @param [Object]
|
|
293
|
-
def
|
|
294
|
-
if
|
|
295
|
-
fail ArgumentError, '
|
|
338
|
+
# @param [Object] display_name Value to be assigned
|
|
339
|
+
def display_name=(display_name)
|
|
340
|
+
if display_name.nil?
|
|
341
|
+
fail ArgumentError, 'display_name cannot be nil'
|
|
296
342
|
end
|
|
297
343
|
|
|
298
|
-
@
|
|
344
|
+
@display_name = display_name
|
|
299
345
|
end
|
|
300
346
|
|
|
301
347
|
# Custom attribute writer method with validation
|
|
@@ -318,6 +364,46 @@ module Pingram
|
|
|
318
364
|
@country = country
|
|
319
365
|
end
|
|
320
366
|
|
|
367
|
+
# Custom attribute writer method with validation
|
|
368
|
+
# @param [Object] street Value to be assigned
|
|
369
|
+
def street=(street)
|
|
370
|
+
if street.nil?
|
|
371
|
+
fail ArgumentError, 'street cannot be nil'
|
|
372
|
+
end
|
|
373
|
+
|
|
374
|
+
@street = street
|
|
375
|
+
end
|
|
376
|
+
|
|
377
|
+
# Custom attribute writer method with validation
|
|
378
|
+
# @param [Object] city Value to be assigned
|
|
379
|
+
def city=(city)
|
|
380
|
+
if city.nil?
|
|
381
|
+
fail ArgumentError, 'city cannot be nil'
|
|
382
|
+
end
|
|
383
|
+
|
|
384
|
+
@city = city
|
|
385
|
+
end
|
|
386
|
+
|
|
387
|
+
# Custom attribute writer method with validation
|
|
388
|
+
# @param [Object] state Value to be assigned
|
|
389
|
+
def state=(state)
|
|
390
|
+
if state.nil?
|
|
391
|
+
fail ArgumentError, 'state cannot be nil'
|
|
392
|
+
end
|
|
393
|
+
|
|
394
|
+
@state = state
|
|
395
|
+
end
|
|
396
|
+
|
|
397
|
+
# Custom attribute writer method with validation
|
|
398
|
+
# @param [Object] postal_code Value to be assigned
|
|
399
|
+
def postal_code=(postal_code)
|
|
400
|
+
if postal_code.nil?
|
|
401
|
+
fail ArgumentError, 'postal_code cannot be nil'
|
|
402
|
+
end
|
|
403
|
+
|
|
404
|
+
@postal_code = postal_code
|
|
405
|
+
end
|
|
406
|
+
|
|
321
407
|
# Custom attribute writer method with validation
|
|
322
408
|
# @param [Object] compliance_contact_email Value to be assigned
|
|
323
409
|
def compliance_contact_email=(compliance_contact_email)
|
|
@@ -346,6 +432,7 @@ module Pingram
|
|
|
346
432
|
scenario_id == o.scenario_id &&
|
|
347
433
|
business_type == o.business_type &&
|
|
348
434
|
legal_name == o.legal_name &&
|
|
435
|
+
display_name == o.display_name &&
|
|
349
436
|
first_name == o.first_name &&
|
|
350
437
|
last_name == o.last_name &&
|
|
351
438
|
tax_id == o.tax_id &&
|
|
@@ -368,7 +455,7 @@ module Pingram
|
|
|
368
455
|
# Calculates hash code according to all attributes.
|
|
369
456
|
# @return [Integer] Hash code
|
|
370
457
|
def hash
|
|
371
|
-
[scenario_id, business_type, legal_name, first_name, last_name, tax_id, website, country, street, city, state, postal_code, compliance_contact_email, compliance_contact_phone].hash
|
|
458
|
+
[scenario_id, business_type, legal_name, display_name, first_name, last_name, tax_id, website, country, street, city, state, postal_code, compliance_contact_email, compliance_contact_phone].hash
|
|
372
459
|
end
|
|
373
460
|
|
|
374
461
|
# Builds the object from hash
|