getBookingPayments function

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

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

List a booking's payments.

Implementation

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