From 0003daea4798128626cf7a0a8be372bb6a4ed6f4 Mon Sep 17 00:00:00 2001 From: "Hariom.Mishra" Date: Tue, 9 Mar 2021 13:44:28 +0530 Subject: [PATCH 1/4] changed ris call version and add getters --- .../src/main/java/com/kount/ris/Request.java | 2 +- .../src/main/java/com/kount/ris/Response.java | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/kount-ris-sdk/src/main/java/com/kount/ris/Request.java b/kount-ris-sdk/src/main/java/com/kount/ris/Request.java index 7e519b8..d00d3b6 100644 --- a/kount-ris-sdk/src/main/java/com/kount/ris/Request.java +++ b/kount-ris-sdk/src/main/java/com/kount/ris/Request.java @@ -51,7 +51,7 @@ public abstract class Request { * @throws RisException */ public Request() { - setVersion("0700"); + setVersion("0710"); setKhashPaymentEncoding(true); params.put("SDK", "JAVA"); } diff --git a/kount-ris-sdk/src/main/java/com/kount/ris/Response.java b/kount-ris-sdk/src/main/java/com/kount/ris/Response.java index f9c8a12..2f79bde 100644 --- a/kount-ris-sdk/src/main/java/com/kount/ris/Response.java +++ b/kount-ris-sdk/src/main/java/com/kount/ris/Response.java @@ -915,4 +915,23 @@ public int getNumberCountersTriggered() { return 0; } + /** + * Get the Previously WhiteListed. + * + * @return PREVIOUSLY_WHITELISTED + */ + public String getPreviouslyWhiteListed() { + return this.params.get("PREVIOUSLY_WHITELISTED"); + } + + + /** + * Get the 3D Secure Merchant Response. + * + * @return 3D_SECURE_MERCHANT_RESPONSE + */ + public String get3DSecureMerchantResponse() { + return this.params.get("3D_SECURE_MERCHANT_RESPONSE"); + } + } From 57c5d259b2e592d10be3bbb6c73837d316280780 Mon Sep 17 00:00:00 2001 From: "Hariom.Mishra" Date: Tue, 9 Mar 2021 17:33:15 +0530 Subject: [PATCH 2/4] added test --- .../java/com/kount/ris/util/Utilities.java | 2 -- .../com/kount/ris/BasicConnectivityTest.java | 32 ++++++++++++++++++- 2 files changed, 31 insertions(+), 3 deletions(-) diff --git a/sdk-integration-tests/src/main/java/com/kount/ris/util/Utilities.java b/sdk-integration-tests/src/main/java/com/kount/ris/util/Utilities.java index 2f34467..fd0baca 100644 --- a/sdk-integration-tests/src/main/java/com/kount/ris/util/Utilities.java +++ b/sdk-integration-tests/src/main/java/com/kount/ris/util/Utilities.java @@ -40,8 +40,6 @@ public static Inquiry defaultInquiry(String sessionId, int merchantId) { .setShippingPhoneNumber("555-777-1212") .setIpAddress("131.206.45.21") .setCart(Collections.singletonList(cartItem0)) - - .setVersion("0700") .setMerchantId(merchantId) .setPayment(payment) .setSessionId(sessionId) diff --git a/sdk-integration-tests/src/test/java/com/kount/ris/BasicConnectivityTest.java b/sdk-integration-tests/src/test/java/com/kount/ris/BasicConnectivityTest.java index 1b99103..5dcf7af 100644 --- a/sdk-integration-tests/src/test/java/com/kount/ris/BasicConnectivityTest.java +++ b/sdk-integration-tests/src/test/java/com/kount/ris/BasicConnectivityTest.java @@ -1,6 +1,7 @@ package com.kount.ris; import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertTrue; import java.io.InputStream; import java.net.URL; @@ -84,7 +85,36 @@ public void testTotalAndCashWithLongType() throws RisException { assertEquals(0, response.getErrorCount()); } - + + @Test + public void testPreviouslyWhiteListedExistWithRisCallVersion_0710() throws RisException { + logger.debug("running get previously white listed test"); ; + Inquiry inq = getInquiry(); + inq.setVersion("0710"); + Response response = client.process(inq); + logger.trace(response.toString()); + assertTrue( response.getPreviouslyWhiteListed()!= null); + } + + @Test + public void test3dSecureMerchantResponseExistWithRisCallVersion_0710() throws RisException { + logger.debug("running get 3D secure merchant response test"); ; + Inquiry inq = getInquiry(); + inq.setVersion("0710"); + Response response = client.process(inq); + logger.trace(response.toString()); + assertTrue( response.get3DSecureMerchantResponse() != null); + } + + @Test + public void testDefaultRisCallVersion() throws RisException { + logger.debug("running default ris call version test"); ; + Inquiry inq = getInquiry(); + Response response = client.process(inq); + logger.trace(response.toString()); + assertEquals("0710", response.getVersion()); + } + private static Inquiry getInquiry() { Inquiry inq = Utilities.defaultInquiry(Utilities.generateUniqueId(), 0); inq.setMerchantId(MERCHANT_ID); From f4153aa0fb984d089ac5d012d0230d47a44af4e9 Mon Sep 17 00:00:00 2001 From: "CORP\\manoj.mewara" Date: Wed, 10 Mar 2021 16:30:26 +0530 Subject: [PATCH 3/4] Added version number to release --- README.md | 4 ++-- RELEASE-NOTES.md | 7 +++++++ kount-ris-sdk/pom.xml | 4 ++-- pom.xml | 2 +- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ed27a31..d40bd61 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Kount Java SDK ### What is this repository for? ### * Contains sources, tests, and resources for the Kount Java SDK -* SDK version: `7.3.5` +* SDK version: `7.3.7` ### How do I get set up? ### @@ -25,7 +25,7 @@ Kount Java SDK ` com.kount kount-ris-sdk - 7.3.5 + 7.3.7 ` ### Contribution guidelines ### diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index c2c64ed..07bf7be 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -1,3 +1,10 @@ +Version 7.3.7 changes +--------------------- +10/03/2021 + +1. Updated the default version of the RIS call to use version 0710 +2. Added new gatters respective to new RIS version + Version 7.1.0 changes --------------------- 07/02/2017 diff --git a/kount-ris-sdk/pom.xml b/kount-ris-sdk/pom.xml index 8566fa3..e8911aa 100644 --- a/kount-ris-sdk/pom.xml +++ b/kount-ris-sdk/pom.xml @@ -6,12 +6,12 @@ com.kount kount-java-parent - 7.3.6 + 7.3.7 com.kount kount-ris-sdk - 7.3.6 + 7.3.7 jar diff --git a/pom.xml b/pom.xml index f680cc3..8bffafb 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.kount kount-java-parent - 7.3.6 + 7.3.7 pom Kount Java SDK From bee9c834adde7d2e06f22e386b63af7fc64b01ff Mon Sep 17 00:00:00 2001 From: "CORP\\manoj.mewara" Date: Wed, 10 Mar 2021 16:52:02 +0530 Subject: [PATCH 4/4] updated release notes --- RELEASE-NOTES.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 07bf7be..cf355d2 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -3,7 +3,8 @@ Version 7.3.7 changes 10/03/2021 1. Updated the default version of the RIS call to use version 0710 -2. Added new gatters respective to new RIS version +2. Added new getters respective to new RIS version +3. Removed data validations from SDK side Version 7.1.0 changes ---------------------