getInvoicePdf function

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

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

Implementation

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