Skip to content

Commit

Permalink
19937 added alternateNames to business json
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulGarewal committed Feb 26, 2024
1 parent 98624a8 commit cdd32ac
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/registry_schemas/example_data/schema_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
}
Expand All @@ -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,
Expand Down
48 changes: 38 additions & 10 deletions src/registry_schemas/schemas/business.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/registry_schemas/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
"""


__version__ = '2.18.19' # pylint: disable=invalid-name
__version__ = '2.18.20' # pylint: disable=invalid-name

0 comments on commit cdd32ac

Please sign in to comment.