public class ApplyShippingCmdImpl extends CalculationCmdImpl implements ApplyShippingCmd
This is the default implementation of ApplyShippingCmd.
Its behavior is as follows:
Commands used:
Access beans used:Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The IBM copyright notice field.
|
Constructor and Description |
---|
ApplyShippingCmdImpl()
Constructor for ApplyShippingCmdImpl.
|
Modifier and Type | Method and Description |
---|---|
protected void | applyServiceDiscount(ServiceDiscount aServiceDiscount)
Deprecated.
blaze rule discount was not supported now, please use promotion engine discount instead. for more information, refer to ShippingAdjustmentCalculationCodeCombineCmdImpl, PromotionEngineDiscountCalculationCodeCombineCmdImpl, DiscountCalculationCodeApplyCmdImpl
|
protected void | applyServiceDiscounts()
Deprecated.
blaze rule discount was not supported now, please use promotion engine discount instead. for more information, refer to ShippingAdjustmentCalculationCodeCombineCmdImpl, PromotionEngineDiscountCalculationCodeCombineCmdImpl, DiscountCalculationCodeApplyCmdImpl
|
protected void | callApplyCalculationUsage(java.lang.Long anPolicyId, Item[] aItems)
This method invokes the business policy command implementation referenced by a business policy of type "ShippingCharge".
|
void | checkAppliedItems()
Checks if a value has been calculated and applied to each and every item.
|
java.util.Set | getAppliedItems()
This method returns the items that have been applied to.
|
protected java.lang.Long | getPolicyId(java.lang.Long anTradingId)
Determines the business policy of type "ShippingCharge" associated with a contract.
|
void | performExecute()
Executes the business logic of this command implementation.
|
void | reset()
This method resets the variables of the command.
|
void | setItems(Item[] aItems)
This method sets the items.
|
void | setTaxCategoryIds(java.lang.Integer[] anTaxCategoryIds)
This method sets the tax categories that should be active during execution.
|
public static final java.lang.String COPYRIGHT
public ApplyShippingCmdImpl()
protected void callApplyCalculationUsage(java.lang.Long anPolicyId, Item[] aItems) throws ECException
public void checkAppliedItems() throws ECException
public java.util.Set getAppliedItems()
protected java.lang.Long getPolicyId(java.lang.Long anTradingId) throws ECException
public void performExecute() throws ECException
public void reset()
public void setItems(Item[] aItems)
public void setTaxCategoryIds(java.lang.Integer[] anTaxCategoryIds)
protected void applyServiceDiscount(ServiceDiscount aServiceDiscount) throws ECException
protected void applyServiceDiscounts() throws ECException