com.ibm.commerce.isv.kit.tax

Class ApplyOrderTaxesTIKCmdImpl

  • 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


    public class ApplyOrderTaxesTIKCmdImpl
    extends TaskCommandImpl
    implements com.ibm.commerce.order.utils.ApplyCalculationUsagesCmd, ApplyOrderTaxesCmd
    The ApplyOrderTaxesTIKCmd Task Command 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 the TaxOrderCmd and TaxOrderItemCmd interfaces to calculate the different tax amounts for each of the OrderItems.

    If the command is successful, it will 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
        The IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ApplyOrderTaxesTIKCmdImpl

        public ApplyOrderTaxesTIKCmdImpl()
    • Method Detail

      • setOrderCurrency

        public void setOrderCurrency(java.lang.String orderCurrency)
        Specified by:
        setOrderCurrency in interface com.ibm.commerce.order.utils.ApplyCalculationUsagesCmd
      • setOrderItems

        public void setOrderItems(java.util.Enumeration orderItems)
                           throws ECSystemException
        Specified by:
        setOrderItems in interface com.ibm.commerce.order.utils.ApplyCalculationUsagesCmd
        Throws:
        ECSystemException
      • setTaxCategoryIds

        public void setTaxCategoryIds(java.lang.Integer[] taxCategoryIds)
        Specified by:
        setTaxCategoryIds in interface com.ibm.commerce.order.utils.ApplyCalculationUsagesCmd