public class InvoicePaymentsApiImpl extends Object implements InvoicePaymentsApi
| Constructor and Description |
|---|
InvoicePaymentsApiImpl(InvoicePaymentService service) |
| Modifier and Type | Method and Description |
|---|---|
InvoicePayment |
create(Reference<Invoice> invoiceReference,
InvoicePayment creationInfo)
Create a new InvoicePayment
|
void |
delete(Reference<Invoice> invoiceReference,
Reference<InvoicePayment> invoicePaymentReference)
Delete an existing InvoicePayment.
|
List<InvoicePayment> |
list(Reference<Invoice> invoiceReference,
Instant updatedSince) |
Pagination<InvoicePayment> |
list(Reference<Invoice> invoiceReference,
Instant updatedSince,
int page,
int perPage) |
public InvoicePaymentsApiImpl(InvoicePaymentService service)
public List<InvoicePayment> list(Reference<Invoice> invoiceReference, Instant updatedSince)
list in interface InvoicePaymentsApiinvoiceReference - the invoice containing the paymentsupdatedSince - return only InvoicePayments that have been updated at least 1
second after updatedSince. Set to null to disable filtering.public Pagination<InvoicePayment> list(Reference<Invoice> invoiceReference, Instant updatedSince, int page, int perPage)
list in interface InvoicePaymentsApiinvoiceReference - the invoice containing the paymentsupdatedSince - return only InvoicePayments 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 InvoicePayment create(Reference<Invoice> invoiceReference, InvoicePayment creationInfo)
InvoicePaymentsApicreate in interface InvoicePaymentsApiinvoiceReference - the invoice that will contain the paymentcreationInfo - creation informationpublic void delete(Reference<Invoice> invoiceReference, Reference<InvoicePayment> invoicePaymentReference)
InvoicePaymentsApidelete in interface InvoicePaymentsApiinvoiceReference - the invoice that contains the paymentinvoicePaymentReference - An existing InvoicePayment to be deleted