Skip to content

Commit

Permalink
user_id for transfers
Browse files Browse the repository at this point in the history
  • Loading branch information
rogelioLpz committed Jun 16, 2022
1 parent 4029b81 commit 01276d0
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 @@ -39,6 +39,7 @@ def create(
descriptor: str,
recipient_name: str,
idempotency_key: Optional[str] = None,
user_id: Optional[str] = None,
) -> 'Transfer':
"""
:param account_number: CLABE
Expand All @@ -47,6 +48,7 @@ def create(
:param recipient_name: name of recipient
:param idempotency_key: must be unique for each transfer to avoid
duplicates
:param user_id: Source user to take the funds
:return: Transfer object
The recommended idempotency_key scheme:
Expand All @@ -65,6 +67,7 @@ def create(
descriptor=descriptor,
recipient_name=recipient_name,
idempotency_key=idempotency_key,
user_id=user_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.12.0'
__version__ = '0.13.0.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.12
cuenca-validations==0.10.13
dataclasses>=0.7;python_version<"3.7"

0 comments on commit 01276d0

Please sign in to comment.