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

com.paypal.api.payments.CreditCardHistory 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 CreditCardHistory extends PayPalModel {
	/**
	 * A list of credit card resources
	 */
	private List items;
	/**
	 * Total number of items.
	 */
	private int totalItems;
	/**
	 * Total number of pages.
	 */
	private int totalPages;
	/**
	 * HATEOAS links related to this call. Value assigned by PayPal.
	 */
	private List links;

	/**
	 * Default Constructor
	 */
	public CreditCardHistory() {
		items = new ArrayList();
		links = new ArrayList();
	}

	/**
	 * A list of credit card resources
	 */
	@java.lang.SuppressWarnings("all")
	public List getItems() {
		return this.items;
	}

	/**
	 * Total number of items.
	 */
	@java.lang.SuppressWarnings("all")
	public int getTotalItems() {
		return this.totalItems;
	}

	/**
	 * Total number of pages.
	 */
	@java.lang.SuppressWarnings("all")
	public int getTotalPages() {
		return this.totalPages;
	}

	/**
	 * HATEOAS links related to this call. Value assigned by PayPal.
	 */
	@java.lang.SuppressWarnings("all")
	public List getLinks() {
		return this.links;
	}

	/**
	 * A list of credit card resources
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public CreditCardHistory setItems(final List items) {
		this.items = items;
		return this;
	}

	/**
	 * Total number of items.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public CreditCardHistory setTotalItems(final int totalItems) {
		this.totalItems = totalItems;
		return this;
	}

	/**
	 * Total number of pages.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public CreditCardHistory setTotalPages(final int totalPages) {
		this.totalPages = totalPages;
		return this;
	}

	/**
	 * HATEOAS links related to this call. Value assigned by PayPal.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public CreditCardHistory 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 CreditCardHistory)) return false;
		final CreditCardHistory other = (CreditCardHistory) o;
		if (!other.canEqual((java.lang.Object) this)) return false;
		if (!super.equals(o)) return false;
		final java.lang.Object this$items = this.getItems();
		final java.lang.Object other$items = other.getItems();
		if (this$items == null ? other$items != null : !this$items.equals(other$items)) return false;
		if (this.getTotalItems() != other.getTotalItems()) return false;
		if (this.getTotalPages() != other.getTotalPages()) 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 CreditCardHistory;
	}

	@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 $items = this.getItems();
		result = result * PRIME + ($items == null ? 43 : $items.hashCode());
		result = result * PRIME + this.getTotalItems();
		result = result * PRIME + this.getTotalPages();
		final java.lang.Object $links = this.getLinks();
		result = result * PRIME + ($links == null ? 43 : $links.hashCode());
		return result;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy