public interface EstimatesApi extends Api.Simple<Estimate>
| Modifier and Type | Method and Description |
|---|---|
Estimate |
addLineItem(Reference<Estimate> estimateReference,
EstimateItem creationInfo)
Create a new estimate line item and add it to the given estimate
|
Estimate |
addLineItems(Reference<Estimate> estimateReference,
List<EstimateItem> creationInfoList)
Create new estimate line items and add it to the given estimate
|
Estimate |
create(Estimate estimateCreationInfo)
Create a new Estimate according to given creation information.
|
void |
delete(Reference<Estimate> estimateReference)
Delete an existing Estimate.
|
Estimate |
deleteLineItem(Reference<Estimate> estimateReference,
Reference<EstimateItem> estimateItemReference)
Delete an existing line item
|
Estimate |
deleteLineItems(Reference<Estimate> estimateReference,
List<? extends Reference<EstimateItem>> estimateItemReferenceList)
Delete an existing line item
|
Estimate |
get(Reference<Estimate> estimateReference) |
List<Estimate> |
list(EstimateFilter filter)
Return a list of estimates, sorted by issue date, newest first.
|
Pagination<Estimate> |
list(EstimateFilter filter,
int page,
int perPage)
Return a list of estimates, sorted by issue date, newest first.
|
Estimate |
update(Reference<Estimate> estimateReference,
EstimateUpdateInfo toChange)
Updates an existing Estimate with the properties set in EstimateUpdateInfo.
|
Estimate |
updateLineItem(Reference<Estimate> estimateReference,
Reference<EstimateItem> estimateItemReference,
EstimateItemUpdateInfo updateInfo)
Update an existing line item
|
Estimate |
updateLineItems(Reference<Estimate> estimateReference,
List<? extends Reference<EstimateItem>> estimateItemReferenceList,
List<EstimateItemUpdateInfo> updateInfoList)
Update an existing line item
|
List<Estimate> list(EstimateFilter filter)
filter - filtering optionsPagination<Estimate> list(EstimateFilter filter, int page, int perPage)
filter - filtering optionspage - the page numberperPage - how many results to return for one page. Max 100Estimate create(Estimate estimateCreationInfo)
create in interface Api.Create<Estimate>estimateCreationInfo - the creation optionsEstimate addLineItem(Reference<Estimate> estimateReference, EstimateItem creationInfo)
estimateReference - the estimate to add the item tocreationInfo - the line item to be createdEstimate updateLineItem(Reference<Estimate> estimateReference, Reference<EstimateItem> estimateItemReference, EstimateItemUpdateInfo updateInfo)
estimateReference - the estimate that contains the itemestimateItemReference - a reference to the line itemupdateInfo - the line item to be updatedEstimate deleteLineItem(Reference<Estimate> estimateReference, Reference<EstimateItem> estimateItemReference)
estimateReference - the estimate that contains the itemestimateItemReference - the line item to be deletedEstimate addLineItems(Reference<Estimate> estimateReference, List<EstimateItem> creationInfoList)
estimateReference - the estimate to add the item tocreationInfoList - a list of items to be createdEstimate updateLineItems(Reference<Estimate> estimateReference, List<? extends Reference<EstimateItem>> estimateItemReferenceList, List<EstimateItemUpdateInfo> updateInfoList)
estimateReference - the estimate that contains the itemestimateItemReferenceList - a list of the item references to be updated, in the same order as
updateInfoListupdateInfoList - a list of the line items to be updatedEstimate deleteLineItems(Reference<Estimate> estimateReference, List<? extends Reference<EstimateItem>> estimateItemReferenceList)
estimateReference - the estimate that contains the itemestimateItemReferenceList - a list of the line items to be deletedEstimate update(Reference<Estimate> estimateReference, EstimateUpdateInfo toChange)
deleteLineItems(Reference, List) to
delete existing itemsestimateReference - the existing estimate to be updatedtoChange - the properties to be updatedvoid delete(Reference<Estimate> estimateReference)
delete in interface Api.Delete<Estimate>estimateReference - a reference to an existing Estimate to be deleted