conekta 6.0.3 → 6.0.4
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 +7 -5
- data/VERSION +1 -1
- data/config-ruby.json +1 -1
- data/docs/ChargeRequest.md +1 -1
- data/docs/ChargeRequestPaymentMethod.md +39 -18
- data/docs/ChargeResponse.md +6 -6
- data/docs/ChargesApi.md +1 -1
- data/docs/ChargesDataResponse.md +6 -6
- data/docs/Checkout.md +2 -0
- data/docs/CreateCustomerPaymentMethodsRequest.md +4 -4
- data/docs/CustomerPaymentMethodsRequest.md +4 -4
- data/docs/OrderRefundRequest.md +2 -2
- data/docs/OrderRequest.md +1 -1
- data/docs/PaymentMethodBankTransfer.md +3 -1
- data/docs/PaymentMethodCard.md +12 -10
- data/docs/PaymentMethodCardRequest.md +12 -2
- data/docs/PaymentMethodCash.md +3 -1
- data/docs/PaymentMethodGeneralRequest.md +32 -0
- data/docs/PaymentMethodTokenRequest.md +20 -0
- data/docs/PaymentMethodsApi.md +1 -1
- data/docs/SubscriptionResponse.md +2 -0
- data/lib/conekta/models/charge_request.rb +1 -0
- data/lib/conekta/models/charge_request_payment_method.rb +74 -239
- data/lib/conekta/models/charge_response.rb +4 -0
- data/lib/conekta/models/charges_data_response.rb +4 -0
- data/lib/conekta/models/checkout.rb +11 -1
- data/lib/conekta/models/create_customer_payment_methods_request.rb +2 -2
- data/lib/conekta/models/customer_payment_methods_request.rb +2 -2
- data/lib/conekta/models/order_refund_request.rb +2 -0
- data/lib/conekta/models/order_request.rb +1 -1
- data/lib/conekta/models/payment_method_bank_transfer.rb +14 -5
- data/lib/conekta/models/payment_method_card.rb +22 -4
- data/lib/conekta/models/payment_method_card_request.rb +174 -12
- data/lib/conekta/models/payment_method_cash.rb +13 -4
- data/lib/conekta/models/payment_method_general_request.rb +291 -0
- data/lib/conekta/models/payment_method_token_request.rb +246 -0
- data/lib/conekta/models/subscription_response.rb +11 -1
- data/lib/conekta/version.rb +1 -1
- data/lib/conekta.rb +2 -0
- data/spec/api/charges_api_spec.rb +18 -10
- data/spec/api/customers_api_spec.rb +10 -4
- data/spec/api/orders_api_spec.rb +6 -6
- metadata +27 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8de4aaa5045333e8aac10f27bcd2342090cec678e694f6a52b0dca6714d3b6de
|
4
|
+
data.tar.gz: 748930db55b3ec07e0c5f632444f4acd6fa3ae75e93cbef151c100fda242e87a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3e4004e99e72c9b1ad7a3a939ec85a362c3c331b297928461c83d1fc99f7ffc8ca8a3e6e1feb4c2be099b85d26c0a443e211fbae21c397ee6c65d1c7aa019b4
|
7
|
+
data.tar.gz: f116797011da22e07671b1954c2be3f59e8d5946466f53f2061e1c0cd1539bd10d92673dfc1f7f8fcc26d33b8d163f9e8a644bf2d8622cb3d96ed114166c293c
|
data/README.md
CHANGED
@@ -7,8 +7,8 @@ Conekta sdk
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: 2.1.0
|
10
|
-
- Package version: 6.0.
|
11
|
-
- Build date: 2024-
|
10
|
+
- Package version: 6.0.4
|
11
|
+
- Build date: 2024-10-11T14:29:25.812959596Z[Etc/UTC]
|
12
12
|
- Generator version: 7.5.0
|
13
13
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
14
14
|
For more information, please visit [https://github.com/conekta/openapi/issues](https://github.com/conekta/openapi/issues)
|
@@ -26,16 +26,16 @@ gem build conekta.gemspec
|
|
26
26
|
Then either install the gem locally:
|
27
27
|
|
28
28
|
```shell
|
29
|
-
gem install ./conekta-6.0.
|
29
|
+
gem install ./conekta-6.0.4.gem
|
30
30
|
```
|
31
31
|
|
32
|
-
(for development, run `gem install --dev ./conekta-6.0.
|
32
|
+
(for development, run `gem install --dev ./conekta-6.0.4.gem` to install the development dependencies)
|
33
33
|
|
34
34
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
35
35
|
|
36
36
|
Finally add this to the Gemfile:
|
37
37
|
|
38
|
-
gem 'conekta', '~> 6.0.
|
38
|
+
gem 'conekta', '~> 6.0.4'
|
39
39
|
|
40
40
|
### Install from Git
|
41
41
|
|
@@ -309,9 +309,11 @@ Class | Method | HTTP request | Description
|
|
309
309
|
- [Conekta::PaymentMethodCash](docs/PaymentMethodCash.md)
|
310
310
|
- [Conekta::PaymentMethodCashRequest](docs/PaymentMethodCashRequest.md)
|
311
311
|
- [Conekta::PaymentMethodCashResponse](docs/PaymentMethodCashResponse.md)
|
312
|
+
- [Conekta::PaymentMethodGeneralRequest](docs/PaymentMethodGeneralRequest.md)
|
312
313
|
- [Conekta::PaymentMethodResponse](docs/PaymentMethodResponse.md)
|
313
314
|
- [Conekta::PaymentMethodSpeiRecurrent](docs/PaymentMethodSpeiRecurrent.md)
|
314
315
|
- [Conekta::PaymentMethodSpeiRequest](docs/PaymentMethodSpeiRequest.md)
|
316
|
+
- [Conekta::PaymentMethodTokenRequest](docs/PaymentMethodTokenRequest.md)
|
315
317
|
- [Conekta::Payout](docs/Payout.md)
|
316
318
|
- [Conekta::PayoutMethod](docs/PayoutMethod.md)
|
317
319
|
- [Conekta::PayoutOrder](docs/PayoutOrder.md)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
6.0.
|
1
|
+
6.0.4
|
data/config-ruby.json
CHANGED
data/docs/ChargeRequest.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **amount** | **Integer** |
|
7
|
+
| **amount** | **Integer** | Amount to be charged in cents | [optional] |
|
8
8
|
| **payment_method** | [**ChargeRequestPaymentMethod**](ChargeRequestPaymentMethod.md) | | |
|
9
9
|
| **reference_id** | **String** | Custom reference to add to the charge | [optional] |
|
10
10
|
|
@@ -1,28 +1,49 @@
|
|
1
1
|
# Conekta::ChargeRequestPaymentMethod
|
2
2
|
|
3
|
-
##
|
3
|
+
## Class instance methods
|
4
4
|
|
5
|
-
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **expires_at** | **Integer** | Method expiration date as unix timestamp | [optional] |
|
8
|
-
| **monthly_installments** | **Integer** | How many months without interest to apply, it can be 3, 6, 9, 12 or 18 | [optional] |
|
9
|
-
| **type** | **String** | | |
|
10
|
-
| **token_id** | **String** | | [optional] |
|
11
|
-
| **payment_source_id** | **String** | | [optional] |
|
12
|
-
| **contract_id** | **String** | Optional id sent to indicate the bank contract for recurrent card charges. | [optional] |
|
5
|
+
### `openapi_one_of`
|
13
6
|
|
14
|
-
|
7
|
+
Returns the list of classes defined in oneOf.
|
8
|
+
|
9
|
+
#### Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'conekta'
|
13
|
+
|
14
|
+
Conekta::ChargeRequestPaymentMethod.openapi_one_of
|
15
|
+
# =>
|
16
|
+
# [
|
17
|
+
# :'PaymentMethodCardRequest',
|
18
|
+
# :'PaymentMethodGeneralRequest'
|
19
|
+
# ]
|
20
|
+
```
|
21
|
+
|
22
|
+
### build
|
23
|
+
|
24
|
+
Find the appropriate object from the `openapi_one_of` list and casts the data into it.
|
25
|
+
|
26
|
+
#### Example
|
15
27
|
|
16
28
|
```ruby
|
17
29
|
require 'conekta'
|
18
30
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
payment_source_id: src_2tLkkyfMPh6v7pFry,
|
25
|
-
contract_id: S781317595
|
26
|
-
)
|
31
|
+
Conekta::ChargeRequestPaymentMethod.build(data)
|
32
|
+
# => #<PaymentMethodCardRequest:0x00007fdd4aab02a0>
|
33
|
+
|
34
|
+
Conekta::ChargeRequestPaymentMethod.build(data_that_doesnt_match)
|
35
|
+
# => nil
|
27
36
|
```
|
28
37
|
|
38
|
+
#### Parameters
|
39
|
+
|
40
|
+
| Name | Type | Description |
|
41
|
+
| ---- | ---- | ----------- |
|
42
|
+
| **data** | **Mixed** | data to be matched against the list of oneOf items |
|
43
|
+
|
44
|
+
#### Return type
|
45
|
+
|
46
|
+
- `PaymentMethodCardRequest`
|
47
|
+
- `PaymentMethodGeneralRequest`
|
48
|
+
- `nil` (if no type matches)
|
49
|
+
|
data/docs/ChargeResponse.md
CHANGED
@@ -13,11 +13,11 @@
|
|
13
13
|
| **device_fingerprint** | **String** | | [optional] |
|
14
14
|
| **failure_code** | **String** | | [optional] |
|
15
15
|
| **failure_message** | **String** | | [optional] |
|
16
|
-
| **id** | **String** |
|
17
|
-
| **livemode** | **Boolean** |
|
16
|
+
| **id** | **String** | Charge ID | [optional] |
|
17
|
+
| **livemode** | **Boolean** | Whether the charge was made in live mode or not | [optional] |
|
18
18
|
| **object** | **String** | | [optional] |
|
19
|
-
| **order_id** | **String** |
|
20
|
-
| **paid_at** | **Integer** |
|
19
|
+
| **order_id** | **String** | Order ID | [optional] |
|
20
|
+
| **paid_at** | **Integer** | Payment date | [optional] |
|
21
21
|
| **payment_method** | [**ChargeResponsePaymentMethod**](ChargeResponsePaymentMethod.md) | | [optional] |
|
22
22
|
| **reference_id** | **String** | Reference ID of the charge | [optional] |
|
23
23
|
| **refunds** | [**ChargeResponseRefunds**](ChargeResponseRefunds.md) | | [optional] |
|
@@ -39,8 +39,8 @@ instance = Conekta::ChargeResponse.new(
|
|
39
39
|
failure_code: suspected_fraud,
|
40
40
|
failure_message: Este cargo ha sido declinado porque el comportamiento del comprador es sospechoso.,
|
41
41
|
id: 63efa757cf65380001aec040,
|
42
|
-
livemode:
|
43
|
-
object:
|
42
|
+
livemode: false,
|
43
|
+
object: charge,
|
44
44
|
order_id: ord_2tN73UdUSNrYRPD9r,
|
45
45
|
paid_at: 1676390742,
|
46
46
|
payment_method: null,
|
data/docs/ChargesApi.md
CHANGED
@@ -109,7 +109,7 @@ end
|
|
109
109
|
|
110
110
|
api_instance = Conekta::ChargesApi.new
|
111
111
|
id = '6307a60c41de27127515a575' # String | Identifier of the resource
|
112
|
-
charge_request = Conekta::ChargeRequest.new({payment_method: Conekta::
|
112
|
+
charge_request = Conekta::ChargeRequest.new({payment_method: Conekta::PaymentMethodCardRequest.new({type: 'card | cash | spei', cvc: '198', exp_month: '12', exp_year: '2025', name: 'John Doe', number: '4242424242424242'})}) # ChargeRequest | requested field for a charge
|
113
113
|
opts = {
|
114
114
|
accept_language: 'es', # String | Use for knowing which language to use
|
115
115
|
x_child_company_id: '6441b6376b60c3a638da80af' # String | In the case of a holding company, the company id of the child company to which will process the request.
|
data/docs/ChargesDataResponse.md
CHANGED
@@ -13,11 +13,11 @@
|
|
13
13
|
| **device_fingerprint** | **String** | | [optional] |
|
14
14
|
| **failure_code** | **String** | | [optional] |
|
15
15
|
| **failure_message** | **String** | | [optional] |
|
16
|
-
| **id** | **String** |
|
17
|
-
| **livemode** | **Boolean** |
|
16
|
+
| **id** | **String** | Charge ID | [optional] |
|
17
|
+
| **livemode** | **Boolean** | Whether the charge was made in live mode or not | [optional] |
|
18
18
|
| **object** | **String** | | [optional] |
|
19
|
-
| **order_id** | **String** |
|
20
|
-
| **paid_at** | **Integer** |
|
19
|
+
| **order_id** | **String** | Order ID | [optional] |
|
20
|
+
| **paid_at** | **Integer** | Payment date | [optional] |
|
21
21
|
| **payment_method** | [**ChargeResponsePaymentMethod**](ChargeResponsePaymentMethod.md) | | [optional] |
|
22
22
|
| **reference_id** | **String** | Reference ID of the charge | [optional] |
|
23
23
|
| **refunds** | [**ChargeResponseRefunds**](ChargeResponseRefunds.md) | | [optional] |
|
@@ -39,8 +39,8 @@ instance = Conekta::ChargesDataResponse.new(
|
|
39
39
|
failure_code: suspected_fraud,
|
40
40
|
failure_message: Este cargo ha sido declinado porque el comportamiento del comprador es sospechoso.,
|
41
41
|
id: 63efa757cf65380001aec040,
|
42
|
-
livemode:
|
43
|
-
object:
|
42
|
+
livemode: false,
|
43
|
+
object: charge,
|
44
44
|
order_id: ord_2tN73UdUSNrYRPD9r,
|
45
45
|
paid_at: 1676390742,
|
46
46
|
payment_method: null,
|
data/docs/Checkout.md
CHANGED
@@ -8,6 +8,7 @@
|
|
8
8
|
| **expires_at** | **Integer** | It is the time when the link will expire. It is expressed in seconds since the Unix epoch. The valid range is from 2 to 365 days (the valid range will be taken from the next day of the creation date at 00:01 hrs) | |
|
9
9
|
| **monthly_installments_enabled** | **Boolean** | This flag allows you to specify if months without interest will be active. | [optional] |
|
10
10
|
| **monthly_installments_options** | **Array<Integer>** | This field allows you to specify the number of months without interest. | [optional] |
|
11
|
+
| **three_ds_mode** | **String** | Indicates the 3DS2 mode for the order, either smart or strict. | [optional] |
|
11
12
|
| **name** | **String** | Reason for charge | |
|
12
13
|
| **needs_shipping_contact** | **Boolean** | This flag allows you to fill in the shipping information at checkout. | [optional] |
|
13
14
|
| **on_demand_enabled** | **Boolean** | This flag allows you to specify if the link will be on demand. | [optional] |
|
@@ -26,6 +27,7 @@ instance = Conekta::Checkout.new(
|
|
26
27
|
expires_at: 1680397724,
|
27
28
|
monthly_installments_enabled: true,
|
28
29
|
monthly_installments_options: [3,6,12],
|
30
|
+
three_ds_mode: null,
|
29
31
|
name: Payment Link Name 1594138857,
|
30
32
|
needs_shipping_contact: false,
|
31
33
|
on_demand_enabled: true,
|
@@ -14,9 +14,9 @@ require 'conekta'
|
|
14
14
|
Conekta::CreateCustomerPaymentMethodsRequest.openapi_one_of
|
15
15
|
# =>
|
16
16
|
# [
|
17
|
-
# :'PaymentMethodCardRequest',
|
18
17
|
# :'PaymentMethodCashRequest',
|
19
|
-
# :'PaymentMethodSpeiRequest'
|
18
|
+
# :'PaymentMethodSpeiRequest',
|
19
|
+
# :'PaymentMethodTokenRequest'
|
20
20
|
# ]
|
21
21
|
```
|
22
22
|
|
@@ -30,7 +30,7 @@ Find the appropriate object from the `openapi_one_of` list and casts the data in
|
|
30
30
|
require 'conekta'
|
31
31
|
|
32
32
|
Conekta::CreateCustomerPaymentMethodsRequest.build(data)
|
33
|
-
# => #<
|
33
|
+
# => #<PaymentMethodCashRequest:0x00007fdd4aab02a0>
|
34
34
|
|
35
35
|
Conekta::CreateCustomerPaymentMethodsRequest.build(data_that_doesnt_match)
|
36
36
|
# => nil
|
@@ -44,8 +44,8 @@ Conekta::CreateCustomerPaymentMethodsRequest.build(data_that_doesnt_match)
|
|
44
44
|
|
45
45
|
#### Return type
|
46
46
|
|
47
|
-
- `PaymentMethodCardRequest`
|
48
47
|
- `PaymentMethodCashRequest`
|
49
48
|
- `PaymentMethodSpeiRequest`
|
49
|
+
- `PaymentMethodTokenRequest`
|
50
50
|
- `nil` (if no type matches)
|
51
51
|
|
@@ -14,9 +14,9 @@ require 'conekta'
|
|
14
14
|
Conekta::CustomerPaymentMethodsRequest.openapi_one_of
|
15
15
|
# =>
|
16
16
|
# [
|
17
|
-
# :'PaymentMethodCardRequest',
|
18
17
|
# :'PaymentMethodCashRequest',
|
19
|
-
# :'PaymentMethodSpeiRequest'
|
18
|
+
# :'PaymentMethodSpeiRequest',
|
19
|
+
# :'PaymentMethodTokenRequest'
|
20
20
|
# ]
|
21
21
|
```
|
22
22
|
|
@@ -30,7 +30,7 @@ Find the appropriate object from the `openapi_one_of` list and casts the data in
|
|
30
30
|
require 'conekta'
|
31
31
|
|
32
32
|
Conekta::CustomerPaymentMethodsRequest.build(data)
|
33
|
-
# => #<
|
33
|
+
# => #<PaymentMethodCashRequest:0x00007fdd4aab02a0>
|
34
34
|
|
35
35
|
Conekta::CustomerPaymentMethodsRequest.build(data_that_doesnt_match)
|
36
36
|
# => nil
|
@@ -44,8 +44,8 @@ Conekta::CustomerPaymentMethodsRequest.build(data_that_doesnt_match)
|
|
44
44
|
|
45
45
|
#### Return type
|
46
46
|
|
47
|
-
- `PaymentMethodCardRequest`
|
48
47
|
- `PaymentMethodCashRequest`
|
49
48
|
- `PaymentMethodSpeiRequest`
|
49
|
+
- `PaymentMethodTokenRequest`
|
50
50
|
- `nil` (if no type matches)
|
51
51
|
|
data/docs/OrderRefundRequest.md
CHANGED
@@ -4,9 +4,9 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **amount** | **Integer** |
|
7
|
+
| **amount** | **Integer** | Amount to be refunded in cents | |
|
8
8
|
| **expires_at** | **Integer** | | [optional] |
|
9
|
-
| **reason** | **String** |
|
9
|
+
| **reason** | **String** | Reason for the refund | |
|
10
10
|
|
11
11
|
## Example
|
12
12
|
|
data/docs/OrderRequest.md
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
| **needs_shipping_contact** | **Boolean** | Allows you to fill out the shipping information at checkout | [optional] |
|
16
16
|
| **pre_authorize** | **Boolean** | Indicates whether the order charges must be preauthorized | [optional][default to false] |
|
17
17
|
| **processing_mode** | **String** | Indicates the processing mode for the order, either ecommerce, recurrent or validation. | [optional] |
|
18
|
-
| **return_url** | **String** | Indicates the redirection callback upon completion of the 3DS2 flow. | [optional] |
|
18
|
+
| **return_url** | **String** | Indicates the redirection callback upon completion of the 3DS2 flow. Do not use this parameter if your order has a checkout parameter | [optional] |
|
19
19
|
| **shipping_contact** | [**CustomerShippingContacts**](CustomerShippingContacts.md) | | [optional] |
|
20
20
|
| **shipping_lines** | [**Array<ShippingRequest>**](ShippingRequest.md) | List of [shipping costs](https://developers.conekta.com/v2.1.0/reference/orderscreateshipping). If the online store offers digital products. | [optional] |
|
21
21
|
| **tax_lines** | [**Array<OrderTaxRequest>**](OrderTaxRequest.md) | List of [taxes](https://developers.conekta.com/v2.1.0/reference/orderscreatetaxes) that are applied to the order. | [optional] |
|
@@ -22,6 +22,7 @@
|
|
22
22
|
| **receiving_account_tax_id** | **String** | | [optional] |
|
23
23
|
| **reference_number** | **String** | | [optional] |
|
24
24
|
| **tracking_code** | **String** | | [optional] |
|
25
|
+
| **customer_ip_address** | **String** | | [optional] |
|
25
26
|
|
26
27
|
## Example
|
27
28
|
|
@@ -46,7 +47,8 @@ instance = Conekta::PaymentMethodBankTransfer.new(
|
|
46
47
|
receiving_account_bank: STP,
|
47
48
|
receiving_account_tax_id: null,
|
48
49
|
reference_number: null,
|
49
|
-
tracking_code: null
|
50
|
+
tracking_code: null,
|
51
|
+
customer_ip_address: 0.0.0.0
|
50
52
|
)
|
51
53
|
```
|
52
54
|
|
data/docs/PaymentMethodCard.md
CHANGED
@@ -6,17 +6,18 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **type** | **String** | | [optional] |
|
8
8
|
| **object** | **String** | | |
|
9
|
-
| **account_type** | **String** |
|
9
|
+
| **account_type** | **String** | Account type of the card | [optional] |
|
10
10
|
| **auth_code** | **String** | | [optional] |
|
11
|
-
| **brand** | **String** |
|
11
|
+
| **brand** | **String** | Brand of the card | [optional] |
|
12
12
|
| **contract_id** | **String** | Id sent for recurrent charges. | [optional] |
|
13
|
-
| **country** | **String** |
|
14
|
-
| **exp_month** | **String** |
|
15
|
-
| **exp_year** | **String** |
|
13
|
+
| **country** | **String** | Country of the card | [optional] |
|
14
|
+
| **exp_month** | **String** | Expiration month of the card | [optional] |
|
15
|
+
| **exp_year** | **String** | Expiration year of the card | [optional] |
|
16
16
|
| **fraud_indicators** | **Array<Object>** | | [optional] |
|
17
|
-
| **issuer** | **String** |
|
18
|
-
| **last4** | **String** |
|
19
|
-
| **name** | **String** |
|
17
|
+
| **issuer** | **String** | Issuer of the card | [optional] |
|
18
|
+
| **last4** | **String** | Last 4 digits of the card | [optional] |
|
19
|
+
| **name** | **String** | Name of the cardholder | [optional] |
|
20
|
+
| **customer_ip_address** | **String** | Optional field used to capture the customer's IP address for fraud prevention and security monitoring purposes | [optional] |
|
20
21
|
|
21
22
|
## Example
|
22
23
|
|
@@ -32,11 +33,12 @@ instance = Conekta::PaymentMethodCard.new(
|
|
32
33
|
contract_id: S781317595,
|
33
34
|
country: MX,
|
34
35
|
exp_month: 02,
|
35
|
-
exp_year:
|
36
|
+
exp_year: 2026,
|
36
37
|
fraud_indicators: null,
|
37
38
|
issuer: BANAMEX,
|
38
39
|
last4: 4242,
|
39
|
-
name: Fulanito Perez
|
40
|
+
name: Fulanito Perez,
|
41
|
+
customer_ip_address: 0.0.0.0
|
40
42
|
)
|
41
43
|
```
|
42
44
|
|
@@ -5,7 +5,12 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **type** | **String** | Type of payment method | |
|
8
|
-
| **
|
8
|
+
| **cvc** | **String** | Card security code | |
|
9
|
+
| **exp_month** | **String** | Card expiration month | |
|
10
|
+
| **exp_year** | **String** | Card expiration year | |
|
11
|
+
| **name** | **String** | Cardholder name | |
|
12
|
+
| **number** | **String** | Card number | |
|
13
|
+
| **customer_ip_address** | **String** | Optional field used to capture the customer's IP address for fraud prevention and security monitoring purposes | [optional] |
|
9
14
|
|
10
15
|
## Example
|
11
16
|
|
@@ -14,7 +19,12 @@ require 'conekta'
|
|
14
19
|
|
15
20
|
instance = Conekta::PaymentMethodCardRequest.new(
|
16
21
|
type: card | cash | spei,
|
17
|
-
|
22
|
+
cvc: 198,
|
23
|
+
exp_month: 12,
|
24
|
+
exp_year: 2025,
|
25
|
+
name: John Doe,
|
26
|
+
number: 4242424242424242,
|
27
|
+
customer_ip_address: 0.0.0.0
|
18
28
|
)
|
19
29
|
```
|
20
30
|
|
data/docs/PaymentMethodCash.md
CHANGED
@@ -14,6 +14,7 @@
|
|
14
14
|
| **service_name** | **String** | | [optional] |
|
15
15
|
| **store** | **String** | | [optional] |
|
16
16
|
| **store_name** | **String** | | [optional] |
|
17
|
+
| **customer_ip_address** | **String** | | [optional] |
|
17
18
|
|
18
19
|
## Example
|
19
20
|
|
@@ -30,7 +31,8 @@ instance = Conekta::PaymentMethodCash.new(
|
|
30
31
|
expires_at: 0,
|
31
32
|
service_name: OxxoPay,
|
32
33
|
store: 10MON50EDI,
|
33
|
-
store_name: OXXO
|
34
|
+
store_name: OXXO,
|
35
|
+
customer_ip_address: 0.0.0.0
|
34
36
|
)
|
35
37
|
```
|
36
38
|
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# Conekta::PaymentMethodGeneralRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **expires_at** | **Integer** | Method expiration date as unix timestamp | [optional] |
|
8
|
+
| **monthly_installments** | **Integer** | How many months without interest to apply, it can be 3, 6, 9, 12 or 18 | [optional] |
|
9
|
+
| **type** | **String** | Type of payment method | |
|
10
|
+
| **token_id** | **String** | | [optional] |
|
11
|
+
| **payment_source_id** | **String** | | [optional] |
|
12
|
+
| **cvc** | **String** | Optional, It is a value that allows identifying the security code of the card. Only for PCI merchants | [optional] |
|
13
|
+
| **contract_id** | **String** | Optional id sent to indicate the bank contract for recurrent card charges. | [optional] |
|
14
|
+
| **customer_ip_address** | **String** | Optional field used to capture the customer's IP address for fraud prevention and security monitoring purposes | [optional] |
|
15
|
+
|
16
|
+
## Example
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
require 'conekta'
|
20
|
+
|
21
|
+
instance = Conekta::PaymentMethodGeneralRequest.new(
|
22
|
+
expires_at: 1677196303,
|
23
|
+
monthly_installments: null,
|
24
|
+
type: card,
|
25
|
+
token_id: tok_2897348234,
|
26
|
+
payment_source_id: src_2tLkkyfMPh6v7pFry,
|
27
|
+
cvc: 123,
|
28
|
+
contract_id: S781317595,
|
29
|
+
customer_ip_address: 0.0.0.0
|
30
|
+
)
|
31
|
+
```
|
32
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# Conekta::PaymentMethodTokenRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **type** | **String** | Type of payment method | |
|
8
|
+
| **token_id** | **String** | Token id that will be used to create a \"card\" type payment method. See the (subscriptions)[https://developers.conekta.com/v2.1.0/reference/createsubscription] tutorial for more information on how to tokenize cards. | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'conekta'
|
14
|
+
|
15
|
+
instance = Conekta::PaymentMethodTokenRequest.new(
|
16
|
+
type: card | cash | spei,
|
17
|
+
token_id: test_32hj4g234as
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
data/docs/PaymentMethodsApi.md
CHANGED
@@ -31,7 +31,7 @@ end
|
|
31
31
|
|
32
32
|
api_instance = Conekta::PaymentMethodsApi.new
|
33
33
|
id = '6307a60c41de27127515a575' # String | Identifier of the resource
|
34
|
-
create_customer_payment_methods_request = Conekta::
|
34
|
+
create_customer_payment_methods_request = Conekta::PaymentMethodCashRequest.new({type: 'card | cash | spei'}) # CreateCustomerPaymentMethodsRequest | requested field for customer payment methods
|
35
35
|
opts = {
|
36
36
|
accept_language: 'es', # String | Use for knowing which language to use
|
37
37
|
x_child_company_id: '6441b6376b60c3a638da80af' # String | In the case of a holding company, the company id of the child company to which will process the request.
|
@@ -7,6 +7,7 @@
|
|
7
7
|
| **billing_cycle_start** | **Integer** | | [optional] |
|
8
8
|
| **billing_cycle_end** | **Integer** | | [optional] |
|
9
9
|
| **canceled_at** | **Integer** | | [optional] |
|
10
|
+
| **canceled_reason** | **String** | Reason for cancellation. This field appears when the subscription status is 'canceled'. | [optional] |
|
10
11
|
| **card_id** | **String** | | [optional] |
|
11
12
|
| **charge_id** | **String** | | [optional] |
|
12
13
|
| **created_at** | **Integer** | | [optional] |
|
@@ -31,6 +32,7 @@ instance = Conekta::SubscriptionResponse.new(
|
|
31
32
|
billing_cycle_start: 1677626827,
|
32
33
|
billing_cycle_end: 1677626827,
|
33
34
|
canceled_at: 1678258162,
|
35
|
+
canceled_reason: user_cancelation,
|
34
36
|
card_id: src_2tKcHxhTz7xU5SymL,
|
35
37
|
charge_id: 2tKcHxhTz7xU5SymL,
|
36
38
|
created_at: 1677626837,
|