com.plaid.client.model.TransferOriginatorAddress Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plaid-java Show documentation
Show all versions of plaid-java Show documentation
Bindings for the Plaid (plaid.com) API.
/*
* The Plaid API
* The Plaid REST API. Please see https://plaid.com/docs/api for more details.
*
* The version of the OpenAPI document: 2020-09-14_1.503.5
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.plaid.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* The originator's address.
*/
@ApiModel(description = "The originator's address.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-28T21:00:55.745394Z[Etc/UTC]")
public class TransferOriginatorAddress {
public static final String SERIALIZED_NAME_CITY = "city";
@SerializedName(SERIALIZED_NAME_CITY)
private String city;
public static final String SERIALIZED_NAME_STREET = "street";
@SerializedName(SERIALIZED_NAME_STREET)
private String street;
public static final String SERIALIZED_NAME_REGION = "region";
@SerializedName(SERIALIZED_NAME_REGION)
private String region;
public static final String SERIALIZED_NAME_POSTAL_CODE = "postal_code";
@SerializedName(SERIALIZED_NAME_POSTAL_CODE)
private String postalCode;
public static final String SERIALIZED_NAME_COUNTRY_CODE = "country_code";
@SerializedName(SERIALIZED_NAME_COUNTRY_CODE)
private String countryCode;
public TransferOriginatorAddress city(String city) {
this.city = city;
return this;
}
/**
* The full city name.
* @return city
**/
@ApiModelProperty(required = true, value = "The full city name.")
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public TransferOriginatorAddress street(String street) {
this.street = street;
return this;
}
/**
* The full street address.
* @return street
**/
@ApiModelProperty(required = true, value = "The full street address.")
public String getStreet() {
return street;
}
public void setStreet(String street) {
this.street = street;
}
public TransferOriginatorAddress region(String region) {
this.region = region;
return this;
}
/**
* The two-letter code for the state or province (e.g., \"CA\").
* @return region
**/
@ApiModelProperty(required = true, value = "The two-letter code for the state or province (e.g., \"CA\").")
public String getRegion() {
return region;
}
public void setRegion(String region) {
this.region = region;
}
public TransferOriginatorAddress postalCode(String postalCode) {
this.postalCode = postalCode;
return this;
}
/**
* The postal code (e.g., \"94103\").
* @return postalCode
**/
@ApiModelProperty(required = true, value = "The postal code (e.g., \"94103\").")
public String getPostalCode() {
return postalCode;
}
public void setPostalCode(String postalCode) {
this.postalCode = postalCode;
}
public TransferOriginatorAddress countryCode(String countryCode) {
this.countryCode = countryCode;
return this;
}
/**
* ISO-3166-1 alpha-2 country code standard.
* @return countryCode
**/
@ApiModelProperty(required = true, value = "ISO-3166-1 alpha-2 country code standard.")
public String getCountryCode() {
return countryCode;
}
public void setCountryCode(String countryCode) {
this.countryCode = countryCode;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TransferOriginatorAddress transferOriginatorAddress = (TransferOriginatorAddress) o;
return Objects.equals(this.city, transferOriginatorAddress.city) &&
Objects.equals(this.street, transferOriginatorAddress.street) &&
Objects.equals(this.region, transferOriginatorAddress.region) &&
Objects.equals(this.postalCode, transferOriginatorAddress.postalCode) &&
Objects.equals(this.countryCode, transferOriginatorAddress.countryCode);
}
@Override
public int hashCode() {
return Objects.hash(city, street, region, postalCode, countryCode);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TransferOriginatorAddress {\n");
sb.append(" city: ").append(toIndentedString(city)).append("\n");
sb.append(" street: ").append(toIndentedString(street)).append("\n");
sb.append(" region: ").append(toIndentedString(region)).append("\n");
sb.append(" postalCode: ").append(toIndentedString(postalCode)).append("\n");
sb.append(" countryCode: ").append(toIndentedString(countryCode)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy