getBookingPayment function
Future<ApiResponse<BookingPaymentView> >
getBookingPayment(
- ExsitedClient client,
- Object bookingId,
- Object paymentId, {
- bool? raiseOnError,
- 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);