Package ch.aaap.harvestclient.impl
Class InvoicePaymentsApiImpl
Object
ch.aaap.harvestclient.impl.InvoicePaymentsApiImpl
- All Implemented Interfaces:
InvoicePaymentsApi
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(Reference<Invoice> invoiceReference, InvoicePayment creationInfo) Create a new InvoicePaymentvoid
delete
(Reference<Invoice> invoiceReference, Reference<InvoicePayment> invoicePaymentReference) Delete an existing InvoicePayment.
-
Constructor Details
-
InvoicePaymentsApiImpl
-
-
Method Details
-
list
- Specified by:
list
in interfaceInvoicePaymentsApi
- Parameters:
invoiceReference
- the invoice containing the paymentsupdatedSince
- return only InvoicePayments that have been updated at least 1 second after updatedSince. Set to null to disable filtering.- Returns:
- a list of all InvoicePayments in the invoice, sorted by creation date, newest first.
-
list
public Pagination<InvoicePayment> list(Reference<Invoice> invoiceReference, Instant updatedSince, int page, int perPage) - Specified by:
list
in interfaceInvoicePaymentsApi
- Parameters:
invoiceReference
- 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 100- Returns:
- a list of all InvoicePayments in the invoice, sorted by creation date, newest first.
-
create
Description copied from interface:InvoicePaymentsApi
Create a new InvoicePayment- Specified by:
create
in interfaceInvoicePaymentsApi
- Parameters:
invoiceReference
- the invoice that will contain the paymentcreationInfo
- creation information- Returns:
- the created InvoicePayment
-
delete
public void delete(Reference<Invoice> invoiceReference, Reference<InvoicePayment> invoicePaymentReference) Description copied from interface:InvoicePaymentsApi
Delete an existing InvoicePayment.- Specified by:
delete
in interfaceInvoicePaymentsApi
- Parameters:
invoiceReference
- the invoice that contains the paymentinvoicePaymentReference
- An existing InvoicePayment to be deleted
-