com.paypal.api.payments.PayerInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rest-api-sdk Show documentation
Show all versions of rest-api-sdk Show documentation
PayPal SDK for integrating with the REST APIs
// 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 PayerInfo extends PayPalModel {
/**
* Email address representing the payer. 127 characters max.
*/
private String email;
/**
* External Remember Me id representing the payer
*/
private String externalRememberMeId;
/**
* Account Number representing the Payer
*/
private String accountNumber;
/**
* Salutation of the payer.
*/
private String salutation;
/**
* First name of the payer.
*/
private String firstName;
/**
* Middle name of the payer.
*/
private String middleName;
/**
* Last name of the payer.
*/
private String lastName;
/**
* Suffix of the payer.
*/
private String suffix;
/**
* PayPal assigned encrypted Payer ID.
*/
private String payerId;
/**
* Phone number representing the payer. 20 characters max.
*/
private String phone;
/**
* Phone type
*/
private String phoneType;
/**
* Birth date of the Payer in ISO8601 format (yyyy-mm-dd).
*/
private String birthDate;
/**
* Payer’s tax ID. Only supported when the `payment_method` is set to `paypal`.
*/
private String taxId;
/**
* Payer’s tax ID type. Allowed values: `BR_CPF` or `BR_CNPJ`. Only supported when the `payment_method` is set to `paypal`.
*/
private String taxIdType;
/**
* Two-letter registered country code of the payer to identify the buyer country.
*/
private String countryCode;
/**
* Billing address of the Payer.
*/
private Address billingAddress;
/**
* Shipping address of payer PayPal account.
*/
private ShippingAddress shippingAddress;
/**
* Default Constructor
*/
public PayerInfo() {
}
/**
* Email address representing the payer. 127 characters max.
*/
@java.lang.SuppressWarnings("all")
public String getEmail() {
return this.email;
}
/**
* External Remember Me id representing the payer
*/
@java.lang.SuppressWarnings("all")
public String getExternalRememberMeId() {
return this.externalRememberMeId;
}
/**
* Account Number representing the Payer
*/
@java.lang.SuppressWarnings("all")
public String getAccountNumber() {
return this.accountNumber;
}
/**
* Salutation of the payer.
*/
@java.lang.SuppressWarnings("all")
public String getSalutation() {
return this.salutation;
}
/**
* First name of the payer.
*/
@java.lang.SuppressWarnings("all")
public String getFirstName() {
return this.firstName;
}
/**
* Middle name of the payer.
*/
@java.lang.SuppressWarnings("all")
public String getMiddleName() {
return this.middleName;
}
/**
* Last name of the payer.
*/
@java.lang.SuppressWarnings("all")
public String getLastName() {
return this.lastName;
}
/**
* Suffix of the payer.
*/
@java.lang.SuppressWarnings("all")
public String getSuffix() {
return this.suffix;
}
/**
* PayPal assigned encrypted Payer ID.
*/
@java.lang.SuppressWarnings("all")
public String getPayerId() {
return this.payerId;
}
/**
* Phone number representing the payer. 20 characters max.
*/
@java.lang.SuppressWarnings("all")
public String getPhone() {
return this.phone;
}
/**
* Phone type
*/
@java.lang.SuppressWarnings("all")
public String getPhoneType() {
return this.phoneType;
}
/**
* Birth date of the Payer in ISO8601 format (yyyy-mm-dd).
*/
@java.lang.SuppressWarnings("all")
public String getBirthDate() {
return this.birthDate;
}
/**
* Payer’s tax ID. Only supported when the `payment_method` is set to `paypal`.
*/
@java.lang.SuppressWarnings("all")
public String getTaxId() {
return this.taxId;
}
/**
* Payer’s tax ID type. Allowed values: `BR_CPF` or `BR_CNPJ`. Only supported when the `payment_method` is set to `paypal`.
*/
@java.lang.SuppressWarnings("all")
public String getTaxIdType() {
return this.taxIdType;
}
/**
* Two-letter registered country code of the payer to identify the buyer country.
*/
@java.lang.SuppressWarnings("all")
public String getCountryCode() {
return this.countryCode;
}
/**
* Billing address of the Payer.
*/
@java.lang.SuppressWarnings("all")
public Address getBillingAddress() {
return this.billingAddress;
}
/**
* Shipping address of payer PayPal account.
*/
@java.lang.SuppressWarnings("all")
public ShippingAddress getShippingAddress() {
return this.shippingAddress;
}
/**
* Email address representing the payer. 127 characters max.
* @return this
*/
@java.lang.SuppressWarnings("all")
public PayerInfo setEmail(final String email) {
this.email = email;
return this;
}
/**
* External Remember Me id representing the payer
* @return this
*/
@java.lang.SuppressWarnings("all")
public PayerInfo setExternalRememberMeId(final String externalRememberMeId) {
this.externalRememberMeId = externalRememberMeId;
return this;
}
/**
* Account Number representing the Payer
* @return this
*/
@java.lang.SuppressWarnings("all")
public PayerInfo setAccountNumber(final String accountNumber) {
this.accountNumber = accountNumber;
return this;
}
/**
* Salutation of the payer.
* @return this
*/
@java.lang.SuppressWarnings("all")
public PayerInfo setSalutation(final String salutation) {
this.salutation = salutation;
return this;
}
/**
* First name of the payer.
* @return this
*/
@java.lang.SuppressWarnings("all")
public PayerInfo setFirstName(final String firstName) {
this.firstName = firstName;
return this;
}
/**
* Middle name of the payer.
* @return this
*/
@java.lang.SuppressWarnings("all")
public PayerInfo setMiddleName(final String middleName) {
this.middleName = middleName;
return this;
}
/**
* Last name of the payer.
* @return this
*/
@java.lang.SuppressWarnings("all")
public PayerInfo setLastName(final String lastName) {
this.lastName = lastName;
return this;
}
/**
* Suffix of the payer.
* @return this
*/
@java.lang.SuppressWarnings("all")
public PayerInfo setSuffix(final String suffix) {
this.suffix = suffix;
return this;
}
/**
* PayPal assigned encrypted Payer ID.
* @return this
*/
@java.lang.SuppressWarnings("all")
public PayerInfo setPayerId(final String payerId) {
this.payerId = payerId;
return this;
}
/**
* Phone number representing the payer. 20 characters max.
* @return this
*/
@java.lang.SuppressWarnings("all")
public PayerInfo setPhone(final String phone) {
this.phone = phone;
return this;
}
/**
* Phone type
* @return this
*/
@java.lang.SuppressWarnings("all")
public PayerInfo setPhoneType(final String phoneType) {
this.phoneType = phoneType;
return this;
}
/**
* Birth date of the Payer in ISO8601 format (yyyy-mm-dd).
* @return this
*/
@java.lang.SuppressWarnings("all")
public PayerInfo setBirthDate(final String birthDate) {
this.birthDate = birthDate;
return this;
}
/**
* Payer’s tax ID. Only supported when the `payment_method` is set to `paypal`.
* @return this
*/
@java.lang.SuppressWarnings("all")
public PayerInfo setTaxId(final String taxId) {
this.taxId = taxId;
return this;
}
/**
* Payer’s tax ID type. Allowed values: `BR_CPF` or `BR_CNPJ`. Only supported when the `payment_method` is set to `paypal`.
* @return this
*/
@java.lang.SuppressWarnings("all")
public PayerInfo setTaxIdType(final String taxIdType) {
this.taxIdType = taxIdType;
return this;
}
/**
* Two-letter registered country code of the payer to identify the buyer country.
* @return this
*/
@java.lang.SuppressWarnings("all")
public PayerInfo setCountryCode(final String countryCode) {
this.countryCode = countryCode;
return this;
}
/**
* Billing address of the Payer.
* @return this
*/
@java.lang.SuppressWarnings("all")
public PayerInfo setBillingAddress(final Address billingAddress) {
this.billingAddress = billingAddress;
return this;
}
/**
* Shipping address of payer PayPal account.
* @return this
*/
@java.lang.SuppressWarnings("all")
public PayerInfo setShippingAddress(final ShippingAddress shippingAddress) {
this.shippingAddress = shippingAddress;
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 PayerInfo)) return false;
final PayerInfo other = (PayerInfo) 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$externalRememberMeId = this.getExternalRememberMeId();
final java.lang.Object other$externalRememberMeId = other.getExternalRememberMeId();
if (this$externalRememberMeId == null ? other$externalRememberMeId != null : !this$externalRememberMeId.equals(other$externalRememberMeId)) return false;
final java.lang.Object this$accountNumber = this.getAccountNumber();
final java.lang.Object other$accountNumber = other.getAccountNumber();
if (this$accountNumber == null ? other$accountNumber != null : !this$accountNumber.equals(other$accountNumber)) return false;
final java.lang.Object this$salutation = this.getSalutation();
final java.lang.Object other$salutation = other.getSalutation();
if (this$salutation == null ? other$salutation != null : !this$salutation.equals(other$salutation)) 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$middleName = this.getMiddleName();
final java.lang.Object other$middleName = other.getMiddleName();
if (this$middleName == null ? other$middleName != null : !this$middleName.equals(other$middleName)) 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$suffix = this.getSuffix();
final java.lang.Object other$suffix = other.getSuffix();
if (this$suffix == null ? other$suffix != null : !this$suffix.equals(other$suffix)) return false;
final java.lang.Object this$payerId = this.getPayerId();
final java.lang.Object other$payerId = other.getPayerId();
if (this$payerId == null ? other$payerId != null : !this$payerId.equals(other$payerId)) 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$phoneType = this.getPhoneType();
final java.lang.Object other$phoneType = other.getPhoneType();
if (this$phoneType == null ? other$phoneType != null : !this$phoneType.equals(other$phoneType)) return false;
final java.lang.Object this$birthDate = this.getBirthDate();
final java.lang.Object other$birthDate = other.getBirthDate();
if (this$birthDate == null ? other$birthDate != null : !this$birthDate.equals(other$birthDate)) 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$taxIdType = this.getTaxIdType();
final java.lang.Object other$taxIdType = other.getTaxIdType();
if (this$taxIdType == null ? other$taxIdType != null : !this$taxIdType.equals(other$taxIdType)) 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$billingAddress = this.getBillingAddress();
final java.lang.Object other$billingAddress = other.getBillingAddress();
if (this$billingAddress == null ? other$billingAddress != null : !this$billingAddress.equals(other$billingAddress)) return false;
final java.lang.Object this$shippingAddress = this.getShippingAddress();
final java.lang.Object other$shippingAddress = other.getShippingAddress();
if (this$shippingAddress == null ? other$shippingAddress != null : !this$shippingAddress.equals(other$shippingAddress)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof PayerInfo;
}
@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 $externalRememberMeId = this.getExternalRememberMeId();
result = result * PRIME + ($externalRememberMeId == null ? 43 : $externalRememberMeId.hashCode());
final java.lang.Object $accountNumber = this.getAccountNumber();
result = result * PRIME + ($accountNumber == null ? 43 : $accountNumber.hashCode());
final java.lang.Object $salutation = this.getSalutation();
result = result * PRIME + ($salutation == null ? 43 : $salutation.hashCode());
final java.lang.Object $firstName = this.getFirstName();
result = result * PRIME + ($firstName == null ? 43 : $firstName.hashCode());
final java.lang.Object $middleName = this.getMiddleName();
result = result * PRIME + ($middleName == null ? 43 : $middleName.hashCode());
final java.lang.Object $lastName = this.getLastName();
result = result * PRIME + ($lastName == null ? 43 : $lastName.hashCode());
final java.lang.Object $suffix = this.getSuffix();
result = result * PRIME + ($suffix == null ? 43 : $suffix.hashCode());
final java.lang.Object $payerId = this.getPayerId();
result = result * PRIME + ($payerId == null ? 43 : $payerId.hashCode());
final java.lang.Object $phone = this.getPhone();
result = result * PRIME + ($phone == null ? 43 : $phone.hashCode());
final java.lang.Object $phoneType = this.getPhoneType();
result = result * PRIME + ($phoneType == null ? 43 : $phoneType.hashCode());
final java.lang.Object $birthDate = this.getBirthDate();
result = result * PRIME + ($birthDate == null ? 43 : $birthDate.hashCode());
final java.lang.Object $taxId = this.getTaxId();
result = result * PRIME + ($taxId == null ? 43 : $taxId.hashCode());
final java.lang.Object $taxIdType = this.getTaxIdType();
result = result * PRIME + ($taxIdType == null ? 43 : $taxIdType.hashCode());
final java.lang.Object $countryCode = this.getCountryCode();
result = result * PRIME + ($countryCode == null ? 43 : $countryCode.hashCode());
final java.lang.Object $billingAddress = this.getBillingAddress();
result = result * PRIME + ($billingAddress == null ? 43 : $billingAddress.hashCode());
final java.lang.Object $shippingAddress = this.getShippingAddress();
result = result * PRIME + ($shippingAddress == null ? 43 : $shippingAddress.hashCode());
return result;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy