Package ch.aaap.harvestclient.impl
Class InvoicePaymentsApiImpl
Object
ch.aaap.harvestclient.impl.InvoicePaymentsApiImpl
- All Implemented Interfaces:
InvoicePaymentsApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(Reference<Invoice> invoiceReference, InvoicePayment creationInfo) Create a new InvoicePaymentvoiddelete(Reference<Invoice> invoiceReference, Reference<InvoicePayment> invoicePaymentReference) Delete an existing InvoicePayment.
-
Constructor Details
-
InvoicePaymentsApiImpl
-
-
Method Details
-
list
- Specified by:
listin 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:
listin 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:InvoicePaymentsApiCreate a new InvoicePayment- Specified by:
createin 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:InvoicePaymentsApiDelete an existing InvoicePayment.- Specified by:
deletein interfaceInvoicePaymentsApi- Parameters:
invoiceReference- the invoice that contains the paymentinvoicePaymentReference- An existing InvoicePayment to be deleted
-