lpa-updated
v0.0.1

The LPA's details have changed

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.

Consumer / Producer Diagram

Examples

1{
2  "uid": "M-1234-5678-9012",
3  "changeType": "CREATE"
4}
5
lpa-updated Schema (json)
{
  "$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"]
      }
    }
  ]
}
Edit this pageLast updated on 2024/11/22