com.ibm.commerce.payment.event

Class FinalizePaymentEventData



  • public class FinalizePaymentEventData
    extends PaymentEventData
    FinalizePaymentEventData is used in Event infrastructure when finalize payment event occurs. This class represents the finalize 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

      • FinalizePaymentEventData

        public FinalizePaymentEventData()
    • Method Detail

      • composeEventEDE

        public org.eclipse.hyades.logging.events.cbe.ExtendedDataElement composeEventEDE()
        This method composes the finalize payment involved attributes to ExtendedDataElement which is for the data format Event using. Before the corresponding task command raises the finalize 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 finalize payment involved attributes. When event listener processes the listened event, it firstly calls this method to decompose the finalize payment event data and set corresponding finalize payment attributes.
        Overrides:
        decomposeEventEDE in class PaymentEventData
        Parameters:
        ede - The current ExtendedDataElement
        Throws:
        ECException - In case of any failure
      • getFinalizationAmount

        public java.math.BigDecimal getFinalizationAmount()
        This method gets the finalization amount that is the amount of current finalize payment business event.
        Returns:
        finalizationAmount The finalization amount
      • getReleaseId

        public java.lang.Long getReleaseId()
        This method gets the current release Id that is the release id of current finalize payment business event.
        Returns:
        releaseId The current release id
      • setFinalizationAmount

        public void setFinalizationAmount(java.math.BigDecimal decimal)
        This method sets the finalization amount that is the amount of current finalize payment business event.
        Parameters:
        decimal - The finalization amount
      • setReleaseId

        public void setReleaseId(java.lang.Long long1)
        This method sets the release Id that is the release id of current finalize payment business event.
        Parameters:
        long1 - The current release id
      • 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