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

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

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 PayoutBatchHeader extends PayPalModel {
	/**
	 * The PayPal-generated ID for a batch payout.
	 */
	private String payoutBatchId;
	/**
	 * The PayPal-generated batch payout status. If the batch payout passes the preliminary checks, the status is `PENDING`.
	 */
	private String batchStatus;
	/**
	 * The time the batch entered processing.
	 */
	private String timeCreated;
	/**
	 * The time that processing for the batch was completed.
	 */
	private String timeCompleted;
	/**
	 * The original batch header as provided by the payment sender.
	 */
	private PayoutSenderBatchHeader senderBatchHeader;
	/**
	 * Total amount, in U.S. dollars, requested for the applicable payouts.
	 */
	private Currency amount;
	/**
	 * Total estimate in U.S. dollars for the applicable payouts fees.
	 */
	private Currency fees;
	/**
	 */
	private Error errors;
	/**
	 */
	private List links;

	/**
	 * Default Constructor
	 */
	public PayoutBatchHeader() {
	}

	/**
	 * Parameterized Constructor
	 */
	public PayoutBatchHeader(String payoutBatchId, String batchStatus, String timeCreated, PayoutSenderBatchHeader senderBatchHeader, Currency amount, Currency fees) {
		this.payoutBatchId = payoutBatchId;
		this.batchStatus = batchStatus;
		this.timeCreated = timeCreated;
		this.senderBatchHeader = senderBatchHeader;
		this.amount = amount;
		this.fees = fees;
	}

	/**
	 * The PayPal-generated ID for a batch payout.
	 */
	@java.lang.SuppressWarnings("all")
	public String getPayoutBatchId() {
		return this.payoutBatchId;
	}

	/**
	 * The PayPal-generated batch payout status. If the batch payout passes the preliminary checks, the status is `PENDING`.
	 */
	@java.lang.SuppressWarnings("all")
	public String getBatchStatus() {
		return this.batchStatus;
	}

	/**
	 * The time the batch entered processing.
	 */
	@java.lang.SuppressWarnings("all")
	public String getTimeCreated() {
		return this.timeCreated;
	}

	/**
	 * The time that processing for the batch was completed.
	 */
	@java.lang.SuppressWarnings("all")
	public String getTimeCompleted() {
		return this.timeCompleted;
	}

	/**
	 * The original batch header as provided by the payment sender.
	 */
	@java.lang.SuppressWarnings("all")
	public PayoutSenderBatchHeader getSenderBatchHeader() {
		return this.senderBatchHeader;
	}

	/**
	 * Total amount, in U.S. dollars, requested for the applicable payouts.
	 */
	@java.lang.SuppressWarnings("all")
	public Currency getAmount() {
		return this.amount;
	}

	/**
	 * Total estimate in U.S. dollars for the applicable payouts fees.
	 */
	@java.lang.SuppressWarnings("all")
	public Currency getFees() {
		return this.fees;
	}

	/**
	 */
	@java.lang.SuppressWarnings("all")
	public Error getErrors() {
		return this.errors;
	}

	/**
	 */
	@java.lang.SuppressWarnings("all")
	public List getLinks() {
		return this.links;
	}

	/**
	 * The PayPal-generated ID for a batch payout.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public PayoutBatchHeader setPayoutBatchId(final String payoutBatchId) {
		this.payoutBatchId = payoutBatchId;
		return this;
	}

	/**
	 * The PayPal-generated batch payout status. If the batch payout passes the preliminary checks, the status is `PENDING`.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public PayoutBatchHeader setBatchStatus(final String batchStatus) {
		this.batchStatus = batchStatus;
		return this;
	}

	/**
	 * The time the batch entered processing.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public PayoutBatchHeader setTimeCreated(final String timeCreated) {
		this.timeCreated = timeCreated;
		return this;
	}

	/**
	 * The time that processing for the batch was completed.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public PayoutBatchHeader setTimeCompleted(final String timeCompleted) {
		this.timeCompleted = timeCompleted;
		return this;
	}

	/**
	 * The original batch header as provided by the payment sender.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public PayoutBatchHeader setSenderBatchHeader(final PayoutSenderBatchHeader senderBatchHeader) {
		this.senderBatchHeader = senderBatchHeader;
		return this;
	}

	/**
	 * Total amount, in U.S. dollars, requested for the applicable payouts.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public PayoutBatchHeader setAmount(final Currency amount) {
		this.amount = amount;
		return this;
	}

	/**
	 * Total estimate in U.S. dollars for the applicable payouts fees.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public PayoutBatchHeader setFees(final Currency fees) {
		this.fees = fees;
		return this;
	}

	/**
	 *
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public PayoutBatchHeader setErrors(final Error errors) {
		this.errors = errors;
		return this;
	}

	/**
	 *
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public PayoutBatchHeader 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 PayoutBatchHeader)) return false;
		final PayoutBatchHeader other = (PayoutBatchHeader) o;
		if (!other.canEqual((java.lang.Object) this)) return false;
		if (!super.equals(o)) 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$batchStatus = this.getBatchStatus();
		final java.lang.Object other$batchStatus = other.getBatchStatus();
		if (this$batchStatus == null ? other$batchStatus != null : !this$batchStatus.equals(other$batchStatus)) return false;
		final java.lang.Object this$timeCreated = this.getTimeCreated();
		final java.lang.Object other$timeCreated = other.getTimeCreated();
		if (this$timeCreated == null ? other$timeCreated != null : !this$timeCreated.equals(other$timeCreated)) return false;
		final java.lang.Object this$timeCompleted = this.getTimeCompleted();
		final java.lang.Object other$timeCompleted = other.getTimeCompleted();
		if (this$timeCompleted == null ? other$timeCompleted != null : !this$timeCompleted.equals(other$timeCompleted)) return false;
		final java.lang.Object this$senderBatchHeader = this.getSenderBatchHeader();
		final java.lang.Object other$senderBatchHeader = other.getSenderBatchHeader();
		if (this$senderBatchHeader == null ? other$senderBatchHeader != null : !this$senderBatchHeader.equals(other$senderBatchHeader)) 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$fees = this.getFees();
		final java.lang.Object other$fees = other.getFees();
		if (this$fees == null ? other$fees != null : !this$fees.equals(other$fees)) 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 PayoutBatchHeader;
	}

	@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 $payoutBatchId = this.getPayoutBatchId();
		result = result * PRIME + ($payoutBatchId == null ? 43 : $payoutBatchId.hashCode());
		final java.lang.Object $batchStatus = this.getBatchStatus();
		result = result * PRIME + ($batchStatus == null ? 43 : $batchStatus.hashCode());
		final java.lang.Object $timeCreated = this.getTimeCreated();
		result = result * PRIME + ($timeCreated == null ? 43 : $timeCreated.hashCode());
		final java.lang.Object $timeCompleted = this.getTimeCompleted();
		result = result * PRIME + ($timeCompleted == null ? 43 : $timeCompleted.hashCode());
		final java.lang.Object $senderBatchHeader = this.getSenderBatchHeader();
		result = result * PRIME + ($senderBatchHeader == null ? 43 : $senderBatchHeader.hashCode());
		final java.lang.Object $amount = this.getAmount();
		result = result * PRIME + ($amount == null ? 43 : $amount.hashCode());
		final java.lang.Object $fees = this.getFees();
		result = result * PRIME + ($fees == null ? 43 : $fees.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