Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add user_id in savings #319

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: release

on: push
on:
release:
types: [published]

jobs:
publish-pypi:
Expand All @@ -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__
Expand Down
2 changes: 2 additions & 0 deletions cuenca/resources/savings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()))

Expand Down
2 changes: 2 additions & 0 deletions cuenca/resources/wallet_transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
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.14.5'
__version__ = '0.14.6'
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.11.3
cuenca-validations==0.11.4
dataclasses>=0.7;python_version<"3.7"