Skip to content

Commit a3d2afc

Browse files
authored
Update devcontainer.json and python.yml, add new payment method request and response models, update VERSION, and update __version__ in __init__.py (#83)
- Update the image version in devcontainer.json to "mcr.microsoft.com/devcontainers/python:0-3.8" - Update the python-version matrix in python.yml to include "3.13" - Add new payment method request model file: conekta/models/payment_method_general_request.py - Add new payment method response model file: conekta/models/payment_method_token_request.py - Update the VERSION file from "7.5.0" to "7.9.0" - Update the __version__ variable in __init__.py from "6.0.3" to "6.0.4"
1 parent 38766f2 commit a3d2afc

139 files changed

Lines changed: 1933 additions & 1146 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"name": "Python 3",
55
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6-
"image": "mcr.microsoft.com/devcontainers/python:0-3.7"
6+
"image": "mcr.microsoft.com/devcontainers/python:0-3.8"
77

88
// Features to add to the dev container. More info: https://containers.dev/features.
99
// "features": {},

.github/workflows/python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
18+
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
1919
steps:
2020
- uses: actions/checkout@v3
2121
- name: Set up Python ${{ matrix.python-version }}

.openapi-generator/FILES

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,11 @@ conekta/models/payment_method_card_response.py
154154
conekta/models/payment_method_cash.py
155155
conekta/models/payment_method_cash_request.py
156156
conekta/models/payment_method_cash_response.py
157+
conekta/models/payment_method_general_request.py
157158
conekta/models/payment_method_response.py
158159
conekta/models/payment_method_spei_recurrent.py
159160
conekta/models/payment_method_spei_request.py
161+
conekta/models/payment_method_token_request.py
160162
conekta/models/payout.py
161163
conekta/models/payout_method.py
162164
conekta/models/payout_order.py
@@ -340,9 +342,11 @@ docs/PaymentMethodCardResponse.md
340342
docs/PaymentMethodCash.md
341343
docs/PaymentMethodCashRequest.md
342344
docs/PaymentMethodCashResponse.md
345+
docs/PaymentMethodGeneralRequest.md
343346
docs/PaymentMethodResponse.md
344347
docs/PaymentMethodSpeiRecurrent.md
345348
docs/PaymentMethodSpeiRequest.md
349+
docs/PaymentMethodTokenRequest.md
346350
docs/PaymentMethodsApi.md
347351
docs/Payout.md
348352
docs/PayoutMethod.md

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.5.0
1+
7.9.0

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ python:
88
rm -rf docs && \
99
rm -rf conekta/models && \
1010
docker run --rm \
11-
-v ${PWD}:/local openapitools/openapi-generator-cli:v7.5.0 generate \
11+
-v ${PWD}:/local openapitools/openapi-generator-cli:v7.9.0 generate \
1212
-i https://raw.githubusercontent.com/conekta/openapi/main/_build/api.yaml \
1313
-g python \
1414
-o /local \

README.md

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

66
- API version: 2.1.0
7-
- Package version: 6.0.3
8-
- Generator version: 7.5.0
7+
- Package version: 6.0.4
8+
- 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)
1111

@@ -313,9 +313,11 @@ Class | Method | HTTP request | Description
313313
- [PaymentMethodCash](docs/PaymentMethodCash.md)
314314
- [PaymentMethodCashRequest](docs/PaymentMethodCashRequest.md)
315315
- [PaymentMethodCashResponse](docs/PaymentMethodCashResponse.md)
316+
- [PaymentMethodGeneralRequest](docs/PaymentMethodGeneralRequest.md)
316317
- [PaymentMethodResponse](docs/PaymentMethodResponse.md)
317318
- [PaymentMethodSpeiRecurrent](docs/PaymentMethodSpeiRecurrent.md)
318319
- [PaymentMethodSpeiRequest](docs/PaymentMethodSpeiRequest.md)
320+
- [PaymentMethodTokenRequest](docs/PaymentMethodTokenRequest.md)
319321
- [Payout](docs/Payout.md)
320322
- [PayoutMethod](docs/PayoutMethod.md)
321323
- [PayoutOrder](docs/PayoutOrder.md)

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.0.3
1+
6.0.4

