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

com.paypal.api.payments.BillingInfo 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;

public class BillingInfo extends PayPalModel {
	/**
	 * The invoice recipient email address. Maximum length is 260 characters.
	 */
	private String email;
	/**
	 * The invoice recipient first name. Maximum length is 30 characters.
	 */
	private String firstName;
	/**
	 * The invoice recipient last name. Maximum length is 30 characters.
	 */
	private String lastName;
	/**
	 * The invoice recipient company business name. Maximum length is 100 characters.
	 */
	private String businessName;
	/**
	 * The invoice recipient address.
	 */
	private InvoiceAddress address;
	/**
	 * The language in which the email was sent to the payer. Used only when the payer does not have a PayPal account.
	 */
	private String language;
	/**
	 * Additional information, such as business hours. Maximum length is 40 characters.
	 */
	private String additionalInfo;
	/**
	 * Preferred notification channel of the payer. Email by default.
	 */
	private String notificationChannel;
	/**
	 * Mobile Phone number of the recipient to which SMS will be sent if notification_channel is SMS.
	 */
	private Phone phone;

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

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

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

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

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

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

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

	/**
	 * The language in which the email was sent to the payer. Used only when the payer does not have a PayPal account.
	 */
	@java.lang.SuppressWarnings("all")
	public String getLanguage() {
		return this.language;
	}

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

	/**
	 * Preferred notification channel of the payer. Email by default.
	 */
	@java.lang.SuppressWarnings("all")
	public String getNotificationChannel() {
		return this.notificationChannel;
	}

	/**
	 * Mobile Phone number of the recipient to which SMS will be sent if notification_channel is SMS.
	 */
	@java.lang.SuppressWarnings("all")
	public Phone getPhone() {
		return this.phone;
	}

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

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

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

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

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

	/**
	 * The language in which the email was sent to the payer. Used only when the payer does not have a PayPal account.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public BillingInfo setLanguage(final String language) {
		this.language = language;
		return this;
	}

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

	/**
	 * Preferred notification channel of the payer. Email by default.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public BillingInfo setNotificationChannel(final String notificationChannel) {
		this.notificationChannel = notificationChannel;
		return this;
	}

	/**
	 * Mobile Phone number of the recipient to which SMS will be sent if notification_channel is SMS.
	 * @return this
	 */
	@java.lang.SuppressWarnings("all")
	public BillingInfo 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 BillingInfo)) return false;
		final BillingInfo other = (BillingInfo) 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$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$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$language = this.getLanguage();
		final java.lang.Object other$language = other.getLanguage();
		if (this$language == null ? other$language != null : !this$language.equals(other$language)) 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;
		final java.lang.Object this$notificationChannel = this.getNotificationChannel();
		final java.lang.Object other$notificationChannel = other.getNotificationChannel();
		if (this$notificationChannel == null ? other$notificationChannel != null : !this$notificationChannel.equals(other$notificationChannel)) 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 BillingInfo;
	}

	@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 $businessName = this.getBusinessName();
		result = result * PRIME + ($businessName == null ? 43 : $businessName.hashCode());
		final java.lang.Object $address = this.getAddress();
		result = result * PRIME + ($address == null ? 43 : $address.hashCode());
		final java.lang.Object $language = this.getLanguage();
		result = result * PRIME + ($language == null ? 43 : $language.hashCode());
		final java.lang.Object $additionalInfo = this.getAdditionalInfo();
		result = result * PRIME + ($additionalInfo == null ? 43 : $additionalInfo.hashCode());
		final java.lang.Object $notificationChannel = this.getNotificationChannel();
		result = result * PRIME + ($notificationChannel == null ? 43 : $notificationChannel.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