From b983a9c301ce404c5a3888aec2cd8bf96d864187 Mon Sep 17 00:00:00 2001 From: Vusa Date: Wed, 1 Jul 2026 15:52:17 +0200 Subject: [PATCH] updating hot logic for zesa --- .../integrations/HotRechargeIntegrationProcessor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/zw/qantra/tm/domain/services/processors/integrations/HotRechargeIntegrationProcessor.java b/src/main/java/zw/qantra/tm/domain/services/processors/integrations/HotRechargeIntegrationProcessor.java index 59a6593..b2a161d 100644 --- a/src/main/java/zw/qantra/tm/domain/services/processors/integrations/HotRechargeIntegrationProcessor.java +++ b/src/main/java/zw/qantra/tm/domain/services/processors/integrations/HotRechargeIntegrationProcessor.java @@ -91,7 +91,7 @@ public class HotRechargeIntegrationProcessor implements TransactionProcessorInte // if provider is zesa, update customer token in creditVoucher field String providerId = providerService.getProviderId(transaction.getBillClientId()); - if(providerId.equals("41")) { + if(providerId.equals("41") || providerId.equals("24")) { for (Map.Entry entry : rechargeData.entrySet()) { if (entry.getKey().equalsIgnoreCase("Token")) { transaction.setCreditVoucher(entry.getValue().toString()); @@ -173,7 +173,7 @@ public class HotRechargeIntegrationProcessor implements TransactionProcessorInte request.put("CustomerSMS", "%COMPANYNAME% topped up your account with $%AMOUNT%."); // do this for zesa only - if(providerId.equals("41")) { + if(providerId.equals("41") || providerId.equals("24")) { // override sms for zesa request.put("CustomerSMS", "A ZETDC token was purchased for " + "%ACCOUNTNAME% (%METERNUMBER%) that resulted in %KWH% units.");