From 5a6686be665e932c792dfb52b54be841072a4c04 Mon Sep 17 00:00:00 2001 From: Przemyslaw Poznienski Date: Fri, 19 Jun 2026 14:36:15 +0200 Subject: [PATCH 1/3] [COREP-5148] fix values --- CHANGELOG.md | 5 ++++- build.gradle | 2 +- readme.md | 2 +- src/main/resources/xsd/APIResponse.xsd | 7 ++++--- .../api/MerchantApi_ParsePostBackXmlResponseTests.java | 4 ++-- src/test/resources/com/pensio/api/txt/CardTypeCredit.xml | 2 +- 6 files changed, 13 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ae8b703..b62531b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,11 @@ # Changelog All notable changes to this project will be documented in this file. +## [3.1.18] +- Fix `Type` element from (`CardType`: `CREDIT`, `DEBIT`, `CHARGE_CARD`) to `CardInformation` in API responses, exposing the card type derived from the BIN interchange group. + ## [3.1.17] -- Added optional `Type` element (`CardType`: `CREDIT`, `DEBIT`, `CHARGE_CARD`) to `CardInformation` in API responses, exposing the card type derived from the BIN interchange group. +- Added optional `Type` element (`CardType`: `Consumer Credit`, `Consumer Debit`, `Corporate`, `Corporate Debit`) to `CardInformation` in API responses, exposing the card type (BIN interchange group). ## [3.1.16] - Added identifier attribute on `MethodConfig` in `/getTerminals`. Fix content of `MethodConfig` to support different configuration (unbounded), based on the gateway response. diff --git a/build.gradle b/build.gradle index d73b3a8..7840c3e 100644 --- a/build.gradle +++ b/build.gradle @@ -9,7 +9,7 @@ plugins { } group = 'com.altapay' -version = '3.1.17' +version = '3.1.18' repositories { mavenCentral() diff --git a/readme.md b/readme.md index 205ad8d..95eba7a 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.17 + 3.1.18 ### Gradle diff --git a/src/main/resources/xsd/APIResponse.xsd b/src/main/resources/xsd/APIResponse.xsd index 5590c77..42fb778 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 From c607aa4cac39e99fa79459c0d757fea5ab8e7d01 Mon Sep 17 00:00:00 2001 From: Przemyslaw Poznienski Date: Mon, 22 Jun 2026 12:35:18 +0200 Subject: [PATCH 2/3] [COREP-5148] normalise values --- CHANGELOG.md | 4 ++-- readme.md | 2 +- src/main/resources/xsd/APIResponse.xsd | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b62531b..07312b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,10 +2,10 @@ All notable changes to this project will be documented in this file. ## [3.1.18] -- Fix `Type` element from (`CardType`: `CREDIT`, `DEBIT`, `CHARGE_CARD`) to `CardInformation` in API responses, exposing the card type derived from the BIN interchange group. +- Changed `CardType` values for the `CardInformation` `Type` element to the BIN interchange group classifications: `Consumer Credit`, `Consumer Debit`, `Corporate Credit`, `Corporate Debit`. ## [3.1.17] -- Added optional `Type` element (`CardType`: `Consumer Credit`, `Consumer Debit`, `Corporate`, `Corporate Debit`) to `CardInformation` in API responses, exposing the card type (BIN interchange group). +- Added optional `Type` element (`CardType`: `CREDIT`, `DEBIT`) to `CardInformation` in API responses, exposing the card type derived from the BIN interchange group. ## [3.1.16] - Added identifier attribute on `MethodConfig` in `/getTerminals`. Fix content of `MethodConfig` to support different configuration (unbounded), based on the gateway response. diff --git a/readme.md b/readme.md index 95eba7a..7e7435a 100644 --- a/readme.md +++ b/readme.md @@ -54,7 +54,7 @@ For integrating Java projects with the AltaPay gateway. ### Gradle - implementation 'com.altapay:sdk-java:3.1.17' + implementation 'com.altapay:sdk-java:3.1.18' ## Changelog diff --git a/src/main/resources/xsd/APIResponse.xsd b/src/main/resources/xsd/APIResponse.xsd index 42fb778..45f04a2 100644 --- a/src/main/resources/xsd/APIResponse.xsd +++ b/src/main/resources/xsd/APIResponse.xsd @@ -810,7 +810,7 @@ - + From ebf8b92b0125b9a5fed19c2f001ef24efd42f085 Mon Sep 17 00:00:00 2001 From: Przemyslaw Poznienski Date: Mon, 22 Jun 2026 12:55:46 +0200 Subject: [PATCH 3/3] [COREP-5148] bump version --- build.gradle | 2 +- readme.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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