Closed tomudding closed 1 month ago
Based on internal feedback the code has been changed to remove the "fix" that would only allow you to top up with exactly your negative balance. Original code can be found at https://github.com/GEWIS/sudosos-backend/compare/develop...tomudding:sudosos-backend:feature/maximum-topup-check-original.
If the original discussion had been documented/mentioned in GH-135 this could have been prevented. So for future reference, the discussion resulted in determining that the wording is ambiguous, however, the behaviour from SuSOS should be kept and thus the wording in the current version of the TOS* is an actual OR and it does not have an implied currentBalance >= 0
for the second statement.
Current version of the TOS:
exactly their total negative balance (such that their balance becomes 0 euros after the deposit) or at least 10 euros
:tada: This PR is included in version 0.1.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
Introduces validation for the maximum amount a top-up can have; to verify that the user can only top-up their balance with €150 minus their current balance.