com.paypal.api.payments.BankToken Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rest-api-sdk Show documentation
Show all versions of rest-api-sdk Show documentation
PayPal SDK for integrating with the REST APIs
// Generated by delombok at Wed Oct 12 18:15:55 CDT 2016
package com.paypal.api.payments;
import com.paypal.base.rest.PayPalModel;
public class BankToken extends PayPalModel {
/**
* ID of a previously saved Bank resource using /vault/bank API.
*/
private String bankId;
/**
* The unique identifier of the payer used when saving this bank using /vault/bank API.
*/
private String externalCustomerId;
/**
* Identifier of the direct debit mandate to validate. Currently supported only for EU bank accounts(SEPA).
*/
private String mandateReferenceNumber;
/**
* Default Constructor
*/
public BankToken() {
}
/**
* Parameterized Constructor
*/
public BankToken(String bankId, String externalCustomerId) {
this.bankId = bankId;
this.externalCustomerId = externalCustomerId;
}
/**
* ID of a previously saved Bank resource using /vault/bank API.
*/
@java.lang.SuppressWarnings("all")
public String getBankId() {
return this.bankId;
}
/**
* The unique identifier of the payer used when saving this bank using /vault/bank API.
*/
@java.lang.SuppressWarnings("all")
public String getExternalCustomerId() {
return this.externalCustomerId;
}
/**
* Identifier of the direct debit mandate to validate. Currently supported only for EU bank accounts(SEPA).
*/
@java.lang.SuppressWarnings("all")
public String getMandateReferenceNumber() {
return this.mandateReferenceNumber;
}
/**
* ID of a previously saved Bank resource using /vault/bank API.
* @return this
*/
@java.lang.SuppressWarnings("all")
public BankToken setBankId(final String bankId) {
this.bankId = bankId;
return this;
}
/**
* The unique identifier of the payer used when saving this bank using /vault/bank API.
* @return this
*/
@java.lang.SuppressWarnings("all")
public BankToken setExternalCustomerId(final String externalCustomerId) {
this.externalCustomerId = externalCustomerId;
return this;
}
/**
* Identifier of the direct debit mandate to validate. Currently supported only for EU bank accounts(SEPA).
* @return this
*/
@java.lang.SuppressWarnings("all")
public BankToken setMandateReferenceNumber(final String mandateReferenceNumber) {
this.mandateReferenceNumber = mandateReferenceNumber;
return this;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof BankToken)) return false;
final BankToken other = (BankToken) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (!super.equals(o)) return false;
final java.lang.Object this$bankId = this.getBankId();
final java.lang.Object other$bankId = other.getBankId();
if (this$bankId == null ? other$bankId != null : !this$bankId.equals(other$bankId)) return false;
final java.lang.Object this$externalCustomerId = this.getExternalCustomerId();
final java.lang.Object other$externalCustomerId = other.getExternalCustomerId();
if (this$externalCustomerId == null ? other$externalCustomerId != null : !this$externalCustomerId.equals(other$externalCustomerId)) return false;
final java.lang.Object this$mandateReferenceNumber = this.getMandateReferenceNumber();
final java.lang.Object other$mandateReferenceNumber = other.getMandateReferenceNumber();
if (this$mandateReferenceNumber == null ? other$mandateReferenceNumber != null : !this$mandateReferenceNumber.equals(other$mandateReferenceNumber)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof BankToken;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
public int hashCode() {
final int PRIME = 59;
int result = 1;
result = result * PRIME + super.hashCode();
final java.lang.Object $bankId = this.getBankId();
result = result * PRIME + ($bankId == null ? 43 : $bankId.hashCode());
final java.lang.Object $externalCustomerId = this.getExternalCustomerId();
result = result * PRIME + ($externalCustomerId == null ? 43 : $externalCustomerId.hashCode());
final java.lang.Object $mandateReferenceNumber = this.getMandateReferenceNumber();
result = result * PRIME + ($mandateReferenceNumber == null ? 43 : $mandateReferenceNumber.hashCode());
return result;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy