Skip to content

Commit

Permalink
Transfer.create now allows platform_id as args
Browse files Browse the repository at this point in the history
  • Loading branch information
Andres Hernandez committed Jul 5, 2022
1 parent f258b98 commit b79553a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
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.6'
__version__ = '0.13.8.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.18
cuenca-validations==0.10.21.dev0
dataclasses>=0.7;python_version<"3.7"

0 comments on commit b79553a

Please sign in to comment.