com.ibm.commerce.edp.commands

Interface CancelOrderCmd

  • All Superinterfaces:
    AEDPTaskCmd, com.ibm.websphere.command.CacheableCommand, com.ibm.commerce.command.CacheableECCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, ECCommand, java.io.Serializable, com.ibm.websphere.command.TargetableCommand, TaskCommand
    All Known Implementing Classes:
    CancelOrderCmdImpl, CancelOrderVoidCmdImpl


    public interface CancelOrderCmd
    extends AEDPTaskCmd
    This task command is used to reverse all approved atomic payments,cancel the active payment instructions and EDP order.

    This command is called when the customer wants to cancel an order.

    The only possible payment action is ReverseApproval. Payment actions for this event are not configurable.

    For example, a customer chooses to cancel an order. The system verifies that the order has not been released to fulfillment. The system does a reverse approval of the payment, order items are deallocated, and the order is marked as canceled.

    If a deposit has already happened, the order cancellation will fail unless the cancellation is forced. Forcing the cancellation will cancel the order even if deposits have already happened. When a cancellation is forced and deposits have already taken place, a tickler is created to notify a Customer Support Representative that an amount needs to be refunded to the customer.

    If a payment action with the payment back-end system fails, a tickler is created to notify a Customer Service Representative.

    The default implementation of this command is CancelOrderCmdImpl
    See Also:
    CancelOrderCmdImpl
    • Field Detail

      • COPYRIGHT

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

        static final java.lang.String defaultCommandClassName
        The default implementation of this command.
        See Also:
        Constant Field Values
      • NAME

        static final java.lang.String NAME
        The full name of this command.
        See Also:
        Constant Field Values
    • Method Detail

      • setForcedCancel

        void setForcedCancel(java.lang.Boolean flag)
        This method sets the forced flag indicating if the request will be forced or not. It is up to the caller to set the forceFlag whether they want to do the a forced cancel request or not.
        Parameters:
        flag - A Boolean that indicates if the request is forced or not.