getBookingInvoices function

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

GET /api/{api_version}/booking/{booking_id}/invoices

List a booking's invoices.

Implementation

Future<ApiResponse<BookingInvoiceList>> getBookingInvoices(
  ExsitedClient client,
  Object bookingId, {
  Map<String, Object?>? queryParams,
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendGetRequest(BookingsUrls.bookingInvoices,
        pathParams: {'booking_id': bookingId},
        queryParams: queryParams,
        raiseOnError: raiseOnError,
        responseFormat: responseFormat,
        dtoDecoder: BookingInvoiceList.fromMap);