getBookingPaymentMethods function

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

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

The payment methods bound to a booking; 404 when none is.

Implementation

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