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.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -5
  3. data/VERSION +1 -1
  4. data/config-ruby.json +1 -1
  5. data/docs/ChargeOrderResponsePaymentMethod.md +5 -2
  6. data/docs/ChargeRequestPaymentMethod.md +3 -1
  7. data/docs/ChargeResponsePaymentMethod.md +5 -2
  8. data/docs/CompaniesApi.md +2 -2
  9. data/docs/CompanyDocumentRequest.md +1 -1
  10. data/docs/CreateCustomerPaymentMethodsResponse.md +3 -2
  11. data/docs/CustomerPaymentMethodRequest.md +1 -1
  12. data/docs/CustomerPaymentMethodsData.md +3 -2
  13. data/docs/EventsResendResponse.md +1 -1
  14. data/docs/GetCustomerPaymentMethodDataResponse.md +3 -2
  15. data/docs/OrderResponseCheckout.md +1 -1
  16. data/docs/PaymentMethodCardRequest.md +1 -1
  17. data/docs/PaymentMethodCashRecurrentResponse.md +38 -0
  18. data/docs/PaymentMethodCashRequest.md +1 -1
  19. data/docs/PaymentMethodPbbPayment.md +30 -0
  20. data/docs/PaymentMethodPbbRequest.md +22 -0
  21. data/docs/PaymentMethodSpeiRequest.md +1 -1
  22. data/docs/PaymentMethodTokenRequest.md +1 -1
  23. data/docs/PaymentMethodsApi.md +1 -1
  24. data/docs/UpdateCustomerPaymentMethodsResponse.md +3 -2
  25. data/docs/UpdatePaymentMethods.md +4 -2
  26. data/docs/WebhookLog.md +1 -1
  27. data/docs/WebhookResponse.md +1 -1
  28. data/examples/one_time_charge_bnpl.rb +3 -0
  29. data/examples/one_time_charge_pbb.rb +47 -0
  30. data/lib/conekta/models/charge_order_response_payment_method.rb +4 -2
  31. data/lib/conekta/models/charge_request_payment_method.rb +2 -1
  32. data/lib/conekta/models/charge_response_payment_method.rb +4 -2
  33. data/lib/conekta/models/create_customer_payment_methods_response.rb +2 -2
  34. data/lib/conekta/models/customer_payment_methods_data.rb +2 -2
  35. data/lib/conekta/models/get_customer_payment_method_data_response.rb +2 -2
  36. data/lib/conekta/models/payment_method_cash_recurrent_response.rb +343 -0
  37. data/lib/conekta/models/payment_method_pbb_payment.rb +341 -0
  38. data/lib/conekta/models/payment_method_pbb_request.rb +309 -0
  39. data/lib/conekta/models/update_customer_payment_methods_response.rb +2 -2
  40. data/lib/conekta/models/update_payment_methods.rb +34 -4
  41. data/lib/conekta/version.rb +1 -1
  42. data/lib/conekta.rb +3 -0
  43. metadata +9 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ff083736647e4a2a1bbddcf3e5d57e81403f7ee9a82f9dacb294b155bd5396a2
4
- data.tar.gz: 5a03cd892d7372cba452deb3528016e9690d73fa94e6d9c5ab0bbfea109e1147
3
+ metadata.gz: e84eafd1e9a02d5e7ec30cd849df564ececc8ace43cedbe86f12d80c424477f4
4
+ data.tar.gz: 6f1979feed7a7ef0b201013f43406f5a39e3c028a957b2c569acfc7edbdb564b
5
5
  SHA512:
6
- metadata.gz: 54ece98b573205a219b1c02457464c5ec77a40d1586a98822e7f45fc2a4358906c7cd4e63e01c5cfdac5fb9f1d6a2069dae32590eb3c22a1536a2bf5b8c0b2e7
7
- data.tar.gz: 94424e23797677a0f0751c7b53aafede9ea3c7c2e6c63311b0bed9471cd758faf9949bb7992a4501a3056d93f94a8c13e8f5931761de5d516660e9320f1370f1
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.2
11
- - Build date: 2025-08-11T14:08:22.258333756Z[Etc/UTC]
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.2.gem
29
+ gem install ./conekta-7.0.3.gem
30
30
  ```
31
31
 
32
- (for development, run `gem install --dev ./conekta-7.0.2.gem` to install the development dependencies)
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.2'
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.2
1
+ 7.0.3
data/config-ruby.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "gemAuthor": "Conekta",
4
4
  "gemName" : "conekta",
5
5
  "gemLicense": "MIT",
6
- "gemVersion": "7.0.2",
6
+ "gemVersion": "7.0.3",
7
7
  "hideGenerationTimestamp": false,
8
8
  "moduleName": "Conekta",
9
9
  "gemSummary" : "This library provides https://api.conekta.io operations",
@@ -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@1dc7173'}) # CompanyDocumentRequest | Document information to update.
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@1dc7173'}) # CompanyDocumentRequest | Document information to upload.
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
  }
@@ -20,7 +20,7 @@ instance = Conekta::CompanyDocumentRequest.new(
20
20
  content_type: application/pdf,
21
21
  international: false,
22
22
  file_name: example_document.pdf,
23
- file_data: [B@1dc7173
23
+ file_data: [B@53a49745
24
24
  )
25
25
  ```
