com.paypal.api.payments.PayoutItemDetails 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;
import java.util.List;
public class PayoutItemDetails extends PayPalModel {
/**
* An ID for an individual payout. Provided by PayPal, such as in the case
* of getting the status of a batch request. 30 characters max.
*/
private String payoutItemId;
/**
* Generated ID for the transaction. 30 characters max.
*/
private String transactionId;
/**
* Status of a transaction.
*/
private String transactionStatus;
/**
* Amount of money in U.S. dollars for fees.
*/
private Currency payoutItemFee;
/**
* An ID for the batch payout. Generated by PayPal. 30 characters max.
*/
private String payoutBatchId;
/**
* Sender-created ID for tracking the batch in an accounting system. 30
* characters max.
*/
private String senderBatchId;
/**
* The data for a payout item that the sender initially provided.
*/
private PayoutItem payoutItem;
/**
* Time of the last processing for this item.
*/
private String timeProcessed;
/**
* *
*/
private Error errors;
/**
* HATEOAS links
*/
private List links;
/**
* Default Constructor
*/
public PayoutItemDetails() {
}
/**
* Parameterized Constructor
*/
public PayoutItemDetails(String payoutItemId, String payoutBatchId, PayoutItem payoutItem, String timeProcessed) {
this.payoutItemId = payoutItemId;
this.payoutBatchId = payoutBatchId;
this.payoutItem = payoutItem;
this.timeProcessed = timeProcessed;
}
/**
* Setter for error. Please use this over {@link #setErrors(Error)}.
* errors field in {@link PayoutItemDetails} takes one {@link Error} object.
* Not using lombok autogeneration as `setErrors` is not a feasible option.
*/
public PayoutItemDetails setError(Error error) {
this.errors = error;
return this;
}
/**
* Getter for error. Please use this over {@link #getErrors()}.
* errors field in {@link PayoutItemDetails} takes one {@link Error} object.
*/
public Error getError() {
return this.errors;
}
/**
* An ID for an individual payout. Provided by PayPal, such as in the case
* of getting the status of a batch request. 30 characters max.
*/
@java.lang.SuppressWarnings("all")
public String getPayoutItemId() {
return this.payoutItemId;
}
/**
* Generated ID for the transaction. 30 characters max.
*/
@java.lang.SuppressWarnings("all")
public String getTransactionId() {
return this.transactionId;
}
/**
* Status of a transaction.
*/
@java.lang.SuppressWarnings("all")
public String getTransactionStatus() {
return this.transactionStatus;
}
/**
* Amount of money in U.S. dollars for fees.
*/
@java.lang.SuppressWarnings("all")
public Currency getPayoutItemFee() {
return this.payoutItemFee;
}
/**
* An ID for the batch payout. Generated by PayPal. 30 characters max.
*/
@java.lang.SuppressWarnings("all")
public String getPayoutBatchId() {
return this.payoutBatchId;
}
/**
* Sender-created ID for tracking the batch in an accounting system. 30
* characters max.
*/
@java.lang.SuppressWarnings("all")
public String getSenderBatchId() {
return this.senderBatchId;
}
/**
* The data for a payout item that the sender initially provided.
*/
@java.lang.SuppressWarnings("all")
public PayoutItem getPayoutItem() {
return this.payoutItem;
}
/**
* Time of the last processing for this item.
*/
@java.lang.SuppressWarnings("all")
public String getTimeProcessed() {
return this.timeProcessed;
}
/**
* *
*/
@java.lang.SuppressWarnings("all")
public Error getErrors() {
return this.errors;
}
/**
* HATEOAS links
*/
@java.lang.SuppressWarnings("all")
public List getLinks() {
return this.links;
}
/**
* An ID for an individual payout. Provided by PayPal, such as in the case
* of getting the status of a batch request. 30 characters max.
* @return this
*/
@java.lang.SuppressWarnings("all")
public PayoutItemDetails setPayoutItemId(final String payoutItemId) {
this.payoutItemId = payoutItemId;
return this;
}
/**
* Generated ID for the transaction. 30 characters max.
* @return this
*/
@java.lang.SuppressWarnings("all")
public PayoutItemDetails setTransactionId(final String transactionId) {
this.transactionId = transactionId;
return this;
}
/**
* Status of a transaction.
* @return this
*/
@java.lang.SuppressWarnings("all")
public PayoutItemDetails setTransactionStatus(final String transactionStatus) {
this.transactionStatus = transactionStatus;
return this;
}
/**
* Amount of money in U.S. dollars for fees.
* @return this
*/
@java.lang.SuppressWarnings("all")
public PayoutItemDetails setPayoutItemFee(final Currency payoutItemFee) {
this.payoutItemFee = payoutItemFee;
return this;
}
/**
* An ID for the batch payout. Generated by PayPal. 30 characters max.
* @return this
*/
@java.lang.SuppressWarnings("all")
public PayoutItemDetails setPayoutBatchId(final String payoutBatchId) {
this.payoutBatchId = payoutBatchId;
return this;
}
/**
* Sender-created ID for tracking the batch in an accounting system. 30
* characters max.
* @return this
*/
@java.lang.SuppressWarnings("all")
public PayoutItemDetails setSenderBatchId(final String senderBatchId) {
this.senderBatchId = senderBatchId;
return this;
}
/**
* The data for a payout item that the sender initially provided.
* @return this
*/
@java.lang.SuppressWarnings("all")
public PayoutItemDetails setPayoutItem(final PayoutItem payoutItem) {
this.payoutItem = payoutItem;
return this;
}
/**
* Time of the last processing for this item.
* @return this
*/
@java.lang.SuppressWarnings("all")
public PayoutItemDetails setTimeProcessed(final String timeProcessed) {
this.timeProcessed = timeProcessed;
return this;
}
/**
* *
* @return this
*/
@java.lang.SuppressWarnings("all")
public PayoutItemDetails setErrors(final Error errors) {
this.errors = errors;
return this;
}
/**
* HATEOAS links
* @return this
*/
@java.lang.SuppressWarnings("all")
public PayoutItemDetails 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 PayoutItemDetails)) return false;
final PayoutItemDetails other = (PayoutItemDetails) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (!super.equals(o)) return false;
final java.lang.Object this$payoutItemId = this.getPayoutItemId();
final java.lang.Object other$payoutItemId = other.getPayoutItemId();
if (this$payoutItemId == null ? other$payoutItemId != null : !this$payoutItemId.equals(other$payoutItemId)) return false;
final java.lang.Object this$transactionId = this.getTransactionId();
final java.lang.Object other$transactionId = other.getTransactionId();
if (this$transactionId == null ? other$transactionId != null : !this$transactionId.equals(other$transactionId)) return false;
final java.lang.Object this$transactionStatus = this.getTransactionStatus();
final java.lang.Object other$transactionStatus = other.getTransactionStatus();
if (this$transactionStatus == null ? other$transactionStatus != null : !this$transactionStatus.equals(other$transactionStatus)) return false;
final java.lang.Object this$payoutItemFee = this.getPayoutItemFee();
final java.lang.Object other$payoutItemFee = other.getPayoutItemFee();
if (this$payoutItemFee == null ? other$payoutItemFee != null : !this$payoutItemFee.equals(other$payoutItemFee)) return false;
final java.lang.Object this$payoutBatchId = this.getPayoutBatchId();
final java.lang.Object other$payoutBatchId = other.getPayoutBatchId();
if (this$payoutBatchId == null ? other$payoutBatchId != null : !this$payoutBatchId.equals(other$payoutBatchId)) return false;
final java.lang.Object this$senderBatchId = this.getSenderBatchId();
final java.lang.Object other$senderBatchId = other.getSenderBatchId();
if (this$senderBatchId == null ? other$senderBatchId != null : !this$senderBatchId.equals(other$senderBatchId)) return false;
final java.lang.Object this$payoutItem = this.getPayoutItem();
final java.lang.Object other$payoutItem = other.getPayoutItem();
if (this$payoutItem == null ? other$payoutItem != null : !this$payoutItem.equals(other$payoutItem)) return false;
final java.lang.Object this$timeProcessed = this.getTimeProcessed();
final java.lang.Object other$timeProcessed = other.getTimeProcessed();
if (this$timeProcessed == null ? other$timeProcessed != null : !this$timeProcessed.equals(other$timeProcessed)) return false;
final java.lang.Object this$errors = this.getErrors();
final java.lang.Object other$errors = other.getErrors();
if (this$errors == null ? other$errors != null : !this$errors.equals(other$errors)) 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 PayoutItemDetails;
}
@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 $payoutItemId = this.getPayoutItemId();
result = result * PRIME + ($payoutItemId == null ? 43 : $payoutItemId.hashCode());
final java.lang.Object $transactionId = this.getTransactionId();
result = result * PRIME + ($transactionId == null ? 43 : $transactionId.hashCode());
final java.lang.Object $transactionStatus = this.getTransactionStatus();
result = result * PRIME + ($transactionStatus == null ? 43 : $transactionStatus.hashCode());
final java.lang.Object $payoutItemFee = this.getPayoutItemFee();
result = result * PRIME + ($payoutItemFee == null ? 43 : $payoutItemFee.hashCode());
final java.lang.Object $payoutBatchId = this.getPayoutBatchId();
result = result * PRIME + ($payoutBatchId == null ? 43 : $payoutBatchId.hashCode());
final java.lang.Object $senderBatchId = this.getSenderBatchId();
result = result * PRIME + ($senderBatchId == null ? 43 : $senderBatchId.hashCode());
final java.lang.Object $payoutItem = this.getPayoutItem();
result = result * PRIME + ($payoutItem == null ? 43 : $payoutItem.hashCode());
final java.lang.Object $timeProcessed = this.getTimeProcessed();
result = result * PRIME + ($timeProcessed == null ? 43 : $timeProcessed.hashCode());
final java.lang.Object $errors = this.getErrors();
result = result * PRIME + ($errors == null ? 43 : $errors.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