feature/pubsub #7
@@ -25,11 +25,9 @@ type ItemMeta struct {
|
||||
Category3 string `json:"category3,omitempty"`
|
||||
Category4 string `json:"category4,omitempty"`
|
||||
Category5 string `json:"category5,omitempty"`
|
||||
SellerId string `json:"sellerId,omitempty"`
|
||||
SellerName string `json:"sellerName,omitempty"`
|
||||
Image string `json:"image,omitempty"`
|
||||
Outlet *string `json:"outlet,omitempty"`
|
||||
Cgm string `json:"cgm,omitempty"` // Customer Group Membership
|
||||
}
|
||||
|
||||
type CartItem struct {
|
||||
@@ -39,7 +37,9 @@ type CartItem struct {
|
||||
Sku string `json:"sku"`
|
||||
Price Price `json:"price"`
|
||||
TotalPrice Price `json:"totalPrice"`
|
||||
SellerId string `json:"sellerId,omitempty"`
|
||||
OrgPrice *Price `json:"orgPrice,omitempty"`
|
||||
Cgm string `json:"cgm,omitempty"`
|
||||
Tax int
|
||||
Stock StockStatus `json:"stock"`
|
||||
Quantity int `json:"qty"`
|
||||
|
||||
@@ -74,10 +74,10 @@ func AddItem(g *CartGrain, m *messages.AddItem) error {
|
||||
Category4: m.Category4,
|
||||
Category5: m.Category5,
|
||||
Outlet: m.Outlet,
|
||||
SellerId: m.SellerId,
|
||||
SellerName: m.SellerName,
|
||||
Cgm: m.Cgm,
|
||||
},
|
||||
SellerId: m.SellerId,
|
||||
Cgm: m.Cgm,
|
||||
SaleStatus: m.SaleStatus,
|
||||
ParentId: m.ParentId,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user