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

Update card Params #370

Open
wants to merge 7 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
14 changes: 10 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
name: release

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

jobs:
publish-pypi:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/cuenca
permissions:
id-token: write
steps:
- uses: actions/checkout@v2.4.0
- uses: actions/checkout@master
- name: Set up Python 3.8
uses: actions/[email protected]
with:
Expand All @@ -16,8 +23,7 @@ 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
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.pypi_password }}
3 changes: 2 additions & 1 deletion cuenca/resources/cards.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def update(
card_id: str,
status: Optional[CardStatus] = None,
pin_block: Optional[str] = None,
is_dynamic_cvv: bool = False,
is_dynamic_cvv: Optional[bool] = None,
*,
session: Session = global_session,
) -> 'Card':
Expand All @@ -100,6 +100,7 @@ def update(
:param card_id: existing card_id
:param status:
:param pin_block
:param is_dynamic_cvv: enable/disable dynamic cvv for virtual cards
:param session:
:return: Updated card object
"""
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.15.9'
__version__ = '0.15.10'
CLIENT_VERSION = __version__
API_VERSION = '2020-03-19'
1 change: 1 addition & 0 deletions requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ pytest-vcr==1.0.*
requests-mock==1.9.*
types-freezegun
types-requests
vcrpy==4.1.1
Loading