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

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

public class Transaction extends TransactionBase {
	/**
	 * Additional transactions for complex payment scenarios.
	 */
	private List transactions;

	/**
	 * Default Constructor
	 */
	public Transaction() {
		transactions = new ArrayList();
	}

	/**
	 * Additional transactions for complex payment scenarios.
	 */
	@java.lang.SuppressWarnings("all")
	public List getTransactions() {
		return this.transactions;
	}

	/**
	 * Additional transactions for complex payment scenarios.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public Transaction setTransactions(final List transactions) {
		this.transactions = transactions;
		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 Transaction)) return false;
		final Transaction other = (Transaction) o;
		if (!other.canEqual((java.lang.Object) this)) return false;
		if (!super.equals(o)) return false;
		final java.lang.Object this$transactions = this.getTransactions();
		final java.lang.Object other$transactions = other.getTransactions();
		if (this$transactions == null ? other$transactions != null : !this$transactions.equals(other$transactions)) return false;
		return true;
	}

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

	@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 $transactions = this.getTransactions();
		result = result * PRIME + ($transactions == null ? 43 : $transactions.hashCode());
		return result;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy