com.squareup.connect.models.V1MerchantLocationDetails Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of connect Show documentation
Show all versions of connect Show documentation
Java client library for the Square Connect API
/*
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* 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 com.squareup.connect.models;
import java.util.Objects;
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;
/**
* Additional information for a single-location account specified by its associated business account, if it has one.
*/
@ApiModel(description = "Additional information for a single-location account specified by its associated business account, if it has one.")
public class V1MerchantLocationDetails {
@JsonProperty("nickname")
private String nickname = null;
public V1MerchantLocationDetails nickname(String nickname) {
this.nickname = nickname;
return this;
}
/**
* The nickname assigned to the single-location account by the parent business. This value appears in the parent business's multi-location dashboard.
* @return nickname
**/
@ApiModelProperty(value = "The nickname assigned to the single-location account by the parent business. This value appears in the parent business's multi-location dashboard.")
public String getNickname() {
return nickname;
}
public void setNickname(String nickname) {
this.nickname = nickname;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1MerchantLocationDetails v1MerchantLocationDetails = (V1MerchantLocationDetails) o;
return Objects.equals(this.nickname, v1MerchantLocationDetails.nickname);
}
@Override
public int hashCode() {
return Objects.hash(nickname);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1MerchantLocationDetails {\n");
sb.append(" nickname: ").append(toIndentedString(nickname)).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 ");
}
}