com.paypal.api.payments.PaymentInstruction 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.PayPalResource;
import java.util.List;
/**
* @deprecated PaymentInstruction object is not available for public use.
*/
public class PaymentInstruction extends PayPalResource {
/**
* ID of payment instruction
*/
private String referenceNumber;
/**
* Type of payment instruction
*/
private String instructionType;
/**
* Recipient bank Details.
*/
private RecipientBankingInstruction recipientBankingInstruction;
/**
* Amount to be transferred
*/
private Currency amount;
/**
* Date by which payment should be received
*/
private String paymentDueDate;
/**
* Additional text regarding payment handling
*/
private String note;
/**
*/
private List links;
/**
* Parameterized Constructor
*/
public PaymentInstruction(String referenceNumber, String instructionType, RecipientBankingInstruction recipientBankingInstruction, Currency amount) {
this.referenceNumber = referenceNumber;
this.instructionType = instructionType;
this.recipientBankingInstruction = recipientBankingInstruction;
this.amount = amount;
}
/**
* ID of payment instruction
*/
@java.lang.SuppressWarnings("all")
public String getReferenceNumber() {
return this.referenceNumber;
}
/**
* Type of payment instruction
*/
@java.lang.SuppressWarnings("all")
public String getInstructionType() {
return this.instructionType;
}
/**
* Recipient bank Details.
*/
@java.lang.SuppressWarnings("all")
public RecipientBankingInstruction getRecipientBankingInstruction() {
return this.recipientBankingInstruction;
}
/**
* Amount to be transferred
*/
@java.lang.SuppressWarnings("all")
public Currency getAmount() {
return this.amount;
}
/**
* Date by which payment should be received
*/
@java.lang.SuppressWarnings("all")
public String getPaymentDueDate() {
return this.paymentDueDate;
}
/**
* Additional text regarding payment handling
*/
@java.lang.SuppressWarnings("all")
public String getNote() {
return this.note;
}
/**
*/
@java.lang.SuppressWarnings("all")
public List getLinks() {
return this.links;
}
/**
* ID of payment instruction
* @return this
*/
@java.lang.SuppressWarnings("all")
public PaymentInstruction setReferenceNumber(final String referenceNumber) {
this.referenceNumber = referenceNumber;
return this;
}
/**
* Type of payment instruction
* @return this
*/
@java.lang.SuppressWarnings("all")
public PaymentInstruction setInstructionType(final String instructionType) {
this.instructionType = instructionType;
return this;
}
/**
* Recipient bank Details.
* @return this
*/
@java.lang.SuppressWarnings("all")
public PaymentInstruction setRecipientBankingInstruction(final RecipientBankingInstruction recipientBankingInstruction) {
this.recipientBankingInstruction = recipientBankingInstruction;
return this;
}
/**
* Amount to be transferred
* @return this
*/
@java.lang.SuppressWarnings("all")
public PaymentInstruction setAmount(final Currency amount) {
this.amount = amount;
return this;
}
/**
* Date by which payment should be received
* @return this
*/
@java.lang.SuppressWarnings("all")
public PaymentInstruction setPaymentDueDate(final String paymentDueDate) {
this.paymentDueDate = paymentDueDate;
return this;
}
/**
* Additional text regarding payment handling
* @return this
*/
@java.lang.SuppressWarnings("all")
public PaymentInstruction setNote(final String note) {
this.note = note;
return this;
}
/**
*
* @return this
*/
@java.lang.SuppressWarnings("all")
public PaymentInstruction setLinks(final List links) {
this.links = links;
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 PaymentInstruction)) return false;
final PaymentInstruction other = (PaymentInstruction) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (!super.equals(o)) return false;
final java.lang.Object this$referenceNumber = this.getReferenceNumber();
final java.lang.Object other$referenceNumber = other.getReferenceNumber();
if (this$referenceNumber == null ? other$referenceNumber != null : !this$referenceNumber.equals(other$referenceNumber)) return false;
final java.lang.Object this$instructionType = this.getInstructionType();
final java.lang.Object other$instructionType = other.getInstructionType();
if (this$instructionType == null ? other$instructionType != null : !this$instructionType.equals(other$instructionType)) return false;
final java.lang.Object this$recipientBankingInstruction = this.getRecipientBankingInstruction();
final java.lang.Object other$recipientBankingInstruction = other.getRecipientBankingInstruction();
if (this$recipientBankingInstruction == null ? other$recipientBankingInstruction != null : !this$recipientBankingInstruction.equals(other$recipientBankingInstruction)) return false;
final java.lang.Object this$amount = this.getAmount();
final java.lang.Object other$amount = other.getAmount();
if (this$amount == null ? other$amount != null : !this$amount.equals(other$amount)) return false;
final java.lang.Object this$paymentDueDate = this.getPaymentDueDate();
final java.lang.Object other$paymentDueDate = other.getPaymentDueDate();
if (this$paymentDueDate == null ? other$paymentDueDate != null : !this$paymentDueDate.equals(other$paymentDueDate)) return false;
final java.lang.Object this$note = this.getNote();
final java.lang.Object other$note = other.getNote();
if (this$note == null ? other$note != null : !this$note.equals(other$note)) return false;
final java.lang.Object this$links = this.getLinks();
final java.lang.Object other$links = other.getLinks();
if (this$links == null ? other$links != null : !this$links.equals(other$links)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof PaymentInstruction;
}
@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 $referenceNumber = this.getReferenceNumber();
result = result * PRIME + ($referenceNumber == null ? 43 : $referenceNumber.hashCode());
final java.lang.Object $instructionType = this.getInstructionType();
result = result * PRIME + ($instructionType == null ? 43 : $instructionType.hashCode());
final java.lang.Object $recipientBankingInstruction = this.getRecipientBankingInstruction();
result = result * PRIME + ($recipientBankingInstruction == null ? 43 : $recipientBankingInstruction.hashCode());
final java.lang.Object $amount = this.getAmount();
result = result * PRIME + ($amount == null ? 43 : $amount.hashCode());
final java.lang.Object $paymentDueDate = this.getPaymentDueDate();
result = result * PRIME + ($paymentDueDate == null ? 43 : $paymentDueDate.hashCode());
final java.lang.Object $note = this.getNote();
result = result * PRIME + ($note == null ? 43 : $note.hashCode());
final java.lang.Object $links = this.getLinks();
result = result * PRIME + ($links == null ? 43 : $links.hashCode());
return result;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy