diff --git a/CHANGELOG.md b/CHANGELOG.md
index 088e74c..ecf08f0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,9 @@
# Changelog
All notable changes to this project will be documented in this file.
+## [3.1.19]
+- Changed `CardType` values for the `CardInformation` `Type` element to the BIN interchange group classifications: `Consumer Credit`, `Consumer Debit`, `Corporate Credit`, `Corporate Debit`.
+
## [3.1.18]
- Added possibility to pass client browser data in `MerchantApi` to support 3DS processing for wallet nontokenized flow (eg. GooglePay from desktop browser).
diff --git a/build.gradle b/build.gradle
index 7840c3e..0ded102 100644
--- a/build.gradle
+++ b/build.gradle
@@ -9,7 +9,7 @@ plugins {
}
group = 'com.altapay'
-version = '3.1.18'
+version = '3.1.19'
repositories {
mavenCentral()
diff --git a/readme.md b/readme.md
index 7e7435a..1577e4b 100644
--- a/readme.md
+++ b/readme.md
@@ -49,7 +49,7 @@ For integrating Java projects with the AltaPay gateway.
com.altapay
sdk-java
- 3.1.18
+ 3.1.19
### Gradle
diff --git a/src/main/resources/xsd/APIResponse.xsd b/src/main/resources/xsd/APIResponse.xsd
index 5590c77..45f04a2 100644
--- a/src/main/resources/xsd/APIResponse.xsd
+++ b/src/main/resources/xsd/APIResponse.xsd
@@ -808,9 +808,10 @@
-
-
-
+
+
+
+
diff --git a/src/test/java/com/pensio/api/MerchantApi_ParsePostBackXmlResponseTests.java b/src/test/java/com/pensio/api/MerchantApi_ParsePostBackXmlResponseTests.java
index 861fe2a..109c23a 100644
--- a/src/test/java/com/pensio/api/MerchantApi_ParsePostBackXmlResponseTests.java
+++ b/src/test/java/com/pensio/api/MerchantApi_ParsePostBackXmlResponseTests.java
@@ -82,7 +82,7 @@ void ParsePostBackXmlResponse_ReadECommerceWithout3dSecurePaymentSource() throws
}
@Test
- void parseCardInformationType_credit() throws PensioAPIException, IOException, URISyntaxException {
+ void parseCardInformationType_consumerCredit() throws PensioAPIException, IOException, URISyntaxException {
String xmlResponse = readFile("com/pensio/api/txt/CardTypeCredit.xml");
APIResponse response = api.parsePostBackXMLParameter(xmlResponse);
@@ -92,7 +92,7 @@ void parseCardInformationType_credit() throws PensioAPIException, IOException, U
.get(0)
.getCardInformation()
.getType();
- Assertions.assertEquals(com.pensio.api.generated.CardType.CREDIT, type);
+ Assertions.assertEquals(com.pensio.api.generated.CardType.CONSUMER_CREDIT, type);
}
@Test
diff --git a/src/test/resources/com/pensio/api/txt/CardTypeCredit.xml b/src/test/resources/com/pensio/api/txt/CardTypeCredit.xml
index 915f34d..9b939da 100644
--- a/src/test/resources/com/pensio/api/txt/CardTypeCredit.xml
+++ b/src/test/resources/com/pensio/api/txt/CardTypeCredit.xml
@@ -35,7 +35,7 @@
GB
0466
Visa
- CREDIT
+ Consumer Credit
Not_Attempted
Merchant