Marks a booking as fully paid.
The setBookingAsPaid()
function returns a Promise that resolves when the booking is set as fully paid.
When the business has received full payment from the customer, the booking can be marked as fully paid.
When a booking is set as paid, the following events occur:
paymentDetails.state
status changes to "COMPLETE"
.amountReceived
value is updated to the finalPrice.amount
value.You cannot mark a booking as paid if the booking status
is "PENDING_APPROVAL"
.
Note: Only users with Bookings Admin permissions can mark a booking as paid. You can override the permissions by setting the suppressAuth
options to true
.
Booking ID to update as paid.
An object representing the available options for setting a booking as paid.