Skip to content

Commit

Permalink
13080 New schema for BEN IA and special resolution Collab Correction …
Browse files Browse the repository at this point in the history
…Schema Updates for BEN IA (#103)

* 13080: ben ia schema

* 13080: provisionsRemoved

* 13080: version

* 13080: if ben

* 13080: fix 1
  • Loading branch information
lewischenstudio authored Sep 6, 2022
1 parent 6b22687 commit b7da2d9
Show file tree
Hide file tree
Showing 3 changed files with 195 additions and 1 deletion.
134 changes: 134 additions & 0 deletions src/registry_schemas/example_data/schema_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -1140,6 +1140,140 @@
'correctedFilingType': 'incorporationApplication',
'correctedFilingDate': '2019-04-08',
'comment': """Sample Comment""",
'type': 'CLIENT',
'contactPoint': {
'email': '[email protected]'
},
'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': '[email protected]',
'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': [
Expand Down
60 changes: 60 additions & 0 deletions src/registry_schemas/schemas/correction.json
Original file line number Diff line number Diff line change
Expand Up @@ -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?"
}
}
}
}
]
}
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 @@ -22,4 +22,4 @@
Development release segment: .devN
"""

__version__ = '2.15.31' # pylint: disable=invalid-name
__version__ = '2.15.32' # pylint: disable=invalid-name

0 comments on commit b7da2d9

Please sign in to comment.