conekta 7.0.1 → 7.0.3

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 (70) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +19 -8
  3. data/VERSION +1 -1
  4. data/config-ruby.json +1 -1
  5. data/docs/ChargeOrderResponsePaymentMethod.md +5 -2
  6. data/docs/ChargeRequestPaymentMethod.md +3 -1
  7. data/docs/ChargeResponsePaymentMethod.md +5 -2
  8. data/docs/ChargesApi.md +2 -2
  9. data/docs/CheckoutRequest.md +1 -1
  10. data/docs/CompaniesApi.md +296 -0
  11. data/docs/CompanyDocumentRequest.md +26 -0
  12. data/docs/CompanyDocumentResponse.md +22 -0
  13. data/docs/CompanyResponse.md +18 -16
  14. data/docs/CompanyResponseDocumentsInner.md +22 -0
  15. data/docs/CreateCompanyRequest.md +26 -0
  16. data/docs/CreateCompanyRequestBankAccountInfo.md +18 -0
  17. data/docs/CreateCompanyRequestComercialInfo.md +24 -0
  18. data/docs/CreateCompanyRequestFiscalInfo.md +20 -0
  19. data/docs/CreateCustomerPaymentMethodsResponse.md +3 -2
  20. data/docs/CustomerPaymentMethodRequest.md +1 -1
  21. data/docs/CustomerPaymentMethodsData.md +3 -2
  22. data/docs/EventsResendResponse.md +1 -1
  23. data/docs/GetCustomerPaymentMethodDataResponse.md +3 -2
  24. data/docs/OrderResponseCheckout.md +1 -1
  25. data/docs/PaymentMethodBnplRequest.md +1 -1
  26. data/docs/PaymentMethodCardRequest.md +1 -1
  27. data/docs/PaymentMethodCashRecurrentResponse.md +38 -0
  28. data/docs/PaymentMethodCashRequest.md +1 -1
  29. data/docs/PaymentMethodPbbPayment.md +30 -0
  30. data/docs/PaymentMethodPbbRequest.md +22 -0
  31. data/docs/PaymentMethodSpeiRecurrent.md +2 -0
  32. data/docs/PaymentMethodSpeiRequest.md +1 -1
  33. data/docs/PaymentMethodTokenRequest.md +1 -1
  34. data/docs/PaymentMethodsApi.md +1 -1
  35. data/docs/UpdateCustomerPaymentMethodsResponse.md +3 -2
  36. data/docs/UpdatePaymentMethods.md +4 -2
  37. data/docs/WebhookLog.md +1 -1
  38. data/docs/WebhookResponse.md +1 -1
  39. data/examples/README.md +15 -0
  40. data/examples/one_time_charge_bnpl.rb +49 -0
  41. data/examples/one_time_charge_pbb.rb +47 -0
  42. data/lib/conekta/api/companies_api.rb +300 -0
  43. data/lib/conekta/models/charge_order_response_payment_method.rb +4 -2
  44. data/lib/conekta/models/charge_request_payment_method.rb +2 -1
  45. data/lib/conekta/models/charge_response_payment_method.rb +4 -2
  46. data/lib/conekta/models/company_document_request.rb +318 -0
  47. data/lib/conekta/models/company_document_response.rb +291 -0
  48. data/lib/conekta/models/company_response.rb +110 -74
  49. data/lib/conekta/models/company_response_documents_inner.rb +270 -0
  50. data/lib/conekta/models/create_company_request.rb +252 -0
  51. data/lib/conekta/models/create_company_request_bank_account_info.rb +216 -0
  52. data/lib/conekta/models/create_company_request_comercial_info.rb +246 -0
  53. data/lib/conekta/models/create_company_request_fiscal_info.rb +226 -0
  54. data/lib/conekta/models/create_customer_payment_methods_response.rb +2 -2
  55. data/lib/conekta/models/customer_payment_methods_data.rb +2 -2
  56. data/lib/conekta/models/get_customer_payment_method_data_response.rb +2 -2
  57. data/lib/conekta/models/payment_method_bnpl_request.rb +2 -2
  58. data/lib/conekta/models/payment_method_cash_recurrent_response.rb +343 -0
  59. data/lib/conekta/models/payment_method_pbb_payment.rb +341 -0
  60. data/lib/conekta/models/payment_method_pbb_request.rb +309 -0
  61. data/lib/conekta/models/payment_method_spei_recurrent.rb +11 -1
  62. data/lib/conekta/models/update_customer_payment_methods_response.rb +2 -2
  63. data/lib/conekta/models/update_payment_methods.rb +34 -4
  64. data/lib/conekta/version.rb +1 -1
  65. data/lib/conekta.rb +10 -3
  66. data/spec/api/companies_api_spec.rb +53 -0
  67. metadata +42 -22
  68. data/docs/CompanyFiscalInfoAddressResponse.md +0 -34
  69. data/docs/CompanyFiscalInfoResponse.md +0 -30
  70. data/docs/CompanyPayoutDestinationResponse.md +0 -28
@@ -0,0 +1,291 @@
1
+ =begin
2
+ #Conekta API
3
+
4
+ #Conekta sdk
5
+
6
+ The version of the OpenAPI document: 2.2.0
7
+ Contact: engineering@conekta.com
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.5.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Conekta
17
+ # Response body after uploading a company document.
18
+ class CompanyDocumentResponse
19
+ # Classification of the document. | Tipo de archivo | Descripción | | :--------------------------- | :-------------------------------------------------------- | | `id_legal_representative` | identificación oficial frente | | `id_legal_representative_back` | identificación oficial atrás | | `cfdi` | Prueba de situación fiscal | | `constitutive_act_basic` | Acta constitutiva | | `proof_of_address` | Comprobante de domicilio del negocio | | `power_of_attonery` | Poderes de representación | | `deposit_account_cover` | Carátula de la cuenta de depósito | | `permit_casino` | Permiso ante SEGOB | | `license_sanitation` | Licencia sanitaria de COFEPRIS | | `registration_tourism` | Inscripción ante el Registro Nacional de Turismo (SECTUR) |
20
+ attr_accessor :file_classification
21
+
22
+ # Name of the file as stored or processed.
23
+ attr_accessor :file_name
24
+
25
+ # Current status of the document.
26
+ attr_accessor :status
27
+
28
+ class EnumAttributeValidator
29
+ attr_reader :datatype
30
+ attr_reader :allowable_values
31
+
32
+ def initialize(datatype, allowable_values)
33
+ @allowable_values = allowable_values.map do |value|
34
+ case datatype.to_s
35
+ when /Integer/i
36
+ value.to_i
37
+ when /Float/i
38
+ value.to_f
39
+ else
40
+ value
41
+ end
42
+ end
43
+ end
44
+
45
+ def valid?(value)
46
+ !value || allowable_values.include?(value)
47
+ end
48
+ end
49
+
50
+ # Attribute mapping from ruby-style variable name to JSON key.
51
+ def self.attribute_map
52
+ {
53
+ :'file_classification' => :'file_classification',
54
+ :'file_name' => :'file_name',
55
+ :'status' => :'status'
56
+ }
57
+ end
58
+
59
+ # Returns all the JSON keys this model knows about
60
+ def self.acceptable_attributes
61
+ attribute_map.values
62
+ end
63
+
64
+ # Attribute type mapping.
65
+ def self.openapi_types
66
+ {
67
+ :'file_classification' => :'String',
68
+ :'file_name' => :'String',
69
+ :'status' => :'String'
70
+ }
71
+ end
72
+
73
+ # List of attributes with nullable: true
74
+ def self.openapi_nullable
75
+ Set.new([
76
+ ])
77
+ end
78
+
79
+ # Initializes the object
80
+ # @param [Hash] attributes Model attributes in the form of hash
81
+ def initialize(attributes = {})
82
+ if (!attributes.is_a?(Hash))
83
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Conekta::CompanyDocumentResponse` initialize method"
84
+ end
85
+
86
+ # check to see if the attribute exists and convert string to symbol for hash key
87
+ attributes = attributes.each_with_object({}) { |(k, v), h|
88
+ if (!self.class.attribute_map.key?(k.to_sym))
89
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Conekta::CompanyDocumentResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
90
+ end
91
+ h[k.to_sym] = v
92
+ }
93
+
94
+ if attributes.key?(:'file_classification')
95
+ self.file_classification = attributes[:'file_classification']
96
+ else
97
+ self.file_classification = nil
98
+ end
99
+
100
+ if attributes.key?(:'file_name')
101
+ self.file_name = attributes[:'file_name']
102
+ else
103
+ self.file_name = nil
104
+ end
105
+
106
+ if attributes.key?(:'status')
107
+ self.status = attributes[:'status']
108
+ else
109
+ self.status = nil
110
+ end
111
+ end
112
+
113
+ # Show invalid properties with the reasons. Usually used together with valid?
114
+ # @return Array for valid properties with the reasons
115
+ def list_invalid_properties
116
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
117
+ invalid_properties = Array.new
118
+ if @file_classification.nil?
119
+ invalid_properties.push('invalid value for "file_classification", file_classification cannot be nil.')
120
+ end
121
+
122
+ if @file_name.nil?
123
+ invalid_properties.push('invalid value for "file_name", file_name cannot be nil.')
124
+ end
125
+
126
+ if @status.nil?
127
+ invalid_properties.push('invalid value for "status", status cannot be nil.')
128
+ end
129
+
130
+ invalid_properties
131
+ end
132
+
133
+ # Check to see if the all the properties in the model are valid
134
+ # @return true if the model is valid
135
+ def valid?
136
+ warn '[DEPRECATED] the `valid?` method is obsolete'
137
+ return false if @file_classification.nil?
138
+ file_classification_validator = EnumAttributeValidator.new('String', ["id_legal_representative", "id_legal_representative_back", "cfdi", "constitutive_act_basic", "proof_of_address", "power_of_attonery", "deposit_account_cover", "permit_casino", "license_sanitation", "registration_tourism"])
139
+ return false unless file_classification_validator.valid?(@file_classification)
140
+ return false if @file_name.nil?
141
+ return false if @status.nil?
142
+ true
143
+ end
144
+
145
+ # Custom attribute writer method checking allowed values (enum).
146
+ # @param [Object] file_classification Object to be assigned
147
+ def file_classification=(file_classification)
148
+ validator = EnumAttributeValidator.new('String', ["id_legal_representative", "id_legal_representative_back", "cfdi", "constitutive_act_basic", "proof_of_address", "power_of_attonery", "deposit_account_cover", "permit_casino", "license_sanitation", "registration_tourism"])
149
+ unless validator.valid?(file_classification)
150
+ fail ArgumentError, "invalid value for \"file_classification\", must be one of #{validator.allowable_values}."
151
+ end
152
+ @file_classification = file_classification
153
+ end
154
+
155
+ # Checks equality by comparing each attribute.
156
+ # @param [Object] Object to be compared
157
+ def ==(o)
158
+ return true if self.equal?(o)
159
+ self.class == o.class &&
160
+ file_classification == o.file_classification &&
161
+ file_name == o.file_name &&
162
+ status == o.status
163
+ end
164
+
165
+ # @see the `==` method
166
+ # @param [Object] Object to be compared
167
+ def eql?(o)
168
+ self == o
169
+ end
170
+
171
+ # Calculates hash code according to all attributes.
172
+ # @return [Integer] Hash code
173
+ def hash
174
+ [file_classification, file_name, status].hash
175
+ end
176
+
177
+ # Builds the object from hash
178
+ # @param [Hash] attributes Model attributes in the form of hash
179
+ # @return [Object] Returns the model itself
180
+ def self.build_from_hash(attributes)
181
+ return nil unless attributes.is_a?(Hash)
182
+ attributes = attributes.transform_keys(&:to_sym)
183
+ transformed_hash = {}
184
+ openapi_types.each_pair do |key, type|
185
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
186
+ transformed_hash["#{key}"] = nil
187
+ elsif type =~ /\AArray<(.*)>/i
188
+ # check to ensure the input is an array given that the attribute
189
+ # is documented as an array but the input is not
190
+ if attributes[attribute_map[key]].is_a?(Array)
191
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
192
+ end
193
+ elsif !attributes[attribute_map[key]].nil?
194
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
195
+ end
196
+ end
197
+ new(transformed_hash)
198
+ end
199
+
200
+ # Deserializes the data based on type
201
+ # @param string type Data type
202
+ # @param string value Value to be deserialized
203
+ # @return [Object] Deserialized data
204
+ def self._deserialize(type, value)
205
+ case type.to_sym
206
+ when :Time
207
+ Time.parse(value)
208
+ when :Date
209
+ Date.parse(value)
210
+ when :String
211
+ value.to_s
212
+ when :Integer
213
+ value.to_i
214
+ when :Float
215
+ value.to_f
216
+ when :Boolean
217
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
218
+ true
219
+ else
220
+ false
221
+ end
222
+ when :Object
223
+ # generic object (usually a Hash), return directly
224
+ value
225
+ when /\AArray<(?<inner_type>.+)>\z/
226
+ inner_type = Regexp.last_match[:inner_type]
227
+ value.map { |v| _deserialize(inner_type, v) }
228
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
229
+ k_type = Regexp.last_match[:k_type]
230
+ v_type = Regexp.last_match[:v_type]
231
+ {}.tap do |hash|
232
+ value.each do |k, v|
233
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
234
+ end
235
+ end
236
+ else # model
237
+ # models (e.g. Pet) or oneOf
238
+ klass = Conekta.const_get(type)
239
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
240
+ end
241
+ end
242
+
243
+ # Returns the string representation of the object
244
+ # @return [String] String presentation of the object
245
+ def to_s
246
+ to_hash.to_s
247
+ end
248
+
249
+ # to_body is an alias to to_hash (backward compatibility)
250
+ # @return [Hash] Returns the object in the form of hash
251
+ def to_body
252
+ to_hash
253
+ end
254
+
255
+ # Returns the object in the form of hash
256
+ # @return [Hash] Returns the object in the form of hash
257
+ def to_hash
258
+ hash = {}
259
+ self.class.attribute_map.each_pair do |attr, param|
260
+ value = self.send(attr)
261
+ if value.nil?
262
+ is_nullable = self.class.openapi_nullable.include?(attr)
263
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
264
+ end
265
+
266
+ hash[param] = _to_hash(value)
267
+ end
268
+ hash
269
+ end
270
+
271
+ # Outputs non-array value in the form of hash
272
+ # For object, use to_hash. Otherwise, just return the value
273
+ # @param [Object] value Any valid value
274
+ # @return [Hash] Returns the value in the form of hash
275
+ def _to_hash(value)
276
+ if value.is_a?(Array)
277
+ value.compact.map { |v| _to_hash(v) }
278
+ elsif value.is_a?(Hash)
279
+ {}.tap do |hash|
280
+ value.each { |k, v| hash[k] = _to_hash(v) }
281
+ end
282
+ elsif value.respond_to? :to_hash
283
+ value.to_hash
284
+ else
285
+ value
286
+ end
287
+ end
288
+
289
+ end
290
+
291
+ end
@@ -14,63 +14,46 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Conekta
17
- # Company model
18
17
  class CompanyResponse
19
- # The child company's unique identifier
18
+ # The unique identifier for the company.
20
19
  attr_accessor :id
21
20
 
22
- # The resource's creation date (unix timestamp)
23
- attr_accessor :created_at
24
-
25
- # The child company's name
21
+ # The name of the company.
26
22
  attr_accessor :name
27
23
 
28
- # The resource's type
29
- attr_accessor :object
30
-
31
- # Id of the parent company
32
- attr_accessor :parent_company_id
24
+ # Indicates if the company is active.
25
+ attr_accessor :active
33
26
 
34
- # Whether the parent company's fiscal data is to be used for liquidation and tax purposes
35
- attr_accessor :use_parent_fiscal_data
27
+ # The current status of the company's account.
28
+ attr_accessor :account_status
36
29
 
37
- attr_accessor :payout_destination
30
+ # The identifier of the parent company, if any.
31
+ attr_accessor :parent_company_id
38
32
 
39
- attr_accessor :fiscal_info
33
+ # The current status of the company's onboarding process.
34
+ attr_accessor :onboarding_status
40
35
 
41
- class EnumAttributeValidator
42
- attr_reader :datatype
43
- attr_reader :allowable_values
36
+ # A list of documents related to the company.
37
+ attr_accessor :documents
44
38
 
45
- def initialize(datatype, allowable_values)
46
- @allowable_values = allowable_values.map do |value|
47
- case datatype.to_s
48
- when /Integer/i
49
- value.to_i
50
- when /Float/i
51
- value.to_f
52
- else
53
- value
54
- end
55
- end
56
- end
39
+ # Timestamp of when the company was created.
40
+ attr_accessor :created_at
57
41
 
58
- def valid?(value)
59
- !value || allowable_values.include?(value)
60
- end
61
- end
42
+ # The type of object, typically \"company\".
43
+ attr_accessor :object
62
44
 
63
45
  # Attribute mapping from ruby-style variable name to JSON key.
64
46
  def self.attribute_map
65
47
  {
66
48
  :'id' => :'id',
67
- :'created_at' => :'created_at',
68
49
  :'name' => :'name',
69
- :'object' => :'object',
50
+ :'active' => :'active',
51
+ :'account_status' => :'account_status',
70
52
  :'parent_company_id' => :'parent_company_id',
71
- :'use_parent_fiscal_data' => :'use_parent_fiscal_data',
72
- :'payout_destination' => :'payout_destination',
73
- :'fiscal_info' => :'fiscal_info'
53
+ :'onboarding_status' => :'onboarding_status',
54
+ :'documents' => :'documents',
55
+ :'created_at' => :'created_at',
56
+ :'object' => :'object'
74
57
  }
75
58
  end
76
59
 
@@ -83,19 +66,21 @@ module Conekta
83
66
  def self.openapi_types
84
67
  {
85
68
  :'id' => :'String',
86
- :'created_at' => :'Integer',
87
69
  :'name' => :'String',
88
- :'object' => :'String',
70
+ :'active' => :'Boolean',
71
+ :'account_status' => :'String',
89
72
  :'parent_company_id' => :'String',
90
- :'use_parent_fiscal_data' => :'Boolean',
91
- :'payout_destination' => :'CompanyPayoutDestinationResponse',
92
- :'fiscal_info' => :'CompanyFiscalInfoResponse'
73
+ :'onboarding_status' => :'String',
74
+ :'documents' => :'Array<CompanyResponseDocumentsInner>',
75
+ :'created_at' => :'Integer',
76
+ :'object' => :'String'
93
77
  }
94
78
  end
95
79
 
96
80
  # List of attributes with nullable: true
97
81
  def self.openapi_nullable
98
82
  Set.new([
83
+ :'parent_company_id',
99
84
  ])
100
85
  end
101
86
 
@@ -116,34 +101,56 @@ module Conekta
116
101
 
117
102
  if attributes.key?(:'id')
118
103
  self.id = attributes[:'id']
119
- end
120
-
121
- if attributes.key?(:'created_at')
122
- self.created_at = attributes[:'created_at']
104
+ else
105
+ self.id = nil
123
106
  end
124
107
 
125
108
  if attributes.key?(:'name')
126
109
  self.name = attributes[:'name']
110
+ else
111
+ self.name = nil
127
112
  end
128
113
 
129
- if attributes.key?(:'object')
130
- self.object = attributes[:'object']
114
+ if attributes.key?(:'active')
115
+ self.active = attributes[:'active']
116
+ else
117
+ self.active = nil
118
+ end
119
+
120
+ if attributes.key?(:'account_status')
121
+ self.account_status = attributes[:'account_status']
122
+ else
123
+ self.account_status = nil
131
124
  end
132
125
 
133
126
  if attributes.key?(:'parent_company_id')
134
127
  self.parent_company_id = attributes[:'parent_company_id']
135
128
  end
136
129
 
137
- if attributes.key?(:'use_parent_fiscal_data')
138
- self.use_parent_fiscal_data = attributes[:'use_parent_fiscal_data']
130
+ if attributes.key?(:'onboarding_status')
131
+ self.onboarding_status = attributes[:'onboarding_status']
132
+ else
133
+ self.onboarding_status = nil
139
134
  end
140
135
 
141
- if attributes.key?(:'payout_destination')
142
- self.payout_destination = attributes[:'payout_destination']
136
+ if attributes.key?(:'documents')
137
+ if (value = attributes[:'documents']).is_a?(Array)
138
+ self.documents = value
139
+ end
140
+ else
141
+ self.documents = nil
143
142
  end
144
143
 
145
- if attributes.key?(:'fiscal_info')
146
- self.fiscal_info = attributes[:'fiscal_info']
144
+ if attributes.key?(:'created_at')
145
+ self.created_at = attributes[:'created_at']
146
+ else
147
+ self.created_at = nil
148
+ end
149
+
150
+ if attributes.key?(:'object')
151
+ self.object = attributes[:'object']
152
+ else
153
+ self.object = nil
147
154
  end
148
155
  end
149
156
 
@@ -152,6 +159,38 @@ module Conekta
152
159
  def list_invalid_properties
153
160
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
154
161
  invalid_properties = Array.new
162
+ if @id.nil?
163
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
164
+ end
165
+
166
+ if @name.nil?
167
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
168
+ end
169
+
170
+ if @active.nil?
171
+ invalid_properties.push('invalid value for "active", active cannot be nil.')
172
+ end
173
+
174
+ if @account_status.nil?
175
+ invalid_properties.push('invalid value for "account_status", account_status cannot be nil.')
176
+ end
177
+
178
+ if @onboarding_status.nil?
179
+ invalid_properties.push('invalid value for "onboarding_status", onboarding_status cannot be nil.')
180
+ end
181
+
182
+ if @documents.nil?
183
+ invalid_properties.push('invalid value for "documents", documents cannot be nil.')
184
+ end
185
+
186
+ if @created_at.nil?
187
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
188
+ end
189
+
190
+ if @object.nil?
191
+ invalid_properties.push('invalid value for "object", object cannot be nil.')
192
+ end
193
+
155
194
  invalid_properties
156
195
  end
157
196
 
@@ -159,34 +198,31 @@ module Conekta
159
198
  # @return true if the model is valid
160
199
  def valid?
161
200
  warn '[DEPRECATED] the `valid?` method is obsolete'
162
- object_validator = EnumAttributeValidator.new('String', ["company"])
163
- return false unless object_validator.valid?(@object)
201
+ return false if @id.nil?
202
+ return false if @name.nil?
203
+ return false if @active.nil?
204
+ return false if @account_status.nil?
205
+ return false if @onboarding_status.nil?
206
+ return false if @documents.nil?
207
+ return false if @created_at.nil?
208
+ return false if @object.nil?
164
209
  true
165
210
  end
166
211
 
167
- # Custom attribute writer method checking allowed values (enum).
168
- # @param [Object] object Object to be assigned
169
- def object=(object)
170
- validator = EnumAttributeValidator.new('String', ["company"])
171
- unless validator.valid?(object)
172
- fail ArgumentError, "invalid value for \"object\", must be one of #{validator.allowable_values}."
173
- end
174
- @object = object
175
- end
176
-
177
212
  # Checks equality by comparing each attribute.
178
213
  # @param [Object] Object to be compared
179
214
  def ==(o)
180
215
  return true if self.equal?(o)
181
216
  self.class == o.class &&
182
217
  id == o.id &&
183
- created_at == o.created_at &&
184
218
  name == o.name &&
185
- object == o.object &&
219
+ active == o.active &&
220
+ account_status == o.account_status &&
186
221
  parent_company_id == o.parent_company_id &&
187
- use_parent_fiscal_data == o.use_parent_fiscal_data &&
188
- payout_destination == o.payout_destination &&
189
- fiscal_info == o.fiscal_info
222
+ onboarding_status == o.onboarding_status &&
223
+ documents == o.documents &&
224
+ created_at == o.created_at &&
225
+ object == o.object
190
226
  end
191
227
 
192
228
  # @see the `==` method
@@ -198,7 +234,7 @@ module Conekta
198
234
  # Calculates hash code according to all attributes.
199
235
  # @return [Integer] Hash code
200
236
  def hash
201
- [id, created_at, name, object, parent_company_id, use_parent_fiscal_data, payout_destination, fiscal_info].hash
237
+ [id, name, active, account_status, parent_company_id, onboarding_status, documents, created_at, object].hash
202
238
  end
203
239
 
204
240
  # Builds the object from hash