diff --git a/src/main/java/com/adyen/model/PaymentRequest.java b/src/main/java/com/adyen/model/PaymentRequest.java index e2d35724b..792c2878e 100644 --- a/src/main/java/com/adyen/model/PaymentRequest.java +++ b/src/main/java/com/adyen/model/PaymentRequest.java @@ -44,6 +44,9 @@ public class PaymentRequest extends AbstractPaymentRequest { @SerializedName("bankAccount") private BankAccount bankAccount = null; + @SerializedName("store") + private String store = null; + /** * how the shopper interacts with the system */ @@ -266,6 +269,24 @@ public void setBankAccount(BankAccount bankAccount) { this.bankAccount = bankAccount; } + public PaymentRequest store(String store) { + this.store = store; + return this; + } + + /** + * store id from which the payment request is made from + * + * @return store + **/ + public String getStore() { + return store; + } + + public void setStore(String store) { + this.store = store; + } + @Override public boolean equals(Object o) { if (this == o) { @@ -275,8 +296,11 @@ public boolean equals(Object o) { return false; } PaymentRequest paymentRequest = (PaymentRequest) o; - return super.equals(paymentRequest) && Objects.equals(this.card, paymentRequest.card) && Objects.equals(this.mpiData, paymentRequest.mpiData) && Objects.equals(this.bankAccount, - paymentRequest.bankAccount); + return super.equals(paymentRequest) + && Objects.equals(this.card, paymentRequest.card) + && Objects.equals(this.mpiData, paymentRequest.mpiData) + && Objects.equals(this.bankAccount, paymentRequest.bankAccount) + && Objects.equals(this.store, paymentRequest.store); } @Override @@ -309,4 +333,3 @@ private String toIndentedString(Object o) { } } -