P
- as productU
- as userpublic class DefaultShippingStrategy<P extends Product,U extends User> extends AbstractChargeStrategy<P,U>
taxStrategy
productService, scanHierarchy
Constructor and Description |
---|
DefaultShippingStrategy() |
Modifier and Type | Method and Description |
---|---|
<CONTEXT> Amount |
calculate(P product,
Number quantity,
U user,
String currency,
List<PromotionForUser> promotions,
CONTEXT context)
Return
Product.getShippingData() as a Number |
applyTax, calculate, getTaxStrategy, getVersion, setTaxStrategy
getProductService, getRepresentativeProduct, isScanHierarchy, setProductService, setScanHierarchy
public <CONTEXT> Amount calculate(P product, Number quantity, U user, String currency, List<PromotionForUser> promotions, CONTEXT context)
Product.getShippingData()
as a Numberproduct
- as Pquantity
- as Numberuser
- as U @NUllable truecurrency
- as String @nullable true. A null implies default currencyCopyright © 2018. All rights reserved.