com.paypal.api.payments.Address 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:04 CST 2017
package com.paypal.api.payments;
public class Address extends BaseAddress {
/**
* Phone number in E.123 format. 50 characters max.
*/
private String phone;
/**
* Type of address (e.g., HOME_OR_WORK, GIFT etc).
*/
private String type;
/**
* Phone number in E.123 format. 50 characters max.
*/
@java.lang.SuppressWarnings("all")
public String getPhone() {
return this.phone;
}
/**
* Type of address (e.g., HOME_OR_WORK, GIFT etc).
*/
@java.lang.SuppressWarnings("all")
public String getType() {
return this.type;
}
/**
* Phone number in E.123 format. 50 characters max.
* @return this
*/
@java.lang.SuppressWarnings("all")
public Address setPhone(final String phone) {
this.phone = phone;
return this;
}
/**
* Type of address (e.g., HOME_OR_WORK, GIFT etc).
* @return this
*/
@java.lang.SuppressWarnings("all")
public Address setType(final String type) {
this.type = type;
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 Address)) return false;
final Address other = (Address) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (!super.equals(o)) 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$type = this.getType();
final java.lang.Object other$type = other.getType();
if (this$type == null ? other$type != null : !this$type.equals(other$type)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof Address;
}
@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 $phone = this.getPhone();
result = result * PRIME + ($phone == null ? 43 : $phone.hashCode());
final java.lang.Object $type = this.getType();
result = result * PRIME + ($type == null ? 43 : $type.hashCode());
return result;
}
}