Skip to content

Commit

Permalink
Merge pull request #84 from ministryofjustice/pfs-122-sirius-payments…
Browse files Browse the repository at this point in the history
…-events

pfs-122: Adds Supervision domain, services, and event
  • Loading branch information
denialanderror authored Sep 19, 2024
2 parents 50712e7 + 5c5afb4 commit e4ca92e
Show file tree
Hide file tree
Showing 8 changed files with 99 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"clientId": 1
}
30 changes: 30 additions & 0 deletions domains/Supervision/events/debt-position-changed/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: debt-position-changed
version: 0.0.1
summary: |
The debt position for a client has changed
producers:
- opg.supervision.sirius
consumers:
- opg.supervision.finance
owners:
- supervision
---

## Context

Events on a Supervision client in Sirius can cause the money owed to change and invoices be created. Automated processes in the Supervision Finance service need to be made aware of these changes to the debt position.

## Trigger

An invoice is created in Sirius.

## Effect

Supervision Finance attempts to reapply any excess credit on account for the client whose debt position changed.

<NodeGraph title="Consumer / Producer Diagram" />

<EventExamples />

<Schema />
13 changes: 13 additions & 0 deletions domains/Supervision/events/debt-position-changed/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$id": "https://opg.service.justice.gov.uk/opg.supervision.sirius/debt-position-changed.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "opg.supervision.sirius/debt-position-changed",
"type": "object",
"properties": {
"clientId": {
"type": "integer",
"description": "The client ID whose debt position changed"
}
},
"required": ["clientId"]
}
11 changes: 11 additions & 0 deletions domains/Supervision/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: Supervision
summary: |
Supervision domain
owners:
- supervision
---

An introduction to Supervision

<NodeGraph title="Domain Graph" />
6 changes: 6 additions & 0 deletions eventcatalog.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,11 @@ module.exports = {
avatarUrl: `${publicPath}make-register.svg`,
role: 'Team',
},
{
id: 'supervision',
name: 'Supervision',
avatarUrl: `${publicPath}supervision.svg`,
role: 'Team',
},
],
}
8 changes: 8 additions & 0 deletions public/supervision.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions services/opg.supervision.finance/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: opg.supervision.finance
summary: |
OPG's financial case management system for Supervision Orders
owners:
- supervision
repository:
language: Go
url: https://github.com/ministryofjustice/opg-sirius-supervision-finance-hub
---

> The Supervision Finance system is the financial case management system for invoices and payments relating to supervision orders. It is responsible for giving case managers and the cash control team a client-level view of invoices and payments received, as well as recording payment transactions, fee reductions and invoice adjustments.
<NodeGraph />
14 changes: 14 additions & 0 deletions services/opg.supervision.sirius/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: opg.supervision.sirius
summary: |
OPG's case management system for Supervision Orders
owners:
- supervision
repository:
language: PHP
url: https://github.com/ministryofjustice/opg-sirius
---

> The Sirius system is the core case management system for the Office of the Public Guardian. It is used by just over 1000 casework and customer service staff to administer Lasting Powers of Attorney and Supervision orders under the Mental Capacity Act of 2005. Sirius replaces two legacy case management systems, MERIS (LPA) and CASREC (Supervision). The input to SIRIUS is from scanned paper LPA and Supervision order applications and correspondence.
<NodeGraph />

0 comments on commit e4ca92e

Please sign in to comment.