public class EstimateItemCategoriesApiImpl extends Object implements EstimateItemCategoriesApi
| Constructor and Description |
|---|
EstimateItemCategoriesApiImpl(EstimateItemCategoryService service) |
| Modifier and Type | Method and Description |
|---|---|
EstimateItem.Category |
create(EstimateItem.Category creationInfo)
Create a new EstimateItemCategory
|
void |
delete(Reference<EstimateItem.Category> categoryReference)
Delete an existing EstimateItemCategory.
|
EstimateItem.Category |
get(Reference<EstimateItem.Category> categoryReference)
Return an existing EstimateItemCategory.
|
List<EstimateItem.Category> |
list(Instant updatedSince) |
Pagination<EstimateItem.Category> |
list(Instant updatedSince,
int page,
int perPage)
Return a list of estimateItemCategories, sorted by creation date, newest
first.
|
EstimateItem.Category |
update(Reference<EstimateItem.Category> categoryReference,
EstimateItem.Category toChange)
Updates the specific estimateItemCategory by setting the values of the
parameters passed.
|
public EstimateItemCategoriesApiImpl(EstimateItemCategoryService service)
public List<EstimateItem.Category> list(@Nullable Instant updatedSince)
list in interface EstimateItemCategoriesApiupdatedSince - if set, only return categories updated since the given timestamppublic Pagination<EstimateItem.Category> list(@Nullable Instant updatedSince, int page, int perPage)
EstimateItemCategoriesApilist in interface EstimateItemCategoriesApiupdatedSince - if set, only return categories updated since the given timestamppage - the page numberperPage - how many results to return for one page. Max 100public EstimateItem.Category get(Reference<EstimateItem.Category> categoryReference)
EstimateItemCategoriesApiget in interface Api.Get<EstimateItem.Category>get in interface EstimateItemCategoriesApicategoryReference - a reference to an existing EstimateItemCategorypublic EstimateItem.Category create(EstimateItem.Category creationInfo)
EstimateItemCategoriesApicreate in interface Api.Create<EstimateItem.Category>create in interface EstimateItemCategoriesApicreationInfo - creation informationpublic EstimateItem.Category update(Reference<EstimateItem.Category> categoryReference, EstimateItem.Category toChange)
EstimateItemCategoriesApiupdate in interface EstimateItemCategoriesApicategoryReference - An existing EstimateItemCategory to be updatedtoChange - the changes to be performedpublic void delete(Reference<EstimateItem.Category> categoryReference)
EstimateItemCategoriesApidelete in interface Api.Delete<EstimateItem.Category>delete in interface EstimateItemCategoriesApicategoryReference - a reference to the EstimateItemCategory to be deleted