conekta 6.0.5 → 7.0.0
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/Makefile +2 -2
- data/README.md +30 -16
- data/VERSION +1 -1
- data/conekta.gemspec +1 -1
- data/config-ruby.json +1 -1
- data/docs/AntifraudApi.md +6 -6
- data/docs/ApiKeyCreateResponse.md +2 -2
- data/docs/ApiKeyResponse.md +2 -2
- data/docs/ApiKeyResponseOnDelete.md +2 -2
- data/docs/ApiKeysApi.md +5 -5
- data/docs/BalancesApi.md +1 -1
- data/docs/ChargeOrderResponsePaymentMethod.md +3 -0
- data/docs/ChargeRequestPaymentMethod.md +3 -1
- data/docs/ChargeResponse.md +8 -8
- data/docs/ChargeResponsePaymentMethod.md +3 -0
- data/docs/ChargesApi.md +6 -6
- data/docs/ChargesDataResponse.md +8 -8
- data/docs/ChargesOrderResponseAllOfData.md +8 -8
- data/docs/Checkout.md +1 -1
- data/docs/CheckoutRequest.md +1 -1
- data/docs/CheckoutResponse.md +2 -2
- data/docs/CompaniesApi.md +2 -2
- data/docs/CreateCustomerPaymentMethodsResponse.md +1 -0
- data/docs/CustomerPaymentMethodRequest.md +1 -1
- data/docs/CustomerPaymentMethodsData.md +1 -0
- data/docs/CustomersApi.md +7 -7
- data/docs/DeleteApiKeysResponse.md +5 -3
- data/docs/DiscountsApi.md +5 -5
- data/docs/EventsApi.md +12 -12
- data/docs/GetCustomerPaymentMethodDataResponse.md +1 -0
- data/docs/LogResponse.md +3 -3
- data/docs/LogsApi.md +2 -2
- data/docs/LogsResponseData.md +3 -3
- data/docs/OrderChannelResponse.md +24 -0
- data/docs/{OrderResponseCharges.md → OrderChargesResponse.md} +2 -2
- data/docs/{OrderResponseDiscountLines.md → OrderDiscountLinesResponse.md} +2 -2
- data/docs/OrderRequest.md +5 -5
- data/docs/OrderResponse.md +3 -3
- data/docs/OrderResponseCheckout.md +2 -2
- data/docs/OrderUpdateRequest.md +3 -3
- data/docs/OrdersApi.md +8 -8
- data/docs/PaymentLinkApi.md +7 -7
- data/docs/PaymentMethodBankTransfer.md +1 -1
- data/docs/PaymentMethodBnplPayment.md +32 -0
- data/docs/PaymentMethodBnplRequest.md +28 -0
- data/docs/PaymentMethodCardRequest.md +1 -1
- data/docs/PaymentMethodCash.md +3 -3
- data/docs/PaymentMethodCashRequest.md +1 -1
- data/docs/PaymentMethodCashResponse.md +6 -4
- data/docs/PaymentMethodCashResponseAllOfAgreements.md +20 -0
- data/docs/PaymentMethodSpeiRequest.md +1 -1
- data/docs/PaymentMethodTokenRequest.md +2 -2
- data/docs/PaymentMethodsApi.md +5 -5
- data/docs/PayoutOrdersApi.md +4 -4
- data/docs/PlanRequest.md +5 -1
- data/docs/PlanResponse.md +5 -1
- data/docs/PlansApi.md +5 -5
- data/docs/ProductsApi.md +3 -3
- data/docs/ResendRequest.md +18 -0
- data/docs/ShippingContactsApi.md +3 -3
- data/docs/ShippingsApi.md +3 -3
- data/docs/SubscriptionsApi.md +793 -73
- data/docs/TaxesApi.md +3 -3
- data/docs/TokensApi.md +1 -1
- data/docs/TransactionsApi.md +2 -2
- data/docs/TransfersApi.md +2 -2
- data/docs/UpdateCustomerPaymentMethodsResponse.md +1 -0
- data/docs/WebhookKeysApi.md +5 -5
- data/docs/WebhookRequest.md +2 -2
- data/docs/WebhookResponse.md +10 -14
- data/docs/WebhookUpdateRequest.md +5 -5
- data/docs/WebhooksApi.md +8 -8
- data/lib/conekta/api/antifraud_api.rb +7 -7
- data/lib/conekta/api/api_keys_api.rb +6 -6
- data/lib/conekta/api/balances_api.rb +2 -2
- data/lib/conekta/api/charges_api.rb +5 -5
- data/lib/conekta/api/companies_api.rb +3 -3
- data/lib/conekta/api/customers_api.rb +8 -8
- data/lib/conekta/api/discounts_api.rb +6 -6
- data/lib/conekta/api/events_api.rb +21 -16
- data/lib/conekta/api/logs_api.rb +3 -3
- data/lib/conekta/api/orders_api.rb +9 -9
- data/lib/conekta/api/payment_link_api.rb +7 -7
- data/lib/conekta/api/payment_methods_api.rb +5 -5
- data/lib/conekta/api/payout_orders_api.rb +5 -5
- data/lib/conekta/api/plans_api.rb +6 -6
- data/lib/conekta/api/products_api.rb +4 -4
- data/lib/conekta/api/shipping_contacts_api.rb +4 -4
- data/lib/conekta/api/shippings_api.rb +4 -4
- data/lib/conekta/api/subscriptions_api.rb +826 -63
- data/lib/conekta/api/taxes_api.rb +4 -4
- data/lib/conekta/api/tokens_api.rb +2 -2
- data/lib/conekta/api/transactions_api.rb +3 -3
- data/lib/conekta/api/transfers_api.rb +3 -3
- data/lib/conekta/api/webhook_keys_api.rb +6 -6
- data/lib/conekta/api/webhooks_api.rb +7 -7
- data/lib/conekta/api_client.rb +1 -1
- data/lib/conekta/api_error.rb +1 -1
- data/lib/conekta/configuration.rb +1 -1
- data/lib/conekta/models/api_key_create_response.rb +13 -12
- data/lib/conekta/models/api_key_request.rb +1 -1
- data/lib/conekta/models/api_key_response.rb +13 -12
- data/lib/conekta/models/api_key_response_on_delete.rb +10 -9
- data/lib/conekta/models/api_key_update_request.rb +1 -1
- data/lib/conekta/models/balance_common_field.rb +1 -1
- data/lib/conekta/models/balance_response.rb +1 -1
- data/lib/conekta/models/blacklist_rule_response.rb +1 -1
- data/lib/conekta/models/charge_order_response.rb +1 -1
- data/lib/conekta/models/charge_order_response_payment_method.rb +3 -1
- data/lib/conekta/models/charge_request.rb +1 -1
- data/lib/conekta/models/charge_request_payment_method.rb +2 -1
- data/lib/conekta/models/charge_response.rb +58 -1
- data/lib/conekta/models/charge_response_channel.rb +1 -1
- data/lib/conekta/models/charge_response_payment_method.rb +3 -1
- data/lib/conekta/models/charge_response_refunds.rb +1 -1
- data/lib/conekta/models/charge_response_refunds_data.rb +1 -1
- data/lib/conekta/models/charge_update_request.rb +1 -1
- data/lib/conekta/models/charges_data_response.rb +58 -1
- data/lib/conekta/models/charges_order_response.rb +1 -1
- data/lib/conekta/models/charges_order_response_all_of_data.rb +58 -1
- data/lib/conekta/models/checkout.rb +1 -1
- data/lib/conekta/models/checkout_order_template.rb +1 -1
- data/lib/conekta/models/checkout_order_template_customer_info.rb +1 -1
- data/lib/conekta/models/checkout_request.rb +2 -2
- data/lib/conekta/models/checkout_response.rb +2 -1
- data/lib/conekta/models/checkouts_response.rb +1 -1
- data/lib/conekta/models/company_fiscal_info_address_response.rb +1 -1
- data/lib/conekta/models/company_fiscal_info_response.rb +1 -1
- data/lib/conekta/models/company_payout_destination_response.rb +1 -1
- data/lib/conekta/models/company_response.rb +1 -1
- data/lib/conekta/models/create_customer_fiscal_entities_response.rb +1 -1
- data/lib/conekta/models/create_customer_payment_methods_request.rb +1 -1
- data/lib/conekta/models/create_customer_payment_methods_response.rb +2 -1
- data/lib/conekta/models/create_risk_rules_data.rb +1 -1
- data/lib/conekta/models/customer.rb +1 -1
- data/lib/conekta/models/customer_address.rb +1 -1
- data/lib/conekta/models/customer_antifraud_info.rb +1 -1
- data/lib/conekta/models/customer_antifraud_info_response.rb +1 -1
- data/lib/conekta/models/customer_fiscal_entities_data_response.rb +1 -1
- data/lib/conekta/models/customer_fiscal_entities_request.rb +1 -1
- data/lib/conekta/models/customer_fiscal_entities_response.rb +1 -1
- data/lib/conekta/models/customer_info.rb +1 -1
- data/lib/conekta/models/customer_info_just_customer_id.rb +1 -1
- data/lib/conekta/models/customer_info_just_customer_id_response.rb +1 -1
- data/lib/conekta/models/customer_payment_method_request.rb +1 -1
- data/lib/conekta/models/customer_payment_methods_data.rb +2 -1
- data/lib/conekta/models/customer_payment_methods_request.rb +1 -1
- data/lib/conekta/models/customer_payment_methods_response.rb +1 -1
- data/lib/conekta/models/customer_response.rb +1 -1
- data/lib/conekta/models/customer_response_shipping_contacts.rb +1 -1
- data/lib/conekta/models/customer_shipping_contacts.rb +2 -2
- data/lib/conekta/models/customer_shipping_contacts_address.rb +1 -1
- data/lib/conekta/models/customer_shipping_contacts_data_response.rb +1 -1
- data/lib/conekta/models/customer_shipping_contacts_response.rb +1 -1
- data/lib/conekta/models/customer_shipping_contacts_response_address.rb +1 -1
- data/lib/conekta/models/customer_update_fiscal_entities_request.rb +1 -1
- data/lib/conekta/models/customer_update_shipping_contacts.rb +2 -2
- data/lib/conekta/models/customers_response.rb +1 -1
- data/lib/conekta/models/delete_api_keys_response.rb +22 -11
- data/lib/conekta/models/deleted_blacklist_rule_response.rb +1 -1
- data/lib/conekta/models/deleted_whitelist_rule_response.rb +1 -1
- data/lib/conekta/models/details.rb +1 -1
- data/lib/conekta/models/details_error.rb +1 -1
- data/lib/conekta/models/discount_lines_data_response.rb +1 -1
- data/lib/conekta/models/discount_lines_response.rb +1 -1
- data/lib/conekta/models/email_checkout_request.rb +1 -1
- data/lib/conekta/models/error.rb +1 -1
- data/lib/conekta/models/event_response.rb +1 -1
- data/lib/conekta/models/event_types.rb +1 -1
- data/lib/conekta/models/events_resend_response.rb +1 -1
- data/lib/conekta/models/fiscal_entity_address.rb +1 -1
- data/lib/conekta/models/get_api_keys_response.rb +1 -1
- data/lib/conekta/models/get_charges_response.rb +1 -1
- data/lib/conekta/models/get_companies_response.rb +1 -1
- data/lib/conekta/models/get_customer_payment_method_data_response.rb +2 -1
- data/lib/conekta/models/get_events_response.rb +1 -1
- data/lib/conekta/models/get_order_discount_lines_response.rb +1 -1
- data/lib/conekta/models/get_orders_response.rb +1 -1
- data/lib/conekta/models/get_payment_method_response.rb +1 -1
- data/lib/conekta/models/get_plans_response.rb +1 -1
- data/lib/conekta/models/get_transactions_response.rb +1 -1
- data/lib/conekta/models/get_transfers_response.rb +1 -1
- data/lib/conekta/models/get_webhook_keys_response.rb +1 -1
- data/lib/conekta/models/get_webhooks_response.rb +1 -1
- data/lib/conekta/models/log_response.rb +1 -1
- data/lib/conekta/models/logs_response.rb +1 -1
- data/lib/conekta/models/logs_response_data.rb +1 -1
- data/lib/conekta/models/order_capture_request.rb +1 -1
- data/lib/conekta/models/order_channel_response.rb +241 -0
- data/lib/conekta/models/order_charges_response.rb +258 -0
- data/lib/conekta/models/order_customer_info_response.rb +1 -1
- data/lib/conekta/models/order_discount_lines_request.rb +1 -1
- data/lib/conekta/models/order_discount_lines_response.rb +257 -0
- data/lib/conekta/models/order_fiscal_entity_address_response.rb +1 -1
- data/lib/conekta/models/order_fiscal_entity_request.rb +1 -1
- data/lib/conekta/models/order_fiscal_entity_response.rb +1 -1
- data/lib/conekta/models/order_next_action_response.rb +1 -1
- data/lib/conekta/models/order_next_action_response_redirect_to_url.rb +1 -1
- data/lib/conekta/models/order_refund_request.rb +1 -1
- data/lib/conekta/models/order_request.rb +6 -6
- data/lib/conekta/models/order_request_customer_info.rb +1 -1
- data/lib/conekta/models/order_response.rb +4 -4
- data/lib/conekta/models/order_response_checkout.rb +2 -1
- data/lib/conekta/models/order_response_customer_info.rb +1 -1
- data/lib/conekta/models/order_response_products.rb +1 -1
- data/lib/conekta/models/order_response_shipping_contact.rb +1 -1
- data/lib/conekta/models/order_tax_request.rb +1 -1
- data/lib/conekta/models/order_update_fiscal_entity_request.rb +1 -1
- data/lib/conekta/models/order_update_request.rb +4 -4
- data/lib/conekta/models/order_update_request_customer_info.rb +1 -1
- data/lib/conekta/models/orders_response.rb +1 -1
- data/lib/conekta/models/page.rb +1 -1
- data/lib/conekta/models/pagination.rb +1 -1
- data/lib/conekta/models/payment_method.rb +1 -1
- data/lib/conekta/models/payment_method_bank_transfer.rb +2 -2
- data/lib/conekta/models/payment_method_bnpl_payment.rb +311 -0
- data/lib/conekta/models/payment_method_bnpl_request.rb +348 -0
- data/lib/conekta/models/payment_method_card.rb +1 -1
- data/lib/conekta/models/payment_method_card_request.rb +1 -1
- data/lib/conekta/models/payment_method_card_response.rb +1 -1
- data/lib/conekta/models/payment_method_cash.rb +1 -1
- data/lib/conekta/models/payment_method_cash_request.rb +1 -1
- data/lib/conekta/models/payment_method_cash_response.rb +14 -2
- data/lib/conekta/models/payment_method_cash_response_all_of_agreements.rb +225 -0
- data/lib/conekta/models/payment_method_general_request.rb +1 -1
- data/lib/conekta/models/payment_method_response.rb +1 -1
- data/lib/conekta/models/payment_method_spei_recurrent.rb +1 -1
- data/lib/conekta/models/payment_method_spei_request.rb +1 -1
- data/lib/conekta/models/payment_method_token_request.rb +2 -2
- data/lib/conekta/models/payout.rb +1 -1
- data/lib/conekta/models/payout_method.rb +1 -1
- data/lib/conekta/models/payout_order.rb +1 -1
- data/lib/conekta/models/payout_order_payouts_item.rb +1 -1
- data/lib/conekta/models/payout_order_response.rb +1 -1
- data/lib/conekta/models/payout_order_response_customer_info.rb +1 -1
- data/lib/conekta/models/payout_orders_response.rb +1 -1
- data/lib/conekta/models/plan_request.rb +63 -5
- data/lib/conekta/models/plan_response.rb +24 -6
- data/lib/conekta/models/plan_update_request.rb +1 -1
- data/lib/conekta/models/product.rb +1 -1
- data/lib/conekta/models/product_data_response.rb +1 -1
- data/lib/conekta/models/product_order_response.rb +1 -1
- data/lib/conekta/models/resend_request.rb +224 -0
- data/lib/conekta/models/risk_rules_data.rb +1 -1
- data/lib/conekta/models/risk_rules_list.rb +1 -1
- data/lib/conekta/models/shipping_order_response.rb +1 -1
- data/lib/conekta/models/shipping_request.rb +1 -1
- data/lib/conekta/models/sms_checkout_request.rb +1 -1
- data/lib/conekta/models/subscription_events_response.rb +1 -1
- data/lib/conekta/models/subscription_request.rb +1 -1
- data/lib/conekta/models/subscription_response.rb +1 -1
- data/lib/conekta/models/subscription_update_request.rb +1 -1
- data/lib/conekta/models/token.rb +1 -1
- data/lib/conekta/models/token_card.rb +1 -1
- data/lib/conekta/models/token_checkout.rb +1 -1
- data/lib/conekta/models/token_response.rb +1 -1
- data/lib/conekta/models/token_response_checkout.rb +1 -1
- data/lib/conekta/models/transaction_response.rb +1 -1
- data/lib/conekta/models/transfer_destination_response.rb +1 -1
- data/lib/conekta/models/transfer_method_response.rb +1 -1
- data/lib/conekta/models/transfer_response.rb +1 -1
- data/lib/conekta/models/transfers_response.rb +1 -1
- data/lib/conekta/models/update_customer.rb +1 -1
- data/lib/conekta/models/update_customer_antifraud_info.rb +1 -1
- data/lib/conekta/models/update_customer_fiscal_entities_response.rb +1 -1
- data/lib/conekta/models/update_customer_payment_methods_response.rb +2 -1
- data/lib/conekta/models/update_order_discount_lines_request.rb +1 -1
- data/lib/conekta/models/update_order_tax_request.rb +1 -1
- data/lib/conekta/models/update_order_tax_response.rb +1 -1
- data/lib/conekta/models/update_payment_methods.rb +1 -1
- data/lib/conekta/models/update_product.rb +1 -1
- data/lib/conekta/models/webhook_key_create_response.rb +1 -1
- data/lib/conekta/models/webhook_key_delete_response.rb +1 -1
- data/lib/conekta/models/webhook_key_request.rb +1 -1
- data/lib/conekta/models/webhook_key_response.rb +1 -1
- data/lib/conekta/models/webhook_key_update_request.rb +1 -1
- data/lib/conekta/models/webhook_log.rb +1 -1
- data/lib/conekta/models/webhook_request.rb +11 -16
- data/lib/conekta/models/webhook_response.rb +28 -39
- data/lib/conekta/models/webhook_update_request.rb +20 -28
- data/lib/conekta/models/whitelistlist_rule_response.rb +1 -1
- data/lib/conekta/version.rb +2 -2
- data/lib/conekta.rb +8 -3
- data/spec/api/antifraud_api_spec.rb +8 -65
- data/spec/api/api_keys_api_spec.rb +7 -51
- data/spec/api/balances_api_spec.rb +3 -12
- data/spec/api/charges_api_spec.rb +30 -83
- data/spec/api/companies_api_spec.rb +5 -13
- data/spec/api/customers_api_spec.rb +13 -184
- data/spec/api/discounts_api_spec.rb +7 -46
- data/spec/api/events_api_spec.rb +7 -24
- data/spec/api/logs_api_spec.rb +3 -15
- data/spec/api/orders_api_spec.rb +19 -247
- data/spec/api/payment_link_api_spec.rb +9 -82
- data/spec/api/payment_methods_api_spec.rb +6 -41
- data/spec/api/payout_orders_api_spec.rb +14 -1
- data/spec/api/plans_api_spec.rb +7 -42
- data/spec/api/products_api_spec.rb +5 -30
- data/spec/api/shipping_contacts_api_spec.rb +5 -41
- data/spec/api/shippings_api_spec.rb +5 -32
- data/spec/api/subscriptions_api_spec.rb +168 -68
- data/spec/api/taxes_api_spec.rb +5 -34
- data/spec/api/tokens_api_spec.rb +3 -31
- data/spec/api/transactions_api_spec.rb +8 -21
- data/spec/api/transfers_api_spec.rb +4 -34
- data/spec/api/webhook_keys_api_spec.rb +7 -49
- data/spec/api/webhooks_api_spec.rb +9 -42
- data/spec/spec_helper.rb +1 -1
- metadata +31 -21
- data/spec/api/base_test.rb +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a579bb9da590cfc9dc726b60b9896b61c0acb494f26d8f24d561a149be00b120
|
4
|
+
data.tar.gz: 04e148f60aadefd2eb727bec0a4650c178127d8f4b177b5cb8631c938b002b84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 770700fb1a2f8def17baff00b4c9baabe8a5b0010384f3ec740537f91e8049080ba8107792d54616fe097e91426c0b7cc24744604ffe907d95ee75954034a11c
|
7
|
+
data.tar.gz: 9653891eaeb5f3a90ec6bbfd0ffece3be65142acc0e74d36446dcc60a35d9e6afbddb1413651b490d6cc0f3c052a789180e9fe72a9ccee8c688d1d7f97469e80
|
data/Makefile
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
ci-test:
|
2
2
|
bundle exec rspec
|
3
3
|
ruby:
|
4
|
-
rm -rf docs && rm -rf lib/models && \
|
4
|
+
rm -rf docs && rm -rf lib/models && rm -rf spec/api && \
|
5
5
|
docker run --rm \
|
6
6
|
-v ${PWD}:/local openapitools/openapi-generator-cli:v7.5.0 generate \
|
7
7
|
-i https://raw.githubusercontent.com/conekta/openapi/main/_build/api.yaml \
|
8
8
|
-g ruby \
|
9
9
|
-o /local \
|
10
10
|
-c /local/config-ruby.json \
|
11
|
-
--global-property modelTests=false
|
11
|
+
--global-property modelTests=false,apiTests=true
|
data/README.md
CHANGED
@@ -6,9 +6,9 @@ Conekta sdk
|
|
6
6
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
|
-
- API version: 2.
|
10
|
-
- Package version:
|
11
|
-
- Build date: 2025-
|
9
|
+
- API version: 2.2.0
|
10
|
+
- Package version: 7.0.0
|
11
|
+
- Build date: 2025-04-10T21:18:19.648930512Z[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-
|
29
|
+
gem install ./conekta-7.0.0.gem
|
30
30
|
```
|
31
31
|
|
32
|
-
(for development, run `gem install --dev ./conekta-
|
32
|
+
(for development, run `gem install --dev ./conekta-7.0.0.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', '~>
|
38
|
+
gem 'conekta', '~> 7.0.0'
|
39
39
|
|
40
40
|
### Install from Git
|
41
41
|
|
@@ -123,7 +123,7 @@ Class | Method | HTTP request | Description
|
|
123
123
|
*Conekta::DiscountsApi* | [**orders_update_discount_lines**](docs/DiscountsApi.md#orders_update_discount_lines) | **PUT** /orders/{id}/discount_lines/{discount_lines_id} | Update Discount
|
124
124
|
*Conekta::EventsApi* | [**get_event**](docs/EventsApi.md#get_event) | **GET** /events/{id} | Get Event
|
125
125
|
*Conekta::EventsApi* | [**get_events**](docs/EventsApi.md#get_events) | **GET** /events | Get list of Events
|
126
|
-
*Conekta::EventsApi* | [**resend_event**](docs/EventsApi.md#resend_event) | **POST** /events/{event_id}/
|
126
|
+
*Conekta::EventsApi* | [**resend_event**](docs/EventsApi.md#resend_event) | **POST** /events/{event_id}/resend | Resend Event
|
127
127
|
*Conekta::LogsApi* | [**get_log_by_id**](docs/LogsApi.md#get_log_by_id) | **GET** /logs/{id} | Get Log
|
128
128
|
*Conekta::LogsApi* | [**get_logs**](docs/LogsApi.md#get_logs) | **GET** /logs | Get List Of Logs
|
129
129
|
*Conekta::OrdersApi* | [**cancel_order**](docs/OrdersApi.md#cancel_order) | **POST** /orders/{id}/cancel | Cancel Order
|
@@ -162,13 +162,22 @@ Class | Method | HTTP request | Description
|
|
162
162
|
*Conekta::ShippingsApi* | [**orders_create_shipping**](docs/ShippingsApi.md#orders_create_shipping) | **POST** /orders/{id}/shipping_lines | Create Shipping
|
163
163
|
*Conekta::ShippingsApi* | [**orders_delete_shipping**](docs/ShippingsApi.md#orders_delete_shipping) | **DELETE** /orders/{id}/shipping_lines/{shipping_id} | Delete Shipping
|
164
164
|
*Conekta::ShippingsApi* | [**orders_update_shipping**](docs/ShippingsApi.md#orders_update_shipping) | **PUT** /orders/{id}/shipping_lines/{shipping_id} | Update Shipping
|
165
|
-
*Conekta::SubscriptionsApi* | [**cancel_subscription**](docs/SubscriptionsApi.md#cancel_subscription) | **POST** /customers/{id}/subscription/cancel | Cancel Subscription
|
166
|
-
*Conekta::SubscriptionsApi* | [**create_subscription**](docs/SubscriptionsApi.md#create_subscription) | **POST** /customers/{id}/subscription | Create Subscription
|
167
|
-
*Conekta::SubscriptionsApi* | [**
|
168
|
-
*Conekta::SubscriptionsApi* | [**
|
169
|
-
*Conekta::SubscriptionsApi* | [**pause_subscription**](docs/SubscriptionsApi.md#pause_subscription) | **POST** /customers/{id}/subscription/pause | Pause Subscription
|
170
|
-
*Conekta::SubscriptionsApi* | [**resume_subscription**](docs/SubscriptionsApi.md#resume_subscription) | **POST** /customers/{id}/subscription/resume | Resume Subscription
|
171
|
-
*Conekta::SubscriptionsApi* | [**
|
165
|
+
*Conekta::SubscriptionsApi* | [**cancel_subscription**](docs/SubscriptionsApi.md#cancel_subscription) | **POST** /customers/{id}/subscription/cancel | Cancel Subscription [Deprecated]
|
166
|
+
*Conekta::SubscriptionsApi* | [**create_subscription**](docs/SubscriptionsApi.md#create_subscription) | **POST** /customers/{id}/subscription | Create Subscription [Deprecated]
|
167
|
+
*Conekta::SubscriptionsApi* | [**get_subscription**](docs/SubscriptionsApi.md#get_subscription) | **GET** /customers/{id}/subscription | Get Subscription [Deprecated]
|
168
|
+
*Conekta::SubscriptionsApi* | [**get_subscription_events**](docs/SubscriptionsApi.md#get_subscription_events) | **GET** /customers/{id}/subscription/events | Get Subscription Events [Deprecated]
|
169
|
+
*Conekta::SubscriptionsApi* | [**pause_subscription**](docs/SubscriptionsApi.md#pause_subscription) | **POST** /customers/{id}/subscription/pause | Pause Subscription [Deprecated]
|
170
|
+
*Conekta::SubscriptionsApi* | [**resume_subscription**](docs/SubscriptionsApi.md#resume_subscription) | **POST** /customers/{id}/subscription/resume | Resume Subscription [Deprecated]
|
171
|
+
*Conekta::SubscriptionsApi* | [**subscription_cancel**](docs/SubscriptionsApi.md#subscription_cancel) | **POST** /customers/{customer_id}/subscriptions/{id}/cancel | Cancel Subscription
|
172
|
+
*Conekta::SubscriptionsApi* | [**subscription_create**](docs/SubscriptionsApi.md#subscription_create) | **POST** /customers/{customer_id}/subscriptions | Create Subscription
|
173
|
+
*Conekta::SubscriptionsApi* | [**subscription_events**](docs/SubscriptionsApi.md#subscription_events) | **GET** /customers/{customer_id}/subscriptions/{id}/events | Get Subscription Events
|
174
|
+
*Conekta::SubscriptionsApi* | [**subscription_list**](docs/SubscriptionsApi.md#subscription_list) | **GET** /customers/{customer_id}/subscriptions | List Subscriptions
|
175
|
+
*Conekta::SubscriptionsApi* | [**subscription_pause**](docs/SubscriptionsApi.md#subscription_pause) | **POST** /customers/{customer_id}/subscriptions/{id}/pause | Pause Subscription
|
176
|
+
*Conekta::SubscriptionsApi* | [**subscription_resume**](docs/SubscriptionsApi.md#subscription_resume) | **POST** /customers/{customer_id}/subscriptions/{id}/resume | Resume Subscription
|
177
|
+
*Conekta::SubscriptionsApi* | [**subscription_update**](docs/SubscriptionsApi.md#subscription_update) | **PUT** /customers/{customer_id}/subscriptions/{id} | Update Subscription
|
178
|
+
*Conekta::SubscriptionsApi* | [**subscriptions_get**](docs/SubscriptionsApi.md#subscriptions_get) | **GET** /customers/{customer_id}/subscriptions/{id} | Get Subscription
|
179
|
+
*Conekta::SubscriptionsApi* | [**subscriptions_retry**](docs/SubscriptionsApi.md#subscriptions_retry) | **POST** /customers/{customer_id}/subscriptions/{id}/retry | Retry Failed Payment
|
180
|
+
*Conekta::SubscriptionsApi* | [**update_subscription**](docs/SubscriptionsApi.md#update_subscription) | **PUT** /customers/{id}/subscription | Update Subscription [Deprecated]
|
172
181
|
*Conekta::TaxesApi* | [**orders_create_taxes**](docs/TaxesApi.md#orders_create_taxes) | **POST** /orders/{id}/tax_lines | Create Tax
|
173
182
|
*Conekta::TaxesApi* | [**orders_delete_taxes**](docs/TaxesApi.md#orders_delete_taxes) | **DELETE** /orders/{id}/tax_lines/{tax_id} | Delete Tax
|
174
183
|
*Conekta::TaxesApi* | [**orders_update_taxes**](docs/TaxesApi.md#orders_update_taxes) | **PUT** /orders/{id}/tax_lines/{tax_id} | Update Tax
|
@@ -281,8 +290,11 @@ Class | Method | HTTP request | Description
|
|
281
290
|
- [Conekta::LogsResponse](docs/LogsResponse.md)
|
282
291
|
- [Conekta::LogsResponseData](docs/LogsResponseData.md)
|
283
292
|
- [Conekta::OrderCaptureRequest](docs/OrderCaptureRequest.md)
|
293
|
+
- [Conekta::OrderChannelResponse](docs/OrderChannelResponse.md)
|
294
|
+
- [Conekta::OrderChargesResponse](docs/OrderChargesResponse.md)
|
284
295
|
- [Conekta::OrderCustomerInfoResponse](docs/OrderCustomerInfoResponse.md)
|
285
296
|
- [Conekta::OrderDiscountLinesRequest](docs/OrderDiscountLinesRequest.md)
|
297
|
+
- [Conekta::OrderDiscountLinesResponse](docs/OrderDiscountLinesResponse.md)
|
286
298
|
- [Conekta::OrderFiscalEntityAddressResponse](docs/OrderFiscalEntityAddressResponse.md)
|
287
299
|
- [Conekta::OrderFiscalEntityRequest](docs/OrderFiscalEntityRequest.md)
|
288
300
|
- [Conekta::OrderFiscalEntityResponse](docs/OrderFiscalEntityResponse.md)
|
@@ -292,10 +304,8 @@ Class | Method | HTTP request | Description
|
|
292
304
|
- [Conekta::OrderRequest](docs/OrderRequest.md)
|
293
305
|
- [Conekta::OrderRequestCustomerInfo](docs/OrderRequestCustomerInfo.md)
|
294
306
|
- [Conekta::OrderResponse](docs/OrderResponse.md)
|
295
|
-
- [Conekta::OrderResponseCharges](docs/OrderResponseCharges.md)
|
296
307
|
- [Conekta::OrderResponseCheckout](docs/OrderResponseCheckout.md)
|
297
308
|
- [Conekta::OrderResponseCustomerInfo](docs/OrderResponseCustomerInfo.md)
|
298
|
-
- [Conekta::OrderResponseDiscountLines](docs/OrderResponseDiscountLines.md)
|
299
309
|
- [Conekta::OrderResponseProducts](docs/OrderResponseProducts.md)
|
300
310
|
- [Conekta::OrderResponseShippingContact](docs/OrderResponseShippingContact.md)
|
301
311
|
- [Conekta::OrderTaxRequest](docs/OrderTaxRequest.md)
|
@@ -307,12 +317,15 @@ Class | Method | HTTP request | Description
|
|
307
317
|
- [Conekta::Pagination](docs/Pagination.md)
|
308
318
|
- [Conekta::PaymentMethod](docs/PaymentMethod.md)
|
309
319
|
- [Conekta::PaymentMethodBankTransfer](docs/PaymentMethodBankTransfer.md)
|
320
|
+
- [Conekta::PaymentMethodBnplPayment](docs/PaymentMethodBnplPayment.md)
|
321
|
+
- [Conekta::PaymentMethodBnplRequest](docs/PaymentMethodBnplRequest.md)
|
310
322
|
- [Conekta::PaymentMethodCard](docs/PaymentMethodCard.md)
|
311
323
|
- [Conekta::PaymentMethodCardRequest](docs/PaymentMethodCardRequest.md)
|
312
324
|
- [Conekta::PaymentMethodCardResponse](docs/PaymentMethodCardResponse.md)
|
313
325
|
- [Conekta::PaymentMethodCash](docs/PaymentMethodCash.md)
|
314
326
|
- [Conekta::PaymentMethodCashRequest](docs/PaymentMethodCashRequest.md)
|
315
327
|
- [Conekta::PaymentMethodCashResponse](docs/PaymentMethodCashResponse.md)
|
328
|
+
- [Conekta::PaymentMethodCashResponseAllOfAgreements](docs/PaymentMethodCashResponseAllOfAgreements.md)
|
316
329
|
- [Conekta::PaymentMethodGeneralRequest](docs/PaymentMethodGeneralRequest.md)
|
317
330
|
- [Conekta::PaymentMethodResponse](docs/PaymentMethodResponse.md)
|
318
331
|
- [Conekta::PaymentMethodSpeiRecurrent](docs/PaymentMethodSpeiRecurrent.md)
|
@@ -331,6 +344,7 @@ Class | Method | HTTP request | Description
|
|
331
344
|
- [Conekta::Product](docs/Product.md)
|
332
345
|
- [Conekta::ProductDataResponse](docs/ProductDataResponse.md)
|
333
346
|
- [Conekta::ProductOrderResponse](docs/ProductOrderResponse.md)
|
347
|
+
- [Conekta::ResendRequest](docs/ResendRequest.md)
|
334
348
|
- [Conekta::RiskRulesData](docs/RiskRulesData.md)
|
335
349
|
- [Conekta::RiskRulesList](docs/RiskRulesList.md)
|
336
350
|
- [Conekta::ShippingOrderResponse](docs/ShippingOrderResponse.md)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
7.0.0
|
data/conekta.gemspec
CHANGED
data/config-ruby.json
CHANGED
data/docs/AntifraudApi.md
CHANGED
@@ -80,7 +80,7 @@ end
|
|
80
80
|
### HTTP request headers
|
81
81
|
|
82
82
|
- **Content-Type**: application/json
|
83
|
-
- **Accept**: application/vnd.conekta-v2.
|
83
|
+
- **Accept**: application/vnd.conekta-v2.2.0+json
|
84
84
|
|
85
85
|
|
86
86
|
## create_rule_whitelist
|
@@ -151,7 +151,7 @@ end
|
|
151
151
|
### HTTP request headers
|
152
152
|
|
153
153
|
- **Content-Type**: application/json
|
154
|
-
- **Accept**: application/vnd.conekta-v2.
|
154
|
+
- **Accept**: application/vnd.conekta-v2.2.0+json
|
155
155
|
|
156
156
|
|
157
157
|
## delete_rule_blacklist
|
@@ -224,7 +224,7 @@ end
|
|
224
224
|
### HTTP request headers
|
225
225
|
|
226
226
|
- **Content-Type**: Not defined
|
227
|
-
- **Accept**: application/vnd.conekta-v2.
|
227
|
+
- **Accept**: application/vnd.conekta-v2.2.0+json
|
228
228
|
|
229
229
|
|
230
230
|
## delete_rule_whitelist
|
@@ -297,7 +297,7 @@ end
|
|
297
297
|
### HTTP request headers
|
298
298
|
|
299
299
|
- **Content-Type**: Not defined
|
300
|
-
- **Accept**: application/vnd.conekta-v2.
|
300
|
+
- **Accept**: application/vnd.conekta-v2.2.0+json
|
301
301
|
|
302
302
|
|
303
303
|
## get_rule_blacklist
|
@@ -368,7 +368,7 @@ end
|
|
368
368
|
### HTTP request headers
|
369
369
|
|
370
370
|
- **Content-Type**: Not defined
|
371
|
-
- **Accept**: application/vnd.conekta-v2.
|
371
|
+
- **Accept**: application/vnd.conekta-v2.2.0+json
|
372
372
|
|
373
373
|
|
374
374
|
## get_rule_whitelist
|
@@ -439,5 +439,5 @@ end
|
|
439
439
|
### HTTP request headers
|
440
440
|
|
441
441
|
- **Content-Type**: Not defined
|
442
|
-
- **Accept**: application/vnd.conekta-v2.
|
442
|
+
- **Accept**: application/vnd.conekta-v2.2.0+json
|
443
443
|
|
@@ -8,10 +8,10 @@
|
|
8
8
|
| **created_at** | **Integer** | Unix timestamp in seconds of when the api key was created | [optional] |
|
9
9
|
| **updated_at** | **Integer** | Unix timestamp in seconds of when the api key was last updated | [optional] |
|
10
10
|
| **deactivated_at** | **Integer** | Unix timestamp in seconds of when the api key was deleted | [optional] |
|
11
|
+
| **last_used_at** | **Integer** | Unix timestamp in seconds with the api key was used | [optional] |
|
11
12
|
| **description** | **String** | A name or brief explanation of what this api key is used for | [optional] |
|
12
13
|
| **id** | **String** | Unique identifier of the api key | [optional] |
|
13
14
|
| **livemode** | **Boolean** | Indicates if the api key is in production | [optional] |
|
14
|
-
| **deleted** | **Boolean** | Indicates if the api key was deleted | [optional] |
|
15
15
|
| **object** | **String** | Object name, value is 'api_key' | [optional] |
|
16
16
|
| **prefix** | **String** | The first few characters of the authentication_token | [optional] |
|
17
17
|
| **role** | **String** | Indicates if the api key is private or public | [optional] |
|
@@ -27,10 +27,10 @@ instance = Conekta::ApiKeyCreateResponse.new(
|
|
27
27
|
created_at: 1684167881,
|
28
28
|
updated_at: 1684167923,
|
29
29
|
deactivated_at: null,
|
30
|
+
last_used_at: null,
|
30
31
|
description: online store,
|
31
32
|
id: 64625cc9f3e02c00163f5e4d,
|
32
33
|
livemode: false,
|
33
|
-
deleted: false,
|
34
34
|
object: api_key,
|
35
35
|
prefix: key_rp,
|
36
36
|
role: private,
|
data/docs/ApiKeyResponse.md
CHANGED
@@ -8,10 +8,10 @@
|
|
8
8
|
| **created_at** | **Integer** | Unix timestamp in seconds of when the api key was created | [optional] |
|
9
9
|
| **updated_at** | **Integer** | Unix timestamp in seconds of when the api key was last updated | [optional] |
|
10
10
|
| **deactivated_at** | **Integer** | Unix timestamp in seconds of when the api key was deleted | [optional] |
|
11
|
+
| **last_used_at** | **Integer** | Unix timestamp in seconds with the api key was used | [optional] |
|
11
12
|
| **description** | **String** | A name or brief explanation of what this api key is used for | [optional] |
|
12
13
|
| **id** | **String** | Unique identifier of the api key | [optional] |
|
13
14
|
| **livemode** | **Boolean** | Indicates if the api key is in production | [optional] |
|
14
|
-
| **deleted** | **Boolean** | Indicates if the api key was deleted | [optional] |
|
15
15
|
| **object** | **String** | Object name, value is 'api_key' | [optional] |
|
16
16
|
| **prefix** | **String** | The first few characters of the authentication_token | [optional] |
|
17
17
|
| **role** | **String** | Indicates if the api key is private or public | [optional] |
|
@@ -26,10 +26,10 @@ instance = Conekta::ApiKeyResponse.new(
|
|
26
26
|
created_at: 1684167881,
|
27
27
|
updated_at: 1684167923,
|
28
28
|
deactivated_at: null,
|
29
|
+
last_used_at: null,
|
29
30
|
description: online store,
|
30
31
|
id: 64625cc9f3e02c00163f5e4d,
|
31
32
|
livemode: false,
|
32
|
-
deleted: false,
|
33
33
|
object: api_key,
|
34
34
|
prefix: key_rp,
|
35
35
|
role: private
|
@@ -11,7 +11,7 @@
|
|
11
11
|
| **prefix** | **String** | The first few characters of the authentication_token | [optional] |
|
12
12
|
| **id** | **String** | Unique identifier of the api key | [optional] |
|
13
13
|
| **object** | **String** | Object name, value is 'api_key' | [optional] |
|
14
|
-
| **
|
14
|
+
| **last_used_at** | **Integer** | Unix timestamp in seconds with the api key was used | [optional] |
|
15
15
|
| **role** | **String** | Indicates if the api key is private or public | [optional] |
|
16
16
|
|
17
17
|
## Example
|
@@ -27,7 +27,7 @@ instance = Conekta::ApiKeyResponseOnDelete.new(
|
|
27
27
|
prefix: key_rp,
|
28
28
|
id: 64625cc9f3e02c00163f5e4d,
|
29
29
|
object: api_key,
|
30
|
-
|
30
|
+
last_used_at: null,
|
31
31
|
role: private
|
32
32
|
)
|
33
33
|
```
|
data/docs/ApiKeysApi.md
CHANGED
@@ -83,7 +83,7 @@ end
|
|
83
83
|
### HTTP request headers
|
84
84
|
|
85
85
|
- **Content-Type**: application/json
|
86
|
-
- **Accept**: application/vnd.conekta-v2.
|
86
|
+
- **Accept**: application/vnd.conekta-v2.2.0+json
|
87
87
|
|
88
88
|
|
89
89
|
## delete_api_key
|
@@ -156,7 +156,7 @@ end
|
|
156
156
|
### HTTP request headers
|
157
157
|
|
158
158
|
- **Content-Type**: Not defined
|
159
|
-
- **Accept**: application/vnd.conekta-v2.
|
159
|
+
- **Accept**: application/vnd.conekta-v2.2.0+json
|
160
160
|
|
161
161
|
|
162
162
|
## get_api_key
|
@@ -231,7 +231,7 @@ end
|
|
231
231
|
### HTTP request headers
|
232
232
|
|
233
233
|
- **Content-Type**: Not defined
|
234
|
-
- **Accept**: application/vnd.conekta-v2.
|
234
|
+
- **Accept**: application/vnd.conekta-v2.2.0+json
|
235
235
|
|
236
236
|
|
237
237
|
## get_api_keys
|
@@ -312,7 +312,7 @@ end
|
|
312
312
|
### HTTP request headers
|
313
313
|
|
314
314
|
- **Content-Type**: Not defined
|
315
|
-
- **Accept**: application/vnd.conekta-v2.
|
315
|
+
- **Accept**: application/vnd.conekta-v2.2.0+json
|
316
316
|
|
317
317
|
|
318
318
|
## update_api_key
|
@@ -387,5 +387,5 @@ end
|
|
387
387
|
### HTTP request headers
|
388
388
|
|
389
389
|
- **Content-Type**: application/json
|
390
|
-
- **Accept**: application/vnd.conekta-v2.
|
390
|
+
- **Accept**: application/vnd.conekta-v2.2.0+json
|
391
391
|
|
data/docs/BalancesApi.md
CHANGED
@@ -15,6 +15,7 @@ Conekta::ChargeOrderResponsePaymentMethod.openapi_one_of
|
|
15
15
|
# =>
|
16
16
|
# [
|
17
17
|
# :'PaymentMethodBankTransfer',
|
18
|
+
# :'PaymentMethodBnplPayment',
|
18
19
|
# :'PaymentMethodCard',
|
19
20
|
# :'PaymentMethodCash'
|
20
21
|
# ]
|
@@ -46,6 +47,7 @@ Conekta::ChargeOrderResponsePaymentMethod.openapi_discriminator_mapping
|
|
46
47
|
# =>
|
47
48
|
# {
|
48
49
|
# :'bank_transfer_payment' => :'PaymentMethodBankTransfer',
|
50
|
+
# :'bnpl_payment' => :'PaymentMethodBnplPayment',
|
49
51
|
# :'card_payment' => :'PaymentMethodCard',
|
50
52
|
# :'cash_payment' => :'PaymentMethodCash'
|
51
53
|
# }
|
@@ -76,6 +78,7 @@ Conekta::ChargeOrderResponsePaymentMethod.build(data_that_doesnt_match)
|
|
76
78
|
#### Return type
|
77
79
|
|
78
80
|
- `PaymentMethodBankTransfer`
|
81
|
+
- `PaymentMethodBnplPayment`
|
79
82
|
- `PaymentMethodCard`
|
80
83
|
- `PaymentMethodCash`
|
81
84
|
- `nil` (if no type matches)
|
@@ -14,6 +14,7 @@ require 'conekta'
|
|
14
14
|
Conekta::ChargeRequestPaymentMethod.openapi_one_of
|
15
15
|
# =>
|
16
16
|
# [
|
17
|
+
# :'PaymentMethodBnplRequest',
|
17
18
|
# :'PaymentMethodCardRequest',
|
18
19
|
# :'PaymentMethodGeneralRequest'
|
19
20
|
# ]
|
@@ -29,7 +30,7 @@ Find the appropriate object from the `openapi_one_of` list and casts the data in
|
|
29
30
|
require 'conekta'
|
30
31
|
|
31
32
|
Conekta::ChargeRequestPaymentMethod.build(data)
|
32
|
-
# => #<
|
33
|
+
# => #<PaymentMethodBnplRequest:0x00007fdd4aab02a0>
|
33
34
|
|
34
35
|
Conekta::ChargeRequestPaymentMethod.build(data_that_doesnt_match)
|
35
36
|
# => nil
|
@@ -43,6 +44,7 @@ Conekta::ChargeRequestPaymentMethod.build(data_that_doesnt_match)
|
|
43
44
|
|
44
45
|
#### Return type
|
45
46
|
|
47
|
+
- `PaymentMethodBnplRequest`
|
46
48
|
- `PaymentMethodCardRequest`
|
47
49
|
- `PaymentMethodGeneralRequest`
|
48
50
|
- `nil` (if no type matches)
|
data/docs/ChargeResponse.md
CHANGED
@@ -4,24 +4,24 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **amount** | **Integer** | |
|
7
|
+
| **amount** | **Integer** | | |
|
8
8
|
| **channel** | [**ChargeResponseChannel**](ChargeResponseChannel.md) | | [optional] |
|
9
|
-
| **created_at** | **Integer** | |
|
10
|
-
| **currency** | **String** | |
|
9
|
+
| **created_at** | **Integer** | | |
|
10
|
+
| **currency** | **String** | | |
|
11
11
|
| **customer_id** | **String** | | [optional] |
|
12
12
|
| **description** | **String** | | [optional] |
|
13
13
|
| **device_fingerprint** | **String** | | [optional] |
|
14
14
|
| **failure_code** | **String** | | [optional] |
|
15
15
|
| **failure_message** | **String** | | [optional] |
|
16
|
-
| **id** | **String** | Charge ID |
|
17
|
-
| **livemode** | **Boolean** | Whether the charge was made in live mode or not |
|
18
|
-
| **object** | **String** | |
|
19
|
-
| **order_id** | **String** | Order ID |
|
16
|
+
| **id** | **String** | Charge ID | |
|
17
|
+
| **livemode** | **Boolean** | Whether the charge was made in live mode or not | |
|
18
|
+
| **object** | **String** | | |
|
19
|
+
| **order_id** | **String** | Order ID | |
|
20
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] |
|
24
|
-
| **status** | **String** |
|
24
|
+
| **status** | **String** | Charge status | |
|
25
25
|
|
26
26
|
## Example
|
27
27
|
|
@@ -15,6 +15,7 @@ Conekta::ChargeResponsePaymentMethod.openapi_one_of
|
|
15
15
|
# =>
|
16
16
|
# [
|
17
17
|
# :'PaymentMethodBankTransfer',
|
18
|
+
# :'PaymentMethodBnplPayment',
|
18
19
|
# :'PaymentMethodCard',
|
19
20
|
# :'PaymentMethodCash'
|
20
21
|
# ]
|
@@ -46,6 +47,7 @@ Conekta::ChargeResponsePaymentMethod.openapi_discriminator_mapping
|
|
46
47
|
# =>
|
47
48
|
# {
|
48
49
|
# :'bank_transfer_payment' => :'PaymentMethodBankTransfer',
|
50
|
+
# :'bnpl_payment' => :'PaymentMethodBnplPayment',
|
49
51
|
# :'card_payment' => :'PaymentMethodCard',
|
50
52
|
# :'cash_payment' => :'PaymentMethodCash'
|
51
53
|
# }
|
@@ -76,6 +78,7 @@ Conekta::ChargeResponsePaymentMethod.build(data_that_doesnt_match)
|
|
76
78
|
#### Return type
|
77
79
|
|
78
80
|
- `PaymentMethodBankTransfer`
|
81
|
+
- `PaymentMethodBnplPayment`
|
79
82
|
- `PaymentMethodCard`
|
80
83
|
- `PaymentMethodCash`
|
81
84
|
- `nil` (if no type matches)
|
data/docs/ChargesApi.md
CHANGED
@@ -86,7 +86,7 @@ end
|
|
86
86
|
### HTTP request headers
|
87
87
|
|
88
88
|
- **Content-Type**: Not defined
|
89
|
-
- **Accept**: application/vnd.conekta-v2.
|
89
|
+
- **Accept**: application/vnd.conekta-v2.2.0+json
|
90
90
|
|
91
91
|
|
92
92
|
## orders_create_charge
|
@@ -110,7 +110,7 @@ end
|
|
110
110
|
|
111
111
|
api_instance = Conekta::ChargesApi.new
|
112
112
|
id = '6307a60c41de27127515a575' # String | Identifier of the resource
|
113
|
-
charge_request = Conekta::ChargeRequest.new({payment_method: Conekta::
|
113
|
+
charge_request = Conekta::ChargeRequest.new({payment_method: Conekta::PaymentMethodBnplRequest.new({type: 'bnpl', cancel_url: 'https://example.com/cancel', can_not_expire: true, failure_url: 'https://example.com/failure', product_type: 'klarna_bnpl', success_url: 'https://example.com/success'})}) # ChargeRequest | requested field for a charge
|
114
114
|
opts = {
|
115
115
|
accept_language: 'es', # String | Use for knowing which language to use
|
116
116
|
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.
|
@@ -163,7 +163,7 @@ end
|
|
163
163
|
### HTTP request headers
|
164
164
|
|
165
165
|
- **Content-Type**: application/json
|
166
|
-
- **Accept**: application/vnd.conekta-v2.
|
166
|
+
- **Accept**: application/vnd.conekta-v2.2.0+json
|
167
167
|
|
168
168
|
|
169
169
|
## orders_create_charges
|
@@ -187,7 +187,7 @@ end
|
|
187
187
|
|
188
188
|
api_instance = Conekta::ChargesApi.new
|
189
189
|
id = '6307a60c41de27127515a575' # String | Identifier of the resource
|
190
|
-
charge_request = Conekta::ChargeRequest.new({payment_method: Conekta::
|
190
|
+
charge_request = Conekta::ChargeRequest.new({payment_method: Conekta::PaymentMethodBnplRequest.new({type: 'bnpl', cancel_url: 'https://example.com/cancel', can_not_expire: true, failure_url: 'https://example.com/failure', product_type: 'klarna_bnpl', success_url: 'https://example.com/success'})}) # ChargeRequest | requested field for a charge
|
191
191
|
opts = {
|
192
192
|
accept_language: 'es', # String | Use for knowing which language to use
|
193
193
|
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.
|
@@ -240,7 +240,7 @@ end
|
|
240
240
|
### HTTP request headers
|
241
241
|
|
242
242
|
- **Content-Type**: application/json
|
243
|
-
- **Accept**: application/vnd.conekta-v2.
|
243
|
+
- **Accept**: application/vnd.conekta-v2.2.0+json
|
244
244
|
|
245
245
|
|
246
246
|
## update_charge
|
@@ -315,5 +315,5 @@ end
|
|
315
315
|
### HTTP request headers
|
316
316
|
|
317
317
|
- **Content-Type**: application/json
|
318
|
-
- **Accept**: application/vnd.conekta-v2.
|
318
|
+
- **Accept**: application/vnd.conekta-v2.2.0+json
|
319
319
|
|
data/docs/ChargesDataResponse.md
CHANGED
@@ -4,24 +4,24 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **amount** | **Integer** | |
|
7
|
+
| **amount** | **Integer** | | |
|
8
8
|
| **channel** | [**ChargeResponseChannel**](ChargeResponseChannel.md) | | [optional] |
|
9
|
-
| **created_at** | **Integer** | |
|
10
|
-
| **currency** | **String** | |
|
9
|
+
| **created_at** | **Integer** | | |
|
10
|
+
| **currency** | **String** | | |
|
11
11
|
| **customer_id** | **String** | | [optional] |
|
12
12
|
| **description** | **String** | | [optional] |
|
13
13
|
| **device_fingerprint** | **String** | | [optional] |
|
14
14
|
| **failure_code** | **String** | | [optional] |
|
15
15
|
| **failure_message** | **String** | | [optional] |
|
16
|
-
| **id** | **String** | Charge ID |
|
17
|
-
| **livemode** | **Boolean** | Whether the charge was made in live mode or not |
|
18
|
-
| **object** | **String** | |
|
19
|
-
| **order_id** | **String** | Order ID |
|
16
|
+
| **id** | **String** | Charge ID | |
|
17
|
+
| **livemode** | **Boolean** | Whether the charge was made in live mode or not | |
|
18
|
+
| **object** | **String** | | |
|
19
|
+
| **order_id** | **String** | Order ID | |
|
20
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] |
|
24
|
-
| **status** | **String** |
|
24
|
+
| **status** | **String** | Charge status | |
|
25
25
|
|
26
26
|
## Example
|
27
27
|
|
@@ -4,24 +4,24 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **amount** | **Integer** | |
|
7
|
+
| **amount** | **Integer** | | |
|
8
8
|
| **channel** | [**ChargeResponseChannel**](ChargeResponseChannel.md) | | [optional] |
|
9
|
-
| **created_at** | **Integer** | |
|
10
|
-
| **currency** | **String** | |
|
9
|
+
| **created_at** | **Integer** | | |
|
10
|
+
| **currency** | **String** | | |
|
11
11
|
| **customer_id** | **String** | | [optional] |
|
12
12
|
| **description** | **String** | | [optional] |
|
13
13
|
| **device_fingerprint** | **String** | | [optional] |
|
14
14
|
| **failure_code** | **String** | | [optional] |
|
15
15
|
| **failure_message** | **String** | | [optional] |
|
16
|
-
| **id** | **String** | Charge ID |
|
17
|
-
| **livemode** | **Boolean** | Whether the charge was made in live mode or not |
|
18
|
-
| **object** | **String** | |
|
19
|
-
| **order_id** | **String** | Order ID |
|
16
|
+
| **id** | **String** | Charge ID | |
|
17
|
+
| **livemode** | **Boolean** | Whether the charge was made in live mode or not | |
|
18
|
+
| **object** | **String** | | |
|
19
|
+
| **order_id** | **String** | Order ID | |
|
20
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] |
|
24
|
-
| **status** | **String** |
|
24
|
+
| **status** | **String** | Charge status | |
|
25
25
|
|
26
26
|
## Example
|
27
27
|
|
data/docs/Checkout.md
CHANGED
@@ -23,7 +23,7 @@
|
|
23
23
|
require 'conekta'
|
24
24
|
|
25
25
|
instance = Conekta::Checkout.new(
|
26
|
-
allowed_payment_methods: ["cash","card","bank_transfer"],
|
26
|
+
allowed_payment_methods: ["cash","card","bank_transfer","bnpl"],
|
27
27
|
expires_at: 1680397724,
|
28
28
|
monthly_installments_enabled: true,
|
29
29
|
monthly_installments_options: [3,6,12],
|
data/docs/CheckoutRequest.md
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
require 'conekta'
|
23
23
|
|
24
24
|
instance = Conekta::CheckoutRequest.new(
|
25
|
-
allowed_payment_methods: ["cash","card","bank_transfer"],
|
25
|
+
allowed_payment_methods: ["cash","card","bank_transfer","bnpl"],
|
26
26
|
expires_at: null,
|
27
27
|
failure_url: null,
|
28
28
|
monthly_installments_enabled: false,
|
data/docs/CheckoutResponse.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **allowed_payment_methods** | **Array<String>** |
|
7
|
+
| **allowed_payment_methods** | **Array<String>** | Are the payment methods available for this link | [optional] |
|
8
8
|
| **can_not_expire** | **Boolean** | | [optional] |
|
9
9
|
| **emails_sent** | **Integer** | | [optional] |
|
10
10
|
| **exclude_card_networks** | **Array<Object>** | | [optional] |
|
@@ -36,7 +36,7 @@
|
|
36
36
|
require 'conekta'
|
37
37
|
|
38
38
|
instance = Conekta::CheckoutResponse.new(
|
39
|
-
allowed_payment_methods: ["cash","card","bank_transfer"],
|
39
|
+
allowed_payment_methods: ["cash","card","bank_transfer","bnpl"],
|
40
40
|
can_not_expire: false,
|
41
41
|
emails_sent: 0,
|
42
42
|
exclude_card_networks: null,
|
data/docs/CompaniesApi.md
CHANGED
@@ -84,7 +84,7 @@ end
|
|
84
84
|
### HTTP request headers
|
85
85
|
|
86
86
|
- **Content-Type**: Not defined
|
87
|
-
- **Accept**: application/vnd.conekta-v2.
|
87
|
+
- **Accept**: application/vnd.conekta-v2.2.0+json
|
88
88
|
|
89
89
|
|
90
90
|
## get_company
|
@@ -155,5 +155,5 @@ end
|
|
155
155
|
### HTTP request headers
|
156
156
|
|
157
157
|
- **Content-Type**: Not defined
|
158
|
-
- **Accept**: application/vnd.conekta-v2.
|
158
|
+
- **Accept**: application/vnd.conekta-v2.2.0+json
|
159
159
|
|
@@ -47,6 +47,7 @@ Conekta::CreateCustomerPaymentMethodsResponse.openapi_discriminator_mapping
|
|
47
47
|
# {
|
48
48
|
# :'card' => :'PaymentMethodCardResponse',
|
49
49
|
# :'cash' => :'PaymentMethodCashResponse',
|
50
|
+
# :'cash_recurrent' => :'PaymentMethodCashResponse',
|
50
51
|
# :'oxxo_recurrent' => :'PaymentMethodCashResponse',
|
51
52
|
# :'spei_recurrent' => :'PaymentMethodSpeiRecurrent'
|
52
53
|
# }
|