Class EditVoidCmdImpl

  • All Implemented Interfaces:, ECCommand, ECTargetableCommand, TaskCommand, AEDPPaymentTaskCmd, AEDPTaskCmd, EditCmd,,,,,,

    public class EditVoidCmdImpl
    extends AEDPPaymentTaskCmdImpl
    implements EditCmd

    This task command should be called when payment instructions are modified. This applies to amount changes or payment protocol data changes. This void implementation will do nothing.

    See Also:
    Serialized Form
    • Constructor Detail

      • EditVoidCmdImpl

        public EditVoidCmdImpl()
    • Method Detail

      • getAccount

        public AccountAccessBean getAccount()

        This method returns the AccountAccessBean representing the business account if an account ID is present. null otherwise.

        This method will first check if the local variable iabAccount is set. If not set, it will attempt to retrieve the AccountAccessBean using the specified business account ID.

        The AccountAccessBean if it can be retrieved; null otherwise.
      • setAccountId

        public void setAccountId(java.lang.Long n)

        This method sets the business account ID.

        This is the common account ID if one is specified by the trading agreements used by the order items of the order being processed. If there is no common account ID, this method should not be called at all.

        n - A Long that specifies the Account ID.
      • getAccountId

        public java.lang.Long getAccountId()

        This method returns the business account ID if one is specified by the trading agreements used by the order items of the order being processed.

        If there is no business account associated with any of the trading agreements, null is returned.

        A Long that specifies the account ID if present; null otherwise.
      • setEditResults

        public final void setEditResults(EDPEditResults localEditResults)
        This method sets the edit results.
        Specified by:
        setEditResults in interface EditCmd
        localEditResults - An EDPEditResults that represents the edit results to be set
      • getEditResults

        public final EDPEditResults getEditResults()
        This method obtains the edit results.
        Specified by:
        getEditResults in interface EditCmd
        An EDPEditResults that represents the edit results.
      • getOrderAccessBean

        public OrderAccessBean getOrderAccessBean()

        This method returns the order access bean associated with this command.

        It checks if the local variable is set. If not, it will attempt to get it by creating a new access bean.

        The OrderAccessBean that corresponds to the order associated with this request
      • setOrderAmount

        public void setOrderAmount(java.math.BigDecimal paramOrderAmount)
        This method sets the total order amount.
        Specified by:
        setOrderAmount in interface EditCmd
        paramOrderAmount - A BigDecimal that specifies the total order amount.
      • getOrderAmount

        public java.math.BigDecimal getOrderAmount()
        This method returns the total order amount.
        A BigDecimal that specifies the total order amount; null may be returned.
      • 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
        A boolean that is true if the command is ready to execute and false otherwise.
      • reset

        public void reset()

        This method resets the command fields.

        After this method is invoked, and proper attributes are set, the command can be executed again.

        Specified by:
        reset in interface
        reset in class AEDPPaymentTaskCmdImpl
      • setForcedPaymentInstructionChangeFlag

        public void setForcedPaymentInstructionChangeFlag(boolean forcedChange)
        Void implementation
        Specified by:
        setForcedPaymentInstructionChangeFlag in interface EditCmd
        forcedChange - A boolean that indicates if the if the payment instruction edit operation is forced or not.
      • setPONumber

        public void setPONumber(java.lang.String aPONumber)
        Void implementation
        Specified by:
        setPONumber in interface EditCmd
        aPONumber - A String specifies the purchase order number specified by the buyer.
      • setPaymentInstructions

        public void setPaymentInstructions(java.util.ArrayList pis)
        Void implementation
        Specified by:
        setPaymentInstructions in interface EditCmd
        pis - An ArrayList that represents the pis.
      • systemEditableAddOrderAmount

        public void systemEditableAddOrderAmount(java.lang.Long edpOrderId,
                                                 java.math.BigDecimal addToPIAmount)
                                          throws EDPException,
        Void implementation
        Specified by:
        systemEditableAddOrderAmount in interface EditCmd
        edpOrderId - A Long that specifies the edpOrderId.
        addToPIAmount - A Long that specifies the amount that will be added to the pi.