
com.firstdata.payeezy.models.enrollment.Address Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of payeezy-java-client Show documentation
Show all versions of payeezy-java-client Show documentation
Payeezy Java SDK to integrate with Payeezy API
The newest version!
package com.firstdata.payeezy.models.enrollment;
import com.fasterxml.jackson.annotation.JsonProperty;
public class Address {
public Address() {
}
@JsonProperty("name")
private String name;
@JsonProperty("street")
private String addressLine1;
@JsonProperty("street2")
private String addressLine2;
@JsonProperty("state_province")
private String state;
@JsonProperty("city")
private String city;
@JsonProperty("country")
private String country;
@JsonProperty("email")
private String email;
private Phone phone;
@JsonProperty("zip_postal_code")
private String zip;
public String getZip() {
return zip;
}
@JsonProperty("zip_postal_code")
public void setZip(String zip) {
this.zip = zip;
}
public String getName() {
return name;
}
@JsonProperty("name")
public void setName(String name) {
this.name = name;
}
public String getAddressLine1() {
return addressLine1;
}
@JsonProperty("street")
public void setAddressLine1(String addressLine1) {
this.addressLine1 = addressLine1;
}
public String getAddressLine2() {
return addressLine2;
}
public void setAddressLine2(String addressLine2) {
this.addressLine2 = addressLine2;
}
public String getState() {
return state;
}
@JsonProperty("state_province")
public void setState(String state) {
this.state = state;
}
public String getCity() {
return city;
}
@JsonProperty("city")
public void setCity(String city) {
this.city = city;
}
public String getCountry() {
return country;
}
@JsonProperty("country")
public void setCountry(String country) {
if (country != null) {
boolean isUS1 = country.toUpperCase().indexOf("US") >= 0;
boolean isUS2 = country.toUpperCase().indexOf("840") >= 0;
if (isUS1 || isUS2) {
this.country = "0840";
} else {
this.country = country;
}
}
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
@JsonProperty("phone")
public Phone getPhone() {
return phone;
}
@JsonProperty("phone")
public void setPhone(Phone phone) {
this.phone = phone;
}
public static class Phone{
@JsonProperty("type")
private String type;
@JsonProperty("number")
private String number;
@JsonProperty("primary")
private String primary;
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getNumber() {
return number;
}
public void setNumber(String number) {
this.number = number;
}
public String getPrimary() {
return primary;
}
public void setPrimary(String primary) {
this.primary = primary;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy