order

package
v0.0.0-...-2c15619 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2023 License: MIT Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL