Skip to content

Commit

Permalink
Updates (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
ezerozen authored Jul 7, 2023
1 parent 1590eee commit 2fee65f
Show file tree
Hide file tree
Showing 71 changed files with 1,898 additions and 139 deletions.
15 changes: 15 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ conekta/__init__.py
conekta/api/__init__.py
conekta/api/antifraud_api.py
conekta/api/api_keys_api.py
conekta/api/balances_api.py
conekta/api/charges_api.py
conekta/api/companies_api.py
conekta/api/customers_api.py
Expand Down Expand Up @@ -37,7 +38,10 @@ conekta/models/api_key_create_response.py
conekta/models/api_key_create_response_all_of.py
conekta/models/api_key_request.py
conekta/models/api_key_response.py
conekta/models/api_key_response_on_delete.py
conekta/models/api_key_update_request.py
conekta/models/balance_common_field.py
conekta/models/balance_response.py
conekta/models/blacklist_rule_response.py
conekta/models/charge_data_payment_method_bank_transfer_response.py
conekta/models/charge_data_payment_method_card_response.py
Expand Down Expand Up @@ -123,6 +127,8 @@ conekta/models/get_companies_response_all_of.py
conekta/models/get_customer_payment_method_data_response.py
conekta/models/get_events_response.py
conekta/models/get_events_response_all_of.py
conekta/models/get_order_discount_lines_response.py
conekta/models/get_order_discount_lines_response_all_of.py
conekta/models/get_orders_response.py
conekta/models/get_payment_method_response.py
conekta/models/get_payment_method_response_all_of.py
Expand Down Expand Up @@ -161,6 +167,7 @@ conekta/models/order_response_shipping_contact.py
conekta/models/order_response_shipping_contact_all_of.py
conekta/models/order_tax_request.py
conekta/models/order_update_request.py
conekta/models/order_update_request_customer_info.py
conekta/models/orders_response.py
conekta/models/page.py
conekta/models/pagination.py
Expand Down Expand Up @@ -235,8 +242,12 @@ docs/ApiKeyCreateResponse.md
docs/ApiKeyCreateResponseAllOf.md
docs/ApiKeyRequest.md
docs/ApiKeyResponse.md
docs/ApiKeyResponseOnDelete.md
docs/ApiKeyUpdateRequest.md
docs/ApiKeysApi.md
docs/BalanceCommonField.md
docs/BalanceResponse.md
docs/BalancesApi.md
docs/BlacklistRuleResponse.md
docs/ChargeDataPaymentMethodBankTransferResponse.md
docs/ChargeDataPaymentMethodCardResponse.md
Expand Down Expand Up @@ -327,6 +338,8 @@ docs/GetCompaniesResponseAllOf.md
docs/GetCustomerPaymentMethodDataResponse.md
docs/GetEventsResponse.md
docs/GetEventsResponseAllOf.md
docs/GetOrderDiscountLinesResponse.md
docs/GetOrderDiscountLinesResponseAllOf.md
docs/GetOrdersResponse.md
docs/GetPaymentMethodResponse.md
docs/GetPaymentMethodResponseAllOf.md
Expand Down Expand Up @@ -366,6 +379,7 @@ docs/OrderResponseShippingContact.md
docs/OrderResponseShippingContactAllOf.md
docs/OrderTaxRequest.md
docs/OrderUpdateRequest.md
docs/OrderUpdateRequestCustomerInfo.md
docs/OrdersApi.md
docs/OrdersResponse.md
docs/Page.md
Expand Down Expand Up @@ -454,4 +468,5 @@ setup.cfg
setup.py
test-requirements.txt
test/__init__.py
test/test_balances_api.py
tox.ini
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ 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.0
- Package version: 6.0.1
- Build package: org.openapitools.codegen.languages.PythonNextgenClientCodegen
For more information, please visit [https://github.com/conekta/openapi/issues](https://github.com/conekta/openapi/issues)

Expand Down Expand Up @@ -105,6 +105,7 @@ Class | Method | HTTP request | Description
*ApiKeysApi* | [**get_api_key**](docs/ApiKeysApi.md#get_api_key) | **GET** /api_keys/{id} | Get Api Key
*ApiKeysApi* | [**get_api_keys**](docs/ApiKeysApi.md#get_api_keys) | **GET** /api_keys | Get list of Api Keys
*ApiKeysApi* | [**update_api_key**](docs/ApiKeysApi.md#update_api_key) | **PUT** /api_keys/{id} | Update Api Key
*BalancesApi* | [**get_balance**](docs/BalancesApi.md#get_balance) | **GET** /balances | Get a company's balance
*ChargesApi* | [**get_charges**](docs/ChargesApi.md#get_charges) | **GET** /charges | Get A List of Charges
*ChargesApi* | [**orders_create_charge**](docs/ChargesApi.md#orders_create_charge) | **POST** /orders/{id}/charges | Create charge
*CompaniesApi* | [**get_companies**](docs/CompaniesApi.md#get_companies) | **GET** /companies | Get List of Companies
Expand All @@ -118,6 +119,8 @@ Class | Method | HTTP request | Description
*CustomersApi* | [**update_customer_fiscal_entities**](docs/CustomersApi.md#update_customer_fiscal_entities) | **PUT** /customers/{id}/fiscal_entities/{fiscal_entities_id} | Update Fiscal Entity
*DiscountsApi* | [**orders_create_discount_line**](docs/DiscountsApi.md#orders_create_discount_line) | **POST** /orders/{id}/discount_lines | Create Discount
*DiscountsApi* | [**orders_delete_discount_lines**](docs/DiscountsApi.md#orders_delete_discount_lines) | **DELETE** /orders/{id}/discount_lines/{discount_lines_id} | Delete Discount
*DiscountsApi* | [**orders_get_discount_line**](docs/DiscountsApi.md#orders_get_discount_line) | **GET** /orders/{id}/discount_lines/{discount_lines_id} | Get Discount
*DiscountsApi* | [**orders_get_discount_lines**](docs/DiscountsApi.md#orders_get_discount_lines) | **GET** /orders/{id}/discount_lines | Get a List of Discount
*DiscountsApi* | [**orders_update_discount_lines**](docs/DiscountsApi.md#orders_update_discount_lines) | **PUT** /orders/{id}/discount_lines/{discount_lines_id} | Update Discount
*EventsApi* | [**get_event**](docs/EventsApi.md#get_event) | **GET** /events/{id} | Get Event
*EventsApi* | [**get_events**](docs/EventsApi.md#get_events) | **GET** /events | Get list of Events
Expand Down Expand Up @@ -190,7 +193,10 @@ Class | Method | HTTP request | Description
- [ApiKeyCreateResponseAllOf](docs/ApiKeyCreateResponseAllOf.md)
- [ApiKeyRequest](docs/ApiKeyRequest.md)
- [ApiKeyResponse](docs/ApiKeyResponse.md)
- [ApiKeyResponseOnDelete](docs/ApiKeyResponseOnDelete.md)
- [ApiKeyUpdateRequest](docs/ApiKeyUpdateRequest.md)
- [BalanceCommonField](docs/BalanceCommonField.md)
- [BalanceResponse](docs/BalanceResponse.md)
- [BlacklistRuleResponse](docs/BlacklistRuleResponse.md)
- [ChargeDataPaymentMethodBankTransferResponse](docs/ChargeDataPaymentMethodBankTransferResponse.md)
- [ChargeDataPaymentMethodCardResponse](docs/ChargeDataPaymentMethodCardResponse.md)
Expand Down Expand Up @@ -276,6 +282,8 @@ Class | Method | HTTP request | Description
- [GetCustomerPaymentMethodDataResponse](docs/GetCustomerPaymentMethodDataResponse.md)
- [GetEventsResponse](docs/GetEventsResponse.md)
- [GetEventsResponseAllOf](docs/GetEventsResponseAllOf.md)
- [GetOrderDiscountLinesResponse](docs/GetOrderDiscountLinesResponse.md)
- [GetOrderDiscountLinesResponseAllOf](docs/GetOrderDiscountLinesResponseAllOf.md)
- [GetOrdersResponse](docs/GetOrdersResponse.md)
- [GetPaymentMethodResponse](docs/GetPaymentMethodResponse.md)
- [GetPaymentMethodResponseAllOf](docs/GetPaymentMethodResponseAllOf.md)
Expand Down Expand Up @@ -314,6 +322,7 @@ Class | Method | HTTP request | Description
- [OrderResponseShippingContactAllOf](docs/OrderResponseShippingContactAllOf.md)
- [OrderTaxRequest](docs/OrderTaxRequest.md)
- [OrderUpdateRequest](docs/OrderUpdateRequest.md)
- [OrderUpdateRequestCustomerInfo](docs/OrderUpdateRequestCustomerInfo.md)
- [OrdersResponse](docs/OrdersResponse.md)
- [Page](docs/Page.md)
- [Pagination](docs/Pagination.md)
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.0.0
6.0.1
9 changes: 8 additions & 1 deletion conekta/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@
"""


__version__ = "6.0.0"
__version__ = "6.0.1"

# import apis into sdk package
from conekta.api.antifraud_api import AntifraudApi
from conekta.api.api_keys_api import ApiKeysApi
from conekta.api.balances_api import BalancesApi
from conekta.api.charges_api import ChargesApi
from conekta.api.companies_api import CompaniesApi
from conekta.api.customers_api import CustomersApi
Expand Down Expand Up @@ -57,7 +58,10 @@
from conekta.models.api_key_create_response_all_of import ApiKeyCreateResponseAllOf
from conekta.models.api_key_request import ApiKeyRequest
from conekta.models.api_key_response import ApiKeyResponse
from conekta.models.api_key_response_on_delete import ApiKeyResponseOnDelete
from conekta.models.api_key_update_request import ApiKeyUpdateRequest
from conekta.models.balance_common_field import BalanceCommonField
from conekta.models.balance_response import BalanceResponse
from conekta.models.blacklist_rule_response import BlacklistRuleResponse
from conekta.models.charge_data_payment_method_bank_transfer_response import ChargeDataPaymentMethodBankTransferResponse
from conekta.models.charge_data_payment_method_card_response import ChargeDataPaymentMethodCardResponse
Expand Down Expand Up @@ -143,6 +147,8 @@
from conekta.models.get_customer_payment_method_data_response import GetCustomerPaymentMethodDataResponse
from conekta.models.get_events_response import GetEventsResponse
from conekta.models.get_events_response_all_of import GetEventsResponseAllOf
from conekta.models.get_order_discount_lines_response import GetOrderDiscountLinesResponse
from conekta.models.get_order_discount_lines_response_all_of import GetOrderDiscountLinesResponseAllOf
from conekta.models.get_orders_response import GetOrdersResponse
from conekta.models.get_payment_method_response import GetPaymentMethodResponse
from conekta.models.get_payment_method_response_all_of import GetPaymentMethodResponseAllOf
Expand Down Expand Up @@ -181,6 +187,7 @@
from conekta.models.order_response_shipping_contact_all_of import OrderResponseShippingContactAllOf
from conekta.models.order_tax_request import OrderTaxRequest
from conekta.models.order_update_request import OrderUpdateRequest
from conekta.models.order_update_request_customer_info import OrderUpdateRequestCustomerInfo
from conekta.models.orders_response import OrdersResponse
from conekta.models.page import Page
from conekta.models.pagination import Pagination
Expand Down
1 change: 1 addition & 0 deletions conekta/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# import apis into api package
from conekta.api.antifraud_api import AntifraudApi
from conekta.api.api_keys_api import ApiKeysApi
from conekta.api.balances_api import BalancesApi
from conekta.api.charges_api import ChargesApi
from conekta.api.companies_api import CompaniesApi
from conekta.api.customers_api import CustomersApi
Expand Down
28 changes: 14 additions & 14 deletions conekta/api/api_keys_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,14 +525,14 @@ def get_api_key_with_http_info(self, id : Annotated[StrictStr, Field(..., descri
_request_auth=_params.get('_request_auth'))

@validate_arguments
def get_api_keys(self, accept_language : Annotated[Optional[StrictStr], Field(description="Use for knowing which language to use")] = None, x_child_company_id : Annotated[Optional[StrictStr], Field(description="In the case of a holding company, the company id of the child company to which will process the request.")] = None, limit : Annotated[Optional[conint(strict=True, le=250, ge=1)], Field(description="The numbers of items to return, the maximum value is 250")] = None, 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, **kwargs) -> GetApiKeysResponse: # noqa: E501
def get_api_keys(self, accept_language : Annotated[Optional[StrictStr], Field(description="Use for knowing which language to use")] = None, x_child_company_id : Annotated[Optional[StrictStr], Field(description="In the case of a holding company, the company id of the child company to which will process the request.")] = None, limit : Annotated[Optional[conint(strict=True, le=250, ge=1)], Field(description="The numbers of items to return, the maximum value is 250")] = None, next : Annotated[Optional[StrictStr], Field(description="next page")] = None, previous : Annotated[Optional[StrictStr], Field(description="previous page")] = None, search : Annotated[Optional[StrictStr], Field(description="General search, e.g. by id, description, prefix")] = None, **kwargs) -> GetApiKeysResponse: # noqa: E501
"""Get list of Api Keys # noqa: E501
Consume the list of api keys you have # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_api_keys(accept_language, x_child_company_id, limit, search, next, previous, async_req=True)
>>> thread = api.get_api_keys(accept_language, x_child_company_id, limit, next, previous, search, async_req=True)
>>> result = thread.get()
:param accept_language: Use for knowing which language to use
Expand All @@ -541,12 +541,12 @@ def get_api_keys(self, accept_language : Annotated[Optional[StrictStr], Field(de
:type x_child_company_id: str
:param limit: The numbers of items to return, the maximum value is 250
:type limit: int
:param search: General order search, e.g. by mail, reference etc.
:type search: str
:param next: next page
:type next: str
:param previous: previous page
:type previous: str
:param search: General search, e.g. by id, description, prefix
:type search: str
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _request_timeout: timeout setting for this request. If one
Expand All @@ -561,17 +561,17 @@ def get_api_keys(self, accept_language : Annotated[Optional[StrictStr], Field(de
kwargs['_return_http_data_only'] = True
if '_preload_content' in kwargs:
raise ValueError("Error! Please call the get_api_keys_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
return self.get_api_keys_with_http_info(accept_language, x_child_company_id, limit, search, next, previous, **kwargs) # noqa: E501
return self.get_api_keys_with_http_info(accept_language, x_child_company_id, limit, next, previous, search, **kwargs) # noqa: E501

@validate_arguments
def get_api_keys_with_http_info(self, accept_language : Annotated[Optional[StrictStr], Field(description="Use for knowing which language to use")] = None, x_child_company_id : Annotated[Optional[StrictStr], Field(description="In the case of a holding company, the company id of the child company to which will process the request.")] = None, limit : Annotated[Optional[conint(strict=True, le=250, ge=1)], Field(description="The numbers of items to return, the maximum value is 250")] = None, 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, **kwargs) -> ApiResponse: # noqa: E501
def get_api_keys_with_http_info(self, accept_language : Annotated[Optional[StrictStr], Field(description="Use for knowing which language to use")] = None, x_child_company_id : Annotated[Optional[StrictStr], Field(description="In the case of a holding company, the company id of the child company to which will process the request.")] = None, limit : Annotated[Optional[conint(strict=True, le=250, ge=1)], Field(description="The numbers of items to return, the maximum value is 250")] = None, next : Annotated[Optional[StrictStr], Field(description="next page")] = None, previous : Annotated[Optional[StrictStr], Field(description="previous page")] = None, search : Annotated[Optional[StrictStr], Field(description="General search, e.g. by id, description, prefix")] = None, **kwargs) -> ApiResponse: # noqa: E501
"""Get list of Api Keys # noqa: E501
Consume the list of api keys you have # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_api_keys_with_http_info(accept_language, x_child_company_id, limit, search, next, previous, async_req=True)
>>> thread = api.get_api_keys_with_http_info(accept_language, x_child_company_id, limit, next, previous, search, async_req=True)
>>> result = thread.get()
:param accept_language: Use for knowing which language to use
Expand All @@ -580,12 +580,12 @@ def get_api_keys_with_http_info(self, accept_language : Annotated[Optional[Stric
:type x_child_company_id: str
:param limit: The numbers of items to return, the maximum value is 250
:type limit: int
:param search: General order search, e.g. by mail, reference etc.
:type search: str
:param next: next page
:type next: str
:param previous: previous page
:type previous: str
:param search: General search, e.g. by id, description, prefix
:type search: str
:param async_req: Whether to execute the request asynchronously.
:type async_req: bool, optional
:param _preload_content: if False, the ApiResponse.data will
Expand Down Expand Up @@ -617,9 +617,9 @@ def get_api_keys_with_http_info(self, accept_language : Annotated[Optional[Stric
'accept_language',
'x_child_company_id',
'limit',
'search',
'next',
'previous'
'previous',
'search'
]
_all_params.extend(
[
Expand Down Expand Up @@ -653,15 +653,15 @@ def get_api_keys_with_http_info(self, accept_language : Annotated[Optional[Stric
if _params.get('limit') is not None: # noqa: E501
_query_params.append(('limit', _params['limit']))

if _params.get('search') is not None: # noqa: E501
_query_params.append(('search', _params['search']))

if _params.get('next') is not None: # noqa: E501
_query_params.append(('next', _params['next']))

if _params.get('previous') is not None: # noqa: E501
_query_params.append(('previous', _params['previous']))

if _params.get('search') is not None: # noqa: E501
_query_params.append(('search', _params['search']))

# process the header parameters
_header_params = dict(_params.get('_headers', {}))
if _params['accept_language']:
Expand Down
Loading

0 comments on commit 2fee65f

Please sign in to comment.