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

jp.co.freee.accounting.api.ApprovalFlowRoutesApi Maven / Gradle / Ivy

The newest version!
package jp.co.freee.accounting.api;

import jp.co.freee.accounting.CollectionFormats.*;

import io.reactivex.Observable;
import io.reactivex.Completable;
import retrofit2.http.*;

import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import okhttp3.MultipartBody;

import jp.co.freee.accounting.models.ApprovalFlowRouteResponse;
import jp.co.freee.accounting.models.ApprovalFlowRoutesIndexResponse;
import jp.co.freee.accounting.models.BadRequestError;
import jp.co.freee.accounting.models.BadRequestNotFoundError;
import jp.co.freee.accounting.models.ForbiddenError;
import jp.co.freee.accounting.models.InternalServerError;
import jp.co.freee.accounting.models.UnauthorizedError;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface ApprovalFlowRoutesApi {
  /**
   * 申請経路の取得
   * 
   * @param id 経路申請ID (required)
   * @param companyId 事業所ID (required)
   * @return Observable<ApprovalFlowRouteResponse>
   */
  @GET("api/1/approval_flow_routes/{id}")
  Observable getApprovalFlowRoute(
    @retrofit2.http.Path("id") Integer id, @retrofit2.http.Query("company_id") Integer companyId
  );

  /**
   * 申請経路一覧の取得
   * 
   * @param companyId 事業所ID (required)
   * @param includedUserId 経路に含まれるユーザーのユーザーID (optional)
   * @param usage 申請種別(各申請種別が使用できる申請経路に絞り込めます。例えば、ApprovalRequest を指定すると、各種申請が使用できる申請経路に絞り込めます。) * `TxnApproval` - 仕訳承認 * `ExpenseApplication` - 経費精算 * `PaymentRequest` - 支払依頼 * `ApprovalRequest` - 各種申請 * `DocApproval` - 請求書等 (見積書・納品書・請求書・発注書) (optional)
   * @param requestFormId 申請フォームID request_form_id指定時はusage条件をApprovalRequestに指定してください。指定しない場合無効になります。 (optional)
   * @return Observable<ApprovalFlowRoutesIndexResponse>
   */
  @GET("api/1/approval_flow_routes")
  Observable getApprovalFlowRoutes(
    @retrofit2.http.Query("company_id") Integer companyId, @retrofit2.http.Query("included_user_id") Integer includedUserId, @retrofit2.http.Query("usage") String usage, @retrofit2.http.Query("request_form_id") Integer requestFormId
  );

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy