From 372f6ce03e67b06b4493f88c197e9dad5215a69c Mon Sep 17 00:00:00 2001 From: "a.romanov" Date: Mon, 17 May 2021 11:51:41 +0300 Subject: [PATCH] Add 3DS 2.0 fields and steps --- pom.xml | 2 +- .../com/rbkmoney/adapter/common/constants/ThreeDsFields.java | 5 ++++- src/main/java/com/rbkmoney/adapter/common/enums/Step.java | 5 +++++ .../com/rbkmoney/adapter/common/model/AdapterContext.java | 3 +++ 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index fe217ff..1c86c79 100644 --- a/pom.xml +++ b/pom.xml @@ -13,7 +13,7 @@ adapter-common-lib - 0.0.28 + 0.0.29 jar adapter-common-lib diff --git a/src/main/java/com/rbkmoney/adapter/common/constants/ThreeDsFields.java b/src/main/java/com/rbkmoney/adapter/common/constants/ThreeDsFields.java index c4e7923..f8c80b9 100644 --- a/src/main/java/com/rbkmoney/adapter/common/constants/ThreeDsFields.java +++ b/src/main/java/com/rbkmoney/adapter/common/constants/ThreeDsFields.java @@ -10,7 +10,10 @@ public enum ThreeDsFields { MD("MD"), PA_REQ("PaReq"), PA_RES("PaRes"), - TERM_URL("TermUrl"); + TERM_URL("TermUrl"), + THREE_DS_METHOD_DATA("ThreeDsMethodData"), + C_REQ("creq"), + THREE_DS_SESSION_DATA("threeDSSessionData"); private final String value; } diff --git a/src/main/java/com/rbkmoney/adapter/common/enums/Step.java b/src/main/java/com/rbkmoney/adapter/common/enums/Step.java index 1abbfc2..d6753b8 100644 --- a/src/main/java/com/rbkmoney/adapter/common/enums/Step.java +++ b/src/main/java/com/rbkmoney/adapter/common/enums/Step.java @@ -6,6 +6,8 @@ public enum Step { AUTH, AUTH_MOBILE_PAY, FINISH_THREE_DS, + FINISH_THREE_DS_V1, + FINISH_THREE_DS_V2, AWAIT_CALLBACK, CANCEL, REFUND, @@ -19,6 +21,9 @@ public enum Step { GENERATE_TOKEN_AUTH, GENERATE_TOKEN_AUTH_MOBILE_PAY, GENERATE_TOKEN_FINISH_THREE_DS, + GENERATE_TOKEN_FINISH_THREE_DS_V1, + GENERATE_TOKEN_FINISH_THREE_DS_V2, + GENERATE_TOKEN_AWAIT_CALLBACK, GENERATE_TOKEN_CAPTURE, GENERATE_TOKEN_CANCEL, GENERATE_TOKEN_REFUND, diff --git a/src/main/java/com/rbkmoney/adapter/common/model/AdapterContext.java b/src/main/java/com/rbkmoney/adapter/common/model/AdapterContext.java index 0c28048..fc79599 100644 --- a/src/main/java/com/rbkmoney/adapter/common/model/AdapterContext.java +++ b/src/main/java/com/rbkmoney/adapter/common/model/AdapterContext.java @@ -18,6 +18,9 @@ public class AdapterContext { private String acsUrl; private String termUrl; private String terminationUri; + private String cReq; + private String threeDsMethodData; + private String threeDsSessionData; private String trxId; private Step step; private Map options;