move fields
All checks were successful
Build and Publish / BuildAndDeployAmd64 (push) Successful in 44s
Build and Publish / BuildAndDeployArm64 (push) Successful in 4m18s

This commit is contained in:
matst80
2025-11-21 17:08:21 +01:00
parent 886e3ce48f
commit 4dcc6fe1bd
2 changed files with 4 additions and 4 deletions

View File

@@ -25,11 +25,9 @@ type ItemMeta struct {
Category3 string `json:"category3,omitempty"` Category3 string `json:"category3,omitempty"`
Category4 string `json:"category4,omitempty"` Category4 string `json:"category4,omitempty"`
Category5 string `json:"category5,omitempty"` Category5 string `json:"category5,omitempty"`
SellerId string `json:"sellerId,omitempty"`
SellerName string `json:"sellerName,omitempty"` SellerName string `json:"sellerName,omitempty"`
Image string `json:"image,omitempty"` Image string `json:"image,omitempty"`
Outlet *string `json:"outlet,omitempty"` Outlet *string `json:"outlet,omitempty"`
Cgm string `json:"cgm,omitempty"` // Customer Group Membership
} }
type CartItem struct { type CartItem struct {
@@ -39,7 +37,9 @@ type CartItem struct {
Sku string `json:"sku"` Sku string `json:"sku"`
Price Price `json:"price"` Price Price `json:"price"`
TotalPrice Price `json:"totalPrice"` TotalPrice Price `json:"totalPrice"`
SellerId string `json:"sellerId,omitempty"`
OrgPrice *Price `json:"orgPrice,omitempty"` OrgPrice *Price `json:"orgPrice,omitempty"`
Cgm string `json:"cgm,omitempty"`
Tax int Tax int
Stock StockStatus `json:"stock"` Stock StockStatus `json:"stock"`
Quantity int `json:"qty"` Quantity int `json:"qty"`

View File

@@ -74,10 +74,10 @@ func AddItem(g *CartGrain, m *messages.AddItem) error {
Category4: m.Category4, Category4: m.Category4,
Category5: m.Category5, Category5: m.Category5,
Outlet: m.Outlet, Outlet: m.Outlet,
SellerId: m.SellerId,
SellerName: m.SellerName, SellerName: m.SellerName,
Cgm: m.Cgm,
}, },
SellerId: m.SellerId,
Cgm: m.Cgm,
SaleStatus: m.SaleStatus, SaleStatus: m.SaleStatus,
ParentId: m.ParentId, ParentId: m.ParentId,