com.ibm.commerce.payment.event

Class ReservePaymentEventData



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

      • ReservePaymentEventData

        public ReservePaymentEventData()
    • Method Detail

      • composeEventEDE

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

        public java.util.ArrayList getReleasesToProcess()
        This method gets an ArrayList of the releases to process. In reserve payment, each release in this ArrayList is processed.
        Returns:
        releasesToProcess The releases to process
      • getReservationAmount

        public java.math.BigDecimal getReservationAmount()
        This method gets the current reservation amount in current reserve payment business event.
        Returns:
        reservationAmount The current reservation amount
      • getStillToReserve

        public java.math.BigDecimal getStillToReserve()
        This method gets the amount that still to reserve in current reserve payment business event.
        Returns:
        stillToReserve The amount still to reserve
      • setReleasesToProcess

        public void setReleasesToProcess(java.util.ArrayList list)
        This method sets the releases to process in current reserve payment business event.
        Parameters:
        list - The list of releases to process
      • setReservationAmount

        public void setReservationAmount(java.math.BigDecimal decimal)
        This method sets the reservation amount in current reserve payment business event.
        Parameters:
        decimal - The reservation amount
      • setStillToReserve

        public void setStillToReserve(java.math.BigDecimal decimal)
        This method sets the amount that still to reserve in current reserve payment business event.
        Parameters:
        decimal - The amount still to reserve
      • 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