From 1b1951b0009aeb31573fd060c65b120f733c182f Mon Sep 17 00:00:00 2001 From: kathryn-ods Date: Wed, 14 Aug 2024 12:15:59 +0100 Subject: [PATCH] test --- .../alternative_address_edgecase2.json | 25 ---------- .../alternative_address_invalid2.json | 19 -------- .../alternative_address_valid.json | 48 ------------------- .../publiclistingInvalid.json | 27 +++++++++++ ...s_invalid.json => publiclistingValid.json} | 9 ++-- ...edgecase.json => publiclistingValid2.json} | 14 ++---- .../valid-statements/publiclistingValid3.json | 27 +++++++++++ 7 files changed, 62 insertions(+), 107 deletions(-) delete mode 100644 tests/data/valid-statements/alternative_address_edgecase2.json delete mode 100644 tests/data/valid-statements/alternative_address_invalid2.json delete mode 100644 tests/data/valid-statements/alternative_address_valid.json create mode 100644 tests/data/valid-statements/publiclistingInvalid.json rename tests/data/valid-statements/{alternative_address_invalid.json => publiclistingValid.json} (73%) rename tests/data/valid-statements/{alternative_address_edgecase.json => publiclistingValid2.json} (65%) create mode 100644 tests/data/valid-statements/publiclistingValid3.json diff --git a/tests/data/valid-statements/alternative_address_edgecase2.json b/tests/data/valid-statements/alternative_address_edgecase2.json deleted file mode 100644 index 8d04bf46..00000000 --- a/tests/data/valid-statements/alternative_address_edgecase2.json +++ /dev/null @@ -1,25 +0,0 @@ -[ - { - "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" - } - } - ] - } - } -] diff --git a/tests/data/valid-statements/alternative_address_invalid2.json b/tests/data/valid-statements/alternative_address_invalid2.json deleted file mode 100644 index 11c65f2a..00000000 --- a/tests/data/valid-statements/alternative_address_invalid2.json +++ /dev/null @@ -1,19 +0,0 @@ -[ - { - "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" - } - ] - } - } -] diff --git a/tests/data/valid-statements/alternative_address_valid.json b/tests/data/valid-statements/alternative_address_valid.json deleted file mode 100644 index 9187f648..00000000 --- a/tests/data/valid-statements/alternative_address_valid.json +++ /dev/null @@ -1,48 +0,0 @@ -[ - { - "statementId": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7", - "declarationSubject": "c359f58d2977", - "statementDate": "2020-03-04", - "recordId": "c359f58d2977", - "recordType": "entity", - "recordDetails": { - "isComponent": false, - "entityType": { - "type": "registeredEntity", - "addresses": [ - { - "type": "business", - "address": "123" - }, - { - "type": "alternative", - "address": "123" - } - ] - } - } - }, - { - "statementId": "019a93f1-e470-42e9-957b-03559861b2e2", - "declarationSubject": "c359f58d2977", - "statementDate": "2020-03-04", - "recordId": "10478c6cf6de", - "recordType": "person", - "recordDetails": { - "isComponent": false, - "personType": "knownPerson", - "addresses": [ - { - "type": "residence", - "postCode": "123" - }, - { - "type": "alternative", - "country": { - "name": "United Kingdom" - } - } - ] - } - } -] diff --git a/tests/data/valid-statements/publiclistingInvalid.json b/tests/data/valid-statements/publiclistingInvalid.json new file mode 100644 index 00000000..0e3538e7 --- /dev/null +++ b/tests/data/valid-statements/publiclistingInvalid.json @@ -0,0 +1,27 @@ +[ + { + "statementId": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7", + "declarationSubject": "c359f58d2977", + "statementDate": "2020-03-04", + "recordId": "c359f58d2977", + "recordType": "entity", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity", + "publicListing": { + "hasPublicListing": false, + "securitiesListings": [ + { + "stockExchangeJurisdiction": "GB", + "stockExchangeName": "London stock exchange", + "security":{ + "ticker": "123" + } + } + ] + } + } + } + } +] diff --git a/tests/data/valid-statements/alternative_address_invalid.json b/tests/data/valid-statements/publiclistingValid.json similarity index 73% rename from tests/data/valid-statements/alternative_address_invalid.json rename to tests/data/valid-statements/publiclistingValid.json index d2c67ed4..55065793 100644 --- a/tests/data/valid-statements/alternative_address_invalid.json +++ b/tests/data/valid-statements/publiclistingValid.json @@ -9,12 +9,9 @@ "isComponent": false, "entityType": { "type": "registeredEntity", - "addresses": [ - { - "type": "alternative", - "address": "123" - } - ] + "publicListing": { + "hasPublicListing": false + } } } } diff --git a/tests/data/valid-statements/alternative_address_edgecase.json b/tests/data/valid-statements/publiclistingValid2.json similarity index 65% rename from tests/data/valid-statements/alternative_address_edgecase.json rename to tests/data/valid-statements/publiclistingValid2.json index 2e5b77dc..0a5f64c1 100644 --- a/tests/data/valid-statements/alternative_address_edgecase.json +++ b/tests/data/valid-statements/publiclistingValid2.json @@ -9,15 +9,11 @@ "isComponent": false, "entityType": { "type": "registeredEntity", - "addresses": [ - { - "type": "alternative", - "address": "123" - }, - { - "address": "1234" - } - ] + "publicListing": { + "hasPublicListing": false, + "securitiesListings": [ + ] + } } } } diff --git a/tests/data/valid-statements/publiclistingValid3.json b/tests/data/valid-statements/publiclistingValid3.json new file mode 100644 index 00000000..50e62c1b --- /dev/null +++ b/tests/data/valid-statements/publiclistingValid3.json @@ -0,0 +1,27 @@ +[ + { + "statementId": "1dc0e987-5c57-4a1c-b3ad-61353b66a9b7", + "declarationSubject": "c359f58d2977", + "statementDate": "2020-03-04", + "recordId": "c359f58d2977", + "recordType": "entity", + "recordDetails": { + "isComponent": false, + "entityType": { + "type": "registeredEntity", + "publicListing": { + "hasPublicListing": true, + "securitiesListings": [ + { + "stockExchangeJurisdiction": "GB", + "stockExchangeName": "London stock exchange", + "security":{ + "ticker": "123" + } + } + ] + } + } + } + } +]