test other tax
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user