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

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

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

import com.paypal.base.rest.PayPalModel;

public class MerchantInfo extends PayPalModel {
	/**
	 * The merchant email address. Maximum length is 260 characters.
	 */
	private String email;
	/**
	 * The merchant first name. Maximum length is 30 characters.
	 */
	private String firstName;
	/**
	 * The merchant last name. Maximum length is 30 characters.
	 */
	private String lastName;
	/**
	 * The merchant address.
	 */
	private InvoiceAddress address;
	/**
	 * The merchant company business name. Maximum length is 100 characters.
	 */
	private String businessName;
	/**
	 * The merchant phone number.
	 */
	private Phone phone;
	/**
	 * The merchant fax number.
	 */
	private Phone fax;
	/**
	 * The merchant website. Maximum length is 2048 characters.
	 */
	private String website;
	/**
	 * The merchant tax ID. Maximum length is 100 characters.
	 */
	private String taxId;
	/**
	 * Option to provide a label to the additional_info field. 40 characters max.
	 */
	private String additionalInfoLabel;
	/**
	 * Additional information, such as business hours. Maximum length is 40 characters.
	 */
	private String additionalInfo;

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

	/**
	 * Parameterized Constructor
	 */
	public MerchantInfo(String email) {
		this.email = email;
	}

	/**
	 * The merchant email address. Maximum length is 260 characters.
	 */
	@java.lang.SuppressWarnings("all")
	public String getEmail() {
		return this.email;
	}

	/**
	 * The merchant first name. Maximum length is 30 characters.
	 */
	@java.lang.SuppressWarnings("all")
	public String getFirstName() {
		return this.firstName;
	}

	/**
	 * The merchant last name. Maximum length is 30 characters.
	 */
	@java.lang.SuppressWarnings("all")
	public String getLastName() {
		return this.lastName;
	}

	/**
	 * The merchant address.
	 */
	@java.lang.SuppressWarnings("all")
	public InvoiceAddress getAddress() {
		return this.address;
	}

	/**
	 * The merchant company business name. Maximum length is 100 characters.
	 */
	@java.lang.SuppressWarnings("all")
	public String getBusinessName() {
		return this.businessName;
	}

	/**
	 * The merchant phone number.
	 */
	@java.lang.SuppressWarnings("all")
	public Phone getPhone() {
		return this.phone;
	}

	/**
	 * The merchant fax number.
	 */
	@java.lang.SuppressWarnings("all")
	public Phone getFax() {
		return this.fax;
	}

	/**
	 * The merchant website. Maximum length is 2048 characters.
	 */
	@java.lang.SuppressWarnings("all")
	public String getWebsite() {
		return this.website;
	}

	/**
	 * The merchant tax ID. Maximum length is 100 characters.
	 */
	@java.lang.SuppressWarnings("all")
	public String getTaxId() {
		return this.taxId;
	}

	/**
	 * Option to provide a label to the additional_info field. 40 characters max.
	 */
	@java.lang.SuppressWarnings("all")
	public String getAdditionalInfoLabel() {
		return this.additionalInfoLabel;
	}

	/**
	 * Additional information, such as business hours. Maximum length is 40 characters.
	 */
	@java.lang.SuppressWarnings("all")
	public String getAdditionalInfo() {
		return this.additionalInfo;
	}

