Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Module

Publish/subscribe

Event type

Payload

mod-feesfines

publish

PATRON_FEE_FINE_BALANCE_CHANGE_EVENT

{
"accountId": string,
  "userId": string,
  "balance": numeric,
"feeFineType": string,
"status": string
}

Example:
{
"accountId": "82d804b9-8a73-4d9d-bf9b-78f751758420",
  "userId": "4f0e711c-d583-41e0-9555-b62f1725023f",
  "balance": 15,
"feeFineType": "95df458a-5a01-4f9a-99e1-64d5657d8379",
"status": "Open"
}
mod-circulationpublish

ITEM_CHECK_OUT_EVENT

{
  "patronId": string,
  "loanId": string,
  "dueDate": string
}
mod-circulationpublishITEM_CHECK_IN_EVENT
{
  "patronId": string,
"loanId": string,
"returnedDate": string
}
mod-circulationpublishITEM_DECLARED_LOST_EVENT
{
  "patronId": string,
"loanId": string
}
mod-circulationpublishLOAN_DUE_DATE_UPDATE_EVENT
{
  "patronId": string,
  "loanId": string,
  "dueDate": string,
"recall": boolean
}
mod-automatedblockssubscribe

PATRON_FEE_FINE_BALANCE_CHANGE_EVENT
ITEM_CHECK_OUT_EVENT
ITEM_CHECK_IN_EVENT
ITEM_DECLARED_LOST_EVENT
LOAN_DUE_DATE_UPDATE_EVENT


...

Code Block
languagetext
{
  "patronId": string,
  "outstandingFeeFineBalance": numeric,
  "numberOfOpenFeesFinesForLostItems": numeric,
  "numberOfLostItems": numeric,
  "openLoans": [
    {
      "loanId": string,
      "dueDate": string,
      "returnedDate": string,
      "recall": boolean
    }
  ],
  "openAccounts": [
    {
      "accountId": string,
      "balance": numeric,
      "feeFineType": string
    }
  ]
}

This object allows to check each of the block conditions for a patron:

...