diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index fea89fb..14622b8 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -3,7 +3,7 @@ { "name": "Python 3", // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile - "image": "mcr.microsoft.com/devcontainers/python:0-3.7" + "image": "mcr.microsoft.com/devcontainers/python:0-3.8" // Features to add to the dev container. More info: https://containers.dev/features. // "features": {}, diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 519d6c8..c2dea66 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index eb38c43..ea3250c 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -154,9 +154,11 @@ conekta/models/payment_method_card_response.py conekta/models/payment_method_cash.py conekta/models/payment_method_cash_request.py conekta/models/payment_method_cash_response.py +conekta/models/payment_method_general_request.py conekta/models/payment_method_response.py conekta/models/payment_method_spei_recurrent.py conekta/models/payment_method_spei_request.py +conekta/models/payment_method_token_request.py conekta/models/payout.py conekta/models/payout_method.py conekta/models/payout_order.py @@ -340,9 +342,11 @@ docs/PaymentMethodCardResponse.md docs/PaymentMethodCash.md docs/PaymentMethodCashRequest.md docs/PaymentMethodCashResponse.md +docs/PaymentMethodGeneralRequest.md docs/PaymentMethodResponse.md docs/PaymentMethodSpeiRecurrent.md docs/PaymentMethodSpeiRequest.md +docs/PaymentMethodTokenRequest.md docs/PaymentMethodsApi.md docs/Payout.md docs/PayoutMethod.md diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 18bb418..4bc5d61 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.5.0 +7.9.0 diff --git a/Makefile b/Makefile index 6314944..9cda55d 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ python: rm -rf docs && \ rm -rf conekta/models && \ docker run --rm \ - -v ${PWD}:/local openapitools/openapi-generator-cli:v7.5.0 generate \ + -v ${PWD}:/local openapitools/openapi-generator-cli:v7.9.0 generate \ -i https://raw.githubusercontent.com/conekta/openapi/main/_build/api.yaml \ -g python \ -o /local \ diff --git a/README.md b/README.md index a841435..4ab410c 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ Conekta sdk This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 2.1.0 -- Package version: 6.0.3 -- Generator version: 7.5.0 +- Package version: 6.0.4 +- Generator version: 7.9.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) @@ -313,9 +313,11 @@ Class | Method | HTTP request | Description - [PaymentMethodCash](docs/PaymentMethodCash.md) - [PaymentMethodCashRequest](docs/PaymentMethodCashRequest.md) - [PaymentMethodCashResponse](docs/PaymentMethodCashResponse.md) + - [PaymentMethodGeneralRequest](docs/PaymentMethodGeneralRequest.md) - [PaymentMethodResponse](docs/PaymentMethodResponse.md) - [PaymentMethodSpeiRecurrent](docs/PaymentMethodSpeiRecurrent.md) - [PaymentMethodSpeiRequest](docs/PaymentMethodSpeiRequest.md) + - [PaymentMethodTokenRequest](docs/PaymentMethodTokenRequest.md) - [Payout](docs/Payout.md) - [PayoutMethod](docs/PayoutMethod.md) - [PayoutOrder](docs/PayoutOrder.md) diff --git a/VERSION b/VERSION index 090ea9d..1aa5e41 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -6.0.3 +6.0.4 diff --git a/conekta/__init__.py b/conekta/__init__.py index 5b36bc9..721a2b5 100644 --- a/conekta/__init__.py +++ b/conekta/__init__.py @@ -15,7 +15,7 @@ """ # noqa: E501 -__version__ = "6.0.3" +__version__ = "6.0.4" # import apis into sdk package from conekta.api.antifraud_api import AntifraudApi @@ -174,9 +174,11 @@ from conekta.models.payment_method_cash import PaymentMethodCash from conekta.models.payment_method_cash_request import PaymentMethodCashRequest from conekta.models.payment_method_cash_response import PaymentMethodCashResponse +from conekta.models.payment_method_general_request import PaymentMethodGeneralRequest from conekta.models.payment_method_response import PaymentMethodResponse from conekta.models.payment_method_spei_recurrent import PaymentMethodSpeiRecurrent from conekta.models.payment_method_spei_request import PaymentMethodSpeiRequest +from conekta.models.payment_method_token_request import PaymentMethodTokenRequest from conekta.models.payout import Payout from conekta.models.payout_method import PayoutMethod from conekta.models.payout_order import PayoutOrder diff --git a/conekta/api/antifraud_api.py b/conekta/api/antifraud_api.py index 5ff74c0..1bbe3b3 100644 --- a/conekta/api/antifraud_api.py +++ b/conekta/api/antifraud_api.py @@ -276,7 +276,9 @@ def _create_rule_blacklist_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -291,11 +293,12 @@ def _create_rule_blacklist_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -568,7 +571,9 @@ def _create_rule_whitelist_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -583,11 +588,12 @@ def _create_rule_whitelist_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -873,7 +879,9 @@ def _delete_rule_blacklist_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -890,11 +898,12 @@ def _delete_rule_blacklist_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -1170,7 +1179,9 @@ def _delete_rule_whitelist_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1187,11 +1198,12 @@ def _delete_rule_whitelist_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -1438,7 +1450,9 @@ def _get_rule_blacklist_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1451,11 +1465,12 @@ def _get_rule_blacklist_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -1705,7 +1720,9 @@ def _get_rule_whitelist_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1718,11 +1735,12 @@ def _get_rule_whitelist_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting diff --git a/conekta/api/api_keys_api.py b/conekta/api/api_keys_api.py index 0cbda13..d122899 100644 --- a/conekta/api/api_keys_api.py +++ b/conekta/api/api_keys_api.py @@ -295,7 +295,9 @@ def _create_api_key_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -312,11 +314,12 @@ def _create_api_key_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -592,7 +595,9 @@ def _delete_api_key_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -607,11 +612,12 @@ def _delete_api_key_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -887,7 +893,9 @@ def _get_api_key_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -904,11 +912,12 @@ def _get_api_key_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -1220,7 +1229,9 @@ def _get_api_keys_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1251,11 +1262,12 @@ def _get_api_keys_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -1531,7 +1543,9 @@ def _update_api_key_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1548,11 +1562,12 @@ def _update_api_key_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/conekta/api/balances_api.py b/conekta/api/balances_api.py index ea3da38..6ef0d7a 100644 --- a/conekta/api/balances_api.py +++ b/conekta/api/balances_api.py @@ -261,7 +261,9 @@ def _get_balance_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -274,11 +276,12 @@ def _get_balance_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting diff --git a/conekta/api/charges_api.py b/conekta/api/charges_api.py index 315b942..a5fdb70 100644 --- a/conekta/api/charges_api.py +++ b/conekta/api/charges_api.py @@ -327,7 +327,9 @@ def _get_charges_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -358,11 +360,12 @@ def _get_charges_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -654,7 +657,9 @@ def _orders_create_charge_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -673,11 +678,12 @@ def _orders_create_charge_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -976,7 +982,9 @@ def _update_charge_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -995,11 +1003,12 @@ def _update_charge_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/conekta/api/companies_api.py b/conekta/api/companies_api.py index 5676a66..f7da07f 100644 --- a/conekta/api/companies_api.py +++ b/conekta/api/companies_api.py @@ -314,7 +314,9 @@ def _get_companies_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -343,11 +345,12 @@ def _get_companies_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -607,7 +610,9 @@ def _get_company_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -622,11 +627,12 @@ def _get_company_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting diff --git a/conekta/api/customers_api.py b/conekta/api/customers_api.py index c959eb2..9a86c21 100644 --- a/conekta/api/customers_api.py +++ b/conekta/api/customers_api.py @@ -300,7 +300,9 @@ def _create_customer_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -317,11 +319,12 @@ def _create_customer_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -626,7 +629,9 @@ def _create_customer_fiscal_entities_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -645,11 +650,12 @@ def _create_customer_fiscal_entities_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -941,7 +947,9 @@ def _delete_customer_by_id_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -958,11 +966,12 @@ def _delete_customer_by_id_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -1238,7 +1247,9 @@ def _get_customer_by_id_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1255,11 +1266,12 @@ def _get_customer_by_id_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -1571,7 +1583,9 @@ def _get_customers_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1602,11 +1616,12 @@ def _get_customers_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -1898,7 +1913,9 @@ def _update_customer_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1917,11 +1934,12 @@ def _update_customer_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -2239,7 +2257,9 @@ def _update_customer_fiscal_entities_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2260,11 +2280,12 @@ def _update_customer_fiscal_entities_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/conekta/api/discounts_api.py b/conekta/api/discounts_api.py index d954894..2fb8e1e 100644 --- a/conekta/api/discounts_api.py +++ b/conekta/api/discounts_api.py @@ -306,7 +306,9 @@ def _orders_create_discount_line_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -325,11 +327,12 @@ def _orders_create_discount_line_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -634,7 +637,9 @@ def _orders_delete_discount_lines_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -653,11 +658,12 @@ def _orders_delete_discount_lines_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -949,7 +955,9 @@ def _orders_get_discount_line_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -968,11 +976,12 @@ def _orders_get_discount_line_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -1297,7 +1306,9 @@ def _orders_get_discount_lines_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1330,11 +1341,12 @@ def _orders_get_discount_lines_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -1639,7 +1651,9 @@ def _orders_update_discount_lines_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1660,11 +1674,12 @@ def _orders_update_discount_lines_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/conekta/api/events_api.py b/conekta/api/events_api.py index ad70e4a..a5b7dbe 100644 --- a/conekta/api/events_api.py +++ b/conekta/api/events_api.py @@ -292,7 +292,9 @@ def _get_event_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -309,11 +311,12 @@ def _get_event_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -622,7 +625,9 @@ def _get_events_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -653,11 +658,12 @@ def _get_events_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -933,7 +939,9 @@ def _resend_event_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -950,11 +958,12 @@ def _resend_event_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting diff --git a/conekta/api/logs_api.py b/conekta/api/logs_api.py index 7dc7db0..b73766b 100644 --- a/conekta/api/logs_api.py +++ b/conekta/api/logs_api.py @@ -291,7 +291,9 @@ def _get_log_by_id_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -308,11 +310,12 @@ def _get_log_by_id_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -624,7 +627,9 @@ def _get_logs_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -655,11 +660,12 @@ def _get_logs_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting diff --git a/conekta/api/orders_api.py b/conekta/api/orders_api.py index 45fb322..ae0c125 100644 --- a/conekta/api/orders_api.py +++ b/conekta/api/orders_api.py @@ -17,7 +17,7 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import Field, StrictStr, field_validator +from pydantic import Field, StrictInt, StrictStr, field_validator from typing import Optional from typing_extensions import Annotated from conekta.models.get_orders_response import GetOrdersResponse @@ -301,7 +301,9 @@ def _cancel_order_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -318,11 +320,12 @@ def _cancel_order_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -601,7 +604,9 @@ def _create_order_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -618,11 +623,12 @@ def _create_order_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -911,7 +917,9 @@ def _get_order_by_id_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -928,11 +936,12 @@ def _get_order_by_id_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -967,6 +976,13 @@ def get_orders( search: Annotated[Optional[StrictStr], Field(description="General order search, e.g. by mail, reference etc.")] = None, next: Annotated[Optional[StrictStr], Field(description="next page")] = None, previous: Annotated[Optional[StrictStr], Field(description="previous page")] = None, + payment_status: Annotated[Optional[StrictStr], Field(description="Filters by order status")] = None, + last_payment_info_status: Annotated[Optional[StrictStr], Field(description="Filters by last payment info status")] = None, + created_at: Annotated[Optional[StrictInt], Field(description="created equal to")] = None, + created_at_gte: Annotated[Optional[StrictInt], Field(description="created at greater than or equal to")] = None, + created_at_lte: Annotated[Optional[StrictInt], Field(description="created at less than or equal to")] = None, + updated_at_gte: Annotated[Optional[StrictInt], Field(description="updated at greater than or equal to")] = None, + updated_at_lte: Annotated[Optional[StrictInt], Field(description="updated at less than or equal to")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -996,6 +1012,20 @@ def get_orders( :type next: str :param previous: previous page :type previous: str + :param payment_status: Filters by order status + :type payment_status: str + :param last_payment_info_status: Filters by last payment info status + :type last_payment_info_status: str + :param created_at: created equal to + :type created_at: int + :param created_at_gte: created at greater than or equal to + :type created_at_gte: int + :param created_at_lte: created at less than or equal to + :type created_at_lte: int + :param updated_at_gte: updated at greater than or equal to + :type updated_at_gte: int + :param updated_at_lte: updated at less than or equal to + :type updated_at_lte: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1025,6 +1055,13 @@ def get_orders( search=search, next=next, previous=previous, + payment_status=payment_status, + last_payment_info_status=last_payment_info_status, + created_at=created_at, + created_at_gte=created_at_gte, + created_at_lte=created_at_lte, + updated_at_gte=updated_at_gte, + updated_at_lte=updated_at_lte, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1056,6 +1093,13 @@ def get_orders_with_http_info( search: Annotated[Optional[StrictStr], Field(description="General order search, e.g. by mail, reference etc.")] = None, next: Annotated[Optional[StrictStr], Field(description="next page")] = None, previous: Annotated[Optional[StrictStr], Field(description="previous page")] = None, + payment_status: Annotated[Optional[StrictStr], Field(description="Filters by order status")] = None, + last_payment_info_status: Annotated[Optional[StrictStr], Field(description="Filters by last payment info status")] = None, + created_at: Annotated[Optional[StrictInt], Field(description="created equal to")] = None, + created_at_gte: Annotated[Optional[StrictInt], Field(description="created at greater than or equal to")] = None, + created_at_lte: Annotated[Optional[StrictInt], Field(description="created at less than or equal to")] = None, + updated_at_gte: Annotated[Optional[StrictInt], Field(description="updated at greater than or equal to")] = None, + updated_at_lte: Annotated[Optional[StrictInt], Field(description="updated at less than or equal to")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1085,6 +1129,20 @@ def get_orders_with_http_info( :type next: str :param previous: previous page :type previous: str + :param payment_status: Filters by order status + :type payment_status: str + :param last_payment_info_status: Filters by last payment info status + :type last_payment_info_status: str + :param created_at: created equal to + :type created_at: int + :param created_at_gte: created at greater than or equal to + :type created_at_gte: int + :param created_at_lte: created at less than or equal to + :type created_at_lte: int + :param updated_at_gte: updated at greater than or equal to + :type updated_at_gte: int + :param updated_at_lte: updated at less than or equal to + :type updated_at_lte: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1114,6 +1172,13 @@ def get_orders_with_http_info( search=search, next=next, previous=previous, + payment_status=payment_status, + last_payment_info_status=last_payment_info_status, + created_at=created_at, + created_at_gte=created_at_gte, + created_at_lte=created_at_lte, + updated_at_gte=updated_at_gte, + updated_at_lte=updated_at_lte, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1145,6 +1210,13 @@ def get_orders_without_preload_content( search: Annotated[Optional[StrictStr], Field(description="General order search, e.g. by mail, reference etc.")] = None, next: Annotated[Optional[StrictStr], Field(description="next page")] = None, previous: Annotated[Optional[StrictStr], Field(description="previous page")] = None, + payment_status: Annotated[Optional[StrictStr], Field(description="Filters by order status")] = None, + last_payment_info_status: Annotated[Optional[StrictStr], Field(description="Filters by last payment info status")] = None, + created_at: Annotated[Optional[StrictInt], Field(description="created equal to")] = None, + created_at_gte: Annotated[Optional[StrictInt], Field(description="created at greater than or equal to")] = None, + created_at_lte: Annotated[Optional[StrictInt], Field(description="created at less than or equal to")] = None, + updated_at_gte: Annotated[Optional[StrictInt], Field(description="updated at greater than or equal to")] = None, + updated_at_lte: Annotated[Optional[StrictInt], Field(description="updated at less than or equal to")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1174,6 +1246,20 @@ def get_orders_without_preload_content( :type next: str :param previous: previous page :type previous: str + :param payment_status: Filters by order status + :type payment_status: str + :param last_payment_info_status: Filters by last payment info status + :type last_payment_info_status: str + :param created_at: created equal to + :type created_at: int + :param created_at_gte: created at greater than or equal to + :type created_at_gte: int + :param created_at_lte: created at less than or equal to + :type created_at_lte: int + :param updated_at_gte: updated at greater than or equal to + :type updated_at_gte: int + :param updated_at_lte: updated at less than or equal to + :type updated_at_lte: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1203,6 +1289,13 @@ def get_orders_without_preload_content( search=search, next=next, previous=previous, + payment_status=payment_status, + last_payment_info_status=last_payment_info_status, + created_at=created_at, + created_at_gte=created_at_gte, + created_at_lte=created_at_lte, + updated_at_gte=updated_at_gte, + updated_at_lte=updated_at_lte, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1229,6 +1322,13 @@ def _get_orders_serialize( search, next, previous, + payment_status, + last_payment_info_status, + created_at, + created_at_gte, + created_at_lte, + updated_at_gte, + updated_at_lte, _request_auth, _content_type, _headers, @@ -1244,7 +1344,9 @@ def _get_orders_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1265,6 +1367,34 @@ def _get_orders_serialize( _query_params.append(('previous', previous)) + if payment_status is not None: + + _query_params.append(('payment_status', payment_status)) + + if last_payment_info_status is not None: + + _query_params.append(('last_payment_info.status', last_payment_info_status)) + + if created_at is not None: + + _query_params.append(('created_at', created_at)) + + if created_at_gte is not None: + + _query_params.append(('created_at.gte', created_at_gte)) + + if created_at_lte is not None: + + _query_params.append(('created_at.lte', created_at_lte)) + + if updated_at_gte is not None: + + _query_params.append(('updated_at.gte', updated_at_gte)) + + if updated_at_lte is not None: + + _query_params.append(('updated_at.lte', updated_at_lte)) + # process the header parameters if accept_language is not None: _header_params['Accept-Language'] = accept_language @@ -1275,11 +1405,12 @@ def _get_orders_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -1574,7 +1705,9 @@ def _order_cancel_refund_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1593,11 +1726,12 @@ def _order_cancel_refund_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -1892,7 +2026,9 @@ def _order_refund_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1911,11 +2047,12 @@ def _order_refund_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -2220,7 +2357,9 @@ def _orders_create_capture_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2239,11 +2378,12 @@ def _orders_create_capture_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -2535,7 +2675,9 @@ def _update_order_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2552,11 +2694,12 @@ def _update_order_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/conekta/api/payment_link_api.py b/conekta/api/payment_link_api.py index bdd3af2..b01e782 100644 --- a/conekta/api/payment_link_api.py +++ b/conekta/api/payment_link_api.py @@ -297,7 +297,9 @@ def _cancel_checkout_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -314,11 +316,12 @@ def _cancel_checkout_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -594,7 +597,9 @@ def _create_checkout_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -611,11 +616,12 @@ def _create_checkout_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -920,7 +926,9 @@ def _email_checkout_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -939,11 +947,12 @@ def _email_checkout_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -1235,7 +1244,9 @@ def _get_checkout_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1252,11 +1263,12 @@ def _get_checkout_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -1574,7 +1586,9 @@ def _get_checkouts_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1605,11 +1619,12 @@ def _get_checkouts_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -1901,7 +1916,9 @@ def _sms_checkout_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1920,11 +1937,12 @@ def _sms_checkout_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/conekta/api/payment_methods_api.py b/conekta/api/payment_methods_api.py index 03062da..d38a3f2 100644 --- a/conekta/api/payment_methods_api.py +++ b/conekta/api/payment_methods_api.py @@ -310,7 +310,9 @@ def _create_customer_payment_methods_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -329,11 +331,12 @@ def _create_customer_payment_methods_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -638,7 +641,9 @@ def _delete_customer_payment_methods_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -657,11 +662,12 @@ def _delete_customer_payment_methods_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -989,7 +995,9 @@ def _get_customer_payment_methods_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1022,11 +1030,12 @@ def _get_customer_payment_methods_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -1331,7 +1340,9 @@ def _update_customer_payment_methods_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1352,11 +1363,12 @@ def _update_customer_payment_methods_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/conekta/api/payout_orders_api.py b/conekta/api/payout_orders_api.py index b0f0487..9ef738f 100644 --- a/conekta/api/payout_orders_api.py +++ b/conekta/api/payout_orders_api.py @@ -285,7 +285,9 @@ def _create_payout_order_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -300,11 +302,12 @@ def _create_payout_order_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -580,7 +583,9 @@ def _get_payout_order_by_id_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -595,11 +600,12 @@ def _get_payout_order_by_id_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -898,7 +904,9 @@ def _get_payout_orders_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -927,11 +935,12 @@ def _get_payout_orders_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting diff --git a/conekta/api/plans_api.py b/conekta/api/plans_api.py index 031e538..5214a2f 100644 --- a/conekta/api/plans_api.py +++ b/conekta/api/plans_api.py @@ -293,7 +293,9 @@ def _create_plan_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -310,11 +312,12 @@ def _create_plan_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -590,7 +593,9 @@ def _delete_plan_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -605,11 +610,12 @@ def _delete_plan_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -885,7 +891,9 @@ def _get_plan_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -902,11 +910,12 @@ def _get_plan_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -1218,7 +1227,9 @@ def _get_plans_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1249,11 +1260,12 @@ def _get_plans_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -1542,7 +1554,9 @@ def _update_plan_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1561,11 +1575,12 @@ def _update_plan_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/conekta/api/products_api.py b/conekta/api/products_api.py index e3c6238..0d42d08 100644 --- a/conekta/api/products_api.py +++ b/conekta/api/products_api.py @@ -305,7 +305,9 @@ def _orders_create_product_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -324,11 +326,12 @@ def _orders_create_product_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -633,7 +636,9 @@ def _orders_delete_product_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -652,11 +657,12 @@ def _orders_delete_product_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -961,7 +967,9 @@ def _orders_update_product_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -982,11 +990,12 @@ def _orders_update_product_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/conekta/api/shipping_contacts_api.py b/conekta/api/shipping_contacts_api.py index fe72363..cbb2437 100644 --- a/conekta/api/shipping_contacts_api.py +++ b/conekta/api/shipping_contacts_api.py @@ -308,7 +308,9 @@ def _create_customer_shipping_contacts_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -327,11 +329,12 @@ def _create_customer_shipping_contacts_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -636,7 +639,9 @@ def _delete_customer_shipping_contacts_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -655,11 +660,12 @@ def _delete_customer_shipping_contacts_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -964,7 +970,9 @@ def _update_customer_shipping_contacts_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -985,11 +993,12 @@ def _update_customer_shipping_contacts_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/conekta/api/shippings_api.py b/conekta/api/shippings_api.py index bcdba87..0a8e541 100644 --- a/conekta/api/shippings_api.py +++ b/conekta/api/shippings_api.py @@ -304,7 +304,9 @@ def _orders_create_shipping_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -323,11 +325,12 @@ def _orders_create_shipping_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -635,7 +638,9 @@ def _orders_delete_shipping_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -654,11 +659,12 @@ def _orders_delete_shipping_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -963,7 +969,9 @@ def _orders_update_shipping_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -984,11 +992,12 @@ def _orders_update_shipping_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/conekta/api/subscriptions_api.py b/conekta/api/subscriptions_api.py index 095a6e6..91580f3 100644 --- a/conekta/api/subscriptions_api.py +++ b/conekta/api/subscriptions_api.py @@ -293,7 +293,9 @@ def _cancel_subscription_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -310,11 +312,12 @@ def _cancel_subscription_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -606,7 +609,9 @@ def _create_subscription_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -625,11 +630,12 @@ def _create_subscription_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -924,7 +930,9 @@ def _get_all_events_from_subscription_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -941,11 +949,12 @@ def _get_all_events_from_subscription_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -1205,7 +1214,9 @@ def _get_subscription_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1220,11 +1231,12 @@ def _get_subscription_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -1503,7 +1515,9 @@ def _pause_subscription_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1520,11 +1534,12 @@ def _pause_subscription_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -1806,7 +1821,9 @@ def _resume_subscription_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1823,11 +1840,12 @@ def _resume_subscription_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -2119,7 +2137,9 @@ def _update_subscription_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -2138,11 +2158,12 @@ def _update_subscription_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/conekta/api/taxes_api.py b/conekta/api/taxes_api.py index 056a64a..2849a9d 100644 --- a/conekta/api/taxes_api.py +++ b/conekta/api/taxes_api.py @@ -305,7 +305,9 @@ def _orders_create_taxes_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -324,11 +326,12 @@ def _orders_create_taxes_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -633,7 +636,9 @@ def _orders_delete_taxes_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -652,11 +657,12 @@ def _orders_delete_taxes_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -961,7 +967,9 @@ def _orders_update_taxes_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -982,11 +990,12 @@ def _orders_update_taxes_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/conekta/api/tokens_api.py b/conekta/api/tokens_api.py index 4b69065..2950215 100644 --- a/conekta/api/tokens_api.py +++ b/conekta/api/tokens_api.py @@ -278,7 +278,9 @@ def _create_token_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -293,11 +295,12 @@ def _create_token_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/conekta/api/transactions_api.py b/conekta/api/transactions_api.py index 7ce1712..422f3d9 100644 --- a/conekta/api/transactions_api.py +++ b/conekta/api/transactions_api.py @@ -291,7 +291,9 @@ def _get_transaction_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -308,11 +310,12 @@ def _get_transaction_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -663,7 +666,9 @@ def _get_transactions_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -706,11 +711,12 @@ def _get_transactions_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting diff --git a/conekta/api/transfers_api.py b/conekta/api/transfers_api.py index d04fbc9..1f769b1 100644 --- a/conekta/api/transfers_api.py +++ b/conekta/api/transfers_api.py @@ -291,7 +291,9 @@ def _get_transfer_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -308,11 +310,12 @@ def _get_transfer_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -624,7 +627,9 @@ def _get_transfers_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -655,11 +660,12 @@ def _get_transfers_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting diff --git a/conekta/api/webhook_keys_api.py b/conekta/api/webhook_keys_api.py index 5eb3650..a51ea1f 100644 --- a/conekta/api/webhook_keys_api.py +++ b/conekta/api/webhook_keys_api.py @@ -279,7 +279,9 @@ def _create_webhook_key_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -294,11 +296,12 @@ def _create_webhook_key_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -571,7 +574,9 @@ def _delete_webhook_key_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -586,11 +591,12 @@ def _delete_webhook_key_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -863,7 +869,9 @@ def _get_webhook_key_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -880,11 +888,12 @@ def _get_webhook_key_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -1196,7 +1205,9 @@ def _get_webhook_keys_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1227,11 +1238,12 @@ def _get_webhook_keys_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -1507,7 +1519,9 @@ def _update_webhook_key_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1524,11 +1538,12 @@ def _update_webhook_key_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/conekta/api/webhooks_api.py b/conekta/api/webhooks_api.py index f6ffbd2..5cdc9db 100644 --- a/conekta/api/webhooks_api.py +++ b/conekta/api/webhooks_api.py @@ -277,7 +277,9 @@ def _create_webhook_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -292,11 +294,12 @@ def _create_webhook_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # set the HTTP header `Content-Type` if _content_type: @@ -569,7 +572,9 @@ def _delete_webhook_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -584,11 +589,12 @@ def _delete_webhook_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -861,7 +867,9 @@ def _get_webhook_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -878,11 +886,12 @@ def _get_webhook_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -1207,7 +1216,9 @@ def _get_webhooks_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1242,11 +1253,12 @@ def _get_webhooks_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -1509,7 +1521,9 @@ def _test_webhook_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1524,11 +1538,12 @@ def _test_webhook_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # authentication setting @@ -1817,7 +1832,9 @@ def _update_webhook_serialize( _query_params: List[Tuple[str, str]] = [] _header_params: Dict[str, Optional[str]] = _headers or {} _form_params: List[Tuple[str, str]] = [] - _files: Dict[str, Union[str, bytes]] = {} + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} _body_params: Optional[bytes] = None # process the path parameters @@ -1836,11 +1853,12 @@ def _update_webhook_serialize( # set the HTTP header `Accept` - _header_params['Accept'] = self.api_client.select_header_accept( - [ - 'application/vnd.conekta-v2.1.0+json' - ] - ) + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/vnd.conekta-v2.1.0+json' + ] + ) # set the HTTP header `Content-Type` if _content_type: diff --git a/conekta/api_client.py b/conekta/api_client.py index f01d281..0ffb2d2 100644 --- a/conekta/api_client.py +++ b/conekta/api_client.py @@ -74,7 +74,7 @@ class ApiClient: 'lang': 'python', 'lang_version': platform.python_version(), 'publisher': 'conekta', - 'bindings_version': '6.0.3', + 'bindings_version': '6.0.4', 'uname': platform.uname() } _pool = None @@ -97,7 +97,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Conekta/v2 PythonBindings/6.0.3' + self.user_agent = 'Conekta/v2 PythonBindings/6.0.4' 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 bcd15f2..71e93a0 100644 --- a/conekta/configuration.py +++ b/conekta/configuration.py @@ -33,6 +33,9 @@ class Configuration: """This class contains various settings of the API client. :param host: Base url. + :param ignore_operation_servers + Boolean to ignore operation servers for the API client. + Config will use `host` as the base url regardless of the operation servers. :param api_key: Dict to store API key(s). Each entry in the dict specifies an API key. The dict key is the name of the security scheme in the OAS specification. @@ -55,6 +58,7 @@ class Configuration: values before. :param ssl_ca_cert: str - the path to a file of concatenated CA certificates in PEM format. + :param retries: Number of retries for API requests. :Example: """ @@ -67,7 +71,11 @@ def __init__(self, host=None, access_token=None, server_index=None, server_variables=None, server_operation_index=None, server_operation_variables=None, + ignore_operation_servers=False, ssl_ca_cert=None, + retries=None, + *, + debug: Optional[bool] = None ) -> None: """Constructor """ @@ -82,6 +90,9 @@ def __init__(self, host=None, self.server_operation_variables = server_operation_variables or {} """Default server variables """ + self.ignore_operation_servers = ignore_operation_servers + """Ignore operation servers + """ self.temp_folder_path = None """Temp file folder for downloading files """ @@ -125,7 +136,10 @@ def __init__(self, host=None, self.logger_file = None """Debug file location """ - self.debug = False + if debug is not None: + self.debug = debug + else: + self.__debug = False """Debug switch """ @@ -168,7 +182,7 @@ def __init__(self, host=None, self.safe_chars_for_path_param = '' """Safe chars for path_param """ - self.retries = None + self.retries = retries """Adding retries to override urllib3 default value 3 """ # Enable client side validation @@ -379,7 +393,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 2.1.0\n"\ - "SDK Package Version: 6.0.3".\ + "SDK Package Version: 6.0.4".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/conekta/models/__init__.py b/conekta/models/__init__.py index 0b47feb..5ae4baf 100644 --- a/conekta/models/__init__.py +++ b/conekta/models/__init__.py @@ -134,9 +134,11 @@ from conekta.models.payment_method_cash import PaymentMethodCash from conekta.models.payment_method_cash_request import PaymentMethodCashRequest from conekta.models.payment_method_cash_response import PaymentMethodCashResponse +from conekta.models.payment_method_general_request import PaymentMethodGeneralRequest from conekta.models.payment_method_response import PaymentMethodResponse from conekta.models.payment_method_spei_recurrent import PaymentMethodSpeiRecurrent from conekta.models.payment_method_spei_request import PaymentMethodSpeiRequest +from conekta.models.payment_method_token_request import PaymentMethodTokenRequest from conekta.models.payout import Payout from conekta.models.payout_method import PayoutMethod from conekta.models.payout_order import PayoutOrder diff --git a/conekta/models/balance_response.py b/conekta/models/balance_response.py index 3b181aa..15ae447 100644 --- a/conekta/models/balance_response.py +++ b/conekta/models/balance_response.py @@ -82,65 +82,65 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in available (list) _items = [] if self.available: - for _item in self.available: - if _item: - _items.append(_item.to_dict()) + for _item_available in self.available: + if _item_available: + _items.append(_item_available.to_dict()) _dict['available'] = _items # override the default output from pydantic by calling `to_dict()` of each item in cashout_retention_amount (list) _items = [] if self.cashout_retention_amount: - for _item in self.cashout_retention_amount: - if _item: - _items.append(_item.to_dict()) + for _item_cashout_retention_amount in self.cashout_retention_amount: + if _item_cashout_retention_amount: + _items.append(_item_cashout_retention_amount.to_dict()) _dict['cashout_retention_amount'] = _items # override the default output from pydantic by calling `to_dict()` of each item in conekta_retention (list) _items = [] if self.conekta_retention: - for _item in self.conekta_retention: - if _item: - _items.append(_item.to_dict()) + for _item_conekta_retention in self.conekta_retention: + if _item_conekta_retention: + _items.append(_item_conekta_retention.to_dict()) _dict['conekta_retention'] = _items # override the default output from pydantic by calling `to_dict()` of each item in gateway (list) _items = [] if self.gateway: - for _item in self.gateway: - if _item: - _items.append(_item.to_dict()) + for _item_gateway in self.gateway: + if _item_gateway: + _items.append(_item_gateway.to_dict()) _dict['gateway'] = _items # override the default output from pydantic by calling `to_dict()` of each item in pending (list) _items = [] if self.pending: - for _item in self.pending: - if _item: - _items.append(_item.to_dict()) + for _item_pending in self.pending: + if _item_pending: + _items.append(_item_pending.to_dict()) _dict['pending'] = _items # override the default output from pydantic by calling `to_dict()` of each item in retained (list) _items = [] if self.retained: - for _item in self.retained: - if _item: - _items.append(_item.to_dict()) + for _item_retained in self.retained: + if _item_retained: + _items.append(_item_retained.to_dict()) _dict['retained'] = _items # override the default output from pydantic by calling `to_dict()` of each item in retention_amount (list) _items = [] if self.retention_amount: - for _item in self.retention_amount: - if _item: - _items.append(_item.to_dict()) + for _item_retention_amount in self.retention_amount: + if _item_retention_amount: + _items.append(_item_retention_amount.to_dict()) _dict['retention_amount'] = _items # override the default output from pydantic by calling `to_dict()` of each item in target_retention_amount (list) _items = [] if self.target_retention_amount: - for _item in self.target_retention_amount: - if _item: - _items.append(_item.to_dict()) + for _item_target_retention_amount in self.target_retention_amount: + if _item_target_retention_amount: + _items.append(_item_target_retention_amount.to_dict()) _dict['target_retention_amount'] = _items # override the default output from pydantic by calling `to_dict()` of each item in temporarily_retained (list) _items = [] if self.temporarily_retained: - for _item in self.temporarily_retained: - if _item: - _items.append(_item.to_dict()) + for _item_temporarily_retained in self.temporarily_retained: + if _item_temporarily_retained: + _items.append(_item_temporarily_retained.to_dict()) _dict['temporarily_retained'] = _items return _dict diff --git a/conekta/models/charge_request.py b/conekta/models/charge_request.py index 331f666..d906329 100644 --- a/conekta/models/charge_request.py +++ b/conekta/models/charge_request.py @@ -28,7 +28,7 @@ class ChargeRequest(BaseModel): """ The charges to be made """ # noqa: E501 - amount: Optional[StrictInt] = None + amount: Optional[StrictInt] = Field(default=None, description="Amount to be charged in cents") payment_method: ChargeRequestPaymentMethod reference_id: Optional[StrictStr] = Field(default=None, description="Custom reference to add to the charge") __properties: ClassVar[List[str]] = ["amount", "payment_method", "reference_id"] diff --git a/conekta/models/charge_request_payment_method.py b/conekta/models/charge_request_payment_method.py index 1be90bd..a094522 100644 --- a/conekta/models/charge_request_payment_method.py +++ b/conekta/models/charge_request_payment_method.py @@ -14,85 +14,125 @@ from __future__ import annotations -import pprint -import re # noqa: F401 import json +import pprint +from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator +from typing import Any, List, Optional +from conekta.models.payment_method_card_request import PaymentMethodCardRequest +from conekta.models.payment_method_general_request import PaymentMethodGeneralRequest +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self -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 +CHARGEREQUESTPAYMENTMETHOD_ONE_OF_SCHEMAS = ["PaymentMethodCardRequest", "PaymentMethodGeneralRequest"] class ChargeRequestPaymentMethod(BaseModel): """ - Payment method used in the charge. Go to the [payment methods](https://developers.conekta.com/reference/m%C3%A9todos-de-pago) section for more details - """ # noqa: E501 - expires_at: Optional[StrictInt] = Field(default=None, description="Method expiration date as unix timestamp") - monthly_installments: Optional[StrictInt] = Field(default=None, description="How many months without interest to apply, it can be 3, 6, 9, 12 or 18") - type: StrictStr - token_id: Optional[StrictStr] = None - payment_source_id: Optional[StrictStr] = None - contract_id: Optional[StrictStr] = Field(default=None, description="Optional id sent to indicate the bank contract for recurrent card charges.") - __properties: ClassVar[List[str]] = ["expires_at", "monthly_installments", "type", "token_id", "payment_source_id", "contract_id"] + ChargeRequestPaymentMethod + """ + # data type: PaymentMethodCardRequest + oneof_schema_1_validator: Optional[PaymentMethodCardRequest] = None + # data type: PaymentMethodGeneralRequest + oneof_schema_2_validator: Optional[PaymentMethodGeneralRequest] = None + actual_instance: Optional[Union[PaymentMethodCardRequest, PaymentMethodGeneralRequest]] = None + one_of_schemas: Set[str] = { "PaymentMethodCardRequest", "PaymentMethodGeneralRequest" } model_config = ConfigDict( - populate_by_name=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""" - # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead - return json.dumps(self.to_dict()) + 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 = ChargeRequestPaymentMethod.model_construct() + error_messages = [] + match = 0 + # validate data type: PaymentMethodCardRequest + if not isinstance(v, PaymentMethodCardRequest): + error_messages.append(f"Error! Input type `{type(v)}` is not `PaymentMethodCardRequest`") + else: + match += 1 + # validate data type: PaymentMethodGeneralRequest + if not isinstance(v, PaymentMethodGeneralRequest): + error_messages.append(f"Error! Input type `{type(v)}` is not `PaymentMethodGeneralRequest`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in ChargeRequestPaymentMethod with oneOf schemas: PaymentMethodCardRequest, PaymentMethodGeneralRequest. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in ChargeRequestPaymentMethod with oneOf schemas: PaymentMethodCardRequest, PaymentMethodGeneralRequest. Details: " + ", ".join(error_messages)) + else: + return v @classmethod - def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of ChargeRequestPaymentMethod 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 + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of ChargeRequestPaymentMethod from a dict""" - if obj is None: + 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 PaymentMethodCardRequest + try: + instance.actual_instance = PaymentMethodCardRequest.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into PaymentMethodGeneralRequest + try: + instance.actual_instance = PaymentMethodGeneralRequest.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 ChargeRequestPaymentMethod with oneOf schemas: PaymentMethodCardRequest, PaymentMethodGeneralRequest. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into ChargeRequestPaymentMethod with oneOf schemas: PaymentMethodCardRequest, PaymentMethodGeneralRequest. 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], PaymentMethodCardRequest, PaymentMethodGeneralRequest]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance is None: return None - if not isinstance(obj, dict): - return cls.model_validate(obj) - - _obj = cls.model_validate({ - "expires_at": obj.get("expires_at"), - "monthly_installments": obj.get("monthly_installments"), - "type": obj.get("type"), - "token_id": obj.get("token_id"), - "payment_source_id": obj.get("payment_source_id"), - "contract_id": obj.get("contract_id") - }) - return _obj + 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/charge_response.py b/conekta/models/charge_response.py index 7acaddb..3e5167e 100644 --- a/conekta/models/charge_response.py +++ b/conekta/models/charge_response.py @@ -39,11 +39,11 @@ class ChargeResponse(BaseModel): device_fingerprint: Optional[StrictStr] = None failure_code: Optional[StrictStr] = None failure_message: Optional[StrictStr] = None - id: Optional[StrictStr] = None - livemode: Optional[StrictBool] = None + id: Optional[StrictStr] = Field(default=None, description="Charge ID") + livemode: Optional[StrictBool] = Field(default=None, description="Whether the charge was made in live mode or not") object: Optional[StrictStr] = None - order_id: Optional[StrictStr] = None - paid_at: Optional[StrictInt] = None + order_id: Optional[StrictStr] = Field(default=None, description="Order ID") + paid_at: Optional[StrictInt] = Field(default=None, description="Payment date") payment_method: Optional[ChargeResponsePaymentMethod] = None reference_id: Optional[StrictStr] = Field(default=None, description="Reference ID of the charge") refunds: Optional[ChargeResponseRefunds] = None diff --git a/conekta/models/charge_response_refunds.py b/conekta/models/charge_response_refunds.py index abca11f..aa2fda9 100644 --- a/conekta/models/charge_response_refunds.py +++ b/conekta/models/charge_response_refunds.py @@ -77,9 +77,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict['data'] = _items # set to None if next_page_url (nullable) is None # and model_fields_set contains the field diff --git a/conekta/models/charges_data_response.py b/conekta/models/charges_data_response.py index bcbcee5..be3aa6d 100644 --- a/conekta/models/charges_data_response.py +++ b/conekta/models/charges_data_response.py @@ -39,11 +39,11 @@ class ChargesDataResponse(BaseModel): device_fingerprint: Optional[StrictStr] = None failure_code: Optional[StrictStr] = None failure_message: Optional[StrictStr] = None - id: Optional[StrictStr] = None - livemode: Optional[StrictBool] = None + id: Optional[StrictStr] = Field(default=None, description="Charge ID") + livemode: Optional[StrictBool] = Field(default=None, description="Whether the charge was made in live mode or not") object: Optional[StrictStr] = None - order_id: Optional[StrictStr] = None - paid_at: Optional[StrictInt] = None + order_id: Optional[StrictStr] = Field(default=None, description="Order ID") + paid_at: Optional[StrictInt] = Field(default=None, description="Payment date") payment_method: Optional[ChargeResponsePaymentMethod] = None reference_id: Optional[StrictStr] = Field(default=None, description="Reference ID of the charge") refunds: Optional[ChargeResponseRefunds] = None diff --git a/conekta/models/checkout.py b/conekta/models/checkout.py index 9a799a9..13f96cc 100644 --- a/conekta/models/checkout.py +++ b/conekta/models/checkout.py @@ -32,6 +32,7 @@ class Checkout(BaseModel): expires_at: StrictInt = 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 2 to 365 days (the valid range will be taken from the next day of the creation date at 00:01 hrs) ") monthly_installments_enabled: Optional[StrictBool] = Field(default=None, description="This flag allows you to specify if months without interest will be active.") monthly_installments_options: Optional[List[StrictInt]] = Field(default=None, description="This field allows you to specify the number of months without interest.") + three_ds_mode: Optional[StrictStr] = Field(default=None, description="Indicates the 3DS2 mode for the order, either smart or strict.") name: StrictStr = Field(description="Reason for charge") needs_shipping_contact: Optional[StrictBool] = Field(default=None, description="This flag allows you to fill in the shipping information at checkout.") on_demand_enabled: Optional[StrictBool] = Field(default=None, description="This flag allows you to specify if the link will be on demand.") @@ -39,7 +40,7 @@ class Checkout(BaseModel): payments_limit_count: Optional[StrictInt] = Field(default=None, description="It is the number of payments that can be made through the link.") recurrent: StrictBool = Field(description="false: single use. true: multiple payments") type: StrictStr = Field(description="It is the type of link that will be created. It must be a valid type.") - __properties: ClassVar[List[str]] = ["allowed_payment_methods", "expires_at", "monthly_installments_enabled", "monthly_installments_options", "name", "needs_shipping_contact", "on_demand_enabled", "order_template", "payments_limit_count", "recurrent", "type"] + __properties: ClassVar[List[str]] = ["allowed_payment_methods", "expires_at", "monthly_installments_enabled", "monthly_installments_options", "three_ds_mode", "name", "needs_shipping_contact", "on_demand_enabled", "order_template", "payments_limit_count", "recurrent", "type"] model_config = ConfigDict( populate_by_name=True, @@ -104,6 +105,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "expires_at": obj.get("expires_at"), "monthly_installments_enabled": obj.get("monthly_installments_enabled"), "monthly_installments_options": obj.get("monthly_installments_options"), + "three_ds_mode": obj.get("three_ds_mode"), "name": obj.get("name"), "needs_shipping_contact": obj.get("needs_shipping_contact"), "on_demand_enabled": obj.get("on_demand_enabled"), diff --git a/conekta/models/checkout_order_template.py b/conekta/models/checkout_order_template.py index 19670e6..fad831b 100644 --- a/conekta/models/checkout_order_template.py +++ b/conekta/models/checkout_order_template.py @@ -81,9 +81,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in line_items (list) _items = [] if self.line_items: - for _item in self.line_items: - if _item: - _items.append(_item.to_dict()) + for _item_line_items in self.line_items: + if _item_line_items: + _items.append(_item_line_items.to_dict()) _dict['line_items'] = _items return _dict diff --git a/conekta/models/checkouts_response.py b/conekta/models/checkouts_response.py index 732a13b..724ce22 100644 --- a/conekta/models/checkouts_response.py +++ b/conekta/models/checkouts_response.py @@ -77,9 +77,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict['data'] = _items # set to None if next_page_url (nullable) is None # and model_fields_set contains the field diff --git a/conekta/models/create_customer_payment_methods_request.py b/conekta/models/create_customer_payment_methods_request.py index 7a3542c..3ccd743 100644 --- a/conekta/models/create_customer_payment_methods_request.py +++ b/conekta/models/create_customer_payment_methods_request.py @@ -18,27 +18,27 @@ import pprint from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Any, List, Optional -from conekta.models.payment_method_card_request import PaymentMethodCardRequest from conekta.models.payment_method_cash_request import PaymentMethodCashRequest from conekta.models.payment_method_spei_request import PaymentMethodSpeiRequest +from conekta.models.payment_method_token_request import PaymentMethodTokenRequest from pydantic import StrictStr, Field from typing import Union, List, Set, Optional, Dict from typing_extensions import Literal, Self -CREATECUSTOMERPAYMENTMETHODSREQUEST_ONE_OF_SCHEMAS = ["PaymentMethodCardRequest", "PaymentMethodCashRequest", "PaymentMethodSpeiRequest"] +CREATECUSTOMERPAYMENTMETHODSREQUEST_ONE_OF_SCHEMAS = ["PaymentMethodCashRequest", "PaymentMethodSpeiRequest", "PaymentMethodTokenRequest"] class CreateCustomerPaymentMethodsRequest(BaseModel): """ Contains details of the payment methods that the customer has active or has used in Conekta """ - # data type: PaymentMethodCardRequest - oneof_schema_1_validator: Optional[PaymentMethodCardRequest] = None + # data type: PaymentMethodTokenRequest + oneof_schema_1_validator: Optional[PaymentMethodTokenRequest] = None # data type: PaymentMethodCashRequest oneof_schema_2_validator: Optional[PaymentMethodCashRequest] = None # data type: PaymentMethodSpeiRequest oneof_schema_3_validator: Optional[PaymentMethodSpeiRequest] = None - actual_instance: Optional[Union[PaymentMethodCardRequest, PaymentMethodCashRequest, PaymentMethodSpeiRequest]] = None - one_of_schemas: Set[str] = { "PaymentMethodCardRequest", "PaymentMethodCashRequest", "PaymentMethodSpeiRequest" } + actual_instance: Optional[Union[PaymentMethodCashRequest, PaymentMethodSpeiRequest, PaymentMethodTokenRequest]] = None + one_of_schemas: Set[str] = { "PaymentMethodCashRequest", "PaymentMethodSpeiRequest", "PaymentMethodTokenRequest" } model_config = ConfigDict( validate_assignment=True, @@ -61,9 +61,9 @@ def actual_instance_must_validate_oneof(cls, v): instance = CreateCustomerPaymentMethodsRequest.model_construct() error_messages = [] match = 0 - # validate data type: PaymentMethodCardRequest - if not isinstance(v, PaymentMethodCardRequest): - error_messages.append(f"Error! Input type `{type(v)}` is not `PaymentMethodCardRequest`") + # validate data type: PaymentMethodTokenRequest + if not isinstance(v, PaymentMethodTokenRequest): + error_messages.append(f"Error! Input type `{type(v)}` is not `PaymentMethodTokenRequest`") else: match += 1 # validate data type: PaymentMethodCashRequest @@ -78,10 +78,10 @@ def actual_instance_must_validate_oneof(cls, v): match += 1 if match > 1: # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in CreateCustomerPaymentMethodsRequest with oneOf schemas: PaymentMethodCardRequest, PaymentMethodCashRequest, PaymentMethodSpeiRequest. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when setting `actual_instance` in CreateCustomerPaymentMethodsRequest with oneOf schemas: PaymentMethodCashRequest, PaymentMethodSpeiRequest, PaymentMethodTokenRequest. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when setting `actual_instance` in CreateCustomerPaymentMethodsRequest with oneOf schemas: PaymentMethodCardRequest, PaymentMethodCashRequest, PaymentMethodSpeiRequest. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting `actual_instance` in CreateCustomerPaymentMethodsRequest with oneOf schemas: PaymentMethodCashRequest, PaymentMethodSpeiRequest, PaymentMethodTokenRequest. Details: " + ", ".join(error_messages)) else: return v @@ -96,9 +96,9 @@ def from_json(cls, json_str: str) -> Self: error_messages = [] match = 0 - # deserialize data into PaymentMethodCardRequest + # deserialize data into PaymentMethodTokenRequest try: - instance.actual_instance = PaymentMethodCardRequest.from_json(json_str) + instance.actual_instance = PaymentMethodTokenRequest.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) @@ -117,10 +117,10 @@ def from_json(cls, json_str: str) -> Self: if match > 1: # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into CreateCustomerPaymentMethodsRequest with oneOf schemas: PaymentMethodCardRequest, PaymentMethodCashRequest, PaymentMethodSpeiRequest. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when deserializing the JSON string into CreateCustomerPaymentMethodsRequest with oneOf schemas: PaymentMethodCashRequest, PaymentMethodSpeiRequest, PaymentMethodTokenRequest. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when deserializing the JSON string into CreateCustomerPaymentMethodsRequest with oneOf schemas: PaymentMethodCardRequest, PaymentMethodCashRequest, PaymentMethodSpeiRequest. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into CreateCustomerPaymentMethodsRequest with oneOf schemas: PaymentMethodCashRequest, PaymentMethodSpeiRequest, PaymentMethodTokenRequest. Details: " + ", ".join(error_messages)) else: return instance @@ -134,7 +134,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], PaymentMethodCardRequest, PaymentMethodCashRequest, PaymentMethodSpeiRequest]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], PaymentMethodCashRequest, PaymentMethodSpeiRequest, PaymentMethodTokenRequest]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/conekta/models/customer.py b/conekta/models/customer.py index ca95881..8e1b863 100644 --- a/conekta/models/customer.py +++ b/conekta/models/customer.py @@ -93,23 +93,23 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in fiscal_entities (list) _items = [] if self.fiscal_entities: - for _item in self.fiscal_entities: - if _item: - _items.append(_item.to_dict()) + for _item_fiscal_entities in self.fiscal_entities: + if _item_fiscal_entities: + _items.append(_item_fiscal_entities.to_dict()) _dict['fiscal_entities'] = _items # override the default output from pydantic by calling `to_dict()` of each item in payment_sources (list) _items = [] if self.payment_sources: - for _item in self.payment_sources: - if _item: - _items.append(_item.to_dict()) + for _item_payment_sources in self.payment_sources: + if _item_payment_sources: + _items.append(_item_payment_sources.to_dict()) _dict['payment_sources'] = _items # override the default output from pydantic by calling `to_dict()` of each item in shipping_contacts (list) _items = [] if self.shipping_contacts: - for _item in self.shipping_contacts: - if _item: - _items.append(_item.to_dict()) + for _item_shipping_contacts in self.shipping_contacts: + if _item_shipping_contacts: + _items.append(_item_shipping_contacts.to_dict()) _dict['shipping_contacts'] = _items # override the default output from pydantic by calling `to_dict()` of subscription if self.subscription: diff --git a/conekta/models/customer_fiscal_entities_response.py b/conekta/models/customer_fiscal_entities_response.py index 96963ab..2e0b4e7 100644 --- a/conekta/models/customer_fiscal_entities_response.py +++ b/conekta/models/customer_fiscal_entities_response.py @@ -75,9 +75,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict['data'] = _items return _dict diff --git a/conekta/models/customer_payment_methods_request.py b/conekta/models/customer_payment_methods_request.py index 44cbd0a..56e793d 100644 --- a/conekta/models/customer_payment_methods_request.py +++ b/conekta/models/customer_payment_methods_request.py @@ -18,27 +18,27 @@ import pprint from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Any, List, Optional -from conekta.models.payment_method_card_request import PaymentMethodCardRequest from conekta.models.payment_method_cash_request import PaymentMethodCashRequest from conekta.models.payment_method_spei_request import PaymentMethodSpeiRequest +from conekta.models.payment_method_token_request import PaymentMethodTokenRequest from pydantic import StrictStr, Field from typing import Union, List, Set, Optional, Dict from typing_extensions import Literal, Self -CUSTOMERPAYMENTMETHODSREQUEST_ONE_OF_SCHEMAS = ["PaymentMethodCardRequest", "PaymentMethodCashRequest", "PaymentMethodSpeiRequest"] +CUSTOMERPAYMENTMETHODSREQUEST_ONE_OF_SCHEMAS = ["PaymentMethodCashRequest", "PaymentMethodSpeiRequest", "PaymentMethodTokenRequest"] class CustomerPaymentMethodsRequest(BaseModel): """ CustomerPaymentMethodsRequest """ - # data type: PaymentMethodCardRequest - oneof_schema_1_validator: Optional[PaymentMethodCardRequest] = None + # data type: PaymentMethodTokenRequest + oneof_schema_1_validator: Optional[PaymentMethodTokenRequest] = None # data type: PaymentMethodCashRequest oneof_schema_2_validator: Optional[PaymentMethodCashRequest] = None # data type: PaymentMethodSpeiRequest oneof_schema_3_validator: Optional[PaymentMethodSpeiRequest] = None - actual_instance: Optional[Union[PaymentMethodCardRequest, PaymentMethodCashRequest, PaymentMethodSpeiRequest]] = None - one_of_schemas: Set[str] = { "PaymentMethodCardRequest", "PaymentMethodCashRequest", "PaymentMethodSpeiRequest" } + actual_instance: Optional[Union[PaymentMethodCashRequest, PaymentMethodSpeiRequest, PaymentMethodTokenRequest]] = None + one_of_schemas: Set[str] = { "PaymentMethodCashRequest", "PaymentMethodSpeiRequest", "PaymentMethodTokenRequest" } model_config = ConfigDict( validate_assignment=True, @@ -61,9 +61,9 @@ def actual_instance_must_validate_oneof(cls, v): instance = CustomerPaymentMethodsRequest.model_construct() error_messages = [] match = 0 - # validate data type: PaymentMethodCardRequest - if not isinstance(v, PaymentMethodCardRequest): - error_messages.append(f"Error! Input type `{type(v)}` is not `PaymentMethodCardRequest`") + # validate data type: PaymentMethodTokenRequest + if not isinstance(v, PaymentMethodTokenRequest): + error_messages.append(f"Error! Input type `{type(v)}` is not `PaymentMethodTokenRequest`") else: match += 1 # validate data type: PaymentMethodCashRequest @@ -78,10 +78,10 @@ def actual_instance_must_validate_oneof(cls, v): match += 1 if match > 1: # more than 1 match - raise ValueError("Multiple matches found when setting `actual_instance` in CustomerPaymentMethodsRequest with oneOf schemas: PaymentMethodCardRequest, PaymentMethodCashRequest, PaymentMethodSpeiRequest. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when setting `actual_instance` in CustomerPaymentMethodsRequest with oneOf schemas: PaymentMethodCashRequest, PaymentMethodSpeiRequest, PaymentMethodTokenRequest. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when setting `actual_instance` in CustomerPaymentMethodsRequest with oneOf schemas: PaymentMethodCardRequest, PaymentMethodCashRequest, PaymentMethodSpeiRequest. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting `actual_instance` in CustomerPaymentMethodsRequest with oneOf schemas: PaymentMethodCashRequest, PaymentMethodSpeiRequest, PaymentMethodTokenRequest. Details: " + ", ".join(error_messages)) else: return v @@ -96,9 +96,9 @@ def from_json(cls, json_str: str) -> Self: error_messages = [] match = 0 - # deserialize data into PaymentMethodCardRequest + # deserialize data into PaymentMethodTokenRequest try: - instance.actual_instance = PaymentMethodCardRequest.from_json(json_str) + instance.actual_instance = PaymentMethodTokenRequest.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) @@ -117,10 +117,10 @@ def from_json(cls, json_str: str) -> Self: if match > 1: # more than 1 match - raise ValueError("Multiple matches found when deserializing the JSON string into CustomerPaymentMethodsRequest with oneOf schemas: PaymentMethodCardRequest, PaymentMethodCashRequest, PaymentMethodSpeiRequest. Details: " + ", ".join(error_messages)) + raise ValueError("Multiple matches found when deserializing the JSON string into CustomerPaymentMethodsRequest with oneOf schemas: PaymentMethodCashRequest, PaymentMethodSpeiRequest, PaymentMethodTokenRequest. Details: " + ", ".join(error_messages)) elif match == 0: # no match - raise ValueError("No match found when deserializing the JSON string into CustomerPaymentMethodsRequest with oneOf schemas: PaymentMethodCardRequest, PaymentMethodCashRequest, PaymentMethodSpeiRequest. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into CustomerPaymentMethodsRequest with oneOf schemas: PaymentMethodCashRequest, PaymentMethodSpeiRequest, PaymentMethodTokenRequest. Details: " + ", ".join(error_messages)) else: return instance @@ -134,7 +134,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], PaymentMethodCardRequest, PaymentMethodCashRequest, PaymentMethodSpeiRequest]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], PaymentMethodCashRequest, PaymentMethodSpeiRequest, PaymentMethodTokenRequest]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/conekta/models/customer_payment_methods_response.py b/conekta/models/customer_payment_methods_response.py index fe37d3b..64b8a8e 100644 --- a/conekta/models/customer_payment_methods_response.py +++ b/conekta/models/customer_payment_methods_response.py @@ -77,9 +77,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict['data'] = _items # set to None if next_page_url (nullable) is None # and model_fields_set contains the field diff --git a/conekta/models/customer_response_shipping_contacts.py b/conekta/models/customer_response_shipping_contacts.py index 1a33165..780f3ee 100644 --- a/conekta/models/customer_response_shipping_contacts.py +++ b/conekta/models/customer_response_shipping_contacts.py @@ -75,9 +75,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict['data'] = _items return _dict diff --git a/conekta/models/customers_response.py b/conekta/models/customers_response.py index 9a14123..3b3c1b3 100644 --- a/conekta/models/customers_response.py +++ b/conekta/models/customers_response.py @@ -77,9 +77,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict['data'] = _items # set to None if next_page_url (nullable) is None # and model_fields_set contains the field diff --git a/conekta/models/details.py b/conekta/models/details.py index e79e23d..161c377 100644 --- a/conekta/models/details.py +++ b/conekta/models/details.py @@ -73,9 +73,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in details (list) _items = [] if self.details: - for _item in self.details: - if _item: - _items.append(_item.to_dict()) + for _item_details in self.details: + if _item_details: + _items.append(_item_details.to_dict()) _dict['details'] = _items return _dict diff --git a/conekta/models/error.py b/conekta/models/error.py index abd3e61..917f6db 100644 --- a/conekta/models/error.py +++ b/conekta/models/error.py @@ -76,9 +76,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in details (list) _items = [] if self.details: - for _item in self.details: - if _item: - _items.append(_item.to_dict()) + for _item_details in self.details: + if _item_details: + _items.append(_item_details.to_dict()) _dict['details'] = _items # set to None if log_id (nullable) is None # and model_fields_set contains the field diff --git a/conekta/models/event_response.py b/conekta/models/event_response.py index fd99365..87b8336 100644 --- a/conekta/models/event_response.py +++ b/conekta/models/event_response.py @@ -80,9 +80,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in webhook_logs (list) _items = [] if self.webhook_logs: - for _item in self.webhook_logs: - if _item: - _items.append(_item.to_dict()) + for _item_webhook_logs in self.webhook_logs: + if _item_webhook_logs: + _items.append(_item_webhook_logs.to_dict()) _dict['webhook_logs'] = _items return _dict diff --git a/conekta/models/get_api_keys_response.py b/conekta/models/get_api_keys_response.py index f43d728..e200af2 100644 --- a/conekta/models/get_api_keys_response.py +++ b/conekta/models/get_api_keys_response.py @@ -77,9 +77,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict['data'] = _items # set to None if next_page_url (nullable) is None # and model_fields_set contains the field diff --git a/conekta/models/get_charges_response.py b/conekta/models/get_charges_response.py index b795996..908d123 100644 --- a/conekta/models/get_charges_response.py +++ b/conekta/models/get_charges_response.py @@ -77,9 +77,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict['data'] = _items # set to None if next_page_url (nullable) is None # and model_fields_set contains the field diff --git a/conekta/models/get_companies_response.py b/conekta/models/get_companies_response.py index 6167c45..45f9d3f 100644 --- a/conekta/models/get_companies_response.py +++ b/conekta/models/get_companies_response.py @@ -77,9 +77,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict['data'] = _items # set to None if next_page_url (nullable) is None # and model_fields_set contains the field diff --git a/conekta/models/get_events_response.py b/conekta/models/get_events_response.py index 8e6f7e2..7c09c59 100644 --- a/conekta/models/get_events_response.py +++ b/conekta/models/get_events_response.py @@ -77,9 +77,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict['data'] = _items # set to None if next_page_url (nullable) is None # and model_fields_set contains the field diff --git a/conekta/models/get_order_discount_lines_response.py b/conekta/models/get_order_discount_lines_response.py index 78f15d8..ad9860d 100644 --- a/conekta/models/get_order_discount_lines_response.py +++ b/conekta/models/get_order_discount_lines_response.py @@ -77,9 +77,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict['data'] = _items # set to None if next_page_url (nullable) is None # and model_fields_set contains the field diff --git a/conekta/models/get_orders_response.py b/conekta/models/get_orders_response.py index 07e54bd..7928460 100644 --- a/conekta/models/get_orders_response.py +++ b/conekta/models/get_orders_response.py @@ -77,9 +77,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict['data'] = _items # set to None if next_page_url (nullable) is None # and model_fields_set contains the field diff --git a/conekta/models/get_payment_method_response.py b/conekta/models/get_payment_method_response.py index 6a95003..97e4d76 100644 --- a/conekta/models/get_payment_method_response.py +++ b/conekta/models/get_payment_method_response.py @@ -77,9 +77,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict['data'] = _items # set to None if next_page_url (nullable) is None # and model_fields_set contains the field diff --git a/conekta/models/get_plans_response.py b/conekta/models/get_plans_response.py index 97536b3..0a6b2c1 100644 --- a/conekta/models/get_plans_response.py +++ b/conekta/models/get_plans_response.py @@ -77,9 +77,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict['data'] = _items # set to None if next_page_url (nullable) is None # and model_fields_set contains the field diff --git a/conekta/models/get_transactions_response.py b/conekta/models/get_transactions_response.py index e3f3161..09c3d83 100644 --- a/conekta/models/get_transactions_response.py +++ b/conekta/models/get_transactions_response.py @@ -77,9 +77,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict['data'] = _items # set to None if next_page_url (nullable) is None # and model_fields_set contains the field diff --git a/conekta/models/get_transfers_response.py b/conekta/models/get_transfers_response.py index b6d6425..ba25b28 100644 --- a/conekta/models/get_transfers_response.py +++ b/conekta/models/get_transfers_response.py @@ -77,9 +77,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict['data'] = _items # set to None if next_page_url (nullable) is None # and model_fields_set contains the field diff --git a/conekta/models/get_webhook_keys_response.py b/conekta/models/get_webhook_keys_response.py index ed2ae60..1d96708 100644 --- a/conekta/models/get_webhook_keys_response.py +++ b/conekta/models/get_webhook_keys_response.py @@ -77,9 +77,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict['data'] = _items # set to None if next_page_url (nullable) is None # and model_fields_set contains the field diff --git a/conekta/models/get_webhooks_response.py b/conekta/models/get_webhooks_response.py index dd54316..636fbc5 100644 --- a/conekta/models/get_webhooks_response.py +++ b/conekta/models/get_webhooks_response.py @@ -77,9 +77,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict['data'] = _items # set to None if next_page_url (nullable) is None # and model_fields_set contains the field diff --git a/conekta/models/logs_response.py b/conekta/models/logs_response.py index d105599..da1cd37 100644 --- a/conekta/models/logs_response.py +++ b/conekta/models/logs_response.py @@ -81,9 +81,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict['data'] = _items # set to None if next_page_url (nullable) is None # and model_fields_set contains the field diff --git a/conekta/models/order_refund_request.py b/conekta/models/order_refund_request.py index 85fc708..41ecdca 100644 --- a/conekta/models/order_refund_request.py +++ b/conekta/models/order_refund_request.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +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 @@ -27,9 +27,9 @@ class OrderRefundRequest(BaseModel): """ OrderRefundRequest """ # noqa: E501 - amount: StrictInt + amount: StrictInt = Field(description="Amount to be refunded in cents") expires_at: Optional[StrictInt] = None - reason: StrictStr + reason: StrictStr = Field(description="Reason for the refund") __properties: ClassVar[List[str]] = ["amount", "expires_at", "reason"] model_config = ConfigDict( diff --git a/conekta/models/order_request.py b/conekta/models/order_request.py index 4404ca4..8d41806 100644 --- a/conekta/models/order_request.py +++ b/conekta/models/order_request.py @@ -48,7 +48,7 @@ class OrderRequest(BaseModel): needs_shipping_contact: Optional[StrictBool] = Field(default=None, description="Allows you to fill out the shipping information at checkout") pre_authorize: Optional[StrictBool] = Field(default=False, 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.") - return_url: Optional[StrictStr] = Field(default=None, description="Indicates the redirection callback upon completion of the 3DS2 flow.") + 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") shipping_contact: Optional[CustomerShippingContacts] = None shipping_lines: Optional[List[ShippingRequest]] = Field(default=None, description="List of [shipping costs](https://developers.conekta.com/v2.1.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.1.0/reference/orderscreatetaxes) that are applied to the order.") @@ -97,9 +97,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in charges (list) _items = [] if self.charges: - for _item in self.charges: - if _item: - _items.append(_item.to_dict()) + for _item_charges in self.charges: + if _item_charges: + _items.append(_item_charges.to_dict()) _dict['charges'] = _items # override the default output from pydantic by calling `to_dict()` of checkout if self.checkout: @@ -110,9 +110,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in discount_lines (list) _items = [] if self.discount_lines: - for _item in self.discount_lines: - if _item: - _items.append(_item.to_dict()) + for _item_discount_lines in self.discount_lines: + if _item_discount_lines: + _items.append(_item_discount_lines.to_dict()) _dict['discount_lines'] = _items # override the default output from pydantic by calling `to_dict()` of fiscal_entity if self.fiscal_entity: @@ -120,9 +120,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in line_items (list) _items = [] if self.line_items: - for _item in self.line_items: - if _item: - _items.append(_item.to_dict()) + for _item_line_items in self.line_items: + if _item_line_items: + _items.append(_item_line_items.to_dict()) _dict['line_items'] = _items # override the default output from pydantic by calling `to_dict()` of shipping_contact if self.shipping_contact: @@ -130,16 +130,16 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in shipping_lines (list) _items = [] if self.shipping_lines: - for _item in self.shipping_lines: - if _item: - _items.append(_item.to_dict()) + for _item_shipping_lines in self.shipping_lines: + if _item_shipping_lines: + _items.append(_item_shipping_lines.to_dict()) _dict['shipping_lines'] = _items # override the default output from pydantic by calling `to_dict()` of each item in tax_lines (list) _items = [] if self.tax_lines: - for _item in self.tax_lines: - if _item: - _items.append(_item.to_dict()) + for _item_tax_lines in self.tax_lines: + if _item_tax_lines: + _items.append(_item_tax_lines.to_dict()) _dict['tax_lines'] = _items return _dict diff --git a/conekta/models/order_response_charges.py b/conekta/models/order_response_charges.py index 7e5988a..edc9ea7 100644 --- a/conekta/models/order_response_charges.py +++ b/conekta/models/order_response_charges.py @@ -75,9 +75,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict['data'] = _items return _dict diff --git a/conekta/models/order_response_discount_lines.py b/conekta/models/order_response_discount_lines.py index ca07f2c..3d0bc6f 100644 --- a/conekta/models/order_response_discount_lines.py +++ b/conekta/models/order_response_discount_lines.py @@ -75,9 +75,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict['data'] = _items return _dict diff --git a/conekta/models/order_response_products.py b/conekta/models/order_response_products.py index 777717b..a3c82ef 100644 --- a/conekta/models/order_response_products.py +++ b/conekta/models/order_response_products.py @@ -77,9 +77,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict['data'] = _items # set to None if next_page_url (nullable) is None # and model_fields_set contains the field diff --git a/conekta/models/order_update_request.py b/conekta/models/order_update_request.py index 19809e9..f4bac6b 100644 --- a/conekta/models/order_update_request.py +++ b/conekta/models/order_update_request.py @@ -93,9 +93,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in charges (list) _items = [] if self.charges: - for _item in self.charges: - if _item: - _items.append(_item.to_dict()) + for _item_charges in self.charges: + if _item_charges: + _items.append(_item_charges.to_dict()) _dict['charges'] = _items # override the default output from pydantic by calling `to_dict()` of checkout if self.checkout: @@ -106,9 +106,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in discount_lines (list) _items = [] if self.discount_lines: - for _item in self.discount_lines: - if _item: - _items.append(_item.to_dict()) + for _item_discount_lines in self.discount_lines: + if _item_discount_lines: + _items.append(_item_discount_lines.to_dict()) _dict['discount_lines'] = _items # override the default output from pydantic by calling `to_dict()` of fiscal_entity if self.fiscal_entity: @@ -116,9 +116,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in line_items (list) _items = [] if self.line_items: - for _item in self.line_items: - if _item: - _items.append(_item.to_dict()) + for _item_line_items in self.line_items: + if _item_line_items: + _items.append(_item_line_items.to_dict()) _dict['line_items'] = _items # override the default output from pydantic by calling `to_dict()` of shipping_contact if self.shipping_contact: @@ -126,16 +126,16 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in shipping_lines (list) _items = [] if self.shipping_lines: - for _item in self.shipping_lines: - if _item: - _items.append(_item.to_dict()) + for _item_shipping_lines in self.shipping_lines: + if _item_shipping_lines: + _items.append(_item_shipping_lines.to_dict()) _dict['shipping_lines'] = _items # override the default output from pydantic by calling `to_dict()` of each item in tax_lines (list) _items = [] if self.tax_lines: - for _item in self.tax_lines: - if _item: - _items.append(_item.to_dict()) + for _item_tax_lines in self.tax_lines: + if _item_tax_lines: + _items.append(_item_tax_lines.to_dict()) _dict['tax_lines'] = _items return _dict diff --git a/conekta/models/orders_response.py b/conekta/models/orders_response.py index 746fb30..68a83c8 100644 --- a/conekta/models/orders_response.py +++ b/conekta/models/orders_response.py @@ -73,9 +73,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict['data'] = _items return _dict diff --git a/conekta/models/payment_method_bank_transfer.py b/conekta/models/payment_method_bank_transfer.py index 3b84d79..a4ac76d 100644 --- a/conekta/models/payment_method_bank_transfer.py +++ b/conekta/models/payment_method_bank_transfer.py @@ -45,7 +45,8 @@ class PaymentMethodBankTransfer(BaseModel): receiving_account_tax_id: Optional[StrictStr] = None reference_number: Optional[StrictStr] = None tracking_code: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["type", "object", "bank", "clabe", "description", "executed_at", "expires_at", "issuing_account_bank", "issuing_account_number", "issuing_account_holder_name", "issuing_account_tax_id", "payment_attempts", "receiving_account_holder_name", "receiving_account_number", "receiving_account_bank", "receiving_account_tax_id", "reference_number", "tracking_code"] + customer_ip_address: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["type", "object", "bank", "clabe", "description", "executed_at", "expires_at", "issuing_account_bank", "issuing_account_number", "issuing_account_holder_name", "issuing_account_tax_id", "payment_attempts", "receiving_account_holder_name", "receiving_account_number", "receiving_account_bank", "receiving_account_tax_id", "reference_number", "tracking_code", "customer_ip_address"] model_config = ConfigDict( populate_by_name=True, @@ -165,7 +166,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "receiving_account_bank": obj.get("receiving_account_bank"), "receiving_account_tax_id": obj.get("receiving_account_tax_id"), "reference_number": obj.get("reference_number"), - "tracking_code": obj.get("tracking_code") + "tracking_code": obj.get("tracking_code"), + "customer_ip_address": obj.get("customer_ip_address") }) return _obj diff --git a/conekta/models/payment_method_card.py b/conekta/models/payment_method_card.py index 8e8da72..30e45ca 100644 --- a/conekta/models/payment_method_card.py +++ b/conekta/models/payment_method_card.py @@ -29,18 +29,19 @@ class PaymentMethodCard(BaseModel): """ # noqa: E501 type: Optional[StrictStr] = None object: StrictStr - account_type: Optional[StrictStr] = None + account_type: Optional[StrictStr] = Field(default=None, description="Account type of the card") auth_code: Optional[StrictStr] = None - brand: Optional[StrictStr] = None + brand: Optional[StrictStr] = Field(default=None, description="Brand of the card") contract_id: Optional[StrictStr] = Field(default=None, description="Id sent for recurrent charges.") - country: Optional[StrictStr] = None - exp_month: Optional[StrictStr] = None - exp_year: Optional[StrictStr] = None + country: Optional[StrictStr] = Field(default=None, description="Country of the card") + exp_month: Optional[StrictStr] = Field(default=None, description="Expiration month of the card") + exp_year: Optional[StrictStr] = Field(default=None, description="Expiration year of the card") fraud_indicators: Optional[List[Any]] = None - issuer: Optional[StrictStr] = None - last4: Optional[StrictStr] = None - name: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["type", "object", "account_type", "auth_code", "brand", "contract_id", "country", "exp_month", "exp_year", "fraud_indicators", "issuer", "last4", "name"] + issuer: Optional[StrictStr] = Field(default=None, description="Issuer of the card") + last4: Optional[StrictStr] = Field(default=None, description="Last 4 digits of the card") + name: Optional[StrictStr] = Field(default=None, description="Name of the cardholder") + customer_ip_address: Optional[StrictStr] = Field(default=None, description="Optional field used to capture the customer's IP address for fraud prevention and security monitoring purposes") + __properties: ClassVar[List[str]] = ["type", "object", "account_type", "auth_code", "brand", "contract_id", "country", "exp_month", "exp_year", "fraud_indicators", "issuer", "last4", "name", "customer_ip_address"] model_config = ConfigDict( populate_by_name=True, @@ -105,7 +106,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "fraud_indicators": obj.get("fraud_indicators"), "issuer": obj.get("issuer"), "last4": obj.get("last4"), - "name": obj.get("name") + "name": obj.get("name"), + "customer_ip_address": obj.get("customer_ip_address") }) return _obj diff --git a/conekta/models/payment_method_card_request.py b/conekta/models/payment_method_card_request.py index 3cbecf9..7089524 100644 --- a/conekta/models/payment_method_card_request.py +++ b/conekta/models/payment_method_card_request.py @@ -19,7 +19,8 @@ import json from pydantic import BaseModel, ConfigDict, Field, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -28,8 +29,13 @@ class PaymentMethodCardRequest(BaseModel): PaymentMethodCardRequest """ # noqa: E501 type: StrictStr = Field(description="Type of payment method") - 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.1.0/reference/createsubscription] tutorial for more information on how to tokenize cards.") - __properties: ClassVar[List[str]] = ["type", "token_id"] + cvc: Annotated[str, Field(min_length=3, strict=True, max_length=4)] = Field(description="Card security code") + exp_month: Annotated[str, Field(min_length=2, strict=True, max_length=2)] = Field(description="Card expiration month") + exp_year: Annotated[str, Field(min_length=4, strict=True, max_length=4)] = Field(description="Card expiration year") + name: StrictStr = Field(description="Cardholder name") + number: StrictStr = Field(description="Card number") + customer_ip_address: Optional[StrictStr] = Field(default=None, description="Optional field used to capture the customer's IP address for fraud prevention and security monitoring purposes") + __properties: ClassVar[List[str]] = ["type", "cvc", "exp_month", "exp_year", "name", "number", "customer_ip_address"] model_config = ConfigDict( populate_by_name=True, @@ -83,7 +89,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "type": obj.get("type"), - "token_id": obj.get("token_id") + "cvc": obj.get("cvc"), + "exp_month": obj.get("exp_month"), + "exp_year": obj.get("exp_year"), + "name": obj.get("name"), + "number": obj.get("number"), + "customer_ip_address": obj.get("customer_ip_address") }) return _obj diff --git a/conekta/models/payment_method_cash.py b/conekta/models/payment_method_cash.py index 0c9dfad..32594bf 100644 --- a/conekta/models/payment_method_cash.py +++ b/conekta/models/payment_method_cash.py @@ -37,7 +37,8 @@ class PaymentMethodCash(BaseModel): service_name: Optional[StrictStr] = None store: Optional[StrictStr] = None store_name: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["type", "object", "auth_code", "cashier_id", "reference", "barcode_url", "expires_at", "service_name", "store", "store_name"] + customer_ip_address: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["type", "object", "auth_code", "cashier_id", "reference", "barcode_url", "expires_at", "service_name", "store", "store_name", "customer_ip_address"] model_config = ConfigDict( populate_by_name=True, @@ -114,7 +115,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "expires_at": obj.get("expires_at"), "service_name": obj.get("service_name"), "store": obj.get("store"), - "store_name": obj.get("store_name") + "store_name": obj.get("store_name"), + "customer_ip_address": obj.get("customer_ip_address") }) return _obj diff --git a/conekta/models/payment_method_general_request.py b/conekta/models/payment_method_general_request.py new file mode 100644 index 0000000..d594b5d --- /dev/null +++ b/conekta/models/payment_method_general_request.py @@ -0,0 +1,102 @@ +# coding: utf-8 + +""" + Conekta API + + Conekta sdk + + The version of the OpenAPI document: 2.1.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 + +class PaymentMethodGeneralRequest(BaseModel): + """ + Payment method used in the charge. Go to the [payment methods](https://developers.conekta.com/reference/m%C3%A9todos-de-pago) section for more details + """ # noqa: E501 + expires_at: Optional[StrictInt] = Field(default=None, description="Method expiration date as unix timestamp") + monthly_installments: Optional[StrictInt] = Field(default=None, description="How many months without interest to apply, it can be 3, 6, 9, 12 or 18") + type: StrictStr = Field(description="Type of payment method") + token_id: Optional[StrictStr] = None + payment_source_id: Optional[StrictStr] = None + cvc: Optional[StrictStr] = Field(default=None, description="Optional, It is a value that allows identifying the security code of the card. Only for PCI merchants") + contract_id: Optional[StrictStr] = Field(default=None, description="Optional id sent to indicate the bank contract for recurrent card charges.") + customer_ip_address: Optional[StrictStr] = Field(default=None, description="Optional field used to capture the customer's IP address for fraud prevention and security monitoring purposes") + __properties: ClassVar[List[str]] = ["expires_at", "monthly_installments", "type", "token_id", "payment_source_id", "cvc", "contract_id", "customer_ip_address"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PaymentMethodGeneralRequest 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 PaymentMethodGeneralRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "expires_at": obj.get("expires_at"), + "monthly_installments": obj.get("monthly_installments"), + "type": obj.get("type"), + "token_id": obj.get("token_id"), + "payment_source_id": obj.get("payment_source_id"), + "cvc": obj.get("cvc"), + "contract_id": obj.get("contract_id"), + "customer_ip_address": obj.get("customer_ip_address") + }) + return _obj + + diff --git a/conekta/models/payment_method_token_request.py b/conekta/models/payment_method_token_request.py new file mode 100644 index 0000000..3105c4a --- /dev/null +++ b/conekta/models/payment_method_token_request.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + Conekta API + + Conekta sdk + + The version of the OpenAPI document: 2.1.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, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class PaymentMethodTokenRequest(BaseModel): + """ + PaymentMethodTokenRequest + """ # noqa: E501 + type: StrictStr = Field(description="Type of payment method") + 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.1.0/reference/createsubscription] tutorial for more information on how to tokenize cards.") + __properties: ClassVar[List[str]] = ["type", "token_id"] + + model_config = ConfigDict( + populate_by_name=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""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PaymentMethodTokenRequest 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 PaymentMethodTokenRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "type": obj.get("type"), + "token_id": obj.get("token_id") + }) + return _obj + + diff --git a/conekta/models/payout_order_response.py b/conekta/models/payout_order_response.py index c634578..0168067 100644 --- a/conekta/models/payout_order_response.py +++ b/conekta/models/payout_order_response.py @@ -91,9 +91,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in payouts (list) _items = [] if self.payouts: - for _item in self.payouts: - if _item: - _items.append(_item.to_dict()) + for _item_payouts in self.payouts: + if _item_payouts: + _items.append(_item_payouts.to_dict()) _dict['payouts'] = _items return _dict diff --git a/conekta/models/payout_orders_response.py b/conekta/models/payout_orders_response.py index bce5891..5bc5d50 100644 --- a/conekta/models/payout_orders_response.py +++ b/conekta/models/payout_orders_response.py @@ -77,9 +77,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict['data'] = _items # set to None if next_page_url (nullable) is None # and model_fields_set contains the field diff --git a/conekta/models/product.py b/conekta/models/product.py index e119ab9..f56f14c 100644 --- a/conekta/models/product.py +++ b/conekta/models/product.py @@ -31,7 +31,7 @@ class Product(BaseModel): antifraud_info: Optional[Dict[str, Any]] = None brand: Optional[StrictStr] = Field(default=None, description="The brand of the item.") description: Optional[Annotated[str, Field(strict=True, max_length=250)]] = Field(default=None, description="Short description of the item") - metadata: Optional[Dict[str, StrictStr]] = Field(default=None, description="It is a key/value hash that can hold custom fields. Maximum 100 elements and allows special characters.") + metadata: Optional[Dict[str, Any]] = Field(default=None, description="It is a key/value hash that can hold custom fields. Maximum 100 elements and allows special characters.") name: StrictStr = Field(description="The name of the item. It will be displayed in the order.") quantity: Annotated[int, Field(strict=True, ge=1)] = Field(description="The quantity of the item in the order.") sku: Optional[StrictStr] = Field(default=None, description="The stock keeping unit for the item. It is used to identify the item in the order.") diff --git a/conekta/models/product_data_response.py b/conekta/models/product_data_response.py index 0b35780..391cf54 100644 --- a/conekta/models/product_data_response.py +++ b/conekta/models/product_data_response.py @@ -31,7 +31,7 @@ class ProductDataResponse(BaseModel): antifraud_info: Optional[Dict[str, Any]] = None brand: Optional[StrictStr] = Field(default=None, description="The brand of the item.") description: Optional[Annotated[str, Field(strict=True, max_length=250)]] = Field(default=None, description="Short description of the item") - metadata: Optional[Dict[str, StrictStr]] = Field(default=None, description="It is a key/value hash that can hold custom fields. Maximum 100 elements and allows special characters.") + metadata: Optional[Dict[str, Any]] = Field(default=None, description="It is a key/value hash that can hold custom fields. Maximum 100 elements and allows special characters.") name: StrictStr = Field(description="The name of the item. It will be displayed in the order.") quantity: Annotated[int, Field(strict=True, ge=1)] = Field(description="The quantity of the item in the order.") sku: Optional[StrictStr] = Field(default=None, description="The stock keeping unit for the item. It is used to identify the item in the order.") diff --git a/conekta/models/product_order_response.py b/conekta/models/product_order_response.py index 2dca0eb..814c7c4 100644 --- a/conekta/models/product_order_response.py +++ b/conekta/models/product_order_response.py @@ -31,7 +31,7 @@ class ProductOrderResponse(BaseModel): antifraud_info: Optional[Dict[str, Any]] = None brand: Optional[StrictStr] = Field(default=None, description="The brand of the item.") description: Optional[Annotated[str, Field(strict=True, max_length=250)]] = Field(default=None, description="Short description of the item") - metadata: Optional[Dict[str, StrictStr]] = Field(default=None, description="It is a key/value hash that can hold custom fields. Maximum 100 elements and allows special characters.") + metadata: Optional[Dict[str, Any]] = Field(default=None, description="It is a key/value hash that can hold custom fields. Maximum 100 elements and allows special characters.") name: StrictStr = Field(description="The name of the item. It will be displayed in the order.") quantity: Annotated[int, Field(strict=True, ge=1)] = Field(description="The quantity of the item in the order.") sku: Optional[StrictStr] = Field(default=None, description="The stock keeping unit for the item. It is used to identify the item in the order.") diff --git a/conekta/models/risk_rules_list.py b/conekta/models/risk_rules_list.py index b70ce5d..b6740be 100644 --- a/conekta/models/risk_rules_list.py +++ b/conekta/models/risk_rules_list.py @@ -77,9 +77,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict['data'] = _items # set to None if next_page_url (nullable) is None # and model_fields_set contains the field diff --git a/conekta/models/subscription_events_response.py b/conekta/models/subscription_events_response.py index 94a2cbf..032218b 100644 --- a/conekta/models/subscription_events_response.py +++ b/conekta/models/subscription_events_response.py @@ -77,9 +77,9 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in data (list) _items = [] if self.data: - for _item in self.data: - if _item: - _items.append(_item.to_dict()) + for _item_data in self.data: + if _item_data: + _items.append(_item_data.to_dict()) _dict['data'] = _items # set to None if next_page_url (nullable) is None # and model_fields_set contains the field diff --git a/conekta/models/subscription_response.py b/conekta/models/subscription_response.py index 9c6ae40..2d7e7fa 100644 --- a/conekta/models/subscription_response.py +++ b/conekta/models/subscription_response.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr +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 @@ -30,6 +30,7 @@ class SubscriptionResponse(BaseModel): billing_cycle_start: Optional[StrictInt] = None billing_cycle_end: Optional[StrictInt] = None canceled_at: Optional[StrictInt] = None + canceled_reason: Optional[StrictStr] = Field(default=None, description="Reason for cancellation. This field appears when the subscription status is 'canceled'.") card_id: Optional[StrictStr] = None charge_id: Optional[StrictStr] = None created_at: Optional[StrictInt] = None @@ -44,7 +45,7 @@ class SubscriptionResponse(BaseModel): subscription_start: Optional[StrictInt] = None trial_start: Optional[StrictInt] = None trial_end: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = ["billing_cycle_start", "billing_cycle_end", "canceled_at", "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"] + __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( populate_by_name=True, @@ -135,6 +136,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "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"), diff --git a/conekta/models/update_customer.py b/conekta/models/update_customer.py index bce35d5..edd51e7 100644 --- a/conekta/models/update_customer.py +++ b/conekta/models/update_customer.py @@ -93,23 +93,23 @@ def to_dict(self) -> Dict[str, Any]: # override the default output from pydantic by calling `to_dict()` of each item in fiscal_entities (list) _items = [] if self.fiscal_entities: - for _item in self.fiscal_entities: - if _item: - _items.append(_item.to_dict()) + for _item_fiscal_entities in self.fiscal_entities: + if _item_fiscal_entities: + _items.append(_item_fiscal_entities.to_dict()) _dict['fiscal_entities'] = _items # override the default output from pydantic by calling `to_dict()` of each item in payment_sources (list) _items = [] if self.payment_sources: - for _item in self.payment_sources: - if _item: - _items.append(_item.to_dict()) + for _item_payment_sources in self.payment_sources: + if _item_payment_sources: + _items.append(_item_payment_sources.to_dict()) _dict['payment_sources'] = _items # override the default output from pydantic by calling `to_dict()` of each item in shipping_contacts (list) _items = [] if self.shipping_contacts: - for _item in self.shipping_contacts: - if _item: - _items.append(_item.to_dict()) + for _item_shipping_contacts in self.shipping_contacts: + if _item_shipping_contacts: + _items.append(_item_shipping_contacts.to_dict()) _dict['shipping_contacts'] = _items # override the default output from pydantic by calling `to_dict()` of subscription if self.subscription: diff --git a/conekta/rest.py b/conekta/rest.py index dd449c7..08aa9a5 100644 --- a/conekta/rest.py +++ b/conekta/rest.py @@ -226,7 +226,7 @@ def request( headers=headers, preload_content=False ) - elif headers['Content-Type'] == 'text/plain' and isinstance(body, bool): + elif headers['Content-Type'].startswith('text/') and isinstance(body, bool): request_body = "true" if body else "false" r = self.pool_manager.request( method, diff --git a/config-python.json b/config-python.json index 2b71b66..6257ad6 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": "6.0.3", + "packageVersion": "6.0.4", "packageUrl": "https://github.com/conekta/conekta-python", "projectName": "conekta", "templateDir": "/local/templates/python", "hasBearerMethods" : true, "useOneOfDiscriminatorLookup" : true, "nonCompliantUseDiscriminatorIfCompositionFails" : false, - "httpUserAgent": "Conekta/v2 PythonBindings/6.0.3", + "httpUserAgent": "Conekta/v2 PythonBindings/6.0.4", "files": { "/local/AUTHORS.md" : {}, "/local/CODE_OF_CONDUCT.md": {}, diff --git a/docs/AntifraudApi.md b/docs/AntifraudApi.md index 10ef6a9..3ef4443 100644 --- a/docs/AntifraudApi.md +++ b/docs/AntifraudApi.md @@ -49,7 +49,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.AntifraudApi(api_client) create_risk_rules_data = conekta.CreateRiskRulesData() # CreateRiskRulesData | requested field for blacklist rule - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) try: # Create blacklisted rule @@ -68,7 +68,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **create_risk_rules_data** | [**CreateRiskRulesData**](CreateRiskRulesData.md)| requested field for blacklist rule | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] ### Return type @@ -129,7 +129,7 @@ configuration = conekta.Configuration( with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.AntifraudApi(api_client) - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) create_risk_rules_data = conekta.CreateRiskRulesData() # CreateRiskRulesData | (optional) try: @@ -148,7 +148,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **create_risk_rules_data** | [**CreateRiskRulesData**](CreateRiskRulesData.md)| | [optional] ### Return type @@ -211,7 +211,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.AntifraudApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -231,7 +231,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -294,7 +294,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.AntifraudApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -314,7 +314,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -379,7 +379,7 @@ configuration = conekta.Configuration( with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.AntifraudApi(api_client) - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) try: # Get list of blacklisted rules @@ -397,7 +397,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] ### Return type @@ -459,7 +459,7 @@ configuration = conekta.Configuration( with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.AntifraudApi(api_client) - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) try: # Get a list of whitelisted rules @@ -477,7 +477,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] ### Return type diff --git a/docs/ApiKeysApi.md b/docs/ApiKeysApi.md index 1e0c561..a1a54a2 100644 --- a/docs/ApiKeysApi.md +++ b/docs/ApiKeysApi.md @@ -50,7 +50,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.ApiKeysApi(api_client) api_key_request = conekta.ApiKeyRequest() # ApiKeyRequest | requested field for a api keys - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -70,7 +70,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **api_key_request** | [**ApiKeyRequest**](ApiKeyRequest.md)| requested field for a api keys | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -135,7 +135,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.ApiKeysApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) try: # Delete Api Key @@ -154,7 +154,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] ### Return type @@ -218,7 +218,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.ApiKeysApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -238,7 +238,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -302,7 +302,7 @@ configuration = conekta.Configuration( with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.ApiKeysApi(api_client) - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) limit = 20 # int | The numbers of items to return, the maximum value is 250 (optional) (default to 20) next = 'next_example' # str | next page (optional) @@ -325,7 +325,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] **limit** | **int**| The numbers of items to return, the maximum value is 250 | [optional] [default to 20] **next** | **str**| next page | [optional] @@ -394,7 +394,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.ApiKeysApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) api_key_update_request = conekta.ApiKeyUpdateRequest() # ApiKeyUpdateRequest | (optional) try: @@ -414,7 +414,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **api_key_update_request** | [**ApiKeyUpdateRequest**](ApiKeyUpdateRequest.md)| | [optional] ### Return type diff --git a/docs/BalancesApi.md b/docs/BalancesApi.md index 6c42c11..96aa3f8 100644 --- a/docs/BalancesApi.md +++ b/docs/BalancesApi.md @@ -44,7 +44,7 @@ configuration = conekta.Configuration( with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.BalancesApi(api_client) - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) try: # Get a company's balance @@ -62,7 +62,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] ### Return type diff --git a/docs/ChargeOrderResponsePaymentMethod.md b/docs/ChargeOrderResponsePaymentMethod.md index bd3b6db..7b642f1 100644 --- a/docs/ChargeOrderResponsePaymentMethod.md +++ b/docs/ChargeOrderResponsePaymentMethod.md @@ -15,16 +15,17 @@ Name | Type | Description | Notes **service_name** | **str** | | [optional] **store** | **str** | | [optional] **store_name** | **str** | | [optional] -**account_type** | **str** | | [optional] -**brand** | **str** | | [optional] +**customer_ip_address** | **str** | | [optional] +**account_type** | **str** | Account type of the card | [optional] +**brand** | **str** | Brand of the card | [optional] **contract_id** | **str** | Id sent for recurrent charges. | [optional] -**country** | **str** | | [optional] -**exp_month** | **str** | | [optional] -**exp_year** | **str** | | [optional] +**country** | **str** | Country of the card | [optional] +**exp_month** | **str** | Expiration month of the card | [optional] +**exp_year** | **str** | Expiration year of the card | [optional] **fraud_indicators** | **List[object]** | | [optional] -**issuer** | **str** | | [optional] -**last4** | **str** | | [optional] -**name** | **str** | | [optional] +**issuer** | **str** | Issuer of the card | [optional] +**last4** | **str** | Last 4 digits of the card | [optional] +**name** | **str** | Name of the cardholder | [optional] **bank** | **str** | | [optional] **clabe** | **str** | | [optional] **description** | **str** | | [optional] diff --git a/docs/ChargeRequest.md b/docs/ChargeRequest.md index 73f9b9c..6681cd8 100644 --- a/docs/ChargeRequest.md +++ b/docs/ChargeRequest.md @@ -6,7 +6,7 @@ The charges to be made Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**amount** | **int** | | [optional] +**amount** | **int** | Amount to be charged in cents | [optional] **payment_method** | [**ChargeRequestPaymentMethod**](ChargeRequestPaymentMethod.md) | | **reference_id** | **str** | Custom reference to add to the charge | [optional] diff --git a/docs/ChargeRequestPaymentMethod.md b/docs/ChargeRequestPaymentMethod.md index 7400b75..0e143b4 100644 --- a/docs/ChargeRequestPaymentMethod.md +++ b/docs/ChargeRequestPaymentMethod.md @@ -1,14 +1,19 @@ # ChargeRequestPaymentMethod -Payment method used in the charge. Go to the [payment methods](https://developers.conekta.com/reference/m%C3%A9todos-de-pago) section for more details ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**type** | **str** | Type of payment method | +**cvc** | **str** | Optional, It is a value that allows identifying the security code of the card. Only for PCI merchants | +**exp_month** | **str** | Card expiration month | +**exp_year** | **str** | Card expiration year | +**name** | **str** | Cardholder name | +**number** | **str** | Card number | +**customer_ip_address** | **str** | Optional field used to capture the customer's IP address for fraud prevention and security monitoring purposes | [optional] **expires_at** | **int** | Method expiration date as unix timestamp | [optional] **monthly_installments** | **int** | How many months without interest to apply, it can be 3, 6, 9, 12 or 18 | [optional] -**type** | **str** | | **token_id** | **str** | | [optional] **payment_source_id** | **str** | | [optional] **contract_id** | **str** | Optional id sent to indicate the bank contract for recurrent card charges. | [optional] diff --git a/docs/ChargeResponse.md b/docs/ChargeResponse.md index c8e28f3..2eb3c7f 100644 --- a/docs/ChargeResponse.md +++ b/docs/ChargeResponse.md @@ -14,11 +14,11 @@ Name | Type | Description | Notes **device_fingerprint** | **str** | | [optional] **failure_code** | **str** | | [optional] **failure_message** | **str** | | [optional] -**id** | **str** | | [optional] -**livemode** | **bool** | | [optional] +**id** | **str** | Charge ID | [optional] +**livemode** | **bool** | Whether the charge was made in live mode or not | [optional] **object** | **str** | | [optional] -**order_id** | **str** | | [optional] -**paid_at** | **int** | | [optional] +**order_id** | **str** | Order ID | [optional] +**paid_at** | **int** | Payment date | [optional] **payment_method** | [**ChargeResponsePaymentMethod**](ChargeResponsePaymentMethod.md) | | [optional] **reference_id** | **str** | Reference ID of the charge | [optional] **refunds** | [**ChargeResponseRefunds**](ChargeResponseRefunds.md) | | [optional] diff --git a/docs/ChargeResponsePaymentMethod.md b/docs/ChargeResponsePaymentMethod.md index a91d84a..425cf76 100644 --- a/docs/ChargeResponsePaymentMethod.md +++ b/docs/ChargeResponsePaymentMethod.md @@ -15,16 +15,17 @@ Name | Type | Description | Notes **service_name** | **str** | | [optional] **store** | **str** | | [optional] **store_name** | **str** | | [optional] -**account_type** | **str** | | [optional] -**brand** | **str** | | [optional] +**customer_ip_address** | **str** | | [optional] +**account_type** | **str** | Account type of the card | [optional] +**brand** | **str** | Brand of the card | [optional] **contract_id** | **str** | Id sent for recurrent charges. | [optional] -**country** | **str** | | [optional] -**exp_month** | **str** | | [optional] -**exp_year** | **str** | | [optional] +**country** | **str** | Country of the card | [optional] +**exp_month** | **str** | Expiration month of the card | [optional] +**exp_year** | **str** | Expiration year of the card | [optional] **fraud_indicators** | **List[object]** | | [optional] -**issuer** | **str** | | [optional] -**last4** | **str** | | [optional] -**name** | **str** | | [optional] +**issuer** | **str** | Issuer of the card | [optional] +**last4** | **str** | Last 4 digits of the card | [optional] +**name** | **str** | Name of the cardholder | [optional] **bank** | **str** | | [optional] **clabe** | **str** | | [optional] **description** | **str** | | [optional] diff --git a/docs/ChargesApi.md b/docs/ChargesApi.md index 3bd5549..f16d255 100644 --- a/docs/ChargesApi.md +++ b/docs/ChargesApi.md @@ -44,7 +44,7 @@ configuration = conekta.Configuration( with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.ChargesApi(api_client) - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) limit = 20 # int | The numbers of items to return, the maximum value is 250 (optional) (default to 20) search = 'search_example' # str | General order search, e.g. by mail, reference etc. (optional) @@ -67,7 +67,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] **limit** | **int**| The numbers of items to return, the maximum value is 250 | [optional] [default to 20] **search** | **str**| General order search, e.g. by mail, reference etc. | [optional] @@ -137,7 +137,7 @@ with conekta.ApiClient(configuration) as api_client: api_instance = conekta.ChargesApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource charge_request = conekta.ChargeRequest() # ChargeRequest | requested field for a charge - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -158,7 +158,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | **charge_request** | [**ChargeRequest**](ChargeRequest.md)| requested field for a charge | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -224,7 +224,7 @@ with conekta.ApiClient(configuration) as api_client: api_instance = conekta.ChargesApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource charge_update_request = conekta.ChargeUpdateRequest() # ChargeUpdateRequest | requested field for update a charge - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -245,7 +245,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | **charge_update_request** | [**ChargeUpdateRequest**](ChargeUpdateRequest.md)| requested field for update a charge | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type diff --git a/docs/ChargesDataResponse.md b/docs/ChargesDataResponse.md index 324cc0a..5d1d21a 100644 --- a/docs/ChargesDataResponse.md +++ b/docs/ChargesDataResponse.md @@ -14,11 +14,11 @@ Name | Type | Description | Notes **device_fingerprint** | **str** | | [optional] **failure_code** | **str** | | [optional] **failure_message** | **str** | | [optional] -**id** | **str** | | [optional] -**livemode** | **bool** | | [optional] +**id** | **str** | Charge ID | [optional] +**livemode** | **bool** | Whether the charge was made in live mode or not | [optional] **object** | **str** | | [optional] -**order_id** | **str** | | [optional] -**paid_at** | **int** | | [optional] +**order_id** | **str** | Order ID | [optional] +**paid_at** | **int** | Payment date | [optional] **payment_method** | [**ChargeResponsePaymentMethod**](ChargeResponsePaymentMethod.md) | | [optional] **reference_id** | **str** | Reference ID of the charge | [optional] **refunds** | [**ChargeResponseRefunds**](ChargeResponseRefunds.md) | | [optional] diff --git a/docs/Checkout.md b/docs/Checkout.md index 3a92e3d..a4dfb3d 100644 --- a/docs/Checkout.md +++ b/docs/Checkout.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **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 2 to 365 days (the valid range will be taken from the next day of the creation date at 00:01 hrs) | **monthly_installments_enabled** | **bool** | This flag allows you to specify if months without interest will be active. | [optional] **monthly_installments_options** | **List[int]** | This field allows you to specify the number of months without interest. | [optional] +**three_ds_mode** | **str** | Indicates the 3DS2 mode for the order, either smart or strict. | [optional] **name** | **str** | Reason for charge | **needs_shipping_contact** | **bool** | This flag allows you to fill in the shipping information at checkout. | [optional] **on_demand_enabled** | **bool** | This flag allows you to specify if the link will be on demand. | [optional] diff --git a/docs/CompaniesApi.md b/docs/CompaniesApi.md index 15fa03f..54200f5 100644 --- a/docs/CompaniesApi.md +++ b/docs/CompaniesApi.md @@ -45,7 +45,7 @@ configuration = conekta.Configuration( with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.CompaniesApi(api_client) - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) limit = 20 # int | The numbers of items to return, the maximum value is 250 (optional) (default to 20) search = 'search_example' # str | General order search, e.g. by mail, reference etc. (optional) next = 'next_example' # str | next page (optional) @@ -67,7 +67,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **limit** | **int**| The numbers of items to return, the maximum value is 250 | [optional] [default to 20] **search** | **str**| General order search, e.g. by mail, reference etc. | [optional] **next** | **str**| next page | [optional] @@ -132,7 +132,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.CompaniesApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) try: # Get Company @@ -151,7 +151,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] ### Return type diff --git a/docs/CustomersApi.md b/docs/CustomersApi.md index 48ddd88..4d094d5 100644 --- a/docs/CustomersApi.md +++ b/docs/CustomersApi.md @@ -52,7 +52,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.CustomersApi(api_client) customer = conekta.Customer() # Customer | requested field for customer - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -72,7 +72,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **customer** | [**Customer**](Customer.md)| requested field for customer | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -140,7 +140,7 @@ with conekta.ApiClient(configuration) as api_client: api_instance = conekta.CustomersApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource customer_fiscal_entities_request = conekta.CustomerFiscalEntitiesRequest() # CustomerFiscalEntitiesRequest | requested field for customer fiscal entities - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -161,7 +161,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | **customer_fiscal_entities_request** | [**CustomerFiscalEntitiesRequest**](CustomerFiscalEntitiesRequest.md)| requested field for customer fiscal entities | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -227,7 +227,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.CustomersApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -247,7 +247,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -313,7 +313,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.CustomersApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -333,7 +333,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -397,7 +397,7 @@ configuration = conekta.Configuration( with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.CustomersApi(api_client) - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) limit = 20 # int | The numbers of items to return, the maximum value is 250 (optional) (default to 20) search = 'search_example' # str | General order search, e.g. by mail, reference etc. (optional) @@ -420,7 +420,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] **limit** | **int**| The numbers of items to return, the maximum value is 250 | [optional] [default to 20] **search** | **str**| General order search, e.g. by mail, reference etc. | [optional] @@ -490,7 +490,7 @@ with conekta.ApiClient(configuration) as api_client: api_instance = conekta.CustomersApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource update_customer = conekta.UpdateCustomer() # UpdateCustomer | requested field for customer - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -511,7 +511,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | **update_customer** | [**UpdateCustomer**](UpdateCustomer.md)| requested field for customer | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -580,7 +580,7 @@ with conekta.ApiClient(configuration) as api_client: id = '6307a60c41de27127515a575' # str | Identifier of the resource fiscal_entities_id = 'fis_ent_2tQ8HkkfbauaKP9Ho' # str | identifier customer_update_fiscal_entities_request = conekta.CustomerUpdateFiscalEntitiesRequest() # CustomerUpdateFiscalEntitiesRequest | requested field for customer update fiscal entities - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -602,7 +602,7 @@ Name | Type | Description | Notes **id** | **str**| Identifier of the resource | **fiscal_entities_id** | **str**| identifier | **customer_update_fiscal_entities_request** | [**CustomerUpdateFiscalEntitiesRequest**](CustomerUpdateFiscalEntitiesRequest.md)| requested field for customer update fiscal entities | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type diff --git a/docs/DiscountsApi.md b/docs/DiscountsApi.md index 0aaf097..25e800c 100644 --- a/docs/DiscountsApi.md +++ b/docs/DiscountsApi.md @@ -51,7 +51,7 @@ with conekta.ApiClient(configuration) as api_client: api_instance = conekta.DiscountsApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource order_discount_lines_request = conekta.OrderDiscountLinesRequest() # OrderDiscountLinesRequest | requested field for a discount lines - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -72,7 +72,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | **order_discount_lines_request** | [**OrderDiscountLinesRequest**](OrderDiscountLinesRequest.md)| requested field for a discount lines | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -138,7 +138,7 @@ with conekta.ApiClient(configuration) as api_client: api_instance = conekta.DiscountsApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource discount_lines_id = 'dis_lin_2tQ974hSHcsdeSZHG' # str | discount line id identifier - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -159,7 +159,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | **discount_lines_id** | **str**| discount line id identifier | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -226,7 +226,7 @@ with conekta.ApiClient(configuration) as api_client: api_instance = conekta.DiscountsApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource discount_lines_id = 'dis_lin_2tQ974hSHcsdeSZHG' # str | discount line id identifier - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -247,7 +247,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | **discount_lines_id** | **str**| discount line id identifier | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -313,7 +313,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.DiscountsApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) limit = 20 # int | The numbers of items to return, the maximum value is 250 (optional) (default to 20) search = 'search_example' # str | General order search, e.g. by mail, reference etc. (optional) @@ -337,7 +337,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] **limit** | **int**| The numbers of items to return, the maximum value is 250 | [optional] [default to 20] **search** | **str**| General order search, e.g. by mail, reference etc. | [optional] @@ -408,7 +408,7 @@ with conekta.ApiClient(configuration) as api_client: id = '6307a60c41de27127515a575' # str | Identifier of the resource discount_lines_id = 'dis_lin_2tQ974hSHcsdeSZHG' # str | discount line id identifier update_order_discount_lines_request = conekta.UpdateOrderDiscountLinesRequest() # UpdateOrderDiscountLinesRequest | requested field for a discount lines - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -430,7 +430,7 @@ Name | Type | Description | Notes **id** | **str**| Identifier of the resource | **discount_lines_id** | **str**| discount line id identifier | **update_order_discount_lines_request** | [**UpdateOrderDiscountLinesRequest**](UpdateOrderDiscountLinesRequest.md)| requested field for a discount lines | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type diff --git a/docs/EventTypes.md b/docs/EventTypes.md index 531bc7b..9cb7fe3 100644 --- a/docs/EventTypes.md +++ b/docs/EventTypes.md @@ -2,10 +2,17 @@ It is a parameter that allows to identify in the response, the type of event that is being generated. -## Properties +## Enum -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +* `WEBHOOK_PING` (value: `'webhook_ping'`) + +* `ORDER_DOT_PAID` (value: `'order.paid'`) + +* `ORDER_DOT_EXPIRED` (value: `'order.expired'`) + +* `ORDER_DOT_CANCELED` (value: `'order.canceled'`) + +* `ORDER_DOT_PENDING_PAYMENT` (value: `'order.pending_payment'`) [[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/EventsApi.md b/docs/EventsApi.md index 8a15531..47147fc 100644 --- a/docs/EventsApi.md +++ b/docs/EventsApi.md @@ -47,7 +47,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.EventsApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -67,7 +67,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -129,7 +129,7 @@ configuration = conekta.Configuration( with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.EventsApi(api_client) - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) limit = 20 # int | The numbers of items to return, the maximum value is 250 (optional) (default to 20) search = 'search_example' # str | General order search, e.g. by mail, reference etc. (optional) @@ -152,7 +152,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] **limit** | **int**| The numbers of items to return, the maximum value is 250 | [optional] [default to 20] **search** | **str**| General order search, e.g. by mail, reference etc. | [optional] @@ -221,7 +221,7 @@ with conekta.ApiClient(configuration) as api_client: api_instance = conekta.EventsApi(api_client) event_id = '6463d6e35a4c3e001819e760' # str | event identifier webhook_log_id = 'webhl_2tsv6NzWJHBWCkqGt' # str | webhook log identifier - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) try: # Resend Event @@ -241,7 +241,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **event_id** | **str**| event identifier | **webhook_log_id** | **str**| webhook log identifier | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] ### Return type diff --git a/docs/LogsApi.md b/docs/LogsApi.md index 380c2b3..b8cabbf 100644 --- a/docs/LogsApi.md +++ b/docs/LogsApi.md @@ -46,7 +46,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.LogsApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -66,7 +66,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -130,7 +130,7 @@ configuration = conekta.Configuration( with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.LogsApi(api_client) - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) limit = 20 # int | The numbers of items to return, the maximum value is 250 (optional) (default to 20) search = 'search_example' # str | General order search, e.g. by mail, reference etc. (optional) @@ -153,7 +153,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] **limit** | **int**| The numbers of items to return, the maximum value is 250 | [optional] [default to 20] **search** | **str**| General order search, e.g. by mail, reference etc. | [optional] diff --git a/docs/OrderRefundRequest.md b/docs/OrderRefundRequest.md index 1063601..3f81bfd 100644 --- a/docs/OrderRefundRequest.md +++ b/docs/OrderRefundRequest.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**amount** | **int** | | +**amount** | **int** | Amount to be refunded in cents | **expires_at** | **int** | | [optional] -**reason** | **str** | | +**reason** | **str** | Reason for the refund | ## Example diff --git a/docs/OrderRequest.md b/docs/OrderRequest.md index cca5f8d..b4a39e9 100644 --- a/docs/OrderRequest.md +++ b/docs/OrderRequest.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes **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] [default to False] **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. | [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** | [**CustomerShippingContacts**](CustomerShippingContacts.md) | | [optional] **shipping_lines** | [**List[ShippingRequest]**](ShippingRequest.md) | List of [shipping costs](https://developers.conekta.com/v2.1.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.1.0/reference/orderscreatetaxes) that are applied to the order. | [optional] diff --git a/docs/OrdersApi.md b/docs/OrdersApi.md index ec33c07..5afbf8f 100644 --- a/docs/OrdersApi.md +++ b/docs/OrdersApi.md @@ -52,7 +52,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.OrdersApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -72,7 +72,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -140,7 +140,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.OrdersApi(api_client) order_request = conekta.OrderRequest() # OrderRequest | requested field for order - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -160,7 +160,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **order_request** | [**OrderRequest**](OrderRequest.md)| requested field for order | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -226,7 +226,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.OrdersApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -246,7 +246,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -274,7 +274,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_orders** -> GetOrdersResponse get_orders(accept_language=accept_language, x_child_company_id=x_child_company_id, limit=limit, search=search, next=next, previous=previous) +> GetOrdersResponse get_orders(accept_language=accept_language, x_child_company_id=x_child_company_id, limit=limit, search=search, next=next, previous=previous, payment_status=payment_status, last_payment_info_status=last_payment_info_status, created_at=created_at, created_at_gte=created_at_gte, created_at_lte=created_at_lte, updated_at_gte=updated_at_gte, updated_at_lte=updated_at_lte) Get a list of Orders @@ -310,16 +310,23 @@ configuration = conekta.Configuration( with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.OrdersApi(api_client) - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) limit = 20 # int | The numbers of items to return, the maximum value is 250 (optional) (default to 20) search = 'search_example' # str | General order search, e.g. by mail, reference etc. (optional) next = 'next_example' # str | next page (optional) previous = 'previous_example' # str | previous page (optional) + payment_status = 'paid' # str | Filters by order status (optional) + last_payment_info_status = 'pending_payment' # str | Filters by last payment info status (optional) + created_at = 1612137600 # int | created equal to (optional) + created_at_gte = 1612137600 # int | created at greater than or equal to (optional) + created_at_lte = 1612137600 # int | created at less than or equal to (optional) + updated_at_gte = 1612137600 # int | updated at greater than or equal to (optional) + updated_at_lte = 1612137600 # int | updated at less than or equal to (optional) try: # Get a list of Orders - api_response = api_instance.get_orders(accept_language=accept_language, x_child_company_id=x_child_company_id, limit=limit, search=search, next=next, previous=previous) + api_response = api_instance.get_orders(accept_language=accept_language, x_child_company_id=x_child_company_id, limit=limit, search=search, next=next, previous=previous, payment_status=payment_status, last_payment_info_status=last_payment_info_status, created_at=created_at, created_at_gte=created_at_gte, created_at_lte=created_at_lte, updated_at_gte=updated_at_gte, updated_at_lte=updated_at_lte) print("The response of OrdersApi->get_orders:\n") pprint(api_response) except Exception as e: @@ -333,12 +340,19 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] **limit** | **int**| The numbers of items to return, the maximum value is 250 | [optional] [default to 20] **search** | **str**| General order search, e.g. by mail, reference etc. | [optional] **next** | **str**| next page | [optional] **previous** | **str**| previous page | [optional] + **payment_status** | **str**| Filters by order status | [optional] + **last_payment_info_status** | **str**| Filters by last payment info status | [optional] + **created_at** | **int**| created equal to | [optional] + **created_at_gte** | **int**| created at greater than or equal to | [optional] + **created_at_lte** | **int**| created at less than or equal to | [optional] + **updated_at_gte** | **int**| updated at greater than or equal to | [optional] + **updated_at_lte** | **int**| updated at less than or equal to | [optional] ### Return type @@ -402,7 +416,7 @@ with conekta.ApiClient(configuration) as api_client: api_instance = conekta.OrdersApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource refund_id = '6407b5bee1329a000175ba11' # str | refund identifier - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -423,7 +437,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | **refund_id** | **str**| refund identifier | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -492,7 +506,7 @@ with conekta.ApiClient(configuration) as api_client: api_instance = conekta.OrdersApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource order_refund_request = conekta.OrderRefundRequest() # OrderRefundRequest | requested field for a refund - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -513,7 +527,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | **order_refund_request** | [**OrderRefundRequest**](OrderRefundRequest.md)| requested field for a refund | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -581,7 +595,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.OrdersApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) order_capture_request = conekta.OrderCaptureRequest() # OrderCaptureRequest | requested fields for capture order (optional) @@ -602,7 +616,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] **order_capture_request** | [**OrderCaptureRequest**](OrderCaptureRequest.md)| requested fields for capture order | [optional] @@ -671,7 +685,7 @@ with conekta.ApiClient(configuration) as api_client: api_instance = conekta.OrdersApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource order_update_request = conekta.OrderUpdateRequest() # OrderUpdateRequest | requested field for an order - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) try: # Update Order @@ -691,7 +705,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | **order_update_request** | [**OrderUpdateRequest**](OrderUpdateRequest.md)| requested field for an order | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] ### Return type diff --git a/docs/PaymentLinkApi.md b/docs/PaymentLinkApi.md index 83373bf..c7830c2 100644 --- a/docs/PaymentLinkApi.md +++ b/docs/PaymentLinkApi.md @@ -48,7 +48,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.PaymentLinkApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -68,7 +68,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -134,7 +134,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.PaymentLinkApi(api_client) checkout = conekta.Checkout() # Checkout | requested field for checkout - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -154,7 +154,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **checkout** | [**Checkout**](Checkout.md)| requested field for checkout | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -220,7 +220,7 @@ with conekta.ApiClient(configuration) as api_client: api_instance = conekta.PaymentLinkApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource email_checkout_request = conekta.EmailCheckoutRequest() # EmailCheckoutRequest | requested field for sms checkout - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -241,7 +241,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | **email_checkout_request** | [**EmailCheckoutRequest**](EmailCheckoutRequest.md)| requested field for sms checkout | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -306,7 +306,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.PaymentLinkApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -326,7 +326,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -392,7 +392,7 @@ configuration = conekta.Configuration( with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.PaymentLinkApi(api_client) - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) limit = 20 # int | The numbers of items to return, the maximum value is 250 (optional) (default to 20) search = 'search_example' # str | General order search, e.g. by mail, reference etc. (optional) @@ -415,7 +415,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] **limit** | **int**| The numbers of items to return, the maximum value is 250 | [optional] [default to 20] **search** | **str**| General order search, e.g. by mail, reference etc. | [optional] @@ -485,7 +485,7 @@ with conekta.ApiClient(configuration) as api_client: api_instance = conekta.PaymentLinkApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource sms_checkout_request = conekta.SmsCheckoutRequest() # SmsCheckoutRequest | requested field for sms checkout - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -506,7 +506,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | **sms_checkout_request** | [**SmsCheckoutRequest**](SmsCheckoutRequest.md)| requested field for sms checkout | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type diff --git a/docs/PaymentMethodBankTransfer.md b/docs/PaymentMethodBankTransfer.md index 49a4664..0971941 100644 --- a/docs/PaymentMethodBankTransfer.md +++ b/docs/PaymentMethodBankTransfer.md @@ -23,6 +23,7 @@ Name | Type | Description | Notes **receiving_account_tax_id** | **str** | | [optional] **reference_number** | **str** | | [optional] **tracking_code** | **str** | | [optional] +**customer_ip_address** | **str** | | [optional] ## Example diff --git a/docs/PaymentMethodCard.md b/docs/PaymentMethodCard.md index 5e949f9..60b68a3 100644 --- a/docs/PaymentMethodCard.md +++ b/docs/PaymentMethodCard.md @@ -7,17 +7,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **type** | **str** | | [optional] **object** | **str** | | -**account_type** | **str** | | [optional] +**account_type** | **str** | Account type of the card | [optional] **auth_code** | **str** | | [optional] -**brand** | **str** | | [optional] +**brand** | **str** | Brand of the card | [optional] **contract_id** | **str** | Id sent for recurrent charges. | [optional] -**country** | **str** | | [optional] -**exp_month** | **str** | | [optional] -**exp_year** | **str** | | [optional] +**country** | **str** | Country of the card | [optional] +**exp_month** | **str** | Expiration month of the card | [optional] +**exp_year** | **str** | Expiration year of the card | [optional] **fraud_indicators** | **List[object]** | | [optional] -**issuer** | **str** | | [optional] -**last4** | **str** | | [optional] -**name** | **str** | | [optional] +**issuer** | **str** | Issuer of the card | [optional] +**last4** | **str** | Last 4 digits of the card | [optional] +**name** | **str** | Name of the cardholder | [optional] +**customer_ip_address** | **str** | Optional field used to capture the customer's IP address for fraud prevention and security monitoring purposes | [optional] ## Example diff --git a/docs/PaymentMethodCardRequest.md b/docs/PaymentMethodCardRequest.md index cecb164..2b64619 100644 --- a/docs/PaymentMethodCardRequest.md +++ b/docs/PaymentMethodCardRequest.md @@ -6,7 +6,12 @@ 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.1.0/reference/createsubscription] tutorial for more information on how to tokenize cards. | +**cvc** | **str** | Card security code | +**exp_month** | **str** | Card expiration month | +**exp_year** | **str** | Card expiration year | +**name** | **str** | Cardholder name | +**number** | **str** | Card number | +**customer_ip_address** | **str** | Optional field used to capture the customer's IP address for fraud prevention and security monitoring purposes | [optional] ## Example diff --git a/docs/PaymentMethodCash.md b/docs/PaymentMethodCash.md index a54863c..7de22d9 100644 --- a/docs/PaymentMethodCash.md +++ b/docs/PaymentMethodCash.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **service_name** | **str** | | [optional] **store** | **str** | | [optional] **store_name** | **str** | | [optional] +**customer_ip_address** | **str** | | [optional] ## Example diff --git a/docs/PaymentMethodGeneralRequest.md b/docs/PaymentMethodGeneralRequest.md new file mode 100644 index 0000000..46a07b2 --- /dev/null +++ b/docs/PaymentMethodGeneralRequest.md @@ -0,0 +1,37 @@ +# PaymentMethodGeneralRequest + +Payment method used in the charge. Go to the [payment methods](https://developers.conekta.com/reference/m%C3%A9todos-de-pago) section for more details + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**expires_at** | **int** | Method expiration date as unix timestamp | [optional] +**monthly_installments** | **int** | How many months without interest to apply, it can be 3, 6, 9, 12 or 18 | [optional] +**type** | **str** | Type of payment method | +**token_id** | **str** | | [optional] +**payment_source_id** | **str** | | [optional] +**cvc** | **str** | Optional, It is a value that allows identifying the security code of the card. Only for PCI merchants | [optional] +**contract_id** | **str** | Optional id sent to indicate the bank contract for recurrent card charges. | [optional] +**customer_ip_address** | **str** | Optional field used to capture the customer's IP address for fraud prevention and security monitoring purposes | [optional] + +## Example + +```python +from conekta.models.payment_method_general_request import PaymentMethodGeneralRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of PaymentMethodGeneralRequest from a JSON string +payment_method_general_request_instance = PaymentMethodGeneralRequest.from_json(json) +# print the JSON string representation of the object +print(PaymentMethodGeneralRequest.to_json()) + +# convert the object into a dict +payment_method_general_request_dict = payment_method_general_request_instance.to_dict() +# create an instance of PaymentMethodGeneralRequest from a dict +payment_method_general_request_from_dict = PaymentMethodGeneralRequest.from_dict(payment_method_general_request_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/PaymentMethodTokenRequest.md b/docs/PaymentMethodTokenRequest.md new file mode 100644 index 0000000..74eb01b --- /dev/null +++ b/docs/PaymentMethodTokenRequest.md @@ -0,0 +1,30 @@ +# PaymentMethodTokenRequest + + +## Properties + +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.1.0/reference/createsubscription] tutorial for more information on how to tokenize cards. | + +## Example + +```python +from conekta.models.payment_method_token_request import PaymentMethodTokenRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of PaymentMethodTokenRequest from a JSON string +payment_method_token_request_instance = PaymentMethodTokenRequest.from_json(json) +# print the JSON string representation of the object +print(PaymentMethodTokenRequest.to_json()) + +# convert the object into a dict +payment_method_token_request_dict = payment_method_token_request_instance.to_dict() +# create an instance of PaymentMethodTokenRequest from a dict +payment_method_token_request_from_dict = PaymentMethodTokenRequest.from_dict(payment_method_token_request_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/PaymentMethodsApi.md b/docs/PaymentMethodsApi.md index 75f0cd0..3055020 100644 --- a/docs/PaymentMethodsApi.md +++ b/docs/PaymentMethodsApi.md @@ -50,7 +50,7 @@ with conekta.ApiClient(configuration) as api_client: api_instance = conekta.PaymentMethodsApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource create_customer_payment_methods_request = {"type":"card","token_id":"tok_test_visa_4242"} # CreateCustomerPaymentMethodsRequest | requested field for customer payment methods - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -71,7 +71,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | **create_customer_payment_methods_request** | [**CreateCustomerPaymentMethodsRequest**](CreateCustomerPaymentMethodsRequest.md)| requested field for customer payment methods | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -138,7 +138,7 @@ with conekta.ApiClient(configuration) as api_client: api_instance = conekta.PaymentMethodsApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource payment_method_id = 'src_2tQ974hSHcsdeSZHG' # str | Identifier of the payment method - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -159,7 +159,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | **payment_method_id** | **str**| Identifier of the payment method | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -225,7 +225,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.PaymentMethodsApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) limit = 20 # int | The numbers of items to return, the maximum value is 250 (optional) (default to 20) next = 'next_example' # str | next page (optional) @@ -249,7 +249,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] **limit** | **int**| The numbers of items to return, the maximum value is 250 | [optional] [default to 20] **next** | **str**| next page | [optional] @@ -321,7 +321,7 @@ with conekta.ApiClient(configuration) as api_client: id = '6307a60c41de27127515a575' # str | Identifier of the resource payment_method_id = 'src_2tQ974hSHcsdeSZHG' # str | Identifier of the payment method update_payment_methods = conekta.UpdatePaymentMethods() # UpdatePaymentMethods | requested field for customer payment methods - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -343,7 +343,7 @@ Name | Type | Description | Notes **id** | **str**| Identifier of the resource | **payment_method_id** | **str**| Identifier of the payment method | **update_payment_methods** | [**UpdatePaymentMethods**](UpdatePaymentMethods.md)| requested field for customer payment methods | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type diff --git a/docs/PayoutOrdersApi.md b/docs/PayoutOrdersApi.md index fff20bd..9c59460 100644 --- a/docs/PayoutOrdersApi.md +++ b/docs/PayoutOrdersApi.md @@ -48,7 +48,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.PayoutOrdersApi(api_client) payout_order = conekta.PayoutOrder() # PayoutOrder | requested field for payout order - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) try: # Create payout order @@ -67,7 +67,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **payout_order** | [**PayoutOrder**](PayoutOrder.md)| requested field for payout order | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] ### Return type @@ -133,7 +133,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.PayoutOrdersApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) try: # Get Payout Order @@ -152,7 +152,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] ### Return type @@ -215,7 +215,7 @@ configuration = conekta.Configuration( with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.PayoutOrdersApi(api_client) - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) limit = 20 # int | The numbers of items to return, the maximum value is 250 (optional) (default to 20) search = 'search_example' # str | General order search, e.g. by mail, reference etc. (optional) next = 'next_example' # str | next page (optional) @@ -237,7 +237,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **limit** | **int**| The numbers of items to return, the maximum value is 250 | [optional] [default to 20] **search** | **str**| General order search, e.g. by mail, reference etc. | [optional] **next** | **str**| next page | [optional] diff --git a/docs/PlansApi.md b/docs/PlansApi.md index b47bedb..6646d53 100644 --- a/docs/PlansApi.md +++ b/docs/PlansApi.md @@ -50,7 +50,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.PlansApi(api_client) plan_request = conekta.PlanRequest() # PlanRequest | requested field for plan - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -70,7 +70,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **plan_request** | [**PlanRequest**](PlanRequest.md)| requested field for plan | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -133,7 +133,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.PlansApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) try: # Delete Plan @@ -152,7 +152,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] ### Return type @@ -215,7 +215,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.PlansApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -235,7 +235,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -298,7 +298,7 @@ configuration = conekta.Configuration( with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.PlansApi(api_client) - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) limit = 20 # int | The numbers of items to return, the maximum value is 250 (optional) (default to 20) search = 'search_example' # str | General order search, e.g. by mail, reference etc. (optional) @@ -321,7 +321,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] **limit** | **int**| The numbers of items to return, the maximum value is 250 | [optional] [default to 20] **search** | **str**| General order search, e.g. by mail, reference etc. | [optional] @@ -390,7 +390,7 @@ with conekta.ApiClient(configuration) as api_client: api_instance = conekta.PlansApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource plan_update_request = conekta.PlanUpdateRequest() # PlanUpdateRequest | requested field for plan - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -411,7 +411,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | **plan_update_request** | [**PlanUpdateRequest**](PlanUpdateRequest.md)| requested field for plan | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type diff --git a/docs/Product.md b/docs/Product.md index 3d2c433..bb1a4e0 100644 --- a/docs/Product.md +++ b/docs/Product.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **antifraud_info** | **Dict[str, object]** | | [optional] **brand** | **str** | The brand of the item. | [optional] **description** | **str** | Short description of the item | [optional] -**metadata** | **Dict[str, str]** | It is a key/value hash that can hold custom fields. Maximum 100 elements and allows special characters. | [optional] +**metadata** | **Dict[str, object]** | It is a key/value hash that can hold custom fields. Maximum 100 elements and allows special characters. | [optional] **name** | **str** | The name of the item. It will be displayed in the order. | **quantity** | **int** | The quantity of the item in the order. | **sku** | **str** | The stock keeping unit for the item. It is used to identify the item in the order. | [optional] diff --git a/docs/ProductDataResponse.md b/docs/ProductDataResponse.md index 66e2760..c1b3aee 100644 --- a/docs/ProductDataResponse.md +++ b/docs/ProductDataResponse.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **antifraud_info** | **Dict[str, object]** | | [optional] **brand** | **str** | The brand of the item. | [optional] **description** | **str** | Short description of the item | [optional] -**metadata** | **Dict[str, str]** | It is a key/value hash that can hold custom fields. Maximum 100 elements and allows special characters. | [optional] +**metadata** | **Dict[str, object]** | It is a key/value hash that can hold custom fields. Maximum 100 elements and allows special characters. | [optional] **name** | **str** | The name of the item. It will be displayed in the order. | **quantity** | **int** | The quantity of the item in the order. | **sku** | **str** | The stock keeping unit for the item. It is used to identify the item in the order. | [optional] diff --git a/docs/ProductOrderResponse.md b/docs/ProductOrderResponse.md index ac7dfe6..0e480b7 100644 --- a/docs/ProductOrderResponse.md +++ b/docs/ProductOrderResponse.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **antifraud_info** | **Dict[str, object]** | | [optional] **brand** | **str** | The brand of the item. | [optional] **description** | **str** | Short description of the item | [optional] -**metadata** | **Dict[str, str]** | It is a key/value hash that can hold custom fields. Maximum 100 elements and allows special characters. | [optional] +**metadata** | **Dict[str, object]** | It is a key/value hash that can hold custom fields. Maximum 100 elements and allows special characters. | [optional] **name** | **str** | The name of the item. It will be displayed in the order. | **quantity** | **int** | The quantity of the item in the order. | **sku** | **str** | The stock keeping unit for the item. It is used to identify the item in the order. | [optional] diff --git a/docs/ProductsApi.md b/docs/ProductsApi.md index 2335a77..3bb9b46 100644 --- a/docs/ProductsApi.md +++ b/docs/ProductsApi.md @@ -49,7 +49,7 @@ with conekta.ApiClient(configuration) as api_client: api_instance = conekta.ProductsApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource product = conekta.Product() # Product | requested field for a product - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -70,7 +70,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | **product** | [**Product**](Product.md)| requested field for a product | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -136,7 +136,7 @@ with conekta.ApiClient(configuration) as api_client: api_instance = conekta.ProductsApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource line_item_id = 'line_item_2tQ8HkkfbauaKP9Ho' # str | identifier - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -157,7 +157,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | **line_item_id** | **str**| identifier | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -226,7 +226,7 @@ with conekta.ApiClient(configuration) as api_client: id = '6307a60c41de27127515a575' # str | Identifier of the resource line_item_id = 'line_item_2tQ8HkkfbauaKP9Ho' # str | identifier update_product = conekta.UpdateProduct() # UpdateProduct | requested field for products - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -248,7 +248,7 @@ Name | Type | Description | Notes **id** | **str**| Identifier of the resource | **line_item_id** | **str**| identifier | **update_product** | [**UpdateProduct**](UpdateProduct.md)| requested field for products | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type diff --git a/docs/ShippingContactsApi.md b/docs/ShippingContactsApi.md index 803c53c..e97fb5e 100644 --- a/docs/ShippingContactsApi.md +++ b/docs/ShippingContactsApi.md @@ -49,7 +49,7 @@ with conekta.ApiClient(configuration) as api_client: api_instance = conekta.ShippingContactsApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource customer_shipping_contacts = conekta.CustomerShippingContacts() # CustomerShippingContacts | requested field for customer shippings contacts - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -70,7 +70,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | **customer_shipping_contacts** | [**CustomerShippingContacts**](CustomerShippingContacts.md)| requested field for customer shippings contacts | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -137,7 +137,7 @@ with conekta.ApiClient(configuration) as api_client: api_instance = conekta.ShippingContactsApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource shipping_contacts_id = '6307a60c41de27127515a575' # str | identifier - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -158,7 +158,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | **shipping_contacts_id** | **str**| identifier | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -227,7 +227,7 @@ with conekta.ApiClient(configuration) as api_client: id = '6307a60c41de27127515a575' # str | Identifier of the resource shipping_contacts_id = '6307a60c41de27127515a575' # str | identifier customer_update_shipping_contacts = conekta.CustomerUpdateShippingContacts() # CustomerUpdateShippingContacts | requested field for customer update shippings contacts - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -249,7 +249,7 @@ Name | Type | Description | Notes **id** | **str**| Identifier of the resource | **shipping_contacts_id** | **str**| identifier | **customer_update_shipping_contacts** | [**CustomerUpdateShippingContacts**](CustomerUpdateShippingContacts.md)| requested field for customer update shippings contacts | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type diff --git a/docs/ShippingsApi.md b/docs/ShippingsApi.md index f890229..32e3df7 100644 --- a/docs/ShippingsApi.md +++ b/docs/ShippingsApi.md @@ -49,7 +49,7 @@ with conekta.ApiClient(configuration) as api_client: api_instance = conekta.ShippingsApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource shipping_request = conekta.ShippingRequest() # ShippingRequest | requested field for a shipping - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -70,7 +70,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | **shipping_request** | [**ShippingRequest**](ShippingRequest.md)| requested field for a shipping | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -136,7 +136,7 @@ with conekta.ApiClient(configuration) as api_client: api_instance = conekta.ShippingsApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource shipping_id = 'ship_lin_2tQ974hSHcsdeSZHG' # str | identifier - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -157,7 +157,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | **shipping_id** | **str**| identifier | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -227,7 +227,7 @@ with conekta.ApiClient(configuration) as api_client: id = '6307a60c41de27127515a575' # str | Identifier of the resource shipping_id = 'ship_lin_2tQ974hSHcsdeSZHG' # str | identifier shipping_request = conekta.ShippingRequest() # ShippingRequest | requested field for a shipping - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -249,7 +249,7 @@ Name | Type | Description | Notes **id** | **str**| Identifier of the resource | **shipping_id** | **str**| identifier | **shipping_request** | [**ShippingRequest**](ShippingRequest.md)| requested field for a shipping | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type diff --git a/docs/SubscriptionResponse.md b/docs/SubscriptionResponse.md index 2aa3795..608c8d6 100644 --- a/docs/SubscriptionResponse.md +++ b/docs/SubscriptionResponse.md @@ -9,6 +9,7 @@ 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] diff --git a/docs/SubscriptionsApi.md b/docs/SubscriptionsApi.md index 401a22b..b17a837 100644 --- a/docs/SubscriptionsApi.md +++ b/docs/SubscriptionsApi.md @@ -51,7 +51,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.SubscriptionsApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -71,7 +71,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -138,7 +138,7 @@ with conekta.ApiClient(configuration) as api_client: api_instance = conekta.SubscriptionsApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource subscription_request = conekta.SubscriptionRequest() # SubscriptionRequest | requested field for subscriptions - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -159,7 +159,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | **subscription_request** | [**SubscriptionRequest**](SubscriptionRequest.md)| requested field for subscriptions | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -225,7 +225,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.SubscriptionsApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -245,7 +245,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -310,7 +310,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.SubscriptionsApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) try: # Get Subscription @@ -329,7 +329,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] ### Return type @@ -393,7 +393,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.SubscriptionsApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -413,7 +413,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -479,7 +479,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.SubscriptionsApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -499,7 +499,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -568,7 +568,7 @@ with conekta.ApiClient(configuration) as api_client: api_instance = conekta.SubscriptionsApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource subscription_update_request = conekta.SubscriptionUpdateRequest() # SubscriptionUpdateRequest | requested field for update a subscription - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -589,7 +589,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | **subscription_update_request** | [**SubscriptionUpdateRequest**](SubscriptionUpdateRequest.md)| requested field for update a subscription | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type diff --git a/docs/TaxesApi.md b/docs/TaxesApi.md index 37d854f..b5fa070 100644 --- a/docs/TaxesApi.md +++ b/docs/TaxesApi.md @@ -49,7 +49,7 @@ with conekta.ApiClient(configuration) as api_client: api_instance = conekta.TaxesApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource order_tax_request = conekta.OrderTaxRequest() # OrderTaxRequest | requested field for a taxes - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -70,7 +70,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | **order_tax_request** | [**OrderTaxRequest**](OrderTaxRequest.md)| requested field for a taxes | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -136,7 +136,7 @@ with conekta.ApiClient(configuration) as api_client: api_instance = conekta.TaxesApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource tax_id = 'tax_lin_2tQ974hSHcsdeSZHG' # str | identifier - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -157,7 +157,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | **tax_id** | **str**| identifier | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -226,7 +226,7 @@ with conekta.ApiClient(configuration) as api_client: id = '6307a60c41de27127515a575' # str | Identifier of the resource tax_id = 'tax_lin_2tQ974hSHcsdeSZHG' # str | identifier update_order_tax_request = conekta.UpdateOrderTaxRequest() # UpdateOrderTaxRequest | requested field for taxes - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -248,7 +248,7 @@ Name | Type | Description | Notes **id** | **str**| Identifier of the resource | **tax_id** | **str**| identifier | **update_order_tax_request** | [**UpdateOrderTaxRequest**](UpdateOrderTaxRequest.md)| requested field for taxes | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type diff --git a/docs/TokensApi.md b/docs/TokensApi.md index 9fe645e..1814131 100644 --- a/docs/TokensApi.md +++ b/docs/TokensApi.md @@ -46,7 +46,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.TokensApi(api_client) token = conekta.Token() # Token | requested field for token - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) try: # Create Token @@ -65,7 +65,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **token** | [**Token**](Token.md)| requested field for token | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] ### Return type diff --git a/docs/TransactionsApi.md b/docs/TransactionsApi.md index 422368c..348113d 100644 --- a/docs/TransactionsApi.md +++ b/docs/TransactionsApi.md @@ -46,7 +46,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.TransactionsApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -66,7 +66,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -130,7 +130,7 @@ configuration = conekta.Configuration( with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.TransactionsApi(api_client) - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) limit = 20 # int | The numbers of items to return, the maximum value is 250 (optional) (default to 20) next = 'next_example' # str | next page (optional) @@ -156,7 +156,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] **limit** | **int**| The numbers of items to return, the maximum value is 250 | [optional] [default to 20] **next** | **str**| next page | [optional] diff --git a/docs/TransfersApi.md b/docs/TransfersApi.md index 60e34dc..c13bc13 100644 --- a/docs/TransfersApi.md +++ b/docs/TransfersApi.md @@ -46,7 +46,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.TransfersApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -66,7 +66,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -130,7 +130,7 @@ configuration = conekta.Configuration( with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.TransfersApi(api_client) - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) limit = 20 # int | The numbers of items to return, the maximum value is 250 (optional) (default to 20) search = 'search_example' # str | General order search, e.g. by mail, reference etc. (optional) @@ -153,7 +153,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] **limit** | **int**| The numbers of items to return, the maximum value is 250 | [optional] [default to 20] **search** | **str**| General order search, e.g. by mail, reference etc. | [optional] diff --git a/docs/WebhookKeysApi.md b/docs/WebhookKeysApi.md index 0f4e07a..6cff868 100644 --- a/docs/WebhookKeysApi.md +++ b/docs/WebhookKeysApi.md @@ -49,7 +49,7 @@ configuration = conekta.Configuration( with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.WebhookKeysApi(api_client) - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) webhook_key_request = conekta.WebhookKeyRequest() # WebhookKeyRequest | (optional) try: @@ -68,7 +68,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **webhook_key_request** | [**WebhookKeyRequest**](WebhookKeyRequest.md)| | [optional] ### Return type @@ -130,7 +130,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.WebhookKeysApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) try: # Delete Webhook key @@ -149,7 +149,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] ### Return type @@ -211,7 +211,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.WebhookKeysApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -231,7 +231,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -295,7 +295,7 @@ configuration = conekta.Configuration( with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.WebhookKeysApi(api_client) - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) limit = 20 # int | The numbers of items to return, the maximum value is 250 (optional) (default to 20) search = 'search_example' # str | General order search, e.g. by mail, reference etc. (optional) @@ -318,7 +318,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] **limit** | **int**| The numbers of items to return, the maximum value is 250 | [optional] [default to 20] **search** | **str**| General order search, e.g. by mail, reference etc. | [optional] @@ -387,7 +387,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.WebhookKeysApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) webhook_key_update_request = conekta.WebhookKeyUpdateRequest() # WebhookKeyUpdateRequest | (optional) try: @@ -407,7 +407,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **webhook_key_update_request** | [**WebhookKeyUpdateRequest**](WebhookKeyUpdateRequest.md)| | [optional] ### Return type diff --git a/docs/WebhooksApi.md b/docs/WebhooksApi.md index bdb115c..c3fcd61 100644 --- a/docs/WebhooksApi.md +++ b/docs/WebhooksApi.md @@ -51,7 +51,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.WebhooksApi(api_client) webhook_request = conekta.WebhookRequest() # WebhookRequest | requested field for webhook - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) try: # Create Webhook @@ -70,7 +70,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **webhook_request** | [**WebhookRequest**](WebhookRequest.md)| requested field for webhook | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] ### Return type @@ -131,7 +131,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.WebhooksApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) try: # Delete Webhook @@ -150,7 +150,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] ### Return type @@ -212,7 +212,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.WebhooksApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -232,7 +232,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type @@ -296,7 +296,7 @@ configuration = conekta.Configuration( with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.WebhooksApi(api_client) - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) limit = 20 # int | The numbers of items to return, the maximum value is 250 (optional) (default to 20) search = 'search_example' # str | General order search, e.g. by mail, reference etc. (optional) @@ -320,7 +320,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] **limit** | **int**| The numbers of items to return, the maximum value is 250 | [optional] [default to 20] **search** | **str**| General order search, e.g. by mail, reference etc. | [optional] @@ -389,7 +389,7 @@ with conekta.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = conekta.WebhooksApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) try: # Test Webhook @@ -408,7 +408,7 @@ with conekta.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] ### Return type @@ -474,7 +474,7 @@ with conekta.ApiClient(configuration) as api_client: api_instance = conekta.WebhooksApi(api_client) id = '6307a60c41de27127515a575' # str | Identifier of the resource webhook_update_request = conekta.WebhookUpdateRequest() # WebhookUpdateRequest | requested fields in order to update a webhook - accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') + accept_language = es # str | Use for knowing which language to use (optional) (default to es) x_child_company_id = '6441b6376b60c3a638da80af' # str | In the case of a holding company, the company id of the child company to which will process the request. (optional) try: @@ -495,7 +495,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| Identifier of the resource | **webhook_update_request** | [**WebhookUpdateRequest**](WebhookUpdateRequest.md)| requested fields in order to update a webhook | - **accept_language** | **str**| Use for knowing which language to use | [optional] [default to 'es'] + **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es] **x_child_company_id** | **str**| In the case of a holding company, the company id of the child company to which will process the request. | [optional] ### Return type diff --git a/pyproject.toml b/pyproject.toml index c0f0b77..37e6356 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "conekta" -version = "6.0.3" +version = "6.0.4" description = "Conekta API" authors = ["Engineering Conekta "] license = "MIT-LICENSE" @@ -10,19 +10,20 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "Conekta API"] include = ["conekta/py.typed"] [tool.poetry.dependencies] -python = "^3.7" +python = "^3.8" -urllib3 = ">= 1.25.3" -python-dateutil = ">=2.8.2" -pydantic = ">=2" -typing-extensions = ">=4.7.1" +urllib3 = ">= 1.25.3 < 3.0.0" +python-dateutil = ">= 2.8.2" +pydantic = ">= 2" +typing-extensions = ">= 4.7.1" [tool.poetry.dev-dependencies] -pytest = ">=7.2.1" -tox = ">=3.9.0" -flake8 = ">=4.0.0" -types-python-dateutil = ">=2.8.19.14" -mypy = "1.4.1" +pytest = ">= 7.2.1" +pytest-cov = ">= 2.8.1" +tox = ">= 3.9.0" +flake8 = ">= 4.0.0" +types-python-dateutil = ">= 2.8.19.14" +mypy = ">= 1.5" [build-system] diff --git a/requirements.txt b/requirements.txt index cc85509..67f7f68 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,4 @@ -python_dateutil >= 2.5.3 -setuptools >= 21.0.0 -urllib3 >= 1.25.3, < 2.1.0 +urllib3 >= 1.25.3, < 3.0.0 +python_dateutil >= 2.8.2 pydantic >= 2 typing-extensions >= 4.7.1 diff --git a/setup.py b/setup.py index 6ac2486..14fc8e1 100644 --- a/setup.py +++ b/setup.py @@ -22,11 +22,11 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "conekta" -VERSION = "6.0.3" -PYTHON_REQUIRES = ">=3.7" +VERSION = "6.0.4" +PYTHON_REQUIRES = ">= 3.8" REQUIRES = [ - "urllib3 >= 1.25.3, < 2.1.0", - "python-dateutil", + "urllib3 >= 1.25.3, < 3.0.0", + "python-dateutil >= 2.8.2", "pydantic >= 2", "typing-extensions >= 4.7.1", ] diff --git a/test-requirements.txt b/test-requirements.txt index 8e6d8cb..e98555c 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,5 +1,6 @@ -pytest~=7.1.3 -pytest-cov>=2.8.1 -pytest-randomly>=3.12.0 -mypy>=1.4.1 -types-python-dateutil>=2.8.19 +pytest >= 7.2.1 +pytest-cov >= 2.8.1 +tox >= 3.9.0 +flake8 >= 4.0.0 +types-python-dateutil >= 2.8.19.14 +mypy >= 1.5