
package org.fineract.module.stellar.listener;

import org.fineract.module.stellar.persistencedomain.PaymentPersistency;
import org.springframework.context.ApplicationEvent;

public class FineractPaymentEvent extends ApplicationEvent{

  private final Long eventId;

  private final PaymentPersistency payment;

  public FineractPaymentEvent(
      final Object source,
      final Long eventId,
      final PaymentPersistency payment) {
    super(source);

    this.eventId = eventId;
    this.payment = payment;
  }

  public Long getEventId() {
    return eventId;
  }

  public PaymentPersistency getPayload() {
    return payment;
  }
}
