Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transfer.create with platform_id #298

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
3 changes: 3 additions & 0 deletions cuenca/resources/transfers.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def create(
recipient_name: str,
idempotency_key: Optional[str] = None,
user_id: Optional[str] = None,
platform_id: Optional[str] = None,
) -> 'Transfer':
"""
:param account_number: CLABE
Expand All @@ -49,6 +50,7 @@ def create(
:param idempotency_key: must be unique for each transfer to avoid
duplicates
:param user_id: Source user to take the funds
:param platform_id: Platform to take the funds
:return: Transfer object

The recommended idempotency_key scheme:
Expand All @@ -68,6 +70,7 @@ def create(
recipient_name=recipient_name,
idempotency_key=idempotency_key,
user_id=user_id,
platform_id=platform_id,
)
return cast('Transfer', cls._create(**req.dict()))

Expand Down
2 changes: 1 addition & 1 deletion cuenca/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = '0.13.8'
__version__ = '0.13.9.dev0'
CLIENT_VERSION = __version__
API_VERSION = '2020-03-19'
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
requests==2.27.1
cuenca-validations==0.10.23
cuenca-validations==0.10.24.dev0
dataclasses>=0.7;python_version<"3.7"