OrderItem

data class OrderItem(val productId: String, val unitPrice: BigDecimal, val quantity: Int)

A line of an order: quantity units of productId at unitPrice each.

Constructors

Link copied to clipboard
constructor(productId: String, unitPrice: BigDecimal, quantity: Int)

Properties

Link copied to clipboard
Link copied to clipboard
@Positive
val quantity: Int
Link copied to clipboard
@PositiveOrZero
val unitPrice: BigDecimal