From 9731d3405d0e5949380b684d56d0cd316f410bf3 Mon Sep 17 00:00:00 2001 From: rogeliolopez Date: Thu, 22 Sep 2022 15:26:28 -0500 Subject: [PATCH 1/4] add user_id in savings --- cuenca/resources/savings.py | 2 ++ cuenca/resources/wallet_transactions.py | 2 ++ cuenca/version.py | 2 +- requirements.txt | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/cuenca/resources/savings.py b/cuenca/resources/savings.py index 2a857097..e70f7d78 100644 --- a/cuenca/resources/savings.py +++ b/cuenca/resources/savings.py @@ -27,12 +27,14 @@ def create( category: SavingCategory, goal_amount: Optional[int] = None, goal_date: Optional[dt.datetime] = None, + user_id: Optional[str] = None, ): request = SavingRequest( name=name, category=category, goal_amount=goal_amount, goal_date=goal_date, + user_id=user_id, ) return cast('Saving', cls._create(**request.dict())) diff --git a/cuenca/resources/wallet_transactions.py b/cuenca/resources/wallet_transactions.py index c745d007..af7217e5 100644 --- a/cuenca/resources/wallet_transactions.py +++ b/cuenca/resources/wallet_transactions.py @@ -29,10 +29,12 @@ def create( wallet_uri: str, transaction_type: WalletTransactionType, amount: int, + user_id: Optional[str] = None, ): request = WalletTransactionRequest( wallet_uri=wallet_uri, transaction_type=transaction_type, amount=amount, + user_id=user_id, ) return cast('WalletTransaction', cls._create(**request.dict())) diff --git a/cuenca/version.py b/cuenca/version.py index ddc147c0..8b70c626 100644 --- a/cuenca/version.py +++ b/cuenca/version.py @@ -1,3 +1,3 @@ -__version__ = '0.14.5' +__version__ = '0.14.6.dev0' CLIENT_VERSION = __version__ API_VERSION = '2020-03-19' diff --git a/requirements.txt b/requirements.txt index a66be0b0..5db5aa19 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ requests==2.27.1 -cuenca-validations==0.11.3 +cuenca-validations==0.11.4.dev2 dataclasses>=0.7;python_version<"3.7" From a46431ab56c13cdddefe5cb4ccc359df0e6e3961 Mon Sep 17 00:00:00 2001 From: rogeliolopez Date: Thu, 22 Sep 2022 15:28:47 -0500 Subject: [PATCH 2/4] GH action --- .github/workflows/release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8d232cd7..e37caf86 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,8 @@ name: release -on: push +on: + release: + types: [published] jobs: publish-pypi: @@ -16,7 +18,6 @@ jobs: - name: Generating distribution archives run: python setup.py sdist bdist_wheel - name: Publish distribution 📦 to PyPI - if: startsWith(github.event.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@master with: user: __token__ From a310cdcdf6c15265dc7b6ab9f13ccfc7e91aa430 Mon Sep 17 00:00:00 2001 From: rogeliolopez Date: Thu, 22 Sep 2022 15:29:50 -0500 Subject: [PATCH 3/4] version --- cuenca/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cuenca/version.py b/cuenca/version.py index 8b70c626..8fde5f40 100644 --- a/cuenca/version.py +++ b/cuenca/version.py @@ -1,3 +1,3 @@ -__version__ = '0.14.6.dev0' +__version__ = '0.14.6.dev2' CLIENT_VERSION = __version__ API_VERSION = '2020-03-19' From 87e6598e846d891c12ce4da3fc073a87a14b12dc Mon Sep 17 00:00:00 2001 From: rogeliolopez Date: Thu, 22 Sep 2022 16:33:48 -0500 Subject: [PATCH 4/4] version --- cuenca/version.py | 2 +- requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cuenca/version.py b/cuenca/version.py index 8fde5f40..ac77ceb7 100644 --- a/cuenca/version.py +++ b/cuenca/version.py @@ -1,3 +1,3 @@ -__version__ = '0.14.6.dev2' +__version__ = '0.14.6' CLIENT_VERSION = __version__ API_VERSION = '2020-03-19' diff --git a/requirements.txt b/requirements.txt index 5db5aa19..db0a84d2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ requests==2.27.1 -cuenca-validations==0.11.4.dev2 +cuenca-validations==0.11.4 dataclasses>=0.7;python_version<"3.7"