Add room-type quantity reservation APIs
All checks were successful
build-and-deploy / build-deploy (push) Successful in 35s
All checks were successful
build-and-deploy / build-deploy (push) Successful in 35s
This commit is contained in:
@@ -106,12 +106,14 @@ Properties
|
||||
|
||||
Booking flow
|
||||
- POST /properties/{propertyId}/bookings (create booking)
|
||||
- /properties/{propertyId}/bookings/{bookingId}/check-in (creates RoomStay rows)
|
||||
- /properties/{propertyId}/bookings/{bookingId}/check-in/bulk (creates RoomStay rows with per-stay rates)
|
||||
- /properties/{propertyId}/bookings/{bookingId}/check-out (closes RoomStay)
|
||||
- /properties/{propertyId}/bookings/{bookingId}/room-stays/{roomStayId}/check-out (closes specific stay; single-stay booking auto-closes booking)
|
||||
- /properties/{propertyId}/bookings/{bookingId}/cancel
|
||||
- /properties/{propertyId}/bookings/{bookingId}/no-show
|
||||
- /properties/{propertyId}/bookings/{bookingId}/room-stays (pre-assign RoomStay with date range)
|
||||
- /properties/{propertyId}/room-stays/{roomStayId}/change-room (idempotent via RoomStayChange)
|
||||
- /properties/{propertyId}/bookings/{bookingId}/room-requests (room-type quantity reservation)
|
||||
- /properties/{propertyId}/bookings/{bookingId}/room-requests/{requestId} (cancel reservation)
|
||||
- /properties/{propertyId}/room-stays/{roomStayId}/void (soft-void active stay)
|
||||
|
||||
Card issuing
|
||||
- /properties/{propertyId}/room-stays/{roomStayId}/cards/prepare -> returns cardIndex + sector0 payload
|
||||
@@ -200,6 +202,7 @@ Notes / constraints
|
||||
- Checkout supports both booking-level and specific room-stay checkout; specific checkout endpoint: `POST /properties/{propertyId}/bookings/{bookingId}/room-stays/{roomStayId}/check-out`.
|
||||
- Staff can change/void stays only before first payment on booking; manager/admin can act after payments.
|
||||
- Checkout validation: nightly rate must be within +/-20% of room type default rate (when default rate exists), and minimum stay duration must be at least 1 hour.
|
||||
- Room-type reservations: use booking room requests (`booking_room_request`) for quantity holds without room numbers; availability checks include active requests + occupied stays.
|
||||
|
||||
Operational notes
|
||||
- Payment provider migrated: PayU removed; Razorpay now used for settings, QR, payment links, and webhooks.
|
||||
|
||||
Reference in New Issue
Block a user