public interface InvoiceItemCategoryService
| Modifier and Type | Field and Description |
|---|---|
static String |
basePath |
static String |
id |
static String |
path |
| Modifier and Type | Method and Description |
|---|---|
retrofit2.Call<InvoiceItem.Category> |
create(InvoiceItem.Category creationInfo) |
retrofit2.Call<Void> |
delete(long categoryId) |
retrofit2.Call<InvoiceItem.Category> |
get(long categoryId) |
retrofit2.Call<PaginatedList> |
list(Instant updatedSince,
int page,
int perPage) |
retrofit2.Call<InvoiceItem.Category> |
update(long categoryId,
InvoiceItem.Category updateInfo) |
static final String basePath
static final String id
static final String path
@GET(value="invoice_item_categories") retrofit2.Call<PaginatedList> list(@Query(value="updated_since") Instant updatedSince, @Query(value="page") int page, @Query(value="per_page") int perPage)
@GET(value="invoice_item_categories/{categoryId}")
retrofit2.Call<InvoiceItem.Category> get(@Path(value="categoryId")
long categoryId)
@POST(value="invoice_item_categories") retrofit2.Call<InvoiceItem.Category> create(@Body InvoiceItem.Category creationInfo)
@PATCH(value="invoice_item_categories/{categoryId}")
retrofit2.Call<InvoiceItem.Category> update(@Path(value="categoryId")
long categoryId,
@Body
InvoiceItem.Category updateInfo)
@DELETE(value="invoice_item_categories/{categoryId}")
retrofit2.Call<Void> delete(@Path(value="categoryId")
long categoryId)