Wow
Toggle table of contents
5.3.8
jvm
Platform filter
jvm
Switch theme
Search in API
Wow
example-api
/
me.ahoo.wow.example.api.order
/
CreateOrder
Create
Order
@
Summary
(
value
=
"下单"
)
@
CommandRoute
(
action
=
""
)
@
CreateAggregate
data
class
CreateOrder
(
val
items
:
List
<
CreateOrder.Item
>
,
val
address
:
ShippingAddress
,
val
fromCart
:
Boolean
)
:
CommandValidator
CreateOrder .
Author
ahoo wang
Members
Constructors
Create
Order
Link copied to clipboard
constructor
(
items
:
List
<
CreateOrder.Item
>
,
address
:
ShippingAddress
,
fromCart
:
Boolean
)
Types
Item
Link copied to clipboard
data
class
Item
(
val
productId
:
String
,
val
price
:
BigDecimal
,
val
quantity
:
Int
)
:
CreateOrderItem
Properties
address
Link copied to clipboard
@
NotNull
@
Valid
val
address
:
ShippingAddress
from
Cart
Link copied to clipboard
val
fromCart
:
Boolean
items
Link copied to clipboard
@
Size
(
min
=
1
)
val
items
:
List
<
CreateOrder.Item
>
Functions
validate
Link copied to clipboard
open
override
fun
validate
(
)