From 73c021abe4fee2901c2de434d035fa84218f6698 Mon Sep 17 00:00:00 2001 From: kathryn-ods Date: Fri, 9 Aug 2024 17:17:15 +0100 Subject: [PATCH] test --- ...tdateinvalid.json => nominee_invalid.json} | 5 +-- ...rtdatevalid.json => nominee_invalid2.json} | 6 +-- ...tartdatevalid2.json => nominee_valid.json} | 6 +-- .../data/valid-statements/nominee_valid2.json | 44 +++++++++++++++++++ 4 files changed, 52 insertions(+), 9 deletions(-) rename tests/data/valid-statements/{intereststartdateinvalid.json => nominee_invalid.json} (90%) rename tests/data/valid-statements/{intereststartdatevalid.json => nominee_invalid2.json} (90%) rename tests/data/valid-statements/{intereststartdatevalid2.json => nominee_valid.json} (90%) create mode 100644 tests/data/valid-statements/nominee_valid2.json diff --git a/tests/data/valid-statements/intereststartdateinvalid.json b/tests/data/valid-statements/nominee_invalid.json similarity index 90% rename from tests/data/valid-statements/intereststartdateinvalid.json rename to tests/data/valid-statements/nominee_invalid.json index d334c65a..24a472d8 100644 --- a/tests/data/valid-statements/intereststartdateinvalid.json +++ b/tests/data/valid-statements/nominee_invalid.json @@ -8,7 +8,7 @@ "recordDetails": { "isComponent": false, "entityType": { - "type": "registeredEntity" + "type": "legalEntity" } } }, @@ -35,8 +35,7 @@ "interestedParty": "10478c6cf6de", "interests":[ { - "startDate": "2020-01-01", - "endDate": "2019-01-01" + "type": "nominee" } ] } diff --git a/tests/data/valid-statements/intereststartdatevalid.json b/tests/data/valid-statements/nominee_invalid2.json similarity index 90% rename from tests/data/valid-statements/intereststartdatevalid.json rename to tests/data/valid-statements/nominee_invalid2.json index c486fd6e..d67a46d3 100644 --- a/tests/data/valid-statements/intereststartdatevalid.json +++ b/tests/data/valid-statements/nominee_invalid2.json @@ -8,7 +8,8 @@ "recordDetails": { "isComponent": false, "entityType": { - "type": "registeredEntity" + "type": "arrangement", + "subtype": "trust" } } }, @@ -35,8 +36,7 @@ "interestedParty": "10478c6cf6de", "interests":[ { - "startDate": "2019-01-01", - "endDate": "2020-01-01" + "type": "nominee" } ] } diff --git a/tests/data/valid-statements/intereststartdatevalid2.json b/tests/data/valid-statements/nominee_valid.json similarity index 90% rename from tests/data/valid-statements/intereststartdatevalid2.json rename to tests/data/valid-statements/nominee_valid.json index 4ff1a187..2308f617 100644 --- a/tests/data/valid-statements/intereststartdatevalid2.json +++ b/tests/data/valid-statements/nominee_valid.json @@ -8,7 +8,8 @@ "recordDetails": { "isComponent": false, "entityType": { - "type": "registeredEntity" + "type": "arrangement", + "subtype": "nomination" } } }, @@ -35,8 +36,7 @@ "interestedParty": "10478c6cf6de", "interests":[ { - "startDate": "2019-01-01", - "endDate": "2019-01-01" + "type": "nominee" } ] } diff --git a/tests/data/valid-statements/nominee_valid2.json b/tests/data/valid-statements/nominee_valid2.json new file mode 100644 index 00000000..1372e07d --- /dev/null +++ b/tests/data/valid-statements/nominee_valid2.json @@ -0,0 +1,44 @@ +[ + { + "statementId": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7", + "declarationSubject": "c359f58d2977", + "statementDate": "2020-03-04", + "recordId": "c359f58d2977", + "recordType": "entity", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "arrangement", + "subtype": "nomination" + } + } + }, + { + "statementId": "019a93f1-e470-42e9-957b-03559861b2e2", + "declarationSubject": "c359f58d2977", + "statementDate": "2020-03-04", + "recordId": "10478c6cf6de", + "recordType": "person", + "recordDetails": { + "isComponent": false, + "personType": "knownPerson" + } + }, + { + "statementId": "fbfd0547-d0c6-4a00-b559-5c5e91c34f5c", + "declarationSubject": "c359f58d2977", + "statementDate": "2020-03-04", + "recordId": "93b53022ae6a", + "recordType": "relationship", + "recordDetails": { + "isComponent": false, + "subject": "c359f58d2977", + "interestedParty": "10478c6cf6de", + "interests":[ + { + "type": "nominator" + } + ] + } + } +]