jp.co.freee.accounting.models.ExpenseApplicationLineTemplate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of freee-accounting-sdk Show documentation
Show all versions of freee-accounting-sdk Show documentation
freee accounting client SDK for Java
/*
* freee API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package jp.co.freee.accounting.models;
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;
/**
* ExpenseApplicationLineTemplate
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ExpenseApplicationLineTemplate {
public static final String SERIALIZED_NAME_ACCOUNT_ITEM_ID = "account_item_id";
@SerializedName(SERIALIZED_NAME_ACCOUNT_ITEM_ID)
private Integer accountItemId;
public static final String SERIALIZED_NAME_ACCOUNT_ITEM_NAME = "account_item_name";
@SerializedName(SERIALIZED_NAME_ACCOUNT_ITEM_NAME)
private String accountItemName;
public static final String SERIALIZED_NAME_DESCRIPTION = "description";
@SerializedName(SERIALIZED_NAME_DESCRIPTION)
private String description;
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private Integer id;
public static final String SERIALIZED_NAME_LINE_DESCRIPTION = "line_description";
@SerializedName(SERIALIZED_NAME_LINE_DESCRIPTION)
private String lineDescription;
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
private String name;
public static final String SERIALIZED_NAME_REQUIRED_RECEIPT = "required_receipt";
@SerializedName(SERIALIZED_NAME_REQUIRED_RECEIPT)
private Boolean requiredReceipt;
public static final String SERIALIZED_NAME_TAX_CODE = "tax_code";
@SerializedName(SERIALIZED_NAME_TAX_CODE)
private Integer taxCode;
public static final String SERIALIZED_NAME_TAX_NAME = "tax_name";
@SerializedName(SERIALIZED_NAME_TAX_NAME)
private String taxName;
public ExpenseApplicationLineTemplate() {
}
public ExpenseApplicationLineTemplate accountItemId(Integer accountItemId) {
this.accountItemId = accountItemId;
return this;
}
/**
* 勘定科目ID
* maximum: 2147483647
* @return accountItemId
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "1", value = "勘定科目ID")
public Integer getAccountItemId() {
return accountItemId;
}
public void setAccountItemId(Integer accountItemId) {
this.accountItemId = accountItemId;
}
public ExpenseApplicationLineTemplate accountItemName(String accountItemName) {
this.accountItemName = accountItemName;
return this;
}
/**
* 勘定科目名
* @return accountItemName
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "旅費交通費", required = true, value = "勘定科目名")
public String getAccountItemName() {
return accountItemName;
}
public void setAccountItemName(String accountItemName) {
this.accountItemName = accountItemName;
}
public ExpenseApplicationLineTemplate description(String description) {
this.description = description;
return this;
}
/**
* 経費科目の説明
* @return description
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "電車、バス、飛行機などの交通費", value = "経費科目の説明")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public ExpenseApplicationLineTemplate id(Integer id) {
this.id = id;
return this;
}
/**
* 経費科目ID
* minimum: 1
* maximum: 2147483647
* @return id
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "1", required = true, value = "経費科目ID")
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public ExpenseApplicationLineTemplate lineDescription(String lineDescription) {
this.lineDescription = lineDescription;
return this;
}
/**
* 内容の補足
* @return lineDescription
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "移動区間", value = "内容の補足")
public String getLineDescription() {
return lineDescription;
}
public void setLineDescription(String lineDescription) {
this.lineDescription = lineDescription;
}
public ExpenseApplicationLineTemplate name(String name) {
this.name = name;
return this;
}
/**
* 経費科目名
* @return name
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "交通費", required = true, value = "経費科目名")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public ExpenseApplicationLineTemplate requiredReceipt(Boolean requiredReceipt) {
this.requiredReceipt = requiredReceipt;
return this;
}
/**
* 添付ファイルの必須/任意
* @return requiredReceipt
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "true", value = "添付ファイルの必須/任意")
public Boolean getRequiredReceipt() {
return requiredReceipt;
}
public void setRequiredReceipt(Boolean requiredReceipt) {
this.requiredReceipt = requiredReceipt;
}
public ExpenseApplicationLineTemplate taxCode(Integer taxCode) {
this.taxCode = taxCode;
return this;
}
/**
* 税区分コード
* minimum: 0
* maximum: 2147483647
* @return taxCode
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "1", value = "税区分コード")
public Integer getTaxCode() {
return taxCode;
}
public void setTaxCode(Integer taxCode) {
this.taxCode = taxCode;
}
public ExpenseApplicationLineTemplate taxName(String taxName) {
this.taxName = taxName;
return this;
}
/**
* 税区分名
* @return taxName
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "課対仕入", required = true, value = "税区分名")
public String getTaxName() {
return taxName;
}
public void setTaxName(String taxName) {
this.taxName = taxName;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ExpenseApplicationLineTemplate expenseApplicationLineTemplate = (ExpenseApplicationLineTemplate) o;
return Objects.equals(this.accountItemId, expenseApplicationLineTemplate.accountItemId) &&
Objects.equals(this.accountItemName, expenseApplicationLineTemplate.accountItemName) &&
Objects.equals(this.description, expenseApplicationLineTemplate.description) &&
Objects.equals(this.id, expenseApplicationLineTemplate.id) &&
Objects.equals(this.lineDescription, expenseApplicationLineTemplate.lineDescription) &&
Objects.equals(this.name, expenseApplicationLineTemplate.name) &&
Objects.equals(this.requiredReceipt, expenseApplicationLineTemplate.requiredReceipt) &&
Objects.equals(this.taxCode, expenseApplicationLineTemplate.taxCode) &&
Objects.equals(this.taxName, expenseApplicationLineTemplate.taxName);
}
@Override
public int hashCode() {
return Objects.hash(accountItemId, accountItemName, description, id, lineDescription, name, requiredReceipt, taxCode, taxName);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ExpenseApplicationLineTemplate {\n");
sb.append(" accountItemId: ").append(toIndentedString(accountItemId)).append("\n");
sb.append(" accountItemName: ").append(toIndentedString(accountItemName)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" lineDescription: ").append(toIndentedString(lineDescription)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" requiredReceipt: ").append(toIndentedString(requiredReceipt)).append("\n");
sb.append(" taxCode: ").append(toIndentedString(taxCode)).append("\n");
sb.append(" taxName: ").append(toIndentedString(taxName)).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 ");
}
}