jp.co.freee.accounting.models.AccountItemResponseAccountItem 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;
import java.util.ArrayList;
import java.util.List;
import jp.co.freee.accounting.models.AccountItemResponseAccountItemItems;
import jp.co.freee.accounting.models.AccountItemResponseAccountItemPartners;
import org.openapitools.jackson.nullable.JsonNullable;
/**
* AccountItemResponseAccountItem
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AccountItemResponseAccountItem {
public static final String SERIALIZED_NAME_ACCOUNT_CATEGORY = "account_category";
@SerializedName(SERIALIZED_NAME_ACCOUNT_CATEGORY)
private String accountCategory;
public static final String SERIALIZED_NAME_ACCOUNT_CATEGORY_ID = "account_category_id";
@SerializedName(SERIALIZED_NAME_ACCOUNT_CATEGORY_ID)
private Integer accountCategoryId;
public static final String SERIALIZED_NAME_ACCUMULATED_DEP_ACCOUNT_ITEM_ID = "accumulated_dep_account_item_id";
@SerializedName(SERIALIZED_NAME_ACCUMULATED_DEP_ACCOUNT_ITEM_ID)
private Integer accumulatedDepAccountItemId;
public static final String SERIALIZED_NAME_ACCUMULATED_DEP_ACCOUNT_ITEM_NAME = "accumulated_dep_account_item_name";
@SerializedName(SERIALIZED_NAME_ACCUMULATED_DEP_ACCOUNT_ITEM_NAME)
private String accumulatedDepAccountItemName;
public static final String SERIALIZED_NAME_AVAILABLE = "available";
@SerializedName(SERIALIZED_NAME_AVAILABLE)
private Boolean available;
public static final String SERIALIZED_NAME_COMPANY_ID = "company_id";
@SerializedName(SERIALIZED_NAME_COMPANY_ID)
private Integer companyId;
public static final String SERIALIZED_NAME_CORRESPONDING_EXPENSE_ID = "corresponding_expense_id";
@SerializedName(SERIALIZED_NAME_CORRESPONDING_EXPENSE_ID)
private Integer correspondingExpenseId;
public static final String SERIALIZED_NAME_CORRESPONDING_EXPENSE_NAME = "corresponding_expense_name";
@SerializedName(SERIALIZED_NAME_CORRESPONDING_EXPENSE_NAME)
private String correspondingExpenseName;
public static final String SERIALIZED_NAME_CORRESPONDING_INCOME_ID = "corresponding_income_id";
@SerializedName(SERIALIZED_NAME_CORRESPONDING_INCOME_ID)
private Integer correspondingIncomeId;
public static final String SERIALIZED_NAME_CORRESPONDING_INCOME_NAME = "corresponding_income_name";
@SerializedName(SERIALIZED_NAME_CORRESPONDING_INCOME_NAME)
private String correspondingIncomeName;
public static final String SERIALIZED_NAME_GROUP_NAME = "group_name";
@SerializedName(SERIALIZED_NAME_GROUP_NAME)
private String groupName;
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private Integer id;
public static final String SERIALIZED_NAME_ITEMS = "items";
@SerializedName(SERIALIZED_NAME_ITEMS)
private List items = null;
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
private String name;
public static final String SERIALIZED_NAME_PARTNERS = "partners";
@SerializedName(SERIALIZED_NAME_PARTNERS)
private List partners = null;
public static final String SERIALIZED_NAME_SEARCHABLE = "searchable";
@SerializedName(SERIALIZED_NAME_SEARCHABLE)
private Integer searchable;
public static final String SERIALIZED_NAME_SHORTCUT = "shortcut";
@SerializedName(SERIALIZED_NAME_SHORTCUT)
private String shortcut;
public static final String SERIALIZED_NAME_SHORTCUT_NUM = "shortcut_num";
@SerializedName(SERIALIZED_NAME_SHORTCUT_NUM)
private String shortcutNum;
public static final String SERIALIZED_NAME_TAX_CODE = "tax_code";
@SerializedName(SERIALIZED_NAME_TAX_CODE)
private Integer taxCode;
public static final String SERIALIZED_NAME_WALLETABLE_ID = "walletable_id";
@SerializedName(SERIALIZED_NAME_WALLETABLE_ID)
private Integer walletableId;
public AccountItemResponseAccountItem() {
}
public AccountItemResponseAccountItem accountCategory(String accountCategory) {
this.accountCategory = accountCategory;
return this;
}
/**
* 勘定科目カテゴリー
* @return accountCategory
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "現金・預金", required = true, value = "勘定科目カテゴリー")
public String getAccountCategory() {
return accountCategory;
}
public void setAccountCategory(String accountCategory) {
this.accountCategory = accountCategory;
}
public AccountItemResponseAccountItem accountCategoryId(Integer accountCategoryId) {
this.accountCategoryId = accountCategoryId;
return this;
}
/**
* 勘定科目のカテゴリーID
* minimum: 1
* maximum: 2147483647
* @return accountCategoryId
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "1", required = true, value = "勘定科目のカテゴリーID")
public Integer getAccountCategoryId() {
return accountCategoryId;
}
public void setAccountCategoryId(Integer accountCategoryId) {
this.accountCategoryId = accountCategoryId;
}
public AccountItemResponseAccountItem accumulatedDepAccountItemId(Integer accumulatedDepAccountItemId) {
this.accumulatedDepAccountItemId = accumulatedDepAccountItemId;
return this;
}
/**
* 減価償却累計額勘定科目ID(法人のみ利用可能)
* @return accumulatedDepAccountItemId
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "1", value = "減価償却累計額勘定科目ID(法人のみ利用可能)")
public Integer getAccumulatedDepAccountItemId() {
return accumulatedDepAccountItemId;
}
public void setAccumulatedDepAccountItemId(Integer accumulatedDepAccountItemId) {
this.accumulatedDepAccountItemId = accumulatedDepAccountItemId;
}
public AccountItemResponseAccountItem accumulatedDepAccountItemName(String accumulatedDepAccountItemName) {
this.accumulatedDepAccountItemName = accumulatedDepAccountItemName;
return this;
}
/**
* 減価償却累計額勘定科目(法人のみ利用可能)
* @return accumulatedDepAccountItemName
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "減価償却累計額", value = "減価償却累計額勘定科目(法人のみ利用可能)")
public String getAccumulatedDepAccountItemName() {
return accumulatedDepAccountItemName;
}
public void setAccumulatedDepAccountItemName(String accumulatedDepAccountItemName) {
this.accumulatedDepAccountItemName = accumulatedDepAccountItemName;
}
public AccountItemResponseAccountItem available(Boolean available) {
this.available = available;
return this;
}
/**
* 勘定科目の使用設定(true: 使用する、false: 使用しない)
* @return available
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "true", required = true, value = "勘定科目の使用設定(true: 使用する、false: 使用しない)")
public Boolean getAvailable() {
return available;
}
public void setAvailable(Boolean available) {
this.available = available;
}
public AccountItemResponseAccountItem companyId(Integer companyId) {
this.companyId = companyId;
return this;
}
/**
* 事業所ID
* minimum: 1
* maximum: 2147483647
* @return companyId
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "1", required = true, value = "事業所ID")
public Integer getCompanyId() {
return companyId;
}
public void setCompanyId(Integer companyId) {
this.companyId = companyId;
}
public AccountItemResponseAccountItem correspondingExpenseId(Integer correspondingExpenseId) {
this.correspondingExpenseId = correspondingExpenseId;
return this;
}
/**
* 支出取引相手勘定科目ID
* @return correspondingExpenseId
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "1", value = "支出取引相手勘定科目ID")
public Integer getCorrespondingExpenseId() {
return correspondingExpenseId;
}
public void setCorrespondingExpenseId(Integer correspondingExpenseId) {
this.correspondingExpenseId = correspondingExpenseId;
}
public AccountItemResponseAccountItem correspondingExpenseName(String correspondingExpenseName) {
this.correspondingExpenseName = correspondingExpenseName;
return this;
}
/**
* 支出取引相手勘定科目名
* @return correspondingExpenseName
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "買掛金", value = "支出取引相手勘定科目名")
public String getCorrespondingExpenseName() {
return correspondingExpenseName;
}
public void setCorrespondingExpenseName(String correspondingExpenseName) {
this.correspondingExpenseName = correspondingExpenseName;
}
public AccountItemResponseAccountItem correspondingIncomeId(Integer correspondingIncomeId) {
this.correspondingIncomeId = correspondingIncomeId;
return this;
}
/**
* 収入取引相手勘定科目ID
* @return correspondingIncomeId
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "1", value = "収入取引相手勘定科目ID")
public Integer getCorrespondingIncomeId() {
return correspondingIncomeId;
}
public void setCorrespondingIncomeId(Integer correspondingIncomeId) {
this.correspondingIncomeId = correspondingIncomeId;
}
public AccountItemResponseAccountItem correspondingIncomeName(String correspondingIncomeName) {
this.correspondingIncomeName = correspondingIncomeName;
return this;
}
/**
* 収入取引相手勘定科目名
* @return correspondingIncomeName
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "売掛金", value = "収入取引相手勘定科目名")
public String getCorrespondingIncomeName() {
return correspondingIncomeName;
}
public void setCorrespondingIncomeName(String correspondingIncomeName) {
this.correspondingIncomeName = correspondingIncomeName;
}
public AccountItemResponseAccountItem groupName(String groupName) {
this.groupName = groupName;
return this;
}
/**
* 決算書表示名(小カテゴリー)
* @return groupName
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "売掛金", value = "決算書表示名(小カテゴリー)")
public String getGroupName() {
return groupName;
}
public void setGroupName(String groupName) {
this.groupName = groupName;
}
public AccountItemResponseAccountItem 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 AccountItemResponseAccountItem items(List items) {
this.items = items;
return this;
}
public AccountItemResponseAccountItem addItemsItem(AccountItemResponseAccountItemItems itemsItem) {
if (this.items == null) {
this.items = new ArrayList<>();
}
this.items.add(itemsItem);
return this;
}
/**
* Get items
* @return items
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List getItems() {
return items;
}
public void setItems(List items) {
this.items = items;
}
public AccountItemResponseAccountItem name(String name) {
this.name = name;
return this;
}
/**
* 勘定科目名 (30文字以内)
* @return name
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "ソフトウェア", required = true, value = "勘定科目名 (30文字以内)")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public AccountItemResponseAccountItem partners(List partners) {
this.partners = partners;
return this;
}
public AccountItemResponseAccountItem addPartnersItem(AccountItemResponseAccountItemPartners partnersItem) {
if (this.partners == null) {
this.partners = new ArrayList<>();
}
this.partners.add(partnersItem);
return this;
}
/**
* Get partners
* @return partners
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List getPartners() {
return partners;
}
public void setPartners(List partners) {
this.partners = partners;
}
public AccountItemResponseAccountItem searchable(Integer searchable) {
this.searchable = searchable;
return this;
}
/**
* 検索可能:2, 検索不可:3
* minimum: 2
* maximum: 3
* @return searchable
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "2", required = true, value = "検索可能:2, 検索不可:3")
public Integer getSearchable() {
return searchable;
}
public void setSearchable(Integer searchable) {
this.searchable = searchable;
}
public AccountItemResponseAccountItem shortcut(String shortcut) {
this.shortcut = shortcut;
return this;
}
/**
* ショートカット1 (20文字以内)
* @return shortcut
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "SOFUTO", value = "ショートカット1 (20文字以内)")
public String getShortcut() {
return shortcut;
}
public void setShortcut(String shortcut) {
this.shortcut = shortcut;
}
public AccountItemResponseAccountItem shortcutNum(String shortcutNum) {
this.shortcutNum = shortcutNum;
return this;
}
/**
* ショートカット2(勘定科目コード) (20文字以内)
* @return shortcutNum
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "123", value = "ショートカット2(勘定科目コード) (20文字以内)")
public String getShortcutNum() {
return shortcutNum;
}
public void setShortcutNum(String shortcutNum) {
this.shortcutNum = shortcutNum;
}
public AccountItemResponseAccountItem taxCode(Integer taxCode) {
this.taxCode = taxCode;
return this;
}
/**
* 税区分コード
* minimum: 0
* maximum: 2147483647
* @return taxCode
**/
@javax.annotation.Nonnull
@ApiModelProperty(example = "1", required = true, value = "税区分コード")
public Integer getTaxCode() {
return taxCode;
}
public void setTaxCode(Integer taxCode) {
this.taxCode = taxCode;
}
public AccountItemResponseAccountItem walletableId(Integer walletableId) {
this.walletableId = walletableId;
return this;
}
/**
* 口座ID
* minimum: 1
* maximum: 2147483647
* @return walletableId
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "1", required = true, value = "口座ID")
public Integer getWalletableId() {
return walletableId;
}
public void setWalletableId(Integer walletableId) {
this.walletableId = walletableId;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AccountItemResponseAccountItem accountItemResponseAccountItem = (AccountItemResponseAccountItem) o;
return Objects.equals(this.accountCategory, accountItemResponseAccountItem.accountCategory) &&
Objects.equals(this.accountCategoryId, accountItemResponseAccountItem.accountCategoryId) &&
Objects.equals(this.accumulatedDepAccountItemId, accountItemResponseAccountItem.accumulatedDepAccountItemId) &&
Objects.equals(this.accumulatedDepAccountItemName, accountItemResponseAccountItem.accumulatedDepAccountItemName) &&
Objects.equals(this.available, accountItemResponseAccountItem.available) &&
Objects.equals(this.companyId, accountItemResponseAccountItem.companyId) &&
Objects.equals(this.correspondingExpenseId, accountItemResponseAccountItem.correspondingExpenseId) &&
Objects.equals(this.correspondingExpenseName, accountItemResponseAccountItem.correspondingExpenseName) &&
Objects.equals(this.correspondingIncomeId, accountItemResponseAccountItem.correspondingIncomeId) &&
Objects.equals(this.correspondingIncomeName, accountItemResponseAccountItem.correspondingIncomeName) &&
Objects.equals(this.groupName, accountItemResponseAccountItem.groupName) &&
Objects.equals(this.id, accountItemResponseAccountItem.id) &&
Objects.equals(this.items, accountItemResponseAccountItem.items) &&
Objects.equals(this.name, accountItemResponseAccountItem.name) &&
Objects.equals(this.partners, accountItemResponseAccountItem.partners) &&
Objects.equals(this.searchable, accountItemResponseAccountItem.searchable) &&
Objects.equals(this.shortcut, accountItemResponseAccountItem.shortcut) &&
Objects.equals(this.shortcutNum, accountItemResponseAccountItem.shortcutNum) &&
Objects.equals(this.taxCode, accountItemResponseAccountItem.taxCode) &&
Objects.equals(this.walletableId, accountItemResponseAccountItem.walletableId);
}
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(accountCategory, accountCategoryId, accumulatedDepAccountItemId, accumulatedDepAccountItemName, available, companyId, correspondingExpenseId, correspondingExpenseName, correspondingIncomeId, correspondingIncomeName, groupName, id, items, name, partners, searchable, shortcut, shortcutNum, taxCode, walletableId);
}
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 AccountItemResponseAccountItem {\n");
sb.append(" accountCategory: ").append(toIndentedString(accountCategory)).append("\n");
sb.append(" accountCategoryId: ").append(toIndentedString(accountCategoryId)).append("\n");
sb.append(" accumulatedDepAccountItemId: ").append(toIndentedString(accumulatedDepAccountItemId)).append("\n");
sb.append(" accumulatedDepAccountItemName: ").append(toIndentedString(accumulatedDepAccountItemName)).append("\n");
sb.append(" available: ").append(toIndentedString(available)).append("\n");
sb.append(" companyId: ").append(toIndentedString(companyId)).append("\n");
sb.append(" correspondingExpenseId: ").append(toIndentedString(correspondingExpenseId)).append("\n");
sb.append(" correspondingExpenseName: ").append(toIndentedString(correspondingExpenseName)).append("\n");
sb.append(" correspondingIncomeId: ").append(toIndentedString(correspondingIncomeId)).append("\n");
sb.append(" correspondingIncomeName: ").append(toIndentedString(correspondingIncomeName)).append("\n");
sb.append(" groupName: ").append(toIndentedString(groupName)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" items: ").append(toIndentedString(items)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" partners: ").append(toIndentedString(partners)).append("\n");
sb.append(" searchable: ").append(toIndentedString(searchable)).append("\n");
sb.append(" shortcut: ").append(toIndentedString(shortcut)).append("\n");
sb.append(" shortcutNum: ").append(toIndentedString(shortcutNum)).append("\n");
sb.append(" taxCode: ").append(toIndentedString(taxCode)).append("\n");
sb.append(" walletableId: ").append(toIndentedString(walletableId)).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 ");
}
}