conekta 7.0.1 → 7.0.2
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 +16 -8
- data/VERSION +1 -1
- data/config-ruby.json +1 -1
- 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/PaymentMethodBnplRequest.md +1 -1
- data/docs/PaymentMethodSpeiRecurrent.md +2 -0
- data/examples/README.md +15 -0
- data/examples/one_time_charge_bnpl.rb +46 -0
- data/lib/conekta/api/companies_api.rb +300 -0
- 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/payment_method_bnpl_request.rb +2 -2
- data/lib/conekta/models/payment_method_spei_recurrent.rb +11 -1
- data/lib/conekta/version.rb +1 -1
- data/lib/conekta.rb +7 -3
- data/spec/api/companies_api_spec.rb +53 -0
- metadata +35 -22
- data/docs/CompanyFiscalInfoAddressResponse.md +0 -34
- data/docs/CompanyFiscalInfoResponse.md +0 -30
- data/docs/CompanyPayoutDestinationResponse.md +0 -28
@@ -0,0 +1,226 @@
|
|
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
|
+
# Fiscal information for the company.
|
18
|
+
class CreateCompanyRequestFiscalInfo
|
19
|
+
# The business phone number for fiscal purposes.
|
20
|
+
attr_accessor :business_phone
|
21
|
+
|
22
|
+
# The fiscal type of the company (e.g., 'moral', 'persona_fisica').
|
23
|
+
attr_accessor :fiscal_type
|
24
|
+
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
26
|
+
def self.attribute_map
|
27
|
+
{
|
28
|
+
:'business_phone' => :'business_phone',
|
29
|
+
:'fiscal_type' => :'fiscal_type'
|
30
|
+
}
|
31
|
+
end
|
32
|
+
|
33
|
+
# Returns all the JSON keys this model knows about
|
34
|
+
def self.acceptable_attributes
|
35
|
+
attribute_map.values
|
36
|
+
end
|
37
|
+
|
38
|
+
# Attribute type mapping.
|
39
|
+
def self.openapi_types
|
40
|
+
{
|
41
|
+
:'business_phone' => :'String',
|
42
|
+
:'fiscal_type' => :'String'
|
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 `Conekta::CreateCompanyRequestFiscalInfo` initialize method"
|
57
|
+
end
|
58
|
+
|
59
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
61
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Conekta::CreateCompanyRequestFiscalInfo`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
63
|
+
end
|
64
|
+
h[k.to_sym] = v
|
65
|
+
}
|
66
|
+
|
67
|
+
if attributes.key?(:'business_phone')
|
68
|
+
self.business_phone = attributes[:'business_phone']
|
69
|
+
end
|
70
|
+
|
71
|
+
if attributes.key?(:'fiscal_type')
|
72
|
+
self.fiscal_type = attributes[:'fiscal_type']
|
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
|
+
invalid_properties
|
82
|
+
end
|
83
|
+
|
84
|
+
# Check to see if the all the properties in the model are valid
|
85
|
+
# @return true if the model is valid
|
86
|
+
def valid?
|
87
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
88
|
+
true
|
89
|
+
end
|
90
|
+
|
91
|
+
# Checks equality by comparing each attribute.
|
92
|
+
# @param [Object] Object to be compared
|
93
|
+
def ==(o)
|
94
|
+
return true if self.equal?(o)
|
95
|
+
self.class == o.class &&
|
96
|
+
business_phone == o.business_phone &&
|
97
|
+
fiscal_type == o.fiscal_type
|
98
|
+
end
|
99
|
+
|
100
|
+
# @see the `==` method
|
101
|
+
# @param [Object] Object to be compared
|
102
|
+
def eql?(o)
|
103
|
+
self == o
|
104
|
+
end
|
105
|
+
|
106
|
+
# Calculates hash code according to all attributes.
|
107
|
+
# @return [Integer] Hash code
|
108
|
+
def hash
|
109
|
+
[business_phone, fiscal_type].hash
|
110
|
+
end
|
111
|
+
|
112
|
+
# Builds the object from hash
|
113
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
114
|
+
# @return [Object] Returns the model itself
|
115
|
+
def self.build_from_hash(attributes)
|
116
|
+
return nil unless attributes.is_a?(Hash)
|
117
|
+
attributes = attributes.transform_keys(&:to_sym)
|
118
|
+
transformed_hash = {}
|
119
|
+
openapi_types.each_pair do |key, type|
|
120
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
121
|
+
transformed_hash["#{key}"] = nil
|
122
|
+
elsif type =~ /\AArray<(.*)>/i
|
123
|
+
# check to ensure the input is an array given that the attribute
|
124
|
+
# is documented as an array but the input is not
|
125
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
126
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
127
|
+
end
|
128
|
+
elsif !attributes[attribute_map[key]].nil?
|
129
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
130
|
+
end
|
131
|
+
end
|
132
|
+
new(transformed_hash)
|
133
|
+
end
|
134
|
+
|
135
|
+
# Deserializes the data based on type
|
136
|
+
# @param string type Data type
|
137
|
+
# @param string value Value to be deserialized
|
138
|
+
# @return [Object] Deserialized data
|
139
|
+
def self._deserialize(type, value)
|
140
|
+
case type.to_sym
|
141
|
+
when :Time
|
142
|
+
Time.parse(value)
|
143
|
+
when :Date
|
144
|
+
Date.parse(value)
|
145
|
+
when :String
|
146
|
+
value.to_s
|
147
|
+
when :Integer
|
148
|
+
value.to_i
|
149
|
+
when :Float
|
150
|
+
value.to_f
|
151
|
+
when :Boolean
|
152
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
153
|
+
true
|
154
|
+
else
|
155
|
+
false
|
156
|
+
end
|
157
|
+
when :Object
|
158
|
+
# generic object (usually a Hash), return directly
|
159
|
+
value
|
160
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
161
|
+
inner_type = Regexp.last_match[:inner_type]
|
162
|
+
value.map { |v| _deserialize(inner_type, v) }
|
163
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
164
|
+
k_type = Regexp.last_match[:k_type]
|
165
|
+
v_type = Regexp.last_match[:v_type]
|
166
|
+
{}.tap do |hash|
|
167
|
+
value.each do |k, v|
|
168
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
169
|
+
end
|
170
|
+
end
|
171
|
+
else # model
|
172
|
+
# models (e.g. Pet) or oneOf
|
173
|
+
klass = Conekta.const_get(type)
|
174
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
178
|
+
# Returns the string representation of the object
|
179
|
+
# @return [String] String presentation of the object
|
180
|
+
def to_s
|
181
|
+
to_hash.to_s
|
182
|
+
end
|
183
|
+
|
184
|
+
# to_body is an alias to to_hash (backward compatibility)
|
185
|
+
# @return [Hash] Returns the object in the form of hash
|
186
|
+
def to_body
|
187
|
+
to_hash
|
188
|
+
end
|
189
|
+
|
190
|
+
# Returns the object in the form of hash
|
191
|
+
# @return [Hash] Returns the object in the form of hash
|
192
|
+
def to_hash
|
193
|
+
hash = {}
|
194
|
+
self.class.attribute_map.each_pair do |attr, param|
|
195
|
+
value = self.send(attr)
|
196
|
+
if value.nil?
|
197
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
198
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
199
|
+
end
|
200
|
+
|
201
|
+
hash[param] = _to_hash(value)
|
202
|
+
end
|
203
|
+
hash
|
204
|
+
end
|
205
|
+
|
206
|
+
# Outputs non-array value in the form of hash
|
207
|
+
# For object, use to_hash. Otherwise, just return the value
|
208
|
+
# @param [Object] value Any valid value
|
209
|
+
# @return [Hash] Returns the value in the form of hash
|
210
|
+
def _to_hash(value)
|
211
|
+
if value.is_a?(Array)
|
212
|
+
value.compact.map { |v| _to_hash(v) }
|
213
|
+
elsif value.is_a?(Hash)
|
214
|
+
{}.tap do |hash|
|
215
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
216
|
+
end
|
217
|
+
elsif value.respond_to? :to_hash
|
218
|
+
value.to_hash
|
219
|
+
else
|
220
|
+
value
|
221
|
+
end
|
222
|
+
end
|
223
|
+
|
224
|
+
end
|
225
|
+
|
226
|
+
end
|
@@ -190,7 +190,7 @@ module Conekta
|
|
190
190
|
return false if @can_not_expire.nil?
|
191
191
|
return false if @failure_url.nil?
|
192
192
|
return false if @product_type.nil?
|
193
|
-
product_type_validator = EnumAttributeValidator.new('String', ["
|
193
|
+
product_type_validator = EnumAttributeValidator.new('String', ["aplazo_bnpl", "creditea_bnpl"])
|
194
194
|
return false unless product_type_validator.valid?(@product_type)
|
195
195
|
return false if @success_url.nil?
|
196
196
|
true
|
@@ -199,7 +199,7 @@ module Conekta
|
|
199
199
|
# Custom attribute writer method checking allowed values (enum).
|
200
200
|
# @param [Object] product_type Object to be assigned
|
201
201
|
def product_type=(product_type)
|
202
|
-
validator = EnumAttributeValidator.new('String', ["
|
202
|
+
validator = EnumAttributeValidator.new('String', ["aplazo_bnpl", "creditea_bnpl"])
|
203
203
|
unless validator.valid?(product_type)
|
204
204
|
fail ArgumentError, "invalid value for \"product_type\", must be one of #{validator.allowable_values}."
|
205
205
|
end
|
@@ -25,6 +25,9 @@ module Conekta
|
|
25
25
|
|
26
26
|
attr_accessor :parent_id
|
27
27
|
|
28
|
+
# Bank name for the SPEI payment method
|
29
|
+
attr_accessor :bank
|
30
|
+
|
28
31
|
attr_accessor :reference
|
29
32
|
|
30
33
|
attr_accessor :expires_at
|
@@ -37,6 +40,7 @@ module Conekta
|
|
37
40
|
:'object' => :'object',
|
38
41
|
:'created_at' => :'created_at',
|
39
42
|
:'parent_id' => :'parent_id',
|
43
|
+
:'bank' => :'bank',
|
40
44
|
:'reference' => :'reference',
|
41
45
|
:'expires_at' => :'expires_at'
|
42
46
|
}
|
@@ -55,6 +59,7 @@ module Conekta
|
|
55
59
|
:'object' => :'String',
|
56
60
|
:'created_at' => :'Integer',
|
57
61
|
:'parent_id' => :'String',
|
62
|
+
:'bank' => :'String',
|
58
63
|
:'reference' => :'String',
|
59
64
|
:'expires_at' => :'String'
|
60
65
|
}
|
@@ -116,6 +121,10 @@ module Conekta
|
|
116
121
|
self.parent_id = attributes[:'parent_id']
|
117
122
|
end
|
118
123
|
|
124
|
+
if attributes.key?(:'bank')
|
125
|
+
self.bank = attributes[:'bank']
|
126
|
+
end
|
127
|
+
|
119
128
|
if attributes.key?(:'reference')
|
120
129
|
self.reference = attributes[:'reference']
|
121
130
|
end
|
@@ -170,6 +179,7 @@ module Conekta
|
|
170
179
|
object == o.object &&
|
171
180
|
created_at == o.created_at &&
|
172
181
|
parent_id == o.parent_id &&
|
182
|
+
bank == o.bank &&
|
173
183
|
reference == o.reference &&
|
174
184
|
expires_at == o.expires_at
|
175
185
|
end
|
@@ -183,7 +193,7 @@ module Conekta
|
|
183
193
|
# Calculates hash code according to all attributes.
|
184
194
|
# @return [Integer] Hash code
|
185
195
|
def hash
|
186
|
-
[type, id, object, created_at, parent_id, reference, expires_at].hash
|
196
|
+
[type, id, object, created_at, parent_id, bank, reference, expires_at].hash
|
187
197
|
end
|
188
198
|
|
189
199
|
# 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'
|
@@ -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.2
|
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-12 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
|
@@ -304,6 +308,8 @@ files:
|
|
304
308
|
- docs/WebhookUpdateRequest.md
|
305
309
|
- docs/WebhooksApi.md
|
306
310
|
- docs/WhitelistlistRuleResponse.md
|
311
|
+
- examples/README.md
|
312
|
+
- examples/one_time_charge_bnpl.rb
|
307
313
|
- lib/conekta.rb
|
308
314
|
- lib/conekta/api/antifraud_api.rb
|
309
315
|
- lib/conekta/api/api_keys_api.rb
|
@@ -365,10 +371,17 @@ files:
|
|
365
371
|
- lib/conekta/models/checkout_response.rb
|
366
372
|
- lib/conekta/models/checkouts_response.rb
|
367
373
|
- lib/conekta/models/checkouts_response_all_of.rb
|
374
|
+
- lib/conekta/models/company_document_request.rb
|
375
|
+
- lib/conekta/models/company_document_response.rb
|
368
376
|
- lib/conekta/models/company_fiscal_info_address_response.rb
|
369
377
|
- lib/conekta/models/company_fiscal_info_response.rb
|
370
378
|
- lib/conekta/models/company_payout_destination_response.rb
|
371
379
|
- lib/conekta/models/company_response.rb
|
380
|
+
- lib/conekta/models/company_response_documents_inner.rb
|
381
|
+
- lib/conekta/models/create_company_request.rb
|
382
|
+
- lib/conekta/models/create_company_request_bank_account_info.rb
|
383
|
+
- lib/conekta/models/create_company_request_comercial_info.rb
|
384
|
+
- lib/conekta/models/create_company_request_fiscal_info.rb
|
372
385
|
- lib/conekta/models/create_customer_fiscal_entities_response.rb
|
373
386
|
- lib/conekta/models/create_customer_fiscal_entities_response_all_of.rb
|
374
387
|
- lib/conekta/models/create_customer_payment_methods_request.rb
|
@@ -616,30 +629,30 @@ signing_key:
|
|
616
629
|
specification_version: 4
|
617
630
|
summary: This library provides https://api.conekta.io operations
|
618
631
|
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
|
632
|
+
- spec/api/events_api_spec.rb
|
627
633
|
- spec/api/payout_orders_api_spec.rb
|
628
634
|
- 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
|
635
|
+
- spec/api/customers_api_spec.rb
|
636
|
+
- spec/api/charges_api_spec.rb
|
633
637
|
- spec/api/transfers_api_spec.rb
|
634
|
-
- spec/api/plans_api_spec.rb
|
635
638
|
- spec/api/transactions_api_spec.rb
|
639
|
+
- spec/api/balances_api_spec.rb
|
640
|
+
- spec/api/antifraud_api_spec.rb
|
636
641
|
- 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
642
|
- spec/api/shippings_api_spec.rb
|
643
|
+
- spec/api/logs_api_spec.rb
|
644
|
+
- spec/api/companies_api_spec.rb
|
645
|
+
- spec/api/tokens_api_spec.rb
|
646
|
+
- spec/api/payment_methods_api_spec.rb
|
647
|
+
- spec/api/webhook_keys_api_spec.rb
|
648
|
+
- spec/api/plans_api_spec.rb
|
642
649
|
- spec/api/api_keys_api_spec.rb
|
650
|
+
- spec/api/orders_api_spec.rb
|
651
|
+
- spec/api/taxes_api_spec.rb
|
652
|
+
- spec/api/discounts_api_spec.rb
|
653
|
+
- spec/api/payment_link_api_spec.rb
|
654
|
+
- spec/api/products_api_spec.rb
|
655
|
+
- spec/api/webhooks_api_spec.rb
|
643
656
|
- spec/api_client_spec.rb
|
644
657
|
- spec/configuration_spec.rb
|
645
658
|
- 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
|
-
|