
com.xero.models.accounting.LineItemItem Maven / Gradle / Ivy
/*
* Xero Accounting API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* Contact: [email protected]
*
* 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.xero.models.accounting;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.xero.api.StringUtil;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
import java.util.UUID;
/** LineItemItem */
public class LineItemItem {
StringUtil util = new StringUtil();
@JsonProperty("Code")
private String code;
@JsonProperty("Name")
private String name;
@JsonProperty("ItemID")
private UUID itemID;
/**
* User defined item code (max length = 30)
*
* @param code String
* @return LineItemItem
*/
public LineItemItem code(String code) {
this.code = code;
return this;
}
/**
* User defined item code (max length = 30)
*
* @return code
*/
@ApiModelProperty(value = "User defined item code (max length = 30)")
/**
* User defined item code (max length = 30)
*
* @return code String
*/
public String getCode() {
return code;
}
/**
* User defined item code (max length = 30)
*
* @param code String
*/
public void setCode(String code) {
this.code = code;
}
/**
* The name of the item (max length = 50)
*
* @param name String
* @return LineItemItem
*/
public LineItemItem name(String name) {
this.name = name;
return this;
}
/**
* The name of the item (max length = 50)
*
* @return name
*/
@ApiModelProperty(value = "The name of the item (max length = 50)")
/**
* The name of the item (max length = 50)
*
* @return name String
*/
public String getName() {
return name;
}
/**
* The name of the item (max length = 50)
*
* @param name String
*/
public void setName(String name) {
this.name = name;
}
/**
* The Xero identifier for an Item
*
* @param itemID UUID
* @return LineItemItem
*/
public LineItemItem itemID(UUID itemID) {
this.itemID = itemID;
return this;
}
/**
* The Xero identifier for an Item
*
* @return itemID
*/
@ApiModelProperty(value = "The Xero identifier for an Item")
/**
* The Xero identifier for an Item
*
* @return itemID UUID
*/
public UUID getItemID() {
return itemID;
}
/**
* The Xero identifier for an Item
*
* @param itemID UUID
*/
public void setItemID(UUID itemID) {
this.itemID = itemID;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
LineItemItem lineItemItem = (LineItemItem) o;
return Objects.equals(this.code, lineItemItem.code)
&& Objects.equals(this.name, lineItemItem.name)
&& Objects.equals(this.itemID, lineItemItem.itemID);
}
@Override
public int hashCode() {
return Objects.hash(code, name, itemID);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class LineItemItem {\n");
sb.append(" code: ").append(toIndentedString(code)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" itemID: ").append(toIndentedString(itemID)).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