com.paypal.api.payments.Participant 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
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 Participant extends PayPalModel {
/**
* The participant email address.
*/
private String email;
/**
* The participant first name.
*/
private String firstName;
/**
* The participant last name.
*/
private String lastName;
/**
* The participant company business name.
*/
private String businessName;
/**
* The participant phone number.
*/
private Phone phone;
/**
* The participant fax number.
*/
private Phone fax;
/**
* The participant website.
*/
private String website;
/**
* Additional information, such as business hours.
*/
private String additionalInfo;
/**
* The participant address.
*/
private InvoiceAddress address;
/**
* Default Constructor
*/
public Participant() {
}
/**
* Parameterized Constructor
*/
public Participant(String email) {
this.email = email;
}
/**
* The participant email address.
*/
@java.lang.SuppressWarnings("all")
public String getEmail() {
return this.email;
}
/**
* The participant first name.
*/
@java.lang.SuppressWarnings("all")
public String getFirstName() {
return this.firstName;
}
/**
* The participant last name.
*/
@java.lang.SuppressWarnings("all")
public String getLastName() {
return this.lastName;
}
/**
* The participant company business name.
*/
@java.lang.SuppressWarnings("all")
public String getBusinessName() {
return this.businessName;
}
/**
* The participant phone number.
*/
@java.lang.SuppressWarnings("all")
public Phone getPhone() {
return this.phone;
}
/**
* The participant fax number.
*/
@java.lang.SuppressWarnings("all")
public Phone getFax() {
return this.fax;
}
/**
* The participant website.
*/
@java.lang.SuppressWarnings("all")
public String getWebsite() {
return this.website;
}
/**
* Additional information, such as business hours.
*/
@java.lang.SuppressWarnings("all")
public String getAdditionalInfo() {
return this.additionalInfo;
}
/**
* The participant address.
*/
@java.lang.SuppressWarnings("all")
public InvoiceAddress getAddress() {
return this.address;
}
/**
* The participant email address.
* @return this
*/
@java.lang.SuppressWarnings("all")
public Participant setEmail(final String email) {
this.email = email;
return this;
}
/**
* The participant first name.
* @return this
*/
@java.lang.SuppressWarnings("all")
public Participant setFirstName(final String firstName) {
this.firstName = firstName;
return this;
}
/**
* The participant last name.
* @return this
*/
@java.lang.SuppressWarnings("all")
public Participant setLastName(final String lastName) {
this.lastName = lastName;
return this;
}
/**
* The participant company business name.
* @return this
*/
@java.lang.SuppressWarnings("all")
public Participant setBusinessName(final String businessName) {
this.businessName = businessName;
return this;
}
/**
* The participant phone number.
* @return this
*/
@java.lang.SuppressWarnings("all")
public Participant setPhone(final Phone phone) {
this.phone = phone;
return this;
}
/**
* The participant fax number.
* @return this
*/
@java.lang.SuppressWarnings("all")
public Participant setFax(final Phone fax) {
this.fax = fax;
return this;
}
/**
* The participant website.
* @return this
*/
@java.lang.SuppressWarnings("all")
public Participant setWebsite(final String website) {
this.website = website;
return this;
}
/**
* Additional information, such as business hours.
* @return this
*/
@java.lang.SuppressWarnings("all")
public Participant setAdditionalInfo(final String additionalInfo) {
this.additionalInfo = additionalInfo;
return this;
}
/**
* The participant address.
* @return this
*/
@java.lang.SuppressWarnings("all")
public Participant setAddress(final InvoiceAddress address) {
this.address = address;
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 Participant)) return false;
final Participant other = (Participant) 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$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$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$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;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof Participant;
}
@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 $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 $additionalInfo = this.getAdditionalInfo();
result = result * PRIME + ($additionalInfo == null ? 43 : $additionalInfo.hashCode());
final java.lang.Object $address = this.getAddress();
result = result * PRIME + ($address == null ? 43 : $address.hashCode());
return result;
}
}