All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jp.co.freee.accounting.models.TrialBsTwoYearsResponseTrialBsTwoYearsBalances Maven / Gradle / Ivy

There is a newer version: 2.29.0
Show 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 java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import jp.co.freee.accounting.models.TrialBsTwoYearsResponseTrialBsTwoYearsItems;
import jp.co.freee.accounting.models.TrialBsTwoYearsResponseTrialBsTwoYearsPartners;
import jp.co.freee.accounting.models.TrialBsTwoYearsResponseTrialBsTwoYearsSections;
import jp.co.freee.accounting.models.TrialBsTwoYearsResponseTrialBsTwoYearsSegment1Tags;
import jp.co.freee.accounting.models.TrialBsTwoYearsResponseTrialBsTwoYearsSegment2Tags;
import jp.co.freee.accounting.models.TrialBsTwoYearsResponseTrialBsTwoYearsSegment3Tags;

/**
 * TrialBsTwoYearsResponseTrialBsTwoYearsBalances
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class TrialBsTwoYearsResponseTrialBsTwoYearsBalances {
  public static final String SERIALIZED_NAME_ACCOUNT_CATEGORY_NAME = "account_category_name";
  @SerializedName(SERIALIZED_NAME_ACCOUNT_CATEGORY_NAME)
  private String accountCategoryName;

  public static final String SERIALIZED_NAME_ACCOUNT_GROUP_NAME = "account_group_name";
  @SerializedName(SERIALIZED_NAME_ACCOUNT_GROUP_NAME)
  private String accountGroupName;

  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_CLOSING_BALANCE = "closing_balance";
  @SerializedName(SERIALIZED_NAME_CLOSING_BALANCE)
  private Integer closingBalance;

  public static final String SERIALIZED_NAME_HIERARCHY_LEVEL = "hierarchy_level";
  @SerializedName(SERIALIZED_NAME_HIERARCHY_LEVEL)
  private Integer hierarchyLevel;

  public static final String SERIALIZED_NAME_ITEMS = "items";
  @SerializedName(SERIALIZED_NAME_ITEMS)
  private List items = null;

  public static final String SERIALIZED_NAME_LAST_YEAR_CLOSING_BALANCE = "last_year_closing_balance";
  @SerializedName(SERIALIZED_NAME_LAST_YEAR_CLOSING_BALANCE)
  private Integer lastYearClosingBalance;

  public static final String SERIALIZED_NAME_PARENT_ACCOUNT_CATEGORY_NAME = "parent_account_category_name";
  @SerializedName(SERIALIZED_NAME_PARENT_ACCOUNT_CATEGORY_NAME)
  private String parentAccountCategoryName;

  public static final String SERIALIZED_NAME_PARTNERS = "partners";
  @SerializedName(SERIALIZED_NAME_PARTNERS)
  private List partners = null;

  public static final String SERIALIZED_NAME_SECTIONS = "sections";
  @SerializedName(SERIALIZED_NAME_SECTIONS)
  private List sections = null;

  public static final String SERIALIZED_NAME_SEGMENT1_TAGS = "segment_1_tags";
  @SerializedName(SERIALIZED_NAME_SEGMENT1_TAGS)
  private List segment1Tags = null;

  public static final String SERIALIZED_NAME_SEGMENT2_TAGS = "segment_2_tags";
  @SerializedName(SERIALIZED_NAME_SEGMENT2_TAGS)
  private List segment2Tags = null;

  public static final String SERIALIZED_NAME_SEGMENT3_TAGS = "segment_3_tags";
  @SerializedName(SERIALIZED_NAME_SEGMENT3_TAGS)
  private List segment3Tags = null;

  public static final String SERIALIZED_NAME_TOTAL_LINE = "total_line";
  @SerializedName(SERIALIZED_NAME_TOTAL_LINE)
  private Boolean totalLine;

  public static final String SERIALIZED_NAME_YEAR_ON_YEAR = "year_on_year";
  @SerializedName(SERIALIZED_NAME_YEAR_ON_YEAR)
  private BigDecimal yearOnYear;

  public TrialBsTwoYearsResponseTrialBsTwoYearsBalances() { 
  }

  public TrialBsTwoYearsResponseTrialBsTwoYearsBalances accountCategoryName(String accountCategoryName) {
    
    this.accountCategoryName = accountCategoryName;
    return this;
  }

   /**
   * 勘定科目カテゴリー名
   * @return accountCategoryName
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "販売管理費", value = "勘定科目カテゴリー名")

  public String getAccountCategoryName() {
    return accountCategoryName;
  }


  public void setAccountCategoryName(String accountCategoryName) {
    this.accountCategoryName = accountCategoryName;
  }


  public TrialBsTwoYearsResponseTrialBsTwoYearsBalances accountGroupName(String accountGroupName) {
    
    this.accountGroupName = accountGroupName;
    return this;
  }

   /**
   * 決算書表示名(account_item_display_type:group指定時に決算書表示名の時のみ含まれる)
   * @return accountGroupName
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "現金及び預金", value = "決算書表示名(account_item_display_type:group指定時に決算書表示名の時のみ含まれる)")

  public String getAccountGroupName() {
    return accountGroupName;
  }


  public void setAccountGroupName(String accountGroupName) {
    this.accountGroupName = accountGroupName;
  }


  public TrialBsTwoYearsResponseTrialBsTwoYearsBalances accountItemId(Integer accountItemId) {
    
    this.accountItemId = accountItemId;
    return this;
  }

   /**
   * 勘定科目ID(勘定科目の時のみ含まれる)
   * minimum: 1
   * maximum: 2147483647
   * @return accountItemId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "192", value = "勘定科目ID(勘定科目の時のみ含まれる)")

  public Integer getAccountItemId() {
    return accountItemId;
  }


  public void setAccountItemId(Integer accountItemId) {
    this.accountItemId = accountItemId;
  }


  public TrialBsTwoYearsResponseTrialBsTwoYearsBalances accountItemName(String accountItemName) {
    
    this.accountItemName = accountItemName;
    return this;
  }

   /**
   * 勘定科目名(勘定科目の時のみ含まれる)
   * @return accountItemName
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "現金", value = "勘定科目名(勘定科目の時のみ含まれる)")

  public String getAccountItemName() {
    return accountItemName;
  }


  public void setAccountItemName(String accountItemName) {
    this.accountItemName = accountItemName;
  }


  public TrialBsTwoYearsResponseTrialBsTwoYearsBalances closingBalance(Integer closingBalance) {
    
    this.closingBalance = closingBalance;
    return this;
  }

   /**
   * 期末残高
   * @return closingBalance
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "-25920", value = "期末残高")

  public Integer getClosingBalance() {
    return closingBalance;
  }


  public void setClosingBalance(Integer closingBalance) {
    this.closingBalance = closingBalance;
  }


  public TrialBsTwoYearsResponseTrialBsTwoYearsBalances hierarchyLevel(Integer hierarchyLevel) {
    
    this.hierarchyLevel = hierarchyLevel;
    return this;
  }

   /**
   * 階層レベル
   * @return hierarchyLevel
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "3", value = "階層レベル")

  public Integer getHierarchyLevel() {
    return hierarchyLevel;
  }


  public void setHierarchyLevel(Integer hierarchyLevel) {
    this.hierarchyLevel = hierarchyLevel;
  }


  public TrialBsTwoYearsResponseTrialBsTwoYearsBalances items(List items) {
    
    this.items = items;
    return this;
  }

  public TrialBsTwoYearsResponseTrialBsTwoYearsBalances addItemsItem(TrialBsTwoYearsResponseTrialBsTwoYearsItems itemsItem) {
    if (this.items == null) {
      this.items = new ArrayList<>();
    }
    this.items.add(itemsItem);
    return this;
  }

   /**
   * breakdown_display_type:item, account_item_display_type:account_item指定時のみ含まれる
   * @return items
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "breakdown_display_type:item, account_item_display_type:account_item指定時のみ含まれる")

  public List getItems() {
    return items;
  }


  public void setItems(List items) {
    this.items = items;
  }


  public TrialBsTwoYearsResponseTrialBsTwoYearsBalances lastYearClosingBalance(Integer lastYearClosingBalance) {
    
    this.lastYearClosingBalance = lastYearClosingBalance;
    return this;
  }

   /**
   * 前年度期末残高
   * @return lastYearClosingBalance
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "0", value = "前年度期末残高")

  public Integer getLastYearClosingBalance() {
    return lastYearClosingBalance;
  }


  public void setLastYearClosingBalance(Integer lastYearClosingBalance) {
    this.lastYearClosingBalance = lastYearClosingBalance;
  }


  public TrialBsTwoYearsResponseTrialBsTwoYearsBalances parentAccountCategoryName(String parentAccountCategoryName) {
    
    this.parentAccountCategoryName = parentAccountCategoryName;
    return this;
  }

   /**
   * 上位勘定科目カテゴリー名(勘定科目カテゴリーの時のみ、上層が存在する場合含まれる)
   * @return parentAccountCategoryName
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "他流動資産", value = "上位勘定科目カテゴリー名(勘定科目カテゴリーの時のみ、上層が存在する場合含まれる)")

  public String getParentAccountCategoryName() {
    return parentAccountCategoryName;
  }


  public void setParentAccountCategoryName(String parentAccountCategoryName) {
    this.parentAccountCategoryName = parentAccountCategoryName;
  }


  public TrialBsTwoYearsResponseTrialBsTwoYearsBalances partners(List partners) {
    
    this.partners = partners;
    return this;
  }

  public TrialBsTwoYearsResponseTrialBsTwoYearsBalances addPartnersItem(TrialBsTwoYearsResponseTrialBsTwoYearsPartners partnersItem) {
    if (this.partners == null) {
      this.partners = new ArrayList<>();
    }
    this.partners.add(partnersItem);
    return this;
  }

   /**
   * breakdown_display_type:partner, account_item_display_type:account_item指定時のみ含まれる
   * @return partners
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "breakdown_display_type:partner, account_item_display_type:account_item指定時のみ含まれる")

  public List getPartners() {
    return partners;
  }


  public void setPartners(List partners) {
    this.partners = partners;
  }


  public TrialBsTwoYearsResponseTrialBsTwoYearsBalances sections(List sections) {
    
    this.sections = sections;
    return this;
  }

  public TrialBsTwoYearsResponseTrialBsTwoYearsBalances addSectionsItem(TrialBsTwoYearsResponseTrialBsTwoYearsSections sectionsItem) {
    if (this.sections == null) {
      this.sections = new ArrayList<>();
    }
    this.sections.add(sectionsItem);
    return this;
  }

   /**
   * breakdown_display_type:section, account_item_display_type:account_item指定時のみ含まれる
   * @return sections
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "breakdown_display_type:section, account_item_display_type:account_item指定時のみ含まれる")

  public List getSections() {
    return sections;
  }


  public void setSections(List sections) {
    this.sections = sections;
  }


  public TrialBsTwoYearsResponseTrialBsTwoYearsBalances segment1Tags(List segment1Tags) {
    
    this.segment1Tags = segment1Tags;
    return this;
  }

  public TrialBsTwoYearsResponseTrialBsTwoYearsBalances addSegment1TagsItem(TrialBsTwoYearsResponseTrialBsTwoYearsSegment1Tags segment1TagsItem) {
    if (this.segment1Tags == null) {
      this.segment1Tags = new ArrayList<>();
    }
    this.segment1Tags.add(segment1TagsItem);
    return this;
  }

   /**
   * breakdown_display_type:segment_1_tag, account_item_display_type:account_item指定時のみ含まれる
   * @return segment1Tags
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "breakdown_display_type:segment_1_tag, account_item_display_type:account_item指定時のみ含まれる")

  public List getSegment1Tags() {
    return segment1Tags;
  }


  public void setSegment1Tags(List segment1Tags) {
    this.segment1Tags = segment1Tags;
  }


  public TrialBsTwoYearsResponseTrialBsTwoYearsBalances segment2Tags(List segment2Tags) {
    
    this.segment2Tags = segment2Tags;
    return this;
  }

  public TrialBsTwoYearsResponseTrialBsTwoYearsBalances addSegment2TagsItem(TrialBsTwoYearsResponseTrialBsTwoYearsSegment2Tags segment2TagsItem) {
    if (this.segment2Tags == null) {
      this.segment2Tags = new ArrayList<>();
    }
    this.segment2Tags.add(segment2TagsItem);
    return this;
  }

   /**
   * breakdown_display_type:segment_2_tag, account_item_display_type:account_item指定時のみ含まれる
   * @return segment2Tags
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "breakdown_display_type:segment_2_tag, account_item_display_type:account_item指定時のみ含まれる")

  public List getSegment2Tags() {
    return segment2Tags;
  }


  public void setSegment2Tags(List segment2Tags) {
    this.segment2Tags = segment2Tags;
  }


  public TrialBsTwoYearsResponseTrialBsTwoYearsBalances segment3Tags(List segment3Tags) {
    
    this.segment3Tags = segment3Tags;
    return this;
  }

  public TrialBsTwoYearsResponseTrialBsTwoYearsBalances addSegment3TagsItem(TrialBsTwoYearsResponseTrialBsTwoYearsSegment3Tags segment3TagsItem) {
    if (this.segment3Tags == null) {
      this.segment3Tags = new ArrayList<>();
    }
    this.segment3Tags.add(segment3TagsItem);
    return this;
  }

   /**
   * breakdown_display_type:segment_3_tag, account_item_display_type:account_item指定時のみ含まれる
   * @return segment3Tags
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "breakdown_display_type:segment_3_tag, account_item_display_type:account_item指定時のみ含まれる")

  public List getSegment3Tags() {
    return segment3Tags;
  }


  public void setSegment3Tags(List segment3Tags) {
    this.segment3Tags = segment3Tags;
  }


  public TrialBsTwoYearsResponseTrialBsTwoYearsBalances totalLine(Boolean totalLine) {
    
    this.totalLine = totalLine;
    return this;
  }

   /**
   * 合計行(勘定科目カテゴリーの時のみ含まれる)
   * @return totalLine
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "true", value = "合計行(勘定科目カテゴリーの時のみ含まれる)")

  public Boolean getTotalLine() {
    return totalLine;
  }


  public void setTotalLine(Boolean totalLine) {
    this.totalLine = totalLine;
  }


  public TrialBsTwoYearsResponseTrialBsTwoYearsBalances yearOnYear(BigDecimal yearOnYear) {
    
    this.yearOnYear = yearOnYear;
    return this;
  }

   /**
   * 前年比
   * @return yearOnYear
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "0.12", value = "前年比")

  public BigDecimal getYearOnYear() {
    return yearOnYear;
  }


  public void setYearOnYear(BigDecimal yearOnYear) {
    this.yearOnYear = yearOnYear;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    TrialBsTwoYearsResponseTrialBsTwoYearsBalances trialBsTwoYearsResponseTrialBsTwoYearsBalances = (TrialBsTwoYearsResponseTrialBsTwoYearsBalances) o;
    return Objects.equals(this.accountCategoryName, trialBsTwoYearsResponseTrialBsTwoYearsBalances.accountCategoryName) &&
        Objects.equals(this.accountGroupName, trialBsTwoYearsResponseTrialBsTwoYearsBalances.accountGroupName) &&
        Objects.equals(this.accountItemId, trialBsTwoYearsResponseTrialBsTwoYearsBalances.accountItemId) &&
        Objects.equals(this.accountItemName, trialBsTwoYearsResponseTrialBsTwoYearsBalances.accountItemName) &&
        Objects.equals(this.closingBalance, trialBsTwoYearsResponseTrialBsTwoYearsBalances.closingBalance) &&
        Objects.equals(this.hierarchyLevel, trialBsTwoYearsResponseTrialBsTwoYearsBalances.hierarchyLevel) &&
        Objects.equals(this.items, trialBsTwoYearsResponseTrialBsTwoYearsBalances.items) &&
        Objects.equals(this.lastYearClosingBalance, trialBsTwoYearsResponseTrialBsTwoYearsBalances.lastYearClosingBalance) &&
        Objects.equals(this.parentAccountCategoryName, trialBsTwoYearsResponseTrialBsTwoYearsBalances.parentAccountCategoryName) &&
        Objects.equals(this.partners, trialBsTwoYearsResponseTrialBsTwoYearsBalances.partners) &&
        Objects.equals(this.sections, trialBsTwoYearsResponseTrialBsTwoYearsBalances.sections) &&
        Objects.equals(this.segment1Tags, trialBsTwoYearsResponseTrialBsTwoYearsBalances.segment1Tags) &&
        Objects.equals(this.segment2Tags, trialBsTwoYearsResponseTrialBsTwoYearsBalances.segment2Tags) &&
        Objects.equals(this.segment3Tags, trialBsTwoYearsResponseTrialBsTwoYearsBalances.segment3Tags) &&
        Objects.equals(this.totalLine, trialBsTwoYearsResponseTrialBsTwoYearsBalances.totalLine) &&
        Objects.equals(this.yearOnYear, trialBsTwoYearsResponseTrialBsTwoYearsBalances.yearOnYear);
  }

  @Override
  public int hashCode() {
    return Objects.hash(accountCategoryName, accountGroupName, accountItemId, accountItemName, closingBalance, hierarchyLevel, items, lastYearClosingBalance, parentAccountCategoryName, partners, sections, segment1Tags, segment2Tags, segment3Tags, totalLine, yearOnYear);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class TrialBsTwoYearsResponseTrialBsTwoYearsBalances {\n");
    sb.append("    accountCategoryName: ").append(toIndentedString(accountCategoryName)).append("\n");
    sb.append("    accountGroupName: ").append(toIndentedString(accountGroupName)).append("\n");
    sb.append("    accountItemId: ").append(toIndentedString(accountItemId)).append("\n");
    sb.append("    accountItemName: ").append(toIndentedString(accountItemName)).append("\n");
    sb.append("    closingBalance: ").append(toIndentedString(closingBalance)).append("\n");
    sb.append("    hierarchyLevel: ").append(toIndentedString(hierarchyLevel)).append("\n");
    sb.append("    items: ").append(toIndentedString(items)).append("\n");
    sb.append("    lastYearClosingBalance: ").append(toIndentedString(lastYearClosingBalance)).append("\n");
    sb.append("    parentAccountCategoryName: ").append(toIndentedString(parentAccountCategoryName)).append("\n");
    sb.append("    partners: ").append(toIndentedString(partners)).append("\n");
    sb.append("    sections: ").append(toIndentedString(sections)).append("\n");
    sb.append("    segment1Tags: ").append(toIndentedString(segment1Tags)).append("\n");
    sb.append("    segment2Tags: ").append(toIndentedString(segment2Tags)).append("\n");
    sb.append("    segment3Tags: ").append(toIndentedString(segment3Tags)).append("\n");
    sb.append("    totalLine: ").append(toIndentedString(totalLine)).append("\n");
    sb.append("    yearOnYear: ").append(toIndentedString(yearOnYear)).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 - 2024 Weber Informatics LLC | Privacy Policy