-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
75 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ aaio.so | |
return a pydantic's models for each response. Please write about all problems related to the library | ||
to [issues](https://github.com/kewldan/AAIO/issues) | ||
|
||
API is up-to-date as of *06 February 2024*. | ||
API is up-to-date as of *01 March 2024*. | ||
|
||
* PyPl - https://pypi.org/project/aaio/ | ||
* Github - https://github.com/kewldan/AAIO | ||
|
@@ -78,11 +78,11 @@ from aaio import AAIO | |
|
||
|
||
async def main(): | ||
client = AAIO('MERCHANT ID', 'SECRET KEY', 'API KEY') | ||
payment_url = client.create_payment(100, 'my_order_id', 'My order description', 'qiwi', '[email protected]', | ||
'referral code', currency='USD', | ||
language='en') | ||
print(payment_url) # Prints payment url for customer | ||
client = AAIO('MERCHANT ID', 'SECRET KEY', 'API KEY') | ||
payment_url = client.create_payment(100, 'my_order_id', 'My order description', 'qiwi', '[email protected]', | ||
'referral code', currency='USD', | ||
language='en') | ||
print(payment_url) # Prints payment url for customer | ||
|
||
|
||
asyncio.run(main()) | ||
|
@@ -97,18 +97,18 @@ from aaio import AAIO | |
|
||
|
||
async def main(): | ||
client = AAIO('MERCHANT ID', 'SECRET KEY', 'API KEY') | ||
payoff = await client.create_payoff('qiwi', 100.35, '79998887766', 'my_payoff_id') | ||
print(payoff.status) # in_progress | ||
client = AAIO('MERCHANT ID', 'SECRET KEY', 'API KEY') | ||
payoff = await client.create_payoff('qiwi', 100.35, '79998887766', 'my_payoff_id') | ||
print(payoff.status) # in_progress | ||
|
||
|
||
asyncio.run(main()) | ||
``` | ||
|
||
## Contact | ||
|
||
E-Mail - [email protected] | ||
Telegram - [@kewldan](https://t.me/kewldan) | ||
* E-Mail - [email protected] | ||
* Telegram - [@kewldan](https://t.me/kewldan) | ||
|
||
## License | ||
|
||
|
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" | |
|
||
[project] | ||
name = "aaio" | ||
version = "1.3.0" | ||
version = "1.3.1" | ||
description = "Async AAIO api wrapper for python" | ||
readme = "README.md" | ||
authors = [{ name = "kewldan", email = "[email protected]" }] | ||
|
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 |
---|---|---|
@@ -1,10 +1,11 @@ | ||
from .AAIO import AAIO | ||
from .AAIO import create_invoice | ||
from .AAIO import create_invoice, is_valid_payoff_webhook, AAIO | ||
from .exceptions.aaio_bad_request import AAIOBadRequest | ||
from .types.balance import Balance | ||
from .types.create_payoff import CreatePayoff | ||
from .types.payment_info import PaymentInfo | ||
from .types.payment_methods import PaymentMethods, PaymentMethod, PaymentMethodAmounts | ||
from .types.payment_webhook import PaymentWebhookData | ||
from .types.payoff_info import PayoffInfo | ||
from .types.payoff_methods import PayoffMethods, PayoffMethod | ||
from .types.payoff_rates import PayoffRates | ||
from .types.payoff_webhook import PayoffWebhookData |
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,20 @@ | ||
from typing import Literal | ||
|
||
from pydantic import BaseModel | ||
|
||
|
||
class PaymentWebhookData(BaseModel): | ||
merchant_id: str | ||
invoice_id: str | ||
order_id: str | ||
amount: float | ||
currency: Literal['RUB', 'UAH', 'EUR', 'USD'] | ||
profit: float | ||
commission: float | ||
commission_client: float | ||
commission_type: str | ||
sign: str | ||
method: str | ||
desc: str | ||
email: str | ||
us_key: str |
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,23 @@ | ||
from typing import Literal | ||
|
||
from pydantic import BaseModel | ||
|
||
|
||
class PayoffWebhookData(BaseModel): | ||
id: str | ||
my_id: str | ||
method: str | ||
bank: str | ||
wallet: str | ||
amount: float | ||
amount_in_currency: float | ||
amount_currency: str | ||
amount_rate: float | ||
amount_down: float | ||
commission: float | ||
commission_type: Literal[0, 1] | ||
status: Literal['cancel', 'success'] | ||
cancel_message: str | None = None | ||
date: str | ||
complete_date: str | ||
sign: str |