pingram 1.0.27 → 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.
Files changed (25) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/lib/pingram/api_client.rb +1 -1
  4. data/lib/pingram/models/account_get_response.rb +44 -31
  5. data/lib/pingram/models/billing_post_response_body.rb +40 -27
  6. data/lib/pingram/models/create_account_response.rb +32 -5
  7. data/lib/pingram/models/ten_dlc_brand_admin_update_request.rb +13 -2
  8. data/lib/pingram/models/ten_dlc_brand_create_request.rb +99 -12
  9. data/lib/pingram/models/ten_dlc_brand_registration.rb +13 -1
  10. data/lib/pingram/models/ten_dlc_brand_registration_details.rb +13 -1
  11. data/lib/pingram/models/ten_dlc_brand_update_request.rb +13 -2
  12. data/lib/pingram/models/ten_dlc_campaign_admin_update_request.rb +20 -0
  13. data/lib/pingram/models/ten_dlc_campaign_registration.rb +20 -0
  14. data/lib/pingram/models/ten_dlc_campaign_registration_details.rb +20 -0
  15. data/lib/pingram/models/ten_dlc_campaign_update_request.rb +20 -0
  16. data/lib/pingram/version.rb +1 -1
  17. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-13.0.0/gem_make.out +5 -5
  18. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/date-3.5.1/gem_make.out +5 -5
  19. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.9.2/gem_make.out +5 -5
  20. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.9.2/mkmf.log +3 -3
  21. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +5 -5
  22. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.5.0/gem_make.out +5 -5
  23. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.8.1/gem_make.out +5 -5
  24. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.2.0/gem_make.out +5 -5
  25. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c682a7732ba9868e586369b82a719570baf9f9fe029e13a8ef895e0fc451042
4
- data.tar.gz: c54f21943d81cabf01873ba3086f2d64efb6339d45f285bd7d521039c20697ca
3
+ metadata.gz: ab6b12d140400b9c491e3025a6e639755a4b6886e63bcc4e2598d0188ce88b03
4
+ data.tar.gz: b6d665310b2a86321250102351d6cf0e33e075762100cd1f1241a0de94d95081
5
5
  SHA512:
6
- metadata.gz: 2b5b66b2b13533f553ea0e01922c293c33d5706f53791011965e5af6e9951312aeb7478f6eb7943781fa9fc9ade4a69a5ca6a4d7808cc2d010b0a0d3728b84d8
7
- data.tar.gz: d1b588e8de8d3d6683022be600a650bfae370dbc518fa7b7169aa8ee43965d153b596abdb5378b3ba619cf8a74d6a3cd020163de3ef9845fead0985fc15b904f
6
+ metadata.gz: e66a6cf106093028d03e68973ae5bd38ea5ccf83361652fbb3e0dc7aca6c79f406026d7c01f74000a70206f937c7cd37fd342631a037f2b5ff6b0098c0c04d11
7
+ data.tar.gz: 71085fe7822cbb180feef15ee59f2b0efb2d9ba584e64c80c84c07e4a0e29659e187b16c1ca5eaa77d419b25bfe552523f671d94e6976021e25e545de22d9cf4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pingram (1.0.27)
4
+ pingram (1.0.29)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -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.27"
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, allow_overage, created_at, updated_at, status, subscription_status].hash
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, allow_overage, created_at, updated_at, status, subscription_status, session_id, url].hash
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
@@ -24,6 +24,9 @@ module Pingram
24
24
 
25
25
  attr_accessor :subscription_status
26
26
 
27
+ # Default secret API key for the new account (`pingram_sk_…`).
28
+ attr_accessor :api_key
29
+
27
30
  class EnumAttributeValidator
28
31
  attr_reader :datatype
29
32
  attr_reader :allowable_values
@@ -52,7 +55,8 @@ module Pingram
52
55
  :'account_id' => :'accountId',
53
56
  :'name' => :'name',
54
57
  :'status' => :'status',
55
- :'subscription_status' => :'subscriptionStatus'
58
+ :'subscription_status' => :'subscriptionStatus',
59
+ :'api_key' => :'apiKey'
56
60
  }
57
61
  end
58
62
 
@@ -72,14 +76,15 @@ module Pingram
72
76
  :'account_id' => :'String',
73
77
  :'name' => :'String',
74
78
  :'status' => :'String',
75
- :'subscription_status' => :'String'
79
+ :'subscription_status' => :'String',
80
+ :'api_key' => :'String'
76
81
  }
77
82
  end
78
83
 
79
84
  # List of attributes with nullable: true
80
85
  def self.openapi_nullable
81
86
  Set.new([
82
- :'subscription_status'
87
+ :'subscription_status',
83
88
  ])
84
89
  end
85
90
 
@@ -120,6 +125,12 @@ module Pingram
120
125
  if attributes.key?(:'subscription_status')
121
126
  self.subscription_status = attributes[:'subscription_status']
122
127
  end
128
+
129
+ if attributes.key?(:'api_key')
130
+ self.api_key = attributes[:'api_key']
131
+ else
132
+ self.api_key = nil
133
+ end
123
134
  end
124
135
 
125
136
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -139,6 +150,10 @@ module Pingram
139
150
  invalid_properties.push('invalid value for "status", status cannot be nil.')
140
151
  end
141
152
 
153
+ if @api_key.nil?
154
+ invalid_properties.push('invalid value for "api_key", api_key cannot be nil.')
155
+ end
156
+
142
157
  invalid_properties
143
158
  end
144
159
 
@@ -153,6 +168,7 @@ module Pingram
153
168
  return false unless status_validator.valid?(@status)
154
169
  subscription_status_validator = EnumAttributeValidator.new('String', ["active", "canceled", "past_due", "paused"])
155
170
  return false unless subscription_status_validator.valid?(@subscription_status)
171
+ return false if @api_key.nil?
156
172
  true
157
173
  end
158
174
 
@@ -196,6 +212,16 @@ module Pingram
196
212
  @subscription_status = subscription_status
197
213
  end
198
214
 
215
+ # Custom attribute writer method with validation
216
+ # @param [Object] api_key Value to be assigned
217
+ def api_key=(api_key)
218
+ if api_key.nil?
219
+ fail ArgumentError, 'api_key cannot be nil'
220
+ end
221
+
222
+ @api_key = api_key
223
+ end
224
+
199
225
  # Checks equality by comparing each attribute.
200
226
  # @param [Object] Object to be compared
201
227
  def ==(o)
@@ -204,7 +230,8 @@ module Pingram
204
230
  account_id == o.account_id &&
205
231
  name == o.name &&
206
232
  status == o.status &&
207
- subscription_status == o.subscription_status
233
+ subscription_status == o.subscription_status &&
234
+ api_key == o.api_key
208
235
  end
209
236
 
210
237
  # @see the `==` method
@@ -216,7 +243,7 @@ module Pingram
216
243
  # Calculates hash code according to all attributes.
217
244
  # @return [Integer] Hash code
218
245
  def hash
219
- [account_id, name, status, subscription_status].hash
246
+ [account_id, name, status, subscription_status, api_key].hash
220
247
  end
221
248
 
222
249
  # 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
- # Brand display name (marketing/DBA); defaults to legalName when omitted on legalName-only updates.
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.