Skip to content

Commit

Permalink
pin_tries in card_validations
Browse files Browse the repository at this point in the history
  • Loading branch information
rogelioLpz committed Jul 19, 2021
1 parent 4e0bbbb commit 2c67b50
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cuenca/resources/card_validations.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def create(
exp_month: Optional[int] = None,
exp_year: Optional[int] = None,
pin_block: Optional[str] = None,
pin_tries_exceeded_offline: Optional[str] = None,
*,
session: Session = global_session,
) -> 'CardValidation':
Expand All @@ -48,6 +49,7 @@ def create(
exp_month=exp_month,
exp_year=exp_year,
pin_block=pin_block,
pin_tries_exceeded_offline=pin_tries_exceeded_offline,
)
return cast(
'CardValidation', cls._create(session=session, **req.dict())
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.7.7'
__version__ = '0.7.8.dev0'
CLIENT_VERSION = __version__
API_VERSION = '2020-03-19'
1 change: 1 addition & 0 deletions tests/resources/test_card_validations.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def test_card_validations():
exp_month=2,
exp_year=25,
pin_block='BDIEHA38457W',
pin_tries_exceeded_offline=False
)
validation = CardValidation.create(**card_data)
assert validation.is_active
Expand Down

0 comments on commit 2c67b50

Please sign in to comment.