move fields
This commit is contained in:
@@ -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"`
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user