pingram 1.0.22 → 1.0.24

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/accounts_api.rb +143 -0
  4. data/lib/pingram/api/user_api.rb +0 -133
  5. data/lib/pingram/api_client.rb +1 -1
  6. data/lib/pingram/client_wrapper.rb +10 -0
  7. data/lib/pingram/models/account_get_response.rb +25 -4
  8. data/lib/pingram/models/billing_post_response_body.rb +22 -1
  9. data/lib/pingram/models/create_account_request.rb +45 -9
  10. data/lib/pingram/models/create_account_request_plan.rb +216 -0
  11. data/lib/pingram/models/create_account_response.rb +103 -30
  12. data/lib/pingram/models/first_account_request.rb +150 -0
  13. data/lib/pingram/models/{slack_oauth_request.rb → first_account_response.rb} +34 -34
  14. data/lib/pingram/models/list_accounts_response.rb +167 -0
  15. data/lib/pingram/models/list_accounts_response_accounts_inner.rb +304 -0
  16. data/lib/pingram/models/phone_verify_confirm_response.rb +13 -4
  17. data/lib/pingram/version.rb +1 -1
  18. data/lib/pingram.rb +6 -1
  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.4.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 +8 -3
@@ -14,16 +14,16 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Pingram
17
- class SlackOauthRequest < ApiModelBase
18
- attr_accessor :code
17
+ class FirstAccountResponse < ApiModelBase
18
+ attr_accessor :success
19
19
 
20
- attr_accessor :redirect_uri
20
+ attr_accessor :account_id
21
21
 
22
22
  # Attribute mapping from ruby-style variable name to JSON key.
23
23
  def self.attribute_map
24
24
  {
25
- :'code' => :'code',
26
- :'redirect_uri' => :'redirect_uri'
25
+ :'success' => :'success',
26
+ :'account_id' => :'accountId'
27
27
  }
28
28
  end
29
29
 
@@ -40,8 +40,8 @@ module Pingram
40
40
  # Attribute type mapping.
41
41
  def self.openapi_types
42
42
  {
43
- :'code' => :'String',
44
- :'redirect_uri' => :'String'
43
+ :'success' => :'Boolean',
44
+ :'account_id' => :'String'
45
45
  }
46
46
  end
47
47
 
@@ -55,28 +55,28 @@ module Pingram
55
55
  # @param [Hash] attributes Model attributes in the form of hash
56
56
  def initialize(attributes = {})
57
57
  if (!attributes.is_a?(Hash))
58
- fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::SlackOauthRequest` initialize method"
58
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::FirstAccountResponse` initialize method"
59
59
  end
60
60
 
61
61
  # check to see if the attribute exists and convert string to symbol for hash key
62
62
  acceptable_attribute_map = self.class.acceptable_attribute_map
63
63
  attributes = attributes.each_with_object({}) { |(k, v), h|
64
64
  if (!acceptable_attribute_map.key?(k.to_sym))
65
- fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::SlackOauthRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
65
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::FirstAccountResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
66
66
  end
67
67
  h[k.to_sym] = v
68
68
  }
69
69
 
70
- if attributes.key?(:'code')
71
- self.code = attributes[:'code']
70
+ if attributes.key?(:'success')
71
+ self.success = attributes[:'success']
72
72
  else
73
- self.code = nil
73
+ self.success = nil
74
74
  end
75
75
 
76
- if attributes.key?(:'redirect_uri')
77
- self.redirect_uri = attributes[:'redirect_uri']
76
+ if attributes.key?(:'account_id')
77
+ self.account_id = attributes[:'account_id']
78
78
  else
79
- self.redirect_uri = nil
79
+ self.account_id = nil
80
80
  end
81
81
  end
82
82
 
@@ -85,12 +85,12 @@ module Pingram
85
85
  def list_invalid_properties
86
86
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
87
87
  invalid_properties = Array.new
88
- if @code.nil?
89
- invalid_properties.push('invalid value for "code", code cannot be nil.')
88
+ if @success.nil?
89
+ invalid_properties.push('invalid value for "success", success cannot be nil.')
90
90
  end
91
91
 
92
- if @redirect_uri.nil?
93
- invalid_properties.push('invalid value for "redirect_uri", redirect_uri cannot be nil.')
92
+ if @account_id.nil?
93
+ invalid_properties.push('invalid value for "account_id", account_id cannot be nil.')
94
94
  end
95
95
 
96
96
  invalid_properties
@@ -100,29 +100,29 @@ module Pingram
100
100
  # @return true if the model is valid
101
101
  def valid?
102
102
  warn '[DEPRECATED] the `valid?` method is obsolete'
