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

com.paypal.api.payments.PayoutSenderBatchHeader 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;

public class PayoutSenderBatchHeader extends PayPalModel {
	/**
	 * Sender-created ID for tracking the batch payout in an accounting system. 30 characters max.
	 */
	private String senderBatchId;
	/**
	 * The subject line text for the email that PayPal sends when a payout item is completed. (The subject line is the same for all recipients.) Maximum of 255 single-byte alphanumeric characters.
	 */
	private String emailSubject;
	/**
	 * The type of ID for a payment receiver. If this field is provided, the payout items without a `recipient_type` will use the provided value. If this field is not provided, each payout item must include a value for the `recipient_type`.
	 */
	private String recipientType;

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

	/**
	 * Sender-created ID for tracking the batch payout in an accounting system. 30 characters max.
	 */
	@java.lang.SuppressWarnings("all")
	public String getSenderBatchId() {
		return this.senderBatchId;
	}

	/**
	 * The subject line text for the email that PayPal sends when a payout item is completed. (The subject line is the same for all recipients.) Maximum of 255 single-byte alphanumeric characters.
	 */
	@java.lang.SuppressWarnings("all")
	public String getEmailSubject() {
		return this.emailSubject;
	}

	/**
	 * The type of ID for a payment receiver. If this field is provided, the payout items without a `recipient_type` will use the provided value. If this field is not provided, each payout item must include a value for the `recipient_type`.
	 */
	@java.lang.SuppressWarnings("all")
	public String getRecipientType() {
		return this.recipientType;
	}

	/**
	 * Sender-created ID for tracking the batch payout in an accounting system. 30 characters max.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public PayoutSenderBatchHeader setSenderBatchId(final String senderBatchId) {
		this.senderBatchId = senderBatchId;
		return this;
	}

	/**
	 * The subject line text for the email that PayPal sends when a payout item is completed. (The subject line is the same for all recipients.) Maximum of 255 single-byte alphanumeric characters.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public PayoutSenderBatchHeader setEmailSubject(final String emailSubject) {
		this.emailSubject = emailSubject;
		return this;
	}

	/**
	 * The type of ID for a payment receiver. If this field is provided, the payout items without a `recipient_type` will use the provided value. If this field is not provided, each payout item must include a value for the `recipient_type`.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public PayoutSenderBatchHeader setRecipientType(final String recipientType) {
		this.recipientType = recipientType;
		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 PayoutSenderBatchHeader)) return false;
		final PayoutSenderBatchHeader other = (PayoutSenderBatchHeader) o;
		if (!other.canEqual((java.lang.Object) this)) return false;
		if (!super.equals(o)) 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$emailSubject = this.getEmailSubject();
		final java.lang.Object other$emailSubject = other.getEmailSubject();
		if (this$emailSubject == null ? other$emailSubject != null : !this$emailSubject.equals(other$emailSubject)) return false;
		final java.lang.Object this$recipientType = this.getRecipientType();
		final java.lang.Object other$recipientType = other.getRecipientType();
		if (this$recipientType == null ? other$recipientType != null : !this$recipientType.equals(other$recipientType)) return false;
		return true;
	}

	@java.lang.SuppressWarnings("all")
	protected boolean canEqual(final java.lang.Object other) {
		return other instanceof PayoutSenderBatchHeader;
	}

	@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 $senderBatchId = this.getSenderBatchId();
		result = result * PRIME + ($senderBatchId == null ? 43 : $senderBatchId.hashCode());
		final java.lang.Object $emailSubject = this.getEmailSubject();
		result = result * PRIME + ($emailSubject == null ? 43 : $emailSubject.hashCode());
		final java.lang.Object $recipientType = this.getRecipientType();
		result = result * PRIME + ($recipientType == null ? 43 : $recipientType.hashCode());
		return result;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy