From cbb36a5cde3a4a57b08d7607676ae2d32e98bec8 Mon Sep 17 00:00:00 2001 From: Franklin Date: Tue, 21 Jul 2026 16:45:35 -0500 Subject: [PATCH 1/2] Update OpenAPI document version to 2.3.0 and add new models for checkout order template customer info, order response discount lines, shipping lines, and tax lines - Updated version in test files from 2.2.0 to 2.3.0 - Added new model `CheckoutOrderTemplateCustomerInfo` for customer information in checkout orders - Introduced `OrderResponseDiscountLines`, `OrderResponseShippingLines`, and `OrderResponseTaxLines` models to handle respective order details - Created corresponding documentation for the new models --- .openapi-generator/FILES | 16 +- Makefile | 2 +- README.md | 12 +- VERSION | 2 +- conekta/__init__.py | 20 +-- conekta/api/antifraud_api.py | 14 +- conekta/api/api_keys_api.py | 12 +- conekta/api/balances_api.py | 4 +- conekta/api/charges_api.py | 10 +- conekta/api/companies_api.py | 16 +- conekta/api/customers_api.py | 16 +- conekta/api/discounts_api.py | 12 +- conekta/api/events_api.py | 8 +- conekta/api/logs_api.py | 6 +- conekta/api/orders_api.py | 18 +-- conekta/api/payment_link_api.py | 14 +- conekta/api/payment_methods_api.py | 10 +- conekta/api/payout_orders_api.py | 10 +- conekta/api/plans_api.py | 12 +- conekta/api/products_api.py | 8 +- conekta/api/shipping_contacts_api.py | 8 +- conekta/api/shippings_api.py | 8 +- conekta/api/subscriptions_api.py | 34 ++--- .../api/subscriptions_customer_portal_api.py | 6 +- conekta/api/taxes_api.py | 8 +- conekta/api/tokens_api.py | 4 +- conekta/api/transactions_api.py | 6 +- conekta/api/transfers_api.py | 6 +- conekta/api/webhook_keys_api.py | 12 +- conekta/api/webhooks_api.py | 14 +- conekta/api_client.py | 6 +- conekta/configuration.py | 6 +- conekta/exceptions.py | 2 +- conekta/models/__init__.py | 10 +- conekta/models/api_key_create_response.py | 2 +- conekta/models/api_key_request.py | 2 +- conekta/models/api_key_response.py | 2 +- conekta/models/api_key_update_request.py | 2 +- .../models/balance_common_fiels_response.py | 2 +- conekta/models/balance_response.py | 2 +- conekta/models/blacklist_rule_response.py | 2 +- conekta/models/cash_agreements_response.py | 2 +- conekta/models/charge_order_response.py | 2 +- .../charge_order_response_payment_method.py | 2 +- conekta/models/charge_request.py | 2 +- .../models/charge_request_payment_method.py | 2 +- conekta/models/charge_response.py | 2 +- conekta/models/charge_response_channel.py | 2 +- .../models/charge_response_payment_method.py | 2 +- conekta/models/charge_response_refunds.py | 2 +- .../models/charge_response_refunds_data.py | 2 +- conekta/models/charge_update_request.py | 2 +- conekta/models/chargeback_file_response.py | 2 +- conekta/models/chargeback_response.py | 2 +- conekta/models/charges_data_response.py | 2 +- conekta/models/charges_order_response.py | 2 +- conekta/models/checkout.py | 19 ++- conekta/models/checkout_order_template.py | 12 +- .../checkout_order_template_customer_info.py | 138 ++++++++++++++++++ conekta/models/checkout_response.py | 17 ++- conekta/models/checkouts_response.py | 2 +- conekta/models/company_document_request.py | 2 +- conekta/models/company_document_response.py | 2 +- conekta/models/company_response.py | 2 +- conekta/models/create_company_request.py | 2 +- ...reate_company_request_bank_account_info.py | 2 +- .../create_company_request_comercial_info.py | 2 +- .../create_company_request_fiscal_info.py | 2 +- ...reate_customer_fiscal_entities_response.py | 2 +- ...create_customer_payment_methods_request.py | 2 +- ...reate_customer_payment_methods_response.py | 2 +- .../models/create_rule_whitelist_request.py | 2 +- conekta/models/customer.py | 2 +- conekta/models/customer_antifraud_info.py | 2 +- .../customer_antifraud_info_response.py | 2 +- conekta/models/customer_details.py | 2 +- .../customer_fiscal_entities_data_response.py | 2 +- .../customer_fiscal_entities_response.py | 2 +- conekta/models/customer_info.py | 2 +- conekta/models/customer_info_customer_id.py | 2 +- .../models/customer_payment_methods_data.py | 2 +- .../customer_payment_methods_request.py | 2 +- .../customer_payment_methods_response.py | 2 +- conekta/models/customer_portal_response.py | 2 +- conekta/models/customer_response.py | 8 +- .../customer_response_shipping_contacts.py | 2 +- .../customer_shipping_contacts_address.py | 2 +- ...ustomer_shipping_contacts_data_response.py | 2 +- .../customer_shipping_contacts_request.py | 4 +- ...tomer_shipping_contacts_request_address.py | 2 +- .../customer_shipping_contacts_response.py | 2 +- .../models/customer_subscription_response.py | 123 ---------------- ...stomer_update_shipping_contacts_request.py | 4 +- conekta/models/customers_response.py | 2 +- conekta/models/delete_api_keys_response.py | 2 +- .../models/deleted_blacklist_rule_response.py | 2 +- .../models/deleted_whitelist_rule_response.py | 2 +- conekta/models/details_error.py | 2 +- .../models/discount_lines_data_response.py | 2 +- conekta/models/discount_lines_response.py | 2 +- conekta/models/email_checkout_request.py | 2 +- conekta/models/error.py | 2 +- conekta/models/event_response.py | 2 +- conekta/models/event_types.py | 2 +- conekta/models/events_resend_response.py | 2 +- conekta/models/fiscal_entity_address.py | 2 +- conekta/models/fiscal_entity_request.py | 2 +- .../models/fiscal_entity_request_address.py | 2 +- conekta/models/get_api_keys_response.py | 2 +- conekta/models/get_charges_response.py | 2 +- conekta/models/get_companies_response.py | 2 +- ...t_customer_payment_method_data_response.py | 2 +- conekta/models/get_events_response.py | 2 +- .../get_order_discount_lines_response.py | 2 +- conekta/models/get_orders_response.py | 2 +- conekta/models/get_payment_method_response.py | 2 +- conekta/models/get_plans_response.py | 2 +- conekta/models/get_transactions_response.py | 2 +- conekta/models/get_transfers_response.py | 2 +- conekta/models/get_webhook_keys_response.py | 2 +- conekta/models/get_webhooks_response.py | 2 +- conekta/models/log_response_for_request.py | 8 +- conekta/models/logs_response_data.py | 8 +- conekta/models/logs_response_for_request.py | 2 +- conekta/models/order_capture_request.py | 2 +- conekta/models/order_channel_response.py | 2 +- conekta/models/order_charges_response.py | 2 +- conekta/models/order_checkout_request.py | 28 +++- .../models/order_discount_lines_request.py | 2 +- .../order_fiscal_entity_address_response.py | 2 +- conekta/models/order_fiscal_entity_request.py | 2 +- .../models/order_fiscal_entity_response.py | 2 +- conekta/models/order_next_action_response.py | 2 +- ...er_next_action_response_redirect_to_url.py | 2 +- conekta/models/order_refund_request.py | 2 +- conekta/models/order_request.py | 12 +- conekta/models/order_request_customer_info.py | 2 +- conekta/models/order_response.py | 20 +-- conekta/models/order_response_checkout.py | 21 ++- .../models/order_response_customer_info.py | 2 +- ...se.py => order_response_discount_lines.py} | 8 +- conekta/models/order_response_products.py | 2 +- .../models/order_response_shipping_contact.py | 2 +- ...se.py => order_response_shipping_lines.py} | 8 +- ...esponse.py => order_response_tax_lines.py} | 8 +- conekta/models/order_tax_request.py | 2 +- conekta/models/order_tax_response.py | 2 +- conekta/models/order_update.py | 8 +- conekta/models/order_update_customer_info.py | 2 +- .../order_update_fiscal_entity_request.py | 2 +- conekta/models/orders_update_taxes_request.py | 2 +- .../models/payment_method_bank_transfer.py | 2 +- conekta/models/payment_method_bnpl_payment.py | 2 +- conekta/models/payment_method_bnpl_request.py | 2 +- conekta/models/payment_method_card.py | 2 +- conekta/models/payment_method_card_request.py | 2 +- .../models/payment_method_card_response.py | 2 +- conekta/models/payment_method_cash.py | 2 +- .../payment_method_cash_recurrent_response.py | 2 +- conekta/models/payment_method_cash_request.py | 2 +- .../models/payment_method_cash_response.py | 2 +- .../models/payment_method_general_request.py | 2 +- conekta/models/payment_method_pbb_payment.py | 2 +- conekta/models/payment_method_pbb_request.py | 2 +- .../payment_method_spei_recurrent_response.py | 2 +- conekta/models/payment_method_spei_request.py | 2 +- .../models/payment_method_token_request.py | 4 +- conekta/models/payout.py | 2 +- conekta/models/payout_method.py | 2 +- conekta/models/payout_order_payouts_item.py | 2 +- conekta/models/payout_order_request.py | 2 +- .../payout_order_request_customer_info.py | 2 +- conekta/models/payout_order_response.py | 2 +- .../payout_order_response_customer_info.py | 2 +- conekta/models/payout_orders_response.py | 2 +- conekta/models/plan_request.py | 2 +- conekta/models/plan_response.py | 2 +- conekta/models/product.py | 2 +- conekta/models/product_data_response.py | 2 +- conekta/models/product_order_response.py | 2 +- conekta/models/resend_event_request.py | 2 +- conekta/models/risk_rules_data.py | 2 +- conekta/models/risk_rules_list.py | 2 +- .../models/shipping_lines_data_response.py | 2 +- conekta/models/shipping_order_response.py | 2 +- conekta/models/shipping_request.py | 2 +- conekta/models/sms_checkout_request.py | 2 +- conekta/models/subscription_details.py | 2 +- conekta/models/subscription_details_card.py | 2 +- conekta/models/subscription_details_plan.py | 2 +- .../models/subscription_events_response.py | 2 +- conekta/models/subscription_request.py | 2 +- conekta/models/subscription_response.py | 2 +- conekta/models/tax_lines_data_response.py | 2 +- conekta/models/token_request.py | 2 +- conekta/models/token_request_card.py | 2 +- conekta/models/token_request_checkout.py | 2 +- conekta/models/token_response.py | 2 +- conekta/models/token_response_checkout.py | 2 +- conekta/models/transaction_response.py | 2 +- .../models/transfer_destination_response.py | 2 +- conekta/models/transfer_method_response.py | 2 +- conekta/models/transfer_response.py | 2 +- conekta/models/transfers_response.py | 2 +- conekta/models/update_customer.py | 2 +- .../models/update_customer_antifraud_info.py | 2 +- ...pdate_customer_fiscal_entities_response.py | 2 +- ...pdate_customer_payment_methods_response.py | 2 +- .../models/update_fiscal_entity_request.py | 2 +- .../update_order_discount_lines_request.py | 2 +- conekta/models/update_payment_methods_card.py | 2 +- conekta/models/update_plan.py | 2 +- conekta/models/update_product.py | 2 +- conekta/models/update_webhook.py | 2 +- conekta/models/updates_a_subscription.py | 2 +- conekta/models/webhook_key_create_response.py | 2 +- conekta/models/webhook_key_delete_response.py | 2 +- conekta/models/webhook_key_request.py | 2 +- conekta/models/webhook_key_response.py | 2 +- conekta/models/webhook_key_update_request.py | 2 +- conekta/models/webhook_log.py | 2 +- conekta/models/webhook_request.py | 2 +- conekta/models/webhook_response.py | 2 +- conekta/models/whitelistlist_rule_response.py | 2 +- conekta/rest.py | 2 +- config-python.json | 7 +- docs/AntifraudApi.md | 12 +- docs/ApiKeysApi.md | 10 +- docs/BalancesApi.md | 2 +- docs/ChargesApi.md | 8 +- docs/Checkout.md | 3 +- docs/CheckoutOrderTemplate.md | 6 +- docs/CheckoutOrderTemplateCustomerInfo.md | 35 +++++ docs/CheckoutResponse.md | 1 + docs/CompaniesApi.md | 14 +- docs/CreateCustomerPaymentMethodsRequest.md | 2 +- docs/CustomerPaymentMethodsRequest.md | 2 +- docs/CustomerResponse.md | 2 +- docs/CustomerShippingContactsRequest.md | 2 +- docs/CustomerSubscriptionResponse.md | 47 ------ docs/CustomerUpdateShippingContactsRequest.md | 2 +- docs/CustomersApi.md | 14 +- docs/DiscountsApi.md | 10 +- docs/EventsApi.md | 6 +- docs/LogsApi.md | 4 +- docs/OrderCheckoutRequest.md | 5 +- docs/OrderRequest.md | 10 +- docs/OrderResponse.md | 6 +- docs/OrderResponseCheckout.md | 5 +- ...ponse.md => OrderResponseDiscountLines.md} | 16 +- ...ponse.md => OrderResponseShippingLines.md} | 16 +- ...esResponse.md => OrderResponseTaxLines.md} | 16 +- docs/OrderUpdate.md | 6 +- docs/OrdersApi.md | 16 +- docs/PaymentLinkApi.md | 12 +- docs/PaymentMethodTokenRequest.md | 2 +- docs/PaymentMethodsApi.md | 8 +- docs/PayoutOrdersApi.md | 8 +- docs/PlansApi.md | 10 +- docs/ProductsApi.md | 6 +- docs/ShippingContactsApi.md | 6 +- docs/ShippingsApi.md | 6 +- docs/SubscriptionsApi.md | 32 ++-- docs/SubscriptionsCustomerPortalApi.md | 4 +- docs/TaxesApi.md | 6 +- docs/TokensApi.md | 2 +- docs/TransactionsApi.md | 4 +- docs/TransfersApi.md | 4 +- docs/WebhookKeysApi.md | 10 +- docs/WebhooksApi.md | 12 +- pyproject.toml | 2 +- setup.py | 4 +- test/test_antifraud_api.py | 2 +- test/test_api_keys_api.py | 2 +- test/test_balances_api.py | 2 +- test/test_charges_api.py | 2 +- test/test_companies_api.py | 2 +- test/test_customers_api.py | 2 +- test/test_discounts_api.py | 2 +- test/test_events_api.py | 2 +- test/test_logs_api.py | 2 +- test/test_orders_api.py | 2 +- test/test_payment_link_api.py | 2 +- test/test_payment_methods_api.py | 2 +- test/test_payout_orders_api.py | 2 +- test/test_plans_api.py | 2 +- test/test_products_api.py | 2 +- test/test_shipping_contacts_api.py | 2 +- test/test_shippings_api.py | 2 +- test/test_subscriptions_api.py | 2 +- .../test_subscriptions_customer_portal_api.py | 2 +- test/test_taxes_api.py | 2 +- test/test_tokens_api.py | 2 +- test/test_transactions_api.py | 2 +- test/test_transfers_api.py | 2 +- test/test_webhook_keys_api.py | 2 +- test/test_webhooks_api.py | 2 +- 297 files changed, 846 insertions(+), 781 deletions(-) create mode 100644 conekta/models/checkout_order_template_customer_info.py delete mode 100644 conekta/models/customer_subscription_response.py rename conekta/models/{order_discount_lines_response.py => order_response_discount_lines.py} (94%) rename conekta/models/{order_shipping_lines_response.py => order_response_shipping_lines.py} (94%) rename conekta/models/{order_tax_lines_response.py => order_response_tax_lines.py} (94%) create mode 100644 docs/CheckoutOrderTemplateCustomerInfo.md delete mode 100644 docs/CustomerSubscriptionResponse.md rename docs/{OrderDiscountLinesResponse.md => OrderResponseDiscountLines.md} (60%) rename docs/{OrderShippingLinesResponse.md => OrderResponseShippingLines.md} (60%) rename docs/{OrderTaxLinesResponse.md => OrderResponseTaxLines.md} (64%) diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index f997640..7155bc5 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -60,6 +60,7 @@ conekta/models/charges_data_response.py conekta/models/charges_order_response.py conekta/models/checkout.py conekta/models/checkout_order_template.py +conekta/models/checkout_order_template_customer_info.py conekta/models/checkout_response.py conekta/models/checkouts_response.py conekta/models/company_document_request.py @@ -92,7 +93,6 @@ conekta/models/customer_shipping_contacts_data_response.py conekta/models/customer_shipping_contacts_request.py conekta/models/customer_shipping_contacts_request_address.py conekta/models/customer_shipping_contacts_response.py -conekta/models/customer_subscription_response.py conekta/models/customer_update_shipping_contacts_request.py conekta/models/customers_response.py conekta/models/delete_api_keys_response.py @@ -130,7 +130,6 @@ conekta/models/order_channel_response.py conekta/models/order_charges_response.py conekta/models/order_checkout_request.py conekta/models/order_discount_lines_request.py -conekta/models/order_discount_lines_response.py conekta/models/order_fiscal_entity_address_response.py conekta/models/order_fiscal_entity_request.py conekta/models/order_fiscal_entity_response.py @@ -142,10 +141,11 @@ conekta/models/order_request_customer_info.py conekta/models/order_response.py conekta/models/order_response_checkout.py conekta/models/order_response_customer_info.py +conekta/models/order_response_discount_lines.py conekta/models/order_response_products.py conekta/models/order_response_shipping_contact.py -conekta/models/order_shipping_lines_response.py -conekta/models/order_tax_lines_response.py +conekta/models/order_response_shipping_lines.py +conekta/models/order_response_tax_lines.py conekta/models/order_tax_request.py conekta/models/order_tax_response.py conekta/models/order_update.py @@ -255,6 +255,7 @@ docs/ChargesDataResponse.md docs/ChargesOrderResponse.md docs/Checkout.md docs/CheckoutOrderTemplate.md +docs/CheckoutOrderTemplateCustomerInfo.md docs/CheckoutResponse.md docs/CheckoutsResponse.md docs/CompaniesApi.md @@ -288,7 +289,6 @@ docs/CustomerShippingContactsDataResponse.md docs/CustomerShippingContactsRequest.md docs/CustomerShippingContactsRequestAddress.md docs/CustomerShippingContactsResponse.md -docs/CustomerSubscriptionResponse.md docs/CustomerUpdateShippingContactsRequest.md docs/CustomersApi.md docs/CustomersResponse.md @@ -330,7 +330,6 @@ docs/OrderChannelResponse.md docs/OrderChargesResponse.md docs/OrderCheckoutRequest.md docs/OrderDiscountLinesRequest.md -docs/OrderDiscountLinesResponse.md docs/OrderFiscalEntityAddressResponse.md docs/OrderFiscalEntityRequest.md docs/OrderFiscalEntityResponse.md @@ -342,10 +341,11 @@ docs/OrderRequestCustomerInfo.md docs/OrderResponse.md docs/OrderResponseCheckout.md docs/OrderResponseCustomerInfo.md +docs/OrderResponseDiscountLines.md docs/OrderResponseProducts.md docs/OrderResponseShippingContact.md -docs/OrderShippingLinesResponse.md -docs/OrderTaxLinesResponse.md +docs/OrderResponseShippingLines.md +docs/OrderResponseTaxLines.md docs/OrderTaxRequest.md docs/OrderTaxResponse.md docs/OrderUpdate.md diff --git a/Makefile b/Makefile index 7ed742b..ccd555c 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ python: rm -rf conekta/api && \ docker run --rm \ -v ${PWD}:/local openapitools/openapi-generator-cli:v7.24.0 generate \ - -i https://raw.githubusercontent.com/conekta/openapi/main/_build/api.yaml \ + -i https://raw.githubusercontent.com/conekta/openapi/refs/heads/release/v2.3.0/_build/api.yaml \ -g python \ -o /local \ -c /local/config-python.json \ diff --git a/README.md b/README.md index 352ad29..122ee5e 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,8 @@ Conekta sdk This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 2.2.0 -- Package version: 7.1.0 +- API version: 2.3.0 +- Package version: 9.0.0 - Generator version: 7.24.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit [https://github.com/conekta/openapi/issues](https://github.com/conekta/openapi/issues) @@ -236,6 +236,7 @@ Class | Method | HTTP request | Description - [ChargesOrderResponse](docs/ChargesOrderResponse.md) - [Checkout](docs/Checkout.md) - [CheckoutOrderTemplate](docs/CheckoutOrderTemplate.md) + - [CheckoutOrderTemplateCustomerInfo](docs/CheckoutOrderTemplateCustomerInfo.md) - [CheckoutResponse](docs/CheckoutResponse.md) - [CheckoutsResponse](docs/CheckoutsResponse.md) - [CompanyDocumentRequest](docs/CompanyDocumentRequest.md) @@ -268,7 +269,6 @@ Class | Method | HTTP request | Description - [CustomerShippingContactsRequest](docs/CustomerShippingContactsRequest.md) - [CustomerShippingContactsRequestAddress](docs/CustomerShippingContactsRequestAddress.md) - [CustomerShippingContactsResponse](docs/CustomerShippingContactsResponse.md) - - [CustomerSubscriptionResponse](docs/CustomerSubscriptionResponse.md) - [CustomerUpdateShippingContactsRequest](docs/CustomerUpdateShippingContactsRequest.md) - [CustomersResponse](docs/CustomersResponse.md) - [DeleteApiKeysResponse](docs/DeleteApiKeysResponse.md) @@ -306,7 +306,6 @@ Class | Method | HTTP request | Description - [OrderChargesResponse](docs/OrderChargesResponse.md) - [OrderCheckoutRequest](docs/OrderCheckoutRequest.md) - [OrderDiscountLinesRequest](docs/OrderDiscountLinesRequest.md) - - [OrderDiscountLinesResponse](docs/OrderDiscountLinesResponse.md) - [OrderFiscalEntityAddressResponse](docs/OrderFiscalEntityAddressResponse.md) - [OrderFiscalEntityRequest](docs/OrderFiscalEntityRequest.md) - [OrderFiscalEntityResponse](docs/OrderFiscalEntityResponse.md) @@ -318,10 +317,11 @@ Class | Method | HTTP request | Description - [OrderResponse](docs/OrderResponse.md) - [OrderResponseCheckout](docs/OrderResponseCheckout.md) - [OrderResponseCustomerInfo](docs/OrderResponseCustomerInfo.md) + - [OrderResponseDiscountLines](docs/OrderResponseDiscountLines.md) - [OrderResponseProducts](docs/OrderResponseProducts.md) - [OrderResponseShippingContact](docs/OrderResponseShippingContact.md) - - [OrderShippingLinesResponse](docs/OrderShippingLinesResponse.md) - - [OrderTaxLinesResponse](docs/OrderTaxLinesResponse.md) + - [OrderResponseShippingLines](docs/OrderResponseShippingLines.md) + - [OrderResponseTaxLines](docs/OrderResponseTaxLines.md) - [OrderTaxRequest](docs/OrderTaxRequest.md) - [OrderTaxResponse](docs/OrderTaxResponse.md) - [OrderUpdate](docs/OrderUpdate.md) diff --git a/VERSION b/VERSION index a3fcc71..f7ee066 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -7.1.0 +9.0.0 diff --git a/conekta/__init__.py b/conekta/__init__.py index 3862538..e912d56 100644 --- a/conekta/__init__.py +++ b/conekta/__init__.py @@ -7,7 +7,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -15,7 +15,7 @@ """ # noqa: E501 -__version__ = "7.1.0" +__version__ = "9.0.0" # Define package exports __all__ = [ @@ -77,6 +77,7 @@ "ChargesOrderResponse", "Checkout", "CheckoutOrderTemplate", + "CheckoutOrderTemplateCustomerInfo", "CheckoutResponse", "CheckoutsResponse", "CompanyDocumentRequest", @@ -109,7 +110,6 @@ "CustomerShippingContactsRequest", "CustomerShippingContactsRequestAddress", "CustomerShippingContactsResponse", - "CustomerSubscriptionResponse", "CustomerUpdateShippingContactsRequest", "CustomersResponse", "DeleteApiKeysResponse", @@ -147,7 +147,6 @@ "OrderChargesResponse", "OrderCheckoutRequest", "OrderDiscountLinesRequest", - "OrderDiscountLinesResponse", "OrderFiscalEntityAddressResponse", "OrderFiscalEntityRequest", "OrderFiscalEntityResponse", @@ -159,10 +158,11 @@ "OrderResponse", "OrderResponseCheckout", "OrderResponseCustomerInfo", + "OrderResponseDiscountLines", "OrderResponseProducts", "OrderResponseShippingContact", - "OrderShippingLinesResponse", - "OrderTaxLinesResponse", + "OrderResponseShippingLines", + "OrderResponseTaxLines", "OrderTaxRequest", "OrderTaxResponse", "OrderUpdate", @@ -307,6 +307,7 @@ from conekta.models.charges_order_response import ChargesOrderResponse as ChargesOrderResponse from conekta.models.checkout import Checkout as Checkout from conekta.models.checkout_order_template import CheckoutOrderTemplate as CheckoutOrderTemplate +from conekta.models.checkout_order_template_customer_info import CheckoutOrderTemplateCustomerInfo as CheckoutOrderTemplateCustomerInfo from conekta.models.checkout_response import CheckoutResponse as CheckoutResponse from conekta.models.checkouts_response import CheckoutsResponse as CheckoutsResponse from conekta.models.company_document_request import CompanyDocumentRequest as CompanyDocumentRequest @@ -339,7 +340,6 @@ from conekta.models.customer_shipping_contacts_request import CustomerShippingContactsRequest as CustomerShippingContactsRequest from conekta.models.customer_shipping_contacts_request_address import CustomerShippingContactsRequestAddress as CustomerShippingContactsRequestAddress from conekta.models.customer_shipping_contacts_response import CustomerShippingContactsResponse as CustomerShippingContactsResponse -from conekta.models.customer_subscription_response import CustomerSubscriptionResponse as CustomerSubscriptionResponse from conekta.models.customer_update_shipping_contacts_request import CustomerUpdateShippingContactsRequest as CustomerUpdateShippingContactsRequest from conekta.models.customers_response import CustomersResponse as CustomersResponse from conekta.models.delete_api_keys_response import DeleteApiKeysResponse as DeleteApiKeysResponse @@ -377,7 +377,6 @@ from conekta.models.order_charges_response import OrderChargesResponse as OrderChargesResponse from conekta.models.order_checkout_request import OrderCheckoutRequest as OrderCheckoutRequest from conekta.models.order_discount_lines_request import OrderDiscountLinesRequest as OrderDiscountLinesRequest -from conekta.models.order_discount_lines_response import OrderDiscountLinesResponse as OrderDiscountLinesResponse from conekta.models.order_fiscal_entity_address_response import OrderFiscalEntityAddressResponse as OrderFiscalEntityAddressResponse from conekta.models.order_fiscal_entity_request import OrderFiscalEntityRequest as OrderFiscalEntityRequest from conekta.models.order_fiscal_entity_response import OrderFiscalEntityResponse as OrderFiscalEntityResponse @@ -389,10 +388,11 @@ from conekta.models.order_response import OrderResponse as OrderResponse from conekta.models.order_response_checkout import OrderResponseCheckout as OrderResponseCheckout from conekta.models.order_response_customer_info import OrderResponseCustomerInfo as OrderResponseCustomerInfo +from conekta.models.order_response_discount_lines import OrderResponseDiscountLines as OrderResponseDiscountLines from conekta.models.order_response_products import OrderResponseProducts as OrderResponseProducts from conekta.models.order_response_shipping_contact import OrderResponseShippingContact as OrderResponseShippingContact -from conekta.models.order_shipping_lines_response import OrderShippingLinesResponse as OrderShippingLinesResponse -from conekta.models.order_tax_lines_response import OrderTaxLinesResponse as OrderTaxLinesResponse +from conekta.models.order_response_shipping_lines import OrderResponseShippingLines as OrderResponseShippingLines +from conekta.models.order_response_tax_lines import OrderResponseTaxLines as OrderResponseTaxLines from conekta.models.order_tax_request import OrderTaxRequest as OrderTaxRequest from conekta.models.order_tax_response import OrderTaxResponse as OrderTaxResponse from conekta.models.order_update import OrderUpdate as OrderUpdate diff --git a/conekta/api/antifraud_api.py b/conekta/api/antifraud_api.py index fad7e89..4b1f746 100644 --- a/conekta/api/antifraud_api.py +++ b/conekta/api/antifraud_api.py @@ -3,7 +3,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -295,7 +295,7 @@ def _create_rule_blacklist_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -590,7 +590,7 @@ def _create_rule_whitelist_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -900,7 +900,7 @@ def _delete_rule_blacklist_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -1200,7 +1200,7 @@ def _delete_rule_whitelist_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -1467,7 +1467,7 @@ def _get_rule_blacklist_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -1737,7 +1737,7 @@ def _get_rule_whitelist_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) diff --git a/conekta/api/api_keys_api.py b/conekta/api/api_keys_api.py index d3690db..646655a 100644 --- a/conekta/api/api_keys_api.py +++ b/conekta/api/api_keys_api.py @@ -3,7 +3,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -316,7 +316,7 @@ def _create_api_key_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -614,7 +614,7 @@ def _delete_api_key_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -914,7 +914,7 @@ def _get_api_key_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -1264,7 +1264,7 @@ def _get_api_keys_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -1564,7 +1564,7 @@ def _update_api_key_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) diff --git a/conekta/api/balances_api.py b/conekta/api/balances_api.py index 5188eec..c8381f5 100644 --- a/conekta/api/balances_api.py +++ b/conekta/api/balances_api.py @@ -3,7 +3,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -278,7 +278,7 @@ def _get_balance_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) diff --git a/conekta/api/charges_api.py b/conekta/api/charges_api.py index 8edecf8..48c7e96 100644 --- a/conekta/api/charges_api.py +++ b/conekta/api/charges_api.py @@ -3,7 +3,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -363,7 +363,7 @@ def _get_charges_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -681,7 +681,7 @@ def _orders_create_charge_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -1012,7 +1012,7 @@ def _orders_create_charges_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -1337,7 +1337,7 @@ def _update_charge_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) diff --git a/conekta/api/companies_api.py b/conekta/api/companies_api.py index b6dfdd9..c57c542 100644 --- a/conekta/api/companies_api.py +++ b/conekta/api/companies_api.py @@ -3,7 +3,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -282,7 +282,7 @@ def _create_company_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -630,7 +630,7 @@ def _get_companies_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -912,7 +912,7 @@ def _get_company_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -1197,7 +1197,7 @@ def _get_company_documents_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -1464,7 +1464,7 @@ def _get_current_company_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -1764,7 +1764,7 @@ def _update_company_document_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -2077,7 +2077,7 @@ def _upload_company_document_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) diff --git a/conekta/api/customers_api.py b/conekta/api/customers_api.py index d984def..4eee9ff 100644 --- a/conekta/api/customers_api.py +++ b/conekta/api/customers_api.py @@ -3,7 +3,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -321,7 +321,7 @@ def _create_customer_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -652,7 +652,7 @@ def _create_customer_fiscal_entities_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -968,7 +968,7 @@ def _delete_customer_by_id_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -1268,7 +1268,7 @@ def _get_customer_by_id_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -1618,7 +1618,7 @@ def _get_customers_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -1936,7 +1936,7 @@ def _update_customer_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -2282,7 +2282,7 @@ def _update_customer_fiscal_entities_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) diff --git a/conekta/api/discounts_api.py b/conekta/api/discounts_api.py index 4f8df8f..d20ea27 100644 --- a/conekta/api/discounts_api.py +++ b/conekta/api/discounts_api.py @@ -3,7 +3,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -329,7 +329,7 @@ def _orders_create_discount_line_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -660,7 +660,7 @@ def _orders_delete_discount_lines_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -978,7 +978,7 @@ def _orders_get_discount_line_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -1343,7 +1343,7 @@ def _orders_get_discount_lines_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -1676,7 +1676,7 @@ def _orders_update_discount_lines_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) diff --git a/conekta/api/events_api.py b/conekta/api/events_api.py index 3b5df2f..636833d 100644 --- a/conekta/api/events_api.py +++ b/conekta/api/events_api.py @@ -3,7 +3,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -314,7 +314,7 @@ def _get_event_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -661,7 +661,7 @@ def _get_events_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -961,7 +961,7 @@ def _resend_event_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) diff --git a/conekta/api/logs_api.py b/conekta/api/logs_api.py index a442038..9ce92cf 100644 --- a/conekta/api/logs_api.py +++ b/conekta/api/logs_api.py @@ -3,7 +3,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -312,7 +312,7 @@ def _get_log_by_id_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -662,7 +662,7 @@ def _get_logs_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) diff --git a/conekta/api/orders_api.py b/conekta/api/orders_api.py index e03419e..feaa988 100644 --- a/conekta/api/orders_api.py +++ b/conekta/api/orders_api.py @@ -3,7 +3,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -322,7 +322,7 @@ def _cancel_order_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -625,7 +625,7 @@ def _create_order_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -955,7 +955,7 @@ def _get_order_by_id_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -1424,7 +1424,7 @@ def _get_orders_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -1745,7 +1745,7 @@ def _order_cancel_refund_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -2066,7 +2066,7 @@ def _order_refund_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -2397,7 +2397,7 @@ def _orders_create_capture_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -2713,7 +2713,7 @@ def _update_order_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) diff --git a/conekta/api/payment_link_api.py b/conekta/api/payment_link_api.py index 0d3930d..590e6b1 100644 --- a/conekta/api/payment_link_api.py +++ b/conekta/api/payment_link_api.py @@ -3,7 +3,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -318,7 +318,7 @@ def _cancel_checkout_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -618,7 +618,7 @@ def _create_checkout_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -949,7 +949,7 @@ def _email_checkout_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -1265,7 +1265,7 @@ def _get_checkout_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -1621,7 +1621,7 @@ def _get_checkouts_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -1939,7 +1939,7 @@ def _sms_checkout_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) diff --git a/conekta/api/payment_methods_api.py b/conekta/api/payment_methods_api.py index 564cfc1..66904d6 100644 --- a/conekta/api/payment_methods_api.py +++ b/conekta/api/payment_methods_api.py @@ -3,7 +3,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -333,7 +333,7 @@ def _create_customer_payment_methods_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -664,7 +664,7 @@ def _delete_customer_payment_methods_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -1032,7 +1032,7 @@ def _get_customer_payment_methods_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -1365,7 +1365,7 @@ def _update_customer_payment_methods_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) diff --git a/conekta/api/payout_orders_api.py b/conekta/api/payout_orders_api.py index dd3b653..4487e25 100644 --- a/conekta/api/payout_orders_api.py +++ b/conekta/api/payout_orders_api.py @@ -3,7 +3,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -298,7 +298,7 @@ def _cancel_payout_order_by_id_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -589,7 +589,7 @@ def _create_payout_order_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -887,7 +887,7 @@ def _get_payout_order_by_id_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -1222,7 +1222,7 @@ def _get_payout_orders_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) diff --git a/conekta/api/plans_api.py b/conekta/api/plans_api.py index 899b652..ff81756 100644 --- a/conekta/api/plans_api.py +++ b/conekta/api/plans_api.py @@ -3,7 +3,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -314,7 +314,7 @@ def _create_plan_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -612,7 +612,7 @@ def _delete_plan_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -912,7 +912,7 @@ def _get_plan_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -1296,7 +1296,7 @@ def _get_plans_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -1611,7 +1611,7 @@ def _update_plan_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) diff --git a/conekta/api/products_api.py b/conekta/api/products_api.py index dd37acd..3c52437 100644 --- a/conekta/api/products_api.py +++ b/conekta/api/products_api.py @@ -3,7 +3,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -328,7 +328,7 @@ def _orders_create_product_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -659,7 +659,7 @@ def _orders_delete_product_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -992,7 +992,7 @@ def _orders_update_product_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) diff --git a/conekta/api/shipping_contacts_api.py b/conekta/api/shipping_contacts_api.py index 200e7f2..8b30879 100644 --- a/conekta/api/shipping_contacts_api.py +++ b/conekta/api/shipping_contacts_api.py @@ -3,7 +3,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -331,7 +331,7 @@ def _create_customer_shipping_contacts_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -662,7 +662,7 @@ def _delete_customer_shipping_contacts_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -995,7 +995,7 @@ def _update_customer_shipping_contacts_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) diff --git a/conekta/api/shippings_api.py b/conekta/api/shippings_api.py index d9b6694..988af35 100644 --- a/conekta/api/shippings_api.py +++ b/conekta/api/shippings_api.py @@ -3,7 +3,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -327,7 +327,7 @@ def _orders_create_shipping_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -661,7 +661,7 @@ def _orders_delete_shipping_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -994,7 +994,7 @@ def _orders_update_shipping_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) diff --git a/conekta/api/subscriptions_api.py b/conekta/api/subscriptions_api.py index c3ebf60..46378e6 100644 --- a/conekta/api/subscriptions_api.py +++ b/conekta/api/subscriptions_api.py @@ -3,7 +3,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -317,7 +317,7 @@ def _cancel_subscription_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -638,7 +638,7 @@ def _create_subscription_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -939,7 +939,7 @@ def _get_subscription_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -1248,7 +1248,7 @@ def _get_subscription_events_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -1554,7 +1554,7 @@ def _pause_subscription_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -1863,7 +1863,7 @@ def _resume_subscription_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -2178,7 +2178,7 @@ def _subscription_cancel_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -2496,7 +2496,7 @@ def _subscription_create_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -2892,7 +2892,7 @@ def _subscription_events_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -3260,7 +3260,7 @@ def _subscription_list_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -3575,7 +3575,7 @@ def _subscription_pause_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -3890,7 +3890,7 @@ def _subscription_resume_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -4223,7 +4223,7 @@ def _subscription_update_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -4551,7 +4551,7 @@ def _subscriptions_get_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -4869,7 +4869,7 @@ def _subscriptions_retry_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -5190,7 +5190,7 @@ def _update_subscription_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) diff --git a/conekta/api/subscriptions_customer_portal_api.py b/conekta/api/subscriptions_customer_portal_api.py index 5fb9128..6790826 100644 --- a/conekta/api/subscriptions_customer_portal_api.py +++ b/conekta/api/subscriptions_customer_portal_api.py @@ -3,7 +3,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -311,7 +311,7 @@ def _create_customer_portal_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -608,7 +608,7 @@ def _get_customer_portal_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) diff --git a/conekta/api/taxes_api.py b/conekta/api/taxes_api.py index 169e1b3..1b901b1 100644 --- a/conekta/api/taxes_api.py +++ b/conekta/api/taxes_api.py @@ -3,7 +3,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -328,7 +328,7 @@ def _orders_create_taxes_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -659,7 +659,7 @@ def _orders_delete_taxes_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -992,7 +992,7 @@ def _orders_update_taxes_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) diff --git a/conekta/api/tokens_api.py b/conekta/api/tokens_api.py index 2ed5b15..26f92fe 100644 --- a/conekta/api/tokens_api.py +++ b/conekta/api/tokens_api.py @@ -3,7 +3,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -297,7 +297,7 @@ def _create_token_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) diff --git a/conekta/api/transactions_api.py b/conekta/api/transactions_api.py index 50eeb27..b8a6ff7 100644 --- a/conekta/api/transactions_api.py +++ b/conekta/api/transactions_api.py @@ -3,7 +3,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -312,7 +312,7 @@ def _get_transaction_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -713,7 +713,7 @@ def _get_transactions_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) diff --git a/conekta/api/transfers_api.py b/conekta/api/transfers_api.py index 66544fb..ee9a63b 100644 --- a/conekta/api/transfers_api.py +++ b/conekta/api/transfers_api.py @@ -3,7 +3,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -312,7 +312,7 @@ def _get_transfer_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -662,7 +662,7 @@ def _get_transfers_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) diff --git a/conekta/api/webhook_keys_api.py b/conekta/api/webhook_keys_api.py index 085a64a..ce30bd2 100644 --- a/conekta/api/webhook_keys_api.py +++ b/conekta/api/webhook_keys_api.py @@ -3,7 +3,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -298,7 +298,7 @@ def _create_webhook_key_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -593,7 +593,7 @@ def _delete_webhook_key_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -890,7 +890,7 @@ def _get_webhook_key_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -1240,7 +1240,7 @@ def _get_webhook_keys_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -1540,7 +1540,7 @@ def _update_webhook_key_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) diff --git a/conekta/api/webhooks_api.py b/conekta/api/webhooks_api.py index b0bb5dc..a0b6225 100644 --- a/conekta/api/webhooks_api.py +++ b/conekta/api/webhooks_api.py @@ -3,7 +3,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -296,7 +296,7 @@ def _create_webhook_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -591,7 +591,7 @@ def _delete_webhook_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -888,7 +888,7 @@ def _get_webhook_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -1255,7 +1255,7 @@ def _get_webhooks_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -1540,7 +1540,7 @@ def _test_webhook_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) @@ -1855,7 +1855,7 @@ def _update_webhook_serialize( if 'Accept' not in _header_params: _header_params['Accept'] = self.api_client.select_header_accept( [ - 'application/vnd.conekta-v2.2.0+json' + 'application/vnd.conekta-v2.3.0+json' ] ) diff --git a/conekta/api_client.py b/conekta/api_client.py index 28f9f98..92b0592 100644 --- a/conekta/api_client.py +++ b/conekta/api_client.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -73,7 +73,7 @@ class ApiClient: 'lang': 'python', 'lang_version': platform.python_version(), 'publisher': 'conekta', - 'bindings_version': '7.1.0', + 'bindings_version': '9.0.0', 'uname': platform.uname() } _pool = None @@ -96,7 +96,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Conekta/v2 PythonBindings/7.1.0' + self.user_agent = 'Conekta/v2 PythonBindings/9.0.0' self.conekta_user_agent = json.dumps(self.data) self.client_side_validation = configuration.client_side_validation diff --git a/conekta/configuration.py b/conekta/configuration.py index 935e06a..fc93ef6 100644 --- a/conekta/configuration.py +++ b/conekta/configuration.py @@ -3,7 +3,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -550,8 +550,8 @@ def to_debug_report(self) -> str: return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 2.2.0\n"\ - "SDK Package Version: 7.1.0".\ + "Version of the API: 2.3.0\n"\ + "SDK Package Version: 9.0.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/conekta/exceptions.py b/conekta/exceptions.py index 9c86356..fd50741 100644 --- a/conekta/exceptions.py +++ b/conekta/exceptions.py @@ -3,7 +3,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/__init__.py b/conekta/models/__init__.py index 6af4e91..8d45097 100644 --- a/conekta/models/__init__.py +++ b/conekta/models/__init__.py @@ -6,7 +6,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -38,6 +38,7 @@ from conekta.models.charges_order_response import ChargesOrderResponse from conekta.models.checkout import Checkout from conekta.models.checkout_order_template import CheckoutOrderTemplate +from conekta.models.checkout_order_template_customer_info import CheckoutOrderTemplateCustomerInfo from conekta.models.checkout_response import CheckoutResponse from conekta.models.checkouts_response import CheckoutsResponse from conekta.models.company_document_request import CompanyDocumentRequest @@ -70,7 +71,6 @@ from conekta.models.customer_shipping_contacts_request import CustomerShippingContactsRequest from conekta.models.customer_shipping_contacts_request_address import CustomerShippingContactsRequestAddress from conekta.models.customer_shipping_contacts_response import CustomerShippingContactsResponse -from conekta.models.customer_subscription_response import CustomerSubscriptionResponse from conekta.models.customer_update_shipping_contacts_request import CustomerUpdateShippingContactsRequest from conekta.models.customers_response import CustomersResponse from conekta.models.delete_api_keys_response import DeleteApiKeysResponse @@ -108,7 +108,6 @@ from conekta.models.order_charges_response import OrderChargesResponse from conekta.models.order_checkout_request import OrderCheckoutRequest from conekta.models.order_discount_lines_request import OrderDiscountLinesRequest -from conekta.models.order_discount_lines_response import OrderDiscountLinesResponse from conekta.models.order_fiscal_entity_address_response import OrderFiscalEntityAddressResponse from conekta.models.order_fiscal_entity_request import OrderFiscalEntityRequest from conekta.models.order_fiscal_entity_response import OrderFiscalEntityResponse @@ -120,10 +119,11 @@ from conekta.models.order_response import OrderResponse from conekta.models.order_response_checkout import OrderResponseCheckout from conekta.models.order_response_customer_info import OrderResponseCustomerInfo +from conekta.models.order_response_discount_lines import OrderResponseDiscountLines from conekta.models.order_response_products import OrderResponseProducts from conekta.models.order_response_shipping_contact import OrderResponseShippingContact -from conekta.models.order_shipping_lines_response import OrderShippingLinesResponse -from conekta.models.order_tax_lines_response import OrderTaxLinesResponse +from conekta.models.order_response_shipping_lines import OrderResponseShippingLines +from conekta.models.order_response_tax_lines import OrderResponseTaxLines from conekta.models.order_tax_request import OrderTaxRequest from conekta.models.order_tax_response import OrderTaxResponse from conekta.models.order_update import OrderUpdate diff --git a/conekta/models/api_key_create_response.py b/conekta/models/api_key_create_response.py index 9a98463..89c54a0 100644 --- a/conekta/models/api_key_create_response.py +++ b/conekta/models/api_key_create_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/api_key_request.py b/conekta/models/api_key_request.py index 5307915..101c0ff 100644 --- a/conekta/models/api_key_request.py +++ b/conekta/models/api_key_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/api_key_response.py b/conekta/models/api_key_response.py index d2848a1..c257ef2 100644 --- a/conekta/models/api_key_response.py +++ b/conekta/models/api_key_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/api_key_update_request.py b/conekta/models/api_key_update_request.py index cd30e57..4c86b05 100644 --- a/conekta/models/api_key_update_request.py +++ b/conekta/models/api_key_update_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/balance_common_fiels_response.py b/conekta/models/balance_common_fiels_response.py index f374b20..044962c 100644 --- a/conekta/models/balance_common_fiels_response.py +++ b/conekta/models/balance_common_fiels_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/balance_response.py b/conekta/models/balance_response.py index d438c3b..a97aa4e 100644 --- a/conekta/models/balance_response.py +++ b/conekta/models/balance_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/blacklist_rule_response.py b/conekta/models/blacklist_rule_response.py index 4cca90e..1587df1 100644 --- a/conekta/models/blacklist_rule_response.py +++ b/conekta/models/blacklist_rule_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/cash_agreements_response.py b/conekta/models/cash_agreements_response.py index 1bde9a1..14b7742 100644 --- a/conekta/models/cash_agreements_response.py +++ b/conekta/models/cash_agreements_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/charge_order_response.py b/conekta/models/charge_order_response.py index a67e3dc..ed13058 100644 --- a/conekta/models/charge_order_response.py +++ b/conekta/models/charge_order_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/charge_order_response_payment_method.py b/conekta/models/charge_order_response_payment_method.py index fd023a3..894f95f 100644 --- a/conekta/models/charge_order_response_payment_method.py +++ b/conekta/models/charge_order_response_payment_method.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/charge_request.py b/conekta/models/charge_request.py index 844ed0e..979e51a 100644 --- a/conekta/models/charge_request.py +++ b/conekta/models/charge_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/charge_request_payment_method.py b/conekta/models/charge_request_payment_method.py index d81865f..116cfd2 100644 --- a/conekta/models/charge_request_payment_method.py +++ b/conekta/models/charge_request_payment_method.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/charge_response.py b/conekta/models/charge_response.py index 5a14bc4..4b61472 100644 --- a/conekta/models/charge_response.py +++ b/conekta/models/charge_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/charge_response_channel.py b/conekta/models/charge_response_channel.py index ee1d720..5deb1d4 100644 --- a/conekta/models/charge_response_channel.py +++ b/conekta/models/charge_response_channel.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/charge_response_payment_method.py b/conekta/models/charge_response_payment_method.py index 8f46c63..589a6cd 100644 --- a/conekta/models/charge_response_payment_method.py +++ b/conekta/models/charge_response_payment_method.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/charge_response_refunds.py b/conekta/models/charge_response_refunds.py index 03ac566..e173b65 100644 --- a/conekta/models/charge_response_refunds.py +++ b/conekta/models/charge_response_refunds.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/charge_response_refunds_data.py b/conekta/models/charge_response_refunds_data.py index e1d16a8..4bc512c 100644 --- a/conekta/models/charge_response_refunds_data.py +++ b/conekta/models/charge_response_refunds_data.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/charge_update_request.py b/conekta/models/charge_update_request.py index 2632ee6..f609d47 100644 --- a/conekta/models/charge_update_request.py +++ b/conekta/models/charge_update_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/chargeback_file_response.py b/conekta/models/chargeback_file_response.py index fa320d7..a8d33c7 100644 --- a/conekta/models/chargeback_file_response.py +++ b/conekta/models/chargeback_file_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/chargeback_response.py b/conekta/models/chargeback_response.py index 7602086..3189e06 100644 --- a/conekta/models/chargeback_response.py +++ b/conekta/models/chargeback_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/charges_data_response.py b/conekta/models/charges_data_response.py index c8966db..f2dd102 100644 --- a/conekta/models/charges_data_response.py +++ b/conekta/models/charges_data_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/charges_order_response.py b/conekta/models/charges_order_response.py index 205789e..b3380e8 100644 --- a/conekta/models/charges_order_response.py +++ b/conekta/models/charges_order_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/checkout.py b/conekta/models/checkout.py index 22139fa..35d5db3 100644 --- a/conekta/models/checkout.py +++ b/conekta/models/checkout.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -30,7 +30,8 @@ class Checkout(BaseModel): """ It is a sub-resource of the Order model that can be stipulated in order to configure its corresponding checkout """ # noqa: E501 - allowed_payment_methods: List[StrictStr] = Field(description="Those are the payment methods that will be available for the link", json_schema_extra={"examples": [["cash", "card", "bank_transfer", "bnpl", "pay_by_bank"]]}) + allowed_payment_methods: Optional[List[StrictStr]] = Field(default=None, description="Those are the payment methods that will be available for the link. This field is mutually exclusive with excluded_payment_methods.", json_schema_extra={"examples": [["cash", "card", "bank_transfer", "bnpl", "pay_by_bank"]]}) + excluded_payment_methods: Optional[List[StrictStr]] = Field(default=None, description="Payment methods to be excluded from the checkout. This field is mutually exclusive with allowed_payment_methods.", json_schema_extra={"examples": [["cash", "bank_transfer"]]}) exclude_card_networks: Optional[List[StrictStr]] = Field(default=None, description="List of card networks to exclude from the checkout. This field is only applicable for card payments.", json_schema_extra={"examples": [["visa", "amex"]]}) expires_at: Annotated[int, Field(strict=True, ge=1)] = Field(description="It is the time when the link will expire. It is expressed in seconds since the Unix epoch. The valid range is from 5 minutes to 365 days from the creation date. ", json_schema_extra={"examples": [1680397724]}) monthly_installments_enabled: Optional[StrictBool] = Field(default=None, description="This flag allows you to specify if months without interest will be active.", json_schema_extra={"examples": [True]}) @@ -45,7 +46,18 @@ class Checkout(BaseModel): success_url: Optional[StrictStr] = Field(default=None, description="The URL to redirect to after a successful payment.", json_schema_extra={"examples": ["https://www.conekta.com/success"]}) recurrent: StrictBool = Field(description="false: single use. true: multiple payments", json_schema_extra={"examples": [False]}) type: StrictStr = Field(description="It is the type of link that will be created. It must be a valid type.", json_schema_extra={"examples": ["PaymentLink"]}) - __properties: ClassVar[List[str]] = ["allowed_payment_methods", "exclude_card_networks", "expires_at", "monthly_installments_enabled", "monthly_installments_options", "three_ds_mode", "name", "needs_shipping_contact", "on_demand_enabled", "plan_ids", "order_template", "payments_limit_count", "success_url", "recurrent", "type"] + __properties: ClassVar[List[str]] = ["allowed_payment_methods", "excluded_payment_methods", "exclude_card_networks", "expires_at", "monthly_installments_enabled", "monthly_installments_options", "three_ds_mode", "name", "needs_shipping_contact", "on_demand_enabled", "plan_ids", "order_template", "payments_limit_count", "success_url", "recurrent", "type"] + + @field_validator('excluded_payment_methods') + def excluded_payment_methods_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['cash', 'card', 'bank_transfer', 'bnpl', 'pay_by_bank']): + raise ValueError("each list item must be one of ('cash', 'card', 'bank_transfer', 'bnpl', 'pay_by_bank')") + return value @field_validator('exclude_card_networks') def exclude_card_networks_validate_enum(cls, value): @@ -113,6 +125,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "allowed_payment_methods": obj.get("allowed_payment_methods"), + "excluded_payment_methods": obj.get("excluded_payment_methods"), "exclude_card_networks": obj.get("exclude_card_networks"), "expires_at": obj.get("expires_at"), "monthly_installments_enabled": obj.get("monthly_installments_enabled"), diff --git a/conekta/models/checkout_order_template.py b/conekta/models/checkout_order_template.py index 01151a8..9003638 100644 --- a/conekta/models/checkout_order_template.py +++ b/conekta/models/checkout_order_template.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -21,8 +21,8 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated +from conekta.models.checkout_order_template_customer_info import CheckoutOrderTemplateCustomerInfo from conekta.models.order_discount_lines_request import OrderDiscountLinesRequest -from conekta.models.order_request_customer_info import OrderRequestCustomerInfo from conekta.models.order_tax_request import OrderTaxRequest from conekta.models.product import Product from typing import Optional, Set @@ -34,11 +34,11 @@ class CheckoutOrderTemplate(BaseModel): It maintains the attributes with which the order will be created when receiving a new payment. """ # noqa: E501 currency: Annotated[str, Field(strict=True, max_length=3)] = Field(description="It is the currency in which the order will be created. It must be a valid ISO 4217 currency code.", json_schema_extra={"examples": ["MXN"]}) - customer_info: Optional[OrderRequestCustomerInfo] = None + customer_info: Optional[CheckoutOrderTemplateCustomerInfo] = None line_items: List[Product] = Field(description="They are the products to buy. Each contains the \"unit price\" and \"quantity\" parameters that are used to calculate the total amount of the order.") metadata: Optional[Dict[str, Any]] = Field(default=None, description="It is a set of key-value pairs that you can attach to the order. It can be used to store additional information about the order in a structured format.", json_schema_extra={"examples": [{"key": "value"}]}) - tax_lines: Optional[List[OrderTaxRequest]] = Field(default=None, description="List of [taxes](https://developers.conekta.com/v2.2.0/reference/orderscreatetaxes) that are applied to the order.") - discount_lines: Optional[List[OrderDiscountLinesRequest]] = Field(default=None, description="List of [discounts](https://developers.conekta.com/v2.2.0/reference/orderscreatediscountline) that are applied to the order.") + tax_lines: Optional[List[OrderTaxRequest]] = Field(default=None, description="List of [taxes](https://developers.conekta.com/v2.3.0/reference/orderscreatetaxes) that are applied to the order.") + discount_lines: Optional[List[OrderDiscountLinesRequest]] = Field(default=None, description="List of [discounts](https://developers.conekta.com/v2.3.0/reference/orderscreatediscountline) that are applied to the order.") __properties: ClassVar[List[str]] = ["currency", "customer_info", "line_items", "metadata", "tax_lines", "discount_lines"] model_config = ConfigDict( @@ -117,7 +117,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "currency": obj.get("currency"), - "customer_info": OrderRequestCustomerInfo.from_dict(obj["customer_info"]) if obj.get("customer_info") is not None else None, + "customer_info": CheckoutOrderTemplateCustomerInfo.from_dict(obj["customer_info"]) if obj.get("customer_info") is not None else None, "line_items": [Product.from_dict(_item) for _item in obj["line_items"]] if obj.get("line_items") is not None else None, "metadata": obj.get("metadata"), "tax_lines": [OrderTaxRequest.from_dict(_item) for _item in obj["tax_lines"]] if obj.get("tax_lines") is not None else None, diff --git a/conekta/models/checkout_order_template_customer_info.py b/conekta/models/checkout_order_template_customer_info.py new file mode 100644 index 0000000..3c261f1 --- /dev/null +++ b/conekta/models/checkout_order_template_customer_info.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +""" + Conekta API + + Conekta sdk + + The version of the OpenAPI document: 2.3.0 + Contact: engineering@conekta.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from conekta.models.customer_info import CustomerInfo +from conekta.models.customer_info_customer_id import CustomerInfoCustomerId +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +CHECKOUTORDERTEMPLATECUSTOMERINFO_ONE_OF_SCHEMAS = ["CustomerInfo", "CustomerInfoCustomerId"] + +class CheckoutOrderTemplateCustomerInfo(BaseModel): + """ + It is the information of the customer who will be created when receiving a new payment. + """ + # data type: CustomerInfo + oneof_schema_1_validator: Optional[CustomerInfo] = None + # data type: CustomerInfoCustomerId + oneof_schema_2_validator: Optional[CustomerInfoCustomerId] = None + actual_instance: Optional[Union[CustomerInfo, CustomerInfoCustomerId]] = None + one_of_schemas: Set[str] = { "CustomerInfo", "CustomerInfoCustomerId" } + + model_config = ConfigDict( + validate_assignment=True, + protected_namespaces=(), + ) + + + def __init__(self, *args, **kwargs) -> None: + if args: + if len(args) > 1: + raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") + if kwargs: + raise ValueError("If a position argument is used, keyword arguments cannot be used.") + super().__init__(actual_instance=args[0]) + else: + super().__init__(**kwargs) + + @field_validator('actual_instance') + def actual_instance_must_validate_oneof(cls, v): + instance = CheckoutOrderTemplateCustomerInfo.model_construct() + error_messages = [] + match = 0 + # validate data type: CustomerInfo + if not isinstance(v, CustomerInfo): + error_messages.append(f"Error! Input type `{type(v)}` is not `CustomerInfo`") + else: + match += 1 + # validate data type: CustomerInfoCustomerId + if not isinstance(v, CustomerInfoCustomerId): + error_messages.append(f"Error! Input type `{type(v)}` is not `CustomerInfoCustomerId`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in CheckoutOrderTemplateCustomerInfo with oneOf schemas: CustomerInfo, CustomerInfoCustomerId. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in CheckoutOrderTemplateCustomerInfo with oneOf schemas: CustomerInfo, CustomerInfoCustomerId. Details: " + ", ".join(error_messages)) + else: + return v + + @classmethod + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Returns the object represented by the json string""" + instance = cls.model_construct() + error_messages = [] + match = 0 + + # deserialize data into CustomerInfo + try: + instance.actual_instance = CustomerInfo.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into CustomerInfoCustomerId + try: + instance.actual_instance = CustomerInfoCustomerId.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when deserializing the JSON string into CheckoutOrderTemplateCustomerInfo with oneOf schemas: CustomerInfo, CustomerInfoCustomerId. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into CheckoutOrderTemplateCustomerInfo with oneOf schemas: CustomerInfo, CustomerInfoCustomerId. Details: " + ", ".join(error_messages)) + else: + return instance + + def to_json(self) -> str: + """Returns the JSON representation of the actual instance""" + if self.actual_instance is None: + return "null" + + if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): + return self.actual_instance.to_json() + else: + return json.dumps(self.actual_instance) + + def to_dict(self) -> Optional[Union[Dict[str, Any], CustomerInfo, CustomerInfoCustomerId]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: + return None + + if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): + return self.actual_instance.to_dict() + else: + # primitive type + return self.actual_instance + + def to_str(self) -> str: + """Returns the string representation of the actual instance""" + return pprint.pformat(self.model_dump()) + + diff --git a/conekta/models/checkout_response.py b/conekta/models/checkout_response.py index 3982d87..6137f88 100644 --- a/conekta/models/checkout_response.py +++ b/conekta/models/checkout_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -29,6 +29,7 @@ class CheckoutResponse(BaseModel): checkout response """ # noqa: E501 allowed_payment_methods: Optional[List[StrictStr]] = Field(default=None, description="Are the payment methods available for this link", json_schema_extra={"examples": [["cash", "card", "bank_transfer", "bnpl", "pay_by_bank"]]}) + excluded_payment_methods: Optional[List[StrictStr]] = Field(default=None, description="Payment methods excluded from the checkout. This field is only returned when excluded_payment_methods is provided in the request.", json_schema_extra={"examples": [["cash", "bank_transfer"]]}) plan_ids: Optional[List[StrictStr]] = Field(default=None, description="List of plan IDs that are available for subscription", json_schema_extra={"examples": [["plan_123", "plan_456"]]}) can_not_expire: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [False]}) emails_sent: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [0]}) @@ -54,7 +55,18 @@ class CheckoutResponse(BaseModel): success_url: Optional[StrictStr] = Field(default=None, description="The URL to redirect to after a successful payment.", json_schema_extra={"examples": ["https://pay.conekta.com/success"]}) type: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["PaymentLink"]}) url: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["https://pay.conekta.com/link/b0bf16c418b9445eba2401604f329dbf"]}) - __properties: ClassVar[List[str]] = ["allowed_payment_methods", "plan_ids", "can_not_expire", "emails_sent", "exclude_card_networks", "expires_at", "failure_url", "force_3ds_flow", "id", "livemode", "metadata", "monthly_installments_enabled", "monthly_installments_options", "name", "needs_shipping_contact", "object", "paid_payments_count", "payments_limit_count", "recurrent", "slug", "sms_sent", "starts_at", "status", "success_url", "type", "url"] + __properties: ClassVar[List[str]] = ["allowed_payment_methods", "excluded_payment_methods", "plan_ids", "can_not_expire", "emails_sent", "exclude_card_networks", "expires_at", "failure_url", "force_3ds_flow", "id", "livemode", "metadata", "monthly_installments_enabled", "monthly_installments_options", "name", "needs_shipping_contact", "object", "paid_payments_count", "payments_limit_count", "recurrent", "slug", "sms_sent", "starts_at", "status", "success_url", "type", "url"] + + @field_validator('excluded_payment_methods') + def excluded_payment_methods_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['cash', 'card', 'bank_transfer', 'bnpl', 'pay_by_bank']): + raise ValueError("each list item must be one of ('cash', 'card', 'bank_transfer', 'bnpl', 'pay_by_bank')") + return value @field_validator('exclude_card_networks') def exclude_card_networks_validate_enum(cls, value): @@ -119,6 +131,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "allowed_payment_methods": obj.get("allowed_payment_methods"), + "excluded_payment_methods": obj.get("excluded_payment_methods"), "plan_ids": obj.get("plan_ids"), "can_not_expire": obj.get("can_not_expire"), "emails_sent": obj.get("emails_sent"), diff --git a/conekta/models/checkouts_response.py b/conekta/models/checkouts_response.py index 2bcac3d..d0b9e96 100644 --- a/conekta/models/checkouts_response.py +++ b/conekta/models/checkouts_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/company_document_request.py b/conekta/models/company_document_request.py index a7e3d97..7f36f6c 100644 --- a/conekta/models/company_document_request.py +++ b/conekta/models/company_document_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/company_document_response.py b/conekta/models/company_document_response.py index 97b723e..0b94198 100644 --- a/conekta/models/company_document_response.py +++ b/conekta/models/company_document_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/company_response.py b/conekta/models/company_response.py index 0abdc1f..ed710ea 100644 --- a/conekta/models/company_response.py +++ b/conekta/models/company_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/create_company_request.py b/conekta/models/create_company_request.py index 2c7dc12..f4b2517 100644 --- a/conekta/models/create_company_request.py +++ b/conekta/models/create_company_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/create_company_request_bank_account_info.py b/conekta/models/create_company_request_bank_account_info.py index fd79774..c6ee575 100644 --- a/conekta/models/create_company_request_bank_account_info.py +++ b/conekta/models/create_company_request_bank_account_info.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/create_company_request_comercial_info.py b/conekta/models/create_company_request_comercial_info.py index 106943a..0853ee1 100644 --- a/conekta/models/create_company_request_comercial_info.py +++ b/conekta/models/create_company_request_comercial_info.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/create_company_request_fiscal_info.py b/conekta/models/create_company_request_fiscal_info.py index a9a0481..a9396f3 100644 --- a/conekta/models/create_company_request_fiscal_info.py +++ b/conekta/models/create_company_request_fiscal_info.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/create_customer_fiscal_entities_response.py b/conekta/models/create_customer_fiscal_entities_response.py index 3229d86..c8558d6 100644 --- a/conekta/models/create_customer_fiscal_entities_response.py +++ b/conekta/models/create_customer_fiscal_entities_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/create_customer_payment_methods_request.py b/conekta/models/create_customer_payment_methods_request.py index 1ce44ea..a47931e 100644 --- a/conekta/models/create_customer_payment_methods_request.py +++ b/conekta/models/create_customer_payment_methods_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/create_customer_payment_methods_response.py b/conekta/models/create_customer_payment_methods_response.py index 385592f..40f5f58 100644 --- a/conekta/models/create_customer_payment_methods_response.py +++ b/conekta/models/create_customer_payment_methods_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/create_rule_whitelist_request.py b/conekta/models/create_rule_whitelist_request.py index d32f69f..3493d74 100644 --- a/conekta/models/create_rule_whitelist_request.py +++ b/conekta/models/create_rule_whitelist_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/customer.py b/conekta/models/customer.py index 0639b6c..605ece0 100644 --- a/conekta/models/customer.py +++ b/conekta/models/customer.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/customer_antifraud_info.py b/conekta/models/customer_antifraud_info.py index d41a1b1..f1b0442 100644 --- a/conekta/models/customer_antifraud_info.py +++ b/conekta/models/customer_antifraud_info.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/customer_antifraud_info_response.py b/conekta/models/customer_antifraud_info_response.py index fe9c9ba..a5947a9 100644 --- a/conekta/models/customer_antifraud_info_response.py +++ b/conekta/models/customer_antifraud_info_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/customer_details.py b/conekta/models/customer_details.py index 3a385f9..f63fb0f 100644 --- a/conekta/models/customer_details.py +++ b/conekta/models/customer_details.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/customer_fiscal_entities_data_response.py b/conekta/models/customer_fiscal_entities_data_response.py index 3874530..67d80b2 100644 --- a/conekta/models/customer_fiscal_entities_data_response.py +++ b/conekta/models/customer_fiscal_entities_data_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/customer_fiscal_entities_response.py b/conekta/models/customer_fiscal_entities_response.py index 630450a..191064b 100644 --- a/conekta/models/customer_fiscal_entities_response.py +++ b/conekta/models/customer_fiscal_entities_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/customer_info.py b/conekta/models/customer_info.py index 0425d9a..323d328 100644 --- a/conekta/models/customer_info.py +++ b/conekta/models/customer_info.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/customer_info_customer_id.py b/conekta/models/customer_info_customer_id.py index d3443e2..f0411ce 100644 --- a/conekta/models/customer_info_customer_id.py +++ b/conekta/models/customer_info_customer_id.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/customer_payment_methods_data.py b/conekta/models/customer_payment_methods_data.py index bd5db9a..2c9aabe 100644 --- a/conekta/models/customer_payment_methods_data.py +++ b/conekta/models/customer_payment_methods_data.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/customer_payment_methods_request.py b/conekta/models/customer_payment_methods_request.py index b449a5e..1973833 100644 --- a/conekta/models/customer_payment_methods_request.py +++ b/conekta/models/customer_payment_methods_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/customer_payment_methods_response.py b/conekta/models/customer_payment_methods_response.py index 4881508..674da28 100644 --- a/conekta/models/customer_payment_methods_response.py +++ b/conekta/models/customer_payment_methods_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/customer_portal_response.py b/conekta/models/customer_portal_response.py index 33fc6aa..439ee01 100644 --- a/conekta/models/customer_portal_response.py +++ b/conekta/models/customer_portal_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/customer_response.py b/conekta/models/customer_response.py index 4366d68..c29399d 100644 --- a/conekta/models/customer_response.py +++ b/conekta/models/customer_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -24,7 +24,7 @@ from conekta.models.customer_fiscal_entities_response import CustomerFiscalEntitiesResponse from conekta.models.customer_payment_methods_response import CustomerPaymentMethodsResponse from conekta.models.customer_response_shipping_contacts import CustomerResponseShippingContacts -from conekta.models.customer_subscription_response import CustomerSubscriptionResponse +from conekta.models.subscription_response import SubscriptionResponse from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -52,7 +52,7 @@ class CustomerResponse(BaseModel): payment_sources: Optional[CustomerPaymentMethodsResponse] = None phone: Optional[StrictStr] = Field(default=None, description="Customer's phone number", json_schema_extra={"examples": ["+5215555555555"]}) shipping_contacts: Optional[CustomerResponseShippingContacts] = None - subscription: Optional[CustomerSubscriptionResponse] = None + subscription: Optional[SubscriptionResponse] = None __properties: ClassVar[List[str]] = ["antifraud_info", "corporate", "created_at", "custom_reference", "date_of_birth", "default_fiscal_entity_id", "default_shipping_contact_id", "default_payment_source_id", "email", "fiscal_entities", "id", "livemode", "name", "national_id", "metadata", "object", "payment_sources", "phone", "shipping_contacts", "subscription"] model_config = ConfigDict( @@ -140,7 +140,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "payment_sources": CustomerPaymentMethodsResponse.from_dict(obj["payment_sources"]) if obj.get("payment_sources") is not None else None, "phone": obj.get("phone"), "shipping_contacts": CustomerResponseShippingContacts.from_dict(obj["shipping_contacts"]) if obj.get("shipping_contacts") is not None else None, - "subscription": CustomerSubscriptionResponse.from_dict(obj["subscription"]) if obj.get("subscription") is not None else None + "subscription": SubscriptionResponse.from_dict(obj["subscription"]) if obj.get("subscription") is not None else None }) return _obj diff --git a/conekta/models/customer_response_shipping_contacts.py b/conekta/models/customer_response_shipping_contacts.py index 0e8ce3f..e2a4553 100644 --- a/conekta/models/customer_response_shipping_contacts.py +++ b/conekta/models/customer_response_shipping_contacts.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/customer_shipping_contacts_address.py b/conekta/models/customer_shipping_contacts_address.py index 5e0a4be..1ca4512 100644 --- a/conekta/models/customer_shipping_contacts_address.py +++ b/conekta/models/customer_shipping_contacts_address.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/customer_shipping_contacts_data_response.py b/conekta/models/customer_shipping_contacts_data_response.py index 8f6b0d5..2048f0d 100644 --- a/conekta/models/customer_shipping_contacts_data_response.py +++ b/conekta/models/customer_shipping_contacts_data_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/customer_shipping_contacts_request.py b/conekta/models/customer_shipping_contacts_request.py index a363166..7914d4f 100644 --- a/conekta/models/customer_shipping_contacts_request.py +++ b/conekta/models/customer_shipping_contacts_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -27,7 +27,7 @@ class CustomerShippingContactsRequest(BaseModel): """ - [Shipping](https://developers.conekta.com/v2.2.0/reference/createcustomershippingcontacts) details, required in case of sending a shipping. If we do not receive a shipping_contact on the order, the default shipping_contact of the customer will be used. + [Shipping](https://developers.conekta.com/v2.3.0/reference/createcustomershippingcontacts) details, required in case of sending a shipping. If we do not receive a shipping_contact on the order, the default shipping_contact of the customer will be used. """ # noqa: E501 phone: Optional[StrictStr] = Field(default=None, description="Phone contact", json_schema_extra={"examples": ["+525511223344"]}) receiver: Optional[StrictStr] = Field(default=None, description="Name of the person who will receive the order", json_schema_extra={"examples": ["Marvin Fuller"]}) diff --git a/conekta/models/customer_shipping_contacts_request_address.py b/conekta/models/customer_shipping_contacts_request_address.py index bf12bf0..3266cad 100644 --- a/conekta/models/customer_shipping_contacts_request_address.py +++ b/conekta/models/customer_shipping_contacts_request_address.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/customer_shipping_contacts_response.py b/conekta/models/customer_shipping_contacts_response.py index ea00522..6e1416a 100644 --- a/conekta/models/customer_shipping_contacts_response.py +++ b/conekta/models/customer_shipping_contacts_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/customer_subscription_response.py b/conekta/models/customer_subscription_response.py deleted file mode 100644 index 7c7e579..0000000 --- a/conekta/models/customer_subscription_response.py +++ /dev/null @@ -1,123 +0,0 @@ -# coding: utf-8 - -""" - Conekta API - - Conekta sdk - - The version of the OpenAPI document: 2.2.0 - Contact: engineering@conekta.com - Generated by OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -import pprint -import re # noqa: F401 -import json - -from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr -from typing import Any, ClassVar, Dict, List, Optional -from typing import Optional, Set -from typing_extensions import Self -from pydantic_core import to_jsonable_python - -class CustomerSubscriptionResponse(BaseModel): - """ - subscription model - """ # noqa: E501 - billing_cycle_start: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1677626827]}) - billing_cycle_end: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1677626827]}) - canceled_at: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1678258162]}) - canceled_reason: Optional[StrictStr] = Field(default=None, description="Reason for cancellation. This field appears when the subscription status is 'canceled'.", json_schema_extra={"examples": ["user_cancelation"]}) - card_id: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["src_2tKcHxhTz7xU5SymL"]}) - charge_id: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["2tKcHxhTz7xU5SymL"]}) - created_at: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1677626837]}) - customer_custom_reference: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["dotnet_123456"]}) - customer_id: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["cus_2tKcHxhTz7xU5SymF"]}) - id: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["gold-plan"]}) - last_billing_cycle_order_id: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ord_2tSoMP7bZJbLiq4z8"]}) - object: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["subscription"]}) - paused_at: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1678258162]}) - plan_id: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["plan_2tXx672QLQ68CkmMn"]}) - status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["past_due"]}) - subscription_start: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1677626837]}) - trial_start: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1677626837]}) - trial_end: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [1677626837]}) - __properties: ClassVar[List[str]] = ["billing_cycle_start", "billing_cycle_end", "canceled_at", "canceled_reason", "card_id", "charge_id", "created_at", "customer_custom_reference", "customer_id", "id", "last_billing_cycle_order_id", "object", "paused_at", "plan_id", "status", "subscription_start", "trial_start", "trial_end"] - - model_config = ConfigDict( - validate_by_name=True, - validate_by_alias=True, - validate_assignment=True, - protected_namespaces=(), - ) - - - def to_str(self) -> str: - """Returns the string representation of the model using alias""" - return pprint.pformat(self.model_dump(by_alias=True)) - - def to_json(self) -> str: - """Returns the JSON representation of the model using alias""" - return json.dumps(to_jsonable_python(self.to_dict())) - - @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of CustomerSubscriptionResponse from a JSON string""" - return cls.from_dict(json.loads(json_str)) - - def to_dict(self) -> Dict[str, Any]: - """Return the dictionary representation of the model using alias. - - This has the following differences from calling pydantic's - `self.model_dump(by_alias=True)`: - - * `None` is only added to the output dict for nullable fields that - were set at model initialization. Other fields with value `None` - are ignored. - """ - excluded_fields: Set[str] = set([ - ]) - - _dict = self.model_dump( - by_alias=True, - exclude=excluded_fields, - exclude_none=True, - ) - return _dict - - @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of CustomerSubscriptionResponse from a dict""" - if obj is None: - return None - - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "billing_cycle_start": obj.get("billing_cycle_start"), - "billing_cycle_end": obj.get("billing_cycle_end"), - "canceled_at": obj.get("canceled_at"), - "canceled_reason": obj.get("canceled_reason"), - "card_id": obj.get("card_id"), - "charge_id": obj.get("charge_id"), - "created_at": obj.get("created_at"), - "customer_custom_reference": obj.get("customer_custom_reference"), - "customer_id": obj.get("customer_id"), - "id": obj.get("id"), - "last_billing_cycle_order_id": obj.get("last_billing_cycle_order_id"), - "object": obj.get("object"), - "paused_at": obj.get("paused_at"), - "plan_id": obj.get("plan_id"), - "status": obj.get("status"), - "subscription_start": obj.get("subscription_start"), - "trial_start": obj.get("trial_start"), - "trial_end": obj.get("trial_end") - }) - return _obj - - diff --git a/conekta/models/customer_update_shipping_contacts_request.py b/conekta/models/customer_update_shipping_contacts_request.py index 4a3a4ad..9f47992 100644 --- a/conekta/models/customer_update_shipping_contacts_request.py +++ b/conekta/models/customer_update_shipping_contacts_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -27,7 +27,7 @@ class CustomerUpdateShippingContactsRequest(BaseModel): """ - [Shipping](https://developers.conekta.com/v2.2.0/reference/createcustomershippingcontacts) details, required in case of sending a shipping. If we do not receive a shipping_contact on the order, the default shipping_contact of the customer will be used. + [Shipping](https://developers.conekta.com/v2.3.0/reference/createcustomershippingcontacts) details, required in case of sending a shipping. If we do not receive a shipping_contact on the order, the default shipping_contact of the customer will be used. """ # noqa: E501 phone: Optional[StrictStr] = Field(default=None, description="Phone contact", json_schema_extra={"examples": ["+525511223344"]}) receiver: Optional[StrictStr] = Field(default=None, description="Name of the person who will receive the order", json_schema_extra={"examples": ["Marvin Fuller"]}) diff --git a/conekta/models/customers_response.py b/conekta/models/customers_response.py index 4432e7f..3c3ce66 100644 --- a/conekta/models/customers_response.py +++ b/conekta/models/customers_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/delete_api_keys_response.py b/conekta/models/delete_api_keys_response.py index 674092a..329a12c 100644 --- a/conekta/models/delete_api_keys_response.py +++ b/conekta/models/delete_api_keys_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/deleted_blacklist_rule_response.py b/conekta/models/deleted_blacklist_rule_response.py index 9e728f9..0236ffe 100644 --- a/conekta/models/deleted_blacklist_rule_response.py +++ b/conekta/models/deleted_blacklist_rule_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/deleted_whitelist_rule_response.py b/conekta/models/deleted_whitelist_rule_response.py index cefbd7d..316a02c 100644 --- a/conekta/models/deleted_whitelist_rule_response.py +++ b/conekta/models/deleted_whitelist_rule_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/details_error.py b/conekta/models/details_error.py index b02c668..88a3c2b 100644 --- a/conekta/models/details_error.py +++ b/conekta/models/details_error.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/discount_lines_data_response.py b/conekta/models/discount_lines_data_response.py index 3afc6d2..cf8938c 100644 --- a/conekta/models/discount_lines_data_response.py +++ b/conekta/models/discount_lines_data_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/discount_lines_response.py b/conekta/models/discount_lines_response.py index cb1d575..61c1209 100644 --- a/conekta/models/discount_lines_response.py +++ b/conekta/models/discount_lines_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/email_checkout_request.py b/conekta/models/email_checkout_request.py index ca7aa16..3bfc30f 100644 --- a/conekta/models/email_checkout_request.py +++ b/conekta/models/email_checkout_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/error.py b/conekta/models/error.py index a93508e..f90db23 100644 --- a/conekta/models/error.py +++ b/conekta/models/error.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/event_response.py b/conekta/models/event_response.py index 6a07ead..a111803 100644 --- a/conekta/models/event_response.py +++ b/conekta/models/event_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/event_types.py b/conekta/models/event_types.py index 40b6230..fa6a37f 100644 --- a/conekta/models/event_types.py +++ b/conekta/models/event_types.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/events_resend_response.py b/conekta/models/events_resend_response.py index c0fde0b..c64bf69 100644 --- a/conekta/models/events_resend_response.py +++ b/conekta/models/events_resend_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/fiscal_entity_address.py b/conekta/models/fiscal_entity_address.py index 843c325..777a078 100644 --- a/conekta/models/fiscal_entity_address.py +++ b/conekta/models/fiscal_entity_address.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/fiscal_entity_request.py b/conekta/models/fiscal_entity_request.py index 7beaf8a..38fa87e 100644 --- a/conekta/models/fiscal_entity_request.py +++ b/conekta/models/fiscal_entity_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/fiscal_entity_request_address.py b/conekta/models/fiscal_entity_request_address.py index 47c5ab4..3f8b2bb 100644 --- a/conekta/models/fiscal_entity_request_address.py +++ b/conekta/models/fiscal_entity_request_address.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/get_api_keys_response.py b/conekta/models/get_api_keys_response.py index cd0c28c..78a6b05 100644 --- a/conekta/models/get_api_keys_response.py +++ b/conekta/models/get_api_keys_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/get_charges_response.py b/conekta/models/get_charges_response.py index 7434710..643170f 100644 --- a/conekta/models/get_charges_response.py +++ b/conekta/models/get_charges_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/get_companies_response.py b/conekta/models/get_companies_response.py index 21fecb0..90163a8 100644 --- a/conekta/models/get_companies_response.py +++ b/conekta/models/get_companies_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/get_customer_payment_method_data_response.py b/conekta/models/get_customer_payment_method_data_response.py index ce967e2..220b25f 100644 --- a/conekta/models/get_customer_payment_method_data_response.py +++ b/conekta/models/get_customer_payment_method_data_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/get_events_response.py b/conekta/models/get_events_response.py index 428b802..d8ee49f 100644 --- a/conekta/models/get_events_response.py +++ b/conekta/models/get_events_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/get_order_discount_lines_response.py b/conekta/models/get_order_discount_lines_response.py index d3cc4a4..584007a 100644 --- a/conekta/models/get_order_discount_lines_response.py +++ b/conekta/models/get_order_discount_lines_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/get_orders_response.py b/conekta/models/get_orders_response.py index 5b3de0d..c4a7047 100644 --- a/conekta/models/get_orders_response.py +++ b/conekta/models/get_orders_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/get_payment_method_response.py b/conekta/models/get_payment_method_response.py index 8b22fde..bd03d74 100644 --- a/conekta/models/get_payment_method_response.py +++ b/conekta/models/get_payment_method_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/get_plans_response.py b/conekta/models/get_plans_response.py index bf5092c..209e3ac 100644 --- a/conekta/models/get_plans_response.py +++ b/conekta/models/get_plans_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/get_transactions_response.py b/conekta/models/get_transactions_response.py index 8e28f6b..df5f766 100644 --- a/conekta/models/get_transactions_response.py +++ b/conekta/models/get_transactions_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/get_transfers_response.py b/conekta/models/get_transfers_response.py index a76a7eb..b236a11 100644 --- a/conekta/models/get_transfers_response.py +++ b/conekta/models/get_transfers_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/get_webhook_keys_response.py b/conekta/models/get_webhook_keys_response.py index afffd48..13a7791 100644 --- a/conekta/models/get_webhook_keys_response.py +++ b/conekta/models/get_webhook_keys_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/get_webhooks_response.py b/conekta/models/get_webhooks_response.py index ca6b593..8a6e954 100644 --- a/conekta/models/get_webhooks_response.py +++ b/conekta/models/get_webhooks_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/log_response_for_request.py b/conekta/models/log_response_for_request.py index 66290c4..d241746 100644 --- a/conekta/models/log_response_for_request.py +++ b/conekta/models/log_response_for_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,15 +39,15 @@ class LogResponseForRequest(BaseModel): query_string: Optional[Dict[str, Any]] = Field(default=None, json_schema_extra={"examples": [{"amount": 3000, "payable": True}]}) related: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["FilterResource"]}) request_body: Optional[Dict[str, Any]] = Field(default=None, json_schema_extra={"examples": [{"filters": {"amount": {"amount_from": 0, "amount_to": 0}, "created_at": {"date_from": 1653627600, "date_to": 1661489999}, "filterName": "Payments", "sort_by": "created_at", "sort_direction": "desc", "status": [], "type": []}, "id": "78e65162-0f37-4942-847c-9bf7081d54c2", "page": "0", "report_type": "charges", "testMode": False}]}) - request_headers: Optional[Any] = Field(default=None, json_schema_extra={"examples": [{"Accept": "application/vnd.conekta-v2.2.0+json", "Accept-Encoding": "gzip, deflate, br", "Accept-Language": "es-419, es; q=0.9, en; q=0.8", "Activitypermission": "orders:read", "Apiversion": "2.2.0"}]}) + request_headers: Optional[Any] = Field(default=None, json_schema_extra={"examples": [{"Accept": "application/vnd.conekta-v2.3.0+json", "Accept-Encoding": "gzip, deflate, br", "Accept-Language": "es-419, es; q=0.9, en; q=0.8", "Activitypermission": "orders:read", "Apiversion": "2.3.0"}]}) response_body: Optional[Dict[str, Any]] = None - response_headers: Optional[Any] = Field(default=None, json_schema_extra={"examples": [{"Access-Control-Allow-Headers": "Content-Type, Depth, User-Agent, X-File-Size, X-Requested-With, If-Modified-Since, X-File-Name, Cache-Control, X-Prototype-Version, Authorization, Accept, Date, Version, X-Forwarded-For, Host, Connection, X-Forwarded-Proto, X-Forwarded-Port, X-Amzn-Trace-Id, Accept-Encoding, Accept-Language, Referer, Origin, Activitypermission, Apiversion, Entityid, Livemode, Sec-Ch-Ua, Sec-Ch-Ua-Mobile, Sec-Ch-Ua-Platform, Sec-Fetch-Dest, Sec-Fetch-Mode, Sec-Fetch-Site, X-Datadog-Parent-Id, X-Datadog-Sampling-Priority, X-Datadog-Trace-Id, X-Forwarded-Host, X-Forwarded-Server, X-Real-Ip", "Access-Control-Allow-Methods": "POST, GET, PUT, OPTIONS", "Access-Control-Allow-Origin": "*", "Access-Control-Max-Age": "1728000", "Conekta-Media-Type": "conekta-v2.2.0; format=application/json", "Content-Type": "application/json; charset=utf-8", "Referrer-Policy": "strict-origin-when-cross-origin", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "X-Download-Options": "noopen", "X-Frame-Options": "SAMEORIGIN", "X-Permitted-Cross-Domain-Policies": "none", "X-XSS-Protection": "1; mode=block"}]}) + response_headers: Optional[Any] = Field(default=None, json_schema_extra={"examples": [{"Access-Control-Allow-Headers": "Content-Type, Depth, User-Agent, X-File-Size, X-Requested-With, If-Modified-Since, X-File-Name, Cache-Control, X-Prototype-Version, Authorization, Accept, Date, Version, X-Forwarded-For, Host, Connection, X-Forwarded-Proto, X-Forwarded-Port, X-Amzn-Trace-Id, Accept-Encoding, Accept-Language, Referer, Origin, Activitypermission, Apiversion, Entityid, Livemode, Sec-Ch-Ua, Sec-Ch-Ua-Mobile, Sec-Ch-Ua-Platform, Sec-Fetch-Dest, Sec-Fetch-Mode, Sec-Fetch-Site, X-Datadog-Parent-Id, X-Datadog-Sampling-Priority, X-Datadog-Trace-Id, X-Forwarded-Host, X-Forwarded-Server, X-Real-Ip", "Access-Control-Allow-Methods": "POST, GET, PUT, OPTIONS", "Access-Control-Allow-Origin": "*", "Access-Control-Max-Age": "1728000", "Conekta-Media-Type": "conekta-v2.3.0; format=application/json", "Content-Type": "application/json; charset=utf-8", "Referrer-Policy": "strict-origin-when-cross-origin", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "X-Download-Options": "noopen", "X-Frame-Options": "SAMEORIGIN", "X-Permitted-Cross-Domain-Policies": "none", "X-XSS-Protection": "1; mode=block"}]}) searchable_tags: Optional[List[StrictStr]] = Field(default=None, json_schema_extra={"examples": [["6307a60c41de27127515a575", "6307a60c41de27127515a571"]]}) status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": [200]}) updated_at: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["2022-08-25T16:40:44.887+00:00"]}) url: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["/filter_resource"]}) user_account_id: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["5a0b7001edbb6e1725b0b2c6"]}) - version: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["2.2.0"]}) + version: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["2.3.0"]}) __properties: ClassVar[List[str]] = ["created_at", "id", "ip_address", "livemode", "loggable_id", "loggable_type", "method", "oauth_token_id", "query_string", "related", "request_body", "request_headers", "response_body", "response_headers", "searchable_tags", "status", "updated_at", "url", "user_account_id", "version"] model_config = ConfigDict( diff --git a/conekta/models/logs_response_data.py b/conekta/models/logs_response_data.py index bbf81c5..63433ac 100644 --- a/conekta/models/logs_response_data.py +++ b/conekta/models/logs_response_data.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -39,15 +39,15 @@ class LogsResponseData(BaseModel): query_string: Optional[Dict[str, Any]] = Field(default=None, json_schema_extra={"examples": [{"amount": 3000, "payable": True}]}) related: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["FilterResource"]}) request_body: Optional[Dict[str, Any]] = Field(default=None, json_schema_extra={"examples": [{"filters": {"amount": {"amount_from": 0, "amount_to": 0}, "created_at": {"date_from": 1653627600, "date_to": 1661489999}, "filterName": "Payments", "sort_by": "created_at", "sort_direction": "desc", "status": [], "type": []}, "id": "78e65162-0f37-4942-847c-9bf7081d54c2", "page": "0", "report_type": "charges", "testMode": False}]}) - request_headers: Optional[Any] = Field(default=None, json_schema_extra={"examples": [{"Accept": "application/vnd.conekta-v2.2.0+json", "Accept-Encoding": "gzip, deflate, br", "Accept-Language": "es-419, es; q=0.9, en; q=0.8", "Activitypermission": "orders:read", "Apiversion": "2.2.0"}]}) + request_headers: Optional[Any] = Field(default=None, json_schema_extra={"examples": [{"Accept": "application/vnd.conekta-v2.3.0+json", "Accept-Encoding": "gzip, deflate, br", "Accept-Language": "es-419, es; q=0.9, en; q=0.8", "Activitypermission": "orders:read", "Apiversion": "2.3.0"}]}) response_body: Optional[Dict[str, Any]] = None - response_headers: Optional[Any] = Field(default=None, json_schema_extra={"examples": [{"Access-Control-Allow-Headers": "Content-Type, Depth, User-Agent, X-File-Size, X-Requested-With, If-Modified-Since, X-File-Name, Cache-Control, X-Prototype-Version, Authorization, Accept, Date, Version, X-Forwarded-For, Host, Connection, X-Forwarded-Proto, X-Forwarded-Port, X-Amzn-Trace-Id, Accept-Encoding, Accept-Language, Referer, Origin, Activitypermission, Apiversion, Entityid, Livemode, Sec-Ch-Ua, Sec-Ch-Ua-Mobile, Sec-Ch-Ua-Platform, Sec-Fetch-Dest, Sec-Fetch-Mode, Sec-Fetch-Site, X-Datadog-Parent-Id, X-Datadog-Sampling-Priority, X-Datadog-Trace-Id, X-Forwarded-Host, X-Forwarded-Server, X-Real-Ip", "Access-Control-Allow-Methods": "POST, GET, PUT, OPTIONS", "Access-Control-Allow-Origin": "*", "Access-Control-Max-Age": "1728000", "Conekta-Media-Type": "conekta-v2.2.0; format=application/json", "Content-Type": "application/json; charset=utf-8", "Referrer-Policy": "strict-origin-when-cross-origin", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "X-Download-Options": "noopen", "X-Frame-Options": "SAMEORIGIN", "X-Permitted-Cross-Domain-Policies": "none", "X-XSS-Protection": "1; mode=block"}]}) + response_headers: Optional[Any] = Field(default=None, json_schema_extra={"examples": [{"Access-Control-Allow-Headers": "Content-Type, Depth, User-Agent, X-File-Size, X-Requested-With, If-Modified-Since, X-File-Name, Cache-Control, X-Prototype-Version, Authorization, Accept, Date, Version, X-Forwarded-For, Host, Connection, X-Forwarded-Proto, X-Forwarded-Port, X-Amzn-Trace-Id, Accept-Encoding, Accept-Language, Referer, Origin, Activitypermission, Apiversion, Entityid, Livemode, Sec-Ch-Ua, Sec-Ch-Ua-Mobile, Sec-Ch-Ua-Platform, Sec-Fetch-Dest, Sec-Fetch-Mode, Sec-Fetch-Site, X-Datadog-Parent-Id, X-Datadog-Sampling-Priority, X-Datadog-Trace-Id, X-Forwarded-Host, X-Forwarded-Server, X-Real-Ip", "Access-Control-Allow-Methods": "POST, GET, PUT, OPTIONS", "Access-Control-Allow-Origin": "*", "Access-Control-Max-Age": "1728000", "Conekta-Media-Type": "conekta-v2.3.0; format=application/json", "Content-Type": "application/json; charset=utf-8", "Referrer-Policy": "strict-origin-when-cross-origin", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", "X-Download-Options": "noopen", "X-Frame-Options": "SAMEORIGIN", "X-Permitted-Cross-Domain-Policies": "none", "X-XSS-Protection": "1; mode=block"}]}) searchable_tags: Optional[List[StrictStr]] = Field(default=None, json_schema_extra={"examples": [["6307a60c41de27127515a575", "6307a60c41de27127515a571"]]}) status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": [200]}) updated_at: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["2022-08-25T16:40:44.887+00:00"]}) url: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["/filter_resource"]}) user_account_id: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["5a0b7001edbb6e1725b0b2c6"]}) - version: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["2.2.0"]}) + version: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["2.3.0"]}) __properties: ClassVar[List[str]] = ["created_at", "id", "ip_address", "livemode", "loggable_id", "loggable_type", "method", "oauth_token_id", "query_string", "related", "request_body", "request_headers", "response_body", "response_headers", "searchable_tags", "status", "updated_at", "url", "user_account_id", "version"] model_config = ConfigDict( diff --git a/conekta/models/logs_response_for_request.py b/conekta/models/logs_response_for_request.py index 2f13d6f..119dd3f 100644 --- a/conekta/models/logs_response_for_request.py +++ b/conekta/models/logs_response_for_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/order_capture_request.py b/conekta/models/order_capture_request.py index af50553..0f6946e 100644 --- a/conekta/models/order_capture_request.py +++ b/conekta/models/order_capture_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/order_channel_response.py b/conekta/models/order_channel_response.py index af08797..2f3504d 100644 --- a/conekta/models/order_channel_response.py +++ b/conekta/models/order_channel_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/order_charges_response.py b/conekta/models/order_charges_response.py index 673d07b..cad85cb 100644 --- a/conekta/models/order_charges_response.py +++ b/conekta/models/order_charges_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/order_checkout_request.py b/conekta/models/order_checkout_request.py index 07f451c..9dacb0e 100644 --- a/conekta/models/order_checkout_request.py +++ b/conekta/models/order_checkout_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -27,9 +27,10 @@ class OrderCheckoutRequest(BaseModel): """ - [Checkout](https://developers.conekta.com/v2.2.0/reference/payment-link) details + [Checkout](https://developers.conekta.com/v2.3.0/reference/payment-link) details """ # noqa: E501 - allowed_payment_methods: List[StrictStr] = Field(description="Are the payment methods available for this link. For subscriptions, only 'card' is allowed due to the recurring nature of the payments.", json_schema_extra={"examples": [["cash", "card", "bank_transfer", "bnpl", "pay_by_bank", "google", "apple"]]}) + allowed_payment_methods: Optional[List[StrictStr]] = Field(default=None, description="Are the payment methods available for this link. For subscriptions, only 'card' is allowed due to the recurring nature of the payments. This field is mutually exclusive with excluded_payment_methods.", json_schema_extra={"examples": [["cash", "card", "bank_transfer", "bnpl", "pay_by_bank", "apple", "google"]]}) + excluded_payment_methods: Optional[List[StrictStr]] = Field(default=None, description="Payment methods to be excluded from the checkout. This field is mutually exclusive with allowed_payment_methods.", json_schema_extra={"examples": [["cash", "bank_transfer"]]}) exclude_card_networks: Optional[List[StrictStr]] = Field(default=None, description="List of card networks to exclude from the checkout. This field is only applicable for card payments.", json_schema_extra={"examples": [["visa", "amex"]]}) plan_ids: Optional[List[StrictStr]] = Field(default=None, description="List of plan IDs that will be available for subscription. This field is required for subscription payments.", json_schema_extra={"examples": [["plan_123", "plan_456"]]}) expires_at: Optional[Annotated[int, Field(strict=True, ge=1)]] = Field(default=None, description="It is the time when the link will expire. It is expressed in seconds since the Unix epoch. The valid range is from 5 minutes to 365 days from the creation date. ") @@ -43,14 +44,28 @@ class OrderCheckoutRequest(BaseModel): redirection_time: Optional[StrictInt] = Field(default=None, description="number of seconds to wait before redirecting to the success_url", json_schema_extra={"examples": [10]}) success_url: Optional[StrictStr] = Field(default=None, description="Redirection url back to the site in case of successful payment, applies only to HostedPayment", json_schema_extra={"examples": ["https://www.mysite.com/success"]}) type: Optional[StrictStr] = Field(default=None, description="Required. This field represents the type of checkout, which determines the user experience during the payment process. 'HostedPayment' will redirect the customer to a Conekta-hosted page to complete the payment, while 'Integration' allows the payment process to be handled entirely on your site using Conekta's APIs and SDKs.") - __properties: ClassVar[List[str]] = ["allowed_payment_methods", "exclude_card_networks", "plan_ids", "expires_at", "failure_url", "force_save_card", "monthly_installments_enabled", "monthly_installments_options", "max_failed_retries", "name", "on_demand_enabled", "redirection_time", "success_url", "type"] + __properties: ClassVar[List[str]] = ["allowed_payment_methods", "excluded_payment_methods", "exclude_card_networks", "plan_ids", "expires_at", "failure_url", "force_save_card", "monthly_installments_enabled", "monthly_installments_options", "max_failed_retries", "name", "on_demand_enabled", "redirection_time", "success_url", "type"] @field_validator('allowed_payment_methods') def allowed_payment_methods_validate_enum(cls, value): """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['cash', 'card', 'bank_transfer', 'bnpl', 'pay_by_bank', 'apple', 'google']): + raise ValueError("each list item must be one of ('cash', 'card', 'bank_transfer', 'bnpl', 'pay_by_bank', 'apple', 'google')") + return value + + @field_validator('excluded_payment_methods') + def excluded_payment_methods_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + for i in value: - if i not in set(['cash', 'card', 'bank_transfer', 'bnpl', 'pay_by_bank', 'google', 'apple']): - raise ValueError("each list item must be one of ('cash', 'card', 'bank_transfer', 'bnpl', 'pay_by_bank', 'google', 'apple')") + if i not in set(['cash', 'card', 'bank_transfer', 'bnpl', 'pay_by_bank']): + raise ValueError("each list item must be one of ('cash', 'card', 'bank_transfer', 'bnpl', 'pay_by_bank')") return value @field_validator('exclude_card_networks') @@ -126,6 +141,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "allowed_payment_methods": obj.get("allowed_payment_methods"), + "excluded_payment_methods": obj.get("excluded_payment_methods"), "exclude_card_networks": obj.get("exclude_card_networks"), "plan_ids": obj.get("plan_ids"), "expires_at": obj.get("expires_at"), diff --git a/conekta/models/order_discount_lines_request.py b/conekta/models/order_discount_lines_request.py index 70bfe8e..102b60e 100644 --- a/conekta/models/order_discount_lines_request.py +++ b/conekta/models/order_discount_lines_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/order_fiscal_entity_address_response.py b/conekta/models/order_fiscal_entity_address_response.py index edddbc0..8065497 100644 --- a/conekta/models/order_fiscal_entity_address_response.py +++ b/conekta/models/order_fiscal_entity_address_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/order_fiscal_entity_request.py b/conekta/models/order_fiscal_entity_request.py index bba9ac9..53a48dd 100644 --- a/conekta/models/order_fiscal_entity_request.py +++ b/conekta/models/order_fiscal_entity_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/order_fiscal_entity_response.py b/conekta/models/order_fiscal_entity_response.py index 0cd104f..5296699 100644 --- a/conekta/models/order_fiscal_entity_response.py +++ b/conekta/models/order_fiscal_entity_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/order_next_action_response.py b/conekta/models/order_next_action_response.py index d971098..5509c34 100644 --- a/conekta/models/order_next_action_response.py +++ b/conekta/models/order_next_action_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/order_next_action_response_redirect_to_url.py b/conekta/models/order_next_action_response_redirect_to_url.py index 65394a3..ff1f2f1 100644 --- a/conekta/models/order_next_action_response_redirect_to_url.py +++ b/conekta/models/order_next_action_response_redirect_to_url.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/order_refund_request.py b/conekta/models/order_refund_request.py index 05c2cf1..eacec59 100644 --- a/conekta/models/order_refund_request.py +++ b/conekta/models/order_refund_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/order_request.py b/conekta/models/order_request.py index 4262a36..a3c8c3b 100644 --- a/conekta/models/order_request.py +++ b/conekta/models/order_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -38,21 +38,21 @@ class OrderRequest(BaseModel): """ a order """ # noqa: E501 - charges: Optional[List[ChargeRequest]] = Field(default=None, description="List of [charges](https://developers.conekta.com/v2.2.0/reference/orderscreatecharge) that are applied to the order") + charges: Optional[List[ChargeRequest]] = Field(default=None, description="List of [charges](https://developers.conekta.com/v2.3.0/reference/orderscreatecharge) that are applied to the order") checkout: Optional[OrderCheckoutRequest] = None currency: Annotated[str, Field(strict=True, max_length=3)] = Field(description="Currency with which the payment will be made. It uses the 3-letter code of the [International Standard ISO 4217.](https://es.wikipedia.org/wiki/ISO_4217)", json_schema_extra={"examples": ["MXN"]}) customer_info: OrderRequestCustomerInfo - discount_lines: Optional[List[OrderDiscountLinesRequest]] = Field(default=None, description="List of [discounts](https://developers.conekta.com/v2.2.0/reference/orderscreatediscountline) that are applied to the order.") + discount_lines: Optional[List[OrderDiscountLinesRequest]] = Field(default=None, description="List of [discounts](https://developers.conekta.com/v2.3.0/reference/orderscreatediscountline) that are applied to the order.") fiscal_entity: Optional[OrderFiscalEntityRequest] = None - line_items: List[Product] = Field(description="List of [products](https://developers.conekta.com/v2.2.0/reference/orderscreateproduct) that are sold in the order. You must have at least one product.") + line_items: List[Product] = Field(description="List of [products](https://developers.conekta.com/v2.3.0/reference/orderscreateproduct) that are sold in the order. You must have at least one product.") metadata: Optional[Dict[str, Any]] = Field(default=None, description="Metadata associated with the order") needs_shipping_contact: Optional[StrictBool] = Field(default=None, description="Allows you to fill out the shipping information at checkout", json_schema_extra={"examples": [False]}) pre_authorize: Optional[StrictBool] = Field(default=None, description="Indicates whether the order charges must be preauthorized") processing_mode: Optional[StrictStr] = Field(default=None, description="Indicates the processing mode for the order, either ecommerce, recurrent or validation.", json_schema_extra={"examples": ["ecommerce"]}) return_url: Optional[StrictStr] = Field(default=None, description="Indicates the redirection callback upon completion of the 3DS2 flow. Do not use this parameter if your order has a checkout parameter", json_schema_extra={"examples": ["https://my-website.com"]}) shipping_contact: Optional[CustomerShippingContactsRequest] = None - shipping_lines: Optional[List[ShippingRequest]] = Field(default=None, description="List of [shipping costs](https://developers.conekta.com/v2.2.0/reference/orderscreateshipping). If the online store offers digital products.") - tax_lines: Optional[List[OrderTaxRequest]] = Field(default=None, description="List of [taxes](https://developers.conekta.com/v2.2.0/reference/orderscreatetaxes) that are applied to the order.") + shipping_lines: Optional[List[ShippingRequest]] = Field(default=None, description="List of [shipping costs](https://developers.conekta.com/v2.3.0/reference/orderscreateshipping). If the online store offers digital products.") + tax_lines: Optional[List[OrderTaxRequest]] = Field(default=None, description="List of [taxes](https://developers.conekta.com/v2.3.0/reference/orderscreatetaxes) that are applied to the order.") three_ds_mode: Optional[StrictStr] = Field(default=None, description="Indicates the 3DS2 mode for the order, either smart or strict. This property is only applicable when 3DS is enabled. When 3DS is disabled, this field should be null.") __properties: ClassVar[List[str]] = ["charges", "checkout", "currency", "customer_info", "discount_lines", "fiscal_entity", "line_items", "metadata", "needs_shipping_contact", "pre_authorize", "processing_mode", "return_url", "shipping_contact", "shipping_lines", "tax_lines", "three_ds_mode"] diff --git a/conekta/models/order_request_customer_info.py b/conekta/models/order_request_customer_info.py index 3c48ae1..2b07f93 100644 --- a/conekta/models/order_request_customer_info.py +++ b/conekta/models/order_request_customer_info.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/order_response.py b/conekta/models/order_response.py index f70115a..0891d8f 100644 --- a/conekta/models/order_response.py +++ b/conekta/models/order_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -22,15 +22,15 @@ from typing import Any, ClassVar, Dict, List, Optional from conekta.models.order_channel_response import OrderChannelResponse from conekta.models.order_charges_response import OrderChargesResponse -from conekta.models.order_discount_lines_response import OrderDiscountLinesResponse from conekta.models.order_fiscal_entity_response import OrderFiscalEntityResponse from conekta.models.order_next_action_response import OrderNextActionResponse from conekta.models.order_response_checkout import OrderResponseCheckout from conekta.models.order_response_customer_info import OrderResponseCustomerInfo +from conekta.models.order_response_discount_lines import OrderResponseDiscountLines from conekta.models.order_response_products import OrderResponseProducts from conekta.models.order_response_shipping_contact import OrderResponseShippingContact -from conekta.models.order_shipping_lines_response import OrderShippingLinesResponse -from conekta.models.order_tax_lines_response import OrderTaxLinesResponse +from conekta.models.order_response_shipping_lines import OrderResponseShippingLines +from conekta.models.order_response_tax_lines import OrderResponseTaxLines from typing import Optional, Set from typing_extensions import Self from pydantic_core import to_jsonable_python @@ -47,9 +47,9 @@ class OrderResponse(BaseModel): created_at: Optional[StrictInt] = Field(default=None, description="The time at which the object was created in seconds since the Unix epoch", json_schema_extra={"examples": [1676328434]}) currency: Optional[StrictStr] = Field(default=None, description="The three-letter ISO 4217 currency code. The currency of the order.", json_schema_extra={"examples": ["MXN"]}) customer_info: Optional[OrderResponseCustomerInfo] = None - discount_lines: Optional[OrderDiscountLinesResponse] = None - tax_lines: Optional[OrderTaxLinesResponse] = None - shipping_lines: Optional[OrderShippingLinesResponse] = None + discount_lines: Optional[OrderResponseDiscountLines] = None + tax_lines: Optional[OrderResponseTaxLines] = None + shipping_lines: Optional[OrderResponseShippingLines] = None fiscal_entity: Optional[OrderFiscalEntityResponse] = None id: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["ord_2tMtQQpDvfnNjiuFG"]}) is_refundable: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [False]}) @@ -156,9 +156,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "created_at": obj.get("created_at"), "currency": obj.get("currency"), "customer_info": OrderResponseCustomerInfo.from_dict(obj["customer_info"]) if obj.get("customer_info") is not None else None, - "discount_lines": OrderDiscountLinesResponse.from_dict(obj["discount_lines"]) if obj.get("discount_lines") is not None else None, - "tax_lines": OrderTaxLinesResponse.from_dict(obj["tax_lines"]) if obj.get("tax_lines") is not None else None, - "shipping_lines": OrderShippingLinesResponse.from_dict(obj["shipping_lines"]) if obj.get("shipping_lines") is not None else None, + "discount_lines": OrderResponseDiscountLines.from_dict(obj["discount_lines"]) if obj.get("discount_lines") is not None else None, + "tax_lines": OrderResponseTaxLines.from_dict(obj["tax_lines"]) if obj.get("tax_lines") is not None else None, + "shipping_lines": OrderResponseShippingLines.from_dict(obj["shipping_lines"]) if obj.get("shipping_lines") is not None else None, "fiscal_entity": OrderFiscalEntityResponse.from_dict(obj["fiscal_entity"]) if obj.get("fiscal_entity") is not None else None, "id": obj.get("id"), "is_refundable": obj.get("is_refundable"), diff --git a/conekta/models/order_response_checkout.py b/conekta/models/order_response_checkout.py index aeb2921..9853296 100644 --- a/conekta/models/order_response_checkout.py +++ b/conekta/models/order_response_checkout.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -28,7 +28,8 @@ class OrderResponseCheckout(BaseModel): """ OrderResponseCheckout """ # noqa: E501 - allowed_payment_methods: List[StrictStr] = Field(description="Are the payment methods available for this link", json_schema_extra={"examples": [["cash", "card", "bank_transfer", "bnpl", "pay_by_bank", "apple", "google"]]}) + allowed_payment_methods: Optional[List[StrictStr]] = Field(default=None, description="Are the payment methods available for this link", json_schema_extra={"examples": [["cash", "card", "bank_transfer", "bnpl", "pay_by_bank", "apple", "google"]]}) + excluded_payment_methods: Optional[List[StrictStr]] = Field(default=None, description="Payment methods excluded from the checkout. This field is only returned when excluded_payment_methods is provided in the request.", json_schema_extra={"examples": [["cash", "bank_transfer"]]}) can_not_expire: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [False]}) emails_sent: Optional[StrictInt] = Field(default=None, json_schema_extra={"examples": [0]}) exclude_card_networks: Optional[List[StrictStr]] = Field(default=None, json_schema_extra={"examples": [["visa", "amex"]]}) @@ -38,7 +39,7 @@ class OrderResponseCheckout(BaseModel): force_save_card: Optional[StrictBool] = Field(default=None, description="Indicates whether the card used for the payment should be saved for future purchases. This field is only applicable for card payments.", json_schema_extra={"examples": [False]}) id: StrictStr = Field(json_schema_extra={"examples": ["6fca054a-8519-4c43-971e-cea35cc519bb"]}) is_redirect_on_failure: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [False]}) - livemode: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [False]}) + livemode: StrictBool = Field(json_schema_extra={"examples": [False]}) max_failed_retries: Optional[StrictInt] = Field(default=None, description="Number of retries allowed before the checkout is marked as failed", json_schema_extra={"examples": [3]}) metadata: Optional[Dict[str, Any]] = None monthly_installments_enabled: Optional[StrictBool] = Field(default=None, json_schema_extra={"examples": [False]}) @@ -57,7 +58,18 @@ class OrderResponseCheckout(BaseModel): status: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["Issued"]}) type: StrictStr = Field(description="This field represents the type of checkout, which determines the user experience during the payment process. 'HostedPayment' will redirect the customer to a Conekta-hosted page to complete the payment, while 'Integration' allows the payment process to be handled entirely on your site using Conekta's APIs and SDKs.", json_schema_extra={"examples": ["HostedPayment"]}) url: Optional[StrictStr] = Field(default=None, description="Indicate the url of the Conekta component to complete the payment. For HostedPayment, this will be a Conekta-hosted page", json_schema_extra={"examples": ["https://pay.conekta.io/checkout/6fca054a85194c43971ecea35cc519bb"]}) - __properties: ClassVar[List[str]] = ["allowed_payment_methods", "can_not_expire", "emails_sent", "exclude_card_networks", "expires_at", "failure_url", "force_3ds_flow", "force_save_card", "id", "is_redirect_on_failure", "livemode", "max_failed_retries", "metadata", "monthly_installments_enabled", "monthly_installments_options", "name", "needs_shipping_contact", "object", "on_demand_enabled", "paid_payments_count", "recurrent", "redirection_time", "slug", "sms_sent", "success_url", "starts_at", "status", "type", "url"] + __properties: ClassVar[List[str]] = ["allowed_payment_methods", "excluded_payment_methods", "can_not_expire", "emails_sent", "exclude_card_networks", "expires_at", "failure_url", "force_3ds_flow", "force_save_card", "id", "is_redirect_on_failure", "livemode", "max_failed_retries", "metadata", "monthly_installments_enabled", "monthly_installments_options", "name", "needs_shipping_contact", "object", "on_demand_enabled", "paid_payments_count", "recurrent", "redirection_time", "slug", "sms_sent", "success_url", "starts_at", "status", "type", "url"] + + @field_validator('excluded_payment_methods') + def excluded_payment_methods_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + for i in value: + if i not in set(['cash', 'card', 'bank_transfer', 'bnpl', 'pay_by_bank']): + raise ValueError("each list item must be one of ('cash', 'card', 'bank_transfer', 'bnpl', 'pay_by_bank')") + return value @field_validator('exclude_card_networks') def exclude_card_networks_validate_enum(cls, value): @@ -122,6 +134,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "allowed_payment_methods": obj.get("allowed_payment_methods"), + "excluded_payment_methods": obj.get("excluded_payment_methods"), "can_not_expire": obj.get("can_not_expire"), "emails_sent": obj.get("emails_sent"), "exclude_card_networks": obj.get("exclude_card_networks"), diff --git a/conekta/models/order_response_customer_info.py b/conekta/models/order_response_customer_info.py index 7c61dea..16d7c85 100644 --- a/conekta/models/order_response_customer_info.py +++ b/conekta/models/order_response_customer_info.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/order_discount_lines_response.py b/conekta/models/order_response_discount_lines.py similarity index 94% rename from conekta/models/order_discount_lines_response.py rename to conekta/models/order_response_discount_lines.py index 1bc7d8e..b4543e0 100644 --- a/conekta/models/order_discount_lines_response.py +++ b/conekta/models/order_response_discount_lines.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,7 +25,7 @@ from typing_extensions import Self from pydantic_core import to_jsonable_python -class OrderDiscountLinesResponse(BaseModel): +class OrderResponseDiscountLines(BaseModel): """ List of discounts that are applied to the order """ # noqa: E501 @@ -54,7 +54,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of OrderDiscountLinesResponse from a JSON string""" + """Create an instance of OrderResponseDiscountLines from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -86,7 +86,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of OrderDiscountLinesResponse from a dict""" + """Create an instance of OrderResponseDiscountLines from a dict""" if obj is None: return None diff --git a/conekta/models/order_response_products.py b/conekta/models/order_response_products.py index b087209..ce66049 100644 --- a/conekta/models/order_response_products.py +++ b/conekta/models/order_response_products.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/order_response_shipping_contact.py b/conekta/models/order_response_shipping_contact.py index 35a5e7e..899cdac 100644 --- a/conekta/models/order_response_shipping_contact.py +++ b/conekta/models/order_response_shipping_contact.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/order_shipping_lines_response.py b/conekta/models/order_response_shipping_lines.py similarity index 94% rename from conekta/models/order_shipping_lines_response.py rename to conekta/models/order_response_shipping_lines.py index b9fa5f9..e62bf7d 100644 --- a/conekta/models/order_shipping_lines_response.py +++ b/conekta/models/order_response_shipping_lines.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,7 +25,7 @@ from typing_extensions import Self from pydantic_core import to_jsonable_python -class OrderShippingLinesResponse(BaseModel): +class OrderResponseShippingLines(BaseModel): """ List of shipping costs applied to the order """ # noqa: E501 @@ -54,7 +54,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of OrderShippingLinesResponse from a JSON string""" + """Create an instance of OrderResponseShippingLines from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -86,7 +86,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of OrderShippingLinesResponse from a dict""" + """Create an instance of OrderResponseShippingLines from a dict""" if obj is None: return None diff --git a/conekta/models/order_tax_lines_response.py b/conekta/models/order_response_tax_lines.py similarity index 94% rename from conekta/models/order_tax_lines_response.py rename to conekta/models/order_response_tax_lines.py index 4f4383b..b94a3a8 100644 --- a/conekta/models/order_tax_lines_response.py +++ b/conekta/models/order_response_tax_lines.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -25,7 +25,7 @@ from typing_extensions import Self from pydantic_core import to_jsonable_python -class OrderTaxLinesResponse(BaseModel): +class OrderResponseTaxLines(BaseModel): """ List of taxes that are applied to the order """ # noqa: E501 @@ -54,7 +54,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of OrderTaxLinesResponse from a JSON string""" + """Create an instance of OrderResponseTaxLines from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -86,7 +86,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of OrderTaxLinesResponse from a dict""" + """Create an instance of OrderResponseTaxLines from a dict""" if obj is None: return None diff --git a/conekta/models/order_tax_request.py b/conekta/models/order_tax_request.py index 57d7d51..9d83682 100644 --- a/conekta/models/order_tax_request.py +++ b/conekta/models/order_tax_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/order_tax_response.py b/conekta/models/order_tax_response.py index 23c3876..2c1f335 100644 --- a/conekta/models/order_tax_response.py +++ b/conekta/models/order_tax_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/order_update.py b/conekta/models/order_update.py index 9286b82..902563a 100644 --- a/conekta/models/order_update.py +++ b/conekta/models/order_update.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -42,13 +42,13 @@ class OrderUpdate(BaseModel): checkout: Optional[OrderCheckoutRequest] = None currency: Optional[Annotated[str, Field(strict=True, max_length=3)]] = Field(default=None, description="Currency with which the payment will be made. It uses the 3-letter code of the [International Standard ISO 4217.](https://es.wikipedia.org/wiki/ISO_4217)", json_schema_extra={"examples": ["MXN"]}) customer_info: Optional[OrderUpdateCustomerInfo] = None - discount_lines: Optional[List[OrderDiscountLinesRequest]] = Field(default=None, description="List of [discounts](https://developers.conekta.com/v2.2.0/reference/orderscreatediscountline) that are applied to the order.") + discount_lines: Optional[List[OrderDiscountLinesRequest]] = Field(default=None, description="List of [discounts](https://developers.conekta.com/v2.3.0/reference/orderscreatediscountline) that are applied to the order.") fiscal_entity: Optional[OrderUpdateFiscalEntityRequest] = None - line_items: Optional[List[Product]] = Field(default=None, description="List of [products](https://developers.conekta.com/v2.2.0/reference/orderscreateproduct) that are sold in the order. You must have at least one product.") + line_items: Optional[List[Product]] = Field(default=None, description="List of [products](https://developers.conekta.com/v2.3.0/reference/orderscreateproduct) that are sold in the order. You must have at least one product.") metadata: Optional[Any] = None pre_authorize: Optional[StrictBool] = Field(default=None, description="Indicates whether the order charges must be preauthorized") shipping_contact: Optional[CustomerShippingContactsRequest] = None - shipping_lines: Optional[List[ShippingRequest]] = Field(default=None, description="List of [shipping costs](https://developers.conekta.com/v2.2.0/reference/orderscreateshipping). If the online store offers digital products.") + shipping_lines: Optional[List[ShippingRequest]] = Field(default=None, description="List of [shipping costs](https://developers.conekta.com/v2.3.0/reference/orderscreateshipping). If the online store offers digital products.") tax_lines: Optional[List[OrderTaxRequest]] = None __properties: ClassVar[List[str]] = ["charges", "checkout", "currency", "customer_info", "discount_lines", "fiscal_entity", "line_items", "metadata", "pre_authorize", "shipping_contact", "shipping_lines", "tax_lines"] diff --git a/conekta/models/order_update_customer_info.py b/conekta/models/order_update_customer_info.py index 6b292ab..908834e 100644 --- a/conekta/models/order_update_customer_info.py +++ b/conekta/models/order_update_customer_info.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/order_update_fiscal_entity_request.py b/conekta/models/order_update_fiscal_entity_request.py index da8f336..50ef6e3 100644 --- a/conekta/models/order_update_fiscal_entity_request.py +++ b/conekta/models/order_update_fiscal_entity_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/orders_update_taxes_request.py b/conekta/models/orders_update_taxes_request.py index 17497d0..13fda77 100644 --- a/conekta/models/orders_update_taxes_request.py +++ b/conekta/models/orders_update_taxes_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/payment_method_bank_transfer.py b/conekta/models/payment_method_bank_transfer.py index d2b80a8..2476e21 100644 --- a/conekta/models/payment_method_bank_transfer.py +++ b/conekta/models/payment_method_bank_transfer.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/payment_method_bnpl_payment.py b/conekta/models/payment_method_bnpl_payment.py index 56b3143..5fb043f 100644 --- a/conekta/models/payment_method_bnpl_payment.py +++ b/conekta/models/payment_method_bnpl_payment.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/payment_method_bnpl_request.py b/conekta/models/payment_method_bnpl_request.py index dab73f9..60ae3a8 100644 --- a/conekta/models/payment_method_bnpl_request.py +++ b/conekta/models/payment_method_bnpl_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/payment_method_card.py b/conekta/models/payment_method_card.py index b6fa6f0..3ad65fd 100644 --- a/conekta/models/payment_method_card.py +++ b/conekta/models/payment_method_card.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/payment_method_card_request.py b/conekta/models/payment_method_card_request.py index ea357eb..876e14d 100644 --- a/conekta/models/payment_method_card_request.py +++ b/conekta/models/payment_method_card_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/payment_method_card_response.py b/conekta/models/payment_method_card_response.py index d458741..152fa62 100644 --- a/conekta/models/payment_method_card_response.py +++ b/conekta/models/payment_method_card_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/payment_method_cash.py b/conekta/models/payment_method_cash.py index ea3005a..a1cda57 100644 --- a/conekta/models/payment_method_cash.py +++ b/conekta/models/payment_method_cash.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/payment_method_cash_recurrent_response.py b/conekta/models/payment_method_cash_recurrent_response.py index b39c696..0d4e7f7 100644 --- a/conekta/models/payment_method_cash_recurrent_response.py +++ b/conekta/models/payment_method_cash_recurrent_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/payment_method_cash_request.py b/conekta/models/payment_method_cash_request.py index 7f23b6b..e572122 100644 --- a/conekta/models/payment_method_cash_request.py +++ b/conekta/models/payment_method_cash_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/payment_method_cash_response.py b/conekta/models/payment_method_cash_response.py index 95d59c4..a17798b 100644 --- a/conekta/models/payment_method_cash_response.py +++ b/conekta/models/payment_method_cash_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/payment_method_general_request.py b/conekta/models/payment_method_general_request.py index ec3e03b..e77bfba 100644 --- a/conekta/models/payment_method_general_request.py +++ b/conekta/models/payment_method_general_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/payment_method_pbb_payment.py b/conekta/models/payment_method_pbb_payment.py index ac4318b..7b166c3 100644 --- a/conekta/models/payment_method_pbb_payment.py +++ b/conekta/models/payment_method_pbb_payment.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/payment_method_pbb_request.py b/conekta/models/payment_method_pbb_request.py index 645024d..aa653c5 100644 --- a/conekta/models/payment_method_pbb_request.py +++ b/conekta/models/payment_method_pbb_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/payment_method_spei_recurrent_response.py b/conekta/models/payment_method_spei_recurrent_response.py index 8c11a80..19bf2c5 100644 --- a/conekta/models/payment_method_spei_recurrent_response.py +++ b/conekta/models/payment_method_spei_recurrent_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/payment_method_spei_request.py b/conekta/models/payment_method_spei_request.py index 1c31039..17e48f4 100644 --- a/conekta/models/payment_method_spei_request.py +++ b/conekta/models/payment_method_spei_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/payment_method_token_request.py b/conekta/models/payment_method_token_request.py index 8abde26..d35f8c4 100644 --- a/conekta/models/payment_method_token_request.py +++ b/conekta/models/payment_method_token_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -29,7 +29,7 @@ class PaymentMethodTokenRequest(BaseModel): PaymentMethodTokenRequest """ # noqa: E501 type: StrictStr = Field(description="Type of payment method", json_schema_extra={"examples": ["card | cash | spei | bnpl | pay_by_bank"]}) - token_id: StrictStr = Field(description="Token id that will be used to create a \"card\" type payment method. See the (subscriptions)[https://developers.conekta.com/v2.2.0/reference/createsubscription] tutorial for more information on how to tokenize cards.", json_schema_extra={"examples": ["tok_32hj4g234as"]}) + token_id: StrictStr = Field(description="Token id that will be used to create a \"card\" type payment method. See the (subscriptions)[https://developers.conekta.com/v2.3.0/reference/createsubscription] tutorial for more information on how to tokenize cards.", json_schema_extra={"examples": ["tok_32hj4g234as"]}) __properties: ClassVar[List[str]] = ["type", "token_id"] model_config = ConfigDict( diff --git a/conekta/models/payout.py b/conekta/models/payout.py index 7ad6406..809f427 100644 --- a/conekta/models/payout.py +++ b/conekta/models/payout.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/payout_method.py b/conekta/models/payout_method.py index 974a832..bc09356 100644 --- a/conekta/models/payout_method.py +++ b/conekta/models/payout_method.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/payout_order_payouts_item.py b/conekta/models/payout_order_payouts_item.py index 9581272..f4b5568 100644 --- a/conekta/models/payout_order_payouts_item.py +++ b/conekta/models/payout_order_payouts_item.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/payout_order_request.py b/conekta/models/payout_order_request.py index 672225c..b306520 100644 --- a/conekta/models/payout_order_request.py +++ b/conekta/models/payout_order_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/payout_order_request_customer_info.py b/conekta/models/payout_order_request_customer_info.py index e4b9874..1c23dc3 100644 --- a/conekta/models/payout_order_request_customer_info.py +++ b/conekta/models/payout_order_request_customer_info.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/payout_order_response.py b/conekta/models/payout_order_response.py index 397481f..c5d3c6d 100644 --- a/conekta/models/payout_order_response.py +++ b/conekta/models/payout_order_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/payout_order_response_customer_info.py b/conekta/models/payout_order_response_customer_info.py index c2815c9..10c9ea4 100644 --- a/conekta/models/payout_order_response_customer_info.py +++ b/conekta/models/payout_order_response_customer_info.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/payout_orders_response.py b/conekta/models/payout_orders_response.py index 1dd475a..5bfdc0c 100644 --- a/conekta/models/payout_orders_response.py +++ b/conekta/models/payout_orders_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/plan_request.py b/conekta/models/plan_request.py index b9177d4..2aa682f 100644 --- a/conekta/models/plan_request.py +++ b/conekta/models/plan_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/plan_response.py b/conekta/models/plan_response.py index cb24fdb..1e9bb39 100644 --- a/conekta/models/plan_response.py +++ b/conekta/models/plan_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/product.py b/conekta/models/product.py index 523fed3..d6318c3 100644 --- a/conekta/models/product.py +++ b/conekta/models/product.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/product_data_response.py b/conekta/models/product_data_response.py index fa72714..5cc0a48 100644 --- a/conekta/models/product_data_response.py +++ b/conekta/models/product_data_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/product_order_response.py b/conekta/models/product_order_response.py index cd27931..8eafe40 100644 --- a/conekta/models/product_order_response.py +++ b/conekta/models/product_order_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/resend_event_request.py b/conekta/models/resend_event_request.py index 8290594..2384694 100644 --- a/conekta/models/resend_event_request.py +++ b/conekta/models/resend_event_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/risk_rules_data.py b/conekta/models/risk_rules_data.py index f586f42..7c9335b 100644 --- a/conekta/models/risk_rules_data.py +++ b/conekta/models/risk_rules_data.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/risk_rules_list.py b/conekta/models/risk_rules_list.py index 00c86aa..3ec914f 100644 --- a/conekta/models/risk_rules_list.py +++ b/conekta/models/risk_rules_list.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/shipping_lines_data_response.py b/conekta/models/shipping_lines_data_response.py index 52e69db..26989ed 100644 --- a/conekta/models/shipping_lines_data_response.py +++ b/conekta/models/shipping_lines_data_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/shipping_order_response.py b/conekta/models/shipping_order_response.py index 52fa73a..ea547f2 100644 --- a/conekta/models/shipping_order_response.py +++ b/conekta/models/shipping_order_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/shipping_request.py b/conekta/models/shipping_request.py index d4aeb4e..7fcdb6e 100644 --- a/conekta/models/shipping_request.py +++ b/conekta/models/shipping_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/sms_checkout_request.py b/conekta/models/sms_checkout_request.py index 38eb278..cd94ee2 100644 --- a/conekta/models/sms_checkout_request.py +++ b/conekta/models/sms_checkout_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/subscription_details.py b/conekta/models/subscription_details.py index cab5ec6..1854e76 100644 --- a/conekta/models/subscription_details.py +++ b/conekta/models/subscription_details.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/subscription_details_card.py b/conekta/models/subscription_details_card.py index d033601..b366d9d 100644 --- a/conekta/models/subscription_details_card.py +++ b/conekta/models/subscription_details_card.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/subscription_details_plan.py b/conekta/models/subscription_details_plan.py index f24279e..4e995f7 100644 --- a/conekta/models/subscription_details_plan.py +++ b/conekta/models/subscription_details_plan.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/subscription_events_response.py b/conekta/models/subscription_events_response.py index 5242a28..1219832 100644 --- a/conekta/models/subscription_events_response.py +++ b/conekta/models/subscription_events_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/subscription_request.py b/conekta/models/subscription_request.py index e5c9471..ebac4df 100644 --- a/conekta/models/subscription_request.py +++ b/conekta/models/subscription_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/subscription_response.py b/conekta/models/subscription_response.py index 6948d39..4c0c218 100644 --- a/conekta/models/subscription_response.py +++ b/conekta/models/subscription_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/tax_lines_data_response.py b/conekta/models/tax_lines_data_response.py index 807cb6c..4366bcc 100644 --- a/conekta/models/tax_lines_data_response.py +++ b/conekta/models/tax_lines_data_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/token_request.py b/conekta/models/token_request.py index 7ea52fe..b4d3df9 100644 --- a/conekta/models/token_request.py +++ b/conekta/models/token_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/token_request_card.py b/conekta/models/token_request_card.py index 8862935..5b31f18 100644 --- a/conekta/models/token_request_card.py +++ b/conekta/models/token_request_card.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/token_request_checkout.py b/conekta/models/token_request_checkout.py index 59a92d3..cb2a15f 100644 --- a/conekta/models/token_request_checkout.py +++ b/conekta/models/token_request_checkout.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/token_response.py b/conekta/models/token_response.py index 7308525..99346ea 100644 --- a/conekta/models/token_response.py +++ b/conekta/models/token_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/token_response_checkout.py b/conekta/models/token_response_checkout.py index 0b141a8..b206bd9 100644 --- a/conekta/models/token_response_checkout.py +++ b/conekta/models/token_response_checkout.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/transaction_response.py b/conekta/models/transaction_response.py index 3e9cb18..bf9d9b6 100644 --- a/conekta/models/transaction_response.py +++ b/conekta/models/transaction_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/transfer_destination_response.py b/conekta/models/transfer_destination_response.py index 1ee70fd..f46c0f7 100644 --- a/conekta/models/transfer_destination_response.py +++ b/conekta/models/transfer_destination_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/transfer_method_response.py b/conekta/models/transfer_method_response.py index 74fb3d8..1a7b1d2 100644 --- a/conekta/models/transfer_method_response.py +++ b/conekta/models/transfer_method_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/transfer_response.py b/conekta/models/transfer_response.py index ba13ddc..d4661a1 100644 --- a/conekta/models/transfer_response.py +++ b/conekta/models/transfer_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/transfers_response.py b/conekta/models/transfers_response.py index b47be90..ae36137 100644 --- a/conekta/models/transfers_response.py +++ b/conekta/models/transfers_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/update_customer.py b/conekta/models/update_customer.py index 1405cfa..d55e1f9 100644 --- a/conekta/models/update_customer.py +++ b/conekta/models/update_customer.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/update_customer_antifraud_info.py b/conekta/models/update_customer_antifraud_info.py index ff8d1ca..ff003cd 100644 --- a/conekta/models/update_customer_antifraud_info.py +++ b/conekta/models/update_customer_antifraud_info.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/update_customer_fiscal_entities_response.py b/conekta/models/update_customer_fiscal_entities_response.py index 2554062..46f4a2c 100644 --- a/conekta/models/update_customer_fiscal_entities_response.py +++ b/conekta/models/update_customer_fiscal_entities_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/update_customer_payment_methods_response.py b/conekta/models/update_customer_payment_methods_response.py index 4d21bc7..46ffb8e 100644 --- a/conekta/models/update_customer_payment_methods_response.py +++ b/conekta/models/update_customer_payment_methods_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/update_fiscal_entity_request.py b/conekta/models/update_fiscal_entity_request.py index 6d6d1d6..b70ea60 100644 --- a/conekta/models/update_fiscal_entity_request.py +++ b/conekta/models/update_fiscal_entity_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/update_order_discount_lines_request.py b/conekta/models/update_order_discount_lines_request.py index 4beb79e..e787a19 100644 --- a/conekta/models/update_order_discount_lines_request.py +++ b/conekta/models/update_order_discount_lines_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/update_payment_methods_card.py b/conekta/models/update_payment_methods_card.py index b35f991..1b580be 100644 --- a/conekta/models/update_payment_methods_card.py +++ b/conekta/models/update_payment_methods_card.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/update_plan.py b/conekta/models/update_plan.py index 191e99a..b3979b4 100644 --- a/conekta/models/update_plan.py +++ b/conekta/models/update_plan.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/update_product.py b/conekta/models/update_product.py index 3d0aafa..e79e4f5 100644 --- a/conekta/models/update_product.py +++ b/conekta/models/update_product.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/update_webhook.py b/conekta/models/update_webhook.py index 82d45a8..199d9c8 100644 --- a/conekta/models/update_webhook.py +++ b/conekta/models/update_webhook.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/updates_a_subscription.py b/conekta/models/updates_a_subscription.py index f2c437e..6880074 100644 --- a/conekta/models/updates_a_subscription.py +++ b/conekta/models/updates_a_subscription.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/webhook_key_create_response.py b/conekta/models/webhook_key_create_response.py index 6191da8..b3c4e68 100644 --- a/conekta/models/webhook_key_create_response.py +++ b/conekta/models/webhook_key_create_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/webhook_key_delete_response.py b/conekta/models/webhook_key_delete_response.py index 3c893d3..0b0cc3c 100644 --- a/conekta/models/webhook_key_delete_response.py +++ b/conekta/models/webhook_key_delete_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/webhook_key_request.py b/conekta/models/webhook_key_request.py index 34e67a7..f429d65 100644 --- a/conekta/models/webhook_key_request.py +++ b/conekta/models/webhook_key_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/webhook_key_response.py b/conekta/models/webhook_key_response.py index 35537be..ba32953 100644 --- a/conekta/models/webhook_key_response.py +++ b/conekta/models/webhook_key_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/webhook_key_update_request.py b/conekta/models/webhook_key_update_request.py index aaf52f7..1ebb0b7 100644 --- a/conekta/models/webhook_key_update_request.py +++ b/conekta/models/webhook_key_update_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/webhook_log.py b/conekta/models/webhook_log.py index c24602d..80de9c1 100644 --- a/conekta/models/webhook_log.py +++ b/conekta/models/webhook_log.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/webhook_request.py b/conekta/models/webhook_request.py index 96a52a2..96e6e05 100644 --- a/conekta/models/webhook_request.py +++ b/conekta/models/webhook_request.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/webhook_response.py b/conekta/models/webhook_response.py index 89f9e4e..7925e67 100644 --- a/conekta/models/webhook_response.py +++ b/conekta/models/webhook_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/models/whitelistlist_rule_response.py b/conekta/models/whitelistlist_rule_response.py index 2c40d11..5c02f1d 100644 --- a/conekta/models/whitelistlist_rule_response.py +++ b/conekta/models/whitelistlist_rule_response.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/conekta/rest.py b/conekta/rest.py index 3d6819e..6e78b37 100644 --- a/conekta/rest.py +++ b/conekta/rest.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/config-python.json b/config-python.json index c615cdb..c5cd0c4 100644 --- a/config-python.json +++ b/config-python.json @@ -7,14 +7,14 @@ "licenseName": "MIT License", "licenseUrl": "https://www.opensource.org/licenses/mit-license.php", "generateSourceCodeOnly": "false", - "packageVersion": "7.1.0", + "packageVersion": "9.0.0", "packageUrl": "https://github.com/conekta/conekta-python", "projectName": "conekta", "templateDir": "/local/templates/python", "hasBearerMethods" : true, "useOneOfDiscriminatorLookup" : true, "nonCompliantUseDiscriminatorIfCompositionFails" : false, - "httpUserAgent": "Conekta/v2 PythonBindings/7.1.0", + "httpUserAgent": "Conekta/v2 PythonBindings/9.0.0", "files": { "/local/AUTHORS.md" : {}, "/local/CODE_OF_CONDUCT.md": {}, @@ -24,6 +24,9 @@ "destinationFilename": "VERSION" } }, + "modelNameMappings": { + "subscription_response_1": "SubscriptionResponse" + }, "gitUserId": "conekta", "gitRepoId": "conekta-python" } diff --git a/docs/AntifraudApi.md b/docs/AntifraudApi.md index 3ce6008..45c20c0 100644 --- a/docs/AntifraudApi.md +++ b/docs/AntifraudApi.md @@ -81,7 +81,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -162,7 +162,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -245,7 +245,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -328,7 +328,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -410,7 +410,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -490,7 +490,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details diff --git a/docs/ApiKeysApi.md b/docs/ApiKeysApi.md index 1b78fb5..99b93d2 100644 --- a/docs/ApiKeysApi.md +++ b/docs/ApiKeysApi.md @@ -84,7 +84,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -167,7 +167,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -252,7 +252,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -343,7 +343,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -428,7 +428,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details diff --git a/docs/BalancesApi.md b/docs/BalancesApi.md index 7a6cf32..6bab1a7 100644 --- a/docs/BalancesApi.md +++ b/docs/BalancesApi.md @@ -75,7 +75,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details diff --git a/docs/ChargesApi.md b/docs/ChargesApi.md index 5b9e923..ebf3aba 100644 --- a/docs/ChargesApi.md +++ b/docs/ChargesApi.md @@ -86,7 +86,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -173,7 +173,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -262,7 +262,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -349,7 +349,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details diff --git a/docs/Checkout.md b/docs/Checkout.md index a83c4e5..d07e2a7 100644 --- a/docs/Checkout.md +++ b/docs/Checkout.md @@ -6,7 +6,8 @@ It is a sub-resource of the Order model that can be stipulated in order to confi Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**allowed_payment_methods** | **List[str]** | Those are the payment methods that will be available for the link | +**allowed_payment_methods** | **List[str]** | Those are the payment methods that will be available for the link. This field is mutually exclusive with excluded_payment_methods. | [optional] +**excluded_payment_methods** | **List[str]** | Payment methods to be excluded from the checkout. This field is mutually exclusive with allowed_payment_methods. | [optional] **exclude_card_networks** | **List[str]** | List of card networks to exclude from the checkout. This field is only applicable for card payments. | [optional] **expires_at** | **int** | It is the time when the link will expire. It is expressed in seconds since the Unix epoch. The valid range is from 5 minutes to 365 days from the creation date. | **monthly_installments_enabled** | **bool** | This flag allows you to specify if months without interest will be active. | [optional] diff --git a/docs/CheckoutOrderTemplate.md b/docs/CheckoutOrderTemplate.md index 36328d6..f5e1083 100644 --- a/docs/CheckoutOrderTemplate.md +++ b/docs/CheckoutOrderTemplate.md @@ -7,11 +7,11 @@ It maintains the attributes with which the order will be created when receiving Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **currency** | **str** | It is the currency in which the order will be created. It must be a valid ISO 4217 currency code. | -**customer_info** | [**OrderRequestCustomerInfo**](OrderRequestCustomerInfo.md) | | [optional] +**customer_info** | [**CheckoutOrderTemplateCustomerInfo**](CheckoutOrderTemplateCustomerInfo.md) | | [optional] **line_items** | [**List[Product]**](Product.md) | They are the products to buy. Each contains the \"unit price\" and \"quantity\" parameters that are used to calculate the total amount of the order. | **metadata** | **Dict[str, object]** | It is a set of key-value pairs that you can attach to the order. It can be used to store additional information about the order in a structured format. | [optional] -**tax_lines** | [**List[OrderTaxRequest]**](OrderTaxRequest.md) | List of [taxes](https://developers.conekta.com/v2.2.0/reference/orderscreatetaxes) that are applied to the order. | [optional] -**discount_lines** | [**List[OrderDiscountLinesRequest]**](OrderDiscountLinesRequest.md) | List of [discounts](https://developers.conekta.com/v2.2.0/reference/orderscreatediscountline) that are applied to the order. | [optional] +**tax_lines** | [**List[OrderTaxRequest]**](OrderTaxRequest.md) | List of [taxes](https://developers.conekta.com/v2.3.0/reference/orderscreatetaxes) that are applied to the order. | [optional] +**discount_lines** | [**List[OrderDiscountLinesRequest]**](OrderDiscountLinesRequest.md) | List of [discounts](https://developers.conekta.com/v2.3.0/reference/orderscreatediscountline) that are applied to the order. | [optional] ## Example diff --git a/docs/CheckoutOrderTemplateCustomerInfo.md b/docs/CheckoutOrderTemplateCustomerInfo.md new file mode 100644 index 0000000..310b3fd --- /dev/null +++ b/docs/CheckoutOrderTemplateCustomerInfo.md @@ -0,0 +1,35 @@ +# CheckoutOrderTemplateCustomerInfo + +It is the information of the customer who will be created when receiving a new payment. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | +**email** | **str** | | +**phone** | **str** | | +**corporate** | **bool** | | [optional] +**object** | **str** | | [optional] +**customer_id** | **str** | | + +## Example + +```python +from conekta.models.checkout_order_template_customer_info import CheckoutOrderTemplateCustomerInfo + +# TODO update the JSON string below +json = "{}" +# create an instance of CheckoutOrderTemplateCustomerInfo from a JSON string +checkout_order_template_customer_info_instance = CheckoutOrderTemplateCustomerInfo.from_json(json) +# print the JSON string representation of the object +print(CheckoutOrderTemplateCustomerInfo.to_json()) + +# convert the object into a dict +checkout_order_template_customer_info_dict = checkout_order_template_customer_info_instance.to_dict() +# create an instance of CheckoutOrderTemplateCustomerInfo from a dict +checkout_order_template_customer_info_from_dict = CheckoutOrderTemplateCustomerInfo.from_dict(checkout_order_template_customer_info_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CheckoutResponse.md b/docs/CheckoutResponse.md index 3b71342..c8704e1 100644 --- a/docs/CheckoutResponse.md +++ b/docs/CheckoutResponse.md @@ -7,6 +7,7 @@ checkout response Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **allowed_payment_methods** | **List[str]** | Are the payment methods available for this link | [optional] +**excluded_payment_methods** | **List[str]** | Payment methods excluded from the checkout. This field is only returned when excluded_payment_methods is provided in the request. | [optional] **plan_ids** | **List[str]** | List of plan IDs that are available for subscription | [optional] **can_not_expire** | **bool** | | [optional] **emails_sent** | **int** | | [optional] diff --git a/docs/CompaniesApi.md b/docs/CompaniesApi.md index 18107e9..9e8b8f6 100644 --- a/docs/CompaniesApi.md +++ b/docs/CompaniesApi.md @@ -82,7 +82,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -170,7 +170,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -250,7 +250,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -333,7 +333,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -414,7 +414,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -499,7 +499,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -585,7 +585,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details diff --git a/docs/CreateCustomerPaymentMethodsRequest.md b/docs/CreateCustomerPaymentMethodsRequest.md index 241cea6..354b64b 100644 --- a/docs/CreateCustomerPaymentMethodsRequest.md +++ b/docs/CreateCustomerPaymentMethodsRequest.md @@ -7,7 +7,7 @@ Contains details of the payment methods that the customer has active or has used Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **type** | **str** | Type of payment method | -**token_id** | **str** | Token id that will be used to create a \"card\" type payment method. See the (subscriptions)[https://developers.conekta.com/v2.2.0/reference/createsubscription] tutorial for more information on how to tokenize cards. | +**token_id** | **str** | Token id that will be used to create a \"card\" type payment method. See the (subscriptions)[https://developers.conekta.com/v2.3.0/reference/createsubscription] tutorial for more information on how to tokenize cards. | **expires_at** | **int** | | [optional] ## Example diff --git a/docs/CustomerPaymentMethodsRequest.md b/docs/CustomerPaymentMethodsRequest.md index 36c7c53..17f5df8 100644 --- a/docs/CustomerPaymentMethodsRequest.md +++ b/docs/CustomerPaymentMethodsRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **type** | **str** | Type of payment method | -**token_id** | **str** | Token id that will be used to create a \"card\" type payment method. See the (subscriptions)[https://developers.conekta.com/v2.2.0/reference/createsubscription] tutorial for more information on how to tokenize cards. | +**token_id** | **str** | Token id that will be used to create a \"card\" type payment method. See the (subscriptions)[https://developers.conekta.com/v2.3.0/reference/createsubscription] tutorial for more information on how to tokenize cards. | **expires_at** | **int** | | [optional] ## Example diff --git a/docs/CustomerResponse.md b/docs/CustomerResponse.md index 4f284a0..7a56066 100644 --- a/docs/CustomerResponse.md +++ b/docs/CustomerResponse.md @@ -25,7 +25,7 @@ Name | Type | Description | Notes **payment_sources** | [**CustomerPaymentMethodsResponse**](CustomerPaymentMethodsResponse.md) | | [optional] **phone** | **str** | Customer's phone number | [optional] **shipping_contacts** | [**CustomerResponseShippingContacts**](CustomerResponseShippingContacts.md) | | [optional] -**subscription** | [**CustomerSubscriptionResponse**](CustomerSubscriptionResponse.md) | | [optional] +**subscription** | [**SubscriptionResponse**](SubscriptionResponse.md) | | [optional] ## Example diff --git a/docs/CustomerShippingContactsRequest.md b/docs/CustomerShippingContactsRequest.md index bd02974..533486f 100644 --- a/docs/CustomerShippingContactsRequest.md +++ b/docs/CustomerShippingContactsRequest.md @@ -1,6 +1,6 @@ # CustomerShippingContactsRequest -[Shipping](https://developers.conekta.com/v2.2.0/reference/createcustomershippingcontacts) details, required in case of sending a shipping. If we do not receive a shipping_contact on the order, the default shipping_contact of the customer will be used. +[Shipping](https://developers.conekta.com/v2.3.0/reference/createcustomershippingcontacts) details, required in case of sending a shipping. If we do not receive a shipping_contact on the order, the default shipping_contact of the customer will be used. ## Properties diff --git a/docs/CustomerSubscriptionResponse.md b/docs/CustomerSubscriptionResponse.md deleted file mode 100644 index 0af1341..0000000 --- a/docs/CustomerSubscriptionResponse.md +++ /dev/null @@ -1,47 +0,0 @@ -# CustomerSubscriptionResponse - -subscription model - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**billing_cycle_start** | **int** | | [optional] -**billing_cycle_end** | **int** | | [optional] -**canceled_at** | **int** | | [optional] -**canceled_reason** | **str** | Reason for cancellation. This field appears when the subscription status is 'canceled'. | [optional] -**card_id** | **str** | | [optional] -**charge_id** | **str** | | [optional] -**created_at** | **int** | | [optional] -**customer_custom_reference** | **str** | | [optional] -**customer_id** | **str** | | [optional] -**id** | **str** | | [optional] -**last_billing_cycle_order_id** | **str** | | [optional] -**object** | **str** | | [optional] -**paused_at** | **int** | | [optional] -**plan_id** | **str** | | [optional] -**status** | **str** | | [optional] -**subscription_start** | **int** | | [optional] -**trial_start** | **int** | | [optional] -**trial_end** | **int** | | [optional] - -## Example - -```python -from conekta.models.customer_subscription_response import CustomerSubscriptionResponse - -# TODO update the JSON string below -json = "{}" -# create an instance of CustomerSubscriptionResponse from a JSON string -customer_subscription_response_instance = CustomerSubscriptionResponse.from_json(json) -# print the JSON string representation of the object -print(CustomerSubscriptionResponse.to_json()) - -# convert the object into a dict -customer_subscription_response_dict = customer_subscription_response_instance.to_dict() -# create an instance of CustomerSubscriptionResponse from a dict -customer_subscription_response_from_dict = CustomerSubscriptionResponse.from_dict(customer_subscription_response_dict) -``` -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/CustomerUpdateShippingContactsRequest.md b/docs/CustomerUpdateShippingContactsRequest.md index cbd6618..87abd4e 100644 --- a/docs/CustomerUpdateShippingContactsRequest.md +++ b/docs/CustomerUpdateShippingContactsRequest.md @@ -1,6 +1,6 @@ # CustomerUpdateShippingContactsRequest -[Shipping](https://developers.conekta.com/v2.2.0/reference/createcustomershippingcontacts) details, required in case of sending a shipping. If we do not receive a shipping_contact on the order, the default shipping_contact of the customer will be used. +[Shipping](https://developers.conekta.com/v2.3.0/reference/createcustomershippingcontacts) details, required in case of sending a shipping. If we do not receive a shipping_contact on the order, the default shipping_contact of the customer will be used. ## Properties diff --git a/docs/CustomersApi.md b/docs/CustomersApi.md index f507366..0d16b19 100644 --- a/docs/CustomersApi.md +++ b/docs/CustomersApi.md @@ -88,7 +88,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -177,7 +177,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -263,7 +263,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -349,7 +349,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -440,7 +440,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -527,7 +527,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -618,7 +618,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details diff --git a/docs/DiscountsApi.md b/docs/DiscountsApi.md index b9d475d..9c33987 100644 --- a/docs/DiscountsApi.md +++ b/docs/DiscountsApi.md @@ -86,7 +86,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -173,7 +173,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -261,7 +261,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -355,7 +355,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -444,7 +444,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details diff --git a/docs/EventsApi.md b/docs/EventsApi.md index dd42182..389fb0b 100644 --- a/docs/EventsApi.md +++ b/docs/EventsApi.md @@ -81,7 +81,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -170,7 +170,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -255,7 +255,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details diff --git a/docs/LogsApi.md b/docs/LogsApi.md index 65fd104..df0e4a3 100644 --- a/docs/LogsApi.md +++ b/docs/LogsApi.md @@ -80,7 +80,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -171,7 +171,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details diff --git a/docs/OrderCheckoutRequest.md b/docs/OrderCheckoutRequest.md index 937eb25..e916fd6 100644 --- a/docs/OrderCheckoutRequest.md +++ b/docs/OrderCheckoutRequest.md @@ -1,12 +1,13 @@ # OrderCheckoutRequest -[Checkout](https://developers.conekta.com/v2.2.0/reference/payment-link) details +[Checkout](https://developers.conekta.com/v2.3.0/reference/payment-link) details ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**allowed_payment_methods** | **List[str]** | Are the payment methods available for this link. For subscriptions, only 'card' is allowed due to the recurring nature of the payments. | +**allowed_payment_methods** | **List[str]** | Are the payment methods available for this link. For subscriptions, only 'card' is allowed due to the recurring nature of the payments. This field is mutually exclusive with excluded_payment_methods. | [optional] +**excluded_payment_methods** | **List[str]** | Payment methods to be excluded from the checkout. This field is mutually exclusive with allowed_payment_methods. | [optional] **exclude_card_networks** | **List[str]** | List of card networks to exclude from the checkout. This field is only applicable for card payments. | [optional] **plan_ids** | **List[str]** | List of plan IDs that will be available for subscription. This field is required for subscription payments. | [optional] **expires_at** | **int** | It is the time when the link will expire. It is expressed in seconds since the Unix epoch. The valid range is from 5 minutes to 365 days from the creation date. | [optional] diff --git a/docs/OrderRequest.md b/docs/OrderRequest.md index 9291dd6..cd5c08c 100644 --- a/docs/OrderRequest.md +++ b/docs/OrderRequest.md @@ -6,21 +6,21 @@ a order Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**charges** | [**List[ChargeRequest]**](ChargeRequest.md) | List of [charges](https://developers.conekta.com/v2.2.0/reference/orderscreatecharge) that are applied to the order | [optional] +**charges** | [**List[ChargeRequest]**](ChargeRequest.md) | List of [charges](https://developers.conekta.com/v2.3.0/reference/orderscreatecharge) that are applied to the order | [optional] **checkout** | [**OrderCheckoutRequest**](OrderCheckoutRequest.md) | | [optional] **currency** | **str** | Currency with which the payment will be made. It uses the 3-letter code of the [International Standard ISO 4217.](https://es.wikipedia.org/wiki/ISO_4217) | **customer_info** | [**OrderRequestCustomerInfo**](OrderRequestCustomerInfo.md) | | -**discount_lines** | [**List[OrderDiscountLinesRequest]**](OrderDiscountLinesRequest.md) | List of [discounts](https://developers.conekta.com/v2.2.0/reference/orderscreatediscountline) that are applied to the order. | [optional] +**discount_lines** | [**List[OrderDiscountLinesRequest]**](OrderDiscountLinesRequest.md) | List of [discounts](https://developers.conekta.com/v2.3.0/reference/orderscreatediscountline) that are applied to the order. | [optional] **fiscal_entity** | [**OrderFiscalEntityRequest**](OrderFiscalEntityRequest.md) | | [optional] -**line_items** | [**List[Product]**](Product.md) | List of [products](https://developers.conekta.com/v2.2.0/reference/orderscreateproduct) that are sold in the order. You must have at least one product. | +**line_items** | [**List[Product]**](Product.md) | List of [products](https://developers.conekta.com/v2.3.0/reference/orderscreateproduct) that are sold in the order. You must have at least one product. | **metadata** | **Dict[str, object]** | Metadata associated with the order | [optional] **needs_shipping_contact** | **bool** | Allows you to fill out the shipping information at checkout | [optional] **pre_authorize** | **bool** | Indicates whether the order charges must be preauthorized | [optional] **processing_mode** | **str** | Indicates the processing mode for the order, either ecommerce, recurrent or validation. | [optional] **return_url** | **str** | Indicates the redirection callback upon completion of the 3DS2 flow. Do not use this parameter if your order has a checkout parameter | [optional] **shipping_contact** | [**CustomerShippingContactsRequest**](CustomerShippingContactsRequest.md) | | [optional] -**shipping_lines** | [**List[ShippingRequest]**](ShippingRequest.md) | List of [shipping costs](https://developers.conekta.com/v2.2.0/reference/orderscreateshipping). If the online store offers digital products. | [optional] -**tax_lines** | [**List[OrderTaxRequest]**](OrderTaxRequest.md) | List of [taxes](https://developers.conekta.com/v2.2.0/reference/orderscreatetaxes) that are applied to the order. | [optional] +**shipping_lines** | [**List[ShippingRequest]**](ShippingRequest.md) | List of [shipping costs](https://developers.conekta.com/v2.3.0/reference/orderscreateshipping). If the online store offers digital products. | [optional] +**tax_lines** | [**List[OrderTaxRequest]**](OrderTaxRequest.md) | List of [taxes](https://developers.conekta.com/v2.3.0/reference/orderscreatetaxes) that are applied to the order. | [optional] **three_ds_mode** | **str** | Indicates the 3DS2 mode for the order, either smart or strict. This property is only applicable when 3DS is enabled. When 3DS is disabled, this field should be null. | [optional] ## Example diff --git a/docs/OrderResponse.md b/docs/OrderResponse.md index 3c4d572..77f8247 100644 --- a/docs/OrderResponse.md +++ b/docs/OrderResponse.md @@ -14,9 +14,9 @@ Name | Type | Description | Notes **created_at** | **int** | The time at which the object was created in seconds since the Unix epoch | [optional] **currency** | **str** | The three-letter ISO 4217 currency code. The currency of the order. | [optional] **customer_info** | [**OrderResponseCustomerInfo**](OrderResponseCustomerInfo.md) | | [optional] -**discount_lines** | [**OrderDiscountLinesResponse**](OrderDiscountLinesResponse.md) | | [optional] -**tax_lines** | [**OrderTaxLinesResponse**](OrderTaxLinesResponse.md) | | [optional] -**shipping_lines** | [**OrderShippingLinesResponse**](OrderShippingLinesResponse.md) | | [optional] +**discount_lines** | [**OrderResponseDiscountLines**](OrderResponseDiscountLines.md) | | [optional] +**tax_lines** | [**OrderResponseTaxLines**](OrderResponseTaxLines.md) | | [optional] +**shipping_lines** | [**OrderResponseShippingLines**](OrderResponseShippingLines.md) | | [optional] **fiscal_entity** | [**OrderFiscalEntityResponse**](OrderFiscalEntityResponse.md) | | [optional] **id** | **str** | | [optional] **is_refundable** | **bool** | | [optional] diff --git a/docs/OrderResponseCheckout.md b/docs/OrderResponseCheckout.md index 1a0d400..cbdfb22 100644 --- a/docs/OrderResponseCheckout.md +++ b/docs/OrderResponseCheckout.md @@ -5,7 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**allowed_payment_methods** | **List[str]** | Are the payment methods available for this link | +**allowed_payment_methods** | **List[str]** | Are the payment methods available for this link | [optional] +**excluded_payment_methods** | **List[str]** | Payment methods excluded from the checkout. This field is only returned when excluded_payment_methods is provided in the request. | [optional] **can_not_expire** | **bool** | | [optional] **emails_sent** | **int** | | [optional] **exclude_card_networks** | **List[str]** | | [optional] @@ -15,7 +16,7 @@ Name | Type | Description | Notes **force_save_card** | **bool** | Indicates whether the card used for the payment should be saved for future purchases. This field is only applicable for card payments. | [optional] **id** | **str** | | **is_redirect_on_failure** | **bool** | | [optional] -**livemode** | **bool** | | [optional] +**livemode** | **bool** | | **max_failed_retries** | **int** | Number of retries allowed before the checkout is marked as failed | [optional] **metadata** | **Dict[str, object]** | | [optional] **monthly_installments_enabled** | **bool** | | [optional] diff --git a/docs/OrderDiscountLinesResponse.md b/docs/OrderResponseDiscountLines.md similarity index 60% rename from docs/OrderDiscountLinesResponse.md rename to docs/OrderResponseDiscountLines.md index e15f950..11b1767 100644 --- a/docs/OrderDiscountLinesResponse.md +++ b/docs/OrderResponseDiscountLines.md @@ -1,4 +1,4 @@ -# OrderDiscountLinesResponse +# OrderResponseDiscountLines List of discounts that are applied to the order @@ -15,19 +15,19 @@ Name | Type | Description | Notes ## Example ```python -from conekta.models.order_discount_lines_response import OrderDiscountLinesResponse +from conekta.models.order_response_discount_lines import OrderResponseDiscountLines # TODO update the JSON string below json = "{}" -# create an instance of OrderDiscountLinesResponse from a JSON string -order_discount_lines_response_instance = OrderDiscountLinesResponse.from_json(json) +# create an instance of OrderResponseDiscountLines from a JSON string +order_response_discount_lines_instance = OrderResponseDiscountLines.from_json(json) # print the JSON string representation of the object -print(OrderDiscountLinesResponse.to_json()) +print(OrderResponseDiscountLines.to_json()) # convert the object into a dict -order_discount_lines_response_dict = order_discount_lines_response_instance.to_dict() -# create an instance of OrderDiscountLinesResponse from a dict -order_discount_lines_response_from_dict = OrderDiscountLinesResponse.from_dict(order_discount_lines_response_dict) +order_response_discount_lines_dict = order_response_discount_lines_instance.to_dict() +# create an instance of OrderResponseDiscountLines from a dict +order_response_discount_lines_from_dict = OrderResponseDiscountLines.from_dict(order_response_discount_lines_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/OrderShippingLinesResponse.md b/docs/OrderResponseShippingLines.md similarity index 60% rename from docs/OrderShippingLinesResponse.md rename to docs/OrderResponseShippingLines.md index c7af514..15b2363 100644 --- a/docs/OrderShippingLinesResponse.md +++ b/docs/OrderResponseShippingLines.md @@ -1,4 +1,4 @@ -# OrderShippingLinesResponse +# OrderResponseShippingLines List of shipping costs applied to the order @@ -15,19 +15,19 @@ Name | Type | Description | Notes ## Example ```python -from conekta.models.order_shipping_lines_response import OrderShippingLinesResponse +from conekta.models.order_response_shipping_lines import OrderResponseShippingLines # TODO update the JSON string below json = "{}" -# create an instance of OrderShippingLinesResponse from a JSON string -order_shipping_lines_response_instance = OrderShippingLinesResponse.from_json(json) +# create an instance of OrderResponseShippingLines from a JSON string +order_response_shipping_lines_instance = OrderResponseShippingLines.from_json(json) # print the JSON string representation of the object -print(OrderShippingLinesResponse.to_json()) +print(OrderResponseShippingLines.to_json()) # convert the object into a dict -order_shipping_lines_response_dict = order_shipping_lines_response_instance.to_dict() -# create an instance of OrderShippingLinesResponse from a dict -order_shipping_lines_response_from_dict = OrderShippingLinesResponse.from_dict(order_shipping_lines_response_dict) +order_response_shipping_lines_dict = order_response_shipping_lines_instance.to_dict() +# create an instance of OrderResponseShippingLines from a dict +order_response_shipping_lines_from_dict = OrderResponseShippingLines.from_dict(order_response_shipping_lines_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/OrderTaxLinesResponse.md b/docs/OrderResponseTaxLines.md similarity index 64% rename from docs/OrderTaxLinesResponse.md rename to docs/OrderResponseTaxLines.md index c27e885..8cb9011 100644 --- a/docs/OrderTaxLinesResponse.md +++ b/docs/OrderResponseTaxLines.md @@ -1,4 +1,4 @@ -# OrderTaxLinesResponse +# OrderResponseTaxLines List of taxes that are applied to the order @@ -15,19 +15,19 @@ Name | Type | Description | Notes ## Example ```python -from conekta.models.order_tax_lines_response import OrderTaxLinesResponse +from conekta.models.order_response_tax_lines import OrderResponseTaxLines # TODO update the JSON string below json = "{}" -# create an instance of OrderTaxLinesResponse from a JSON string -order_tax_lines_response_instance = OrderTaxLinesResponse.from_json(json) +# create an instance of OrderResponseTaxLines from a JSON string +order_response_tax_lines_instance = OrderResponseTaxLines.from_json(json) # print the JSON string representation of the object -print(OrderTaxLinesResponse.to_json()) +print(OrderResponseTaxLines.to_json()) # convert the object into a dict -order_tax_lines_response_dict = order_tax_lines_response_instance.to_dict() -# create an instance of OrderTaxLinesResponse from a dict -order_tax_lines_response_from_dict = OrderTaxLinesResponse.from_dict(order_tax_lines_response_dict) +order_response_tax_lines_dict = order_response_tax_lines_instance.to_dict() +# create an instance of OrderResponseTaxLines from a dict +order_response_tax_lines_from_dict = OrderResponseTaxLines.from_dict(order_response_tax_lines_dict) ``` [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/OrderUpdate.md b/docs/OrderUpdate.md index 722d4c5..516efad 100644 --- a/docs/OrderUpdate.md +++ b/docs/OrderUpdate.md @@ -10,13 +10,13 @@ Name | Type | Description | Notes **checkout** | [**OrderCheckoutRequest**](OrderCheckoutRequest.md) | | [optional] **currency** | **str** | Currency with which the payment will be made. It uses the 3-letter code of the [International Standard ISO 4217.](https://es.wikipedia.org/wiki/ISO_4217) | [optional] **customer_info** | [**OrderUpdateCustomerInfo**](OrderUpdateCustomerInfo.md) | | [optional] -**discount_lines** | [**List[OrderDiscountLinesRequest]**](OrderDiscountLinesRequest.md) | List of [discounts](https://developers.conekta.com/v2.2.0/reference/orderscreatediscountline) that are applied to the order. | [optional] +**discount_lines** | [**List[OrderDiscountLinesRequest]**](OrderDiscountLinesRequest.md) | List of [discounts](https://developers.conekta.com/v2.3.0/reference/orderscreatediscountline) that are applied to the order. | [optional] **fiscal_entity** | [**OrderUpdateFiscalEntityRequest**](OrderUpdateFiscalEntityRequest.md) | | [optional] -**line_items** | [**List[Product]**](Product.md) | List of [products](https://developers.conekta.com/v2.2.0/reference/orderscreateproduct) that are sold in the order. You must have at least one product. | [optional] +**line_items** | [**List[Product]**](Product.md) | List of [products](https://developers.conekta.com/v2.3.0/reference/orderscreateproduct) that are sold in the order. You must have at least one product. | [optional] **metadata** | **Dict[str, str]** | | [optional] **pre_authorize** | **bool** | Indicates whether the order charges must be preauthorized | [optional] **shipping_contact** | [**CustomerShippingContactsRequest**](CustomerShippingContactsRequest.md) | | [optional] -**shipping_lines** | [**List[ShippingRequest]**](ShippingRequest.md) | List of [shipping costs](https://developers.conekta.com/v2.2.0/reference/orderscreateshipping). If the online store offers digital products. | [optional] +**shipping_lines** | [**List[ShippingRequest]**](ShippingRequest.md) | List of [shipping costs](https://developers.conekta.com/v2.3.0/reference/orderscreateshipping). If the online store offers digital products. | [optional] **tax_lines** | [**List[OrderTaxRequest]**](OrderTaxRequest.md) | | [optional] ## Example diff --git a/docs/OrdersApi.md b/docs/OrdersApi.md index 26506d8..0ca0d12 100644 --- a/docs/OrdersApi.md +++ b/docs/OrdersApi.md @@ -86,7 +86,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -174,7 +174,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -262,7 +262,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -367,7 +367,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -453,7 +453,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -543,7 +543,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -633,7 +633,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -720,7 +720,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details diff --git a/docs/PaymentLinkApi.md b/docs/PaymentLinkApi.md index 9d69261..15afbaf 100644 --- a/docs/PaymentLinkApi.md +++ b/docs/PaymentLinkApi.md @@ -82,7 +82,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -168,7 +168,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -255,7 +255,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -340,7 +340,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -433,7 +433,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -520,7 +520,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details diff --git a/docs/PaymentMethodTokenRequest.md b/docs/PaymentMethodTokenRequest.md index 1a729ae..658c17e 100644 --- a/docs/PaymentMethodTokenRequest.md +++ b/docs/PaymentMethodTokenRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **type** | **str** | Type of payment method | -**token_id** | **str** | Token id that will be used to create a \"card\" type payment method. See the (subscriptions)[https://developers.conekta.com/v2.2.0/reference/createsubscription] tutorial for more information on how to tokenize cards. | +**token_id** | **str** | Token id that will be used to create a \"card\" type payment method. See the (subscriptions)[https://developers.conekta.com/v2.3.0/reference/createsubscription] tutorial for more information on how to tokenize cards. | ## Example diff --git a/docs/PaymentMethodsApi.md b/docs/PaymentMethodsApi.md index b35dbe6..ea950d0 100644 --- a/docs/PaymentMethodsApi.md +++ b/docs/PaymentMethodsApi.md @@ -85,7 +85,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -173,7 +173,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -267,7 +267,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -357,7 +357,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details diff --git a/docs/PayoutOrdersApi.md b/docs/PayoutOrdersApi.md index bcbde89..76a8a17 100644 --- a/docs/PayoutOrdersApi.md +++ b/docs/PayoutOrdersApi.md @@ -80,7 +80,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -164,7 +164,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -249,7 +249,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -338,7 +338,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details diff --git a/docs/PlansApi.md b/docs/PlansApi.md index 6e1bae0..46d9672 100644 --- a/docs/PlansApi.md +++ b/docs/PlansApi.md @@ -84,7 +84,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -165,7 +165,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -249,7 +249,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -343,7 +343,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -429,7 +429,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details diff --git a/docs/ProductsApi.md b/docs/ProductsApi.md index a2668d3..3e09dcd 100644 --- a/docs/ProductsApi.md +++ b/docs/ProductsApi.md @@ -84,7 +84,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -171,7 +171,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -262,7 +262,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details diff --git a/docs/ShippingContactsApi.md b/docs/ShippingContactsApi.md index eff8094..cc59b0f 100644 --- a/docs/ShippingContactsApi.md +++ b/docs/ShippingContactsApi.md @@ -84,7 +84,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -172,7 +172,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -263,7 +263,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details diff --git a/docs/ShippingsApi.md b/docs/ShippingsApi.md index 5a8c4f7..6b6067a 100644 --- a/docs/ShippingsApi.md +++ b/docs/ShippingsApi.md @@ -84,7 +84,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -171,7 +171,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -263,7 +263,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details diff --git a/docs/SubscriptionsApi.md b/docs/SubscriptionsApi.md index 07fe341..cb0dd3c 100644 --- a/docs/SubscriptionsApi.md +++ b/docs/SubscriptionsApi.md @@ -94,7 +94,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -182,7 +182,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -266,7 +266,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -351,7 +351,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -438,7 +438,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -524,7 +524,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -613,7 +613,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -701,7 +701,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -797,7 +797,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -890,7 +890,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -977,7 +977,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -1064,7 +1064,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -1154,7 +1154,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -1242,7 +1242,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -1329,7 +1329,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -1418,7 +1418,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details diff --git a/docs/SubscriptionsCustomerPortalApi.md b/docs/SubscriptionsCustomerPortalApi.md index bee59fb..bdce13e 100644 --- a/docs/SubscriptionsCustomerPortalApi.md +++ b/docs/SubscriptionsCustomerPortalApi.md @@ -80,7 +80,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -165,7 +165,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details diff --git a/docs/TaxesApi.md b/docs/TaxesApi.md index 4277e43..72368a9 100644 --- a/docs/TaxesApi.md +++ b/docs/TaxesApi.md @@ -84,7 +84,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -171,7 +171,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -262,7 +262,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details diff --git a/docs/TokensApi.md b/docs/TokensApi.md index bdb41ae..6c6fb4e 100644 --- a/docs/TokensApi.md +++ b/docs/TokensApi.md @@ -79,7 +79,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details diff --git a/docs/TransactionsApi.md b/docs/TransactionsApi.md index 9330a31..1f69457 100644 --- a/docs/TransactionsApi.md +++ b/docs/TransactionsApi.md @@ -80,7 +80,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -177,7 +177,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details diff --git a/docs/TransfersApi.md b/docs/TransfersApi.md index ba15e7f..803361a 100644 --- a/docs/TransfersApi.md +++ b/docs/TransfersApi.md @@ -80,7 +80,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -171,7 +171,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details diff --git a/docs/WebhookKeysApi.md b/docs/WebhookKeysApi.md index 307726a..0afb3e8 100644 --- a/docs/WebhookKeysApi.md +++ b/docs/WebhookKeysApi.md @@ -82,7 +82,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -162,7 +162,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -245,7 +245,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -336,7 +336,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -421,7 +421,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details diff --git a/docs/WebhooksApi.md b/docs/WebhooksApi.md index a8c3c13..8fd99d1 100644 --- a/docs/WebhooksApi.md +++ b/docs/WebhooksApi.md @@ -83,7 +83,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -163,7 +163,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -246,7 +246,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -339,7 +339,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -421,7 +421,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details @@ -509,7 +509,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json - - **Accept**: application/vnd.conekta-v2.2.0+json + - **Accept**: application/vnd.conekta-v2.3.0+json ### HTTP response details diff --git a/pyproject.toml b/pyproject.toml index 56cddbd..efb5db7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "conekta" -version = "7.1.0" +version = "9.0.0" description = "Conekta API" authors = [ {name = "Engineering Conekta",email = "engineering@conekta.com"}, diff --git a/setup.py b/setup.py index 8e9699a..4cf4ba3 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) @@ -20,7 +20,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "conekta" -VERSION = "7.1.0" +VERSION = "9.0.0" PYTHON_REQUIRES = ">= 3.10" REQUIRES = [ "urllib3 >= 2.6.3, < 3.0.0", diff --git a/test/test_antifraud_api.py b/test/test_antifraud_api.py index e5dfa65..5d4143b 100644 --- a/test/test_antifraud_api.py +++ b/test/test_antifraud_api.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_api_keys_api.py b/test/test_api_keys_api.py index ed10387..dca4a2d 100644 --- a/test/test_api_keys_api.py +++ b/test/test_api_keys_api.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_balances_api.py b/test/test_balances_api.py index 61fd62d..84370a4 100644 --- a/test/test_balances_api.py +++ b/test/test_balances_api.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_charges_api.py b/test/test_charges_api.py index 21ff75a..f5a484f 100644 --- a/test/test_charges_api.py +++ b/test/test_charges_api.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_companies_api.py b/test/test_companies_api.py index 6f4799e..8134134 100644 --- a/test/test_companies_api.py +++ b/test/test_companies_api.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_customers_api.py b/test/test_customers_api.py index cd67811..f58fb63 100644 --- a/test/test_customers_api.py +++ b/test/test_customers_api.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_discounts_api.py b/test/test_discounts_api.py index 92d6c55..bc71ce7 100644 --- a/test/test_discounts_api.py +++ b/test/test_discounts_api.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_events_api.py b/test/test_events_api.py index 327d933..abe17ee 100644 --- a/test/test_events_api.py +++ b/test/test_events_api.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_logs_api.py b/test/test_logs_api.py index 92d5a3f..3f5ad0e 100644 --- a/test/test_logs_api.py +++ b/test/test_logs_api.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_orders_api.py b/test/test_orders_api.py index 3a8b7d6..6d0f4e1 100644 --- a/test/test_orders_api.py +++ b/test/test_orders_api.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_payment_link_api.py b/test/test_payment_link_api.py index 90dbb15..5ab3453 100644 --- a/test/test_payment_link_api.py +++ b/test/test_payment_link_api.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_payment_methods_api.py b/test/test_payment_methods_api.py index e98c529..9933858 100644 --- a/test/test_payment_methods_api.py +++ b/test/test_payment_methods_api.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_payout_orders_api.py b/test/test_payout_orders_api.py index 474be30..0002fc5 100644 --- a/test/test_payout_orders_api.py +++ b/test/test_payout_orders_api.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_plans_api.py b/test/test_plans_api.py index 34254a2..3b1a065 100644 --- a/test/test_plans_api.py +++ b/test/test_plans_api.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_products_api.py b/test/test_products_api.py index 3a1c5ac..d579829 100644 --- a/test/test_products_api.py +++ b/test/test_products_api.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_shipping_contacts_api.py b/test/test_shipping_contacts_api.py index 80dad73..a6c38f0 100644 --- a/test/test_shipping_contacts_api.py +++ b/test/test_shipping_contacts_api.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_shippings_api.py b/test/test_shippings_api.py index 3590a2e..ff113d4 100644 --- a/test/test_shippings_api.py +++ b/test/test_shippings_api.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_subscriptions_api.py b/test/test_subscriptions_api.py index c810046..fbdb024 100644 --- a/test/test_subscriptions_api.py +++ b/test/test_subscriptions_api.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_subscriptions_customer_portal_api.py b/test/test_subscriptions_customer_portal_api.py index 8fa496b..f1bee3d 100644 --- a/test/test_subscriptions_customer_portal_api.py +++ b/test/test_subscriptions_customer_portal_api.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_taxes_api.py b/test/test_taxes_api.py index 622b51b..b2d72d6 100644 --- a/test/test_taxes_api.py +++ b/test/test_taxes_api.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_tokens_api.py b/test/test_tokens_api.py index 11e13f2..1e51f9c 100644 --- a/test/test_tokens_api.py +++ b/test/test_tokens_api.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_transactions_api.py b/test/test_transactions_api.py index f555b26..b3c89e9 100644 --- a/test/test_transactions_api.py +++ b/test/test_transactions_api.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_transfers_api.py b/test/test_transfers_api.py index e5334eb..801cd52 100644 --- a/test/test_transfers_api.py +++ b/test/test_transfers_api.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_webhook_keys_api.py b/test/test_webhook_keys_api.py index d8d7ef2..3f5514d 100644 --- a/test/test_webhook_keys_api.py +++ b/test/test_webhook_keys_api.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) diff --git a/test/test_webhooks_api.py b/test/test_webhooks_api.py index 9818e0d..2e26897 100644 --- a/test/test_webhooks_api.py +++ b/test/test_webhooks_api.py @@ -5,7 +5,7 @@ Conekta sdk - The version of the OpenAPI document: 2.2.0 + The version of the OpenAPI document: 2.3.0 Contact: engineering@conekta.com Generated by OpenAPI Generator (https://openapi-generator.tech) From c4fb2d0092cd354a10c35c6655bce2debf8030e4 Mon Sep 17 00:00:00 2001 From: Franklin Date: Tue, 21 Jul 2026 17:07:53 -0500 Subject: [PATCH 2/2] Update Python requirement to >=3.10 and adjust Makefile for generator compatibility --- Makefile | 4 +++- pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ccd555c..e36a0f2 100644 --- a/Makefile +++ b/Makefile @@ -14,4 +14,6 @@ python: -g python \ -o /local \ -c /local/config-python.json \ - --global-property modelTests=false + --global-property modelTests=false && \ + sed -i.bak 's/requires-python = ">=3.9"/requires-python = ">=3.10"/' pyproject.toml && \ + rm -f pyproject.toml.bak # workaround: generator v7.24.0 emits >=3.9; fixed upstream, remove on next generator upgrade diff --git a/pyproject.toml b/pyproject.toml index efb5db7..f4cbe0b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ authors = [ license = { text = "MIT-LICENSE" } readme = "README.md" keywords = ["OpenAPI", "OpenAPI-Generator", "Conekta API"] -requires-python = ">=3.9" +requires-python = ">=3.10" dependencies = [ "urllib3 (>=2.6.3,<3.0.0)",