mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 13:16:53 +00:00
Add minimum one-time donation amont to validation error map
This commit is contained in:
1 parent
5fb158635c
commit
2f21e930e2
2 files changed
+17
-7
No files matched your search
+3
-1
@@ -777,7 +777,9 @@ public class SubscriptionController {
|
||||
minCurrencyAmountMajorUnits);
|
||||
if (minCurrencyAmountMinorUnits.compareTo(amount) > 0) {
|
||||
throw new BadRequestException(Response.status(Status.BAD_REQUEST)
|
||||
.entity(Map.of("error", "amount_below_currency_minimum")).build());
|
||||
.entity(Map.of(
|
||||
"error", "amount_below_currency_minimum",
|
||||
"minimum", minCurrencyAmountMajorUnits.toString())).build());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user