com.ibm.commerce.order.calculation

Interface CalculationConstants

  • All Known Implementing Classes:
    CalculationHelper


    public interface CalculationConstants
    This interface defines various constants used by the Calculation Framework.
    • Field Detail

      • COPYRIGHT

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

        static final java.lang.Integer USAGE_DISCOUNT
        The calculation usage ID of discount.
      • USAGE_SHIPPING

        static final java.lang.Integer USAGE_SHIPPING
        The calculation usage ID of shipping.
      • USAGE_SALES_TAX

        static final java.lang.Integer USAGE_SALES_TAX
        The calculation usage ID of sales tax.
      • USAGE_SHIPPING_TAX

        static final java.lang.Integer USAGE_SHIPPING_TAX
        The calculation usage ID of shipping tax.
      • USAGE_COUPON

        static final java.lang.Integer USAGE_COUPON
        The calculation usage ID of coupon.
      • USAGE_SURCHARGE

        static final java.lang.Integer USAGE_SURCHARGE
        The calculation usage ID of surcharge.
      • USAGE_SHIPPING_ADJUSTMENT

        static final java.lang.Integer USAGE_SHIPPING_ADJUSTMENT
        The calculation usage ID of shipping adjustment.
      • ORDERPREPARE_USAGE

        static final int ORDERPREPARE_USAGE
        The bit flag on STENCALUSG.USAGEFLAGS that should be set to enable a calculation usage.
        See Also:
        Constant Field Values
      • CHECK_APPLIED_ITEMS

        static final int CHECK_APPLIED_ITEMS
        The "check" bit flag on STENCALUSG.USAGEFLAGS.
        See Also:
        Constant Field Values
      • IN_ADDITION_TO

        static final java.lang.Integer IN_ADDITION_TO
        The value of CALRULE.COMBINATION when the calculation rule can be combined with any calculation rule.
      • NOT_IN_COMBINATION_WITH

        static final java.lang.Integer NOT_IN_COMBINATION_WITH
        The value of CALRULE.COMBINATION when the calculation rule can only be combined with calculation rules marked as "inAdditionTo".
      • IN_COMBINATION_WITH

        static final java.lang.Integer IN_COMBINATION_WITH
        The value of CALRULE.COMBINATION when the calculation rule cannot be combined with calculation rules marked as "notInCombinationWith".
      • NOT_PUBLISHED

        static final java.lang.Integer NOT_PUBLISHED
        The value of CALCODE.PUBLISHED when the calculation code is not published.
      • PUBLISHED

        static final java.lang.Integer PUBLISHED
        The value of CALCODE.PUBLISHED when the calculation code is published.
      • MARK_FOR_DELETE

        static final java.lang.Integer MARK_FOR_DELETE
        The value of CALCODE.PUBLISHED when the calculation code is marked for deletion.
      • DIRECT_ATTACHMENT_OVERRIDE

        static final int DIRECT_ATTACHMENT_OVERRIDE
        See Also:
        Constant Field Values
      • GROUP_BY_ORDERITEM

        static final int GROUP_BY_ORDERITEM
        The value of CALCODE.GROUPBY when the calculation code is group by
        orderitem
        .
        See Also:
        Constant Field Values
      • SUBCLASS_SHIPPING

        static final java.lang.Integer SUBCLASS_SHIPPING
      • SUBCLASS_TAX

        static final java.lang.Integer SUBCLASS_TAX
      • NOT_CUMULATIVE

        static final java.lang.Integer NOT_CUMULATIVE
      • CUMULATIVE

        static final java.lang.Integer CUMULATIVE
      • NO_ADJUSTMENT

        static final java.lang.Integer NO_ADJUSTMENT
      • FIXED_ADJUSTMENT

        static final java.lang.Integer FIXED_ADJUSTMENT
      • PERCENTAGE_ADJUSTMENT

        static final java.lang.Integer PERCENTAGE_ADJUSTMENT
      • FIXED_REPLACEMENT

        static final java.lang.Integer FIXED_REPLACEMENT
      • ERRCODE_USAGE_NOT_APPLIED

        static final java.lang.String ERRCODE_USAGE_NOT_APPLIED
        See Also:
        Constant Field Values
      • ERRCODE_SHIPPING_NOT_APPLIED

        static final java.lang.String ERRCODE_SHIPPING_NOT_APPLIED
        See Also:
        Constant Field Values
      • EC_OUT_OF_INVENTORY_CATALOG_ENTRY_ID

        static final java.lang.String EC_OUT_OF_INVENTORY_CATALOG_ENTRY_ID
        See Also:
        Constant Field Values
      • DISPLAYLEVEL_ORDERITEM

        static final java.lang.Integer DISPLAYLEVEL_ORDERITEM
      • DISPLAYLEVEL_ORDER

        static final java.lang.Integer DISPLAYLEVEL_ORDER
      • DISPLAYLEVEL_PRODUCT

        static final java.lang.Integer DISPLAYLEVEL_PRODUCT
      • DISPLAYLEVEL_ITEM

        static final java.lang.Integer DISPLAYLEVEL_ITEM
      • DISPLAYLEVEL_CONTRACT

        static final java.lang.Integer DISPLAYLEVEL_CONTRACT
      • DISPLAYLEVEL_SHIPMODE

        static final java.lang.Integer DISPLAYLEVEL_SHIPMODE
      • CALFLAGS_ATTACHMENT

        static final short CALFLAGS_ATTACHMENT
        The value of
        CALFLAGS
        of CATENCALCD and CATGPCALCD to indicate this is an indirect attachment
        See Also:
        Constant Field Values
      • CALFLAGS_CANCEL_ATTACHMENT_IN_STOREPATH

        static final short CALFLAGS_CANCEL_ATTACHMENT_IN_STOREPATH
        The value of
        CALFLAGS
        of CATENCALCD and CATGPCALCD to indicate this is not an indirect attachment. But a configuration row that cancel other indirect attachment later in
        storepath
        by
        calcode
        and
        catentory
        /category
        See Also:
        Constant Field Values
      • BIG_DECIMAL_ZERO

        static final java.math.BigDecimal BIG_DECIMAL_ZERO
      • BIG_DECIMAL_ONE

        static final java.math.BigDecimal BIG_DECIMAL_ONE
      • NULL

        static final java.lang.Object NULL
      • TAX_CATEGORY_DISPLAY_USAGE_YES

        static final java.lang.Integer TAX_CATEGORY_DISPLAY_USAGE_YES
        The display usage of tax category.