Rename default booking source from WALKIN to DIRECT
All checks were successful
build-and-deploy / build-deploy (push) Successful in 1m8s
All checks were successful
build-and-deploy / build-deploy (push) Successful in 1m8s
This commit is contained in:
@@ -1551,7 +1551,7 @@ BOOKING APIS
|
||||
Request body (BookingCreateRequest):
|
||||
|
||||
{
|
||||
"source": "WALKIN",
|
||||
"source": "DIRECT",
|
||||
"expectedCheckInAt": "2026-02-05T12:00:00+05:30",
|
||||
"expectedCheckOutAt": "2026-02-06T11:00:00+05:30"
|
||||
}
|
||||
|
||||
@@ -145,7 +145,7 @@ class BookingFlow(
|
||||
property = property,
|
||||
primaryGuest = guest,
|
||||
status = BookingStatus.OPEN,
|
||||
source = request.source?.trim().takeIf { !it.isNullOrBlank() } ?: "WALKIN",
|
||||
source = request.source?.trim().takeIf { !it.isNullOrBlank() } ?: "DIRECT",
|
||||
checkinAt = null,
|
||||
expectedCheckinAt = expectedCheckInAt,
|
||||
expectedCheckoutAt = expectedCheckOutAt,
|
||||
|
||||
@@ -32,7 +32,7 @@ class Booking(
|
||||
var status: BookingStatus = BookingStatus.OPEN,
|
||||
|
||||
@Column(nullable = false)
|
||||
var source: String = "WALKIN", // WALKIN, WEBSITE, MMT, AGENT
|
||||
var source: String = "DIRECT", // DIRECT, WEBSITE, MMT, AGENT
|
||||
|
||||
@Column(name = "source_booking_id")
|
||||
var sourceBookingId: String? = null,
|
||||
|
||||
Reference in New Issue
Block a user