conekta 6.0.4 → 6.0.5

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.
@@ -19,6 +19,9 @@ module Conekta
19
19
 
20
20
  attr_accessor :object
21
21
 
22
+ # Agreement ID
23
+ attr_accessor :agreement
24
+
22
25
  attr_accessor :auth_code
23
26
 
24
27
  attr_accessor :cashier_id
@@ -29,6 +32,9 @@ module Conekta
29
32
 
30
33
  attr_accessor :expires_at
31
34
 
35
+ # Product type, e.g. bbva_cash_in, cash_in, pespay_cash_in, etc.
36
+ attr_accessor :product_type
37
+
32
38
  attr_accessor :service_name
33
39
 
34
40
  attr_accessor :store
@@ -42,11 +48,13 @@ module Conekta
42
48
  {
43
49
  :'type' => :'type',
44
50
  :'object' => :'object',
51
+ :'agreement' => :'agreement',
45
52
  :'auth_code' => :'auth_code',
46
53
  :'cashier_id' => :'cashier_id',
47
54
  :'reference' => :'reference',
48
55
  :'barcode_url' => :'barcode_url',
49
56
  :'expires_at' => :'expires_at',
57
+ :'product_type' => :'product_type',
50
58
  :'service_name' => :'service_name',
51
59
  :'store' => :'store',
52
60
  :'store_name' => :'store_name',
@@ -64,11 +72,13 @@ module Conekta
64
72
  {
65
73
  :'type' => :'String',
66
74
  :'object' => :'String',
75
+ :'agreement' => :'String',
67
76
  :'auth_code' => :'Integer',
68
77
  :'cashier_id' => :'String',
69
78
  :'reference' => :'String',
70
79
  :'barcode_url' => :'String',
71
80
  :'expires_at' => :'Integer',
81
+ :'product_type' => :'String',
72
82
  :'service_name' => :'String',
73
83
  :'store' => :'String',
74
84
  :'store_name' => :'String',
@@ -117,6 +127,10 @@ module Conekta
117
127
  self.object = nil
118
128
  end
119
129
 
130
+ if attributes.key?(:'agreement')
131
+ self.agreement = attributes[:'agreement']
132
+ end
133
+
120
134
  if attributes.key?(:'auth_code')
121
135
  self.auth_code = attributes[:'auth_code']
122
136
  end
@@ -137,6 +151,10 @@ module Conekta
137
151
  self.expires_at = attributes[:'expires_at']
138
152
  end
139
153
 
154
+ if attributes.key?(:'product_type')
155
+ self.product_type = attributes[:'product_type']
156
+ end
157
+
140
158
  if attributes.key?(:'service_name')
141
159
  self.service_name = attributes[:'service_name']
142
160
  end
@@ -181,11 +199,13 @@ module Conekta
181
199
  self.class == o.class &&
182
200
  type == o.type &&
183
201
  object == o.object &&
202
+ agreement == o.agreement &&
184
203
  auth_code == o.auth_code &&
185
204
  cashier_id == o.cashier_id &&
186
205
  reference == o.reference &&
187
206
  barcode_url == o.barcode_url &&
188
207
  expires_at == o.expires_at &&
208
+ product_type == o.product_type &&
189
209
  service_name == o.service_name &&
190
210
  store == o.store &&
191
211
  store_name == o.store_name &&
@@ -201,7 +221,7 @@ module Conekta
201
221
  # Calculates hash code according to all attributes.
202
222
  # @return [Integer] Hash code
203
223
  def hash
204
- [type, object, auth_code, cashier_id, reference, barcode_url, expires_at, service_name, store, store_name, customer_ip_address].hash
224
+ [type, object, agreement, auth_code, cashier_id, reference, barcode_url, expires_at, product_type, service_name, store, store_name, customer_ip_address].hash
205
225
  end
206
226
 
207
227
  # Builds the object from hash
@@ -18,6 +18,9 @@ module Conekta
18
18
  class UpdateCustomer
19
19
  attr_accessor :antifraud_info
20
20
 
21
+ # It is a parameter that allows to identify the date of birth of the client.
22
+ attr_accessor :date_of_birth
23
+
21
24
  # It is a parameter that allows to identify in the response, the Conekta ID of a payment method (payment_id)
22
25
  attr_accessor :default_payment_source_id
23
26
 
@@ -46,6 +49,9 @@ module Conekta
46
49
 
47
50
  attr_accessor :metadata
48
51
 
52
+ # It is a parameter that allows to identify the national identification number of the client.
53
+ attr_accessor :national_id
54
+
49
55
  # Contains details of the payment methods that the customer has active or has used in Conekta
50
56
  attr_accessor :payment_sources
51
57
 
@@ -58,6 +64,7 @@ module Conekta
58
64
  def self.attribute_map
59
65
  {
60
66
  :'antifraud_info' => :'antifraud_info',
67
+ :'date_of_birth' => :'date_of_birth',
61
68
  :'default_payment_source_id' => :'default_payment_source_id',
62
69
  :'email' => :'email',
63
70
  :'name' => :'name',
@@ -68,6 +75,7 @@ module Conekta
68
75
  :'custom_reference' => :'custom_reference',
69
76
  :'fiscal_entities' => :'fiscal_entities',
70
77
  :'metadata' => :'metadata',
78
+ :'national_id' => :'national_id',
71
79
  :'payment_sources' => :'payment_sources',
72
80
  :'shipping_contacts' => :'shipping_contacts',
73
81
  :'subscription' => :'subscription'
@@ -83,6 +91,7 @@ module Conekta
83
91
  def self.openapi_types
84
92
  {
85
93
  :'antifraud_info' => :'UpdateCustomerAntifraudInfo',
94
+ :'date_of_birth' => :'String',
86
95
  :'default_payment_source_id' => :'String',
87
96
  :'email' => :'String',
88
97
  :'name' => :'String',
@@ -93,6 +102,7 @@ module Conekta
93
102
  :'custom_reference' => :'String',
94
103
  :'fiscal_entities' => :'Array<CustomerFiscalEntitiesRequest>',
95
104
  :'metadata' => :'Hash<String, Object>',
105
+ :'national_id' => :'String',
96
106
  :'payment_sources' => :'Array<CustomerPaymentMethodsRequest>',
97
107
  :'shipping_contacts' => :'Array<CustomerShippingContacts>',
98
108
  :'subscription' => :'SubscriptionRequest'
@@ -125,6 +135,10 @@ module Conekta
125
135
  self.antifraud_info = attributes[:'antifraud_info']
126
136
  end
127
137
 
138
+ if attributes.key?(:'date_of_birth')
139
+ self.date_of_birth = attributes[:'date_of_birth']
140
+ end
141
+
128
142
  if attributes.key?(:'default_payment_source_id')
129
143
  self.default_payment_source_id = attributes[:'default_payment_source_id']
130
144
  end
@@ -171,6 +185,10 @@ module Conekta
171
185
  end
172
186
  end
173
187
 
188
+ if attributes.key?(:'national_id')
189
+ self.national_id = attributes[:'national_id']
190
+ end
191
+
174
192
  if attributes.key?(:'payment_sources')
175
193
  if (value = attributes[:'payment_sources']).is_a?(Array)
176
194
  self.payment_sources = value
@@ -228,6 +246,7 @@ module Conekta
228
246
  return true if self.equal?(o)
229
247
  self.class == o.class &&
230
248
  antifraud_info == o.antifraud_info &&
249
+ date_of_birth == o.date_of_birth &&
231
250
  default_payment_source_id == o.default_payment_source_id &&
232
251
  email == o.email &&
233
252
  name == o.name &&
@@ -238,6 +257,7 @@ module Conekta
238
257
  custom_reference == o.custom_reference &&
239
258
  fiscal_entities == o.fiscal_entities &&
240
259
  metadata == o.metadata &&
260
+ national_id == o.national_id &&
241
261
  payment_sources == o.payment_sources &&
242
262
  shipping_contacts == o.shipping_contacts &&
243
263
  subscription == o.subscription
@@ -252,7 +272,7 @@ module Conekta
252
272
  # Calculates hash code according to all attributes.
253
273
  # @return [Integer] Hash code
254
274
  def hash
255
- [antifraud_info, default_payment_source_id, email, name, phone, plan_id, default_shipping_contact_id, corporate, custom_reference, fiscal_entities, metadata, payment_sources, shipping_contacts, subscription].hash
275
+ [antifraud_info, date_of_birth, default_payment_source_id, email, name, phone, plan_id, default_shipping_contact_id, corporate, custom_reference, fiscal_entities, metadata, national_id, payment_sources, shipping_contacts, subscription].hash
256
276
  end
257
277
 
258
278
  # Builds the object from hash
@@ -11,5 +11,5 @@ Generator version: 7.5.0
11
11
  =end
12
12
 
13
13
  module Conekta
14
- VERSION = '6.0.4'
14
+ VERSION = '6.0.5'
15
15
  end
data/lib/conekta.rb CHANGED
@@ -36,6 +36,8 @@ require 'conekta/models/charge_response_refunds'
36
36
  require 'conekta/models/charge_response_refunds_data'
37
37
  require 'conekta/models/charge_update_request'
38
38
  require 'conekta/models/charges_data_response'
39
+ require 'conekta/models/charges_order_response'
40
+ require 'conekta/models/charges_order_response_all_of_data'
39
41
  require 'conekta/models/checkout'
40
42
  require 'conekta/models/checkout_order_template'
41
43
  require 'conekta/models/checkout_order_template_customer_info'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conekta
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.4
4
+ version: 6.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Conekta
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-14 00:00:00.000000000 Z
11
+ date: 2025-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -121,6 +121,8 @@ files:
121
121
  - docs/ChargeUpdateRequest.md
122
122
  - docs/ChargesApi.md
123
123
  - docs/ChargesDataResponse.md
124
+ - docs/ChargesOrderResponse.md
125
+ - docs/ChargesOrderResponseAllOfData.md
124
126
  - docs/Checkout.md
125
127
  - docs/CheckoutOrderTemplate.md
126
128
  - docs/CheckoutOrderTemplateCustomerInfo.md
@@ -349,6 +351,8 @@ files:
349
351
  - lib/conekta/models/charge_response_refunds_data.rb
350
352
  - lib/conekta/models/charge_update_request.rb
351
353
  - lib/conekta/models/charges_data_response.rb
354
+ - lib/conekta/models/charges_order_response.rb
355
+ - lib/conekta/models/charges_order_response_all_of_data.rb
352
356
  - lib/conekta/models/checkout.rb
353
357
  - lib/conekta/models/checkout_order_template.rb
354
358
  - lib/conekta/models/checkout_order_template_customer_info.rb
@@ -601,31 +605,31 @@ signing_key:
601
605
  specification_version: 4
602
606
  summary: This library provides https://api.conekta.io operations
603
607
  test_files:
604
- - spec/api/transactions_api_spec.rb
605
- - spec/api/payment_methods_api_spec.rb
608
+ - spec/api/companies_api_spec.rb
609
+ - spec/api/plans_api_spec.rb
610
+ - spec/api/transfers_api_spec.rb
611
+ - spec/api/products_api_spec.rb
612
+ - spec/api/tokens_api_spec.rb
613
+ - spec/api/api_keys_api_spec.rb
606
614
  - spec/api/customers_api_spec.rb
615
+ - spec/api/balances_api_spec.rb
616
+ - spec/api/webhooks_api_spec.rb
607
617
  - spec/api/events_api_spec.rb
608
- - spec/api/api_keys_api_spec.rb
618
+ - spec/api/shipping_contacts_api_spec.rb
609
619
  - spec/api/taxes_api_spec.rb
610
- - spec/api/base_test.rb
611
- - spec/api/transfers_api_spec.rb
612
- - spec/api/subscriptions_api_spec.rb
613
- - spec/api/webhooks_api_spec.rb
614
620
  - spec/api/charges_api_spec.rb
615
- - spec/api/orders_api_spec.rb
616
- - spec/api/shipping_contacts_api_spec.rb
617
- - spec/api/discounts_api_spec.rb
618
- - spec/api/payment_link_api_spec.rb
619
621
  - spec/api/payout_orders_api_spec.rb
620
- - spec/api/companies_api_spec.rb
621
- - spec/api/products_api_spec.rb
622
- - spec/api/tokens_api_spec.rb
622
+ - spec/api/orders_api_spec.rb
623
+ - spec/api/webhook_keys_api_spec.rb
623
624
  - spec/api/logs_api_spec.rb
624
- - spec/api/plans_api_spec.rb
625
+ - spec/api/discounts_api_spec.rb
626
+ - spec/api/payment_methods_api_spec.rb
625
627
  - spec/api/shippings_api_spec.rb
628
+ - spec/api/transactions_api_spec.rb
629
+ - spec/api/base_test.rb
630
+ - spec/api/payment_link_api_spec.rb
626
631
  - spec/api/antifraud_api_spec.rb
627
- - spec/api/balances_api_spec.rb
628
- - spec/api/webhook_keys_api_spec.rb
632
+ - spec/api/subscriptions_api_spec.rb
629
633
  - spec/api_client_spec.rb
630
634
  - spec/configuration_spec.rb
631
635
  - spec/spec_helper.rb