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.
- checksums.yaml +4 -4
- data/README.md +19 -8
- data/VERSION +1 -1
- data/config-ruby.json +1 -1
- data/docs/ChargeOrderResponsePaymentMethod.md +5 -2
- data/docs/ChargeRequestPaymentMethod.md +3 -1
- data/docs/ChargeResponsePaymentMethod.md +5 -2
- data/docs/ChargesApi.md +2 -2
- data/docs/CheckoutRequest.md +1 -1
- data/docs/CompaniesApi.md +296 -0
- data/docs/CompanyDocumentRequest.md +26 -0
- data/docs/CompanyDocumentResponse.md +22 -0
- data/docs/CompanyResponse.md +18 -16
- data/docs/CompanyResponseDocumentsInner.md +22 -0
- data/docs/CreateCompanyRequest.md +26 -0
- data/docs/CreateCompanyRequestBankAccountInfo.md +18 -0
- data/docs/CreateCompanyRequestComercialInfo.md +24 -0
- data/docs/CreateCompanyRequestFiscalInfo.md +20 -0
- data/docs/CreateCustomerPaymentMethodsResponse.md +3 -2
- data/docs/CustomerPaymentMethodRequest.md +1 -1
- data/docs/CustomerPaymentMethodsData.md +3 -2
- data/docs/EventsResendResponse.md +1 -1
- data/docs/GetCustomerPaymentMethodDataResponse.md +3 -2
- data/docs/OrderResponseCheckout.md +1 -1
- data/docs/PaymentMethodBnplRequest.md +1 -1
- data/docs/PaymentMethodCardRequest.md +1 -1
- data/docs/PaymentMethodCashRecurrentResponse.md +38 -0
- data/docs/PaymentMethodCashRequest.md +1 -1
- data/docs/PaymentMethodPbbPayment.md +30 -0
- data/docs/PaymentMethodPbbRequest.md +22 -0
- data/docs/PaymentMethodSpeiRecurrent.md +2 -0
- data/docs/PaymentMethodSpeiRequest.md +1 -1
- data/docs/PaymentMethodTokenRequest.md +1 -1
- data/docs/PaymentMethodsApi.md +1 -1
- data/docs/UpdateCustomerPaymentMethodsResponse.md +3 -2
- data/docs/UpdatePaymentMethods.md +4 -2
- data/docs/WebhookLog.md +1 -1
- data/docs/WebhookResponse.md +1 -1
- data/examples/README.md +15 -0
- data/examples/one_time_charge_bnpl.rb +49 -0
- data/examples/one_time_charge_pbb.rb +47 -0
- data/lib/conekta/api/companies_api.rb +300 -0
- data/lib/conekta/models/charge_order_response_payment_method.rb +4 -2
- data/lib/conekta/models/charge_request_payment_method.rb +2 -1
- data/lib/conekta/models/charge_response_payment_method.rb +4 -2
- data/lib/conekta/models/company_document_request.rb +318 -0
- data/lib/conekta/models/company_document_response.rb +291 -0
- data/lib/conekta/models/company_response.rb +110 -74
- data/lib/conekta/models/company_response_documents_inner.rb +270 -0
- data/lib/conekta/models/create_company_request.rb +252 -0
- data/lib/conekta/models/create_company_request_bank_account_info.rb +216 -0
- data/lib/conekta/models/create_company_request_comercial_info.rb +246 -0
- data/lib/conekta/models/create_company_request_fiscal_info.rb +226 -0
- data/lib/conekta/models/create_customer_payment_methods_response.rb +2 -2
- data/lib/conekta/models/customer_payment_methods_data.rb +2 -2
- data/lib/conekta/models/get_customer_payment_method_data_response.rb +2 -2
- data/lib/conekta/models/payment_method_bnpl_request.rb +2 -2
- data/lib/conekta/models/payment_method_cash_recurrent_response.rb +343 -0
- data/lib/conekta/models/payment_method_pbb_payment.rb +341 -0
- data/lib/conekta/models/payment_method_pbb_request.rb +309 -0
- data/lib/conekta/models/payment_method_spei_recurrent.rb +11 -1
- data/lib/conekta/models/update_customer_payment_methods_response.rb +2 -2
- data/lib/conekta/models/update_payment_methods.rb +34 -4
- data/lib/conekta/version.rb +1 -1
- data/lib/conekta.rb +10 -3
- data/spec/api/companies_api_spec.rb +53 -0
- metadata +42 -22
- data/docs/CompanyFiscalInfoAddressResponse.md +0 -34
- data/docs/CompanyFiscalInfoResponse.md +0 -30
- data/docs/CompanyPayoutDestinationResponse.md +0 -28
@@ -20,6 +20,7 @@ module Conekta
|
|
20
20
|
def openapi_one_of
|
21
21
|
[
|
22
22
|
:'PaymentMethodCardResponse',
|
23
|
+
:'PaymentMethodCashRecurrentResponse',
|
23
24
|
:'PaymentMethodCashResponse',
|
24
25
|
:'PaymentMethodSpeiRecurrent'
|
25
26
|
]
|
@@ -35,8 +36,7 @@ module Conekta
|
|
35
36
|
{
|
36
37
|
:'card' => :'PaymentMethodCardResponse',
|
37
38
|
:'cash' => :'PaymentMethodCashResponse',
|
38
|
-
:'cash_recurrent' => :'
|
39
|
-
:'oxxo_recurrent' => :'PaymentMethodCashResponse',
|
39
|
+
:'cash_recurrent' => :'PaymentMethodCashRecurrentResponse',
|
40
40
|
:'spei_recurrent' => :'PaymentMethodSpeiRecurrent'
|
41
41
|
}
|
42
42
|
end
|
@@ -15,12 +15,17 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Conekta
|
17
17
|
class UpdatePaymentMethods
|
18
|
+
# The name of the payment method holder
|
18
19
|
attr_accessor :name
|
19
20
|
|
21
|
+
# The expiration date of the payment method in Unix timestamp format
|
22
|
+
attr_accessor :expires_at
|
23
|
+
|
20
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
25
|
def self.attribute_map
|
22
26
|
{
|
23
|
-
:'name' => :'name'
|
27
|
+
:'name' => :'name',
|
28
|
+
:'expires_at' => :'expires_at'
|
24
29
|
}
|
25
30
|
end
|
26
31
|
|
@@ -32,7 +37,8 @@ module Conekta
|
|
32
37
|
# Attribute type mapping.
|
33
38
|
def self.openapi_types
|
34
39
|
{
|
35
|
-
:'name' => :'String'
|
40
|
+
:'name' => :'String',
|
41
|
+
:'expires_at' => :'Integer'
|
36
42
|
}
|
37
43
|
end
|
38
44
|
|
@@ -60,6 +66,10 @@ module Conekta
|
|
60
66
|
if attributes.key?(:'name')
|
61
67
|
self.name = attributes[:'name']
|
62
68
|
end
|
69
|
+
|
70
|
+
if attributes.key?(:'expires_at')
|
71
|
+
self.expires_at = attributes[:'expires_at']
|
72
|
+
end
|
63
73
|
end
|
64
74
|
|
65
75
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -67,6 +77,10 @@ module Conekta
|
|
67
77
|
def list_invalid_properties
|
68
78
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
69
79
|
invalid_properties = Array.new
|
80
|
+
if !@expires_at.nil? && @expires_at < 1
|
81
|
+
invalid_properties.push('invalid value for "expires_at", must be greater than or equal to 1.')
|
82
|
+
end
|
83
|
+
|
70
84
|
invalid_properties
|
71
85
|
end
|
72
86
|
|
@@ -74,15 +88,31 @@ module Conekta
|
|
74
88
|
# @return true if the model is valid
|
75
89
|
def valid?
|
76
90
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
91
|
+
return false if !@expires_at.nil? && @expires_at < 1
|
77
92
|
true
|
78
93
|
end
|
79
94
|
|
95
|
+
# Custom attribute writer method with validation
|
96
|
+
# @param [Object] expires_at Value to be assigned
|
97
|
+
def expires_at=(expires_at)
|
98
|
+
if expires_at.nil?
|
99
|
+
fail ArgumentError, 'expires_at cannot be nil'
|
100
|
+
end
|
101
|
+
|
102
|
+
if expires_at < 1
|
103
|
+
fail ArgumentError, 'invalid value for "expires_at", must be greater than or equal to 1.'
|
104
|
+
end
|
105
|
+
|
106
|
+
@expires_at = expires_at
|
107
|
+
end
|
108
|
+
|
80
109
|
# Checks equality by comparing each attribute.
|
81
110
|
# @param [Object] Object to be compared
|
82
111
|
def ==(o)
|
83
112
|
return true if self.equal?(o)
|
84
113
|
self.class == o.class &&
|
85
|
-
name == o.name
|
114
|
+
name == o.name &&
|
115
|
+
expires_at == o.expires_at
|
86
116
|
end
|
87
117
|
|
88
118
|
# @see the `==` method
|
@@ -94,7 +124,7 @@ module Conekta
|
|
94
124
|
# Calculates hash code according to all attributes.
|
95
125
|
# @return [Integer] Hash code
|
96
126
|
def hash
|
97
|
-
[name].hash
|
127
|
+
[name, expires_at].hash
|
98
128
|
end
|
99
129
|
|
100
130
|
# Builds the object from hash
|
data/lib/conekta/version.rb
CHANGED
data/lib/conekta.rb
CHANGED
@@ -44,10 +44,14 @@ require 'conekta/models/checkout_order_template_customer_info'
|
|
44
44
|
require 'conekta/models/checkout_request'
|
45
45
|
require 'conekta/models/checkout_response'
|
46
46
|
require 'conekta/models/checkouts_response'
|
47
|
-
require 'conekta/models/
|
48
|
-
require 'conekta/models/
|
49
|
-
require 'conekta/models/company_payout_destination_response'
|
47
|
+
require 'conekta/models/company_document_request'
|
48
|
+
require 'conekta/models/company_document_response'
|
50
49
|
require 'conekta/models/company_response'
|
50
|
+
require 'conekta/models/company_response_documents_inner'
|
51
|
+
require 'conekta/models/create_company_request'
|
52
|
+
require 'conekta/models/create_company_request_bank_account_info'
|
53
|
+
require 'conekta/models/create_company_request_comercial_info'
|
54
|
+
require 'conekta/models/create_company_request_fiscal_info'
|
51
55
|
require 'conekta/models/create_customer_fiscal_entities_response'
|
52
56
|
require 'conekta/models/create_customer_payment_methods_request'
|
53
57
|
require 'conekta/models/create_customer_payment_methods_response'
|
@@ -139,10 +143,13 @@ require 'conekta/models/payment_method_card'
|
|
139
143
|
require 'conekta/models/payment_method_card_request'
|
140
144
|
require 'conekta/models/payment_method_card_response'
|
141
145
|
require 'conekta/models/payment_method_cash'
|
146
|
+
require 'conekta/models/payment_method_cash_recurrent_response'
|
142
147
|
require 'conekta/models/payment_method_cash_request'
|
143
148
|
require 'conekta/models/payment_method_cash_response'
|
144
149
|
require 'conekta/models/payment_method_cash_response_all_of_agreements'
|
145
150
|
require 'conekta/models/payment_method_general_request'
|
151
|
+
require 'conekta/models/payment_method_pbb_payment'
|
152
|
+
require 'conekta/models/payment_method_pbb_request'
|
146
153
|
require 'conekta/models/payment_method_response'
|
147
154
|
require 'conekta/models/payment_method_spei_recurrent'
|
148
155
|
require 'conekta/models/payment_method_spei_request'
|
@@ -32,6 +32,18 @@ describe 'CompaniesApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
+
# unit tests for create_company
|
36
|
+
# Create Company
|
37
|
+
# Create a new company.
|
38
|
+
# @param create_company_request Company data
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [CompanyResponse]
|
41
|
+
describe 'create_company test' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
35
47
|
# unit tests for get_companies
|
36
48
|
# Get List of Companies
|
37
49
|
# Consume the list of child companies. This is used for holding companies with several child entities.
|
@@ -60,4 +72,45 @@ describe 'CompaniesApi' do
|
|
60
72
|
end
|
61
73
|
end
|
62
74
|
|
75
|
+
# unit tests for get_company_documents
|
76
|
+
# Get Company Documents
|
77
|
+
# Retrieve a list of documents associated with a specific company.
|
78
|
+
# @param company_id The unique identifier of the company.
|
79
|
+
# @param [Hash] opts the optional parameters
|
80
|
+
# @option opts [String] :accept_language Use for knowing which language to use
|
81
|
+
# @return [Array<CompanyDocumentResponse>]
|
82
|
+
describe 'get_company_documents test' do
|
83
|
+
it 'should work' do
|
84
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
# unit tests for update_company_document
|
89
|
+
# Update Company Document
|
90
|
+
# Updates an existing document associated with a specific company.
|
91
|
+
# @param company_id The unique identifier of the company.
|
92
|
+
# @param company_document_request Document information to update.
|
93
|
+
# @param [Hash] opts the optional parameters
|
94
|
+
# @option opts [String] :accept_language Use for knowing which language to use
|
95
|
+
# @return [CompanyDocumentResponse]
|
96
|
+
describe 'update_company_document test' do
|
97
|
+
it 'should work' do
|
98
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
# unit tests for upload_company_document
|
103
|
+
# Upload Company Document
|
104
|
+
# Uploads a document associated with a specific company.
|
105
|
+
# @param company_id The unique identifier of the company.
|
106
|
+
# @param company_document_request Document information to upload.
|
107
|
+
# @param [Hash] opts the optional parameters
|
108
|
+
# @option opts [String] :accept_language Use for knowing which language to use
|
109
|
+
# @return [CompanyDocumentResponse]
|
110
|
+
describe 'upload_company_document test' do
|
111
|
+
it 'should work' do
|
112
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
63
116
|
end
|
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: 7.0.
|
4
|
+
version: 7.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Conekta
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -130,10 +130,14 @@ files:
|
|
130
130
|
- docs/CheckoutResponse.md
|
131
131
|
- docs/CheckoutsResponse.md
|
132
132
|
- docs/CompaniesApi.md
|
133
|
-
- docs/
|
134
|
-
- docs/
|
135
|
-
- docs/CompanyPayoutDestinationResponse.md
|
133
|
+
- docs/CompanyDocumentRequest.md
|
134
|
+
- docs/CompanyDocumentResponse.md
|
136
135
|
- docs/CompanyResponse.md
|
136
|
+
- docs/CompanyResponseDocumentsInner.md
|
137
|
+
- docs/CreateCompanyRequest.md
|
138
|
+
- docs/CreateCompanyRequestBankAccountInfo.md
|
139
|
+
- docs/CreateCompanyRequestComercialInfo.md
|
140
|
+
- docs/CreateCompanyRequestFiscalInfo.md
|
137
141
|
- docs/CreateCustomerFiscalEntitiesResponse.md
|
138
142
|
- docs/CreateCustomerPaymentMethodsRequest.md
|
139
143
|
- docs/CreateCustomerPaymentMethodsResponse.md
|
@@ -231,10 +235,13 @@ files:
|
|
231
235
|
- docs/PaymentMethodCardRequest.md
|
232
236
|
- docs/PaymentMethodCardResponse.md
|
233
237
|
- docs/PaymentMethodCash.md
|
238
|
+
- docs/PaymentMethodCashRecurrentResponse.md
|
234
239
|
- docs/PaymentMethodCashRequest.md
|
235
240
|
- docs/PaymentMethodCashResponse.md
|
236
241
|
- docs/PaymentMethodCashResponseAllOfAgreements.md
|
237
242
|
- docs/PaymentMethodGeneralRequest.md
|
243
|
+
- docs/PaymentMethodPbbPayment.md
|
244
|
+
- docs/PaymentMethodPbbRequest.md
|
238
245
|
- docs/PaymentMethodResponse.md
|
239
246
|
- docs/PaymentMethodSpeiRecurrent.md
|
240
247
|
- docs/PaymentMethodSpeiRequest.md
|
@@ -304,6 +311,9 @@ files:
|
|
304
311
|
- docs/WebhookUpdateRequest.md
|
305
312
|
- docs/WebhooksApi.md
|
306
313
|
- docs/WhitelistlistRuleResponse.md
|
314
|
+
- examples/README.md
|
315
|
+
- examples/one_time_charge_bnpl.rb
|
316
|
+
- examples/one_time_charge_pbb.rb
|
307
317
|
- lib/conekta.rb
|
308
318
|
- lib/conekta/api/antifraud_api.rb
|
309
319
|
- lib/conekta/api/api_keys_api.rb
|
@@ -365,10 +375,17 @@ files:
|
|
365
375
|
- lib/conekta/models/checkout_response.rb
|
366
376
|
- lib/conekta/models/checkouts_response.rb
|
367
377
|
- lib/conekta/models/checkouts_response_all_of.rb
|
378
|
+
- lib/conekta/models/company_document_request.rb
|
379
|
+
- lib/conekta/models/company_document_response.rb
|
368
380
|
- lib/conekta/models/company_fiscal_info_address_response.rb
|
369
381
|
- lib/conekta/models/company_fiscal_info_response.rb
|
370
382
|
- lib/conekta/models/company_payout_destination_response.rb
|
371
383
|
- lib/conekta/models/company_response.rb
|
384
|
+
- lib/conekta/models/company_response_documents_inner.rb
|
385
|
+
- lib/conekta/models/create_company_request.rb
|
386
|
+
- lib/conekta/models/create_company_request_bank_account_info.rb
|
387
|
+
- lib/conekta/models/create_company_request_comercial_info.rb
|
388
|
+
- lib/conekta/models/create_company_request_fiscal_info.rb
|
372
389
|
- lib/conekta/models/create_customer_fiscal_entities_response.rb
|
373
390
|
- lib/conekta/models/create_customer_fiscal_entities_response_all_of.rb
|
374
391
|
- lib/conekta/models/create_customer_payment_methods_request.rb
|
@@ -491,12 +508,15 @@ files:
|
|
491
508
|
- lib/conekta/models/payment_method_card_response.rb
|
492
509
|
- lib/conekta/models/payment_method_card_response_all_of.rb
|
493
510
|
- lib/conekta/models/payment_method_cash.rb
|
511
|
+
- lib/conekta/models/payment_method_cash_recurrent_response.rb
|
494
512
|
- lib/conekta/models/payment_method_cash_request.rb
|
495
513
|
- lib/conekta/models/payment_method_cash_request_all_of.rb
|
496
514
|
- lib/conekta/models/payment_method_cash_response.rb
|
497
515
|
- lib/conekta/models/payment_method_cash_response_all_of.rb
|
498
516
|
- lib/conekta/models/payment_method_cash_response_all_of_agreements.rb
|
499
517
|
- lib/conekta/models/payment_method_general_request.rb
|
518
|
+
- lib/conekta/models/payment_method_pbb_payment.rb
|
519
|
+
- lib/conekta/models/payment_method_pbb_request.rb
|
500
520
|
- lib/conekta/models/payment_method_response.rb
|
501
521
|
- lib/conekta/models/payment_method_spei_recurrent.rb
|
502
522
|
- lib/conekta/models/payment_method_spei_recurrent_all_of.rb
|
@@ -616,30 +636,30 @@ signing_key:
|
|
616
636
|
specification_version: 4
|
617
637
|
summary: This library provides https://api.conekta.io operations
|
618
638
|
test_files:
|
619
|
-
- spec/api/
|
620
|
-
- spec/api/antifraud_api_spec.rb
|
621
|
-
- spec/api/webhooks_api_spec.rb
|
622
|
-
- spec/api/taxes_api_spec.rb
|
623
|
-
- spec/api/customers_api_spec.rb
|
624
|
-
- spec/api/balances_api_spec.rb
|
625
|
-
- spec/api/logs_api_spec.rb
|
626
|
-
- spec/api/payment_methods_api_spec.rb
|
639
|
+
- spec/api/events_api_spec.rb
|
627
640
|
- spec/api/payout_orders_api_spec.rb
|
628
641
|
- spec/api/shipping_contacts_api_spec.rb
|
629
|
-
- spec/api/
|
630
|
-
- spec/api/
|
631
|
-
- spec/api/products_api_spec.rb
|
632
|
-
- spec/api/orders_api_spec.rb
|
642
|
+
- spec/api/customers_api_spec.rb
|
643
|
+
- spec/api/charges_api_spec.rb
|
633
644
|
- spec/api/transfers_api_spec.rb
|
634
|
-
- spec/api/plans_api_spec.rb
|
635
645
|
- spec/api/transactions_api_spec.rb
|
646
|
+
- spec/api/balances_api_spec.rb
|
647
|
+
- spec/api/antifraud_api_spec.rb
|
636
648
|
- spec/api/subscriptions_api_spec.rb
|
637
|
-
- spec/api/tokens_api_spec.rb
|
638
|
-
- spec/api/events_api_spec.rb
|
639
|
-
- spec/api/companies_api_spec.rb
|
640
|
-
- spec/api/charges_api_spec.rb
|
641
649
|
- spec/api/shippings_api_spec.rb
|
650
|
+
- spec/api/logs_api_spec.rb
|
651
|
+
- spec/api/companies_api_spec.rb
|
652
|
+
- spec/api/tokens_api_spec.rb
|
653
|
+
- spec/api/payment_methods_api_spec.rb
|
654
|
+
- spec/api/webhook_keys_api_spec.rb
|
655
|
+
- spec/api/plans_api_spec.rb
|
642
656
|
- spec/api/api_keys_api_spec.rb
|
657
|
+
- spec/api/orders_api_spec.rb
|
658
|
+
- spec/api/taxes_api_spec.rb
|
659
|
+
- spec/api/discounts_api_spec.rb
|
660
|
+
- spec/api/payment_link_api_spec.rb
|
661
|
+
- spec/api/products_api_spec.rb
|
662
|
+
- spec/api/webhooks_api_spec.rb
|
643
663
|
- spec/api_client_spec.rb
|
644
664
|
- spec/configuration_spec.rb
|
645
665
|
- spec/spec_helper.rb
|
@@ -1,34 +0,0 @@
|
|
1
|
-
# Conekta::CompanyFiscalInfoAddressResponse
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
| Name | Type | Description | Notes |
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **object** | **String** | The resource's type | [optional] |
|
8
|
-
| **street1** | **String** | Street Address | [optional] |
|
9
|
-
| **street2** | **String** | Colonia | [optional] |
|
10
|
-
| **city** | **String** | City | [optional] |
|
11
|
-
| **state** | **String** | State | [optional] |
|
12
|
-
| **country** | **String** | Country | [optional] |
|
13
|
-
| **postal_code** | **String** | Postal code | [optional] |
|
14
|
-
| **external_number** | **String** | Street number | [optional] |
|
15
|
-
| **internal_number** | **String** | Unit / apartment number | [optional] |
|
16
|
-
|
17
|
-
## Example
|
18
|
-
|
19
|
-
```ruby
|
20
|
-
require 'conekta'
|
21
|
-
|
22
|
-
instance = Conekta::CompanyFiscalInfoAddressResponse.new(
|
23
|
-
object: null,
|
24
|
-
street1: Calle 13,
|
25
|
-
street2: Navarte,
|
26
|
-
city: Cuauhtémoc,
|
27
|
-
state: Ciudad de México,
|
28
|
-
country: MX,
|
29
|
-
postal_code: 3072,
|
30
|
-
external_number: 123,
|
31
|
-
internal_number: 123
|
32
|
-
)
|
33
|
-
```
|
34
|
-
|
@@ -1,30 +0,0 @@
|
|
1
|
-
# Conekta::CompanyFiscalInfoResponse
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
| Name | Type | Description | Notes |
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **object** | **String** | The resource's type | [optional] |
|
8
|
-
| **tax_id** | **String** | Tax ID of the company | [optional] |
|
9
|
-
| **legal_entity_name** | **String** | Legal name of the company | [optional] |
|
10
|
-
| **business_type** | **String** | Business type of the company | [optional] |
|
11
|
-
| **phone** | **String** | Phone number of the company | [optional] |
|
12
|
-
| **physical_person_business_type** | **String** | Business type if 'persona_fisica' | [optional] |
|
13
|
-
| **address** | [**CompanyFiscalInfoAddressResponse**](CompanyFiscalInfoAddressResponse.md) | | [optional] |
|
14
|
-
|
15
|
-
## Example
|
16
|
-
|
17
|
-
```ruby
|
18
|
-
require 'conekta'
|
19
|
-
|
20
|
-
instance = Conekta::CompanyFiscalInfoResponse.new(
|
21
|
-
object: null,
|
22
|
-
tax_id: XAXX010101000,
|
23
|
-
legal_entity_name: Child Company A,
|
24
|
-
business_type: persona_moral,
|
25
|
-
phone: 5555555555,
|
26
|
-
physical_person_business_type: null,
|
27
|
-
address: null
|
28
|
-
)
|
29
|
-
```
|
30
|
-
|
@@ -1,28 +0,0 @@
|
|
1
|
-
# Conekta::CompanyPayoutDestinationResponse
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
| Name | Type | Description | Notes |
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **object** | **String** | The resource's type | [optional] |
|
8
|
-
| **currency** | **String** | currency of the receiving account | [optional] |
|
9
|
-
| **account_holder_name** | **String** | Name of the account holder | [optional] |
|
10
|
-
| **bank** | **String** | Name of the bank | [optional] |
|
11
|
-
| **type** | **String** | Type of the payout destination | [optional] |
|
12
|
-
| **account_number** | **String** | Account number of the receiving account | [optional] |
|
13
|
-
|
14
|
-
## Example
|
15
|
-
|
16
|
-
```ruby
|
17
|
-
require 'conekta'
|
18
|
-
|
19
|
-
instance = Conekta::CompanyPayoutDestinationResponse.new(
|
20
|
-
object: null,
|
21
|
-
currency: MXN,
|
22
|
-
account_holder_name: Child Company A,
|
23
|
-
bank: BBVA,
|
24
|
-
type: null,
|
25
|
-
account_number: 123456789012345678
|
26
|
-
)
|
27
|
-
```
|
28
|
-
|