public class InvoiceItemCategoriesApiImpl extends Object implements InvoiceItemCategoriesApi
| Constructor and Description |
|---|
InvoiceItemCategoriesApiImpl(InvoiceItemCategoryService service) |
| Modifier and Type | Method and Description |
|---|---|
InvoiceItem.Category |
create(InvoiceItem.Category creationInfo)
Create a new InvoiceItemCategory
|
void |
delete(Reference<InvoiceItem.Category> categoryReference)
Delete an existing InvoiceItemCategory.
|
InvoiceItem.Category |
get(Reference<InvoiceItem.Category> categoryReference)
Return an existing InvoiceItemCategory.
|
List<InvoiceItem.Category> |
list(Instant updatedSince) |
Pagination<InvoiceItem.Category> |
list(Instant updatedSince,
int page,
int perPage)
Return a list of invoiceItemCategories, sorted by creation date, newest
first.
|
InvoiceItem.Category |
update(Reference<InvoiceItem.Category> categoryReference,
InvoiceItem.Category toChange)
Updates the specific invoiceItemCategory by setting the values of the
parameters passed.
|
public InvoiceItemCategoriesApiImpl(InvoiceItemCategoryService service)
public List<InvoiceItem.Category> list(@Nullable Instant updatedSince)
list in interface InvoiceItemCategoriesApiupdatedSince - if set, only return categories updated since the given timestamppublic Pagination<InvoiceItem.Category> list(@Nullable Instant updatedSince, int page, int perPage)
InvoiceItemCategoriesApilist in interface InvoiceItemCategoriesApiupdatedSince - if set, only return categories updated since the given timestamppage - the page numberperPage - how many results to return for one page. Max 100public InvoiceItem.Category get(Reference<InvoiceItem.Category> categoryReference)
InvoiceItemCategoriesApiget in interface Api.Get<InvoiceItem.Category>get in interface InvoiceItemCategoriesApicategoryReference - a reference to an existing InvoiceItemCategorypublic InvoiceItem.Category create(InvoiceItem.Category creationInfo)
InvoiceItemCategoriesApicreate in interface Api.Create<InvoiceItem.Category>create in interface InvoiceItemCategoriesApicreationInfo - creation informationpublic InvoiceItem.Category update(Reference<InvoiceItem.Category> categoryReference, InvoiceItem.Category toChange)
InvoiceItemCategoriesApiupdate in interface InvoiceItemCategoriesApicategoryReference - An existing InvoiceItemCategory to be updatedtoChange - the changes to be performedpublic void delete(Reference<InvoiceItem.Category> categoryReference)
InvoiceItemCategoriesApidelete in interface Api.Delete<InvoiceItem.Category>delete in interface InvoiceItemCategoriesApicategoryReference - a reference to the InvoiceItemCategory to be deleted