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

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

The newest version!
// Generated by delombok at Thu Nov 16 13:48:05 CST 2017
package com.paypal.api.payments;

public class InvoiceAddress extends BaseAddress {
	/**
	 * Phone number in E.123 format.
	 */
	private Phone phone;

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

	/**
	 * Phone number in E.123 format.
	 */
	@java.lang.SuppressWarnings("all")
	public Phone getPhone() {
		return this.phone;
	}

	/**
	 * Phone number in E.123 format.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public InvoiceAddress setPhone(final Phone phone) {
		this.phone = phone;
		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 InvoiceAddress)) return false;
		final InvoiceAddress other = (InvoiceAddress) o;
		if (!other.canEqual((java.lang.Object) this)) return false;
		if (!super.equals(o)) return false;
		final java.lang.Object this$phone = this.getPhone();
		final java.lang.Object other$phone = other.getPhone();
		if (this$phone == null ? other$phone != null : !this$phone.equals(other$phone)) return false;
		return true;
	}

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy