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

jp.co.freee.accounting.models.ApprovalRequestCreateParams 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.ApprovalRequestCreateParamsRequestItems;

/**
 * ApprovalRequestCreateParams
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ApprovalRequestCreateParams {
  public static final String SERIALIZED_NAME_APPLICATION_DATE = "application_date";
  @SerializedName(SERIALIZED_NAME_APPLICATION_DATE)
  private String applicationDate;

  public static final String SERIALIZED_NAME_APPROVAL_FLOW_ROUTE_ID = "approval_flow_route_id";
  @SerializedName(SERIALIZED_NAME_APPROVAL_FLOW_ROUTE_ID)
  private Integer approvalFlowRouteId;

  public static final String SERIALIZED_NAME_APPROVER_ID = "approver_id";
  @SerializedName(SERIALIZED_NAME_APPROVER_ID)
  private Integer approverId;

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

  public static final String SERIALIZED_NAME_DRAFT = "draft";
  @SerializedName(SERIALIZED_NAME_DRAFT)
  private Boolean draft;

  public static final String SERIALIZED_NAME_FORM_ID = "form_id";
  @SerializedName(SERIALIZED_NAME_FORM_ID)
  private Integer formId;

  public static final String SERIALIZED_NAME_PARENT_ID = "parent_id";
  @SerializedName(SERIALIZED_NAME_PARENT_ID)
  private Integer parentId;

  public static final String SERIALIZED_NAME_REQUEST_ITEMS = "request_items";
  @SerializedName(SERIALIZED_NAME_REQUEST_ITEMS)
  private List requestItems = new ArrayList<>();

  public ApprovalRequestCreateParams() { 
  }

  public ApprovalRequestCreateParams applicationDate(String applicationDate) {
    
    this.applicationDate = applicationDate;
    return this;
  }

   /**
   * 申請日 (yyyy-mm-dd)<br> 指定しない場合は当日の日付が登録されます。 
   * @return applicationDate
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(example = "2019-12-17", value = "申請日 (yyyy-mm-dd)
指定しない場合は当日の日付が登録されます。 ") public String getApplicationDate() { return applicationDate; } public void setApplicationDate(String applicationDate) { this.applicationDate = applicationDate; } public ApprovalRequestCreateParams approvalFlowRouteId(Integer approvalFlowRouteId) { this.approvalFlowRouteId = approvalFlowRouteId; return this; } /** * 申請経路ID * minimum: 1 * maximum: 2147483647 * @return approvalFlowRouteId **/ @javax.annotation.Nonnull @ApiModelProperty(example = "1", required = true, value = "申請経路ID") public Integer getApprovalFlowRouteId() { return approvalFlowRouteId; } public void setApprovalFlowRouteId(Integer approvalFlowRouteId) { this.approvalFlowRouteId = approvalFlowRouteId; } public ApprovalRequestCreateParams approverId(Integer approverId) { this.approverId = approverId; return this; } /** * 承認者のユーザーID * minimum: 1 * maximum: 2147483647 * @return approverId **/ @javax.annotation.Nullable @ApiModelProperty(example = "1", value = "承認者のユーザーID") public Integer getApproverId() { return approverId; } public void setApproverId(Integer approverId) { this.approverId = approverId; } public ApprovalRequestCreateParams 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 ApprovalRequestCreateParams draft(Boolean draft) { this.draft = draft; return this; } /** * falseの時、in_progress:申請中で作成する。それ以外の時はdraft:下書きで作成する * @return draft **/ @javax.annotation.Nonnull @ApiModelProperty(example = "true", required = true, value = "falseの時、in_progress:申請中で作成する。それ以外の時はdraft:下書きで作成する") public Boolean getDraft() { return draft; } public void setDraft(Boolean draft) { this.draft = draft; } public ApprovalRequestCreateParams formId(Integer formId) { this.formId = formId; return this; } /** * 申請フォームID * minimum: 1 * maximum: 2147483647 * @return formId **/ @javax.annotation.Nonnull @ApiModelProperty(example = "1", required = true, value = "申請フォームID") public Integer getFormId() { return formId; } public void setFormId(Integer formId) { this.formId = formId; } public ApprovalRequestCreateParams parentId(Integer parentId) { this.parentId = parentId; return this; } /** * 親申請ID(既存各種申請IDのみ指定可能です。) * minimum: 1 * maximum: 2147483647 * @return parentId **/ @javax.annotation.Nullable @ApiModelProperty(example = "2", value = "親申請ID(既存各種申請IDのみ指定可能です。)") public Integer getParentId() { return parentId; } public void setParentId(Integer parentId) { this.parentId = parentId; } public ApprovalRequestCreateParams requestItems(List requestItems) { this.requestItems = requestItems; return this; } public ApprovalRequestCreateParams addRequestItemsItem(ApprovalRequestCreateParamsRequestItems requestItemsItem) { this.requestItems.add(requestItemsItem); return this; } /** * Get requestItems * @return requestItems **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") public List getRequestItems() { return requestItems; } public void setRequestItems(List requestItems) { this.requestItems = requestItems; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ApprovalRequestCreateParams approvalRequestCreateParams = (ApprovalRequestCreateParams) o; return Objects.equals(this.applicationDate, approvalRequestCreateParams.applicationDate) && Objects.equals(this.approvalFlowRouteId, approvalRequestCreateParams.approvalFlowRouteId) && Objects.equals(this.approverId, approvalRequestCreateParams.approverId) && Objects.equals(this.companyId, approvalRequestCreateParams.companyId) && Objects.equals(this.draft, approvalRequestCreateParams.draft) && Objects.equals(this.formId, approvalRequestCreateParams.formId) && Objects.equals(this.parentId, approvalRequestCreateParams.parentId) && Objects.equals(this.requestItems, approvalRequestCreateParams.requestItems); } @Override public int hashCode() { return Objects.hash(applicationDate, approvalFlowRouteId, approverId, companyId, draft, formId, parentId, requestItems); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ApprovalRequestCreateParams {\n"); sb.append(" applicationDate: ").append(toIndentedString(applicationDate)).append("\n"); sb.append(" approvalFlowRouteId: ").append(toIndentedString(approvalFlowRouteId)).append("\n"); sb.append(" approverId: ").append(toIndentedString(approverId)).append("\n"); sb.append(" companyId: ").append(toIndentedString(companyId)).append("\n"); sb.append(" draft: ").append(toIndentedString(draft)).append("\n"); sb.append(" formId: ").append(toIndentedString(formId)).append("\n"); sb.append(" parentId: ").append(toIndentedString(parentId)).append("\n"); sb.append(" requestItems: ").append(toIndentedString(requestItems)).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