com.paypal.api.payments.Phone 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 Phone extends PayPalModel {
/**
* The country calling code (CC) as defined by E.164. The combined length of CC+national cannot be more than 15 digits.
*/
private String countryCode;
/**
* The national number as defined by E.164. The combined length of CC+national cannot be more than 15 digits. A national number consists of National Destination Code (NDC) and Subscriber Number (SN).
*/
private String nationalNumber;
/**
* Phone extension
*/
private String extension;
/**
* Default Constructor
*/
public Phone() {
}
/**
* Parameterized Constructor
*/
public Phone(String countryCode, String nationalNumber) {
this.countryCode = countryCode;
this.nationalNumber = nationalNumber;
}
/**
* The country calling code (CC) as defined by E.164. The combined length of CC+national cannot be more than 15 digits.
*/
@java.lang.SuppressWarnings("all")
public String getCountryCode() {
return this.countryCode;
}
/**
* The national number as defined by E.164. The combined length of CC+national cannot be more than 15 digits. A national number consists of National Destination Code (NDC) and Subscriber Number (SN).
*/
@java.lang.SuppressWarnings("all")
public String getNationalNumber() {
return this.nationalNumber;
}
/**
* Phone extension
*/
@java.lang.SuppressWarnings("all")
public String getExtension() {
return this.extension;
}
/**
* The country calling code (CC) as defined by E.164. The combined length of CC+national cannot be more than 15 digits.
* @return this
*/
@java.lang.SuppressWarnings("all")
public Phone setCountryCode(final String countryCode) {
this.countryCode = countryCode;
return this;
}
/**
* The national number as defined by E.164. The combined length of CC+national cannot be more than 15 digits. A national number consists of National Destination Code (NDC) and Subscriber Number (SN).
* @return this
*/
@java.lang.SuppressWarnings("all")
public Phone setNationalNumber(final String nationalNumber) {
this.nationalNumber = nationalNumber;
return this;
}
/**
* Phone extension
* @return this
*/
@java.lang.SuppressWarnings("all")
public Phone setExtension(final String extension) {
this.extension = extension;
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 Phone)) return false;
final Phone other = (Phone) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (!super.equals(o)) 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$nationalNumber = this.getNationalNumber();
final java.lang.Object other$nationalNumber = other.getNationalNumber();
if (this$nationalNumber == null ? other$nationalNumber != null : !this$nationalNumber.equals(other$nationalNumber)) return false;
final java.lang.Object this$extension = this.getExtension();
final java.lang.Object other$extension = other.getExtension();
if (this$extension == null ? other$extension != null : !this$extension.equals(other$extension)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
protected boolean canEqual(final java.lang.Object other) {
return other instanceof Phone;
}
@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 $countryCode = this.getCountryCode();
result = result * PRIME + ($countryCode == null ? 43 : $countryCode.hashCode());
final java.lang.Object $nationalNumber = this.getNationalNumber();
result = result * PRIME + ($nationalNumber == null ? 43 : $nationalNumber.hashCode());
final java.lang.Object $extension = this.getExtension();
result = result * PRIME + ($extension == null ? 43 : $extension.hashCode());
return result;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy