Search for Events
You can find a single Event
by using its UID.
Event event = gateway.event().find("event_uid");
// Event object contains the actual objects, i.e.:
event.getCustomer();
event.getTransaction();
event.getCreditCard();
event.getAddress();
Event
object is returned on success, and within it the payload object for which the event was originally triggered.
Find all triggered Events for any object
EventSearchRequest search = new EventSearchRequest()
.objectUid().is("object_uid")
.eventType().startsWith("transaction.")
.created().between(dateFrom, dateTo);
EventCollection collection = gateway.event().search(search);