103
- return false if @code.nil?
104
- return false if @redirect_uri.nil?
103
+ return false if @success.nil?
104
+ return false if @account_id.nil?
105
105
  true
106
106
  end
107
107
 
108
108
  # Custom attribute writer method with validation
109
- # @param [Object] code Value to be assigned
110
- def code=(code)
111
- if code.nil?
112
- fail ArgumentError, 'code cannot be nil'
109
+ # @param [Object] success Value to be assigned
110
+ def success=(success)
111
+ if success.nil?
112
+ fail ArgumentError, 'success cannot be nil'
113
113
  end
114
114
 
115
- @code = code
115
+ @success = success
116
116
  end
117
117
 
118
118
  # Custom attribute writer method with validation
119
- # @param [Object] redirect_uri Value to be assigned
120
- def redirect_uri=(redirect_uri)
121
- if redirect_uri.nil?
122
- fail ArgumentError, 'redirect_uri cannot be nil'
119
+ # @param [Object] account_id Value to be assigned
120
+ def account_id=(account_id)
121
+ if account_id.nil?
122
+ fail ArgumentError, 'account_id cannot be nil'
123
123
  end
124
124
 
125
- @redirect_uri = redirect_uri
125
+ @account_id = account_id
126
126
  end
127
127
 
128
128
  # Checks equality by comparing each attribute.
@@ -130,8 +130,8 @@ module Pingram
130
130
  def ==(o)
131
131
  return true if self.equal?(o)
132
132
  self.class == o.class &&
133
- code == o.code &&
134
- redirect_uri == o.redirect_uri
133
+ success == o.success &&
134
+ account_id == o.account_id
135
135
  end
136
136
 
137
137
  # @see the `==` method
@@ -143,7 +143,7 @@ module Pingram
143
143
  # Calculates hash code according to all attributes.
144
144
  # @return [Integer] Hash code
145
145
  def hash
146
- [code, redirect_uri].hash
146
+ [success, account_id].hash
147
147
  end
148
148
 
149
149
  # Builds the object from hash
@@ -0,0 +1,167 @@
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
+ # Response for GET /accounts
18
+ class ListAccountsResponse < ApiModelBase
19
+ attr_accessor :accounts
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'accounts' => :'accounts'
25
+ }
26
+ end
27
+
28
+ # Returns attribute mapping this model knows about
29
+ def self.acceptable_attribute_map
30
+ attribute_map
31
+ end
32
+
33
+ # Returns all the JSON keys this model knows about
34
+ def self.acceptable_attributes
35
+ acceptable_attribute_map.values
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.openapi_types
40
+ {
41
+ :'accounts' => :'Array<ListAccountsResponseAccountsInner>'
42
+ }
43
+ end
44
+
45
+ # List of attributes with nullable: true
46
+ def self.openapi_nullable
47
+ Set.new([
48
+ ])
49
+ end
50
+
51
+ # Initializes the object
52
+ # @param [Hash] attributes Model attributes in the form of hash
53
+ def initialize(attributes = {})
54
+ if (!attributes.is_a?(Hash))
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::ListAccountsResponse` initialize method"
56
+ end
57
+
58
+ # check to see if the attribute exists and convert string to symbol for hash key
59
+ acceptable_attribute_map = self.class.acceptable_attribute_map
60
+ attributes = attributes.each_with_object({}) { |(k, v), h|
61
+ if (!acceptable_attribute_map.key?(k.to_sym))
62
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::ListAccountsResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
63
+ end
64
+ h[k.to_sym] = v
65
+ }
66
+
67
+ if attributes.key?(:'accounts')
68
+ if (value = attributes[:'accounts']).is_a?(Array)
69
+ self.accounts = value
70
+ end
71
+ else
72
+ self.accounts = nil
73
+ end
74
+ end
75
+
76
+ # Show invalid properties with the reasons. Usually used together with valid?
77
+ # @return Array for valid properties with the reasons
78
+ def list_invalid_properties
79
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
80
+ invalid_properties = Array.new
81
+ if @accounts.nil?
82
+ invalid_properties.push('invalid value for "accounts", accounts cannot be nil.')
83
+ end
84
+
85
+ invalid_properties
86
+ end
87
+
88
+ # Check to see if the all the properties in the model are valid
89
+ # @return true if the model is valid
90
+ def valid?
91
+ warn '[DEPRECATED] the `valid?` method is obsolete'
92
+ return false if @accounts.nil?
93
+ true
94
+ end
95
+
96
+ # Custom attribute writer method with validation
97
+ # @param [Object] accounts Value to be assigned
98
+ def accounts=(accounts)
99
+ if accounts.nil?
100
+ fail ArgumentError, 'accounts cannot be nil'
101
+ end
102
+
103
+ @accounts = accounts
104
+ end
105
+
106
+ # Checks equality by comparing each attribute.
107
+ # @param [Object] Object to be compared
108
+ def ==(o)
109
+ return true if self.equal?(o)
110
+ self.class == o.class &&
111
+ accounts == o.accounts
112
+ end
113
+
114
+ # @see the `==` method
115
+ # @param [Object] Object to be compared
116
+ def eql?(o)
117
+ self == o
118
+ end
119
+
120
+ # Calculates hash code according to all attributes.
121
+ # @return [Integer] Hash code
122
+ def hash
123
+ [accounts].hash
124
+ end
125
+
126
+ # Builds the object from hash
127
+ # @param [Hash] attributes Model attributes in the form of hash
128
+ # @return [Object] Returns the model itself
129
+ def self.build_from_hash(attributes)
130
+ return nil unless attributes.is_a?(Hash)
131
+ attributes = attributes.transform_keys(&:to_sym)
132
+ transformed_hash = {}
133
+ openapi_types.each_pair do |key, type|
134
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
135
+ transformed_hash["#{key}"] = nil
136
+ elsif type =~ /\AArray<(.*)>/i
137
+ # check to ensure the input is an array given that the attribute
138
+ # is documented as an array but the input is not
139
+ if attributes[attribute_map[key]].is_a?(Array)
140
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
141
+ end
142
+ elsif !attributes[attribute_map[key]].nil?
143
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
144
+ end
145
+ end
146
+ new(transformed_hash)
147
+ end
148
+
149
+ # Returns the object in the form of hash
150
+ # @return [Hash] Returns the object in the form of hash
151
+ def to_hash
152
+ hash = {}
153
+ self.class.attribute_map.each_pair do |attr, param|
154
+ value = self.send(attr)
155
+ if value.nil?
156
+ is_nullable = self.class.openapi_nullable.include?(attr)
157
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
158
+ end
159
+
160
+ hash[param] = _to_hash(value)
161
+ end
162
+ hash
163
+ end
164
+
165
+ end
166
+
167
+ end
@@ -0,0 +1,304 @@
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
+ # Summary of an account the user can access (GET /accounts).
18
+ class ListAccountsResponseAccountsInner < ApiModelBase
19
+ attr_accessor :account_id
20
+
21
+ attr_accessor :name
22
+
23
+ attr_accessor :account_type
24
+
25
+ attr_accessor :created_at
26
+
27
+ attr_accessor :status
28
+
29
+ attr_accessor :cost_cap
30
+
31
+ class EnumAttributeValidator
32
+ attr_reader :datatype
33
+ attr_reader :allowable_values
34
+
35
+ def initialize(datatype, allowable_values)
36
+ @allowable_values = allowable_values.map do |value|
37
+ case datatype.to_s
38
+ when /Integer/i
39
+ value.to_i
40
+ when /Float/i
41
+ value.to_f
42
+ else
43
+ value
44
+ end
45
+ end
46
+ end
47
+
48
+ def valid?(value)
49
+ !value || allowable_values.include?(value)
50
+ end
51
+ end
52
+
53
+ # Attribute mapping from ruby-style variable name to JSON key.
54
+ def self.attribute_map
55
+ {
56
+ :'account_id' => :'accountId',
57
+ :'name' => :'name',
58
+ :'account_type' => :'accountType',
59
+ :'created_at' => :'createdAt',
60
+ :'status' => :'status',
61
+ :'cost_cap' => :'costCap'
62
+ }
63
+ end
64
+
65
+ # Returns attribute mapping this model knows about
66
+ def self.acceptable_attribute_map
67
+ attribute_map
68
+ end
69
+
70
+ # Returns all the JSON keys this model knows about
71
+ def self.acceptable_attributes
72
+ acceptable_attribute_map.values
73
+ end
74
+
75
+ # Attribute type mapping.
76
+ def self.openapi_types
77
+ {
78
+ :'account_id' => :'String',
79
+ :'name' => :'String',
80
+ :'account_type' => :'String',
81
+ :'created_at' => :'String',
82
+ :'status' => :'String',
83
+ :'cost_cap' => :'Float'
84
+ }
85
+ end
86
+
87
+ # List of attributes with nullable: true
88
+ def self.openapi_nullable
89
+ Set.new([
90
+ ])
91
+ end
92
+
93
+ # Initializes the object
94
+ # @param [Hash] attributes Model attributes in the form of hash
95
+ def initialize(attributes = {})
96
+ if (!attributes.is_a?(Hash))
97
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::ListAccountsResponseAccountsInner` initialize method"
98
+ end
99
+
100
+ # check to see if the attribute exists and convert string to symbol for hash key
101
+ acceptable_attribute_map = self.class.acceptable_attribute_map
102
+ attributes = attributes.each_with_object({}) { |(k, v), h|
103
+ if (!acceptable_attribute_map.key?(k.to_sym))
104
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::ListAccountsResponseAccountsInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
105
+ end
106
+ h[k.to_sym] = v
107
+ }
108
+
109
+ if attributes.key?(:'account_id')
110
+ self.account_id = attributes[:'account_id']
111
+ else
112
+ self.account_id = nil
113
+ end
114
+
115
+ if attributes.key?(:'name')
116
+ self.name = attributes[:'name']
117
+ end
118
+
119
+ if attributes.key?(:'account_type')
120
+ self.account_type = attributes[:'account_type']
121
+ else
122
+ self.account_type = nil
123
+ end
124
+
125
+ if attributes.key?(:'created_at')
126
+ self.created_at = attributes[:'created_at']
127
+ else
128
+ self.created_at = nil
129
+ end
130
+
131
+ if attributes.key?(:'status')
132
+ self.status = attributes[:'status']
133
+ else
134
+ self.status = nil
135
+ end
136
+
137
+ if attributes.key?(:'cost_cap')
138
+ self.cost_cap = attributes[:'cost_cap']
139
+ else
140
+ self.cost_cap = nil
141
+ end
142
+ end
143
+
144
+ # Show invalid properties with the reasons. Usually used together with valid?
145
+ # @return Array for valid properties with the reasons
146
+ def list_invalid_properties
147
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
148
+ invalid_properties = Array.new
149
+ if @account_id.nil?
150
+ invalid_properties.push('invalid value for "account_id", account_id cannot be nil.')
151
+ end
152
+
153
+ if @account_type.nil?
154
+ invalid_properties.push('invalid value for "account_type", account_type cannot be nil.')
155
+ end
156
+
157
+ if @created_at.nil?
158
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
159
+ end
160
+
161
+ if @status.nil?
162
+ invalid_properties.push('invalid value for "status", status cannot be nil.')
163
+ end
164
+
165
+ if @cost_cap.nil?
166
+ invalid_properties.push('invalid value for "cost_cap", cost_cap cannot be nil.')
167
+ end
168
+
169
+ invalid_properties
170
+ end
171
+
172
+ # Check to see if the all the properties in the model are valid
173
+ # @return true if the model is valid
174
+ def valid?
175
+ warn '[DEPRECATED] the `valid?` method is obsolete'
176
+ return false if @account_id.nil?
177
+ return false if @account_type.nil?
178
+ account_type_validator = EnumAttributeValidator.new('String', ["free", "paid"])
179
+ return false unless account_type_validator.valid?(@account_type)
180
+ return false if @created_at.nil?
181
+ return false if @status.nil?
182
+ status_validator = EnumAttributeValidator.new('String', ["verified", "unverified", "blocked"])
183
+ return false unless status_validator.valid?(@status)
184
+ return false if @cost_cap.nil?
185
+ true
186
+ end
187
+
188
+ # Custom attribute writer method with validation
189
+ # @param [Object] account_id Value to be assigned
190
+ def account_id=(account_id)
191
+ if account_id.nil?
192
+ fail ArgumentError, 'account_id cannot be nil'
193
+ end
194
+
195
+ @account_id = account_id
196
+ end
197
+
198
+ # Custom attribute writer method checking allowed values (enum).
199
+ # @param [Object] account_type Object to be assigned
200
+ def account_type=(account_type)
201
+ validator = EnumAttributeValidator.new('String', ["free", "paid"])
202
+ unless validator.valid?(account_type)
203
+ fail ArgumentError, "invalid value for \"account_type\", must be one of #{validator.allowable_values}."
204
+ end
205
+ @account_type = account_type
206
+ end
207
+
208
+ # Custom attribute writer method with validation
209
+ # @param [Object] created_at Value to be assigned
210
+ def created_at=(created_at)
211
+ if created_at.nil?
212
+ fail ArgumentError, 'created_at cannot be nil'
213
+ end
214
+
215
+ @created_at = created_at
216
+ end
217
+
218
+ # Custom attribute writer method checking allowed values (enum).
219
+ # @param [Object] status Object to be assigned
220
+ def status=(status)
221
+ validator = EnumAttributeValidator.new('String', ["verified", "unverified", "blocked"])
222
+ unless validator.valid?(status)
223
+ fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
224
+ end
225
+ @status = status
226
+ end
227
+
228
+ # Custom attribute writer method with validation
229
+ # @param [Object] cost_cap Value to be assigned
230
+ def cost_cap=(cost_cap)
231
+ if cost_cap.nil?
232
+ fail ArgumentError, 'cost_cap cannot be nil'
233
+ end
234
+
235
+ @cost_cap = cost_cap
236
+ end
237
+
238
+ # Checks equality by comparing each attribute.
239
+ # @param [Object] Object to be compared
240
+ def ==(o)
241
+ return true if self.equal?(o)
242
+ self.class == o.class &&
243
+ account_id == o.account_id &&
244
+ name == o.name &&
245
+ account_type == o.account_type &&
246
+ created_at == o.created_at &&
247
+ status == o.status &&
248
+ cost_cap == o.cost_cap
249
+ end
250
+
251
+ # @see the `==` method
252
+ # @param [Object] Object to be compared
253
+ def eql?(o)
254
+ self == o
255
+ end
256
+
257
+ # Calculates hash code according to all attributes.
258
+ # @return [Integer] Hash code
259
+ def hash
260
+ [account_id, name, account_type, created_at, status, cost_cap].hash
261
+ end
262
+
263
+ # Builds the object from hash
264
+ # @param [Hash] attributes Model attributes in the form of hash
265
+ # @return [Object] Returns the model itself
266
+ def self.build_from_hash(attributes)
267
+ return nil unless attributes.is_a?(Hash)
268
+ attributes = attributes.transform_keys(&:to_sym)
269
+ transformed_hash = {}
270
+ openapi_types.each_pair do |key, type|
271
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
272
+ transformed_hash["#{key}"] = nil
273
+ elsif type =~ /\AArray<(.*)>/i
274
+ # check to ensure the input is an array given that the attribute
275
+ # is documented as an array but the input is not
276
+ if attributes[attribute_map[key]].is_a?(Array)
277
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
278
+ end
279
+ elsif !attributes[attribute_map[key]].nil?
280
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
281
+ end
282
+ end
283
+ new(transformed_hash)
284
+ end
285
+
286
+ # Returns the object in the form of hash
287
+ # @return [Hash] Returns the object in the form of hash
288
+ def to_hash
289
+ hash = {}
290
+ self.class.attribute_map.each_pair do |attr, param|
291
+ value = self.send(attr)
292
+ if value.nil?
293
+ is_nullable = self.class.openapi_nullable.include?(attr)
294
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
295
+ end
296
+
297
+ hash[param] = _to_hash(value)
298
+ end
299
+ hash
300
+ end
301
+
302
+ end
303
+
304
+ end
@@ -17,10 +17,13 @@ module Pingram
17
17
  class PhoneVerifyConfirmResponse < ApiModelBase
18
18
  attr_accessor :verified
19
19
 
20
+ attr_accessor :account_id
21
+
20
22
  # Attribute mapping from ruby-style variable name to JSON key.
21
23
  def self.attribute_map
22
24
  {
23
- :'verified' => :'verified'
25
+ :'verified' => :'verified',
26
+ :'account_id' => :'accountId'
24
27
  }
25
28
  end
26
29
 
@@ -37,7 +40,8 @@ module Pingram
37
40
  # Attribute type mapping.
38
41
  def self.openapi_types
39
42
  {
40
- :'verified' => :'Boolean'
43
+ :'verified' => :'Boolean',
44
+ :'account_id' => :'String'
41
45
  }
42
46
  end
43
47
 
@@ -68,6 +72,10 @@ module Pingram
68
72
  else
69
73
  self.verified = nil
70
74
  end
75
+
76
+ if attributes.key?(:'account_id')
77
+ self.account_id = attributes[:'account_id']
78
+ end
71
79
  end
72
80
 
73
81
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -105,7 +113,8 @@ module Pingram
105
113
  def ==(o)
106
114
  return true if self.equal?(o)
107
115
  self.class == o.class &&
108
- verified == o.verified
116
+ verified == o.verified &&
117
+ account_id == o.account_id
109
118
  end
110
119
 
111
120
  # @see the `==` method
@@ -117,7 +126,7 @@ module Pingram
117
126
  # Calculates hash code according to all attributes.
118
127
  # @return [Integer] Hash code
119
128
  def hash
120
- [verified].hash
129
+ [verified, account_id].hash
121
130
  end
122
131
 
123
132
  # Builds the object from hash
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Pingram
14
- VERSION = '1.0.22'
14
+ VERSION = '1.0.24'
15
15
  end