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

jp.co.freee.accounting.models.TrialPlThreeYearsResponseTrialPlThreeYearsBalances 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.TrialBsThreeYearsResponseTrialBsThreeYearsItems;
import jp.co.freee.accounting.models.TrialBsThreeYearsResponseTrialBsThreeYearsPartners;
import jp.co.freee.accounting.models.TrialBsThreeYearsResponseTrialBsThreeYearsSegment1Tags;
import jp.co.freee.accounting.models.TrialBsThreeYearsResponseTrialBsThreeYearsSegment2Tags;
import jp.co.freee.accounting.models.TrialBsThreeYearsResponseTrialBsThreeYearsSegment3Tags;
import jp.co.freee.accounting.models.TrialPlThreeYearsResponseTrialPlThreeYearsSections;

/**
 * TrialPlThreeYearsResponseTrialPlThreeYearsBalances
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class TrialPlThreeYearsResponseTrialPlThreeYearsBalances {
  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_TWO_YEARS_BEFORE_CLOSING_BALANCE = "two_years_before_closing_balance";
  @SerializedName(SERIALIZED_NAME_TWO_YEARS_BEFORE_CLOSING_BALANCE)
  private Integer twoYearsBeforeClosingBalance;

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

  public TrialPlThreeYearsResponseTrialPlThreeYearsBalances() { 
  }

  public TrialPlThreeYearsResponseTrialPlThreeYearsBalances 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 TrialPlThreeYearsResponseTrialPlThreeYearsBalances 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 TrialPlThreeYearsResponseTrialPlThreeYearsBalances 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 TrialPlThreeYearsResponseTrialPlThreeYearsBalances 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 TrialPlThreeYearsResponseTrialPlThreeYearsBalances 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 TrialPlThreeYearsResponseTrialPlThreeYearsBalances 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 TrialPlThreeYearsResponseTrialPlThreeYearsBalances items(List items) {
    
    this.items = items;
    return this;
  }

  public TrialPlThreeYearsResponseTrialPlThreeYearsBalances addItemsItem(TrialBsThreeYearsResponseTrialBsThreeYearsItems 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 TrialPlThreeYearsResponseTrialPlThreeYearsBalances 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 TrialPlThreeYearsResponseTrialPlThreeYearsBalances 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 TrialPlThreeYearsResponseTrialPlThreeYearsBalances partners(List partners) {
    
    this.partners = partners;
    return this;
  }

  public TrialPlThreeYearsResponseTrialPlThreeYearsBalances addPartnersItem(TrialBsThreeYearsResponseTrialBsThreeYearsPartners 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 TrialPlThreeYearsResponseTrialPlThreeYearsBalances sections(List sections) {
    
    this.sections = sections;
    return this;
  }

  public TrialPlThreeYearsResponseTrialPlThreeYearsBalances addSectionsItem(TrialPlThreeYearsResponseTrialPlThreeYearsSections 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 TrialPlThreeYearsResponseTrialPlThreeYearsBalances segment1Tags(List segment1Tags) {
    
    this.segment1Tags = segment1Tags;
    return this;
  }

  public TrialPlThreeYearsResponseTrialPlThreeYearsBalances addSegment1TagsItem(TrialBsThreeYearsResponseTrialBsThreeYearsSegment1Tags 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 TrialPlThreeYearsResponseTrialPlThreeYearsBalances segment2Tags(List segment2Tags) {
    
    this.segment2Tags = segment2Tags;
    return this;
  }

  public TrialPlThreeYearsResponseTrialPlThreeYearsBalances addSegment2TagsItem(TrialBsThreeYearsResponseTrialBsThreeYearsSegment2Tags 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 TrialPlThreeYearsResponseTrialPlThreeYearsBalances segment3Tags(List segment3Tags) {
    
    this.segment3Tags = segment3Tags;
    return this;
  }

  public TrialPlThreeYearsResponseTrialPlThreeYearsBalances addSegment3TagsItem(TrialBsThreeYearsResponseTrialBsThreeYearsSegment3Tags 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 TrialPlThreeYearsResponseTrialPlThreeYearsBalances 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 TrialPlThreeYearsResponseTrialPlThreeYearsBalances twoYearsBeforeClosingBalance(Integer twoYearsBeforeClosingBalance) {
    
    this.twoYearsBeforeClosingBalance = twoYearsBeforeClosingBalance;
    return this;
  }

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

  public Integer getTwoYearsBeforeClosingBalance() {
    return twoYearsBeforeClosingBalance;
  }


  public void setTwoYearsBeforeClosingBalance(Integer twoYearsBeforeClosingBalance) {
    this.twoYearsBeforeClosingBalance = twoYearsBeforeClosingBalance;
  }


  public TrialPlThreeYearsResponseTrialPlThreeYearsBalances 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;
    }
    TrialPlThreeYearsResponseTrialPlThreeYearsBalances trialPlThreeYearsResponseTrialPlThreeYearsBalances = (TrialPlThreeYearsResponseTrialPlThreeYearsBalances) o;
    return Objects.equals(this.accountCategoryName, trialPlThreeYearsResponseTrialPlThreeYearsBalances.accountCategoryName) &&
        Objects.equals(this.accountGroupName, trialPlThreeYearsResponseTrialPlThreeYearsBalances.accountGroupName) &&
        Objects.equals(this.accountItemId, trialPlThreeYearsResponseTrialPlThreeYearsBalances.accountItemId) &&
        Objects.equals(this.accountItemName, trialPlThreeYearsResponseTrialPlThreeYearsBalances.accountItemName) &&
        Objects.equals(this.closingBalance, trialPlThreeYearsResponseTrialPlThreeYearsBalances.closingBalance) &&
        Objects.equals(this.hierarchyLevel, trialPlThreeYearsResponseTrialPlThreeYearsBalances.hierarchyLevel) &&
        Objects.equals(this.items, trialPlThreeYearsResponseTrialPlThreeYearsBalances.items) &&
        Objects.equals(this.lastYearClosingBalance, trialPlThreeYearsResponseTrialPlThreeYearsBalances.lastYearClosingBalance) &&
        Objects.equals(this.parentAccountCategoryName, trialPlThreeYearsResponseTrialPlThreeYearsBalances.parentAccountCategoryName) &&
        Objects.equals(this.partners, trialPlThreeYearsResponseTrialPlThreeYearsBalances.partners) &&
        Objects.equals(this.sections, trialPlThreeYearsResponseTrialPlThreeYearsBalances.sections) &&
        Objects.equals(this.segment1Tags, trialPlThreeYearsResponseTrialPlThreeYearsBalances.segment1Tags) &&
        Objects.equals(this.segment2Tags, trialPlThreeYearsResponseTrialPlThreeYearsBalances.segment2Tags) &&
        Objects.equals(this.segment3Tags, trialPlThreeYearsResponseTrialPlThreeYearsBalances.segment3Tags) &&
        Objects.equals(this.totalLine, trialPlThreeYearsResponseTrialPlThreeYearsBalances.totalLine) &&
        Objects.equals(this.twoYearsBeforeClosingBalance, trialPlThreeYearsResponseTrialPlThreeYearsBalances.twoYearsBeforeClosingBalance) &&
        Objects.equals(this.yearOnYear, trialPlThreeYearsResponseTrialPlThreeYearsBalances.yearOnYear);
  }

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

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class TrialPlThreeYearsResponseTrialPlThreeYearsBalances {\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("    twoYearsBeforeClosingBalance: ").append(toIndentedString(twoYearsBeforeClosingBalance)).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