com.ibm.commerce.taxation.commands

Class ApplyOrderTaxesCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, com.ibm.commerce.order.utils.ApplyCalculationUsagesCmd, ApplyOrderTaxesCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable

    Deprecated. 

    public class ApplyOrderTaxesCmdImpl
    extends com.ibm.commerce.order.utils.ApplyCalculationUsagesCmdImpl
    implements ApplyOrderTaxesCmd
    This class is just for backward compatibility now. The ApplyOrderTaxesCmd Task Command default Implementation is called by the OrderPrepareCmd Controller Command to set the different tax amounts (for example
    GST
    ,
    PST
    and so forth) for each OrderItem supplied by
    OrderPrepare
    . It uses
    CalculationCodes
    with calculationUsage of Taxation to calculate the different tax amounts for each of the OrderItems.

    If the command is successful, it will invoke another Task Command to set the tax amounts in ORDERITEMS.

    If unsuccessful, the command throws the ECApplicationException specifying an Error Code of

    ERRCODE_NO_TAX
    and the Error View named CALCODE_ERRVIEW.

    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        Deprecated. 
        See Also:
        Constant Field Values
    • Constructor Detail

      • ApplyOrderTaxesCmdImpl

        public ApplyOrderTaxesCmdImpl()
        Deprecated. 
    • Method Detail

      • init

        public void init()
                  throws ECException
        Deprecated. 
        This method sets up the system for taxation :
        • Tax Types for Calculation Usages.
        • Tax Categories for each of the Tax Types.
        Specified by:
        init in class com.ibm.commerce.order.utils.ApplyCalculationUsagesCmdImpl
        Throws:
        ECException