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

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

/**
 * ApprovalRequestUpdateParams
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ApprovalRequestUpdateParams {
  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_REQUEST_ITEMS = "request_items";
  @SerializedName(SERIALIZED_NAME_REQUEST_ITEMS)
  private List requestItems = new ArrayList<>();

  public ApprovalRequestUpdateParams() { 
  }

  public ApprovalRequestUpdateParams 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 ApprovalRequestUpdateParams 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 ApprovalRequestUpdateParams 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 ApprovalRequestUpdateParams 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 ApprovalRequestUpdateParams 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 ApprovalRequestUpdateParams requestItems(List requestItems) { this.requestItems = requestItems; return this; } public ApprovalRequestUpdateParams 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; } ApprovalRequestUpdateParams approvalRequestUpdateParams = (ApprovalRequestUpdateParams) o; return Objects.equals(this.applicationDate, approvalRequestUpdateParams.applicationDate) && Objects.equals(this.approvalFlowRouteId, approvalRequestUpdateParams.approvalFlowRouteId) && Objects.equals(this.approverId, approvalRequestUpdateParams.approverId) && Objects.equals(this.companyId, approvalRequestUpdateParams.companyId) && Objects.equals(this.draft, approvalRequestUpdateParams.draft) && Objects.equals(this.requestItems, approvalRequestUpdateParams.requestItems); } @Override public int hashCode() { return Objects.hash(applicationDate, approvalFlowRouteId, approverId, companyId, draft, requestItems); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ApprovalRequestUpdateParams {\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(" 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