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__ 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..ac77ceb7 100644 --- a/cuenca/version.py +++ b/cuenca/version.py @@ -1,3 +1,3 @@ -__version__ = '0.14.5' +__version__ = '0.14.6' CLIENT_VERSION = __version__ API_VERSION = '2020-03-19' diff --git a/requirements.txt b/requirements.txt index a66be0b0..db0a84d2 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 dataclasses>=0.7;python_version<"3.7"