diff --git a/src/registry_schemas/example_data/schema_data.py b/src/registry_schemas/example_data/schema_data.py index d1678cf..eb21690 100644 --- a/src/registry_schemas/example_data/schema_data.py +++ b/src/registry_schemas/example_data/schema_data.py @@ -37,7 +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', + 'alternateNames': 'legal name - CP1234567', 'legalType': 'CP' } } @@ -50,7 +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', + 'alternateNames': 'legal name - CP1234567', 'legalType': 'CP', 'state': 'ACTIVE', 'goodStanding': True, diff --git a/src/registry_schemas/schemas/business.json b/src/registry_schemas/schemas/business.json index eddd0b6..0cd455b 100644 --- a/src/registry_schemas/schemas/business.json +++ b/src/registry_schemas/schemas/business.json @@ -19,13 +19,6 @@ "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. For other business legal types, this will likely be the same as the legal name.", - "default": "", - "examples": ["business_name"], - "pattern": "^(.*)$" - }, "legalType": { "type": "string", "title": "The Legal Type of the business.", @@ -79,6 +72,38 @@ "XS" ] }, + "alternateName": { + "type": "object", + "properties": { + "entityType": { + "$ref": "#/definitions/legalType" + }, + "identifier": { + "$ref": "#/definitions/identifier" + }, + "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 Schema", + "default": "", + "examples": ["1970-01-01"] + }, + "operatingName": { + "type": "string", + "title": "The Legal Name of the business.", + "default": "", + "examples": ["operating_name"], + "pattern": "^(.*)$" + } + } + }, "warning": { "type": "object", "properties": { @@ -158,12 +183,15 @@ "legalName": { "$ref": "#/definitions/legalName" }, - "businessName": { - "$ref": "#/definitions/businessName" - }, "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 2fbb3d6..c6776e0 100644 --- a/src/registry_schemas/version.py +++ b/src/registry_schemas/version.py @@ -23,4 +23,4 @@ """ -__version__ = '2.18.19' # pylint: disable=invalid-name +__version__ = '2.18.20' # pylint: disable=invalid-name