diff --git a/README.md b/README.md
index f58c369..5d3b0cb 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@ Conekta sdk
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
- API version: 2.2.0
-- Package version: 7.0.3
+- Package version: 7.0.5
- 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)
@@ -115,6 +115,7 @@ Class | Method | HTTP request | Description
*CompaniesApi* | [**get_companies**](docs/CompaniesApi.md#get_companies) | **GET** /companies | Get List of Companies
*CompaniesApi* | [**get_company**](docs/CompaniesApi.md#get_company) | **GET** /companies/{id} | Get Company
*CompaniesApi* | [**get_company_documents**](docs/CompaniesApi.md#get_company_documents) | **GET** /companies/{company_id}/documents | Get Company Documents
+*CompaniesApi* | [**get_current_company**](docs/CompaniesApi.md#get_current_company) | **GET** /companies/current | Get Current Company
*CompaniesApi* | [**update_company_document**](docs/CompaniesApi.md#update_company_document) | **PATCH** /companies/{company_id}/document | Update Company Document
*CompaniesApi* | [**upload_company_document**](docs/CompaniesApi.md#upload_company_document) | **POST** /companies/{company_id}/document | Upload Company Document
*CustomersApi* | [**create_customer**](docs/CustomersApi.md#create_customer) | **POST** /customers | Create customer
diff --git a/VERSION b/VERSION
index a50da18..2be8aeb 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-7.0.3
+7.0.5
diff --git a/conekta/__init__.py b/conekta/__init__.py
index e36c1a2..5656156 100644
--- a/conekta/__init__.py
+++ b/conekta/__init__.py
@@ -15,7 +15,7 @@
""" # noqa: E501
-__version__ = "7.0.3"
+__version__ = "7.0.5"
# import apis into sdk package
from conekta.api.antifraud_api import AntifraudApi
diff --git a/conekta/api/companies_api.py b/conekta/api/companies_api.py
index 0486db9..d27e52f 100644
--- a/conekta/api/companies_api.py
+++ b/conekta/api/companies_api.py
@@ -1226,6 +1226,273 @@ def _get_company_documents_serialize(
+ @validate_call
+ def get_current_company(
+ self,
+ accept_language: Annotated[Optional[StrictStr], Field(description="Use for knowing which language to use")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> CompanyResponse:
+ """Get Current Company
+
+ Retrieves information about the currently authenticated company. This endpoint returns the same data as the standard company endpoint but automatically uses the current company's context.
+
+ :param accept_language: Use for knowing which language to use
+ :type accept_language: str
+ :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
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_current_company_serialize(
+ accept_language=accept_language,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CompanyResponse",
+ '401': "Error",
+ '500': "Error",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_current_company_with_http_info(
+ self,
+ accept_language: Annotated[Optional[StrictStr], Field(description="Use for knowing which language to use")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[CompanyResponse]:
+ """Get Current Company
+
+ Retrieves information about the currently authenticated company. This endpoint returns the same data as the standard company endpoint but automatically uses the current company's context.
+
+ :param accept_language: Use for knowing which language to use
+ :type accept_language: str
+ :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
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_current_company_serialize(
+ accept_language=accept_language,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CompanyResponse",
+ '401': "Error",
+ '500': "Error",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_current_company_without_preload_content(
+ self,
+ accept_language: Annotated[Optional[StrictStr], Field(description="Use for knowing which language to use")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get Current Company
+
+ Retrieves information about the currently authenticated company. This endpoint returns the same data as the standard company endpoint but automatically uses the current company's context.
+
+ :param accept_language: Use for knowing which language to use
+ :type accept_language: str
+ :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
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_current_company_serialize(
+ accept_language=accept_language,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CompanyResponse",
+ '401': "Error",
+ '500': "Error",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_current_company_serialize(
+ self,
+ accept_language,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _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, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ if accept_language is not None:
+ _header_params['Accept-Language'] = accept_language
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/vnd.conekta-v2.2.0+json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/companies/current',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
@validate_call
def update_company_document(
self,
diff --git a/conekta/api_client.py b/conekta/api_client.py
index ea2f96b..4dce5bc 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': '7.0.3',
+ 'bindings_version': '7.0.5',
'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/7.0.3'
+ self.user_agent = 'Conekta/v2 PythonBindings/7.0.5'
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 7a927d5..20f3087 100644
--- a/conekta/configuration.py
+++ b/conekta/configuration.py
@@ -393,7 +393,7 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 2.2.0\n"\
- "SDK Package Version: 7.0.3".\
+ "SDK Package Version: 7.0.5".\
format(env=sys.platform, pyversion=sys.version)
def get_host_settings(self):
diff --git a/conekta/models/checkout.py b/conekta/models/checkout.py
index e3bcf55..3a46174 100644
--- a/conekta/models/checkout.py
+++ b/conekta/models/checkout.py
@@ -32,7 +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.")
+ three_ds_mode: Optional[StrictStr] = Field(default=None, description="Indicates the 3DS2 mode for the order, either smart or strict. This property is only applicable when 3DS is enabled. When 3DS is disabled, this field should be null.")
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.")
@@ -84,6 +84,11 @@ def to_dict(self) -> Dict[str, Any]:
# override the default output from pydantic by calling `to_dict()` of order_template
if self.order_template:
_dict['order_template'] = self.order_template.to_dict()
+ # set to None if three_ds_mode (nullable) is None
+ # and model_fields_set contains the field
+ if self.three_ds_mode is None and "three_ds_mode" in self.model_fields_set:
+ _dict['three_ds_mode'] = None
+
# set to None if on_demand_enabled (nullable) is None
# and model_fields_set contains the field
if self.on_demand_enabled is None and "on_demand_enabled" in self.model_fields_set:
diff --git a/conekta/models/checkout_request.py b/conekta/models/checkout_request.py
index ee0b1f6..f010d8f 100644
--- a/conekta/models/checkout_request.py
+++ b/conekta/models/checkout_request.py
@@ -45,8 +45,8 @@ class CheckoutRequest(BaseModel):
def allowed_payment_methods_validate_enum(cls, value):
"""Validates the enum"""
for i in value:
- if i not in set(['cash', 'card', 'bank_transfer', 'bnpl']):
- raise ValueError("each list item must be one of ('cash', 'card', 'bank_transfer', 'bnpl')")
+ if i not in set(['cash', 'card', 'bank_transfer', 'bnpl', 'pay_by_bank']):
+ raise ValueError("each list item must be one of ('cash', 'card', 'bank_transfer', 'bnpl', 'pay_by_bank')")
return value
model_config = ConfigDict(
diff --git a/conekta/models/company_response.py b/conekta/models/company_response.py
index 713df1d..be1a2a1 100644
--- a/conekta/models/company_response.py
+++ b/conekta/models/company_response.py
@@ -18,7 +18,7 @@
import re # noqa: F401
import json
-from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from conekta.models.company_response_documents_inner import CompanyResponseDocumentsInner
from typing import Optional, Set
@@ -37,7 +37,19 @@ class CompanyResponse(BaseModel):
documents: List[CompanyResponseDocumentsInner] = Field(description="A list of documents related to the company.")
created_at: StrictInt = Field(description="Timestamp of when the company was created.")
object: StrictStr = Field(description="The type of object, typically \"company\".")
- __properties: ClassVar[List[str]] = ["id", "name", "active", "account_status", "parent_company_id", "onboarding_status", "documents", "created_at", "object"]
+ three_ds_enabled: Optional[StrictBool] = Field(default=None, description="Indicates if 3DS authentication is enabled for the company.")
+ three_ds_mode: Optional[StrictStr] = Field(default=None, description="The 3DS mode for the company, either 'smart' or 'strict'. This property is only applicable when three_ds_enabled is true. When three_ds_enabled is false, this field will be null.")
+ __properties: ClassVar[List[str]] = ["id", "name", "active", "account_status", "parent_company_id", "onboarding_status", "documents", "created_at", "object", "three_ds_enabled", "three_ds_mode"]
+
+ @field_validator('three_ds_mode')
+ def three_ds_mode_validate_enum(cls, value):
+ """Validates the enum"""
+ if value is None:
+ return value
+
+ if value not in set(['smart', 'strict']):
+ raise ValueError("must be one of enum values ('smart', 'strict')")
+ return value
model_config = ConfigDict(
populate_by_name=True,
@@ -90,6 +102,11 @@ def to_dict(self) -> Dict[str, Any]:
if self.parent_company_id is None and "parent_company_id" in self.model_fields_set:
_dict['parent_company_id'] = None
+ # set to None if three_ds_mode (nullable) is None
+ # and model_fields_set contains the field
+ if self.three_ds_mode is None and "three_ds_mode" in self.model_fields_set:
+ _dict['three_ds_mode'] = None
+
return _dict
@classmethod
@@ -110,7 +127,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"onboarding_status": obj.get("onboarding_status"),
"documents": [CompanyResponseDocumentsInner.from_dict(_item) for _item in obj["documents"]] if obj.get("documents") is not None else None,
"created_at": obj.get("created_at"),
- "object": obj.get("object")
+ "object": obj.get("object"),
+ "three_ds_enabled": obj.get("three_ds_enabled"),
+ "three_ds_mode": obj.get("three_ds_mode")
})
return _obj
diff --git a/conekta/models/order_request.py b/conekta/models/order_request.py
index 4b6aa90..36d27f1 100644
--- a/conekta/models/order_request.py
+++ b/conekta/models/order_request.py
@@ -52,7 +52,7 @@ class OrderRequest(BaseModel):
shipping_contact: Optional[CustomerShippingContacts] = None
shipping_lines: Optional[List[ShippingRequest]] = Field(default=None, description="List of [shipping costs](https://developers.conekta.com/v2.2.0/reference/orderscreateshipping). If the online store offers digital products.")
tax_lines: Optional[List[OrderTaxRequest]] = Field(default=None, description="List of [taxes](https://developers.conekta.com/v2.2.0/reference/orderscreatetaxes) that are applied to the order.")
- three_ds_mode: Optional[StrictStr] = Field(default=None, description="Indicates the 3DS2 mode for the order, either smart or strict.")
+ three_ds_mode: Optional[StrictStr] = Field(default=None, description="Indicates the 3DS2 mode for the order, either smart or strict. This property is only applicable when 3DS is enabled. When 3DS is disabled, this field should be null.")
__properties: ClassVar[List[str]] = ["charges", "checkout", "currency", "customer_info", "discount_lines", "fiscal_entity", "line_items", "metadata", "needs_shipping_contact", "pre_authorize", "processing_mode", "return_url", "shipping_contact", "shipping_lines", "tax_lines", "three_ds_mode"]
model_config = ConfigDict(
@@ -141,6 +141,11 @@ def to_dict(self) -> Dict[str, Any]:
if _item_tax_lines:
_items.append(_item_tax_lines.to_dict())
_dict['tax_lines'] = _items
+ # set to None if three_ds_mode (nullable) is None
+ # and model_fields_set contains the field
+ if self.three_ds_mode is None and "three_ds_mode" in self.model_fields_set:
+ _dict['three_ds_mode'] = None
+
return _dict
@classmethod
diff --git a/config-python.json b/config-python.json
index d237f02..a30206f 100644
--- a/config-python.json
+++ b/config-python.json
@@ -7,14 +7,14 @@
"licenseName": "MIT License",
"licenseUrl": "https://www.opensource.org/licenses/mit-license.php",
"generateSourceCodeOnly": "false",
- "packageVersion": "7.0.3",
+ "packageVersion": "7.0.5",
"packageUrl": "https://github.com/conekta/conekta-python",
"projectName": "conekta",
"templateDir": "/local/templates/python",
"hasBearerMethods" : true,
"useOneOfDiscriminatorLookup" : true,
"nonCompliantUseDiscriminatorIfCompositionFails" : false,
- "httpUserAgent": "Conekta/v2 PythonBindings/7.0.3",
+ "httpUserAgent": "Conekta/v2 PythonBindings/7.0.5",
"files": {
"/local/AUTHORS.md" : {},
"/local/CODE_OF_CONDUCT.md": {},
diff --git a/docs/Checkout.md b/docs/Checkout.md
index a4dfb3d..ec557ec 100644
--- a/docs/Checkout.md
+++ b/docs/Checkout.md
@@ -10,7 +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]
+**three_ds_mode** | **str** | Indicates the 3DS2 mode for the order, either smart or strict. This property is only applicable when 3DS is enabled. When 3DS is disabled, this field should be null. | [optional]
**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 4114f42..5e1233a 100644
--- a/docs/CompaniesApi.md
+++ b/docs/CompaniesApi.md
@@ -8,6 +8,7 @@ Method | HTTP request | Description
[**get_companies**](CompaniesApi.md#get_companies) | **GET** /companies | Get List of Companies
[**get_company**](CompaniesApi.md#get_company) | **GET** /companies/{id} | Get Company
[**get_company_documents**](CompaniesApi.md#get_company_documents) | **GET** /companies/{company_id}/documents | Get Company Documents
+[**get_current_company**](CompaniesApi.md#get_current_company) | **GET** /companies/current | Get Current Company
[**update_company_document**](CompaniesApi.md#update_company_document) | **PATCH** /companies/{company_id}/document | Update Company Document
[**upload_company_document**](CompaniesApi.md#upload_company_document) | **POST** /companies/{company_id}/document | Upload Company Document
@@ -345,6 +346,86 @@ 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_current_company**
+> CompanyResponse get_current_company(accept_language=accept_language)
+
+Get Current Company
+
+Retrieves information about the currently authenticated company. This endpoint returns the same data as the standard company endpoint but automatically uses the current company's context.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import conekta
+from conekta.models.company_response import CompanyResponse
+from conekta.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://api.conekta.io
+# See configuration.py for a list of all supported configuration parameters.
+configuration = conekta.Configuration(
+ host = "https://api.conekta.io"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = conekta.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+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)
+
+ try:
+ # Get Current Company
+ api_response = api_instance.get_current_company(accept_language=accept_language)
+ print("The response of CompaniesApi->get_current_company:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling CompaniesApi->get_current_company: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **accept_language** | **str**| Use for knowing which language to use | [optional] [default to es]
+
+### Return type
+
+[**CompanyResponse**](CompanyResponse.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/vnd.conekta-v2.2.0+json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | successful | * Date - The date and time that the response was sent
* Content-Type - The format of the response body
* Content-Length - The length of the response body in bytes
* Connection - The type of connection used to transfer the response
* Conekta-Media-Type -
|
+**401** | authentication error | - |
+**500** | internal server error | - |
+
+[[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)
+
# **update_company_document**
> CompanyDocumentResponse update_company_document(company_id, company_document_request, accept_language=accept_language)
diff --git a/docs/CompanyResponse.md b/docs/CompanyResponse.md
index a5cfb43..9dbe7b0 100644
--- a/docs/CompanyResponse.md
+++ b/docs/CompanyResponse.md
@@ -14,6 +14,8 @@ Name | Type | Description | Notes
**documents** | [**List[CompanyResponseDocumentsInner]**](CompanyResponseDocumentsInner.md) | A list of documents related to the company. |
**created_at** | **int** | Timestamp of when the company was created. |
**object** | **str** | The type of object, typically \"company\". |
+**three_ds_enabled** | **bool** | Indicates if 3DS authentication is enabled for the company. | [optional]
+**three_ds_mode** | **str** | The 3DS mode for the company, either 'smart' or 'strict'. This property is only applicable when three_ds_enabled is true. When three_ds_enabled is false, this field will be null. | [optional]
## Example
diff --git a/docs/OrderRequest.md b/docs/OrderRequest.md
index f217919..f0f2cc2 100644
--- a/docs/OrderRequest.md
+++ b/docs/OrderRequest.md
@@ -21,7 +21,7 @@ Name | Type | Description | Notes
**shipping_contact** | [**CustomerShippingContacts**](CustomerShippingContacts.md) | | [optional]
**shipping_lines** | [**List[ShippingRequest]**](ShippingRequest.md) | List of [shipping costs](https://developers.conekta.com/v2.2.0/reference/orderscreateshipping). If the online store offers digital products. | [optional]
**tax_lines** | [**List[OrderTaxRequest]**](OrderTaxRequest.md) | List of [taxes](https://developers.conekta.com/v2.2.0/reference/orderscreatetaxes) that are applied to the order. | [optional]
-**three_ds_mode** | **str** | Indicates the 3DS2 mode for the order, either smart or strict. | [optional]
+**three_ds_mode** | **str** | Indicates the 3DS2 mode for the order, either smart or strict. This property is only applicable when 3DS is enabled. When 3DS is disabled, this field should be null. | [optional]
## Example
diff --git a/pyproject.toml b/pyproject.toml
index ca7281e..9a0b6e5 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "conekta"
-version = "7.0.3"
+version = "7.0.5"
description = "Conekta API"
authors = ["Engineering Conekta "]
license = "MIT-LICENSE"
diff --git a/setup.py b/setup.py
index ee81d4d..e3be426 100644
--- a/setup.py
+++ b/setup.py
@@ -22,7 +22,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
NAME = "conekta"
-VERSION = "7.0.3"
+VERSION = "7.0.5"
PYTHON_REQUIRES = ">= 3.8"
REQUIRES = [
"urllib3 >= 1.25.3, < 3.0.0",
diff --git a/test/test_companies_api.py b/test/test_companies_api.py
index 6498a78..6f4799e 100644
--- a/test/test_companies_api.py
+++ b/test/test_companies_api.py
@@ -55,6 +55,13 @@ def test_get_company_documents(self) -> None:
"""
pass
+ def test_get_current_company(self) -> None:
+ """Test case for get_current_company
+
+ Get Current Company
+ """
+ pass
+
def test_update_company_document(self) -> None:
"""Test case for update_company_document