com.wallee.sdk.model.SpaceAddressCreate 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 SpaceAddressCreate {
@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;
public SpaceAddressCreate city(String city) {
this.city = city;
return this;
}
/**
* The city, town or village.
* @return city
**/
@ApiModelProperty(value = "The city, town or village.")
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public SpaceAddressCreate country(String country) {
this.country = country;
return this;
}
/**
* 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;
}
public void setCountry(String country) {
this.country = country;
}
public SpaceAddressCreate dependentLocality(String dependentLocality) {
this.dependentLocality = dependentLocality;
return this;
}
/**
* 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;
}
public void setDependentLocality(String dependentLocality) {
this.dependentLocality = dependentLocality;
}
public SpaceAddressCreate emailAddress(String emailAddress) {
this.emailAddress = emailAddress;
return this;
}
/**
* 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;
}
public void setEmailAddress(String emailAddress) {
this.emailAddress = emailAddress;
}
public SpaceAddressCreate familyName(String familyName) {
this.familyName = familyName;
return this;
}
/**
* The family or last name.
* @return familyName
**/
@ApiModelProperty(value = "The family or last name.")
public String getFamilyName() {
return familyName;
}
public void setFamilyName(String familyName) {
this.familyName = familyName;
}
public SpaceAddressCreate givenName(String givenName) {
this.givenName = givenName;
return this;
}
/**
* The given or first name.
* @return givenName
**/
@ApiModelProperty(value = "The given or first name.")
public String getGivenName() {
return givenName;
}
public void setGivenName(String givenName) {
this.givenName = givenName;
}
public SpaceAddressCreate mobilePhoneNumber(String mobilePhoneNumber) {
this.mobilePhoneNumber = mobilePhoneNumber;
return this;
}
/**
* The phone number of a mobile phone.
* @return mobilePhoneNumber
**/
@ApiModelProperty(value = "The phone number of a mobile phone.")
public String getMobilePhoneNumber() {
return mobilePhoneNumber;
}
public void setMobilePhoneNumber(String mobilePhoneNumber) {
this.mobilePhoneNumber = mobilePhoneNumber;
}
public SpaceAddressCreate organizationName(String organizationName) {
this.organizationName = organizationName;
return this;
}
/**
* The organization's name.
* @return organizationName
**/
@ApiModelProperty(value = "The organization's name.")
public String getOrganizationName() {
return organizationName;
}
public void setOrganizationName(String organizationName) {
this.organizationName = organizationName;
}
public SpaceAddressCreate phoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber;
return this;
}
/**
* The phone number.
* @return phoneNumber
**/
@ApiModelProperty(value = "The phone number.")
public String getPhoneNumber() {
return phoneNumber;
}
public void setPhoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber;
}
public SpaceAddressCreate postalState(String postalState) {
this.postalState = postalState;
return this;
}
/**
* 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;
}
public void setPostalState(String postalState) {
this.postalState = postalState;
}
public SpaceAddressCreate postcode(String postcode) {
this.postcode = postcode;
return this;
}
/**
* 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;
}
public void setPostcode(String postcode) {
this.postcode = postcode;
}
public SpaceAddressCreate salesTaxNumber(String salesTaxNumber) {
this.salesTaxNumber = salesTaxNumber;
return this;
}
/**
* The sales tax number of the organization.
* @return salesTaxNumber
**/
@ApiModelProperty(value = "The sales tax number of the organization.")
public String getSalesTaxNumber() {
return salesTaxNumber;
}
public void setSalesTaxNumber(String salesTaxNumber) {
this.salesTaxNumber = salesTaxNumber;
}
public SpaceAddressCreate salutation(String salutation) {
this.salutation = salutation;
return this;
}
/**
* The salutation e.g. Mrs, Mr, Dr.
* @return salutation
**/
@ApiModelProperty(value = "The salutation e.g. Mrs, Mr, Dr.")
public String getSalutation() {
return salutation;
}
public void setSalutation(String salutation) {
this.salutation = salutation;
}
public SpaceAddressCreate sortingCode(String sortingCode) {
this.sortingCode = sortingCode;
return this;
}
/**
* 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;
}
public void setSortingCode(String sortingCode) {
this.sortingCode = sortingCode;
}
public SpaceAddressCreate street(String street) {
this.street = street;
return this;
}
/**
* The street or PO Box.
* @return street
**/
@ApiModelProperty(value = "The street or PO Box.")
public String getStreet() {
return street;
}
public void setStreet(String street) {
this.street = street;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SpaceAddressCreate spaceAddressCreate = (SpaceAddressCreate) o;
return Objects.equals(this.city, spaceAddressCreate.city) &&
Objects.equals(this.country, spaceAddressCreate.country) &&
Objects.equals(this.dependentLocality, spaceAddressCreate.dependentLocality) &&
Objects.equals(this.emailAddress, spaceAddressCreate.emailAddress) &&
Objects.equals(this.familyName, spaceAddressCreate.familyName) &&
Objects.equals(this.givenName, spaceAddressCreate.givenName) &&
Objects.equals(this.mobilePhoneNumber, spaceAddressCreate.mobilePhoneNumber) &&
Objects.equals(this.organizationName, spaceAddressCreate.organizationName) &&
Objects.equals(this.phoneNumber, spaceAddressCreate.phoneNumber) &&
Objects.equals(this.postalState, spaceAddressCreate.postalState) &&
Objects.equals(this.postcode, spaceAddressCreate.postcode) &&
Objects.equals(this.salesTaxNumber, spaceAddressCreate.salesTaxNumber) &&
Objects.equals(this.salutation, spaceAddressCreate.salutation) &&
Objects.equals(this.sortingCode, spaceAddressCreate.sortingCode) &&
Objects.equals(this.street, spaceAddressCreate.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 SpaceAddressCreate {\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 ");
}
}