furniture-api/src/main/kotlin/dto/response/OrderResponse.kt
2025-06-11 14:17:33 +03:00

21 lines
663 B
Kotlin

package com.example.dto.response
import com.example.configure.BigDecimalSerializer
import com.example.configure.UuidSerializer
import kotlinx.datetime.LocalDateTime
import kotlinx.serialization.Serializable
import java.math.BigDecimal
import java.util.*
@Serializable
data class OrderResponse(
val id : Long,
@Serializable(with = UuidSerializer::class)
val userUuid : UUID,
val addressId: Long,
val addressResponse: AddressResponse,
val dateTime: LocalDateTime,
val orderStatus : OrderStatusResponse,
@Serializable(with = BigDecimalSerializer::class)
val orderTotalSum : BigDecimal,
var orderSet: List<OrderItemResponse>
)