Skip to content

Commit

Permalink
Merge pull request #1118 from Adyen/fix/terminal-api-redemptiontype
Browse files Browse the repository at this point in the history
Add redemptionType to root level of SaleToAcquirerData
  • Loading branch information
Aleffio authored Aug 24, 2023
2 parents 49420b6 + 2151b6b commit d906dd3
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/main/java/com/adyen/model/terminal/SaleToAcquirerData.java
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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
Expand All @@ -261,7 +272,8 @@ public String toString() {
", additionalData=" + additionalData +
", authorisationType=" + authorisationType +
", ssc='" + ssc + '\'' +
", recurringProcessingModel=" + recurringProcessingModel +
", recurringProcessingModel=" + recurringProcessingModel + '\'' +
", redemptionType=" + redemptionType +
'}';
}

Expand Down

0 comments on commit d906dd3

Please sign in to comment.