public class InvoiceHandler extends AbstractHandler
| Constructor and Description |
|---|
InvoiceHandler(String baseApiUrl) |
| Modifier and Type | Method and Description |
|---|---|
InvoiceResponse |
getInvoice(String id)
Retrieve details of an invoice, using the invoice’s identifier.
|
InvoiceResponse |
getInvoice(String id,
QueryParams params)
Retrieve details of an invoice, using the invoice’s identifier.
|
Pagination<InvoicesListResponse> |
getInvoices()
Retrieve all invoices on the account.
|
Pagination<InvoicesListResponse> |
getInvoices(QueryParams params)
Retrieve all invoices on the account.
|
delete, delete, delete, get, get, patch, patch, post, post, postWithoutBody, validateResponsepublic InvoiceHandler(String baseApiUrl)
public Pagination<InvoicesListResponse> getInvoices() throws MollieException
MollieException - when something went wrongpublic Pagination<InvoicesListResponse> getInvoices(QueryParams params) throws MollieException
params - A map of query paramsMollieException - when something went wrongpublic InvoiceResponse getInvoice(String id) throws MollieException
If you want to retrieve the details of an invoice by its invoice number, use the list endpoint with the reference parameter.
id - An invoice IDMollieException - when something went wrongpublic InvoiceResponse getInvoice(String id, QueryParams params) throws MollieException
If you want to retrieve the details of an invoice by its invoice number, use the list endpoint with the reference parameter.
id - An invoice IDparams - A map of query paramsMollieException - when something went wrongCopyright © 2020. All rights reserved.