Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 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.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)
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.0.5
7.0.6
2 changes: 1 addition & 1 deletion conekta/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions conekta/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion conekta/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
4 changes: 3 additions & 1 deletion conekta/models/checkout.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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"),
Expand Down
6 changes: 2 additions & 4 deletions conekta/models/checkout_order_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions config-python.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {},
Expand Down
1 change: 1 addition & 0 deletions docs/Checkout.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
1 change: 0 additions & 1 deletion docs/CheckoutOrderTemplate.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "conekta"
version = "7.0.5"
version = "7.0.6"
description = "Conekta API"
authors = ["Engineering Conekta <engineering@conekta.com>"]
license = "MIT-LICENSE"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down