Add rate plans, room stay rates, and payments ledger
All checks were successful
build-and-deploy / build-deploy (push) Successful in 34s

This commit is contained in:
androidlover5842
2026-01-29 04:56:37 +05:30
parent b6ac87d277
commit 71c70c8554
24 changed files with 902 additions and 4 deletions

View File

@@ -6,6 +6,10 @@ data class BookingCheckInRequest(
val roomIds: List<UUID>,
val checkInAt: String? = null,
val transportMode: String? = null,
val nightlyRate: Long? = null,
val rateSource: String? = null,
val ratePlanCode: String? = null,
val currency: String? = null,
val notes: String? = null
)
@@ -60,6 +64,10 @@ data class RoomStayPreAssignRequest(
val roomId: UUID,
val fromAt: String,
val toAt: String,
val nightlyRate: Long? = null,
val rateSource: String? = null,
val ratePlanCode: String? = null,
val currency: String? = null,
val notes: String? = null
)

View File

@@ -0,0 +1,30 @@
package com.android.trisolarisserver.controller.dto
import java.util.UUID
data class PaymentCreateRequest(
val amount: Long,
val method: String,
val currency: String? = null,
val reference: String? = null,
val notes: String? = null,
val receivedAt: String? = null
)
data class PaymentResponse(
val id: UUID,
val bookingId: UUID,
val amount: Long,
val currency: String,
val method: String,
val reference: String?,
val notes: String?,
val receivedAt: String,
val receivedByUserId: UUID?
)
data class BookingBalanceResponse(
val expectedPay: Long,
val amountCollected: Long,
val pending: Long
)

View File

@@ -0,0 +1,63 @@
package com.android.trisolarisserver.controller.dto
import java.time.LocalDate
import java.util.UUID
data class RatePlanCreateRequest(
val code: String,
val name: String,
val roomTypeCode: String,
val baseRate: Long,
val currency: String? = null
)
data class RatePlanUpdateRequest(
val name: String,
val baseRate: Long,
val currency: String? = null
)
data class RatePlanResponse(
val id: UUID,
val propertyId: UUID,
val roomTypeId: UUID,
val roomTypeCode: String,
val code: String,
val name: String,
val baseRate: Long,
val currency: String
)
data class RateCalendarUpsertRequest(
val rateDate: String,
val rate: Long
)
data class RateCalendarResponse(
val id: UUID,
val ratePlanId: UUID,
val rateDate: LocalDate,
val rate: Long
)
data class RoomStayRateChangeRequest(
val effectiveAt: String,
val nightlyRate: Long,
val rateSource: String,
val ratePlanCode: String? = null,
val currency: String? = null
)
data class RoomStayRateChangeResponse(
val oldRoomStayId: UUID,
val newRoomStayId: UUID,
val effectiveAt: String
)
data class RateResolveResponse(
val roomTypeCode: String,
val rateDate: LocalDate,
val rate: Long,
val currency: String,
val ratePlanCode: String? = null
)

View File

@@ -9,6 +9,7 @@ data class RoomTypeUpsertRequest(
val maxOccupancy: Int? = null,
val sqFeet: Int? = null,
val bathroomSqFeet: Int? = null,
val defaultRate: Long? = null,
val active: Boolean? = null,
val otaAliases: Set<String>? = null,
val amenityIds: Set<UUID>? = null
@@ -23,6 +24,7 @@ data class RoomTypeResponse(
val maxOccupancy: Int,
val sqFeet: Int?,
val bathroomSqFeet: Int?,
val defaultRate: Long?,
val active: Boolean,
val otaAliases: Set<String>,
val amenities: Set<AmenityResponse>