forked from ebhomengo/niki
21 lines
610 B
Go
21 lines
610 B
Go
package order
|
|
|
|
import (
|
|
"git.gocasts.ir/ebhomengo/niki/domain/order/entity"
|
|
"git.gocasts.ir/ebhomengo/niki/types"
|
|
)
|
|
|
|
type CreateOrderRequest struct {
|
|
UserID types.ID `json:"user_id"`
|
|
AddressID types.ID `json:"address_id"`
|
|
ShippingID types.ID `json:"shipping_id"`
|
|
PaymentMethod entity.PaymentMethod `json:"payment_method"`
|
|
TotalAmount types.Price `json:"total_amount"`
|
|
TotalDiscount types.Price `json:"total_discount"`
|
|
OrderItems []entity.OrderItem `json:"order_items"`
|
|
}
|
|
|
|
type CreateOrderResponse struct {
|
|
OrderID types.ID
|
|
}
|