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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(InvoiceItem.Category creationInfo) Create a new InvoiceItemCategoryvoiddelete(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:
listin 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:InvoiceItemCategoriesApiReturn 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:
listin 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:InvoiceItemCategoriesApiReturn an existing InvoiceItemCategory.- Specified by:
getin interfaceApi.Get<InvoiceItem.Category>- Specified by:
getin interfaceInvoiceItemCategoriesApi- Parameters:
categoryReference- a reference to an existing InvoiceItemCategory- Returns:
- the full InvoiceItemCategory object
-
create
Description copied from interface:InvoiceItemCategoriesApiCreate a new InvoiceItemCategory- Specified by:
createin interfaceApi.Create<InvoiceItem.Category>- Specified by:
createin 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:InvoiceItemCategoriesApiUpdates the specific invoiceItemCategory by setting the values of the parameters passed. Any parameters not provided will be left unchanged- Specified by:
updatein interfaceInvoiceItemCategoriesApi- Parameters:
categoryReference- An existing InvoiceItemCategory to be updatedtoChange- the changes to be performed- Returns:
- the updated InvoiceItemCategory
-
delete
Description copied from interface:InvoiceItemCategoriesApiDelete an existing InvoiceItemCategory.- Specified by:
deletein interfaceApi.Delete<InvoiceItem.Category>- Specified by:
deletein interfaceInvoiceItemCategoriesApi- Parameters:
categoryReference- a reference to the InvoiceItemCategory to be deleted
-