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

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

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

import com.paypal.base.rest.PayPalModel;

public class BaseAddress extends PayPalModel {
	/**
	 * Line 1 of the Address (eg. number, street, etc).
	 */
	private String line1;
	/**
	 * Optional line 2 of the Address (eg. suite, apt #, etc.).
	 */
	private String line2;
	/**
	 * City name.
	 */
	private String city;
	/**
	 * 2 letter country code.
	 */
	private String countryCode;
	/**
	 * Zip code or equivalent is usually required for countries that have them. For list of countries that do not have postal codes please refer to http://en.wikipedia.org/wiki/Postal_code.
	 */
	private String postalCode;
	/**
	 * 2 letter code for US states, and the equivalent for other countries.
	 */
	private String state;
	/**
	 * BaseAddress normalization status, returned only for payers from Brazil.
	 */
	private String normalizationStatus;
	/**
	 * BaseAddress status
	 */
	private String status;

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

	/**
	 * Parameterized Constructor
	 */
	public BaseAddress(String line1, String countryCode) {
		this.line1 = line1;
		this.countryCode = countryCode;
	}

	/**
	 * Line 1 of the Address (eg. number, street, etc).
	 */
	@java.lang.SuppressWarnings("all")
	public String getLine1() {
		return this.line1;
	}

	/**
	 * Optional line 2 of the Address (eg. suite, apt #, etc.).
	 */
	@java.lang.SuppressWarnings("all")
	public String getLine2() {
		return this.line2;
	}

	/**
	 * City name.
	 */
	@java.lang.SuppressWarnings("all")
	public String getCity() {
		return this.city;
	}

	/**
	 * 2 letter country code.
	 */
	@java.lang.SuppressWarnings("all")
	public String getCountryCode() {
		return this.countryCode;
	}

	/**
	 * Zip code or equivalent is usually required for countries that have them. For list of countries that do not have postal codes please refer to http://en.wikipedia.org/wiki/Postal_code.
	 */
	@java.lang.SuppressWarnings("all")
	public String getPostalCode() {
		return this.postalCode;
	}

	/**
	 * 2 letter code for US states, and the equivalent for other countries.
	 */
	@java.lang.SuppressWarnings("all")
	public String getState() {
		return this.state;
	}

	/**
	 * BaseAddress normalization status, returned only for payers from Brazil.
	 */
	@java.lang.SuppressWarnings("all")
	public String getNormalizationStatus() {
		return this.normalizationStatus;
	}

	/**
	 * BaseAddress status
	 */
	@java.lang.SuppressWarnings("all")
	public String getStatus() {
		return this.status;
	}

	/**
	 * Line 1 of the Address (eg. number, street, etc).
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public BaseAddress setLine1(final String line1) {
		this.line1 = line1;
		return this;
	}

	/**
	 * Optional line 2 of the Address (eg. suite, apt #, etc.).
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public BaseAddress setLine2(final String line2) {
		this.line2 = line2;
		return this;
	}

	/**
	 * City name.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public BaseAddress setCity(final String city) {
		this.city = city;
		return this;
	}

	/**
	 * 2 letter country code.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public BaseAddress setCountryCode(final String countryCode) {
		this.countryCode = countryCode;
		return this;
	}

	/**
	 * Zip code or equivalent is usually required for countries that have them. For list of countries that do not have postal codes please refer to http://en.wikipedia.org/wiki/Postal_code.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public BaseAddress setPostalCode(final String postalCode) {
		this.postalCode = postalCode;
		return this;
	}

	/**
	 * 2 letter code for US states, and the equivalent for other countries.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public BaseAddress setState(final String state) {
		this.state = state;
		return this;
	}

	/**
	 * BaseAddress normalization status, returned only for payers from Brazil.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public BaseAddress setNormalizationStatus(final String normalizationStatus) {
		this.normalizationStatus = normalizationStatus;
		return this;
	}

	/**
	 * BaseAddress status
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public BaseAddress setStatus(final String status) {
		this.status = status;
		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 BaseAddress)) return false;
		final BaseAddress other = (BaseAddress) o;
		if (!other.canEqual((java.lang.Object) this)) return false;
		if (!super.equals(o)) return false;
		final java.lang.Object this$line1 = this.getLine1();
		final java.lang.Object other$line1 = other.getLine1();
		if (this$line1 == null ? other$line1 != null : !this$line1.equals(other$line1)) return false;
		final java.lang.Object this$line2 = this.getLine2();
		final java.lang.Object other$line2 = other.getLine2();
		if (this$line2 == null ? other$line2 != null : !this$line2.equals(other$line2)) return false;
		final java.lang.Object this$city = this.getCity();
		final java.lang.Object other$city = other.getCity();
		if (this$city == null ? other$city != null : !this$city.equals(other$city)) return false;
		final java.lang.Object this$countryCode = this.getCountryCode();
		final java.lang.Object other$countryCode = other.getCountryCode();
		if (this$countryCode == null ? other$countryCode != null : !this$countryCode.equals(other$countryCode)) return false;
		final java.lang.Object this$postalCode = this.getPostalCode();
		final java.lang.Object other$postalCode = other.getPostalCode();
		if (this$postalCode == null ? other$postalCode != null : !this$postalCode.equals(other$postalCode)) return false;
		final java.lang.Object this$state = this.getState();
		final java.lang.Object other$state = other.getState();
		if (this$state == null ? other$state != null : !this$state.equals(other$state)) return false;
		final java.lang.Object this$normalizationStatus = this.getNormalizationStatus();
		final java.lang.Object other$normalizationStatus = other.getNormalizationStatus();
		if (this$normalizationStatus == null ? other$normalizationStatus != null : !this$normalizationStatus.equals(other$normalizationStatus)) return false;
		final java.lang.Object this$status = this.getStatus();
		final java.lang.Object other$status = other.getStatus();
		if (this$status == null ? other$status != null : !this$status.equals(other$status)) return false;
		return true;
	}

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

	@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 $line1 = this.getLine1();
		result = result * PRIME + ($line1 == null ? 43 : $line1.hashCode());
		final java.lang.Object $line2 = this.getLine2();
		result = result * PRIME + ($line2 == null ? 43 : $line2.hashCode());
		final java.lang.Object $city = this.getCity();
		result = result * PRIME + ($city == null ? 43 : $city.hashCode());
		final java.lang.Object $countryCode = this.getCountryCode();
		result = result * PRIME + ($countryCode == null ? 43 : $countryCode.hashCode());
		final java.lang.Object $postalCode = this.getPostalCode();
		result = result * PRIME + ($postalCode == null ? 43 : $postalCode.hashCode());
		final java.lang.Object $state = this.getState();
		result = result * PRIME + ($state == null ? 43 : $state.hashCode());
		final java.lang.Object $normalizationStatus = this.getNormalizationStatus();
		result = result * PRIME + ($normalizationStatus == null ? 43 : $normalizationStatus.hashCode());
		final java.lang.Object $status = this.getStatus();
		result = result * PRIME + ($status == null ? 43 : $status.hashCode());
		return result;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy