public interface QuotationsApi
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Observable<QuotationResponse> |
createQuotation(QuotationCreateParams quotationCreateParams)
見積書の作成
|
io.reactivex.Completable |
destroyQuotation(Integer id,
Integer companyId)
見積書の削除
|
io.reactivex.Observable<QuotationResponse> |
getQuotation(Integer id,
Integer companyId)
見積書の取得
|
io.reactivex.Observable<QuotationIndexResponse> |
getQuotations(Integer companyId,
Integer partnerId,
String partnerCode,
String startIssueDate,
String endIssueDate,
String quotationNumber,
String description,
String quotationStatus,
Long offset,
Integer limit)
見積書一覧の取得
|
io.reactivex.Observable<QuotationResponse> |
updateQuotation(Integer id,
QuotationUpdateParams quotationUpdateParams)
見積書の更新
|
@Headers(value="Content-Type:application/json") @POST(value="api/1/quotations") io.reactivex.Observable<QuotationResponse> createQuotation(@Body QuotationCreateParams quotationCreateParams)
quotationCreateParams - 見積書の作成 (optional)@DELETE(value="api/1/quotations/{id}")
io.reactivex.Completable destroyQuotation(@Path(value="id")
Integer id,
@Query(value="company_id")
Integer companyId)
id - (required)companyId - 事業所ID (required)@GET(value="api/1/quotations/{id}")
io.reactivex.Observable<QuotationResponse> getQuotation(@Path(value="id")
Integer id,
@Query(value="company_id")
Integer companyId)
id - 見積書ID (required)companyId - 事業所ID (required)@GET(value="api/1/quotations") io.reactivex.Observable<QuotationIndexResponse> getQuotations(@Query(value="company_id") Integer companyId, @Query(value="partner_id") Integer partnerId, @Query(value="partner_code") String partnerCode, @Query(value="start_issue_date") String startIssueDate, @Query(value="end_issue_date") String endIssueDate, @Query(value="quotation_number") String quotationNumber, @Query(value="description") String description, @Query(value="quotation_status") String quotationStatus, @Query(value="offset") Long offset, @Query(value="limit") Integer limit)
companyId - 事業所ID (required)partnerId - 取引先IDで絞込 (optional)partnerCode - 取引先コードで絞込 (optional)startIssueDate - 見積日の開始日(yyyy-mm-dd) (optional)endIssueDate - 見積日の終了日(yyyy-mm-dd) (optional)quotationNumber - 見積書番号 (optional)description - 概要 (optional)quotationStatus - 見積書ステータス (unsubmitted: 送付待ち, submitted: 送付済み, all: 全て) (optional)offset - 取得レコードのオフセット (デフォルト: 0) (optional)limit - 取得レコードの件数 (デフォルト: 20, 最大: 100) (optional)@Headers(value="Content-Type:application/json")
@PUT(value="api/1/quotations/{id}")
io.reactivex.Observable<QuotationResponse> updateQuotation(@Path(value="id")
Integer id,
@Body
QuotationUpdateParams quotationUpdateParams)
id - 見積書ID (required)quotationUpdateParams - 見積書の更新 (optional)Copyright © 2022. All rights reserved.