jp.co.freee.accounting.models.ExpenseApplicationResponseExpenseApplicationExpenseApplicationLines 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
The newest version!
/*
* 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;
import org.openapitools.jackson.nullable.JsonNullable;
/**
* ExpenseApplicationResponseExpenseApplicationExpenseApplicationLines
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ExpenseApplicationResponseExpenseApplicationExpenseApplicationLines {
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 ExpenseApplicationResponseExpenseApplicationExpenseApplicationLines() {
}
public ExpenseApplicationResponseExpenseApplicationExpenseApplicationLines 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 ExpenseApplicationResponseExpenseApplicationExpenseApplicationLines 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 ExpenseApplicationResponseExpenseApplicationExpenseApplicationLines 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 ExpenseApplicationResponseExpenseApplicationExpenseApplicationLines id(Long id) {
this.id = id;
return this;
}
/**
* 経費申請の項目行ID
* minimum: 1
* maximum: 9223372036854775807
* @return id
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "1", required = true, value = "経費申請の項目行ID")
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public ExpenseApplicationResponseExpenseApplicationExpenseApplicationLines receiptId(Integer receiptId) {
this.receiptId = receiptId;
return this;
}
/**
* ファイルボックス(証憑ファイル)ID
* minimum: 1
* maximum: 2147483647
* @return receiptId
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "606", value = "ファイルボックス(証憑ファイル)ID")
public Integer getReceiptId() {
return receiptId;
}
public void setReceiptId(Integer receiptId) {
this.receiptId = receiptId;
}
public ExpenseApplicationResponseExpenseApplicationExpenseApplicationLines 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;
}
ExpenseApplicationResponseExpenseApplicationExpenseApplicationLines expenseApplicationResponseExpenseApplicationExpenseApplicationLines = (ExpenseApplicationResponseExpenseApplicationExpenseApplicationLines) o;
return Objects.equals(this.amount, expenseApplicationResponseExpenseApplicationExpenseApplicationLines.amount) &&
Objects.equals(this.description, expenseApplicationResponseExpenseApplicationExpenseApplicationLines.description) &&
Objects.equals(this.expenseApplicationLineTemplateId, expenseApplicationResponseExpenseApplicationExpenseApplicationLines.expenseApplicationLineTemplateId) &&
Objects.equals(this.id, expenseApplicationResponseExpenseApplicationExpenseApplicationLines.id) &&
Objects.equals(this.receiptId, expenseApplicationResponseExpenseApplicationExpenseApplicationLines.receiptId) &&
Objects.equals(this.transactionDate, expenseApplicationResponseExpenseApplicationExpenseApplicationLines.transactionDate);
}
private static boolean equalsNullable(JsonNullable a, JsonNullable b) {
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
}
@Override
public int hashCode() {
return Objects.hash(amount, description, expenseApplicationLineTemplateId, id, receiptId, transactionDate);
}
private static int hashCodeNullable(JsonNullable a) {
if (a == null) {
return 1;
}
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ExpenseApplicationResponseExpenseApplicationExpenseApplicationLines {\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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy