Documentation
¶
Overview ¶
Package types stores common types shared between services.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Order ¶
type Order struct {
weaver.AutoMarshal
OrderID string
ShippingTrackingID string
ShippingCost money.T
ShippingAddress shippingservice.Address
Items []OrderItem
}
Order represents a user order.
func (*Order) WeaverMarshal ¶
func (*Order) WeaverUnmarshal ¶
type OrderItem ¶
type OrderItem struct {
weaver.AutoMarshal
Item cartservice.CartItem
Cost money.T
}
func (*OrderItem) WeaverMarshal ¶
func (*OrderItem) WeaverUnmarshal ¶
Click to show internal directories.
Click to hide internal directories.