Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
kathryn-ods committed Aug 14, 2024
1 parent 41dae71 commit acb9d00
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 2 deletions.
24 changes: 24 additions & 0 deletions tests/data/valid-statements/alternative_address_edgecase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[
{
"statementId": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7",
"declarationSubject": "c359f58d2977",
"statementDate": "2020-03-04",
"recordId": "c359f58d2977",
"recordType": "entity",
"recordDetails": {
"isComponent": false,
"entityType": {
"type": "registeredEntity",
"addresses": [
{
"type": "alternative",
"address": "123"
},
{
"address": "1234"
}
]
}
}
}
]
21 changes: 21 additions & 0 deletions tests/data/valid-statements/alternative_address_invalid.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[
{
"statementId": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7",
"declarationSubject": "c359f58d2977",
"statementDate": "2020-03-04",
"recordId": "c359f58d2977",
"recordType": "entity",
"recordDetails": {
"isComponent": false,
"entityType": {
"type": "registeredEntity",
"addresses": [
{
"type": "alternative",
"address": "123"
}
]
}
}
}
]
25 changes: 25 additions & 0 deletions tests/data/valid-statements/alternative_address_invalid2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[
{
"statementId": "019a93f1-e470-42e9-957b-03559861b2e2",
"declarationSubject": "c359f58d2977",
"statementDate": "2020-03-04",
"recordId": "10478c6cf6de",
"recordType": "person",
"recordDetails": {
"isComponent": false,
"personType": "knownPerson",
"addresses": [
{
"type": "alternative",
"postCode": "123"
},
{
"type": "alternative",
"country": {
"name": "United Kingdom"
}
}
]
}
}
]
21 changes: 19 additions & 2 deletions tests/data/valid-statements/alternative_address_valid.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,13 @@
"isComponent": false,
"entityType": {
"type": "registeredEntity",
"addresses":[
"addresses": [
{
"type": "business",
"address": "123"
},
{
"type": "alternative",
"address": "123"
}
]
Expand All @@ -25,7 +30,19 @@
"recordType": "person",
"recordDetails": {
"isComponent": false,
"personType": "knownPerson"
"personType": "knownPerson",
"addresses": [
{
"type": "registered",
"postCode": "123"
},
{
"type": "alternative",
"country": {
"name": "United Kingdom"
}
}
]
}
}
]

0 comments on commit acb9d00

Please sign in to comment.