diff --git a/CHANGELOG.md b/CHANGELOG.md index 8366e0c..ef7b129 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.23] +- Extend `AcquirerTransactionData` with `MerchantIdentifier` attribute + ## [3.1.22] - Added `saleInvoiceNumber` support to `PaymentRequest` and mapped `sale_invoice_number` parameter in `PensioMerchantAPI`. diff --git a/build.gradle b/build.gradle index d82d9e0..426327a 100644 --- a/build.gradle +++ b/build.gradle @@ -9,7 +9,7 @@ plugins { } group = 'com.altapay' -version = '3.1.22' +version = '3.1.23' repositories { mavenCentral() diff --git a/build/generated/sources/xjc/java/com/pensio/api/generated/AcquirerTransactionData.java b/build/generated/sources/xjc/java/com/pensio/api/generated/AcquirerTransactionData.java deleted file mode 100644 index 2c5d6f6..0000000 --- a/build/generated/sources/xjc/java/com/pensio/api/generated/AcquirerTransactionData.java +++ /dev/null @@ -1,73 +0,0 @@ - -package com.pensio.api.generated; - -import java.util.ArrayList; -import java.util.List; -import jakarta.annotation.Generated; -import jakarta.xml.bind.annotation.XmlAccessType; -import jakarta.xml.bind.annotation.XmlAccessorType; -import jakarta.xml.bind.annotation.XmlElement; -import jakarta.xml.bind.annotation.XmlType; - - -/** - *

Java class for AcquirerTransactionData complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="AcquirerTransactionData">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="Group" type="{}AcquirerTransactionDataGroup" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "AcquirerTransactionData", propOrder = { - "group" -}) -@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v3.0.2", date = "2026-05-21T09:05:56+02:00") -public class AcquirerTransactionData { - - @XmlElement(name = "Group") - @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v3.0.2", date = "2026-05-21T09:05:56+02:00") - protected List group; - - /** - * Gets the value of the group property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the Jakarta XML Binding object. - * This is why there is not a set method for the group property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getGroup().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link AcquirerTransactionDataGroup } - * - * - */ - @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v3.0.2", date = "2026-05-21T09:05:56+02:00") - public List getGroup() { - if (group == null) { - group = new ArrayList<>(); - } - return this.group; - } - -} diff --git a/build/generated/sources/xjc/java/com/pensio/api/generated/AcquirerTransactionDataGroup.java b/build/generated/sources/xjc/java/com/pensio/api/generated/AcquirerTransactionDataGroup.java deleted file mode 100644 index 535480d..0000000 --- a/build/generated/sources/xjc/java/com/pensio/api/generated/AcquirerTransactionDataGroup.java +++ /dev/null @@ -1,104 +0,0 @@ - -package com.pensio.api.generated; - -import java.util.ArrayList; -import java.util.List; -import jakarta.annotation.Generated; -import jakarta.xml.bind.annotation.XmlAccessType; -import jakarta.xml.bind.annotation.XmlAccessorType; -import jakarta.xml.bind.annotation.XmlAttribute; -import jakarta.xml.bind.annotation.XmlElement; -import jakarta.xml.bind.annotation.XmlType; - - -/** - *

Java class for AcquirerTransactionDataGroup complex type. - * - *

The following schema fragment specifies the expected content contained within this class. - * - *

- * <complexType name="AcquirerTransactionDataGroup">
- *   <complexContent>
- *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- *       <sequence>
- *         <element name="Entry" type="{}AcquirerTransactionDataEntry" maxOccurs="unbounded" minOccurs="0"/>
- *       </sequence>
- *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
- *     </restriction>
- *   </complexContent>
- * </complexType>
- * 
- * - * - */ -@XmlAccessorType(XmlAccessType.FIELD) -@XmlType(name = "AcquirerTransactionDataGroup", propOrder = { - "entry" -}) -@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v3.0.2", date = "2026-05-21T09:05:56+02:00") -public class AcquirerTransactionDataGroup { - - @XmlElement(name = "Entry") - @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v3.0.2", date = "2026-05-21T09:05:56+02:00") - protected List entry; - @XmlAttribute(name = "name", required = true) - @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v3.0.2", date = "2026-05-21T09:05:56+02:00") - protected String name; - - /** - * Gets the value of the entry property. - * - *

- * This accessor method returns a reference to the live list, - * not a snapshot. Therefore any modification you make to the - * returned list will be present inside the Jakarta XML Binding object. - * This is why there is not a set method for the entry property. - * - *

- * For example, to add a new item, do as follows: - *

-     *    getEntry().add(newItem);
-     * 
- * - * - *

- * Objects of the following type(s) are allowed in the list - * {@link AcquirerTransactionDataEntry } - * - * - */ - @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v3.0.2", date = "2026-05-21T09:05:56+02:00") - public List getEntry() { - if (entry == null) { - entry = new ArrayList<>(); - } - return this.entry; - } - - /** - * Gets the value of the name property. - * - * @return - * possible object is - * {@link String } - * - */ - @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v3.0.2", date = "2026-05-21T09:05:56+02:00") - public String getName() { - return name; - } - - /** - * Sets the value of the name property. - * - * @param value - * allowed object is - * {@link String } - * - */ - @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v3.0.2", date = "2026-05-21T09:05:56+02:00") - public void setName(String value) { - this.name = value; - } - -} diff --git a/readme.md b/readme.md index b182a10..ddf1788 100644 --- a/readme.md +++ b/readme.md @@ -49,12 +49,12 @@ For integrating Java projects with the AltaPay gateway. com.altapay sdk-java - 3.1.22 + 3.1.23 ### Gradle - implementation 'com.altapay:sdk-java:3.1.22' + implementation 'com.altapay:sdk-java:3.1.23' ## Changelog diff --git a/src/main/resources/xsd/APIResponse.xsd b/src/main/resources/xsd/APIResponse.xsd index d8f332e..6af8884 100644 --- a/src/main/resources/xsd/APIResponse.xsd +++ b/src/main/resources/xsd/APIResponse.xsd @@ -858,6 +858,7 @@ + diff --git a/src/test/java/com/pensio/api/PensioAPIResponseParserTest.java b/src/test/java/com/pensio/api/PensioAPIResponseParserTest.java index b444b33..698fe08 100644 --- a/src/test/java/com/pensio/api/PensioAPIResponseParserTest.java +++ b/src/test/java/com/pensio/api/PensioAPIResponseParserTest.java @@ -29,6 +29,7 @@ void parsesAcquirerTransactionDataOnTransaction() throws Exception { " " + " 1" + " " + + " mid_123456" + " " + " 32" + " 001" + @@ -46,6 +47,7 @@ void parsesAcquirerTransactionDataOnTransaction() throws Exception { AcquirerTransactionData atd = t.getAcquirerTransactionData(); assertNotNull(atd); + assertEquals("mid_123456", atd.getMerchantIdentifier()); assertEquals(1, atd.getGroup().size()); AcquirerTransactionDataGroup group = atd.getGroup().get(0);