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

com.paypal.api.payments.TransactionBase 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 java.util.List;

public class TransactionBase extends CartBase {
	/**
	 * List of financial transactions (Sale, Authorization, Capture, Refund) related to the payment.
	 */
	private List relatedResources;
	/**
	 * Identifier to the purchase unit corresponding to this sale transaction.
	 */
	private String purchaseUnitReferenceId;

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

	/**
	 * List of financial transactions (Sale, Authorization, Capture, Refund) related to the payment.
	 */
	@java.lang.SuppressWarnings("all")
	public List getRelatedResources() {
		return this.relatedResources;
	}

	/**
	 * Identifier to the purchase unit corresponding to this sale transaction.
	 */
	@java.lang.SuppressWarnings("all")
	public String getPurchaseUnitReferenceId() {
		return this.purchaseUnitReferenceId;
	}

	/**
	 * List of financial transactions (Sale, Authorization, Capture, Refund) related to the payment.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public TransactionBase setRelatedResources(final List relatedResources) {
		this.relatedResources = relatedResources;
		return this;
	}

	/**
	 * Identifier to the purchase unit corresponding to this sale transaction.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public TransactionBase setPurchaseUnitReferenceId(final String purchaseUnitReferenceId) {
		this.purchaseUnitReferenceId = purchaseUnitReferenceId;
		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 TransactionBase)) return false;
		final TransactionBase other = (TransactionBase) o;
		if (!other.canEqual((java.lang.Object) this)) return false;
		if (!super.equals(o)) return false;
		final java.lang.Object this$relatedResources = this.getRelatedResources();
		final java.lang.Object other$relatedResources = other.getRelatedResources();
		if (this$relatedResources == null ? other$relatedResources != null : !this$relatedResources.equals(other$relatedResources)) return false;
		final java.lang.Object this$purchaseUnitReferenceId = this.getPurchaseUnitReferenceId();
		final java.lang.Object other$purchaseUnitReferenceId = other.getPurchaseUnitReferenceId();
		if (this$purchaseUnitReferenceId == null ? other$purchaseUnitReferenceId != null : !this$purchaseUnitReferenceId.equals(other$purchaseUnitReferenceId)) return false;
		return true;
	}

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

	@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 $relatedResources = this.getRelatedResources();
		result = result * PRIME + ($relatedResources == null ? 43 : $relatedResources.hashCode());
		final java.lang.Object $purchaseUnitReferenceId = this.getPurchaseUnitReferenceId();
		result = result * PRIME + ($purchaseUnitReferenceId == null ? 43 : $purchaseUnitReferenceId.hashCode());
		return result;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy