diff --git a/src/registry_schemas/example_data/schema_data.py b/src/registry_schemas/example_data/schema_data.py index f22e751..f3a31b8 100644 --- a/src/registry_schemas/example_data/schema_data.py +++ b/src/registry_schemas/example_data/schema_data.py @@ -1140,6 +1140,140 @@ 'correctedFilingType': 'incorporationApplication', 'correctedFilingDate': '2019-04-08', 'comment': """Sample Comment""", + 'type': 'CLIENT', + 'contactPoint': { + 'email': 'no_one@never.get' + }, + 'nameRequest': { + 'legalType': 'BC', + 'legalName': 'legal name change - BC1234567' + }, + 'nameTranslations': [ + {'id': '1', 'name': 'ABCD Ltd.'}, # Modified translation + {'name': 'Financière de l’Odet'} # New translation + ], + 'offices': { + 'registeredOffice': { + 'deliveryAddress': { + 'streetAddress': 'delivery_address - address line one', + 'addressCity': 'delivery_address city', + 'addressCountry': 'CA', + 'postalCode': 'H0H0H0', + 'addressRegion': 'BC' + }, + 'mailingAddress': { + 'streetAddress': 'mailing_address - address line one', + 'addressCity': 'mailing_address city', + 'addressCountry': 'CA', + 'postalCode': 'H0H0H0', + 'addressRegion': 'BC', + } + }, + 'recordsOffice': { + 'deliveryAddress': { + 'streetAddress': 'delivery_address - address line one', + 'addressCity': 'delivery_address city', + 'addressCountry': 'CA', + 'postalCode': 'H0H0H0', + 'addressRegion': 'BC' + }, + 'mailingAddress': { + 'streetAddress': 'mailing_address - address line one', + 'addressCity': 'mailing_address city', + 'addressCountry': 'CA', + 'postalCode': 'H0H0H0', + 'addressRegion': 'BC', + } + } + }, + 'parties': [ + { + 'officer': { + 'id': 1, + 'firstName': 'Joe', + 'lastName': 'Swanson', + 'middleName': 'P', + 'email': 'joe@email.com', + 'organizationName': '', + 'partyType': 'person' + }, + 'mailingAddress': { + 'streetAddress': 'mailing_address - address line one', + 'streetAddressAdditional': '', + 'addressCity': 'mailing_address city', + 'addressCountry': 'CA', + 'postalCode': 'H0H0H0', + 'addressRegion': 'BC' + }, + 'deliveryAddress': { + 'streetAddress': 'delivery_address - address line one', + 'streetAddressAdditional': '', + 'addressCity': 'delivery_address city', + 'addressCountry': 'CA', + 'postalCode': 'H0H0H0', + 'addressRegion': 'BC' + }, + 'roles': [ + { + 'roleType': 'Completing Party', + 'appointmentDate': '2018-01-01' + + }, + { + 'roleType': 'Director', + 'appointmentDate': '2018-01-01' + + } + ] + } + ], + 'shareStructure': { + 'shareClasses': [ + { + 'id': 1, + 'name': 'Share Class 1', + 'priority': 1, + 'hasMaximumShares': True, + 'maxNumberOfShares': 100, + 'hasParValue': True, + 'parValue': 10, + 'currency': 'CAD', + 'hasRightsOrRestrictions': False, + 'series': [ + { + 'id': 1, + 'name': 'Share Series 1', + 'priority': 1, + 'hasMaximumShares': True, + 'maxNumberOfShares': 50, + 'hasRightsOrRestrictions': False, + }, + { + 'id': 2, + 'name': 'Share Series 2', + 'priority': 2, + 'hasMaximumShares': True, + 'maxNumberOfShares': 100, + 'hasRightsOrRestrictions': False, + } + ] + }, + { + 'id': 2, + 'name': 'Share Class 2', + 'priority': 1, + 'hasMaximumShares': False, + 'maxNumberOfShares': None, + 'hasParValue': False, + 'parValue': None, + 'currency': None, + 'hasRightsOrRestrictions': True, + 'series': [] + }, + ], + 'resolutionDates': ['2022-09-01'] + }, + 'provisionsRemoved': True, # diff is not expected to be the part of correction input. This will be populated by the API by comparing # correction json with the original filing. 'diff': [ diff --git a/src/registry_schemas/schemas/correction.json b/src/registry_schemas/schemas/correction.json index 6308ab9..6a0a5a3 100644 --- a/src/registry_schemas/schemas/correction.json +++ b/src/registry_schemas/schemas/correction.json @@ -116,6 +116,66 @@ } } } + }, + { + "if": { + "required": ["legalType"], + "properties": { + "legalType": { + "enum": [ + "BEN" + ] + } + } + }, + "then": { + "required": [ + "parties", + "contactPoint" + ], + "properties": { + "business": { + "$ref": "https://bcrs.gov.bc.ca/.well_known/schemas/business#/properties/business" + }, + "nameRequest": { + "$ref": "https://bcrs.gov.bc.ca/.well_known/schemas/name_request" + }, + "startDate": { + "type": "string", + "format": "date" + }, + "offices": { + "registeredOffice": { + "$ref": "https://bcrs.gov.bc.ca/.well_known/schemas/office" + }, + "recordsOffice": { + "$ref": "https://bcrs.gov.bc.ca/.well_known/schemas/office" + }, + "required": [ + "registeredOffice" + ] + }, + "parties": { + "type": "array", + "items": { + "$ref": "https://bcrs.gov.bc.ca/.well_known/schemas/parties#/definitions/party" + } + }, + "contactPoint": { + "$ref": "https://bcrs.gov.bc.ca/.well_known/schemas/contactPoint" + }, + "nameTranslations": { + "$ref": "https://bcrs.gov.bc.ca/.well_known/schemas/name_translations" + }, + "shareStructure": { + "$ref": "https://bcrs.gov.bc.ca/.well_known/schemas/share_structure" + }, + "provisionsRemoved": { + "type": "boolean", + "title": "Has Pre-existing company provisions?" + } + } + } } ] } diff --git a/src/registry_schemas/version.py b/src/registry_schemas/version.py index e7ab6b1..9af4473 100644 --- a/src/registry_schemas/version.py +++ b/src/registry_schemas/version.py @@ -22,4 +22,4 @@ Development release segment: .devN """ -__version__ = '2.15.31' # pylint: disable=invalid-name +__version__ = '2.15.32' # pylint: disable=invalid-name