diff --git a/pkg/cart/cart-grain.go b/pkg/cart/cart-grain.go index 90a66ca..c9f9314 100644 --- a/pkg/cart/cart-grain.go +++ b/pkg/cart/cart-grain.go @@ -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"` diff --git a/pkg/cart/mutation_add_item.go b/pkg/cart/mutation_add_item.go index 19b0af2..bcae4ae 100644 --- a/pkg/cart/mutation_add_item.go +++ b/pkg/cart/mutation_add_item.go @@ -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,