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

jp.co.freee.accounting.models.ManualJournal 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.util.ArrayList;
import java.util.List;
import jp.co.freee.accounting.models.ManualJournalDetails;

/**
 * ManualJournal
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ManualJournal {
  public static final String SERIALIZED_NAME_ADJUSTMENT = "adjustment";
  @SerializedName(SERIALIZED_NAME_ADJUSTMENT)
  private Boolean adjustment;

  public static final String SERIALIZED_NAME_COMPANY_ID = "company_id";
  @SerializedName(SERIALIZED_NAME_COMPANY_ID)
  private Integer companyId;

  public static final String SERIALIZED_NAME_DETAILS = "details";
  @SerializedName(SERIALIZED_NAME_DETAILS)
  private List details = new ArrayList<>();

  public static final String SERIALIZED_NAME_ID = "id";
  @SerializedName(SERIALIZED_NAME_ID)
  private Integer id;

  public static final String SERIALIZED_NAME_ISSUE_DATE = "issue_date";
  @SerializedName(SERIALIZED_NAME_ISSUE_DATE)
  private String issueDate;

  public static final String SERIALIZED_NAME_RECEIPT_IDS = "receipt_ids";
  @SerializedName(SERIALIZED_NAME_RECEIPT_IDS)
  private List receiptIds = null;

  public static final String SERIALIZED_NAME_TXN_NUMBER = "txn_number";
  @SerializedName(SERIALIZED_NAME_TXN_NUMBER)
  private String txnNumber;

  public ManualJournal() { 
  }

  public ManualJournal adjustment(Boolean adjustment) {
    
    this.adjustment = adjustment;
    return this;
  }

   /**
   * 決算整理仕訳フラグ(falseまたは未指定の場合: 日常仕訳)
   * @return adjustment
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(example = "false", required = true, value = "決算整理仕訳フラグ(falseまたは未指定の場合: 日常仕訳)")

  public Boolean getAdjustment() {
    return adjustment;
  }


  public void setAdjustment(Boolean adjustment) {
    this.adjustment = adjustment;
  }


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

  public ManualJournal addDetailsItem(ManualJournalDetails detailsItem) {
    this.details.add(detailsItem);
    return this;
  }

   /**
   * 貸借行一覧(配列): 貸借合わせて100行まで登録できます。
   * @return details
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(required = true, value = "貸借行一覧(配列): 貸借合わせて100行まで登録できます。")

  public List getDetails() {
    return details;
  }


  public void setDetails(List details) {
    this.details = details;
  }


  public ManualJournal 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 ManualJournal issueDate(String issueDate) {
    
    this.issueDate = issueDate;
    return this;
  }

   /**
   * 発生日 (yyyy-mm-dd)
   * @return issueDate
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(example = "2019-12-17", required = true, value = "発生日 (yyyy-mm-dd)")

  public String getIssueDate() {
    return issueDate;
  }


  public void setIssueDate(String issueDate) {
    this.issueDate = issueDate;
  }


  public ManualJournal receiptIds(List receiptIds) {
    
    this.receiptIds = receiptIds;
    return this;
  }

  public ManualJournal addReceiptIdsItem(Integer receiptIdsItem) {
    if (this.receiptIds == null) {
      this.receiptIds = new ArrayList<>();
    }
    this.receiptIds.add(receiptIdsItem);
    return this;
  }

   /**
   * 証憑ファイルID(ファイルボックスのファイルID)
   * @return receiptIds
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "[1,2,3]", value = "証憑ファイルID(ファイルボックスのファイルID)")

  public List getReceiptIds() {
    return receiptIds;
  }


  public void setReceiptIds(List receiptIds) {
    this.receiptIds = receiptIds;
  }


  public ManualJournal txnNumber(String txnNumber) {
    
    this.txnNumber = txnNumber;
    return this;
  }

   /**
   * 仕訳番号
   * @return txnNumber
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "2CX05", required = true, value = "仕訳番号")

  public String getTxnNumber() {
    return txnNumber;
  }


  public void setTxnNumber(String txnNumber) {
    this.txnNumber = txnNumber;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ManualJournal manualJournal = (ManualJournal) o;
    return Objects.equals(this.adjustment, manualJournal.adjustment) &&
        Objects.equals(this.companyId, manualJournal.companyId) &&
        Objects.equals(this.details, manualJournal.details) &&
        Objects.equals(this.id, manualJournal.id) &&
        Objects.equals(this.issueDate, manualJournal.issueDate) &&
        Objects.equals(this.receiptIds, manualJournal.receiptIds) &&
        Objects.equals(this.txnNumber, manualJournal.txnNumber);
  }

  @Override
  public int hashCode() {
    return Objects.hash(adjustment, companyId, details, id, issueDate, receiptIds, txnNumber);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ManualJournal {\n");
    sb.append("    adjustment: ").append(toIndentedString(adjustment)).append("\n");
    sb.append("    companyId: ").append(toIndentedString(companyId)).append("\n");
    sb.append("    details: ").append(toIndentedString(details)).append("\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    issueDate: ").append(toIndentedString(issueDate)).append("\n");
    sb.append("    receiptIds: ").append(toIndentedString(receiptIds)).append("\n");
    sb.append("    txnNumber: ").append(toIndentedString(txnNumber)).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