public interface InvoiceMessagesApi
| 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.
|
List<InvoiceMessage> list(Reference<Invoice> invoiceReference, Instant updatedSince)
updatedSince - return only InvoiceMessages that have been updated at least 1
second after updatedSince. Set to null to disable filtering.invoiceReference - the invoice containing the messagesPagination<InvoiceMessage> list(Reference<Invoice> invoiceReference, Instant updatedSince, int page, int perPage)
updatedSince - return only InvoiceMessages that have been updated at least 1
second after updatedSince. Set to null to disable filtering.invoiceReference - the invoice containing the messagespage - the page numberperPage - how many results to return for one page. Max 100InvoiceMessage create(Reference<Invoice> invoiceReference, InvoiceMessage creationInfo)
invoiceReference - the invoice that will contain the messagecreationInfo - creation informationInvoiceMessage markAs(Reference<Invoice> invoiceReference, InvoiceMessage.EventType eventType)
invoiceReference - the invoice against which to record the eventeventType - the event you want to record for this invoicevoid delete(Reference<Invoice> invoiceReference, Reference<InvoiceMessage> invoiceMessageReference)
invoiceReference - the invoice that contains the messageinvoiceMessageReference - An existing InvoiceMessage to be deleted