com.ibm.commerce.isv.kit.tax

Class ApplyCalculationUsageTIKBaseCmdImpl

    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
      • BIG_DECIMAL_ZERO

        public static final java.math.BigDecimal BIG_DECIMAL_ZERO
        The big decimal zero field
      • DOUBLE_ZERO

        public static final java.lang.Double DOUBLE_ZERO
        The double zero field
    • Constructor Detail

      • ApplyCalculationUsageTIKBaseCmdImpl

        public ApplyCalculationUsageTIKBaseCmdImpl()
        Constructor for ApplyCalculationUsageTIKBaseCmdImpl
      • ApplyCalculationUsageTIKBaseCmdImpl

        public ApplyCalculationUsageTIKBaseCmdImpl(int ataxType)
        Constructor for ApplyCalculationUsageTIKBaseCmdImpl(int ataxType)
        Parameters:
        ataxType - the taxType.
    • Method Detail

      • reset

        public void reset()
        Resets the command properties. Prepares the command for re-execution.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class ApplyCalculationUsageCmdImpl
        See Also:
        Command.reset()
      • setTransactionType

        public void setTransactionType(char aType)
        This method is used to tell the tax software the type of transaction. The default type is a Sale.

        Parameters:
        aType - representing the type of transaction - valid values are
        • 'B' - Backout a previous sale
        • 'C' - Credit
        • 'P' - Purchase
        • 'R' - Return
        • 'S' - Sale
      • getSellerId

        public java.lang.String getSellerId(Item orderItem)
                                     throws ECSystemException
        This method is used to return the seller id that will be passed to the third party tax providers. This value will be passed to the TaxOrderItem object using the setSellerID() method. Also if an item is not associated with a fulfillment center then this value will be passed as the business name using the setBusinessName() method. The default behavior returns the value from the STOREENT.IDENTIFIER table for the store that the item is purchased from.
        Parameters:
        orderItem - representing the orderItem
        Returns:
        A string that will be passed to third party vendors as the setSellerID
        Throws:
        ECSystemException
      • getTotalRecyclingFee

        public java.math.BigDecimal getTotalRecyclingFee()
        Obtains the total recycling fee for this order. This will be a sum of the order item recycling fees.
        Returns:
        the total recycling fee for this order