com.wallee.sdk.model.SpaceAddress Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wallee-java-sdk Show documentation
Show all versions of wallee-java-sdk Show documentation
The SDK for simplifying the integration with wallee API.
/**
* wallee SDK
*
* This library allows to interact with the wallee payment service.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.wallee.sdk.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.*;
import java.time.OffsetDateTime;
/**
*
*/
@ApiModel(description = "")
public class SpaceAddress {
@JsonProperty("city")
protected String city = null;
@JsonProperty("country")
protected String country = null;
@JsonProperty("dependentLocality")
protected String dependentLocality = null;
@JsonProperty("emailAddress")
protected String emailAddress = null;
@JsonProperty("familyName")
protected String familyName = null;
@JsonProperty("givenName")
protected String givenName = null;
@JsonProperty("mobilePhoneNumber")
protected String mobilePhoneNumber = null;
@JsonProperty("organizationName")
protected String organizationName = null;
@JsonProperty("phoneNumber")
protected String phoneNumber = null;
@JsonProperty("postalState")
protected String postalState = null;
@JsonProperty("postcode")
protected String postcode = null;
@JsonProperty("salesTaxNumber")
protected String salesTaxNumber = null;
@JsonProperty("salutation")
protected String salutation = null;
@JsonProperty("sortingCode")
protected String sortingCode = null;
@JsonProperty("street")
protected String street = null;
/**
* The city, town or village.
* @return city
**/
@ApiModelProperty(value = "The city, town or village.")
public String getCity() {
return city;
}
/**
* The two-letter country code (ISO 3166 format).
* @return country
**/
@ApiModelProperty(value = "The two-letter country code (ISO 3166 format).")
public String getCountry() {
return country;
}
/**
* The dependent locality which is a sub-division of the state.
* @return dependentLocality
**/
@ApiModelProperty(value = "The dependent locality which is a sub-division of the state.")
public String getDependentLocality() {
return dependentLocality;
}
/**
* The email address used for communication with clients.
* @return emailAddress
**/
@ApiModelProperty(value = "The email address used for communication with clients.")
public String getEmailAddress() {
return emailAddress;
}
/**
* The family or last name.
* @return familyName
**/
@ApiModelProperty(value = "The family or last name.")
public String getFamilyName() {
return familyName;
}
/**
* The given or first name.
* @return givenName
**/
@ApiModelProperty(value = "The given or first name.")
public String getGivenName() {
return givenName;
}
/**
* The phone number of a mobile phone.
* @return mobilePhoneNumber
**/
@ApiModelProperty(value = "The phone number of a mobile phone.")
public String getMobilePhoneNumber() {
return mobilePhoneNumber;
}
/**
* The organization's name.
* @return organizationName
**/
@ApiModelProperty(value = "The organization's name.")
public String getOrganizationName() {
return organizationName;
}
/**
* The phone number.
* @return phoneNumber
**/
@ApiModelProperty(value = "The phone number.")
public String getPhoneNumber() {
return phoneNumber;
}
/**
* The name of the region, typically a state, county, province or prefecture.
* @return postalState
**/
@ApiModelProperty(value = "The name of the region, typically a state, county, province or prefecture.")
public String getPostalState() {
return postalState;
}
/**
* The postal code, also known as ZIP, postcode, etc.
* @return postcode
**/
@ApiModelProperty(value = "The postal code, also known as ZIP, postcode, etc.")
public String getPostcode() {
return postcode;
}
/**
* The sales tax number of the organization.
* @return salesTaxNumber
**/
@ApiModelProperty(value = "The sales tax number of the organization.")
public String getSalesTaxNumber() {
return salesTaxNumber;
}
/**
* The salutation e.g. Mrs, Mr, Dr.
* @return salutation
**/
@ApiModelProperty(value = "The salutation e.g. Mrs, Mr, Dr.")
public String getSalutation() {
return salutation;
}
/**
* The sorting code identifying the post office where the PO Box is located.
* @return sortingCode
**/
@ApiModelProperty(value = "The sorting code identifying the post office where the PO Box is located.")
public String getSortingCode() {
return sortingCode;
}
/**
* The street or PO Box.
* @return street
**/
@ApiModelProperty(value = "The street or PO Box.")
public String getStreet() {
return street;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SpaceAddress spaceAddress = (SpaceAddress) o;
return Objects.equals(this.city, spaceAddress.city) &&
Objects.equals(this.country, spaceAddress.country) &&
Objects.equals(this.dependentLocality, spaceAddress.dependentLocality) &&
Objects.equals(this.emailAddress, spaceAddress.emailAddress) &&
Objects.equals(this.familyName, spaceAddress.familyName) &&
Objects.equals(this.givenName, spaceAddress.givenName) &&
Objects.equals(this.mobilePhoneNumber, spaceAddress.mobilePhoneNumber) &&
Objects.equals(this.organizationName, spaceAddress.organizationName) &&
Objects.equals(this.phoneNumber, spaceAddress.phoneNumber) &&
Objects.equals(this.postalState, spaceAddress.postalState) &&
Objects.equals(this.postcode, spaceAddress.postcode) &&
Objects.equals(this.salesTaxNumber, spaceAddress.salesTaxNumber) &&
Objects.equals(this.salutation, spaceAddress.salutation) &&
Objects.equals(this.sortingCode, spaceAddress.sortingCode) &&
Objects.equals(this.street, spaceAddress.street);
}
@Override
public int hashCode() {
return Objects.hash(city, country, dependentLocality, emailAddress, familyName, givenName, mobilePhoneNumber, organizationName, phoneNumber, postalState, postcode, salesTaxNumber, salutation, sortingCode, street);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SpaceAddress {\n");
sb.append(" city: ").append(toIndentedString(city)).append("\n");
sb.append(" country: ").append(toIndentedString(country)).append("\n");
sb.append(" dependentLocality: ").append(toIndentedString(dependentLocality)).append("\n");
sb.append(" emailAddress: ").append(toIndentedString(emailAddress)).append("\n");
sb.append(" familyName: ").append(toIndentedString(familyName)).append("\n");
sb.append(" givenName: ").append(toIndentedString(givenName)).append("\n");
sb.append(" mobilePhoneNumber: ").append(toIndentedString(mobilePhoneNumber)).append("\n");
sb.append(" organizationName: ").append(toIndentedString(organizationName)).append("\n");
sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n");
sb.append(" postalState: ").append(toIndentedString(postalState)).append("\n");
sb.append(" postcode: ").append(toIndentedString(postcode)).append("\n");
sb.append(" salesTaxNumber: ").append(toIndentedString(salesTaxNumber)).append("\n");
sb.append(" salutation: ").append(toIndentedString(salutation)).append("\n");
sb.append(" sortingCode: ").append(toIndentedString(sortingCode)).append("\n");
sb.append(" street: ").append(toIndentedString(street)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}