public class InvoiceMessagesApiImpl extends Object implements InvoiceMessagesApi
| Constructor and Description |
|---|
InvoiceMessagesApiImpl(InvoiceMessagesService service) |
| Modifier and Type | Method and Description |
|---|---|
InvoiceMessage |
create(Reference<Invoice> invoiceReference,
InvoiceMessage creationInfo)
Create a new InvoiceMessage
|
void |
delete(Reference<Invoice> invoiceReference,
Reference<InvoiceMessage> invoiceMessageReference)
Delete an existing InvoiceMessage.
|
List<InvoiceMessage> |
list(Reference<Invoice> invoiceReference,
Instant updatedSince) |
Pagination<InvoiceMessage> |
list(Reference<Invoice> invoiceReference,
Instant updatedSince,
int page,
int perPage) |
InvoiceMessage |
markAs(Reference<Invoice> invoiceReference,
InvoiceMessage.EventType eventType)
Change the state of an invoice to the given eventType.
|
public InvoiceMessagesApiImpl(InvoiceMessagesService service)
public List<InvoiceMessage> list(Reference<Invoice> invoiceReference, Instant updatedSince)
list in interface InvoiceMessagesApiinvoiceReference - the invoice containing the messagesupdatedSince - return only InvoiceMessages that have been updated at least 1
second after updatedSince. Set to null to disable filtering.public Pagination<InvoiceMessage> list(Reference<Invoice> invoiceReference, Instant updatedSince, int page, int perPage)
list in interface InvoiceMessagesApiinvoiceReference - the invoice containing the messagesupdatedSince - return only InvoiceMessages 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 100public InvoiceMessage create(Reference<Invoice> invoiceReference, InvoiceMessage creationInfo)
InvoiceMessagesApicreate in interface InvoiceMessagesApiinvoiceReference - the invoice that will contain the messagecreationInfo - creation informationpublic InvoiceMessage markAs(Reference<Invoice> invoiceReference, InvoiceMessage.EventType eventType)
InvoiceMessagesApimarkAs in interface InvoiceMessagesApiinvoiceReference - the invoice against which to record the eventeventType - the event you want to record for this invoicepublic void delete(Reference<Invoice> invoiceReference, Reference<InvoiceMessage> invoiceMessageReference)
InvoiceMessagesApidelete in interface InvoiceMessagesApiinvoiceReference - the invoice that contains the messageinvoiceMessageReference - An existing InvoiceMessage to be deleted