feature/pubsub #7

Merged
mats merged 67 commits from feature/pubsub into main 2025-11-28 17:45:22 +01:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 4dcc6fe1bd - Show all commits

View File

@@ -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"`

View File

@@ -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,