Skip to content

Events

tilttek/exchange

Redemptions, Transfers and Trades tell their Announcer what happened, once, when it happens; an exchange asked again tells nothing. SilentAnnouncer tells no one; the bundle dispatches the events to the application's event dispatcher. Every event implements Event\ExchangeEvent.

EventWhenCarries
RewardReservedThe points of a reservation are spent: deliver nowreservation
ReservationConfirmedThe application confirmed the deliveryreservation
ReservationCancelledThe application cancelled; the points are backreservation
ReservationExpiredThe reservation outlived its lifetime; the points are backreservation
PointsTransferredA member gave points to anothertransfer
OfferMadeA member offered a tradeoffer
OfferAcceptedBoth sides changed handsoffer
OfferDeclinedThe recipient declinedoffer
OfferWithdrawnThe proposer withdrewoffer
OfferCounteredThe recipient answered with their own offeroffer, closed, and counter, open
OfferExpiredThe offer outlived its lifetimeoffer

Delivering a reward is the application's affair: a listener of RewardReserved sends the code, applies the discount or books the seat, then confirms the reservation, or cancels it when it cannot.