Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateOrderCommand ¶
type CreateOrderCommand struct { OrderNumber string `json:"orderNumber"` Price shared.Money `json:"price"` OrderLines []OrderLine `json:"orderLines"` // contains filtered or unexported fields }
func (*CreateOrderCommand) GetIdentity ¶
func (self *CreateOrderCommand) GetIdentity() *use_case.UseCaseIdentity
type CreateOrderResponse ¶
type CreateOrderResponse struct { Id string `json:"id"` OrderNumber string `json:"orderNumber"` Price shared.Money `json:"price"` OrderLines []OrderLine `json:"orderLines"` }
func NewCreateOrderResponse ¶
func NewCreateOrderResponse(order *orders.Order, orderLines []*orderlines.OrderLine) *CreateOrderResponse
type OrderLine ¶
type OrderLine struct { Id string `json:"id"` Sku string `json:"sku"` Price shared.Money `json:"price"` }
func NewOrderLine ¶
func NewOrderLine(line *orderlines.OrderLine) OrderLine
func NewOrderLines ¶
func NewOrderLines(orderLines []*orderlines.OrderLine) []OrderLine
type RejectOrderPaymentCommand ¶
type RejectOrderPaymentCommand struct { OrderNumber string `json:"orderNumber"` RejectReason string `json:"rejectReason"` // contains filtered or unexported fields }
func (*RejectOrderPaymentCommand) GetIdentity ¶
func (self *RejectOrderPaymentCommand) GetIdentity() *use_case.UseCaseIdentity
Click to show internal directories.
Click to hide internal directories.