pingram 1.0.28 → 1.0.30

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 (27) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/lib/pingram/api/account_api.rb +66 -0
  4. data/lib/pingram/api_client.rb +1 -1
  5. data/lib/pingram/models/account_get_response.rb +54 -31
  6. data/lib/pingram/models/account_patch_request.rb +149 -0
  7. data/lib/pingram/models/billing_post_response_body.rb +50 -27
  8. data/lib/pingram/models/ten_dlc_brand_admin_update_request.rb +13 -2
  9. data/lib/pingram/models/ten_dlc_brand_create_request.rb +99 -12
  10. data/lib/pingram/models/ten_dlc_brand_registration.rb +13 -1
  11. data/lib/pingram/models/ten_dlc_brand_registration_details.rb +13 -1
  12. data/lib/pingram/models/ten_dlc_brand_update_request.rb +13 -2
  13. data/lib/pingram/models/ten_dlc_campaign_admin_update_request.rb +20 -0
  14. data/lib/pingram/models/ten_dlc_campaign_registration.rb +20 -0
  15. data/lib/pingram/models/ten_dlc_campaign_registration_details.rb +20 -0
  16. data/lib/pingram/models/ten_dlc_campaign_update_request.rb +20 -0
  17. data/lib/pingram/version.rb +1 -1
  18. data/lib/pingram.rb +1 -0
  19. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-13.0.0/gem_make.out +5 -5
  20. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/date-3.5.1/gem_make.out +5 -5
  21. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.9.2/gem_make.out +5 -5
  22. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/io-console-0.9.2/mkmf.log +3 -3
  23. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +5 -5
  24. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-5.5.0/gem_make.out +5 -5
  25. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/racc-1.8.1/gem_make.out +5 -5
  26. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.2.0/gem_make.out +5 -5
  27. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f540ef8b53152ed4f6ecd3308f797e0374b539c96bfd6c23f437f4c939ca8d9
4
- data.tar.gz: ef7b88a8438baee017236e05065a974321658e45dc07efe52665a3bdbfa97d5e
3
+ metadata.gz: b060d82b88d28f53793bd5088b8365bd2b1156c99003032087ff4f7356cde479
4
+ data.tar.gz: 4c141e3cf23edf0e18a7651746164f869464144116fd31ebc7a738b504ad7130
5
5
  SHA512:
6
- metadata.gz: 5da3ff704b8ed13a71b3a3d1a0c1a690006e46ff495c4661649e5a8f2cca1c96e596f14587f3020e53e0c98174270fd6b7b5b6134403ebe0e92402a640f69730
7
- data.tar.gz: 8c5b60183fc0c0cf58f4b3895a7ebb0665e70ffb4d000a3b694c0a3085cbd537e623727ddd4033e58774b15b921db3b5862084821ca195856890b2ab7bf54b1f
6
+ metadata.gz: 5c22df0d321c8c8c006c9c5d6d4cf8defd9ecec06365b3fcdcfd975bce559f63af363dd57291b1589e9c3a11297cc44e4fb545a119ce522f021bee38bedf096b
7
+ data.tar.gz: 0fda0509597950d768dc479f71a60b13dc0bd2ba68e76640b2160ddec58f57d526d2d2a0335feb0c12b45cef63a0198761c1bed891052628c04426dfcd0c9bbf
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pingram (1.0.28)
4
+ pingram (1.0.30)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -630,5 +630,71 @@ module Pingram
630
630
  end
631
631
  return data, status_code, headers
632
632
  end
