jp.co.freee.accounting.models.ExpenseApplicationUpdateParamsExpenseApplicationLines 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;
/**
* ExpenseApplicationUpdateParamsExpenseApplicationLines
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ExpenseApplicationUpdateParamsExpenseApplicationLines {
public static final String SERIALIZED_NAME_AMOUNT = "amount";
@SerializedName(SERIALIZED_NAME_AMOUNT)
private Integer amount;
public static final String SERIALIZED_NAME_DESCRIPTION = "description";
@SerializedName(SERIALIZED_NAME_DESCRIPTION)
private String description;
public static final String SERIALIZED_NAME_EXPENSE_APPLICATION_LINE_TEMPLATE_ID = "expense_application_line_template_id";
@SerializedName(SERIALIZED_NAME_EXPENSE_APPLICATION_LINE_TEMPLATE_ID)
private Integer expenseApplicationLineTemplateId;
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private Long id;
public static final String SERIALIZED_NAME_RECEIPT_ID = "receipt_id";
@SerializedName(SERIALIZED_NAME_RECEIPT_ID)
private Integer receiptId;
public static final String SERIALIZED_NAME_TRANSACTION_DATE = "transaction_date";
@SerializedName(SERIALIZED_NAME_TRANSACTION_DATE)
private String transactionDate;
public ExpenseApplicationUpdateParamsExpenseApplicationLines() {
}
public ExpenseApplicationUpdateParamsExpenseApplicationLines amount(Integer amount) {
this.amount = amount;
return this;
}
/**
* 金額
* minimum: 0
* maximum: 2147483647
* @return amount
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "30000", value = "金額")
public Integer getAmount() {
return amount;
}
public void setAmount(Integer amount) {
this.amount = amount;
}
public ExpenseApplicationUpdateParamsExpenseApplicationLines description(String description) {
this.description = description;
return this;
}
/**
* 内容 (250文字以内)
* @return description
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "交通費:新幹線往復(東京〜大阪)", value = "内容 (250文字以内)")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public ExpenseApplicationUpdateParamsExpenseApplicationLines expenseApplicationLineTemplateId(Integer expenseApplicationLineTemplateId) {
this.expenseApplicationLineTemplateId = expenseApplicationLineTemplateId;
return this;
}
/**
* 経費科目ID
* minimum: 1
* maximum: 2147483647
* @return expenseApplicationLineTemplateId
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "505", value = "経費科目ID")
public Integer getExpenseApplicationLineTemplateId() {
return expenseApplicationLineTemplateId;
}
public void setExpenseApplicationLineTemplateId(Integer expenseApplicationLineTemplateId) {
this.expenseApplicationLineTemplateId = expenseApplicationLineTemplateId;
}
public ExpenseApplicationUpdateParamsExpenseApplicationLines id(Long id) {
this.id = id;
return this;
}
/**
* 経費申請の項目行ID: 既存項目行を更新する場合に指定します。IDを指定しない項目行は、新規行として扱われ追加されます。また、expense_application_linesに含まれない既存の項目行は削除されます。更新後も残したい行は、必ず経費申請の項目行IDを指定してexpense_application_linesに含めてください。
* minimum: 1
* maximum: 9223372036854775807
* @return id
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "1", value = "経費申請の項目行ID: 既存項目行を更新する場合に指定します。IDを指定しない項目行は、新規行として扱われ追加されます。また、expense_application_linesに含まれない既存の項目行は削除されます。更新後も残したい行は、必ず経費申請の項目行IDを指定してexpense_application_linesに含めてください。")
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public ExpenseApplicationUpdateParamsExpenseApplicationLines receiptId(Integer receiptId) {
this.receiptId = receiptId;
return this;
}
/**
* 証憑ファイルID(ファイルボックスのファイルID)
* minimum: 1
* maximum: 2147483647
* @return receiptId
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "606", value = "証憑ファイルID(ファイルボックスのファイルID)")
public Integer getReceiptId() {
return receiptId;
}
public void setReceiptId(Integer receiptId) {
this.receiptId = receiptId;
}
public ExpenseApplicationUpdateParamsExpenseApplicationLines transactionDate(String transactionDate) {
this.transactionDate = transactionDate;
return this;
}
/**
* 日付 (yyyy-mm-dd)
* @return transactionDate
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "2019-12-17", value = "日付 (yyyy-mm-dd)")
public String getTransactionDate() {
return transactionDate;
}
public void setTransactionDate(String transactionDate) {
this.transactionDate = transactionDate;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ExpenseApplicationUpdateParamsExpenseApplicationLines expenseApplicationUpdateParamsExpenseApplicationLines = (ExpenseApplicationUpdateParamsExpenseApplicationLines) o;
return Objects.equals(this.amount, expenseApplicationUpdateParamsExpenseApplicationLines.amount) &&
Objects.equals(this.description, expenseApplicationUpdateParamsExpenseApplicationLines.description) &&
Objects.equals(this.expenseApplicationLineTemplateId, expenseApplicationUpdateParamsExpenseApplicationLines.expenseApplicationLineTemplateId) &&
Objects.equals(this.id, expenseApplicationUpdateParamsExpenseApplicationLines.id) &&
Objects.equals(this.receiptId, expenseApplicationUpdateParamsExpenseApplicationLines.receiptId) &&
Objects.equals(this.transactionDate, expenseApplicationUpdateParamsExpenseApplicationLines.transactionDate);
}
@Override
public int hashCode() {
return Objects.hash(amount, description, expenseApplicationLineTemplateId, id, receiptId, transactionDate);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ExpenseApplicationUpdateParamsExpenseApplicationLines {\n");
sb.append(" amount: ").append(toIndentedString(amount)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" expenseApplicationLineTemplateId: ").append(toIndentedString(expenseApplicationLineTemplateId)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" receiptId: ").append(toIndentedString(receiptId)).append("\n");
sb.append(" transactionDate: ").append(toIndentedString(transactionDate)).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 ");
}
}