
Model.TmsBusinessInformation Maven / Gradle / Ivy
/*
* CyberSource Merged Spec
* All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
*
* OpenAPI spec version: 0.0.1
*
*
* 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 Model;
import java.util.Objects;
import java.util.Arrays;
import Model.TmsBusinessInformationAcquirer;
import Model.TmsBusinessInformationAddress;
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;
/**
* TmsBusinessInformation
*/
public class TmsBusinessInformation {
@SerializedName("name")
private String name = null;
@SerializedName("doingBusinessAs")
private String doingBusinessAs = null;
@SerializedName("address")
private TmsBusinessInformationAddress address = null;
@SerializedName("websiteUrl")
private String websiteUrl = null;
@SerializedName("businessIdentificationType")
private String businessIdentificationType = null;
@SerializedName("businessIdentificationValue")
private String businessIdentificationValue = null;
@SerializedName("acquirer")
private TmsBusinessInformationAcquirer acquirer = null;
public TmsBusinessInformation name(String name) {
this.name = name;
return this;
}
/**
* Name of the network token merchant.
* @return name
**/
@ApiModelProperty(example = "NetworkTokenMerchant", value = "Name of the network token merchant.")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public TmsBusinessInformation doingBusinessAs(String doingBusinessAs) {
this.doingBusinessAs = doingBusinessAs;
return this;
}
/**
* Name the network token merchant does business as
* @return doingBusinessAs
**/
@ApiModelProperty(example = "NetworkTokenCo1", value = "Name the network token merchant does business as")
public String getDoingBusinessAs() {
return doingBusinessAs;
}
public void setDoingBusinessAs(String doingBusinessAs) {
this.doingBusinessAs = doingBusinessAs;
}
public TmsBusinessInformation address(TmsBusinessInformationAddress address) {
this.address = address;
return this;
}
/**
* Get address
* @return address
**/
@ApiModelProperty(value = "")
public TmsBusinessInformationAddress getAddress() {
return address;
}
public void setAddress(TmsBusinessInformationAddress address) {
this.address = address;
}
public TmsBusinessInformation websiteUrl(String websiteUrl) {
this.websiteUrl = websiteUrl;
return this;
}
/**
* Website of network token merchant.
* @return websiteUrl
**/
@ApiModelProperty(example = "https://www.NetworkTokenMerchant.com", value = "Website of network token merchant.")
public String getWebsiteUrl() {
return websiteUrl;
}
public void setWebsiteUrl(String websiteUrl) {
this.websiteUrl = websiteUrl;
}
public TmsBusinessInformation businessIdentificationType(String businessIdentificationType) {
this.businessIdentificationType = businessIdentificationType;
return this;
}
/**
* The Identifier associated with the business type; required unless both acquirerId and acquirerMerchantId are provided.
* @return businessIdentificationType
**/
@ApiModelProperty(value = "The Identifier associated with the business type; required unless both acquirerId and acquirerMerchantId are provided. ")
public String getBusinessIdentificationType() {
return businessIdentificationType;
}
public void setBusinessIdentificationType(String businessIdentificationType) {
this.businessIdentificationType = businessIdentificationType;
}
public TmsBusinessInformation businessIdentificationValue(String businessIdentificationValue) {
this.businessIdentificationValue = businessIdentificationValue;
return this;
}
/**
* The value associated with the business identifier type; required unless both acquirerId and acquirerMerchantId are provided.
* @return businessIdentificationValue
**/
@ApiModelProperty(value = "The value associated with the business identifier type; required unless both acquirerId and acquirerMerchantId are provided. ")
public String getBusinessIdentificationValue() {
return businessIdentificationValue;
}
public void setBusinessIdentificationValue(String businessIdentificationValue) {
this.businessIdentificationValue = businessIdentificationValue;
}
public TmsBusinessInformation acquirer(TmsBusinessInformationAcquirer acquirer) {
this.acquirer = acquirer;
return this;
}
/**
* Get acquirer
* @return acquirer
**/
@ApiModelProperty(value = "")
public TmsBusinessInformationAcquirer getAcquirer() {
return acquirer;
}
public void setAcquirer(TmsBusinessInformationAcquirer acquirer) {
this.acquirer = acquirer;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TmsBusinessInformation tmsBusinessInformation = (TmsBusinessInformation) o;
return Objects.equals(this.name, tmsBusinessInformation.name) &&
Objects.equals(this.doingBusinessAs, tmsBusinessInformation.doingBusinessAs) &&
Objects.equals(this.address, tmsBusinessInformation.address) &&
Objects.equals(this.websiteUrl, tmsBusinessInformation.websiteUrl) &&
Objects.equals(this.businessIdentificationType, tmsBusinessInformation.businessIdentificationType) &&
Objects.equals(this.businessIdentificationValue, tmsBusinessInformation.businessIdentificationValue) &&
Objects.equals(this.acquirer, tmsBusinessInformation.acquirer);
}
@Override
public int hashCode() {
return Objects.hash(name, doingBusinessAs, address, websiteUrl, businessIdentificationType, businessIdentificationValue, acquirer);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TmsBusinessInformation {\n");
if (name != null) sb.append(" name: ").append(toIndentedString(name)).append("\n");
if (doingBusinessAs != null) sb.append(" doingBusinessAs: ").append(toIndentedString(doingBusinessAs)).append("\n");
if (address != null) sb.append(" address: ").append(toIndentedString(address)).append("\n");
if (websiteUrl != null) sb.append(" websiteUrl: ").append(toIndentedString(websiteUrl)).append("\n");
if (businessIdentificationType != null) sb.append(" businessIdentificationType: ").append(toIndentedString(businessIdentificationType)).append("\n");
if (businessIdentificationValue != null) sb.append(" businessIdentificationValue: ").append(toIndentedString(businessIdentificationValue)).append("\n");
if (acquirer != null) sb.append(" acquirer: ").append(toIndentedString(acquirer)).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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy