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

com.paypal.api.payments.InvoiceNumber Maven / Gradle / Ivy

There is a newer version: 1.14.0
Show newest version
// Generated by delombok at Tue Nov 01 15:03:20 CDT 2016
package com.paypal.api.payments;

import com.paypal.base.rest.PayPalModel;

public class InvoiceNumber extends PayPalModel {
	/**
	 * The next invoice number
	 */
	private String number;

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

	/**
	 * The next invoice number
	 */
	@java.lang.SuppressWarnings("all")
	public String getNumber() {
		return this.number;
	}

	/**
	 * The next invoice number
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public InvoiceNumber setNumber(final String number) {
		this.number = number;
		return this;
	}

	@java.lang.Override
	@java.lang.SuppressWarnings("all")
	public java.lang.String toString() {
		return "InvoiceNumber(number=" + this.getNumber() + ")";
	}

	@java.lang.Override
	@java.lang.SuppressWarnings("all")
	public boolean equals(final java.lang.Object o) {
		if (o == this) return true;
		if (!(o instanceof InvoiceNumber)) return false;
		final InvoiceNumber other = (InvoiceNumber) o;
		if (!other.canEqual((java.lang.Object) this)) return false;
		if (!super.equals(o)) return false;
		final java.lang.Object this$number = this.getNumber();
		final java.lang.Object other$number = other.getNumber();
		if (this$number == null ? other$number != null : !this$number.equals(other$number)) return false;
		return true;
	}

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy