From 3c694ddf374eb174b09d37caa8d61e15d1c7145d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Ag=C3=BCera?= Date: Fri, 3 Oct 2025 16:02:16 -0300 Subject: [PATCH 1/2] chore: [AI-474] - changed version of 7.0.5 to 7.0.6 --- README.md | 2 +- VERSION | 2 +- conekta/__init__.py | 2 +- conekta/api_client.py | 4 ++-- conekta/configuration.py | 2 +- config-python.json | 4 ++-- pyproject.toml | 2 +- setup.py | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 5d3b0cb..d849df3 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.5 +- Package version: 7.0.6 - 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) diff --git a/VERSION b/VERSION index 2be8aeb..024b4b9 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -7.0.5 +7.0.6 diff --git a/conekta/__init__.py b/conekta/__init__.py index 5656156..b5bcfab 100644 --- a/conekta/__init__.py +++ b/conekta/__init__.py @@ -15,7 +15,7 @@ """ # noqa: E501 -__version__ = "7.0.5" +__version__ = "7.0.6" # import apis into sdk package from conekta.api.antifraud_api import AntifraudApi diff --git a/conekta/api_client.py b/conekta/api_client.py index 4dce5bc..5694571 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.5', + 'bindings_version': '7.0.6', '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.5' + self.user_agent = 'Conekta/v2 PythonBindings/7.0.6' 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 20f3087..e2a3ba5 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.5".\ + "SDK Package Version: 7.0.6".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/config-python.json b/config-python.json index a30206f..6d0165c 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.5", + "packageVersion": "7.0.6", "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.5", + "httpUserAgent": "Conekta/v2 PythonBindings/7.0.6", "files": { "/local/AUTHORS.md" : {}, "/local/CODE_OF_CONDUCT.md": {}, diff --git a/pyproject.toml b/pyproject.toml index 9a0b6e5..0170f4d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "conekta" -version = "7.0.5" +version = "7.0.6" description = "Conekta API" authors = ["Engineering Conekta "] license = "MIT-LICENSE" diff --git a/setup.py b/setup.py index e3be426..0b55d08 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "conekta" -VERSION = "7.0.5" +VERSION = "7.0.6" PYTHON_REQUIRES = ">= 3.8" REQUIRES = [ "urllib3 >= 1.25.3, < 3.0.0", From f2c58e59112d8cb2afc228086a0af125dd63460a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Ag=C3=BCera?= Date: Fri, 3 Oct 2025 16:04:12 -0300 Subject: [PATCH 2/2] feat: [AI-474] - added the plan_ids field to Checkout and remove it from CheckoutOrderTemplate, updating the corresponding documentation --- conekta/models/checkout.py | 4 +++- conekta/models/checkout_order_template.py | 6 ++---- docs/Checkout.md | 1 + docs/CheckoutOrderTemplate.md | 1 - 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/conekta/models/checkout.py b/conekta/models/checkout.py index 3a46174..1a587c0 100644 --- a/conekta/models/checkout.py +++ b/conekta/models/checkout.py @@ -36,11 +36,12 @@ class Checkout(BaseModel): 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.") + plan_ids: Optional[List[StrictStr]] = Field(default=None, description="It is a list of plan IDs that will be associated with the order.") order_template: CheckoutOrderTemplate 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", "three_ds_mode", "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", "plan_ids", "order_template", "payments_limit_count", "recurrent", "type"] model_config = ConfigDict( populate_by_name=True, @@ -114,6 +115,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "name": obj.get("name"), "needs_shipping_contact": obj.get("needs_shipping_contact"), "on_demand_enabled": obj.get("on_demand_enabled"), + "plan_ids": obj.get("plan_ids"), "order_template": CheckoutOrderTemplate.from_dict(obj["order_template"]) if obj.get("order_template") is not None else None, "payments_limit_count": obj.get("payments_limit_count"), "recurrent": obj.get("recurrent"), diff --git a/conekta/models/checkout_order_template.py b/conekta/models/checkout_order_template.py index ebe2a7d..61fcd23 100644 --- a/conekta/models/checkout_order_template.py +++ b/conekta/models/checkout_order_template.py @@ -18,7 +18,7 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictStr +from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from conekta.models.checkout_order_template_customer_info import CheckoutOrderTemplateCustomerInfo @@ -33,9 +33,8 @@ class CheckoutOrderTemplate(BaseModel): currency: Annotated[str, Field(strict=True, max_length=3)] = Field(description="It is the currency in which the order will be created. It must be a valid ISO 4217 currency code.") customer_info: Optional[CheckoutOrderTemplateCustomerInfo] = None line_items: List[Product] = Field(description="They are the products to buy. Each contains the \"unit price\" and \"quantity\" parameters that are used to calculate the total amount of the order.") - plan_ids: Optional[List[StrictStr]] = Field(default=None, description="It is a list of plan IDs that will be associated with the order.") metadata: Optional[Dict[str, Any]] = Field(default=None, description="It is a set of key-value pairs that you can attach to the order. It can be used to store additional information about the order in a structured format.") - __properties: ClassVar[List[str]] = ["currency", "customer_info", "line_items", "plan_ids", "metadata"] + __properties: ClassVar[List[str]] = ["currency", "customer_info", "line_items", "metadata"] model_config = ConfigDict( populate_by_name=True, @@ -101,7 +100,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "currency": obj.get("currency"), "customer_info": CheckoutOrderTemplateCustomerInfo.from_dict(obj["customer_info"]) if obj.get("customer_info") is not None else None, "line_items": [Product.from_dict(_item) for _item in obj["line_items"]] if obj.get("line_items") is not None else None, - "plan_ids": obj.get("plan_ids"), "metadata": obj.get("metadata") }) return _obj diff --git a/docs/Checkout.md b/docs/Checkout.md index ec557ec..228e716 100644 --- a/docs/Checkout.md +++ b/docs/Checkout.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **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] +**plan_ids** | **List[str]** | It is a list of plan IDs that will be associated with the order. | [optional] **order_template** | [**CheckoutOrderTemplate**](CheckoutOrderTemplate.md) | | **payments_limit_count** | **int** | It is the number of payments that can be made through the link. | [optional] **recurrent** | **bool** | false: single use. true: multiple payments | diff --git a/docs/CheckoutOrderTemplate.md b/docs/CheckoutOrderTemplate.md index 7cc2dc7..7b84fe4 100644 --- a/docs/CheckoutOrderTemplate.md +++ b/docs/CheckoutOrderTemplate.md @@ -9,7 +9,6 @@ Name | Type | Description | Notes **currency** | **str** | It is the currency in which the order will be created. It must be a valid ISO 4217 currency code. | **customer_info** | [**CheckoutOrderTemplateCustomerInfo**](CheckoutOrderTemplateCustomerInfo.md) | | [optional] **line_items** | [**List[Product]**](Product.md) | They are the products to buy. Each contains the \"unit price\" and \"quantity\" parameters that are used to calculate the total amount of the order. | -**plan_ids** | **List[str]** | It is a list of plan IDs that will be associated with the order. | [optional] **metadata** | **Dict[str, object]** | It is a set of key-value pairs that you can attach to the order. It can be used to store additional information about the order in a structured format. | [optional] ## Example