26
26
 
@@ -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' => :'PaymentMethodCashResponse',
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)
@@ -12,7 +12,7 @@
12
12
  require 'conekta'
13
13
 
14
14
  instance = Conekta::CustomerPaymentMethodRequest.new(
15
- type: card | cash | spei | bnpl
15
+ type: card | cash | spei | bnpl | pay_by_bank
16
16
  )
17
17
  ```
18
18
 
@@ -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' => :'PaymentMethodCashResponse',
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.stg.conekta.io/payments-api/cash/merchant_approval
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' => :'PaymentMethodCashResponse',
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.stg.conekta.io/checkout/6fca054a85194c43971ecea35cc519bb
69
+ url: https://pay.conekta.io/checkout/6fca054a85194c43971ecea35cc519bb
70
70
  )
71
71
  ```
72
72
 
@@ -18,7 +18,7 @@
18
18
  require 'conekta'
19
19
 
20
20
  instance = Conekta::PaymentMethodCardRequest.new(
21
- type: card | cash | spei | bnpl,
21
+ type: card | cash | spei | bnpl | pay_by_bank,
22
22
  cvc: 198,
23
23
  exp_month: 12,
24
24
  exp_year: 2025,
@@ -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
+
@@ -13,7 +13,7 @@
13
13
  require 'conekta'
14
14
 
15
15
  instance = Conekta::PaymentMethodCashRequest.new(
16
- type: card | cash | spei | bnpl,
16
+ type: card | cash | spei | bnpl | pay_by_bank,
17
17
  expires_at: 1553273553
18
18
  )
19
19
  ```
@@ -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
+
@@ -13,7 +13,7 @@
13
13
  require 'conekta'
14
14
 
15
15
  instance = Conekta::PaymentMethodSpeiRequest.new(
16
- type: card | cash | spei | bnpl,
16
+ type: card | cash | spei | bnpl | pay_by_bank,
17
17
  expires_at: 1553273553
18
18
  )
19
19
  ```
@@ -13,7 +13,7 @@
13
13
  require 'conekta'
14
14
 
15
15
  instance = Conekta::PaymentMethodTokenRequest.new(
16
- type: card | cash | spei | bnpl,
16
+ type: card | cash | spei | bnpl | pay_by_bank,
17
17
  token_id: tok_32hj4g234as
18
18
  )
19
19
  ```
@@ -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' => :'PaymentMethodCashResponse',
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** | | [optional] |
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: name of person
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.stg.conekta.io/payments-api/cash/merchant_approval
27
+ url: https://username:password@mockoon.conekta.io/payments-api/cash/merchant_approval
28
28
  )
29
29
  ```
30
30
 
@@ -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.stg.conekta.io/payments-api/cash/merchant_approval
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
 
@@ -21,7 +21,8 @@ module Conekta
21
21
  [
22
22
  :'PaymentMethodBnplRequest',
23
23
  :'PaymentMethodCardRequest',
24
- :'PaymentMethodGeneralRequest'
24
+ :'PaymentMethodGeneralRequest',
25
+ :'PaymentMethodPbbRequest'
25
26
  ]
26
27
  end
27
28
 
@@ -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' => :'PaymentMethodCashResponse',
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' => :'PaymentMethodCashResponse',
39
- :'oxxo_recurrent' => :'PaymentMethodCashResponse',
39
+ :'cash_recurrent' => :'PaymentMethodCashRecurrentResponse',
40
40
  :'spei_recurrent' => :'PaymentMethodSpeiRecurrent'
41
41
  }
42
42
  end