public interface ExpenseApplicationsApi
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Observable<ExpenseApplicationResponse> |
createExpenseApplication(ExpenseApplicationCreateParams expenseApplicationCreateParams)
経費申請の作成
|
io.reactivex.Completable |
destroyExpenseApplication(Integer id,
Integer companyId)
経費申請の削除
|
io.reactivex.Observable<ExpenseApplicationResponse> |
getExpenseApplication(Integer id,
Integer companyId)
経費申請詳細の取得
|
io.reactivex.Observable<ExpenseApplicationsIndexResponse> |
getExpenseApplications(Integer companyId,
String status,
Boolean payrollAttached,
String startTransactionDate,
String endTransactionDate,
Integer applicationNumber,
String title,
String startIssueDate,
String endIssueDate,
Integer applicantId,
Integer approverId,
Integer minAmount,
Integer maxAmount,
Long offset,
Integer limit)
経費申請一覧の取得
|
io.reactivex.Observable<ExpenseApplicationResponse> |
updateExpenseApplication(Integer id,
ExpenseApplicationUpdateParams expenseApplicationUpdateParams)
経費申請の更新
|
io.reactivex.Observable<ExpenseApplicationResponse> |
updateExpenseApplicationAction(Integer id,
ExpenseApplicationActionCreateParams expenseApplicationActionCreateParams)
経費申請の承認操作
|
@Headers(value="Content-Type:application/json") @POST(value="api/1/expense_applications") io.reactivex.Observable<ExpenseApplicationResponse> createExpenseApplication(@Body ExpenseApplicationCreateParams expenseApplicationCreateParams)
expenseApplicationCreateParams - 経費申請の作成 (optional)@DELETE(value="api/1/expense_applications/{id}")
io.reactivex.Completable destroyExpenseApplication(@Path(value="id")
Integer id,
@Query(value="company_id")
Integer companyId)
id - 経費申請ID (required)companyId - 事業所ID (required)@GET(value="api/1/expense_applications/{id}")
io.reactivex.Observable<ExpenseApplicationResponse> getExpenseApplication(@Path(value="id")
Integer id,
@Query(value="company_id")
Integer companyId)
id - 経費申請ID (required)companyId - 事業所ID (required)@GET(value="api/1/expense_applications") io.reactivex.Observable<ExpenseApplicationsIndexResponse> getExpenseApplications(@Query(value="company_id") Integer companyId, @Query(value="status") String status, @Query(value="payroll_attached") Boolean payrollAttached, @Query(value="start_transaction_date") String startTransactionDate, @Query(value="end_transaction_date") String endTransactionDate, @Query(value="application_number") Integer applicationNumber, @Query(value="title") String title, @Query(value="start_issue_date") String startIssueDate, @Query(value="end_issue_date") String endIssueDate, @Query(value="applicant_id") Integer applicantId, @Query(value="approver_id") Integer approverId, @Query(value="min_amount") Integer minAmount, @Query(value="max_amount") Integer maxAmount, @Query(value="offset") Long offset, @Query(value="limit") Integer limit)
companyId - 事業所ID (required)status - 申請ステータス(draft:下書き, in_progress:申請中, approved:承認済, rejected:却下, feedback:差戻し)、 取引ステータス(unsettled:清算待ち, settled:精算済み) (optional)payrollAttached - true:給与連携あり、false:給与連携なし、未指定時:絞り込みなし (optional)startTransactionDate - 発生日(経費申請項目の日付)で絞込:開始日(yyyy-mm-dd) (optional)endTransactionDate - 発生日(経費申請項目の日付)で絞込:終了日(yyyy-mm-dd) (optional)applicationNumber - 申請No. (optional)title - 申請タイトル (optional)startIssueDate - 申請日で絞込:開始日(yyyy-mm-dd) (optional)endIssueDate - 申請日で絞込:終了日(yyyy-mm-dd) (optional)applicantId - 申請者のユーザーID (optional)approverId - 承認者のユーザーID (optional)minAmount - 金額で絞込 (下限金額) (optional)maxAmount - 金額で絞込 (上限金額) (optional)offset - 取得レコードのオフセット (デフォルト: 0) (optional)limit - 取得レコードの件数 (デフォルト: 50, 最小: 1, 最大: 500) (optional)@Headers(value="Content-Type:application/json")
@PUT(value="api/1/expense_applications/{id}")
io.reactivex.Observable<ExpenseApplicationResponse> updateExpenseApplication(@Path(value="id")
Integer id,
@Body
ExpenseApplicationUpdateParams expenseApplicationUpdateParams)
id - 経費申請ID (required)expenseApplicationUpdateParams - 経費申請の更新 (optional)@Headers(value="Content-Type:application/json")
@POST(value="api/1/expense_applications/{id}/actions")
io.reactivex.Observable<ExpenseApplicationResponse> updateExpenseApplicationAction(@Path(value="id")
Integer id,
@Body
ExpenseApplicationActionCreateParams expenseApplicationActionCreateParams)
id - 経費申請ID (required)expenseApplicationActionCreateParams - 経費申請の承認操作 (required)Copyright © 2022. All rights reserved.