Class DoCancelCmdImpl

  • All Implemented Interfaces:, ECCommand, ECTargetableCommand, TaskCommand, DoCancelCmd,,,,,,

    Replaced by CancelOrderCmdImpl

    public class DoCancelCmdImpl
    extends TaskCommandImpl
    implements DoCancelCmd
    Default DoCancel task command implementation is called by the AdminOrderCancel Controller command to cancel the payment for an order.


    Parameter Name Type Descriptions
    orderId Order ID ID of the order whose payment is to be canceled
    sPurge String Flag to indicate cleanup of the ORDPAYMTHD record is required.


    • Calls the DoCancelPolicy command for the Payment Policy used for the Purchase. (The ID of the Payment Policy is stored in the ORDPAYMTHD Table).
    • If sPurge is equal to PaymentConstants.ORDER_PURGE (1) perform the following:
      • remove entry in LPOPURAMT table, if exists
      • remove all entry in ORDPAYMTHD table
      • remove entry in TRDPURAMT table, if exists

    Error View Name:

    • DoDepositErrorView


    • (Include error codes from the other subordinate commands)

    This command uses the following AccessBeans:

    • BuyerPurchaseOrderAccessBean
    • OrderAccessBean
    • OrderPaymentMethodAccessBean
    • POPurchaseAmountAccessBean
    • TradingPurchaseAmountAccessBean

    This command calls the following BusinessPolicyCommands:

    See Also:
    Serialized Form
    • Constructor Detail

      • DoCancelCmdImpl

        public DoCancelCmdImpl()
    • Method Detail

      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        This method is called by the Command Framework to check if all basic mandatory parameters have been set for this command. This is done before the Framework calls the performExecute method of the command.
        Specified by:
        isReadyToCallExecute in interface
        isReadyToCallExecute in class AbstractECTargetableCommand
        true if we can execute the command; false otherwise.
      • reset

        public void reset()
        Resets the instance variables of the command. The reset() method will reset all instance variables. If the command includes any output values that are accessible via getters, then make sure those values are no longer needed before calling this method to reset the instance variables of the command.

        This is useful if the command instance is to be called multiple times with different command parameters.

        Specified by:
        reset in interface
        reset in class AbstractECTargetableCommand
      • setOrderId

        public void setOrderId(java.lang.Long orderId)
        Sets the orderId property of the command.
        Specified by:
        setOrderId in interface DoCancelCmd
        orderId - the ID of the Order whose payment is to be canceled
      • setPurge

        public void setPurge(java.lang.String sPurge)
        Sets the purge property of the command.
        Specified by:
        setPurge in interface DoCancelCmd
        sPurge - set to "1" to remove the ORDPAYMTHD record of the canceled order; otherwise, the ORDPAYMTHD record for the order is left intact.