Closed pachCode closed 1 week ago
The changes include a modification to the CardTransactionRequest
class to allow the amount
attribute to accept zero as a valid input. The version number of the software has been incremented from 0.11.30
to 0.11.31
, indicating a minor update. Additionally, a new test case has been added to verify that the ChargeRequest
class correctly handles an amount of zero. Documentation for the StrictPositiveInt
class has also been clarified.
Files | Change Summary |
---|---|
cuenca_validations/types/requests.py |
Updated amount attribute in CardTransactionRequest from StrictPositiveInt to conint(strict=True, ge=0) . |
cuenca_validations/version.py |
Incremented version number from 0.11.30 to 0.11.31 . |
tests/test_types.py |
Added a test case in test_card_transaction_requests to check ChargeRequest with an amount of zero. |
cuenca_validations/types/general.py |
Updated documentation comment in StrictPositiveInt to clarify that it enforces a strict positive integer constraint. |
🐰 In the meadow, changes bloom,
A zero amount finds room!
Transactions dance, so light and free,
With every hop, we celebrate glee!
Version numbers rise and shine,
In our world, all is fine! 🌼
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 100.00%. Comparing base (
85e7082
) to head (572e3e8
). Report is 1 commits behind head on main.
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
StrictPositiveInt
class to accurately describe the validation constraint.Tests