...
Module | Publish/subscribe | Event type | Payload |
---|---|---|---|
mod-feesfines | publish | FFFEE_FINE_BALANCE_CHANGED | { |
mod-circulation | publish | ITEM_CHECKED_OUT | { |
mod-circulation | publish | ITEM_CHECKED_IN | { |
mod-circulation | publish | ITEM_DECLARED_LOST | { |
mod-circulation | publish | LOAN_DUE_DATE_CHANGED | { |
mod-automatedblocks | subscribe | FFFEE_FINE_BALANCE_CHANGED |
...
Code Block | ||
---|---|---|
| ||
{ "id": string, "userId": string, "outstandingFeeFineBalance": numeric, "numberOfOpenFeesFinesForLostItems": numeric, "numberOfLostItems": numeric, "openLoans": [ { "loanId": string, "dueDate": string, "returnedDate": string, "recall": boolean } ], "openAccounts": [ { "feeFineId": string, "balance": numeric, "feeFineTypeId": string } ] } |
...
Condition | Check against |
---|---|
Maximum outstanding fee/fine balance | .outstandingFeeFineBalance |
Maximum number of items charged out | number of .openLoans objects |
Maximum number of lost items | .numberOfOpenFeesFinesForLostItemsnumberOfLostItems |
Maximum number of overdue items | number of .openLoans[dueDate < returnedDate] |
Maximum number of overdue recalled items | number of .openLoans[dueDate < returnedDate AND recall == true] |
Maximum number of overdue days for recalled item | max of .openLoans[dueDate < returnedDate AND recall == true].(returnedDate - dueDate) |
...