633
+
634
+ # Update account billing preferences. Only account owners can change these settings.
635
+ # @param account_patch_request [AccountPatchRequest]
636
+ # @param [Hash] opts the optional parameters
637
+ # @return [AccountGetResponse]
638
+ def account_update_account_settings(account_patch_request, opts = {})
639
+ data, _status_code, _headers = account_update_account_settings_with_http_info(account_patch_request, opts)
640
+ data
641
+ end
642
+
643
+ # Update account billing preferences. Only account owners can change these settings.
644
+ # @param account_patch_request [AccountPatchRequest]
645
+ # @param [Hash] opts the optional parameters
646
+ # @return [Array<(AccountGetResponse, Integer, Hash)>] AccountGetResponse data, response status code and response headers
647
+ def account_update_account_settings_with_http_info(account_patch_request, opts = {})
648
+ if @api_client.config.debugging
649
+ @api_client.config.logger.debug 'Calling API: AccountApi.account_update_account_settings ...'
650
+ end
651
+ # verify the required parameter 'account_patch_request' is set
652
+ if @api_client.config.client_side_validation && account_patch_request.nil?
653
+ fail ArgumentError, "Missing the required parameter 'account_patch_request' when calling AccountApi.account_update_account_settings"
654
+ end
655
+ # resource path
656
+ local_var_path = '/account'
657
+
658
+ # query parameters
659
+ query_params = opts[:query_params] || {}
660
+
661
+ # header parameters
662
+ header_params = opts[:header_params] || {}
663
+ # HTTP header 'Accept' (if needed)
664
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
665
+ # HTTP header 'Content-Type'
666
+ content_type = @api_client.select_header_content_type(['application/json'])
667
+ if !content_type.nil?
668
+ header_params['Content-Type'] = content_type
669
+ end
670
+
671
+ # form parameters
672
+ form_params = opts[:form_params] || {}
673
+
674
+ # http body (model)
675
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(account_patch_request)
676
+
677
+ # return_type
678
+ return_type = opts[:debug_return_type] || 'AccountGetResponse'
679
+
680
+ # auth_names (apiKey last so Bearer wins when multiple schemes set Authorization)
681
+ auth_names = opts[:debug_auth_names] || ['endUserHashed', 'endUser', 'clientCredentials', 'apiKey']
682
+
683
+ new_options = opts.merge(
684
+ :operation => :"AccountApi.account_update_account_settings",
685
+ :header_params => header_params,
686
+ :query_params => query_params,
687
+ :form_params => form_params,
688
+ :body => post_body,
689
+ :auth_names => auth_names,
690
+ :return_type => return_type
691
+ )
692
+
693
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
694
+ if @api_client.config.debugging
695
+ @api_client.config.logger.debug "API called: AccountApi#account_update_account_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
696
+ end
697
+ return data, status_code, headers
698
+ end
633
699
  end
634
700
  end
@@ -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.28"
35
+ @user_agent = "pingram-ruby/1.0.30"
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,15 @@ 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
+
55
+ # When true, paid accounts move up one budget tier at 90% of the monthly budget.
56
+ attr_accessor :auto_upgrade
57
+
51
58
  class EnumAttributeValidator
52
59
  attr_reader :datatype
53
60
  attr_reader :allowable_values
@@ -83,11 +90,14 @@ module Pingram
83
90
  :'call_cap' => :'callCap',
84
91
  :'billing_version' => :'billingVersion',
85
92
  :'anniversary_date' => :'anniversaryDate',
86
- :'allow_overage' => :'allowOverage',
87
93
  :'created_at' => :'createdAt',
88
94
  :'updated_at' => :'updatedAt',
89
95
  :'status' => :'status',
90
- :'subscription_status' => :'subscriptionStatus'
96
+ :'subscription_status' => :'subscriptionStatus',
97
+ :'pending_downgrade_effective_date' => :'pendingDowngradeEffectiveDate',
98
+ :'pending_downgrade_cost_cap' => :'pendingDowngradeCostCap',
99
+ :'pending_downgrade_account_type' => :'pendingDowngradeAccountType',
100
+ :'auto_upgrade' => :'autoUpgrade'
91
101
  }
92
102
  end
93
103
 
@@ -114,18 +124,21 @@ module Pingram
114
124
  :'call_cap' => :'Float',
115
125
  :'billing_version' => :'Float',
116
126
  :'anniversary_date' => :'String',
117
- :'allow_overage' => :'Boolean',
118
127
  :'created_at' => :'String',
119
128
  :'updated_at' => :'String',
120
129
  :'status' => :'String',
121
- :'subscription_status' => :'String'
130
+ :'subscription_status' => :'String',
131
+ :'pending_downgrade_effective_date' => :'String',
132
+ :'pending_downgrade_cost_cap' => :'Float',
133
+ :'pending_downgrade_account_type' => :'String',
134
+ :'auto_upgrade' => :'Boolean'
122
135
  }
123
136
  end
124
137
 
125
138
  # List of attributes with nullable: true
