forked from julsdelatierra/conekta-python
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial Structure * change action branch * Add tests * Add tests * Add base_path from env var * Add base_path to workflow * Change readme example * Change contact name * Validate oneOf * Add changelog
- Loading branch information
Showing
28 changed files
with
576 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
## [2.6.2](https://github.com/conekta/conekta-python/releases/tag/v2.6.2) - 2023-04-17 | ||
### Change | ||
- Fix checkout errors | ||
- Fix checkout tests | ||
- Delete unused methods | ||
|
||
## [2.6.1](https://github.com/conekta/conekta-python/releases/tag/v2.6.1) - 2020-12-30 | ||
### Change | ||
- Fix indentation error | ||
|
||
## [2.6.0](https://github.com/conekta/conekta-python/releases/tag/v2.6.0) - 2020-12-30 | ||
### Change | ||
- Support creation of a payment link in the SDK. | ||
|
||
## [2.5.1](https://github.com/conekta/conekta-python/releases/tag/v2.5.1) - 2019-12-31 | ||
### Change | ||
- Adds message field for error object where it was previously missing | ||
|
||
## [2.4.0](https://github.com/conekta/conekta-python/releases/tag/v2.4.0) - 2017-09-18 | ||
### Change | ||
- Change httplib2 library for requests | ||
|
||
## [2.3.4](https://github.com/conekta/conekta-python/releases/tag/v2.3.4) - 2017-06-08 | ||
### Feature | ||
- Add void method for the class Order | ||
|
||
## [2.3.3]() - 2017-03-24 | ||
### Fix | ||
- Fix Subscriptions for Customer | ||
|
||
## [2.3.0](https://github.com/conekta/conekta-python/releases/tag/2.3.0) - 2017-02-16 | ||
### Update | ||
- Stable version for API 2.0.0 | ||
### Feature | ||
- Order model, submodels and methods as well as enhanced errors and lists | ||
|
||
## [2.1.0](https://github.com/conekta/conekta-python/releases/tag/2.1.0) - 2017-02-15 | ||
### Update | ||
- Merging Api 2.0.0 | ||
|
||
## [2.0.0](https://github.com/conekta/conekta-python/releases/tag/v2.0) - 2017-01-03 | ||
### Feature | ||
- Order's submodels added | ||
### Change | ||
- New Order flow | ||
### Update | ||
- Supporting now API 2.0 | ||
|
||
## [1.2.0](https://github.com/conekta/conekta-python/releases/tag/v1.2) - | ||
### Feature | ||
- Include locale support and python 3+ | ||
|
||
## [1.1.1](https://github.com/conekta/conekta-python/releases/tag/v1.1.1) - 2015-02-25 | ||
### Feature | ||
- Include charge capture | ||
|
||
## [1.1.0](https://github.com/conekta/conekta-python/releases/tag/v1.1.0) - 2014-04-22 | ||
### Feature | ||
- Adding payee/payout objects | ||
|
||
## [1.0.1](https://github.com/conekta/conekta-python/releases/tag/v1.0.1) - 2014-04-07 | ||
### Change | ||
- Bundling source instead of platform specific versions | ||
|
||
## [1.0.0](https://github.com/conekta/conekta-python/releases/tag/v1.0.0) - 2013-12-13 | ||
### Feature | ||
- Includes subscriptions/tokenization/customers etc | ||
|
||
## [0.9.0](https://github.com/conekta/conekta-python/releases/tag/v0.9.0) - 2013-11-15 | ||
### Feature | ||
- Adding ssl certs to manifest | ||
|
||
## [0.6.5](https://github.com/conekta/conekta-python/releases/tag/v0.6.5) - 2013-11-15 | ||
### Update | ||
- Versioning v0.6.5 | ||
|
||
## [0.7.0](https://github.com/conekta/conekta-python/releases/tag/v0.7) - 2013-10-28 | ||
### Change | ||
- Change in refunds, logs and object queries | ||
- Breaking changes to object structure and usage | ||
|
||
## [0.6.0](https://github.com/conekta/conekta-python/releases/tag/v0.6) - 2013-09-30 | ||
### Feature | ||
- Get all events |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,6 +50,7 @@ from __future__ import print_function | |
|
||
import time | ||
import conekta | ||
import os | ||
from conekta.rest import ApiException | ||
from pprint import pprint | ||
|
||
|
@@ -73,17 +74,21 @@ configuration = conekta.Configuration( | |
# 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.AntifraudApi(api_client) | ||
create_risk_rules_data = conekta.CreateRiskRulesData() # CreateRiskRulesData | requested field for blacklist rule | ||
api_instance = conekta.CustomersApi(api_client) | ||
customer = conekta.Customer( | ||
email='[email protected]', | ||
name='Customer Name', | ||
phone='5534343434' | ||
) # Customer | requested field for create Customer | ||
accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es') | ||
|
||
try: | ||
# Create blacklisted rule | ||
api_response = api_instance.create_rule_blacklist(create_risk_rules_data, accept_language=accept_language) | ||
print("The response of AntifraudApi->create_rule_blacklist:\n") | ||
# Create Customer | ||
api_response = api_instance.create_customer(customer, accept_language=accept_language) | ||
print("The response of CustomersApi->create_customer:\n") | ||
pprint(api_response) | ||
except ApiException as e: | ||
print("Exception when calling AntifraudApi->create_rule_blacklist: %s\n" % e) | ||
print("Exception when calling CustomersApi->create_customer: %s\n" % e) | ||
|
||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
# | ||
# prerequisite: setuptools | ||
# http://pypi.python.org/pypi/setuptools | ||
NAME = "conekta-python" | ||
NAME = "conekta" | ||
VERSION = "6.0.0" | ||
PYTHON_REQUIRES = ">=3.7" | ||
REQUIRES = [ | ||
|
@@ -33,9 +33,9 @@ | |
name=NAME, | ||
version=VERSION, | ||
description="Conekta API", | ||
author="Api support client", | ||
author="Engineering Conekta", | ||
author_email="[email protected]", | ||
url="https://developers.conekta.com/", | ||
url="https://github.com/conekta/conekta-python", | ||
keywords=["OpenAPI", "OpenAPI-Generator", "Conekta API"], | ||
install_requires=REQUIRES, | ||
packages=find_packages(exclude=["test", "tests"]), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.