diff --git a/platform/src/main/java/com/flickmatch/platform/graphql/builder/EventBuilder.java b/platform/src/main/java/com/flickmatch/platform/graphql/builder/EventBuilder.java index 09d14f19..fbb68401 100644 --- a/platform/src/main/java/com/flickmatch/platform/graphql/builder/EventBuilder.java +++ b/platform/src/main/java/com/flickmatch/platform/graphql/builder/EventBuilder.java @@ -164,14 +164,17 @@ private Event.EventDetails buildEventDetails(CreateEventInput input, int index) .build(); return eventDetails; } + + private static final Map cityToCurrencyMap = new HashMap<>(); + static { + cityToCurrencyMap.put("1", "INR"); + cityToCurrencyMap.put("2", "INR"); + cityToCurrencyMap.put("3", "USD"); + cityToCurrencyMap.put("4", "USD"); + cityToCurrencyMap.put("5", "USD"); + } public String getCurrencyForCity(String cityId) { - final Map cityToCurrencyMap = new HashMap<>(); - cityToCurrencyMap.put("1", "INR"); - cityToCurrencyMap.put("2", "INR"); - cityToCurrencyMap.put("3", "USD"); - cityToCurrencyMap.put("4", "USD"); - cityToCurrencyMap.put("5", "USD"); - return cityToCurrencyMap.getOrDefault(cityId, "DEFAULT_CURRENCY_CODE"); + return cityToCurrencyMap.getOrDefault(cityId, "IN"); } private String getPaymentUrlForEvent(SportsVenue sportsVenue, Double amount) {