Add rate plans, room stay rates, and payments ledger
All checks were successful
build-and-deploy / build-deploy (push) Successful in 34s
All checks were successful
build-and-deploy / build-deploy (push) Successful in 34s
This commit is contained in:
@@ -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
|
||||
)
|
||||
Reference in New Issue
Block a user