	/**
	 * The merchant email address. Maximum length is 260 characters.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public MerchantInfo setEmail(final String email) {
		this.email = email;
		return this;
	}

	/**
	 * The merchant first name. Maximum length is 30 characters.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public MerchantInfo setFirstName(final String firstName) {
		this.firstName = firstName;
		return this;
	}

	/**
	 * The merchant last name. Maximum length is 30 characters.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public MerchantInfo setLastName(final String lastName) {
		this.lastName = lastName;
		return this;
	}

	/**
	 * The merchant address.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public MerchantInfo setAddress(final InvoiceAddress address) {
		this.address = address;
		return this;
	}

	/**
	 * The merchant company business name. Maximum length is 100 characters.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public MerchantInfo setBusinessName(final String businessName) {
		this.businessName = businessName;
		return this;
	}

	/**
	 * The merchant phone number.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public MerchantInfo setPhone(final Phone phone) {
		this.phone = phone;
		return this;
	}

	/**
	 * The merchant fax number.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public MerchantInfo setFax(final Phone fax) {
		this.fax = fax;
		return this;
	}

	/**
	 * The merchant website. Maximum length is 2048 characters.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public MerchantInfo setWebsite(final String website) {
		this.website = website;
		return this;
	}

	/**
	 * The merchant tax ID. Maximum length is 100 characters.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public MerchantInfo setTaxId(final String taxId) {
		this.taxId = taxId;
		return this;
	}

	/**
	 * Option to provide a label to the additional_info field. 40 characters max.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public MerchantInfo setAdditionalInfoLabel(final String additionalInfoLabel) {
		this.additionalInfoLabel = additionalInfoLabel;
		return this;
	}

	/**
	 * Additional information, such as business hours. Maximum length is 40 characters.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public MerchantInfo setAdditionalInfo(final String additionalInfo) {
		this.additionalInfo = additionalInfo;
		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 MerchantInfo)) return false;
		final MerchantInfo other = (MerchantInfo) o;
		if (!other.canEqual((java.lang.Object) this)) return false;
		if (!super.equals(o)) return false;
		final java.lang.Object this$email = this.getEmail();
		final java.lang.Object other$email = other.getEmail();
		if (this$email == null ? other$email != null : !this$email.equals(other$email)) return false;
		final java.lang.Object this$firstName = this.getFirstName();
		final java.lang.Object other$firstName = other.getFirstName();
		if (this$firstName == null ? other$firstName != null : !this$firstName.equals(other$firstName)) return false;
		final java.lang.Object this$lastName = this.getLastName();
		final java.lang.Object other$lastName = other.getLastName();
		if (this$lastName == null ? other$lastName != null : !this$lastName.equals(other$lastName)) return false;
		final java.lang.Object this$address = this.getAddress();
		final java.lang.Object other$address = other.getAddress();
		if (this$address == null ? other$address != null : !this$address.equals(other$address)) return false;
		final java.lang.Object this$businessName = this.getBusinessName();
		final java.lang.Object other$businessName = other.getBusinessName();
		if (this$businessName == null ? other$businessName != null : !this$businessName.equals(other$businessName)) 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;
		final java.lang.Object this$fax = this.getFax();
		final java.lang.Object other$fax = other.getFax();
		if (this$fax == null ? other$fax != null : !this$fax.equals(other$fax)) return false;
		final java.lang.Object this$website = this.getWebsite();
		final java.lang.Object other$website = other.getWebsite();
		if (this$website == null ? other$website != null : !this$website.equals(other$website)) return false;
		final java.lang.Object this$taxId = this.getTaxId();
		final java.lang.Object other$taxId = other.getTaxId();
		if (this$taxId == null ? other$taxId != null : !this$taxId.equals(other$taxId)) return false;
		final java.lang.Object this$additionalInfoLabel = this.getAdditionalInfoLabel();
		final java.lang.Object other$additionalInfoLabel = other.getAdditionalInfoLabel();
		if (this$additionalInfoLabel == null ? other$additionalInfoLabel != null : !this$additionalInfoLabel.equals(other$additionalInfoLabel)) return false;
		final java.lang.Object this$additionalInfo = this.getAdditionalInfo();
		final java.lang.Object other$additionalInfo = other.getAdditionalInfo();
		if (this$additionalInfo == null ? other$additionalInfo != null : !this$additionalInfo.equals(other$additionalInfo)) return false;
		return true;
	}

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

	@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 $email = this.getEmail();
		result = result * PRIME + ($email == null ? 43 : $email.hashCode());
		final java.lang.Object $firstName = this.getFirstName();
		result = result * PRIME + ($firstName == null ? 43 : $firstName.hashCode());
		final java.lang.Object $lastName = this.getLastName();
		result = result * PRIME + ($lastName == null ? 43 : $lastName.hashCode());
		final java.lang.Object $address = this.getAddress();
		result = result * PRIME + ($address == null ? 43 : $address.hashCode());
		final java.lang.Object $businessName = this.getBusinessName();
		result = result * PRIME + ($businessName == null ? 43 : $businessName.hashCode());
		final java.lang.Object $phone = this.getPhone();
		result = result * PRIME + ($phone == null ? 43 : $phone.hashCode());
		final java.lang.Object $fax = this.getFax();
		result = result * PRIME + ($fax == null ? 43 : $fax.hashCode());
		final java.lang.Object $website = this.getWebsite();
		result = result * PRIME + ($website == null ? 43 : $website.hashCode());
		final java.lang.Object $taxId = this.getTaxId();
		result = result * PRIME + ($taxId == null ? 43 : $taxId.hashCode());
		final java.lang.Object $additionalInfoLabel = this.getAdditionalInfoLabel();
		result = result * PRIME + ($additionalInfoLabel == null ? 43 : $additionalInfoLabel.hashCode());
		final java.lang.Object $additionalInfo = this.getAdditionalInfo();
		result = result * PRIME + ($additionalInfo == null ? 43 : $additionalInfo.hashCode());
		return result;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy