From 38bc0c466a263999751538a7a1eb2231ea459956 Mon Sep 17 00:00:00 2001 From: Katherine Date: Fri, 10 Nov 2023 10:16:03 -0800 Subject: [PATCH] Change `sepaMaximumEuros` field to number in JSON response --- .../textsecuregcm/controllers/SubscriptionController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/SubscriptionController.java b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/SubscriptionController.java index 28d35fe05..460831aa2 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/SubscriptionController.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/SubscriptionController.java @@ -229,7 +229,7 @@ public class SubscriptionController { giftBadge, oneTimeDonationConfiguration.gift().expiration()))); - return new GetSubscriptionConfigurationResponse(buildCurrencyConfiguration(userAgent), levels, oneTimeDonationConfiguration.sepaMaximumEuros().toString()); + return new GetSubscriptionConfigurationResponse(buildCurrencyConfiguration(userAgent), levels, oneTimeDonationConfiguration.sepaMaximumEuros()); } @DELETE @@ -538,7 +538,7 @@ public class SubscriptionController { */ public record GetSubscriptionConfigurationResponse(Map currencies, Map levels, - String sepaMaximumEuros) { + BigDecimal sepaMaximumEuros) { }