...
Module | Publish/subscribe | Event type | Payload |
---|
mod-feesfines | publish | FF_BALANCE_CHANGED | { "feeFineId": string, "userId": string, "balance": numeric, "feeFineTypeId": string }
Example: { "feeFineId": "82d804b9-8a73-4d9d-bf9b-78f751758420", "userId": "4f0e711c-d583-41e0-9555-b62f1725023f", "balance": 15, "feeFineTypeId": "95df458a-5a01-4f9a-99e1-64d5657d8379" } |
mod-circulation | publish | ITEM_CHECKED_OUT | { "userId": string, "loanId": string, "dueDate": string } |
mod-circulation | publish | ITEM_CHECKED_IN | { "userId": string, "loanId": string, "returnDate": string } |
mod-circulation | publish | ITEM_DECLARED_LOST | { "userId": string, "loanId": string } |
mod-circulation | publish | LOAN_DUE_DATE_UPDATEDCHANGED | { "userId": string, "loanId": string, "dueDate": string, "dueDateChangedByRecall": boolean } |
mod-automatedblocks | subscribe | FF_BALANCE_CHANGED ITEM_CHECKED_OUT ITEM_CHECKED_IN ITEM_DECLARED_LOST LOAN_DUE_DATE_UPDATEDCHANGED |
|
DB
Using the info from events mod-automated-blocks is subscribed to, we need to maintain one object per patron in the DB:
...