com.paypal.api.payments.PayoutBatch Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.commerce.payment.method.paypal
Show all versions of com.liferay.commerce.payment.method.paypal
Liferay Commerce Payment Method PayPal
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;
import java.util.List;
public class PayoutBatch extends PayPalModel {
/**
* A batch header. Includes the generated batch status.
*/
private PayoutBatchHeader batchHeader;
/**
* An array of items in a batch payout.
*/
private List items;
/**
*/
private List links;
/**
* Default Constructor
*/
public PayoutBatch() {
}
/**
* Parameterized Constructor
*/
public PayoutBatch(PayoutBatchHeader batchHeader, List items) {
this.batchHeader = batchHeader;
this.items = items;
}
/**
* A batch header. Includes the generated batch status.
*/
@java.lang.SuppressWarnings("all")
public PayoutBatchHeader getBatchHeader() {
return this.batchHeader;
}
/**
* An array of items in a batch payout.
*/
@java.lang.SuppressWarnings("all")
public List getItems() {
return this.items;
}
/**
*/
@java.lang.SuppressWarnings("all")
public List getLinks() {
return this.links;
}
/**
* A batch header. Includes the generated batch status.
* @return this
*/
@java.lang.SuppressWarnings("all")
public PayoutBatch setBatchHeader(final PayoutBatchHeader batchHeader) {
this.batchHeader = batchHeader;
return this;
}
/**
* An array of items in a batch payout.
* @return this
*/
@java.lang.SuppressWarnings("all")
public PayoutBatch setItems(final List items) {
this.items = items;
return this;
}
/**
*
* @return this
*/
@java.lang.SuppressWarnings("all")
public PayoutBatch 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 PayoutBatch)) return false;
final PayoutBatch other = (PayoutBatch) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (!super.equals(o)) return false;
final java.lang.Object this$batchHeader = this.getBatchHeader();
final java.lang.Object other$batchHeader = other.getBatchHeader();
if (this$batchHeader == null ? other$batchHeader != null : !this$batchHeader.equals(other$batchHeader)) return false;
final java.lang.Object this$items = this.getItems();
final java.lang.Object other$items = other.getItems();
if (this$items == null ? other$items != null : !this$items.equals(other$items)) 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 PayoutBatch;
}
@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 $batchHeader = this.getBatchHeader();
result = result * PRIME + ($batchHeader == null ? 43 : $batchHeader.hashCode());
final java.lang.Object $items = this.getItems();
result = result * PRIME + ($items == null ? 43 : $items.hashCode());
final java.lang.Object $links = this.getLinks();
result = result * PRIME + ($links == null ? 43 : $links.hashCode());
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy