From b79553aef93c0b4816c96eb6a59ba54f54e08137 Mon Sep 17 00:00:00 2001 From: Andres Hernandez Date: Tue, 5 Jul 2022 17:22:35 -0400 Subject: [PATCH] Transfer.create now allows platform_id as args --- cuenca/resources/transfers.py | 3 +++ cuenca/version.py | 2 +- requirements.txt | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/cuenca/resources/transfers.py b/cuenca/resources/transfers.py index 97b0cb9e..ab2e1fc9 100644 --- a/cuenca/resources/transfers.py +++ b/cuenca/resources/transfers.py @@ -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 @@ -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: @@ -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())) diff --git a/cuenca/version.py b/cuenca/version.py index 9fff8a36..672f902d 100644 --- a/cuenca/version.py +++ b/cuenca/version.py @@ -1,3 +1,3 @@ -__version__ = '0.13.6' +__version__ = '0.13.8.dev0' CLIENT_VERSION = __version__ API_VERSION = '2020-03-19' diff --git a/requirements.txt b/requirements.txt index 3cdd53f9..aa57b1a0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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"