com.paypal.api.payments.RefundRequest 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
The newest version!
// Generated by delombok at Thu Nov 16 13:48:05 CST 2017
package com.paypal.api.payments;
import com.paypal.base.rest.PayPalModel;
public class RefundRequest extends PayPalModel {
/**
* Details including both refunded amount (to payer) and refunded fee (to payee).
*/
private Amount amount;
/**
* Description of what is being refunded for. Character length and limitations: 255 single-byte alphanumeric characters.
*/
private String description;
/**
* Type of refund you are making.
*/
private String refundType;
/**
* Type of PayPal funding source (balance or eCheck) that can be used for auto refund.
*/
private String refundSource;
/**
* Reason description for the Sale transaction being refunded.
*/
private String reason;
/**
* The invoice number that is used to track this payment. Character length and limitations: 127 single-byte alphanumeric characters.
*/
private String invoiceNumber;
/**
* Flag to indicate that the buyer was already given store credit for a given transaction.
*/
private Boolean refundAdvice;
/**
* It indicates that the resource id passed is not processed by payments platform
*/
private String isNonPlatformTransaction;
/**
* Default Constructor
*/
public RefundRequest() {
}
/**
* Details including both refunded amount (to payer) and refunded fee (to payee).
*/
@java.lang.SuppressWarnings("all")
public Amount getAmount() {
return this.amount;
}
/**
* Description of what is being refunded for. Character length and limitations: 255 single-byte alphanumeric characters.
*/
@java.lang.SuppressWarnings("all")
public String getDescription() {
return this.description;
}
/**
* Type of refund you are making.
*/
@java.lang.SuppressWarnings("all")
public String getRefundType() {
return this.refundType;
}
/**
* Type of PayPal funding source (balance or eCheck) that can be used for auto refund.
*/
@java.lang.SuppressWarnings("all")
public String getRefundSource() {
return this.refundSource;
}
/**
* Reason description for the Sale transaction being refunded.
*/
@java.lang.SuppressWarnings("all")
public String getReason() {
return this.reason;
}
/**
* The invoice number that is used to track this payment. Character length and limitations: 127 single-byte alphanumeric characters.
*/
@java.lang.SuppressWarnings("all")
public String getInvoiceNumber() {
return this.invoiceNumber;
}
/**
* Flag to indicate that the buyer was already given store credit for a given transaction.
*/
@java.lang.SuppressWarnings("all")
public Boolean getRefundAdvice() {
return this.refundAdvice;
}
/**
* It indicates that the resource id passed is not processed by payments platform
*/
@java.lang.SuppressWarnings("all")
public String getIsNonPlatformTransaction() {
return this.isNonPlatformTransaction;
}
/**
* Details including both refunded amount (to payer) and refunded fee (to payee).
* @return this
*/
@java.lang.SuppressWarnings("all")
public RefundRequest setAmount(final Amount amount) {
this.amount = amount;
return this;
}
/**
* Description of what is being refunded for. Character length and limitations: 255 single-byte alphanumeric characters.
* @return this
*/
@java.lang.SuppressWarnings("all")
public RefundRequest setDescription(final String description) {
this.description = description;
return this;
}
/**
* Type of refund you are making.
* @return this
*/
@java.lang.SuppressWarnings("all")
public RefundRequest setRefundType(final String refundType) {
this.refundType = refundType;
return this;
}
/**
* Type of PayPal funding source (balance or eCheck) that can be used for auto refund.
* @return this
*/
@java.lang.SuppressWarnings("all")
public RefundRequest setRefundSource(final String refundSource) {
this.refundSource = refundSource;
return this;
}
/**
* Reason description for the Sale transaction being refunded.
* @return this
*/
@java.lang.SuppressWarnings("all")
public RefundRequest setReason(final String reason) {
this.reason = reason;
return this;
}
/**
* The invoice number that is used to track this payment. Character length and limitations: 127 single-byte alphanumeric characters.
* @return this
*/
@java.lang.SuppressWarnings("all")
public RefundRequest setInvoiceNumber(final String invoiceNumber) {
this.invoiceNumber = invoiceNumber;
return this;
}
/**
* Flag to indicate that the buyer was already given store credit for a given transaction.
* @return this
*/
@java.lang.SuppressWarnings("all")
public RefundRequest setRefundAdvice(final Boolean refundAdvice) {
this.refundAdvice = refundAdvice;
return this;
}
/**
* It indicates that the resource id passed is not processed by payments platform
* @return this
*/
@java.lang.SuppressWarnings("all")
public RefundRequest setIsNonPlatformTransaction(final String isNonPlatformTransaction) {
this.isNonPlatformTransaction = isNonPlatformTransaction;
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 RefundRequest)) return false;
final RefundRequest other = (RefundRequest) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (!super.equals(o)) 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$description = this.getDescription();
final java.lang.Object other$description = other.getDescription();
if (this$description == null ? other$description != null : !this$description.equals(other$description)) return false;
final java.lang.Object this$refundType = this.getRefundType();
final java.lang.Object other$refundType = other.getRefundType();
if (this$refundType == null ? other$refundType != null : !this$refundType.equals(other$refundType)) return false;
final java.lang.Object this$refundSource = this.getRefundSource();
final java.lang.Object other$refundSource = other.getRefundSource();
if (this$refundSource == null ? other$refundSource != null : !this$refundSource.equals(other$refundSource)) return false;
final java.lang.Object this$reason = this.getReason();
final java.lang.Object other$reason = other.getReason();
if (this$reason == null ? other$reason != null : !this$reason.equals(other$reason)) return false;
final java.lang.Object this$invoiceNumber = this.getInvoiceNumber();
final java.lang.Object other$invoiceNumber = other.getInvoiceNumber();
if (this$invoiceNumber == null ? other$invoiceNumber != null : !this$invoiceNumber.equals(other$invoiceNumber)) return false;
final java.lang.Object this$refundAdvice = this.getRefundAdvice();
final java.lang.Object other$refundAdvice = other.getRefundAdvice();
if (this$refundAdvice == null ? other$refundAdvice != null : !this$refundAdvice.equals(other$refundAdvice)) return false;
final java.lang.Object this$isNonPlatformTransaction = this.getIsNonPlatformTransaction();
final java.lang.Object other$isNonPlatformTransaction = other.getIsNonPlatformTransaction();
if (this$isNonPlatformTransaction == null ? other$isNonPlatformTransaction != null : !this$isNonPlatformTransaction.equals(other$isNonPlatformTransaction)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof RefundRequest;
}
@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 $amount = this.getAmount();
result = result * PRIME + ($amount == null ? 43 : $amount.hashCode());
final java.lang.Object $description = this.getDescription();
result = result * PRIME + ($description == null ? 43 : $description.hashCode());
final java.lang.Object $refundType = this.getRefundType();
result = result * PRIME + ($refundType == null ? 43 : $refundType.hashCode());
final java.lang.Object $refundSource = this.getRefundSource();
result = result * PRIME + ($refundSource == null ? 43 : $refundSource.hashCode());
final java.lang.Object $reason = this.getReason();
result = result * PRIME + ($reason == null ? 43 : $reason.hashCode());
final java.lang.Object $invoiceNumber = this.getInvoiceNumber();
result = result * PRIME + ($invoiceNumber == null ? 43 : $invoiceNumber.hashCode());
final java.lang.Object $refundAdvice = this.getRefundAdvice();
result = result * PRIME + ($refundAdvice == null ? 43 : $refundAdvice.hashCode());
final java.lang.Object $isNonPlatformTransaction = this.getIsNonPlatformTransaction();
result = result * PRIME + ($isNonPlatformTransaction == null ? 43 : $isNonPlatformTransaction.hashCode());
return result;
}
}