Package ch.aaap.harvestclient.impl
Class InvoiceItemCategoriesApiImpl
Object
ch.aaap.harvestclient.impl.InvoiceItemCategoriesApiImpl
- All Implemented Interfaces:
Api.Create<InvoiceItem.Category>
,Api.Delete<InvoiceItem.Category>
,Api.Get<InvoiceItem.Category>
,Api.Simple<InvoiceItem.Category>
,InvoiceItemCategoriesApi
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(InvoiceItem.Category creationInfo) Create a new InvoiceItemCategoryvoid
delete
(Reference<InvoiceItem.Category> categoryReference) Delete an existing InvoiceItemCategory.get
(Reference<InvoiceItem.Category> categoryReference) Return an existing InvoiceItemCategory.Return a list of invoiceItemCategories, sorted by creation date, newest first.update
(Reference<InvoiceItem.Category> categoryReference, InvoiceItem.Category toChange) Updates the specific invoiceItemCategory by setting the values of the parameters passed.
-
Constructor Details
-
InvoiceItemCategoriesApiImpl
-
-
Method Details
-
list
- Specified by:
list
in interfaceInvoiceItemCategoriesApi
- Parameters:
updatedSince
- if set, only return categories updated since the given timestamp- Returns:
- a list of all InvoiceItemCategories in the account, sorted by creation date, newest first.
-
list
Description copied from interface:InvoiceItemCategoriesApi
Return a list of invoiceItemCategories, sorted by creation date, newest first. Use the filter object to filter the list. Page and perPage allow controlling how many results to return.- Specified by:
list
in interfaceInvoiceItemCategoriesApi
- Parameters:
updatedSince
- if set, only return categories updated since the given timestamppage
- the page numberperPage
- how many results to return for one page. Max 100- Returns:
- a (filtered) list of InvoiceItemCategory
-
get
Description copied from interface:InvoiceItemCategoriesApi
Return an existing InvoiceItemCategory.- Specified by:
get
in interfaceApi.Get<InvoiceItem.Category>
- Specified by:
get
in interfaceInvoiceItemCategoriesApi
- Parameters:
categoryReference
- a reference to an existing InvoiceItemCategory- Returns:
- the full InvoiceItemCategory object
-
create
Description copied from interface:InvoiceItemCategoriesApi
Create a new InvoiceItemCategory- Specified by:
create
in interfaceApi.Create<InvoiceItem.Category>
- Specified by:
create
in interfaceInvoiceItemCategoriesApi
- Parameters:
creationInfo
- creation information- Returns:
- the created InvoiceItemCategory
-
update
public InvoiceItem.Category update(Reference<InvoiceItem.Category> categoryReference, InvoiceItem.Category toChange) Description copied from interface:InvoiceItemCategoriesApi
Updates the specific invoiceItemCategory by setting the values of the parameters passed. Any parameters not provided will be left unchanged- Specified by:
update
in interfaceInvoiceItemCategoriesApi
- Parameters:
categoryReference
- An existing InvoiceItemCategory to be updatedtoChange
- the changes to be performed- Returns:
- the updated InvoiceItemCategory
-
delete
Description copied from interface:InvoiceItemCategoriesApi
Delete an existing InvoiceItemCategory.- Specified by:
delete
in interfaceApi.Delete<InvoiceItem.Category>
- Specified by:
delete
in interfaceInvoiceItemCategoriesApi
- Parameters:
categoryReference
- a reference to the InvoiceItemCategory to be deleted
-