From 9e95753e5564354251ea6b4f9511bf4a0f4558ef Mon Sep 17 00:00:00 2001 From: argush3 Date: Wed, 2 Aug 2023 14:02:29 -0700 Subject: [PATCH] 5530 legal name change related schema updates --- requirements.txt | 2 +- .../example_data/schema_data.py | 20 +++++++++++++++++++ src/registry_schemas/schemas/business.json | 12 ++++++++++- 3 files changed, 32 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index bf7119d..6ddfe3c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ flask -jsonschema[format] +jsonschema[format]==4.18.0 requests strict-rfc3339 diff --git a/src/registry_schemas/example_data/schema_data.py b/src/registry_schemas/example_data/schema_data.py index 8265463..eeb48dc 100644 --- a/src/registry_schemas/example_data/schema_data.py +++ b/src/registry_schemas/example_data/schema_data.py @@ -37,6 +37,7 @@ 'lastLedgerTimestamp': '2019-04-15T20:05:49.068272+00:00', 'lastPreBobFilingTimestamp': '2019-04-15T20:05:49.068272+00:00', 'legalName': 'legal name - CP1234567', + 'businessName': 'legal name - CP1234567', 'legalType': 'CP' } } @@ -49,6 +50,7 @@ 'lastLedgerTimestamp': '2019-04-15T20:05:49.068272+00:00', 'lastPreBobFilingTimestamp': '2019-04-15T20:05:49.068272+00:00', 'legalName': 'legal name - CP1234567', + 'businessName': 'legal name - CP1234567', 'legalType': 'CP', 'state': 'ACTIVE', 'goodStanding': True, @@ -70,6 +72,7 @@ 'lastLedgerTimestamp': '2019-04-15T20:05:49.068272+00:00', 'lastPreBobFilingTimestamp': '2019-04-15T20:05:49.068272+00:00', 'legalName': 'legal name - CP1234567', + 'businessName': 'legal name - CP1234567', 'legalType': 'CP', 'state': 'HISTORICAL', 'stateFiling': 'https://LEGAL-API-HOST/api/v2/businesses/IDENTIFIER/filings/FILING_ID' @@ -101,6 +104,7 @@ 'lastLedgerTimestamp': '2019-04-15T20:05:49.068272+00:00', 'lastPreBobFilingTimestamp': '2019-01-01T20:05:49.068272+00:00', 'legalName': 'legal name - CP1234567', + 'businessName': 'legal name - CP1234567', 'legalType': 'CP' }, 'annualReport': { @@ -374,6 +378,7 @@ 'lastLedgerTimestamp': '2019-04-15T20:05:49.068272+00:00', 'lastPreBobFilingTimestamp': '2019-01-01T20:05:49.068272+00:00', 'legalName': 'legal name - CP1234567', + 'businessName': 'legal name - CP1234567', 'legalType': 'CP' }, 'correction': { @@ -464,6 +469,7 @@ 'lastLedgerTimestamp': '2019-04-15T20:05:49.068272+00:00', 'lastPreBobFilingTimestamp': '2019-01-01T20:05:49.068272+00:00', 'legalName': 'legal name - CP1234567', + 'businessName': 'legal name - CP1234567', 'legalType': 'CP' }, 'correction': { @@ -518,6 +524,7 @@ 'lastLedgerTimestamp': '2019-04-15T20:05:49.068272+00:00', 'lastPreBobFilingTimestamp': '2019-01-01T20:05:49.068272+00:00', 'legalName': 'legal name - CP1234567', + 'businessName': 'legal name - CP1234567', 'legalType': 'CP' }, 'correction': { @@ -630,6 +637,7 @@ 'lastLedgerTimestamp': '2019-04-15T20:05:49.068272+00:00', 'lastPreBobFilingTimestamp': '2019-01-01T20:05:49.068272+00:00', 'legalName': 'legal name - CP1234567', + 'businessName': 'legal name - CP1234567', 'legalType': 'CP' }, 'correction': { @@ -1057,6 +1065,7 @@ 'lastLedgerTimestamp': '2019-04-15T20:05:49.068272+00:00', 'lastPreBobFilingTimestamp': '2019-01-01T20:05:49.068272+00:00', 'legalName': 'legal name - BC1234567', + 'businessName': 'legal name - BC1234567', 'legalType': 'BC' }, 'correction': { @@ -1488,6 +1497,7 @@ 'lastLedgerTimestamp': '2019-04-15T20:05:49.068272+00:00', 'lastPreBobFilingTimestamp': '2019-01-01T20:05:49.068272+00:00', 'legalName': 'legal name - FM1234567', + 'businessName': 'legal name - FM1234567', 'legalType': 'GP' }, 'correction': { @@ -1693,6 +1703,7 @@ 'lastLedgerTimestamp': '2019-04-15T20:05:49.068272+00:00', 'lastPreBobFilingTimestamp': '2019-01-01T20:05:49.068272+00:00', 'legalName': 'legal name - FM1234567', + 'businessName': 'legal name - FM1234567', 'legalType': 'GP' }, 'correction': { @@ -2363,6 +2374,7 @@ 'lastLedgerTimestamp': '2019-04-15T20:05:49.068272+00:00', 'lastPreBobFilingTimestamp': '2019-04-15T20:05:49.068272+00:00', 'legalName': 'legal name - CP1234567', + 'businessName': 'legal name - CP1234567', 'legalType': 'CP' } } @@ -2413,6 +2425,7 @@ 'foundingDate': '2018-01-01T00:00:00+00:00', 'identifier': 'U1234567', 'legalName': 'legal name - Test', + 'businessName': 'legal name - Test', 'legalType': 'BC' }, 'alteration': ALTERATION @@ -2433,6 +2446,7 @@ 'identifier': 'BC1234567', 'lastLedgerTimestamp': '2019-04-15T20:05:49.068272+00:00', 'legalName': 'legal name - BC1234567', + 'businessName': 'legal name - BC1234567', 'legalType': 'BC' }, 'conversion': BEN_CONVERSION @@ -2454,6 +2468,7 @@ 'identifier': 'BC1234567', 'lastLedgerTimestamp': '2019-04-15T20:05:49.068272+00:00', 'legalName': 'legal name - BC1234567', + 'businessName': 'legal name - BC1234567', 'legalType': 'BC' }, 'transition': TRANSITION @@ -2473,6 +2488,7 @@ 'foundingDate': '2018-01-01T00:00:00+00:00', 'identifier': 'U1234567', 'legalName': 'legal name - Test', + 'businessName': 'legal name - Test', 'legalType': 'BC' }, 'registrarsNotation': REGISTRARS_NOTATION @@ -2492,6 +2508,7 @@ 'foundingDate': '2018-01-01T00:00:00+00:00', 'identifier': 'U1234567', 'legalName': 'legal name - Test', + 'businessName': 'legal name - Test', 'legalType': 'BC' }, 'registrarsOrder': REGISTRARS_ORDER @@ -2511,6 +2528,7 @@ 'foundingDate': '2018-01-01T00:00:00+00:00', 'identifier': 'U1234567', 'legalName': 'legal name - Test', + 'businessName': 'legal name - Test', 'legalType': 'BC' }, 'courtOrder': COURT_ORDER @@ -2530,6 +2548,7 @@ 'foundingDate': '2018-01-01T00:00:00+00:00', 'identifier': 'FM1234567', 'legalName': 'legal name - Test', + 'businessName': 'legal name - Test', 'legalType': 'GP' }, 'changeOfRegistration': CHANGE_OF_REGISTRATION @@ -2555,6 +2574,7 @@ 'lastLedgerTimestamp': '2019-04-15T20:05:49.068272+00:00', 'lastPreBobFilingTimestamp': '2019-01-01T20:05:49.068272+00:00', 'legalName': 'legal name - CP1234567', + 'businessName': 'legal name - CP1234567', 'legalType': 'CP' }, 'changeOfName': { diff --git a/src/registry_schemas/schemas/business.json b/src/registry_schemas/schemas/business.json index 68753a4..92eff97 100644 --- a/src/registry_schemas/schemas/business.json +++ b/src/registry_schemas/schemas/business.json @@ -14,11 +14,18 @@ }, "legalName": { "type": "string", - "title": "The Legal_name Schema", + "title": "The Legal Name of the business.", "default": "", "examples": ["legal_name"], "pattern": "^(.*)$" }, + "businessName": { + "type": "string", + "title": "The Business name of the business. For firms, this will be the same as the operating name.", + "default": "", + "examples": ["business_name"], + "pattern": "^(.*)$" + }, "legalType": { "type": "string", "title": "The Legal Type of the business.", @@ -151,6 +158,9 @@ "legalName": { "$ref": "#/definitions/legalName" }, + "businessName": { + "$ref": "#/definitions/businessName" + }, "legalType": { "$ref": "#/definitions/legalType" },