getInvoiceCustomObjects function

Future<ApiResponse<Object?>> getInvoiceCustomObjects(
  1. ExsitedClient client,
  2. Object invoiceId, {
  3. Map<String, Object?>? queryParams,
  4. bool? raiseOnError,
  5. String? responseFormat,
})

GET /api/{api_version}/invoices/{invoice_id}/custom_objects

The custom objects defined for invoices; a paged listing, under data.

No typed view. Read response.map.

Implementation

Future<ApiResponse<Object?>> getInvoiceCustomObjects(
  ExsitedClient client,
  Object invoiceId, {
  Map<String, Object?>? queryParams,
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendGetRequest(InvoicesUrls.invoiceCustomObjects,
        pathParams: {'invoice_id': invoiceId},
        queryParams: queryParams,
        raiseOnError: raiseOnError,
        responseFormat: responseFormat);