public interface InvoicesApi
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Observable<InvoiceResponse> |
createInvoice(InvoiceCreateParams invoiceCreateParams)
請求書の作成
|
io.reactivex.Completable |
destroyInvoice(Integer id,
Integer companyId)
請求書の削除
|
io.reactivex.Observable<InvoiceResponse> |
getInvoice(Integer id,
Integer companyId)
請求書の取得
|
io.reactivex.Observable<InvoiceIndexResponse> |
getInvoices(Integer companyId,
Integer partnerId,
String partnerCode,
String startIssueDate,
String endIssueDate,
String startDueDate,
String endDueDate,
String invoiceNumber,
String description,
String invoiceStatus,
String paymentStatus,
Long offset,
Integer limit)
請求書一覧の取得
|
io.reactivex.Observable<InvoiceResponse> |
updateInvoice(Integer id,
InvoiceUpdateParams invoiceUpdateParams)
請求書の更新
|
@Headers(value="Content-Type:application/json") @POST(value="api/1/invoices") io.reactivex.Observable<InvoiceResponse> createInvoice(@Body InvoiceCreateParams invoiceCreateParams)
invoiceCreateParams - 請求書の作成 (optional)@DELETE(value="api/1/invoices/{id}")
io.reactivex.Completable destroyInvoice(@Path(value="id")
Integer id,
@Query(value="company_id")
Integer companyId)
id - (required)companyId - 事業所ID (required)@GET(value="api/1/invoices/{id}")
io.reactivex.Observable<InvoiceResponse> getInvoice(@Path(value="id")
Integer id,
@Query(value="company_id")
Integer companyId)
id - 請求書ID (required)companyId - 事業所ID (required)@GET(value="api/1/invoices") io.reactivex.Observable<InvoiceIndexResponse> getInvoices(@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="start_due_date") String startDueDate, @Query(value="end_due_date") String endDueDate, @Query(value="invoice_number") String invoiceNumber, @Query(value="description") String description, @Query(value="invoice_status") String invoiceStatus, @Query(value="payment_status") String paymentStatus, @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)startDueDate - 期日の開始日(yyyy-mm-dd) (optional)endDueDate - 期日の終了日(yyyy-mm-dd) (optional)invoiceNumber - 請求書番号 (optional)description - 概要 (optional)invoiceStatus - 請求書ステータス (draft: 下書き, applying: 申請中, remanded: 差し戻し, rejected: 却下, approved: 承認済み, unsubmitted: 送付待ち, submitted: 送付済み) (optional)paymentStatus - 入金ステータス (unsettled: 入金待ち, settled: 入金済み) (optional)offset - 取得レコードのオフセット (デフォルト: 0) (optional)limit - 取得レコードの件数 (デフォルト: 20, 最大: 100) (optional)@Headers(value="Content-Type:application/json")
@PUT(value="api/1/invoices/{id}")
io.reactivex.Observable<InvoiceResponse> updateInvoice(@Path(value="id")
Integer id,
@Body
InvoiceUpdateParams invoiceUpdateParams)
id - 請求書ID (required)invoiceUpdateParams - 請求書の更新 (optional)Copyright © 2022. All rights reserved.