From 4e7a7de24754d01dc0f6536339c3a9bc46cc0610 Mon Sep 17 00:00:00 2001 From: Kevin Zhang <54437031+kzdev420@users.noreply.github.com> Date: Fri, 19 Apr 2024 11:39:23 -0400 Subject: [PATCH] 20766 add alternate_name (#161) --- .../example_data/schema_data.py | 2 + src/registry_schemas/schemas/business.json | 50 +++++++++++++++++++ src/registry_schemas/version.py | 2 +- 3 files changed, 53 insertions(+), 1 deletion(-) diff --git a/src/registry_schemas/example_data/schema_data.py b/src/registry_schemas/example_data/schema_data.py index 5e68904..f942a41 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', + 'alternateNames': [], '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', + 'alternateNames': [], 'legalType': 'CP', 'state': 'ACTIVE', 'goodStanding': True, diff --git a/src/registry_schemas/schemas/business.json b/src/registry_schemas/schemas/business.json index 68753a4..a7622be 100644 --- a/src/registry_schemas/schemas/business.json +++ b/src/registry_schemas/schemas/business.json @@ -72,6 +72,50 @@ "XS" ] }, + "alternateName": { + "type": "object", + "properties": { + "entityType": { + "$ref": "#/definitions/legalType" + }, + "identifier": { + "$ref": "#/definitions/identifier" + }, + "name": { + "type": "string", + "title": "The alternate name of the business.", + "default": "", + "examples": ["alternate_name_of_business"], + "pattern": "^(.*)$" + }, + "nameRegisteredDate": { + "type": "string", + "format": "date-time", + "title": "The timestamp of the registered date.", + "default": "", + "examples": ["1970-01-01T00:00:00+00:00"] + }, + "nameStartDate": { + "type": "string", + "format": "date", + "title": "The start date of the alternate name", + "default": "", + "examples": ["1970-01-01"] + }, + "nameEndDate": { + "type": "string", + "format": "date", + "title": "The end date of the alternate name", + "default": "", + "examples": ["1970-01-01"] + }, + "nameType": { + "type": "string", + "title": "The type of the alternate name", + "enum": ["TRANSLATION", "DBA"] + } + } + }, "warning": { "type": "object", "properties": { @@ -154,6 +198,12 @@ "legalType": { "$ref": "#/definitions/legalType" }, + "alternateNames": { + "type": "array", + "items": { + "$ref": "#/definitions/alternateName" + } + }, "taxId": { "type": "string", "title": "The Tax_id Schema", diff --git a/src/registry_schemas/version.py b/src/registry_schemas/version.py index 2ec5ccf..55513dc 100644 --- a/src/registry_schemas/version.py +++ b/src/registry_schemas/version.py @@ -23,4 +23,4 @@ """ -__version__ = '2.18.23' # pylint: disable=invalid-name +__version__ = '2.18.24' # pylint: disable=invalid-name