From cab9db47513c1709753bf19771c973e5f1dd5f8b Mon Sep 17 00:00:00 2001 From: kathryn-ods Date: Fri, 9 Aug 2024 15:33:22 +0100 Subject: [PATCH] test --- .../valid-statements/foundingdateinvalid.json | 17 ------- .../valid-statements/foundingdatevalid.json | 17 ------- .../valid-statements/foundingdatevalid2.json | 17 ------- .../interestedParty_invalid.json | 45 +++++++++++++++++++ .../interestedParty_valid.json | 43 ++++++++++++++++++ .../interestedParty_valid2.json | 45 +++++++++++++++++++ 6 files changed, 133 insertions(+), 51 deletions(-) delete mode 100644 tests/data/valid-statements/foundingdateinvalid.json delete mode 100644 tests/data/valid-statements/foundingdatevalid.json delete mode 100644 tests/data/valid-statements/foundingdatevalid2.json create mode 100644 tests/data/valid-statements/interestedParty_invalid.json create mode 100644 tests/data/valid-statements/interestedParty_valid.json create mode 100644 tests/data/valid-statements/interestedParty_valid2.json diff --git a/tests/data/valid-statements/foundingdateinvalid.json b/tests/data/valid-statements/foundingdateinvalid.json deleted file mode 100644 index 5c421a80..00000000 --- a/tests/data/valid-statements/foundingdateinvalid.json +++ /dev/null @@ -1,17 +0,0 @@ -[ - { - "statementId": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7", - "declarationSubject": "c359f58d2977", - "statementDate": "2020-03-04", - "recordId": "c359f58d2977", - "recordType": "entity", - "recordDetails": { - "isComponent": false, - "entityType": { - "type": "registeredEntity" - }, - "foundingDate": "1990-08-21", - "dissolutionDate": "1990-08-01" - } - } -] diff --git a/tests/data/valid-statements/foundingdatevalid.json b/tests/data/valid-statements/foundingdatevalid.json deleted file mode 100644 index fa62ef06..00000000 --- a/tests/data/valid-statements/foundingdatevalid.json +++ /dev/null @@ -1,17 +0,0 @@ -[ - { - "statementId": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7", - "declarationSubject": "c359f58d2977", - "statementDate": "2020-03-04", - "recordId": "c359f58d2977", - "recordType": "entity", - "recordDetails": { - "isComponent": false, - "entityType": { - "type": "registeredEntity" - }, - "foundingDate": "1990-08-21", - "dissolutionDate": "2010-07-01" - } - } -] diff --git a/tests/data/valid-statements/foundingdatevalid2.json b/tests/data/valid-statements/foundingdatevalid2.json deleted file mode 100644 index f7b32090..00000000 --- a/tests/data/valid-statements/foundingdatevalid2.json +++ /dev/null @@ -1,17 +0,0 @@ -[ - { - "statementId": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7", - "declarationSubject": "c359f58d2977", - "statementDate": "2020-03-04", - "recordId": "c359f58d2977", - "recordType": "entity", - "recordDetails": { - "isComponent": false, - "entityType": { - "type": "registeredEntity" - }, - "foundingDate": "1990-08-21", - "dissolutionDate": "1990-08-21" - } - } -] diff --git a/tests/data/valid-statements/interestedParty_invalid.json b/tests/data/valid-statements/interestedParty_invalid.json new file mode 100644 index 00000000..264832e4 --- /dev/null +++ b/tests/data/valid-statements/interestedParty_invalid.json @@ -0,0 +1,45 @@ +[ + { + "statementId": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7", + "declarationSubject": "c359f58d2977", + "statementDate": "2020-03-04", + "recordId": "c359f58d2977", + "recordType": "entity", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + } + } + }, + { + "statementId": "019a93f1-e470-42e9-957b-03559861b2e2", + "declarationSubject": "c359f58d2977", + "statementDate": "2020-03-04", + "recordId": "10478c6cf6de", + "recordType": "entity", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + } + } + }, + { + "statementId": "fbfd0547-d0c6-4a00-b559-5c5e91c34f5c", + "declarationSubject": "c359f58d2977", + "statementDate": "2020-03-04", + "recordId": "93b53022ae6a", + "recordType": "relationship", + "recordDetails": { + "isComponent": false, + "subject": "c359f58d2977", + "interestedParty": "10478c6cf6de", + "interests":[ + { + "beneficialOwnershipOrControl": true + } + ] + } + } +] diff --git a/tests/data/valid-statements/interestedParty_valid.json b/tests/data/valid-statements/interestedParty_valid.json new file mode 100644 index 00000000..a9d179cf --- /dev/null +++ b/tests/data/valid-statements/interestedParty_valid.json @@ -0,0 +1,43 @@ +[ + { + "statementId": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7", + "declarationSubject": "c359f58d2977", + "statementDate": "2020-03-04", + "recordId": "c359f58d2977", + "recordType": "entity", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + } + } + }, + { + "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":[ + { + "beneficialOwnershipOrControl": true + } + ] + } + } +] diff --git a/tests/data/valid-statements/interestedParty_valid2.json b/tests/data/valid-statements/interestedParty_valid2.json new file mode 100644 index 00000000..ed0da590 --- /dev/null +++ b/tests/data/valid-statements/interestedParty_valid2.json @@ -0,0 +1,45 @@ +[ + { + "statementId": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7", + "declarationSubject": "c359f58d2977", + "statementDate": "2020-03-04", + "recordId": "c359f58d2977", + "recordType": "entity", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + } + } + }, + { + "statementId": "019a93f1-e470-42e9-957b-03559861b2e2", + "declarationSubject": "c359f58d2977", + "statementDate": "2020-03-04", + "recordId": "10478c6cf6de", + "recordType": "entity", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity" + } + } + }, + { + "statementId": "fbfd0547-d0c6-4a00-b559-5c5e91c34f5c", + "declarationSubject": "c359f58d2977", + "statementDate": "2020-03-04", + "recordId": "93b53022ae6a", + "recordType": "relationship", + "recordDetails": { + "isComponent": false, + "subject": "c359f58d2977", + "interestedParty": "10478c6cf6de", + "interests":[ + { + "beneficialOwnershipOrControl": false + } + ] + } + } +]