CreateOrder

@Summary(value = "下单")
@CommandRoute(prefix = "customer/{customerId}", path = "")
data class CreateOrder(val customerId: String, val items: List<CreateOrder.Item>, val address: ShippingAddress, val fromCart: Boolean) : CommandValidator

CreateOrder .

Author

ahoo wang

Constructors

Link copied to clipboard
constructor(customerId: String, items: List<CreateOrder.Item>, address: ShippingAddress, fromCart: Boolean)

Types

Link copied to clipboard
data class Item(val productId: String, val price: BigDecimal, val quantity: Int) : CreateOrderItem

Properties

Link copied to clipboard
@NotNull
@Valid
val address: ShippingAddress
Link copied to clipboard
@NotBlank
val customerId: String
Link copied to clipboard
Link copied to clipboard
@Size(min = 1)
val items: List<CreateOrder.Item>

Functions

Link copied to clipboard
open override fun validate()