Documentation ¶
Index ¶
Constants ¶
View Source
const ( TaxClassStandard = "standard" TaxClassTakeaway = "takeaway" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PublicCart ¶
type PublicCart struct { ID primitive.ObjectID `json:"id"` IsPickup bool `json:"isPickup"` Items []PublicCartItem `json:"items"` Summary PublicCartSummary `json:"summary"` Secret string `json:"secret"` CreatedAt time.Time `bson:"createdAt" json:"createdAt"` UpdatedAt time.Time `bson:"updatedAt" json:"updatedAt"` }
func CalculatePublicCart ¶ added in v2.5.1
type PublicCartItem ¶
type PublicCartItem struct { db.CartItem SKU string `json:"sku"` Name string `json:"name"` Categories []string `json:"categories"` UnitPrice string `json:"unitPrice"` Total string `json:"total"` Tax string `json:"tax"` Net string `json:"net"` Saving string `json:"saving"` TaxClass string `json:"taxClass"` }
type PublicCartSummary ¶
type PublicCartSummary struct { Total TotalSummary `json:"total"` Tax TotalSummary `json:"tax"` Net TotalSummary `json:"net"` Saving string `json:"saving"` }
type TotalSummary ¶ added in v2.6.0
Click to show internal directories.
Click to hide internal directories.