com.ibm.commerce.edp.api

Class RefundInstruction

  • java.lang.Object
    • com.ibm.commerce.edp.api.RefundInstruction
  • All Implemented Interfaces:
    java.io.Serializable


    public class RefundInstruction
    extends java.lang.Object
    implements java.io.Serializable
    This class represents the refund instruction.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      RefundInstruction()
      Constructor.
      RefundInstruction(java.math.BigDecimal localAmount, java.lang.String method, java.util.HashMap localProtocolData)
      This method creates an instance of RefundInstruction.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.math.BigDecimal getAmount()
      This method returns the amount to process.
      EDPPaymentInstruction getLinkedPaymentInstruction()
      This method returns the linked EDPPaymentInstruction object.
      java.lang.Long getPolicyId()
      This method returns the policy ID of this refund instruction.
      java.util.HashMap getProtocolData()
      This method returns the protocol data of this refund instruction.
      java.lang.String getRefundMethod()
      This method returns the refund method of this refund instruction.
      void setAmount(java.math.BigDecimal localAmount)
      This method sets the amount to process.
      void setLinkedPaymentInstruction(EDPPaymentInstruction edpPI)
      This method sets the linked EDPPaymentInstruction object.
      void setPolicyId(java.lang.Long long1)
      This method sets the policy ID used by this refund instruction.
      void setProtocolData(java.util.HashMap localProtocolData)
      This method sets the protocol data of this refund instruction.
      void setRefundMethod(java.lang.String method)
      This method sets the refund method of this refund instruction.
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RefundInstruction

        public RefundInstruction()
        Constructor.
      • RefundInstruction

        public RefundInstruction(java.math.BigDecimal localAmount,
                                 java.lang.String method,
                                 java.util.HashMap localProtocolData)
        This method creates an instance of RefundInstruction.
        Parameters:
        localAmount - the refund instruction amount
        method - the refund method
        localProtocolData - the refund protocol data
    • Method Detail

      • setAmount

        public void setAmount(java.math.BigDecimal localAmount)
        This method sets the amount to process.
        Parameters:
        localAmount - The amount to set
      • getAmount

        public java.math.BigDecimal getAmount()
        This method returns the amount to process.
        Returns:
        BigDecimal The amount to process
      • setProtocolData

        public void setProtocolData(java.util.HashMap localProtocolData)
        This method sets the protocol data of this refund instruction.
        Parameters:
        localProtocolData - The protocolData to set
      • getProtocolData

        public java.util.HashMap getProtocolData()
        This method returns the protocol data of this refund instruction.
        Returns:
        protocolData The protocol data of this refund instruction
      • setRefundMethod

        public void setRefundMethod(java.lang.String method)
        This method sets the refund method of this refund instruction.
        Parameters:
        method - The method to set
      • getRefundMethod

        public java.lang.String getRefundMethod()
        This method returns the refund method of this refund instruction.
        Returns:
        The refund method of this refund instruction
      • getPolicyId

        public java.lang.Long getPolicyId()
        This method returns the policy ID of this refund instruction.
        Returns:
        The policy ID of this refund instruction
      • setPolicyId

        public void setPolicyId(java.lang.Long long1)
        This method sets the policy ID used by this refund instruction.
        Parameters:
        long1 - The policy ID used by this refund instruction
      • getLinkedPaymentInstruction

        public EDPPaymentInstruction getLinkedPaymentInstruction()
        This method returns the linked EDPPaymentInstruction object. Only for dependent credit.
        Returns:
        the linked EDPPaymentInstruction object
      • setLinkedPaymentInstruction

        public void setLinkedPaymentInstruction(EDPPaymentInstruction edpPI)
        This method sets the linked EDPPaymentInstruction object. Only for dependent credit.
        Parameters:
        edpPI - the linked EDPPaymentInstruction object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        Returns:
        String
        See Also:
        Object.toString()