Package ch.aaap.harvestclient.impl
Class EstimateMessagesApiImpl
Object
ch.aaap.harvestclient.impl.EstimateMessagesApiImpl
- All Implemented Interfaces:
 EstimateMessagesApi
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptioncreate(Reference<Estimate> estimateReference, EstimateMessage creationInfo) Create a new EstimateMessagevoiddelete(Reference<Estimate> estimateReference, Reference<EstimateMessage> estimateMessageReference) Delete an existing EstimateMessage.markAs(Reference<Estimate> estimateReference, EstimateMessage.EventType eventType) Change the state of an estimate to the given eventType. 
- 
Constructor Details
- 
EstimateMessagesApiImpl
 
 - 
 - 
Method Details
- 
list
- Specified by:
 listin interfaceEstimateMessagesApi- Parameters:
 estimateReference- the estimate containing the messagesupdatedSince- return only EstimateMessages that have been updated at least 1 second after updatedSince. Set to null to disable filtering.- Returns:
 - a list of all EstimateMessages in the estimate, sorted by creation date, newest first.
 
 - 
list
public Pagination<EstimateMessage> list(Reference<Estimate> estimateReference, Instant updatedSince, int page, int perPage) - Specified by:
 listin interfaceEstimateMessagesApi- Parameters:
 estimateReference- the estimate containing the messagesupdatedSince- return only EstimateMessages that have been updated at least 1 second after updatedSince. Set to null to disable filtering.page- the page numberperPage- how many results to return for one page. Max 100- Returns:
 - a list of all EstimateMessages in the estimate, sorted by creation date, newest first.
 
 - 
create
Description copied from interface:EstimateMessagesApiCreate a new EstimateMessage- Specified by:
 createin interfaceEstimateMessagesApi- Parameters:
 estimateReference- the estimate that will contain the messagecreationInfo- creation information- Returns:
 - the created EstimateMessage
 
 - 
markAs
public EstimateMessage markAs(Reference<Estimate> estimateReference, EstimateMessage.EventType eventType) Description copied from interface:EstimateMessagesApiChange the state of an estimate to the given eventType. Not all transitions are allowed: see the web interface for more information- Specified by:
 markAsin interfaceEstimateMessagesApi- Parameters:
 estimateReference- the estimate against which to record the eventeventType- the event you want to record for this estimate- Returns:
 - the updated Estimate
 
 - 
delete
public void delete(Reference<Estimate> estimateReference, Reference<EstimateMessage> estimateMessageReference) Description copied from interface:EstimateMessagesApiDelete an existing EstimateMessage. Deleting an Accept Message does not change the status of the Estimate.- Specified by:
 deletein interfaceEstimateMessagesApi- Parameters:
 estimateReference- the estimate that contains the messageestimateMessageReference- An existing EstimateMessage to be deleted
 
 -