Skip to content

Commit 38d9e02

Browse files
author
Martín Agüera
authored
[AI-474] I regenerated the SDK (#92)
* chore: [AI-474] - changed version of 7.0.5 to 7.0.6 * feat: [AI-474] - added the plan_ids field to Checkout and remove it from CheckoutOrderTemplate, updating the corresponding documentation
1 parent 47c9e32 commit 38d9e02

12 files changed

Lines changed: 16 additions & 16 deletions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Conekta sdk
44
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

66
- API version: 2.2.0
7-
- Package version: 7.0.5
7+
- Package version: 7.0.6
88
- Generator version: 7.9.0
99
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1010
For more information, please visit [https://github.com/conekta/openapi/issues](https://github.com/conekta/openapi/issues)

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.0.5
1+
7.0.6

conekta/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
""" # noqa: E501
1616

1717

18-
__version__ = "7.0.5"
18+
__version__ = "7.0.6"
1919

2020
# import apis into sdk package
2121
from conekta.api.antifraud_api import AntifraudApi

conekta/api_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class ApiClient:
7474
'lang': 'python',
7575
'lang_version': platform.python_version(),
7676
'publisher': 'conekta',
77-
'bindings_version': '7.0.5',
77+
'bindings_version': '7.0.6',
7878
'uname': platform.uname()
7979
}
8080
_pool = None
@@ -97,7 +97,7 @@ def __init__(
9797
self.default_headers[header_name] = header_value
9898
self.cookie = cookie
9999
# Set default User-Agent.
100-
self.user_agent = 'Conekta/v2 PythonBindings/7.0.5'
100+
self.user_agent = 'Conekta/v2 PythonBindings/7.0.6'
101101
self.conekta_user_agent = json.dumps(self.data)
102102
self.client_side_validation = configuration.client_side_validation
103103

conekta/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def to_debug_report(self):
393393
"OS: {env}\n"\
394394
"Python Version: {pyversion}\n"\
395395
"Version of the API: 2.2.0\n"\
396-
"SDK Package Version: 7.0.5".\
396+
"SDK Package Version: 7.0.6".\
397397
format(env=sys.platform, pyversion=sys.version)
398398

399399
def get_host_settings(self):

conekta/models/checkout.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,12 @@ class Checkout(BaseModel):
3636
name: StrictStr = Field(description="Reason for charge")
3737
needs_shipping_contact: Optional[StrictBool] = Field(default=None, description="This flag allows you to fill in the shipping information at checkout.")
3838
on_demand_enabled: Optional[StrictBool] = Field(default=None, description="This flag allows you to specify if the link will be on demand.")
39+
plan_ids: Optional[List[StrictStr]] = Field(default=None, description="It is a list of plan IDs that will be associated with the order.")
3940
order_template: CheckoutOrderTemplate
4041
payments_limit_count: Optional[StrictInt] = Field(default=None, description="It is the number of payments that can be made through the link.")
4142
recurrent: StrictBool = Field(description="false: single use. true: multiple payments")
4243
type: StrictStr = Field(description="It is the type of link that will be created. It must be a valid type.")
43-
__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"]
44+
__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"]
4445

4546
model_config = ConfigDict(
4647
populate_by_name=True,
@@ -114,6 +115,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
114115
"name": obj.get("name"),
115116
"needs_shipping_contact": obj.get("needs_shipping_contact"),
116117
"on_demand_enabled": obj.get("on_demand_enabled"),
118+
"plan_ids": obj.get("plan_ids"),
117119
"order_template": CheckoutOrderTemplate.from_dict(obj["order_template"]) if obj.get("order_template") is not None else None,
118120
"payments_limit_count": obj.get("payments_limit_count"),
119121
"recurrent": obj.get("recurrent"),

conekta/models/checkout_order_template.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import re # noqa: F401
1919
import json
2020

21-
from pydantic import BaseModel, ConfigDict, Field, StrictStr
21+
from pydantic import BaseModel, ConfigDict, Field
2222
from typing import Any, ClassVar, Dict, List, Optional
2323
from typing_extensions import Annotated
2424
from conekta.models.checkout_order_template_customer_info import CheckoutOrderTemplateCustomerInfo
@@ -33,9 +33,8 @@ class CheckoutOrderTemplate(BaseModel):
3333
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.")
3434
customer_info: Optional[CheckoutOrderTemplateCustomerInfo] = None
3535
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.")
36-
plan_ids: Optional[List[StrictStr]] = Field(default=None, description="It is a list of plan IDs that will be associated with the order.")
3736
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.")
38-
__properties: ClassVar[List[str]] = ["currency", "customer_info", "line_items", "plan_ids", "metadata"]
37+
__properties: ClassVar[List[str]] = ["currency", "customer_info", "line_items", "metadata"]
3938

4039
model_config = ConfigDict(
4140
populate_by_name=True,
@@ -101,7 +100,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
101100
"currency": obj.get("currency"),
102101
"customer_info": CheckoutOrderTemplateCustomerInfo.from_dict(obj["customer_info"]) if obj.get("customer_info") is not None else None,
103102
"line_items": [Product.from_dict(_item) for _item in obj["line_items"]] if obj.get("line_items") is not None else None,
104-
"plan_ids": obj.get("plan_ids"),
105103
"metadata": obj.get("metadata")
106104
})
107105
return _obj

config-python.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
"licenseName": "MIT License",
88
"licenseUrl": "https://www.opensource.org/licenses/mit-license.php",
99
"generateSourceCodeOnly": "false",
10-
"packageVersion": "7.0.5",
10+
"packageVersion": "7.0.6",
1111
"packageUrl": "https://github.com/conekta/conekta-python",
1212
"projectName": "conekta",
1313
"templateDir": "/local/templates/python",
1414
"hasBearerMethods" : true,
1515
"useOneOfDiscriminatorLookup" : true,
1616
"nonCompliantUseDiscriminatorIfCompositionFails" : false,
17-
"httpUserAgent": "Conekta/v2 PythonBindings/7.0.5",
17+
"httpUserAgent": "Conekta/v2 PythonBindings/7.0.6",
1818
"files": {
1919
"/local/AUTHORS.md" : {},
2020
"/local/CODE_OF_CONDUCT.md": {},

docs/Checkout.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
1414
**name** | **str** | Reason for charge |
1515
**needs_shipping_contact** | **bool** | This flag allows you to fill in the shipping information at checkout. | [optional]
1616
**on_demand_enabled** | **bool** | This flag allows you to specify if the link will be on demand. | [optional]
17+
**plan_ids** | **List[str]** | It is a list of plan IDs that will be associated with the order. | [optional]
1718
**order_template** | [**CheckoutOrderTemplate**](CheckoutOrderTemplate.md) | |
1819
**payments_limit_count** | **int** | It is the number of payments that can be made through the link. | [optional]
1920
**recurrent** | **bool** | false: single use. true: multiple payments |

docs/CheckoutOrderTemplate.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ Name | Type | Description | Notes
99
**currency** | **str** | It is the currency in which the order will be created. It must be a valid ISO 4217 currency code. |
1010
**customer_info** | [**CheckoutOrderTemplateCustomerInfo**](CheckoutOrderTemplateCustomerInfo.md) | | [optional]
1111
**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. |
12-
**plan_ids** | **List[str]** | It is a list of plan IDs that will be associated with the order. | [optional]
1312
**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]
1413

1514
## Example

0 commit comments

Comments
 (0)