jp.co.freee.accounting.models.ManualJournalUpdateParams 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.ManualJournalUpdateParamsDetails;
/**
* ManualJournalUpdateParams
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ManualJournalUpdateParams {
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_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 ManualJournalUpdateParams() {
}
public ManualJournalUpdateParams adjustment(Boolean adjustment) {
this.adjustment = adjustment;
return this;
}
/**
* 決算整理仕訳フラグ(falseまたは未指定の場合: 日常仕訳)
* @return adjustment
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "false", value = "決算整理仕訳フラグ(falseまたは未指定の場合: 日常仕訳)")
public Boolean getAdjustment() {
return adjustment;
}
public void setAdjustment(Boolean adjustment) {
this.adjustment = adjustment;
}
public ManualJournalUpdateParams 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 ManualJournalUpdateParams details(List details) {
this.details = details;
return this;
}
public ManualJournalUpdateParams addDetailsItem(ManualJournalUpdateParamsDetails detailsItem) {
this.details.add(detailsItem);
return this;
}
/**
* Get details
* @return details
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "")
public List getDetails() {
return details;
}
public void setDetails(List details) {
this.details = details;
}
public ManualJournalUpdateParams 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 ManualJournalUpdateParams receiptIds(List receiptIds) {
this.receiptIds = receiptIds;
return this;
}
public ManualJournalUpdateParams 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(value = "証憑ファイルID(ファイルボックスのファイルID)(配列)")
public List getReceiptIds() {
return receiptIds;
}
public void setReceiptIds(List receiptIds) {
this.receiptIds = receiptIds;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ManualJournalUpdateParams manualJournalUpdateParams = (ManualJournalUpdateParams) o;
return Objects.equals(this.adjustment, manualJournalUpdateParams.adjustment) &&
Objects.equals(this.companyId, manualJournalUpdateParams.companyId) &&
Objects.equals(this.details, manualJournalUpdateParams.details) &&
Objects.equals(this.issueDate, manualJournalUpdateParams.issueDate) &&
Objects.equals(this.receiptIds, manualJournalUpdateParams.receiptIds);
}
@Override
public int hashCode() {
return Objects.hash(adjustment, companyId, details, issueDate, receiptIds);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ManualJournalUpdateParams {\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(" issueDate: ").append(toIndentedString(issueDate)).append("\n");
sb.append(" receiptIds: ").append(toIndentedString(receiptIds)).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 ");
}
}