Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrderHistory ¶
type OrderHistory struct { ID primitive.ObjectID `bson:"_id" json:"id"` CustomerID uuid.UUID `bson:"customer_id" json:"customer_id"` Orders []struct { ID uuid.UUID `bson:"id" json:"id"` State string `bson:"state" json:"state"` OrderTotal struct { Amount primitive.Decimal128 `bson:"amount" json:"amount"` } `bson:"order_total" json:"order_total"` } Name string `bson:"name" json:"name"` CreditLimit struct { Amount primitive.Decimal128 `bson:"amount" json:"amount"` } `bson:"credit_limit" json:"credit_limit"` }
type OrderState ¶
type OrderState string
const ( OrderRejected OrderState = "REJECTED" OrderApproved OrderState = "APPROVED" OrderPending OrderState = "PENDING" )
Click to show internal directories.
Click to hide internal directories.