From 8beec311adba30ad6e45c9d350514a9c98dbb4bc Mon Sep 17 00:00:00 2001 From: struga Date: Thu, 25 Jan 2024 16:37:23 +0700 Subject: [PATCH] Add extra map to parameters (#75) --- pom.xml | 7 +++---- .../vality/adapter/flow/lib/model/AdditionalTrxInfo.java | 3 +++ .../vality/adapter/flow/lib/utils/AdditionalInfoUtils.java | 3 ++- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 2638d27..0d936b5 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ adapter-flow-lib - 0.2.2 + 0.2.3 jar adapter-flow-lib @@ -46,19 +46,18 @@ UTF-8 1.0.4 1.20-be9cdeb - 1.563-d384c12 + 1.614-3df747f 3.12.0 1.15 1.7.36 1.18.24 1.2.11 7.1.1 - 2.13.2 + 2.14.0 5.8.2 2.22.2 4.0.1 2.0.1.Final - 2.11.2 5.3.19 2.6.7 1.66-01353ce diff --git a/src/main/java/dev/vality/adapter/flow/lib/model/AdditionalTrxInfo.java b/src/main/java/dev/vality/adapter/flow/lib/model/AdditionalTrxInfo.java index d7cc407..2984623 100644 --- a/src/main/java/dev/vality/adapter/flow/lib/model/AdditionalTrxInfo.java +++ b/src/main/java/dev/vality/adapter/flow/lib/model/AdditionalTrxInfo.java @@ -5,6 +5,8 @@ import lombok.Data; import lombok.NoArgsConstructor; import lombok.experimental.SuperBuilder; +import java.util.Map; + @Data @SuperBuilder @NoArgsConstructor @@ -13,5 +15,6 @@ public class AdditionalTrxInfo { private String rrn; private String approvalCode; + private Map extraInfo; } diff --git a/src/main/java/dev/vality/adapter/flow/lib/utils/AdditionalInfoUtils.java b/src/main/java/dev/vality/adapter/flow/lib/utils/AdditionalInfoUtils.java index b1f89db..c284a21 100644 --- a/src/main/java/dev/vality/adapter/flow/lib/utils/AdditionalInfoUtils.java +++ b/src/main/java/dev/vality/adapter/flow/lib/utils/AdditionalInfoUtils.java @@ -9,7 +9,8 @@ public class AdditionalInfoUtils { if (exitStateModel.getAdditionalTrxInfo() != null) { return new AdditionalTransactionInfo() .setRrn(exitStateModel.getAdditionalTrxInfo().getRrn()) - .setApprovalCode(exitStateModel.getAdditionalTrxInfo().getApprovalCode()); + .setApprovalCode(exitStateModel.getAdditionalTrxInfo().getApprovalCode()) + .setExtraPaymentInfo(exitStateModel.getAdditionalTrxInfo().getExtraInfo()); } return null; }