Skip to content

Commit

Permalink
Merge pull request #27 from ministryofjustice/vega-2332-add-lpa-updat…
Browse files Browse the repository at this point in the history
…ed-event

VEGA-2332 - Add lpastore service and lpa-updated event
  • Loading branch information
townxelliot authored Feb 22, 2024
2 parents acd734e + 8b6e707 commit cf2af47
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 0 deletions.
4 changes: 4 additions & 0 deletions domains/POAS/events/lpa-updated/examples/example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"uid": "M-1234-5678-9012",
"changeType": "CREATED"
}
24 changes: 24 additions & 0 deletions domains/POAS/events/lpa-updated/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: lpa-updated
version: 0.0.1
summary: |
Announces creation of or updates to an LPA
producers:
- opg.poas.lpastore
consumers:
- opg.poas.sirius
owners:
- vega
---

## Details

When an LPA is created or updated, this event is triggered.

Sirius uses the event to update the LPA record and status, providing OPG staff with the latest data to provide application support.

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

<EventExamples />

<Schema />
18 changes: 18 additions & 0 deletions domains/POAS/events/lpa-updated/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"$id": "https://opg.service.justice.gov.uk/opg.poas.lpastore/lpa-updated.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "opg.poas.lpastore/lpa-updated",
"type": "object",
"properties": {
"uid": {
"type": "string",
"description": "The UID of the LPA",
"pattern": "M(-[A-Z0-9]{4}){3}"
},
"changeType": {
"type": "string",
"description": "The type of change to the LPA"
}
},
"required": ["uid", "changeType"]
}
13 changes: 13 additions & 0 deletions services/opg.poas.lpastore/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: opg.poas.lpastore
summary: |
LPA Store
owners:
- vega
repository:
language: Go
url: https://github.com/ministryofjustice/opg-data-lpa-store
---

The LPA Store holds all LPAs created through the modernising lasting power of attorneys process.
<NodeGraph />

0 comments on commit cf2af47

Please sign in to comment.