diff --git a/CHANGELOG.md b/CHANGELOG.md
index f161f33..10052ed 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,13 @@
# Changelog
+## [2.1.7] - 15/JUL/2024
+### Added
+- Inclusao de Campos SDWO
+
+## [2.1.6] - 17/JAN/2024
+### Added
+- Criação dos campos de SDWO
+
## [2.1.5] - 29/NOV/2023
### Added
- Inclusão do sendNotification e responseMode no 3DS para callback
diff --git a/README.md b/README.md
index 3229f95..8838106 100644
--- a/README.md
+++ b/README.md
@@ -516,7 +516,14 @@ maxiPago.sale()
.setId(12345)
.setProcessingType(SDWOProcessingType.CASH_IN)
.setSenderTaxIdentification("56326738000106")
- .setBusinessApplicationIdentifier(BusinessApplicationIdentifier.CBPS)));
+ .setBusinessApplicationIdentifier(BusinessApplicationIdentifier.CBPS)
+ .setPaymentDestination("04")
+ .setMerchantTaxId("11122233344455")
+ .setReceiverData(new ReceiverData()
+ .setFirstName("Jose")
+ .setLastName("Silva")
+ .setTaxIdNumber("123556")
+ .setWalletAccountIdentification("342432409"))));
TransactionResponse response = maxiPago.transactionRequest().execute();
diff --git a/pom.xml b/pom.xml
index 29c370b..76a4036 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
com.maxipago
sdk-java-v2
- 2.1.6
+ 2.1.7
diff --git a/src/main/java/com/maxipago/ReceiverData.java b/src/main/java/com/maxipago/ReceiverData.java
new file mode 100644
index 0000000..fec04d7
--- /dev/null
+++ b/src/main/java/com/maxipago/ReceiverData.java
@@ -0,0 +1,31 @@
+package com.maxipago;
+
+import javax.xml.bind.annotation.XmlElement;
+
+public class ReceiverData {
+ @XmlElement
+ public String firstName;
+ @XmlElement
+ public String lastName;
+ @XmlElement
+ public String taxIdNumber;
+ @XmlElement
+ public String walletAccountIdentification;
+
+ public ReceiverData setFirstName(String firstName) {
+ this.firstName = firstName;
+ return this;
+ }
+ public ReceiverData setLastName(String lastName) {
+ this.lastName = lastName;
+ return this;
+ }
+ public ReceiverData setTaxIdNumber(String taxIdNumber) {
+ this.taxIdNumber = taxIdNumber;
+ return this;
+ }
+ public ReceiverData setWalletAccountIdentification(String walletAccountIdentification) {
+ this.walletAccountIdentification = walletAccountIdentification;
+ return this;
+ }
+}
diff --git a/src/main/java/com/maxipago/SDWO.java b/src/main/java/com/maxipago/SDWO.java
index 08f9144..bf2862a 100644
--- a/src/main/java/com/maxipago/SDWO.java
+++ b/src/main/java/com/maxipago/SDWO.java
@@ -14,6 +14,13 @@ public class SDWO {
public String senderTaxIdentification;
@XmlElement
public String businessApplicationIdentifier;
+ @XmlElement
+ public String paymentDestination;
+ @XmlElement
+ public String merchantTaxId;
+ @XmlElement
+ public ReceiverData receiverData;
+
public SDWO setId(int id) {
this.id = id;
@@ -34,4 +41,19 @@ public SDWO setBusinessApplicationIdentifier(BusinessApplicationIdentifier busin
this.businessApplicationIdentifier = businessApplicationIdentifier.toString();
return this;
}
+
+ public SDWO setPaymentDestination(String paymentDestination) {
+ this.paymentDestination = paymentDestination;
+ return this;
+ }
+
+ public SDWO setMerchantTaxId(String merchantTaxId) {
+ this.merchantTaxId = merchantTaxId;
+ return this;
+ }
+
+ public SDWO setReceiverData(ReceiverData receiverData) {
+ this.receiverData = receiverData;
+ return this;
+ }
}