Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 26 additions & 3 deletions src/main/java/com/adyen/model/PaymentRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ public class PaymentRequest extends AbstractPaymentRequest<PaymentRequest> {
@SerializedName("bankAccount")
private BankAccount bankAccount = null;

@SerializedName("store")
private String store = null;

/**
* how the shopper interacts with the system
*/
Expand Down Expand Up @@ -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) {
Expand All @@ -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
Expand Down Expand Up @@ -309,4 +333,3 @@ private String toIndentedString(Object o) {
}

}