com.ibm.commerce.order.commands

Class OrderCalculateCmdImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, OrderCalculateCmd, Protectable, 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
    Direct Known Subclasses:
    VATOrderCalculateCmdImpl


    public class OrderCalculateCmdImpl
    extends OrderBaseCmdImpl
    implements OrderCalculateCmd
    This is one of the implementations of the OrderCalculateCmd controller command.

    Input parameters:

    Name Description
    orderId The reference number of the order to be displayed. If this parameter is omitted, this command behaves as if all of the customer's orders with the specified status for the specified store were specified. Abbreviations may be used, but only with pending orders (status is P for standard orders or NEW for advanced orders). This parameter can be repeated.
    calculationUsageId Predefined codes for calculation of discounts (-1), shipping (-2), sales tax (-3), shipping tax, (-4) coupons (-5), surcharge (-6), shipping adjustment (-7). This parameter can be repeated.
    outOrderName Specifies the names of name-value pairs to be passed to a JSP. The value of each added name-value pair is the reference number of the order to be displayed. If the name is not provided, the default name orderId is used. This parameter can be repeated.
    updatePrices the flag to indicate whether the price of order item will be refreshed in this command. if the flag is "1", price will be updated. others will not.
    doPrice Specifies whether the command should perform the price calculation subtasks. Set to either do the price tasks (Y), or not (N). Turning off these tasks might result in better performance, but customers might not get the most current price, or product entitlement, when changes occur.
    doFreeGift Specifies whether the command should perform the free gift handling logic. Set to either do the free gift handling (Y), or not (N). The default value is (Y). Only set it to (N) when free gift processing isn't required for Order recalculation.

    Output parameters:

    Name Description
    istrOutOrderNames the order IDs to be displayed
    outOfInventoryCatalogEntryId the catalog entrys which are intended to add to the order as free gift but has no inventory now.
    nonBuyableCatalogEntryId the catalog entrys which are intended to add to the order as free gift but are non-buyable now.

    Behaviour:

    For each Order specified:
    Returns a list of identifiers of catalog entries, if any, that were not added because of insufficient inventory.

    Task commands called:

    AccessBeans utilized:

    Possible callers:

    See Also:
    Serialized Form