From 9c3d671f43b2e612df9043352de451fc645ccce5 Mon Sep 17 00:00:00 2001 From: alessio Date: Thu, 24 Aug 2023 11:40:13 +0200 Subject: [PATCH] Add redemptionType to root level of SaleToAcquirerData --- .../model/terminal/SaleToAcquirerData.java | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/adyen/model/terminal/SaleToAcquirerData.java b/src/main/java/com/adyen/model/terminal/SaleToAcquirerData.java index ef42a5418..837045f81 100644 --- a/src/main/java/com/adyen/model/terminal/SaleToAcquirerData.java +++ b/src/main/java/com/adyen/model/terminal/SaleToAcquirerData.java @@ -52,6 +52,7 @@ public class SaleToAcquirerData { private String authorisationType; private String ssc; private RecurringProcessingModelEnum recurringProcessingModel; + private String redemptionType; private static final Gson PRETTY_PRINT_GSON = new GsonBuilder().setPrettyPrinting().create(); public SaleToAcquirerData() { @@ -207,6 +208,15 @@ public String getSsc() { public void setSsc(String ssc) { this.ssc = ssc; } + + public String getRedemptionType() { + return redemptionType; + } + + public void setRedemptionType(String redemptionType) { + this.redemptionType = redemptionType; + } + public static Gson getPrettyPrintGson() { return PRETTY_PRINT_GSON; } @@ -235,12 +245,13 @@ public boolean equals(Object o) { Objects.equals(additionalData, that.additionalData) && Objects.equals(authorisationType, that.authorisationType) && Objects.equals(ssc, that.ssc) && - Objects.equals(recurringProcessingModel, that.recurringProcessingModel); + Objects.equals(recurringProcessingModel, that.recurringProcessingModel) && + Objects.equals(redemptionType, that.redemptionType); } @Override public int hashCode() { - return Objects.hash(metadata, shopperEmail, shopperReference, recurringContract, shopperStatement, recurringDetailName, recurringTokenService, store, merchantAccount, currency, applicationInfo, tenderOption, additionalData, authorisationType, ssc, recurringProcessingModel); + return Objects.hash(metadata, shopperEmail, shopperReference, recurringContract, shopperStatement, recurringDetailName, recurringTokenService, store, merchantAccount, currency, applicationInfo, tenderOption, additionalData, authorisationType, ssc, recurringProcessingModel, redemptionType); } @Override @@ -261,7 +272,8 @@ public String toString() { ", additionalData=" + additionalData + ", authorisationType=" + authorisationType + ", ssc='" + ssc + '\'' + - ", recurringProcessingModel=" + recurringProcessingModel + + ", recurringProcessingModel=" + recurringProcessingModel + '\'' + + ", redemptionType=" + redemptionType + '}'; }