-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MLPAB 2311 Add identity-check-mismatched event (#86)
- Loading branch information
Showing
4 changed files
with
102 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
14 changes: 14 additions & 0 deletions
14
domains/POAS/events/identity-check-mismatched/examples/example.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | ||
} |