
io.electrum.cardaccount.model.Issuer Maven / Gradle / Ivy
The newest version!
/*
* Electrum Gateway Card-Account API
* The Electrum Gateway Card-Account API defines an interface for card and account management.
*
* OpenAPI spec version: 0.0.600
* Contact: [email protected]
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package io.electrum.cardaccount.model;
import java.util.Objects;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.electrum.vas.Utils;
import io.swagger.annotations.ApiModelProperty;
/**
* Issuer
*/
public class Issuer {
@JsonProperty("issuerId")
private String issuerId = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("emailAddress")
private String emailAddress = null;
@JsonProperty("contactNumber")
private String contactNumber = null;
@JsonProperty("addressLine1")
private String addressLine1 = null;
@JsonProperty("addressLine2")
private String addressLine2 = null;
@JsonProperty("city")
private String city = null;
@JsonProperty("postalCode")
private String postalCode = null;
@JsonProperty("country")
private String country = null;
@JsonProperty("currencyCode")
private String currencyCode = null;
public Issuer issuerId(String issuerId) {
this.issuerId = issuerId;
return this;
}
/**
* The ID of the issuer. This field is not required when creating an issuer, however it is required when modifying an
* existing issuer.
*
* @return issuerId
**/
@JsonProperty("issuerId")
@ApiModelProperty(value = "The ID of the issuer. This field is not required when creating an issuer, however it is required when modifying an existing issuer.")
public String getIssuerId() {
return issuerId;
}
public void setIssuerId(String issuerId) {
this.issuerId = issuerId;
}
public Issuer name(String name) {
this.name = name;
return this;
}
/**
* The name of the issuer.
*
* @return name
**/
@JsonProperty("name")
@ApiModelProperty(required = true, value = "The name of the issuer.")
@NotNull
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Issuer emailAddress(String emailAddress) {
this.emailAddress = emailAddress;
return this;
}
/**
* The email address of the issuer.
*
* @return emailAddress
**/
@JsonProperty("emailAddress")
@ApiModelProperty(required = true, value = "The email address of the issuer.")
@NotNull
@Pattern(regexp = ".+\\@.+\\..+")
public String getEmailAddress() {
return emailAddress;
}
public void setEmailAddress(String emailAddress) {
this.emailAddress = emailAddress;
}
public Issuer contactNumber(String contactNumber) {
this.contactNumber = contactNumber;
return this;
}
/**
* The contact number of the issuer.
*
* @return contactNumber
**/
@JsonProperty("contactNumber")
@ApiModelProperty(required = true, value = "The contact number of the issuer.")
@NotNull
public String getContactNumber() {
return contactNumber;
}
public void setContactNumber(String contactNumber) {
this.contactNumber = contactNumber;
}
public Issuer addressLine1(String addressLine1) {
this.addressLine1 = addressLine1;
return this;
}
/**
* First line address of the issuer.
*
* @return addressLine1
**/
@JsonProperty("addressLine1")
@ApiModelProperty(required = true, value = "First line address of the issuer.")
@NotNull
public String getAddressLine1() {
return addressLine1;
}
public void setAddressLine1(String addressLine1) {
this.addressLine1 = addressLine1;
}
public Issuer addressLine2(String addressLine2) {
this.addressLine2 = addressLine2;
return this;
}
/**
* (Optional) Second line address of the issuer.
*
* @return addressLine2
**/
@JsonProperty("addressLine2")
@ApiModelProperty(value = "(Optional) Second line address of the issuer.")
public String getAddressLine2() {
return addressLine2;
}
public void setAddressLine2(String addressLine2) {
this.addressLine2 = addressLine2;
}
public Issuer city(String city) {
this.city = city;
return this;
}
/**
* City in which the issuer is located.
*
* @return city
**/
@JsonProperty("city")
@ApiModelProperty(required = true, value = "City in which the issuer is located.")
@NotNull
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public Issuer postalCode(String postalCode) {
this.postalCode = postalCode;
return this;
}
/**
* The postal code of the issuer.
*
* @return postalCode
**/
@JsonProperty("postalCode")
@ApiModelProperty(required = true, value = "The postal code of the issuer.")
@NotNull
public String getPostalCode() {
return postalCode;
}
public void setPostalCode(String postalCode) {
this.postalCode = postalCode;
}
public Issuer country(String country) {
this.country = country;
return this;
}
/**
* The country of the issuer.
*
* @return country
**/
@JsonProperty("country")
@ApiModelProperty(required = true, value = "The country of the issuer.")
@NotNull
public String getCountry() {
return country;
}
public void setCountry(String country) {
this.country = country;
}
public Issuer currencyCode(String currencyCode) {
this.currencyCode = currencyCode;
return this;
}
/**
* Get currencyCode
*
* @return currencyCode
**/
@JsonProperty("currencyCode")
@ApiModelProperty(required = true, value = "")
@NotNull
public String getCurrencyCode() {
return currencyCode;
}
public void setCurrencyCode(String currencyCode) {
this.currencyCode = currencyCode;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Issuer issuer = (Issuer) o;
return Objects.equals(this.issuerId, issuer.issuerId) && Objects.equals(this.name, issuer.name)
&& Objects.equals(this.emailAddress, issuer.emailAddress)
&& Objects.equals(this.contactNumber, issuer.contactNumber)
&& Objects.equals(this.addressLine1, issuer.addressLine1)
&& Objects.equals(this.addressLine2, issuer.addressLine2) && Objects.equals(this.city, issuer.city)
&& Objects.equals(this.postalCode, issuer.postalCode) && Objects.equals(this.country, issuer.country)
&& Objects.equals(this.currencyCode, issuer.currencyCode);
}
@Override
public int hashCode() {
return Objects.hash(
issuerId,
name,
emailAddress,
contactNumber,
addressLine1,
addressLine2,
city,
postalCode,
country,
currencyCode);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Issuer {\n");
sb.append(" issuerId: ").append(Utils.toIndentedString(issuerId)).append("\n");
sb.append(" name: ").append(Utils.toIndentedString(name)).append("\n");
sb.append(" emailAddress: ").append(Utils.toIndentedString(emailAddress)).append("\n");
sb.append(" contactNumber: ").append(Utils.toIndentedString(contactNumber)).append("\n");
sb.append(" addressLine1: ").append(Utils.toIndentedString(addressLine1)).append("\n");
sb.append(" addressLine2: ").append(Utils.toIndentedString(addressLine2)).append("\n");
sb.append(" city: ").append(Utils.toIndentedString(city)).append("\n");
sb.append(" postalCode: ").append(Utils.toIndentedString(postalCode)).append("\n");
sb.append(" country: ").append(Utils.toIndentedString(country)).append("\n");
sb.append(" currencyCode: ").append(Utils.toIndentedString(currencyCode)).append("\n");
sb.append("}");
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy