conekta 7.0.2 → 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 +8 -5
- 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/CompaniesApi.md +2 -2
- data/docs/CompanyDocumentRequest.md +1 -1
- 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/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/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/one_time_charge_bnpl.rb +3 -0
- data/examples/one_time_charge_pbb.rb +47 -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/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_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/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 +3 -0
- metadata +9 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e84eafd1e9a02d5e7ec30cd849df564ececc8ace43cedbe86f12d80c424477f4
|
4
|
+
data.tar.gz: 6f1979feed7a7ef0b201013f43406f5a39e3c028a957b2c569acfc7edbdb564b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae30a9e01f9f26f53b11f11582f318913364799fec37da84191d4307879cdf14bb2b07505461c8facc0eb0d7fae7a9438fe95d66fccec8aa59e153bb22f717f4
|
7
|
+
data.tar.gz: 2ff847a2d60589ceb578c5fa7b0e0e42cb6d6f90342da80231f0a3e09bd706a4434885a224cffbb866d877be7198e35110f89e4943e02a6b67e5a999c784215b
|
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.2.0
|
10
|
-
- Package version: 7.0.
|
11
|
-
- Build date: 2025-08-
|
10
|
+
- Package version: 7.0.3
|
11
|
+
- Build date: 2025-08-21T18:24:16.413003459Z[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-7.0.
|
29
|
+
gem install ./conekta-7.0.3.gem
|
30
30
|
```
|
31
31
|
|
32
|
-
(for development, run `gem install --dev ./conekta-7.0.
|
32
|
+
(for development, run `gem install --dev ./conekta-7.0.3.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', '~> 7.0.
|
38
|
+
gem 'conekta', '~> 7.0.3'
|
39
39
|
|
40
40
|
### Install from Git
|
41
41
|
|
@@ -331,10 +331,13 @@ Class | Method | HTTP request | Description
|
|
331
331
|
- [Conekta::PaymentMethodCardRequest](docs/PaymentMethodCardRequest.md)
|
332
332
|
- [Conekta::PaymentMethodCardResponse](docs/PaymentMethodCardResponse.md)
|
333
333
|
- [Conekta::PaymentMethodCash](docs/PaymentMethodCash.md)
|
334
|
+
- [Conekta::PaymentMethodCashRecurrentResponse](docs/PaymentMethodCashRecurrentResponse.md)
|
334
335
|
- [Conekta::PaymentMethodCashRequest](docs/PaymentMethodCashRequest.md)
|
335
336
|
- [Conekta::PaymentMethodCashResponse](docs/PaymentMethodCashResponse.md)
|
336
337
|
- [Conekta::PaymentMethodCashResponseAllOfAgreements](docs/PaymentMethodCashResponseAllOfAgreements.md)
|
337
338
|
- [Conekta::PaymentMethodGeneralRequest](docs/PaymentMethodGeneralRequest.md)
|
339
|
+
- [Conekta::PaymentMethodPbbPayment](docs/PaymentMethodPbbPayment.md)
|
340
|
+
- [Conekta::PaymentMethodPbbRequest](docs/PaymentMethodPbbRequest.md)
|
338
341
|
- [Conekta::PaymentMethodResponse](docs/PaymentMethodResponse.md)
|
339
342
|
- [Conekta::PaymentMethodSpeiRecurrent](docs/PaymentMethodSpeiRecurrent.md)
|
340
343
|
- [Conekta::PaymentMethodSpeiRequest](docs/PaymentMethodSpeiRequest.md)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
7.0.
|
1
|
+
7.0.3
|
data/config-ruby.json
CHANGED
@@ -17,7 +17,8 @@ Conekta::ChargeOrderResponsePaymentMethod.openapi_one_of
|
|
17
17
|
# :'PaymentMethodBankTransfer',
|
18
18
|
# :'PaymentMethodBnplPayment',
|
19
19
|
# :'PaymentMethodCard',
|
20
|
-
# :'PaymentMethodCash'
|
20
|
+
# :'PaymentMethodCash',
|
21
|
+
# :'PaymentMethodPbbPayment'
|
21
22
|
# ]
|
22
23
|
```
|
23
24
|
|
@@ -49,7 +50,8 @@ Conekta::ChargeOrderResponsePaymentMethod.openapi_discriminator_mapping
|
|
49
50
|
# :'bank_transfer_payment' => :'PaymentMethodBankTransfer',
|
50
51
|
# :'bnpl_payment' => :'PaymentMethodBnplPayment',
|
51
52
|
# :'card_payment' => :'PaymentMethodCard',
|
52
|
-
# :'cash_payment' => :'PaymentMethodCash'
|
53
|
+
# :'cash_payment' => :'PaymentMethodCash',
|
54
|
+
# :'pbb_payment' => :'PaymentMethodPbbPayment'
|
53
55
|
# }
|
54
56
|
```
|
55
57
|
|
@@ -81,5 +83,6 @@ Conekta::ChargeOrderResponsePaymentMethod.build(data_that_doesnt_match)
|
|
81
83
|
- `PaymentMethodBnplPayment`
|
82
84
|
- `PaymentMethodCard`
|
83
85
|
- `PaymentMethodCash`
|
86
|
+
- `PaymentMethodPbbPayment`
|
84
87
|
- `nil` (if no type matches)
|
85
88
|
|
@@ -16,7 +16,8 @@ Conekta::ChargeRequestPaymentMethod.openapi_one_of
|
|
16
16
|
# [
|
17
17
|
# :'PaymentMethodBnplRequest',
|
18
18
|
# :'PaymentMethodCardRequest',
|
19
|
-
# :'PaymentMethodGeneralRequest'
|
19
|
+
# :'PaymentMethodGeneralRequest',
|
20
|
+
# :'PaymentMethodPbbRequest'
|
20
21
|
# ]
|
21
22
|
```
|
22
23
|
|
@@ -47,5 +48,6 @@ Conekta::ChargeRequestPaymentMethod.build(data_that_doesnt_match)
|
|
47
48
|
- `PaymentMethodBnplRequest`
|
48
49
|
- `PaymentMethodCardRequest`
|
49
50
|
- `PaymentMethodGeneralRequest`
|
51
|
+
- `PaymentMethodPbbRequest`
|
50
52
|
- `nil` (if no type matches)
|
51
53
|
|
@@ -17,7 +17,8 @@ Conekta::ChargeResponsePaymentMethod.openapi_one_of
|
|
17
17
|
# :'PaymentMethodBankTransfer',
|
18
18
|
# :'PaymentMethodBnplPayment',
|
19
19
|
# :'PaymentMethodCard',
|
20
|
-
# :'PaymentMethodCash'
|
20
|
+
# :'PaymentMethodCash',
|
21
|
+
# :'PaymentMethodPbbPayment'
|
21
22
|
# ]
|
22
23
|
```
|
23
24
|
|
@@ -49,7 +50,8 @@ Conekta::ChargeResponsePaymentMethod.openapi_discriminator_mapping
|
|
49
50
|
# :'bank_transfer_payment' => :'PaymentMethodBankTransfer',
|
50
51
|
# :'bnpl_payment' => :'PaymentMethodBnplPayment',
|
51
52
|
# :'card_payment' => :'PaymentMethodCard',
|
52
|
-
# :'cash_payment' => :'PaymentMethodCash'
|
53
|
+
# :'cash_payment' => :'PaymentMethodCash',
|
54
|
+
# :'pay_by_bank_payment' => :'PaymentMethodPbbPayment'
|
53
55
|
# }
|
54
56
|
```
|
55
57
|
|
@@ -81,5 +83,6 @@ Conekta::ChargeResponsePaymentMethod.build(data_that_doesnt_match)
|
|
81
83
|
- `PaymentMethodBnplPayment`
|
82
84
|
- `PaymentMethodCard`
|
83
85
|
- `PaymentMethodCash`
|
86
|
+
- `PaymentMethodPbbPayment`
|
84
87
|
- `nil` (if no type matches)
|
85
88
|
|
data/docs/CompaniesApi.md
CHANGED
@@ -325,7 +325,7 @@ end
|
|
325
325
|
|
326
326
|
api_instance = Conekta::CompaniesApi.new
|
327
327
|
company_id = '6827206b1ec60400015eb09a' # String | The unique identifier of the company.
|
328
|
-
company_document_request = Conekta::CompanyDocumentRequest.new({file_classification: 'id_legal_representative', content_type: 'application/pdf', file_name: 'example_document.pdf', file_data: '[B@
|
328
|
+
company_document_request = Conekta::CompanyDocumentRequest.new({file_classification: 'id_legal_representative', content_type: 'application/pdf', file_name: 'example_document.pdf', file_data: '[B@53a49745'}) # CompanyDocumentRequest | Document information to update.
|
329
329
|
opts = {
|
330
330
|
accept_language: 'es' # String | Use for knowing which language to use
|
331
331
|
}
|
@@ -400,7 +400,7 @@ end
|
|
400
400
|
|
401
401
|
api_instance = Conekta::CompaniesApi.new
|
402
402
|
company_id = '6827206b1ec60400015eb09a' # String | The unique identifier of the company.
|
403
|
-
company_document_request = Conekta::CompanyDocumentRequest.new({file_classification: 'id_legal_representative', content_type: 'application/pdf', file_name: 'example_document.pdf', file_data: '[B@
|
403
|
+
company_document_request = Conekta::CompanyDocumentRequest.new({file_classification: 'id_legal_representative', content_type: 'application/pdf', file_name: 'example_document.pdf', file_data: '[B@53a49745'}) # CompanyDocumentRequest | Document information to upload.
|
404
404
|
opts = {
|
405
405
|
accept_language: 'es' # String | Use for knowing which language to use
|
406
406
|
}
|
@@ -15,6 +15,7 @@ Conekta::CreateCustomerPaymentMethodsResponse.openapi_one_of
|
|
15
15
|
# =>
|
16
16
|
# [
|
17
17
|
# :'PaymentMethodCardResponse',
|
18
|
+
# :'PaymentMethodCashRecurrentResponse',
|
18
19
|
# :'PaymentMethodCashResponse',
|
19
20
|
# :'PaymentMethodSpeiRecurrent'
|
20
21
|
# ]
|
@@ -47,8 +48,7 @@ Conekta::CreateCustomerPaymentMethodsResponse.openapi_discriminator_mapping
|
|
47
48
|
# {
|
48
49
|
# :'card' => :'PaymentMethodCardResponse',
|
49
50
|
# :'cash' => :'PaymentMethodCashResponse',
|
50
|
-
# :'cash_recurrent' => :'
|
51
|
-
# :'oxxo_recurrent' => :'PaymentMethodCashResponse',
|
51
|
+
# :'cash_recurrent' => :'PaymentMethodCashRecurrentResponse',
|
52
52
|
# :'spei_recurrent' => :'PaymentMethodSpeiRecurrent'
|
53
53
|
# }
|
54
54
|
```
|
@@ -78,6 +78,7 @@ Conekta::CreateCustomerPaymentMethodsResponse.build(data_that_doesnt_match)
|
|
78
78
|
#### Return type
|
79
79
|
|
80
80
|
- `PaymentMethodCardResponse`
|
81
|
+
- `PaymentMethodCashRecurrentResponse`
|
81
82
|
- `PaymentMethodCashResponse`
|
82
83
|
- `PaymentMethodSpeiRecurrent`
|
83
84
|
- `nil` (if no type matches)
|
@@ -15,6 +15,7 @@ Conekta::CustomerPaymentMethodsData.openapi_one_of
|
|
15
15
|
# =>
|
16
16
|
# [
|
17
17
|
# :'PaymentMethodCardResponse',
|
18
|
+
# :'PaymentMethodCashRecurrentResponse',
|
18
19
|
# :'PaymentMethodCashResponse',
|
19
20
|
# :'PaymentMethodSpeiRecurrent'
|
20
21
|
# ]
|
@@ -47,8 +48,7 @@ Conekta::CustomerPaymentMethodsData.openapi_discriminator_mapping
|
|
47
48
|
# {
|
48
49
|
# :'card' => :'PaymentMethodCardResponse',
|
49
50
|
# :'cash' => :'PaymentMethodCashResponse',
|
50
|
-
# :'cash_recurrent' => :'
|
51
|
-
# :'oxxo_recurrent' => :'PaymentMethodCashResponse',
|
51
|
+
# :'cash_recurrent' => :'PaymentMethodCashRecurrentResponse',
|
52
52
|
# :'spei_recurrent' => :'PaymentMethodSpeiRecurrent'
|
53
53
|
# }
|
54
54
|
```
|
@@ -78,6 +78,7 @@ Conekta::CustomerPaymentMethodsData.build(data_that_doesnt_match)
|
|
78
78
|
#### Return type
|
79
79
|
|
80
80
|
- `PaymentMethodCardResponse`
|
81
|
+
- `PaymentMethodCashRecurrentResponse`
|
81
82
|
- `PaymentMethodCashResponse`
|
82
83
|
- `PaymentMethodSpeiRecurrent`
|
83
84
|
- `nil` (if no type matches)
|
@@ -22,7 +22,7 @@ instance = Conekta::EventsResendResponse.new(
|
|
22
22
|
last_attempted_at: 1684265970,
|
23
23
|
last_http_response_status: 405,
|
24
24
|
response_data: {},
|
25
|
-
url: https://username:password@mockoon.
|
25
|
+
url: https://username:password@mockoon.conekta.io/payments-api/cash/merchant_approval
|
26
26
|
)
|
27
27
|
```
|
28
28
|
|
@@ -15,6 +15,7 @@ Conekta::GetCustomerPaymentMethodDataResponse.openapi_one_of
|
|
15
15
|
# =>
|
16
16
|
# [
|
17
17
|
# :'PaymentMethodCardResponse',
|
18
|
+
# :'PaymentMethodCashRecurrentResponse',
|
18
19
|
# :'PaymentMethodCashResponse',
|
19
20
|
# :'PaymentMethodSpeiRecurrent'
|
20
21
|
# ]
|
@@ -47,8 +48,7 @@ Conekta::GetCustomerPaymentMethodDataResponse.openapi_discriminator_mapping
|
|
47
48
|
# {
|
48
49
|
# :'card' => :'PaymentMethodCardResponse',
|
49
50
|
# :'cash' => :'PaymentMethodCashResponse',
|
50
|
-
# :'cash_recurrent' => :'
|
51
|
-
# :'oxxo_recurrent' => :'PaymentMethodCashResponse',
|
51
|
+
# :'cash_recurrent' => :'PaymentMethodCashRecurrentResponse',
|
52
52
|
# :'spei_recurrent' => :'PaymentMethodSpeiRecurrent'
|
53
53
|
# }
|
54
54
|
```
|
@@ -78,6 +78,7 @@ Conekta::GetCustomerPaymentMethodDataResponse.build(data_that_doesnt_match)
|
|
78
78
|
#### Return type
|
79
79
|
|
80
80
|
- `PaymentMethodCardResponse`
|
81
|
+
- `PaymentMethodCashRecurrentResponse`
|
81
82
|
- `PaymentMethodCashResponse`
|
82
83
|
- `PaymentMethodSpeiRecurrent`
|
83
84
|
- `nil` (if no type matches)
|
@@ -66,7 +66,7 @@ instance = Conekta::OrderResponseCheckout.new(
|
|
66
66
|
starts_at: 1676354400,
|
67
67
|
status: Issued,
|
68
68
|
type: HostedPayment,
|
69
|
-
url: https://pay.
|
69
|
+
url: https://pay.conekta.io/checkout/6fca054a85194c43971ecea35cc519bb
|
70
70
|
)
|
71
71
|
```
|
72
72
|
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# Conekta::PaymentMethodCashRecurrentResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **type** | **String** | | |
|
8
|
+
| **id** | **String** | | |
|
9
|
+
| **object** | **String** | | |
|
10
|
+
| **created_at** | **Integer** | | |
|
11
|
+
| **parent_id** | **String** | | [optional] |
|
12
|
+
| **agreements** | [**Array<PaymentMethodCashResponseAllOfAgreements>**](PaymentMethodCashResponseAllOfAgreements.md) | | [optional] |
|
13
|
+
| **reference** | **String** | | [optional] |
|
14
|
+
| **barcode** | **String** | | [optional] |
|
15
|
+
| **barcode_url** | **String** | URL to the barcode image, reference is the same as barcode | [optional] |
|
16
|
+
| **expires_at** | **Integer** | | [optional] |
|
17
|
+
| **provider** | **String** | | [optional] |
|
18
|
+
|
19
|
+
## Example
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
require 'conekta'
|
23
|
+
|
24
|
+
instance = Conekta::PaymentMethodCashRecurrentResponse.new(
|
25
|
+
type: null,
|
26
|
+
id: src_2s8K1B3PBKDontpi9,
|
27
|
+
object: payment_source,
|
28
|
+
created_at: 1675715413,
|
29
|
+
parent_id: cus_2s8K1B3PBKDontpi8,
|
30
|
+
agreements: null,
|
31
|
+
reference: 93000262276908,
|
32
|
+
barcode: 93000262276908,
|
33
|
+
barcode_url: https://barcodes.conekta.com/644ebf80f2243197aad6cd8810375b905b613dbe.png,
|
34
|
+
expires_at: 1742483424,
|
35
|
+
provider: Cash
|
36
|
+
)
|
37
|
+
```
|
38
|
+
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# Conekta::PaymentMethodPbbPayment
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **type** | **String** | | [optional] |
|
8
|
+
| **object** | **String** | | |
|
9
|
+
| **deep_link** | **String** | Deep link for the payment, use for mobile apps/flows | |
|
10
|
+
| **expires_at** | **Integer** | Expiration date of the charge | |
|
11
|
+
| **product_type** | **String** | Product type of the charge | |
|
12
|
+
| **redirect_url** | **String** | URL to redirect the customer to complete the payment | |
|
13
|
+
| **reference** | **String** | Reference for the payment | |
|
14
|
+
|
15
|
+
## Example
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'conekta'
|
19
|
+
|
20
|
+
instance = Conekta::PaymentMethodPbbPayment.new(
|
21
|
+
type: null,
|
22
|
+
object: payment_source,
|
23
|
+
deep_link: https://mgm.bbva.mx/WA3b/pbb?AGREEMENT=002484374&AMOUNT=1&CONCEPT=PagoDirecto&CURRENCY=MXN&REFERENCE=22277523174328893295,
|
24
|
+
expires_at: 1683053729,
|
25
|
+
product_type: null,
|
26
|
+
redirect_url: https://example.com/redirect,
|
27
|
+
reference: 22277523174328893295
|
28
|
+
)
|
29
|
+
```
|
30
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Conekta::PaymentMethodPbbRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **type** | **String** | Type of the payment method | |
|
8
|
+
| **expires_at** | **Integer** | Expiration date of the payment method, in Unix timestamp format | [optional] |
|
9
|
+
| **product_type** | **String** | Product type of the payment method, use for the payment method to know the product type | |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'conekta'
|
15
|
+
|
16
|
+
instance = Conekta::PaymentMethodPbbRequest.new(
|
17
|
+
type: pay_by_bank,
|
18
|
+
expires_at: 1680397724,
|
19
|
+
product_type: bbva_pay_by_bank
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
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::PaymentMethodCashRequest.new({type: 'card | cash | spei | bnpl'}) # CreateCustomerPaymentMethodsRequest | requested field for customer payment methods
|
34
|
+
create_customer_payment_methods_request = Conekta::PaymentMethodCashRequest.new({type: 'card | cash | spei | bnpl | pay_by_bank'}) # 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.
|
@@ -15,6 +15,7 @@ Conekta::UpdateCustomerPaymentMethodsResponse.openapi_one_of
|
|
15
15
|
# =>
|
16
16
|
# [
|
17
17
|
# :'PaymentMethodCardResponse',
|
18
|
+
# :'PaymentMethodCashRecurrentResponse',
|
18
19
|
# :'PaymentMethodCashResponse',
|
19
20
|
# :'PaymentMethodSpeiRecurrent'
|
20
21
|
# ]
|
@@ -47,8 +48,7 @@ Conekta::UpdateCustomerPaymentMethodsResponse.openapi_discriminator_mapping
|
|
47
48
|
# {
|
48
49
|
# :'card' => :'PaymentMethodCardResponse',
|
49
50
|
# :'cash' => :'PaymentMethodCashResponse',
|
50
|
-
# :'cash_recurrent' => :'
|
51
|
-
# :'oxxo_recurrent' => :'PaymentMethodCashResponse',
|
51
|
+
# :'cash_recurrent' => :'PaymentMethodCashRecurrentResponse',
|
52
52
|
# :'spei_recurrent' => :'PaymentMethodSpeiRecurrent'
|
53
53
|
# }
|
54
54
|
```
|
@@ -78,6 +78,7 @@ Conekta::UpdateCustomerPaymentMethodsResponse.build(data_that_doesnt_match)
|
|
78
78
|
#### Return type
|
79
79
|
|
80
80
|
- `PaymentMethodCardResponse`
|
81
|
+
- `PaymentMethodCashRecurrentResponse`
|
81
82
|
- `PaymentMethodCashResponse`
|
82
83
|
- `PaymentMethodSpeiRecurrent`
|
83
84
|
- `nil` (if no type matches)
|
@@ -4,7 +4,8 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **name** | **String** |
|
7
|
+
| **name** | **String** | The name of the payment method holder | [optional] |
|
8
|
+
| **expires_at** | **Integer** | The expiration date of the payment method in Unix timestamp format | [optional] |
|
8
9
|
|
9
10
|
## Example
|
10
11
|
|
@@ -12,7 +13,8 @@
|
|
12
13
|
require 'conekta'
|
13
14
|
|
14
15
|
instance = Conekta::UpdatePaymentMethods.new(
|
15
|
-
name:
|
16
|
+
name: Payment recurrent,
|
17
|
+
expires_at: 1760457350
|
16
18
|
)
|
17
19
|
```
|
18
20
|
|
data/docs/WebhookLog.md
CHANGED
@@ -24,7 +24,7 @@ instance = Conekta::WebhookLog.new(
|
|
24
24
|
last_http_response_status: 200,
|
25
25
|
object: webhook_log,
|
26
26
|
response_data: {"amount":3000,"payable":true},
|
27
|
-
url: https://username:password@mockoon.
|
27
|
+
url: https://username:password@mockoon.conekta.io/payments-api/cash/merchant_approval
|
28
28
|
)
|
29
29
|
```
|
30
30
|
|
data/docs/WebhookResponse.md
CHANGED
@@ -26,7 +26,7 @@ instance = Conekta::WebhookResponse.new(
|
|
26
26
|
object: event,
|
27
27
|
status: listening,
|
28
28
|
subscribed_events: ["charge.created","charge.paid","charge.under_fraud_review","charge.fraudulent","charge.refunded","charge.preauthorized","charge.declined","charge.canceled","charge.reversed","charge.pending_confirmation"],
|
29
|
-
url: https://username:password@mockoon.
|
29
|
+
url: https://username:password@mockoon.conekta.io/payments-api/cash/merchant_approval
|
30
30
|
)
|
31
31
|
```
|
32
32
|
|
@@ -40,6 +40,9 @@ class OneTimeChargeBnpl
|
|
40
40
|
begin
|
41
41
|
result = api_instance.create_order(order_request, opts)
|
42
42
|
p result
|
43
|
+
p result.id
|
44
|
+
p result.charges.data[0].payment_method.bnpl_payment.redirect_url
|
45
|
+
p result.charges.data[0].payment_method.bnpl_payment.type
|
43
46
|
rescue Conekta::ApiError => e
|
44
47
|
puts "Exception when calling create order #{e}"
|
45
48
|
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# Load the gem
|
2
|
+
require 'conekta'
|
3
|
+
class OneTimeChargePbb
|
4
|
+
Conekta.configure do |config|
|
5
|
+
config.access_token = ENV['CONEKTA_API_KEY']
|
6
|
+
end
|
7
|
+
|
8
|
+
api_instance = Conekta::OrdersApi.new
|
9
|
+
order_request = Conekta::OrderRequest.new(
|
10
|
+
:currency => 'MXN',
|
11
|
+
:line_items => [
|
12
|
+
{
|
13
|
+
:name => 'Box of Cohiba S1s',
|
14
|
+
:unit_price => 35000,
|
15
|
+
:quantity => 1
|
16
|
+
}
|
17
|
+
],
|
18
|
+
:customer_info => {
|
19
|
+
:name => 'Mario Hernandez',
|
20
|
+
:email => 'mm@gmail.com',
|
21
|
+
:phone => '5555555555'
|
22
|
+
},
|
23
|
+
:charges => [
|
24
|
+
{
|
25
|
+
:payment_method => Conekta::PaymentMethodPbbRequest.new(
|
26
|
+
:expires_at => Time.now.advance(days: 30).to_i,
|
27
|
+
:product_type => 'bbva_pay_by_bank',
|
28
|
+
:type => 'pay_by_bank',
|
29
|
+
)
|
30
|
+
}
|
31
|
+
]
|
32
|
+
)
|
33
|
+
opts = {
|
34
|
+
accept_language: 'es' # String | Use for knowing which language to use
|
35
|
+
}
|
36
|
+
|
37
|
+
begin
|
38
|
+
result = api_instance.create_order(order_request, opts)
|
39
|
+
p result
|
40
|
+
p result.id
|
41
|
+
p result.charges.data[0].payment_method.pay_by_bank_payment.redirect_url
|
42
|
+
p result.charges.data[0].payment_method.pay_by_bank_payment.deep_link
|
43
|
+
p result.charges.data[0].payment_method.pay_by_bank_payment.type
|
44
|
+
rescue Conekta::ApiError => e
|
45
|
+
puts "Exception when calling create order #{e}"
|
46
|
+
end
|
47
|
+
end
|
@@ -22,7 +22,8 @@ module Conekta
|
|
22
22
|
:'PaymentMethodBankTransfer',
|
23
23
|
:'PaymentMethodBnplPayment',
|
24
24
|
:'PaymentMethodCard',
|
25
|
-
:'PaymentMethodCash'
|
25
|
+
:'PaymentMethodCash',
|
26
|
+
:'PaymentMethodPbbPayment'
|
26
27
|
]
|
27
28
|
end
|
28
29
|
|
@@ -37,7 +38,8 @@ module Conekta
|
|
37
38
|
:'bank_transfer_payment' => :'PaymentMethodBankTransfer',
|
38
39
|
:'bnpl_payment' => :'PaymentMethodBnplPayment',
|
39
40
|
:'card_payment' => :'PaymentMethodCard',
|
40
|
-
:'cash_payment' => :'PaymentMethodCash'
|
41
|
+
:'cash_payment' => :'PaymentMethodCash',
|
42
|
+
:'pbb_payment' => :'PaymentMethodPbbPayment'
|
41
43
|
}
|
42
44
|
end
|
43
45
|
|
@@ -22,7 +22,8 @@ module Conekta
|
|
22
22
|
:'PaymentMethodBankTransfer',
|
23
23
|
:'PaymentMethodBnplPayment',
|
24
24
|
:'PaymentMethodCard',
|
25
|
-
:'PaymentMethodCash'
|
25
|
+
:'PaymentMethodCash',
|
26
|
+
:'PaymentMethodPbbPayment'
|
26
27
|
]
|
27
28
|
end
|
28
29
|
|
@@ -37,7 +38,8 @@ module Conekta
|
|
37
38
|
:'bank_transfer_payment' => :'PaymentMethodBankTransfer',
|
38
39
|
:'bnpl_payment' => :'PaymentMethodBnplPayment',
|
39
40
|
:'card_payment' => :'PaymentMethodCard',
|
40
|
-
:'cash_payment' => :'PaymentMethodCash'
|
41
|
+
:'cash_payment' => :'PaymentMethodCash',
|
42
|
+
:'pay_by_bank_payment' => :'PaymentMethodPbbPayment'
|
41
43
|
}
|
42
44
|
end
|
43
45
|
|
@@ -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
|
@@ -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
|