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,
|
Category3: category3,
|
||||||
Category4: category4,
|
Category4: category4,
|
||||||
Category5: category5,
|
Category5: category5,
|
||||||
Tax: 2500,
|
Tax: getTax(articleType),
|
||||||
SellerId: sellerId,
|
SellerId: sellerId,
|
||||||
SellerName: sellerName,
|
SellerName: sellerName,
|
||||||
ArticleType: articleType,
|
ArticleType: articleType,
|
||||||
@@ -100,3 +100,12 @@ func GetItemAddMessage(sku string, qty int, country string, storeId *string) (*m
|
|||||||
StoreId: storeId,
|
StoreId: storeId,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func getTax(articleType string) int32 {
|
||||||
|
switch articleType {
|
||||||
|
case "ZDIE":
|
||||||
|
return 600
|
||||||
|
default:
|
||||||
|
return 2500
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user