com.ibm.commerce.payment.extern

Class AuthorizeAccountPaymentCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, AuthorizeAccountPaymentCmd, 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 AuthorizeAccountPaymentCmdImpl
    extends TaskCommandImpl
    implements AuthorizeAccountPaymentCmd
    This AuthorizeAccountPaymentCmdImpl Task Command implementation class is called to authorize 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

      • AuthorizeAccountPaymentCmdImpl

        public AuthorizeAccountPaymentCmdImpl()
    • Method Detail

      • 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
      • setBuyerPONumber

        public void setBuyerPONumber(java.lang.String sBPONumber)
        Sets the buyerPONumber property of the command.

        If no purchase order number is specified, this method should not be called.

        Specified by:
        setBuyerPONumber in interface AuthorizeAccountPaymentCmd
        Parameters:
        sBPONumber - the buyer purchase order number specified by the customer for the purchase
      • setBuyerPOId

        public void setBuyerPOId(java.lang.Long n)
        Deprecated. replaced by setBuyerPONumber(String)
        Sets the buyerPO ID. This is the internal ID of the BuyerPO record associated with the purchase order number specified by the buyer. If no purchase order number is specified, this method should not be called.
        Specified by:
        setBuyerPOId in interface AuthorizeAccountPaymentCmd
        Parameters:
        n - the buyerPO ID
      • setTotalAmount

        public void setTotalAmount(java.math.BigDecimal totalAmount)
        Sets the totalAmount property of the command. This amount is in the currency of the order.
        Specified by:
        setTotalAmount in interface AuthorizeAccountPaymentCmd
        Parameters:
        totalAmount - the total amount to be authorized.