From af13c1926e4e17079926810b1f891a26a7af8193 Mon Sep 17 00:00:00 2001 From: Apurb Rajdhan <103931815+apurbraj@users.noreply.github.com> Date: Wed, 25 Oct 2023 12:53:31 +0530 Subject: [PATCH 1/3] Test --- .../mifos/processor/bulk/zeebe/worker/AuthorizationWorker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/mifos/processor/bulk/zeebe/worker/AuthorizationWorker.java b/src/main/java/org/mifos/processor/bulk/zeebe/worker/AuthorizationWorker.java index ba651857..4e28202c 100644 --- a/src/main/java/org/mifos/processor/bulk/zeebe/worker/AuthorizationWorker.java +++ b/src/main/java/org/mifos/processor/bulk/zeebe/worker/AuthorizationWorker.java @@ -69,7 +69,7 @@ private HttpStatus invokeBatchAuthorizationApi(String batchId, AuthorizationRequ headers.add(X_CALLBACK_URL, callbackURLPath); HttpEntity requestEntity = new HttpEntity<>(requestPayload, headers); - String endpoint = mockPaymentSchemaContactPoint + authorizationEndpoint + batchId; + String endpoint = mockPaymentSchemaContactPoint + authorizationEndpoint + batchId+ "?command=authorize"; ResponseEntity responseEntity = restTemplate.exchange(endpoint, HttpMethod.POST, requestEntity, String.class); return responseEntity.getStatusCode(); From 7e62514abba1bc5a3b02fe8a48a8e46ea7b2d7bb Mon Sep 17 00:00:00 2001 From: Apurb Rajdhan <103931815+apurbraj@users.noreply.github.com> Date: Wed, 25 Oct 2023 13:12:30 +0530 Subject: [PATCH 2/3] Test1 --- src/main/resources/application.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index b1b918be..810319e6 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -91,7 +91,7 @@ config: partylookup: enable: true authorization: - enabled: true + enabled: false approval: enable: true ordering: From 6ed71b2f4a3b25de527a8d64c630d86a1f790357 Mon Sep 17 00:00:00 2001 From: Apurb Rajdhan <103931815+apurbraj@users.noreply.github.com> Date: Mon, 30 Oct 2023 15:15:07 +0530 Subject: [PATCH 3/3] NPE --- .../mifos/processor/bulk/zeebe/worker/AuthorizationWorker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/mifos/processor/bulk/zeebe/worker/AuthorizationWorker.java b/src/main/java/org/mifos/processor/bulk/zeebe/worker/AuthorizationWorker.java index 4e28202c..29c022c7 100644 --- a/src/main/java/org/mifos/processor/bulk/zeebe/worker/AuthorizationWorker.java +++ b/src/main/java/org/mifos/processor/bulk/zeebe/worker/AuthorizationWorker.java @@ -46,7 +46,7 @@ public void setup() { } String payerIdentifier = (String) variables.get("payerIdentifier"); - String totalBatchAmount = (String) variables.get("partyLookupSuccessfulTransactionAmount"); + String totalBatchAmount = (variables.get("partyLookupSuccessfulTransactionAmount")!=null?(String) variables.get("partyLookupSuccessfulTransactionAmount"): String.valueOf(0)); String currency = (String) variables.get("currency"); String batchId = (String) variables.get(BATCH_ID);