com.ibm.commerce.payment.extern

Class CheckAccountPaymentCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, CheckAccountPaymentCmd, 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


    public class CheckAccountPaymentCmdImpl
    extends TaskCommandImpl
    implements CheckAccountPaymentCmd
    This CheckAccountPaymentCmdImpl Task Command implementation class is called to check the payment against the customer account through an external accounting system.

    This implementation class is empty. It is intended for third-parties to extend and write implementation code for integration with an external accounting system.

    See Also:
    Serialized Form
    • Constructor Detail

      • CheckAccountPaymentCmdImpl

        public CheckAccountPaymentCmdImpl()
    • Method Detail

      • getReturnCode

        public java.lang.String getReturnCode()
        Returns the String return code indicating the approval status of the payment for the specified order.

        Possible values for the return code String are:

        • com.ibm.commerce.payment.commands.PaymentConstants.APPROVAL_YES
          String constant for "YES" indicating the approval of the order is still valid.
        • com.ibm.commerce.payment.commands.PaymentConstants.APPROVAL_NO
          String constant for "NO" indicating the approval of the order is invalid and reapproval is not possible.
        • com.ibm.commerce.payment.commands.PaymentConstants.APPROVAL_WORKING
          String constant for "WORKING" indicating the approval of the order is invalid and reapproval is in progress.
        Specified by:
        getReturnCode in interface CheckAccountPaymentCmd
        Returns:
        the String return code indicating the payment approval status. (For this empty implementation class, this method always returns the value PaymentConstants.APPROVAL_YES.)
      • 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 com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
      • setApproveAmount

        public void setApproveAmount(java.math.BigDecimal approveAmount)
        The amount of the order to be checked and reapproved if necessary.
        Specified by:
        setApproveAmount in interface CheckAccountPaymentCmd
        Parameters:
        approveAmount - the amount in the currency of the order
      • setOrder

        public void setOrder(OrderAccessBean ab)
        Sets the order for which payment is to be checked.
        Specified by:
        setOrder in interface CheckAccountPaymentCmd
        Parameters:
        ab - the OrderAccessBean representing the order