Package-level declarations

Types

Link copied to clipboard
data class AddressChanged(val shippingAddress: ShippingAddress)
Link copied to clipboard
@Summary(value = "修改收货地址")
@CommandRoute(prefix = "customer/{customerId}", path = "address", method = CommandRoute.Method.PUT, appendIdPath = CommandRoute.AppendPath.ALWAYS)
data class ChangeAddress(val id: String, val shippingAddress: ShippingAddress)

ChangeAddress .

Link copied to clipboard
@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 .

Link copied to clipboard
interface CreateOrderItem
Link copied to clipboard
data class OrderCreated(val orderId: String, val customerId: String, val items: List<OrderItem>, val address: ShippingAddress, val fromCart: Boolean)
Link copied to clipboard
data class OrderItem(val id: String, val productId: String, val price: BigDecimal, val quantity: Int) : Identifier, CreateOrderItem

订单项为实体对象 .

Link copied to clipboard
data class OrderOverPaid(val paymentId: String, val overPay: BigDecimal)
Link copied to clipboard
data class OrderPackage(val id: String)

OrderPackage .

Link copied to clipboard
data class OrderPaid(val amount: BigDecimal, val paid: Boolean)
Link copied to clipboard
data class OrderPayDuplicated(val paymentId: String, val errorMsg: String) : ErrorInfo
Link copied to clipboard
data class OrderProduct(val id: String, val price: BigDecimal)

ProductId .

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class PayOrder(val id: String, val paymentId: String, val amount: BigDecimal)

PayOrder .

Link copied to clipboard
@Summary(value = "收货")
@CommandRoute(prefix = "customer/{customerId}", path = "package", appendIdPath = CommandRoute.AppendPath.ALWAYS, method = CommandRoute.Method.PATCH)
data class ReceiptOrder(val id: String, val customerId: String)

ReceiptOrder .

Link copied to clipboard
@Summary(value = "发货")
@CommandRoute(path = "package", appendIdPath = CommandRoute.AppendPath.ALWAYS, method = CommandRoute.Method.POST)
data class ShipOrder(val id: String)

ShipOrder .

Link copied to clipboard
data class ShippingAddress(val country: String, val province: String, val city: String, val district: String, val detail: String)

OrderAddress .