All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.paypal.api.payments.PayoutBatch Maven / Gradle / Ivy

There is a newer version: 1.14.0
Show newest version
// 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 PayoutBatch extends PayPalModel {
	/**
	 * A batch header that includes the generated batch status.
	 */
	private PayoutBatchHeader batchHeader;
	/**
	 * Array of the 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 that includes the generated batch status.
	 */
	@java.lang.SuppressWarnings("all")
	public PayoutBatchHeader getBatchHeader() {
		return this.batchHeader;
	}

	/**
	 * Array of the 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 that includes the generated batch status.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public PayoutBatch setBatchHeader(final PayoutBatchHeader batchHeader) {
		this.batchHeader = batchHeader;
		return this;
	}

	/**
	 * Array of the 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 - 2024 Weber Informatics LLC | Privacy Policy