126
139
  def self.openapi_nullable
127
140
  Set.new([
128
- :'subscription_status'
141
+ :'subscription_status',
129
142
  ])
130
143
  end
131
144
 
@@ -195,12 +208,6 @@ module Pingram
195
208
  self.anniversary_date = nil
196
209
  end
197
210
 
198
- if attributes.key?(:'allow_overage')
199
- self.allow_overage = attributes[:'allow_overage']
200
- else
201
- self.allow_overage = nil
202
- end
203
-
204
211
  if attributes.key?(:'created_at')
205
212
  self.created_at = attributes[:'created_at']
206
213
  else
@@ -220,6 +227,22 @@ module Pingram
220
227
  if attributes.key?(:'subscription_status')
221
228
  self.subscription_status = attributes[:'subscription_status']
222
229
  end
230
+
231
+ if attributes.key?(:'pending_downgrade_effective_date')
232
+ self.pending_downgrade_effective_date = attributes[:'pending_downgrade_effective_date']
233
+ end
234
+
235
+ if attributes.key?(:'pending_downgrade_cost_cap')
236
+ self.pending_downgrade_cost_cap = attributes[:'pending_downgrade_cost_cap']
237
+ end
238
+
239
+ if attributes.key?(:'pending_downgrade_account_type')
240
+ self.pending_downgrade_account_type = attributes[:'pending_downgrade_account_type']
241
+ end
242
+
243
+ if attributes.key?(:'auto_upgrade')
244
+ self.auto_upgrade = attributes[:'auto_upgrade']
245
+ end
223
246
  end
224
247
 
225
248
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -247,10 +270,6 @@ module Pingram
247
270
  invalid_properties.push('invalid value for "anniversary_date", anniversary_date cannot be nil.')
248
271
  end
249
272
 
250
- if @allow_overage.nil?
251
- invalid_properties.push('invalid value for "allow_overage", allow_overage cannot be nil.')
252
- end
253
-
254
273
  if @created_at.nil?
255
274
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
256
275
  end
@@ -275,13 +294,14 @@ module Pingram
275
294
  billing_version_validator = EnumAttributeValidator.new('Float', [1, 3])
276
295
  return false unless billing_version_validator.valid?(@billing_version)
277
296
  return false if @anniversary_date.nil?
278
- return false if @allow_overage.nil?
279
297
  return false if @created_at.nil?
280
298
  return false if @updated_at.nil?
281
299
  status_validator = EnumAttributeValidator.new('String', ["verified", "unverified", "blocked"])
282
300
  return false unless status_validator.valid?(@status)
283
301
  subscription_status_validator = EnumAttributeValidator.new('String', ["active", "canceled", "past_due", "paused"])
284
302
  return false unless subscription_status_validator.valid?(@subscription_status)
303
+ pending_downgrade_account_type_validator = EnumAttributeValidator.new('String', ["free"])
304
+ return false unless pending_downgrade_account_type_validator.valid?(@pending_downgrade_account_type)
285
305
  true
286
306
  end
287
307
 
@@ -345,16 +365,6 @@ module Pingram
345
365
  @anniversary_date = anniversary_date
346
366
  end
347
367
 
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
368
  # Custom attribute writer method with validation
359
369
  # @param [Object] created_at Value to be assigned
360
370
  def created_at=(created_at)
@@ -395,6 +405,16 @@ module Pingram
395
405
  @subscription_status = subscription_status
396
406
  end
397
407
 
408
+ # Custom attribute writer method checking allowed values (enum).
409
+ # @param [Object] pending_downgrade_account_type Object to be assigned
410
+ def pending_downgrade_account_type=(pending_downgrade_account_type)
411
+ validator = EnumAttributeValidator.new('String', ["free"])
412
+ unless validator.valid?(pending_downgrade_account_type)
413
+ fail ArgumentError, "invalid value for \"pending_downgrade_account_type\", must be one of #{validator.allowable_values}."
414
+ end
415
+ @pending_downgrade_account_type = pending_downgrade_account_type
416
+ end
417
+
398
418
  # Checks equality by comparing each attribute.
399
419
  # @param [Object] Object to be compared
400
420
  def ==(o)
@@ -410,11 +430,14 @@ module Pingram
410
430
  call_cap == o.call_cap &&
411
431
  billing_version == o.billing_version &&
412
432
  anniversary_date == o.anniversary_date &&
413
- allow_overage == o.allow_overage &&
414
433
  created_at == o.created_at &&
415
434
  updated_at == o.updated_at &&
416
435
  status == o.status &&
417
- subscription_status == o.subscription_status
436
+ subscription_status == o.subscription_status &&
437
+ pending_downgrade_effective_date == o.pending_downgrade_effective_date &&
438
+ pending_downgrade_cost_cap == o.pending_downgrade_cost_cap &&
439
+ pending_downgrade_account_type == o.pending_downgrade_account_type &&
440
+ auto_upgrade == o.auto_upgrade
418
441
  end
419
442
 
420
443
  # @see the `==` method
@@ -426,7 +449,7 @@ module Pingram
426
449
  # Calculates hash code according to all attributes.
427
450
  # @return [Integer] Hash code
428
451
  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
452
+ [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, auto_upgrade].hash
430
453
  end
431
454
 
432
455
  # Builds the object from hash
@@ -0,0 +1,149 @@
1
+ =begin
2
+ #Pingram
3
+
4
+ #Internal API for notification delivery and management
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.19.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Pingram
17
+ # PATCH /account request: billing preferences.
18
+ class AccountPatchRequest < ApiModelBase
19
+ # When true, automatically move up one budget tier at 90% of the monthly budget.
20
+ attr_accessor :auto_upgrade
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'auto_upgrade' => :'autoUpgrade'
26
+ }
27
+ end
28
+
29
+ # Returns attribute mapping this model knows about
30
+ def self.acceptable_attribute_map
31
+ attribute_map
32
+ end
33
+
34
+ # Returns all the JSON keys this model knows about
35
+ def self.acceptable_attributes
36
+ acceptable_attribute_map.values
37
+ end
38
+
39
+ # Attribute type mapping.
40
+ def self.openapi_types
41
+ {
42
+ :'auto_upgrade' => :'Boolean'
43
+ }
44
+ end
45
+
46
+ # List of attributes with nullable: true
47
+ def self.openapi_nullable
48
+ Set.new([
49
+ ])
50
+ end
51
+
52
+ # Initializes the object
53
+ # @param [Hash] attributes Model attributes in the form of hash
54
+ def initialize(attributes = {})
55
+ if (!attributes.is_a?(Hash))
56
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::AccountPatchRequest` initialize method"
57
+ end
58
+
59
+ # check to see if the attribute exists and convert string to symbol for hash key
60
+ acceptable_attribute_map = self.class.acceptable_attribute_map
61
+ attributes = attributes.each_with_object({}) { |(k, v), h|
62
+ if (!acceptable_attribute_map.key?(k.to_sym))
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::AccountPatchRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
64
+ end
65
+ h[k.to_sym] = v
66
+ }
67
+
68
+ if attributes.key?(:'auto_upgrade')
69
+ self.auto_upgrade = attributes[:'auto_upgrade']
70
+ end
71
+ end
72
+
73
+ # Show invalid properties with the reasons. Usually used together with valid?
74
+ # @return Array for valid properties with the reasons
75
+ def list_invalid_properties
76
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
77
+ invalid_properties = Array.new
78
+ invalid_properties
79
+ end
80
+
81
+ # Check to see if the all the properties in the model are valid
82
+ # @return true if the model is valid
83
+ def valid?
84
+ warn '[DEPRECATED] the `valid?` method is obsolete'
85
+ true
86
+ end
87
+
88
+ # Checks equality by comparing each attribute.
89
+ # @param [Object] Object to be compared
90
+ def ==(o)
91
+ return true if self.equal?(o)
92
+ self.class == o.class &&
93
+ auto_upgrade == o.auto_upgrade
94
+ end
95
+
96
+ # @see the `==` method
97
+ # @param [Object] Object to be compared
98
+ def eql?(o)
99
+ self == o
100
+ end
101
+
102
+ # Calculates hash code according to all attributes.
103
+ # @return [Integer] Hash code
104
+ def hash
105
+ [auto_upgrade].hash
106
+ end
107
+
108
+ # Builds the object from hash
109
+ # @param [Hash] attributes Model attributes in the form of hash
110
+ # @return [Object] Returns the model itself
111
+ def self.build_from_hash(attributes)
112
+ return nil unless attributes.is_a?(Hash)
113
+ attributes = attributes.transform_keys(&:to_sym)
114
+ transformed_hash = {}
115
+ openapi_types.each_pair do |key, type|
116
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
117
+ transformed_hash["#{key}"] = nil
118
+ elsif type =~ /\AArray<(.*)>/i
119
+ # check to ensure the input is an array given that the attribute
120
+ # is documented as an array but the input is not
121
+ if attributes[attribute_map[key]].is_a?(Array)
122
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
123
+ end
124
+ elsif !attributes[attribute_map[key]].nil?
125
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
126
+ end
127
+ end
128
+ new(transformed_hash)
129
+ end
130
+
131
+ # Returns the object in the form of hash
132
+ # @return [Hash] Returns the object in the form of hash
133
+ def to_hash
134
+ hash = {}
135
+ self.class.attribute_map.each_pair do |attr, param|
136
+ value = self.send(attr)
137
+ if value.nil?
138
+ is_nullable = self.class.openapi_nullable.include?(attr)
139
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
140
+ end
141
+
142
+ hash[param] = _to_hash(value)
143
+ end
144
+ hash
145
+ end
146
+
147
+ end
148
+
149
+ end
@@ -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,15 @@ 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
+
55
+ # When true, paid accounts move up one budget tier at 90% of the monthly budget.
56
+ attr_accessor :auto_upgrade
57
+
51
58
  attr_accessor :session_id
52
59
 
53
60
  attr_accessor :url
@@ -87,11 +94,14 @@ module Pingram
87
94
  :'call_cap' => :'callCap',
88
95
  :'billing_version' => :'billingVersion',
89
96
  :'anniversary_date' => :'anniversaryDate',
90
- :'allow_overage' => :'allowOverage',
91
97
  :'created_at' => :'createdAt',
92
98
  :'updated_at' => :'updatedAt',
93
99
  :'status' => :'status',
94
100
  :'subscription_status' => :'subscriptionStatus',
101
+ :'pending_downgrade_effective_date' => :'pendingDowngradeEffectiveDate',
102
+ :'pending_downgrade_cost_cap' => :'pendingDowngradeCostCap',
103
+ :'pending_downgrade_account_type' => :'pendingDowngradeAccountType',
104
+ :'auto_upgrade' => :'autoUpgrade',
95
105
  :'session_id' => :'sessionId',
96
106
  :'url' => :'url'
97
107
  }
@@ -120,11 +130,14 @@ module Pingram
120
130
  :'call_cap' => :'Float',
121
131
  :'billing_version' => :'Float',
122
132
  :'anniversary_date' => :'String',
123
- :'allow_overage' => :'Boolean',
124
133
  :'created_at' => :'String',
125
134
  :'updated_at' => :'String',
126
135
  :'status' => :'String',
127
136
  :'subscription_status' => :'String',
137
+ :'pending_downgrade_effective_date' => :'String',
138
+ :'pending_downgrade_cost_cap' => :'Float',
139
+ :'pending_downgrade_account_type' => :'String',
140
+ :'auto_upgrade' => :'Boolean',
128
141
  :'session_id' => :'String',
129
142
  :'url' => :'String'
130
143
  }
@@ -203,12 +216,6 @@ module Pingram
203
216
  self.anniversary_date = nil
204
217
  end
205
218
 
206
- if attributes.key?(:'allow_overage')
207
- self.allow_overage = attributes[:'allow_overage']
208
- else
209
- self.allow_overage = nil
210
- end
211
-
212
219
  if attributes.key?(:'created_at')
213
220
  self.created_at = attributes[:'created_at']
214
221
  else
@@ -229,6 +236,22 @@ module Pingram
229
236
  self.subscription_status = attributes[:'subscription_status']
230
237
  end
231
238
 
239
+ if attributes.key?(:'pending_downgrade_effective_date')
240
+ self.pending_downgrade_effective_date = attributes[:'pending_downgrade_effective_date']
241
+ end
242
+
243
+ if attributes.key?(:'pending_downgrade_cost_cap')
244
+ self.pending_downgrade_cost_cap = attributes[:'pending_downgrade_cost_cap']
245
+ end
246
+
247
+ if attributes.key?(:'pending_downgrade_account_type')
248
+ self.pending_downgrade_account_type = attributes[:'pending_downgrade_account_type']
249
+ end
250
+
251
+ if attributes.key?(:'auto_upgrade')
252
+ self.auto_upgrade = attributes[:'auto_upgrade']
253
+ end
254
+
232
255
  if attributes.key?(:'session_id')
233
256
  self.session_id = attributes[:'session_id']
234
257
  end
@@ -263,10 +286,6 @@ module Pingram
263
286
  invalid_properties.push('invalid value for "anniversary_date", anniversary_date cannot be nil.')
264
287
  end
265
288
 
266
- if @allow_overage.nil?
267
- invalid_properties.push('invalid value for "allow_overage", allow_overage cannot be nil.')
268
- end
269
-
270
289
  if @created_at.nil?
271
290
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
272
291
  end
@@ -291,13 +310,14 @@ module Pingram
291
310
  billing_version_validator = EnumAttributeValidator.new('Float', [1, 3])
292
311
  return false unless billing_version_validator.valid?(@billing_version)
293
312
  return false if @anniversary_date.nil?
294
- return false if @allow_overage.nil?
295
313
  return false if @created_at.nil?
296
314
  return false if @updated_at.nil?
297
315
  status_validator = EnumAttributeValidator.new('String', ["verified", "unverified", "blocked"])
298
316
  return false unless status_validator.valid?(@status)
299
317
  subscription_status_validator = EnumAttributeValidator.new('String', ["active", "canceled", "past_due", "paused"])
300
318
  return false unless subscription_status_validator.valid?(@subscription_status)
319
+ pending_downgrade_account_type_validator = EnumAttributeValidator.new('String', ["free"])
320
+ return false unless pending_downgrade_account_type_validator.valid?(@pending_downgrade_account_type)
301
321
  true
302
322
  end
303
323
 
@@ -361,16 +381,6 @@ module Pingram
361
381
  @anniversary_date = anniversary_date
362
382
  end
363
383
 
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
384
  # Custom attribute writer method with validation
375
385
  # @param [Object] created_at Value to be assigned
376
386
  def created_at=(created_at)
@@ -411,6 +421,16 @@ module Pingram
411
421
  @subscription_status = subscription_status
412
422
  end
413
423
 
424
+ # Custom attribute writer method checking allowed values (enum).
425
+ # @param [Object] pending_downgrade_account_type Object to be assigned
426
+ def pending_downgrade_account_type=(pending_downgrade_account_type)
427
+ validator = EnumAttributeValidator.new('String', ["free"])
428
+ unless validator.valid?(pending_downgrade_account_type)
429
+ fail ArgumentError, "invalid value for \"pending_downgrade_account_type\", must be one of #{validator.allowable_values}."
430
+ end
431
+ @pending_downgrade_account_type = pending_downgrade_account_type
432
+ end
433
+
414
434
  # Checks equality by comparing each attribute.
415
435
  # @param [Object] Object to be compared
416
436
  def ==(o)
@@ -426,11 +446,14 @@ module Pingram
426
446
  call_cap == o.call_cap &&
427
447
  billing_version == o.billing_version &&
428
448
  anniversary_date == o.anniversary_date &&
429
- allow_overage == o.allow_overage &&
430
449
  created_at == o.created_at &&
431
450
  updated_at == o.updated_at &&
432
451
  status == o.status &&
433
452
  subscription_status == o.subscription_status &&
453
+ pending_downgrade_effective_date == o.pending_downgrade_effective_date &&
454
+ pending_downgrade_cost_cap == o.pending_downgrade_cost_cap &&
455
+ pending_downgrade_account_type == o.pending_downgrade_account_type &&
456
+ auto_upgrade == o.auto_upgrade &&
434
457
  session_id == o.session_id &&
435
458
  url == o.url
436
459
  end
@@ -444,7 +467,7 @@ module Pingram
444
467
  # Calculates hash code according to all attributes.
445
468
  # @return [Integer] Hash code
446
469
  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
470
+ [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, auto_upgrade, session_id, url].hash
448
471
  end
449
472
 
450
473
  # 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.