listInvoices method

Future<InvoiceResponse> listInvoices({
  1. required String locationId,
  2. String? cursor,
  3. int limit = 200,
  4. String? authToken,
})

Returns a list of invoices for a given location.

The response is paginated. If truncated, the response includes a cursor that you use in a subsequent request to retrieve the next set of invoices.

Implementation

Future<InvoiceResponse> listInvoices({
  required String locationId,
  String? cursor,
  int limit = 200,
  String? authToken,
}) async {
  return _invoiceService.listInvoices(locationId: locationId, cursor: cursor, authToken: authToken);
}