getBookingPayment function

Future<ApiResponse<BookingPaymentView>> getBookingPayment(
  1. ExsitedClient client,
  2. Object bookingId,
  3. Object paymentId, {
  4. bool? raiseOnError,
  5. String? responseFormat,
})

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

One payment; the server does not check that the payment belongs to the booking.

Implementation

Future<ApiResponse<BookingPaymentView>> getBookingPayment(
  ExsitedClient client,
  Object bookingId,
  Object paymentId, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendGetRequest(BookingsUrls.bookingPayment,
        pathParams: {'booking_id': bookingId, 'payment_id': paymentId},
        raiseOnError: raiseOnError,
        responseFormat: responseFormat,
        dtoDecoder: BookingPaymentView.fromMap);