lpa-updated
Summary
The LPA’s details have changed
WarningWhen this is sent to the Sirius development event bus, it is also sent to all ephemeral Sirius environments. This is because the dev and ephemeral environments all use the dev LPA Store to avoid complex duplication.
Context
The LPA has been signed and submitted.
Trigger
Any changes to the contents of the LPA. This includes changing original information (like the donor moving house) or the addition of new information (like an attorney signing the LPA).
Effect
Both Sirius and MRLPA make decisions of their effect based on what data is now in the store.
For Sirius this includes calculating progress indicators and detecting anomalies.
For MRLPA this includes updating the task list.
Examples
{
"uid": "M-1234-5678-9012",
"changeType": "CREATE"
}
{
"uid": "M-1234-5678-9012",
"changeType": "CERTIFICATE_PROVIDER_SIGN"
}
Schema
{
"$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",
"enum": ["CREATE", "CERTIFICATE_PROVIDER_SIGN", "ATTORNEY_SIGN", "TRUST_CORPORATION_SIGN"]
}
},
"allOf": [
{
"if": {
"properties": {
"changeType": { "const": "CERTIFICATE_PROVIDER_SIGN" }
}
},
"then": {
"properties": {
"changeType": { "const": "CERTIFICATE_PROVIDER_SIGN" }
},
"required": ["uid", "changeType"]
}
},
{
"if": {
"properties": {
"changeType": { "const": "ATTORNEY_SIGN" }
}
},
"then": {
"properties": {
"changeType": { "const": "ATTORNEY_SIGN" }
},
"required": ["uid", "changeType"]
}
},
{
"if": {
"properties": {
"changeType": { "const": "TRUST_CORPORATION_SIGN" }
}
},
"then": {
"properties": {
"changeType": { "const": "TRUST_CORPORATION_SIGN" }
},
"required": ["uid", "changeType"]
}
},
{
"if": {
"properties": {
"changeType": { "const": "CREATE" }
}
},
"then": {
"properties": {
"changeType": { "const": "CREATE" }
},
"required": ["uid", "changeType"]
}
}
]
}