conekta/__init__.py

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

1717

18-
__version__ = "6.0.3"
18+
__version__ = "6.0.4"
1919

2020
# import apis into sdk package
2121
from conekta.api.antifraud_api import AntifraudApi
@@ -174,9 +174,11 @@
174174
from conekta.models.payment_method_cash import PaymentMethodCash
175175
from conekta.models.payment_method_cash_request import PaymentMethodCashRequest
176176
from conekta.models.payment_method_cash_response import PaymentMethodCashResponse
177+
from conekta.models.payment_method_general_request import PaymentMethodGeneralRequest
177178
from conekta.models.payment_method_response import PaymentMethodResponse
178179
from conekta.models.payment_method_spei_recurrent import PaymentMethodSpeiRecurrent
179180
from conekta.models.payment_method_spei_request import PaymentMethodSpeiRequest
181+
from conekta.models.payment_method_token_request import PaymentMethodTokenRequest
180182
from conekta.models.payout import Payout
181183
from conekta.models.payout_method import PayoutMethod
182184
from conekta.models.payout_order import PayoutOrder

conekta/api/antifraud_api.py

Lines changed: 54 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,9 @@ def _create_rule_blacklist_serialize(
276276
_query_params: List[Tuple[str, str]] = []
277277
_header_params: Dict[str, Optional[str]] = _headers or {}
278278
_form_params: List[Tuple[str, str]] = []
279-
_files: Dict[str, Union[str, bytes]] = {}
279+
_files: Dict[
280+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
281+
] = {}
280282
_body_params: Optional[bytes] = None
281283

282284
# process the path parameters
@@ -291,11 +293,12 @@ def _create_rule_blacklist_serialize(
291293

292294

293295
# set the HTTP header `Accept`
294-
_header_params['Accept'] = self.api_client.select_header_accept(
295-
[
296-
'application/vnd.conekta-v2.1.0+json'
297-
]
298-
)
296+
if 'Accept' not in _header_params:
297+
_header_params['Accept'] = self.api_client.select_header_accept(
298+
[
299+
'application/vnd.conekta-v2.1.0+json'
300+
]
301+
)
299302

300303
# set the HTTP header `Content-Type`
301304
if _content_type:
@@ -568,7 +571,9 @@ def _create_rule_whitelist_serialize(
568571
_query_params: List[Tuple[str, str]] = []
569572
_header_params: Dict[str, Optional[str]] = _headers or {}
570573
_form_params: List[Tuple[str, str]] = []
571-
_files: Dict[str, Union[str, bytes]] = {}
574+
_files: Dict[
575+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
576+
] = {}
572577
_body_params: Optional[bytes] = None
573578

574579
# process the path parameters
@@ -583,11 +588,12 @@ def _create_rule_whitelist_serialize(
583588

584589

585590
# set the HTTP header `Accept`
586-
_header_params['Accept'] = self.api_client.select_header_accept(
587-
[
588-
'application/vnd.conekta-v2.1.0+json'
589-
]
590-
)
591+
if 'Accept' not in _header_params:
592+
_header_params['Accept'] = self.api_client.select_header_accept(
593+
[
594+
'application/vnd.conekta-v2.1.0+json'
595+
]
596+
)
591597

592598
# set the HTTP header `Content-Type`
593599
if _content_type:
@@ -873,7 +879,9 @@ def _delete_rule_blacklist_serialize(
873879
_query_params: List[Tuple[str, str]] = []
874880
_header_params: Dict[str, Optional[str]] = _headers or {}
875881
_form_params: List[Tuple[str, str]] = []
876-
_files: Dict[str, Union[str, bytes]] = {}
882+
_files: Dict[
883+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
884+
] = {}
877885
_body_params: Optional[bytes] = None
878886

879887
# process the path parameters
@@ -890,11 +898,12 @@ def _delete_rule_blacklist_serialize(
890898

891899

892900
# set the HTTP header `Accept`
893-
_header_params['Accept'] = self.api_client.select_header_accept(
894-
[
895-
'application/vnd.conekta-v2.1.0+json'
896-
]
897-
)
901+
if 'Accept' not in _header_params:
902+
_header_params['Accept'] = self.api_client.select_header_accept(
903+
[
904+
'application/vnd.conekta-v2.1.0+json'
905+
]
906+
)
898907

899908

900909
# authentication setting
@@ -1170,7 +1179,9 @@ def _delete_rule_whitelist_serialize(
11701179
_query_params: List[Tuple[str, str]] = []
11711180
_header_params: Dict[str, Optional[str]] = _headers or {}
11721181
_form_params: List[Tuple[str, str]] = []
1173-
_files: Dict[str, Union[str, bytes]] = {}
1182+
_files: Dict[
1183+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1184+
] = {}
11741185
_body_params: Optional[bytes] = None
11751186

11761187
# process the path parameters
@@ -1187,11 +1198,12 @@ def _delete_rule_whitelist_serialize(
11871198

11881199

11891200
# set the HTTP header `Accept`
1190-
_header_params['Accept'] = self.api_client.select_header_accept(
1191-
[
1192-
'application/vnd.conekta-v2.1.0+json'
1193-
]
1194-
)
1201+
if 'Accept' not in _header_params:
1202+
_header_params['Accept'] = self.api_client.select_header_accept(
1203+
[
1204+
'application/vnd.conekta-v2.1.0+json'
1205+
]
1206+
)
11951207

11961208

11971209
# authentication setting
@@ -1438,7 +1450,9 @@ def _get_rule_blacklist_serialize(
14381450
_query_params: List[Tuple[str, str]] = []
14391451
_header_params: Dict[str, Optional[str]] = _headers or {}
14401452
_form_params: List[Tuple[str, str]] = []
1441-
_files: Dict[str, Union[str, bytes]] = {}
1453+
_files: Dict[
1454+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1455+
] = {}
14421456
_body_params: Optional[bytes] = None
14431457

14441458
# process the path parameters
@@ -1451,11 +1465,12 @@ def _get_rule_blacklist_serialize(
14511465

14521466

14531467
# set the HTTP header `Accept`
1454-
_header_params['Accept'] = self.api_client.select_header_accept(
1455-
[
1456-
'application/vnd.conekta-v2.1.0+json'
1457-
]
1458-
)
1468+
if 'Accept' not in _header_params:
1469+
_header_params['Accept'] = self.api_client.select_header_accept(
1470+
[
1471+
'application/vnd.conekta-v2.1.0+json'
1472+
]
1473+
)
14591474

14601475

14611476
# authentication setting
@@ -1705,7 +1720,9 @@ def _get_rule_whitelist_serialize(
17051720
_query_params: List[Tuple[str, str]] = []
17061721
_header_params: Dict[str, Optional[str]] = _headers or {}
17071722
_form_params: List[Tuple[str, str]] = []
1708-
_files: Dict[str, Union[str, bytes]] = {}
1723+
_files: Dict[
1724+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1725+
] = {}
17091726
_body_params: Optional[bytes] = None
17101727

17111728
# process the path parameters
@@ -1718,11 +1735,12 @@ def _get_rule_whitelist_serialize(
17181735

17191736

17201737
# set the HTTP header `Accept`
1721-
_header_params['Accept'] = self.api_client.select_header_accept(
1722-
[
1723-
'application/vnd.conekta-v2.1.0+json'
1724-
]
1725-
)
1738+
if 'Accept' not in _header_params:
1739+
_header_params['Accept'] = self.api_client.select_header_accept(
1740+
[
1741+
'application/vnd.conekta-v2.1.0+json'
1742+
]
1743+
)
17261744

17271745

17281746
# authentication setting

0 commit comments

Comments
 (0)