Skip to content

Commit

Permalink
MLPAB 2311 Add identity-check-mismatched event (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
hawx authored Oct 2, 2024
1 parent e4ca92e commit 110d25a
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true

[*.json]
indent_style = space
indent_size = 2
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"uid": "M-0000-1111-2222",
"actorUID": "urn:opg:poas:makeregister:users:740e5834-3a29-46b4-9a6f-16142fde533a",
"provided": {
"firstNames": "John",
"lastName": "Smith",
"dateOfBirth": "2000-01-02"
},
"verified": {
"firstNames": "Jonathan",
"lastName": "Smith",
"dateOfBirth": "2000-01-02"
}
}
31 changes: 31 additions & 0 deletions domains/POAS/events/identity-check-mismatched/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: identity-check-mismatched
version: 0.0.1
summary: |
The identity check returned details that don't match what was entered.
producers:
- opg.poas.makeregister
consumers:
- opg.poas.sirius-proposed
owners:
- vega
- mrlpa
---

## Context

The donor or certificate provider complete an identity check for a signed LPA.

## Trigger

When the identity check returns data that does not match the expected data that was entered.

## Effect

Sirius provides this data to caseworkers so that they can manually check whether the change of data makes a material or immaterial difference.

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

<EventExamples />

<Schema />
48 changes: 48 additions & 0 deletions domains/POAS/events/identity-check-mismatched/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"$id": "https://opg.service.justice.gov.uk/opg.poas.makeregister/identity-check-mismatched.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "opg.poas.makeregister/identity-check-mismatched",
"type": "object",
"properties": {
"uid": {
"type": "string",
"description": "The UID of the LPA",
"pattern": "^M(-[A-Z0-9]{4}){3}$"
},
"actorUID": {
"type": "string",
"description": "The UID of the actor the identity check relates to",
"pattern": "^urn:opg:poas:makeregister:users:([a-z0-9]{8}-)([a-z0-9]{4}-){3}([a-z0-9]{12})$"
},
"provided": {
"description": "The data as provided on the LPA",
"allOf": [{"$ref": "#/$defs/Details"}]
},
"verified": {
"description": "The verified data returned from the identity check",
"allOf": [{"$ref": "#/$defs/Details"}]
}
},
"$defs": {
"Details": {
"type": "object",
"properties": {
"firstNames": {
"type": "string",
"description": "The first name(s) including any middle names"
},
"lastName": {
"type": "string",
"description": "The last name"
},
"dateOfBirth": {
"type": "string",
"description": "The date of birth",
"format": "date"
}
},
"required": ["firstNames", "lastName", "dateOfBirth"]
}
},
"required": ["uid", "provided", "verified"]
}

0 comments on commit 110d25a

Please sign in to comment.