diff --git a/cmd/cart/product-fetcher.go b/cmd/cart/product-fetcher.go index dc72d81..cdf273f 100644 --- a/cmd/cart/product-fetcher.go +++ b/cmd/cart/product-fetcher.go @@ -90,7 +90,7 @@ func GetItemAddMessage(sku string, qty int, country string, storeId *string) (*m Category3: category3, Category4: category4, Category5: category5, - Tax: 2500, + Tax: getTax(articleType), SellerId: sellerId, SellerName: sellerName, ArticleType: articleType, @@ -100,3 +100,12 @@ func GetItemAddMessage(sku string, qty int, country string, storeId *string) (*m StoreId: storeId, }, nil } + +func getTax(articleType string) int32 { + switch articleType { + case "ZDIE": + return 600 + default: + return 2500 + } +}