public interface ReceiptsApi
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Observable<ReceiptResponse> |
createReceipt(Integer companyId,
okhttp3.MultipartBody.Part receipt,
String description,
String issueDate,
Long receiptMetadatumAmount,
String receiptMetadatumIssueDate,
String receiptMetadatumPartnerName)
ファイルボックス 証憑ファイルアップロード
|
io.reactivex.Completable |
destroyReceipt(Integer id,
Integer companyId)
ファイルボックス 証憑ファイルを削除する
|
io.reactivex.Observable<okhttp3.ResponseBody> |
downloadReceipt(Integer id,
Integer companyId)
ファイルボックス 証憑ファイルのダウンロード
|
io.reactivex.Observable<ReceiptResponse> |
getReceipt(Integer id,
Integer companyId)
ファイルボックス 証憑ファイルの取得
|
io.reactivex.Observable<InlineResponse2005> |
getReceipts(Integer companyId,
String startDate,
String endDate,
String userName,
Integer number,
String commentType,
Boolean commentImportant,
String category,
Long offset,
Integer limit)
ファイルボックス 証憑ファイル一覧の取得
|
io.reactivex.Observable<ReceiptResponse> |
updateReceipt(Integer id,
ReceiptUpdateParams receiptUpdateParams)
ファイルボックス 証憑ファイル情報更新
|
@Multipart @POST(value="api/1/receipts") io.reactivex.Observable<ReceiptResponse> createReceipt(@Part(value="company_id") Integer companyId, @Part okhttp3.MultipartBody.Part receipt, @Part(value="description") String description, @Part(value="issue_date") String issueDate, @Part(value="receipt_metadatum_amount") Long receiptMetadatumAmount, @Part(value="receipt_metadatum_issue_date") String receiptMetadatumIssueDate, @Part(value="receipt_metadatum_partner_name") String receiptMetadatumPartnerName)
companyId - 事業所ID (required)receipt - 証憑ファイル (required)description - メモ (255文字以内) (optional)issueDate - 取引日 (yyyy-mm-dd) (optional)receiptMetadatumAmount - 金額 (optional)receiptMetadatumIssueDate - 発行日 (yyyy-mm-dd) (optional)receiptMetadatumPartnerName - 発行元 (optional)@DELETE(value="api/1/receipts/{id}")
io.reactivex.Completable destroyReceipt(@Path(value="id")
Integer id,
@Query(value="company_id")
Integer companyId)
id - 証憑ファイルID (required)companyId - 事業所ID (required)@GET(value="api/1/receipts/{id}/download")
io.reactivex.Observable<okhttp3.ResponseBody> downloadReceipt(@Path(value="id")
Integer id,
@Query(value="company_id")
Integer companyId)
id - 証憑ファイルID (required)companyId - 事業所ID (required)@GET(value="api/1/receipts/{id}")
io.reactivex.Observable<ReceiptResponse> getReceipt(@Path(value="id")
Integer id,
@Query(value="company_id")
Integer companyId)
id - 証憑ファイルID (required)companyId - 事業所ID (required)@GET(value="api/1/receipts") io.reactivex.Observable<InlineResponse2005> getReceipts(@Query(value="company_id") Integer companyId, @Query(value="start_date") String startDate, @Query(value="end_date") String endDate, @Query(value="user_name") String userName, @Query(value="number") Integer number, @Query(value="comment_type") String commentType, @Query(value="comment_important") Boolean commentImportant, @Query(value="category") String category, @Query(value="offset") Long offset, @Query(value="limit") Integer limit)
companyId - 事業所ID (required)startDate - アップロード日 (yyyy-mm-dd) (required)endDate - アップロード日 (yyyy-mm-dd) (required)userName - アップロードしたユーザー名、メールアドレス (optional)number - アップロードファイルNo (optional)commentType - posted:コメントあり, raised:未解決, resolved:解決済 (optional)commentImportant - trueの時、重要コメント付きが対象 (optional)category - all:すべて、without_deal:未登録、with_expense_application_line:経費申請中, with_deal:登録済み、ignored:無視 (optional)offset - 取得レコードのオフセット (デフォルト: 0) (optional)limit - 取得レコードの件数 (デフォルト: 50, 最小: 1, 最大: 3000) (optional)@Headers(value="Content-Type:application/json")
@PUT(value="api/1/receipts/{id}")
io.reactivex.Observable<ReceiptResponse> updateReceipt(@Path(value="id")
Integer id,
@Body
ReceiptUpdateParams receiptUpdateParams)
id - 証憑ファイルID (required)receiptUpdateParams - (required)Copyright © 2022. All rights reserved.