com.ibm.commerce.payment.event

Class PrimePaymentEventData



  • public class PrimePaymentEventData
    extends PaymentEventData
    PrimePaymentEventData is used in Event infrastructure when prime payment event occurs. This class represents the prime payment specific attributes in payment rules event data.
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • PrimePaymentEventData

        public PrimePaymentEventData()
    • Method Detail

      • composeEventEDE

        public org.eclipse.hyades.logging.events.cbe.ExtendedDataElement composeEventEDE()
        This method composes the prime payment involved attributes to ExtendedDataElement which is for the data format Event using. Before the corresponding task command raises the prime payment event. It firstly calls this method to compose the data to the data format event infrastructure needs.
        Overrides:
        composeEventEDE in class PaymentEventData
        Returns:
        ExtendedDataElement The composed ExtendedDataElement
      • decomposeEventEDE

        public void decomposeEventEDE(org.eclipse.hyades.logging.events.cbe.ExtendedDataElement ede)
                               throws ECException
        This method decomposes the ExtendedDataElement to the prime payment involved attributes. When event listener processes the listened event, it firstly calls this method to decompose the prime payment event data and set corresponding prime payment attributes.
        Overrides:
        decomposeEventEDE in class PaymentEventData
        Parameters:
        ede - The current ExtendedDataElement
        Throws:
        ECException - In case of any failure
      • getInitialAmount

        public java.math.BigDecimal getInitialAmount()
        This method gets the initial amount of current prime payment business event. In prime payment, the original initial amount of current edp order must be zero; otherwise trigger payment will be called.
        Returns:
        BigDecimal The initial amount
      • setInitialAmount

        public void setInitialAmount(java.math.BigDecimal decimal)
        This method sets the initial amount of current prime payment business event. In prime payment, the original initial amount of current edp order must be zero; otherwise trigger payment will be called.
        Parameters:
        decimal - The initial amount
      • getEDEPaymentSensitiveInfo

        public org.eclipse.hyades.logging.events.cbe.ExtendedDataElement getEDEPaymentSensitiveInfo(java.util.Map mapOfSensitiveInfo)
        This method gets the ExtendedDataElement that corresponds to the Map . This Map contains the sensitive payment information.
        Parameters:
        mapOfSensitiveInfo - All of the sensitive information stored in a Map
        Returns:
        ExtendedDataElement
      • getPaymentSensitiveInfo

        public java.util.Map getPaymentSensitiveInfo(org.eclipse.hyades.logging.events.cbe.ExtendedDataElement ede)
        This method gets the Map from ExtendedDataElement.
        Parameters:
        ede - The current ExtendedDataElement
        Returns:
        Map The returned Map from current ExtendedDataElement
      • toString

        public java.lang.String toString()
        This method converts the attributes of this class to a human-readable format.
        Overrides:
        toString in class PaymentEventData
        Returns:
        String
      • getPaymentSensitiveInfo

        public java.util.Map getPaymentSensitiveInfo()
        This method gets the payment sensitive information.
        Returns:
        the payment sensitive information
      • setPaymentSensitiveInfo

        public void setPaymentSensitiveInfo(java.util.Map localMapOfPaymentSensitiveInfo)
        This method sets the payment sensitive information.
        Parameters:
        localMapOfPaymentSensitiveInfo - the payment sensitive information