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

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

public class Invoices extends PayPalModel {
	/**
	 */
	private int totalCount;
	/**
	 * List of invoices belonging to a merchant.
	 */
	private List invoices;

	/**
	 * Default Constructor
	 */
	public Invoices() {
		invoices = new ArrayList();
	}

	/**
	 */
	@java.lang.SuppressWarnings("all")
	public int getTotalCount() {
		return this.totalCount;
	}

	/**
	 * List of invoices belonging to a merchant.
	 */
	@java.lang.SuppressWarnings("all")
	public List getInvoices() {
		return this.invoices;
	}

	/**
	 *
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public Invoices setTotalCount(final int totalCount) {
		this.totalCount = totalCount;
		return this;
	}

	/**
	 * List of invoices belonging to a merchant.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public Invoices setInvoices(final List invoices) {
		this.invoices = invoices;
		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 Invoices)) return false;
		final Invoices other = (Invoices) o;
		if (!other.canEqual((java.lang.Object) this)) return false;
		if (!super.equals(o)) return false;
		if (this.getTotalCount() != other.getTotalCount()) return false;
		final java.lang.Object this$invoices = this.getInvoices();
		final java.lang.Object other$invoices = other.getInvoices();
		if (this$invoices == null ? other$invoices != null : !this$invoices.equals(other$invoices)) return false;
		return true;
	}

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

	@java.lang.Override
	@java.lang.SuppressWarnings("all")
	public int hashCode() {
		final int PRIME = 59;
		int result = 1;
		result = result * PRIME + super.hashCode();
		result = result * PRIME + this.getTotalCount();
		final java.lang.Object $invoices = this.getInvoices();
		result = result * PRIME + ($invoices == null ? 43 : $invoices.hashCode());
		return result;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy