Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

18537 Amalgamation application schema #151

Merged
merged 8 commits into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/registry_schemas/example_data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
ALL_FILINGS,
ALTERATION,
ALTERATION_FILING_TEMPLATE,
AMALGAMATION,
ANNUAL_REPORT,
BEN_CONVERSION,
BUSINESS,
Expand Down
175 changes: 162 additions & 13 deletions src/registry_schemas/example_data/schema_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,168 @@
'deliveryInstructions': 'some delivery instructions'
}

COURT_ORDER = {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason why this was moved?

'fileNumber': '#1234-5678/90',
'orderDate': '2021-01-30T09:56:01+08:00',
'effectOfOrder': 'planOfArrangement',
'orderDetails': 'A note about order',
'fileKey': '011e332d-1b8e-4218-8710-ad8ac1fbc592.pdf'
}

FOREIGN_JURISDICTION = {
'country': 'CA',
'region': 'AB'
}
severinbeauvais marked this conversation as resolved.
Show resolved Hide resolved

AMALGAMATION = {
'type': 'regular',
'amalgamatingBusinesses': [
{
'role': 'amalgamating',
'identifier': 'BC1234567'
},
{
'role': 'amalgamating',
'legalName': 'Foreign Co.',
'foreignJurisdiction': FOREIGN_JURISDICTION,
'corpNumber': '123456'
}
severinbeauvais marked this conversation as resolved.
Show resolved Hide resolved
],
'nameRequest': {
'legalType': 'BC',
'legalName': 'Resulting Business Name'
},
'nameTranslations': [
{'name': 'ABCD Ltd.'}
],
'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',
}
}
},
'contactPoint': {
'email': 'no_one@never.get',
'phone': '123-456-7890'
},
'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': []
},
]
},
'courtOrder': COURT_ORDER,
'courtApproval': True
}

ANNUAL_REPORT = {
'filing': {
'header': {
Expand Down Expand Up @@ -1202,19 +1364,6 @@
}
}

COURT_ORDER = {
'fileNumber': '#1234-5678/90',
'orderDate': '2021-01-30T09:56:01+08:00',
'effectOfOrder': 'planOfArrangement',
'orderDetails': 'A note about order',
'fileKey': '011e332d-1b8e-4218-8710-ad8ac1fbc592.pdf'
}

FOREIGN_JURISDICTION = {
'country': 'CA',
'region': 'AB'
}

CONSENT_CONTINUATION_OUT = {
'details': 'A note to explain the consent to continue out',
'foreignJurisdiction': FOREIGN_JURISDICTION,
Expand Down
109 changes: 109 additions & 0 deletions src/registry_schemas/schemas/amalgamation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://bcrs.gov.bc.ca/.well_known/schemas/amalgamation",
"type": "object",
"definitions": {},
"title": "Amalgamation Application Schema",
"required": [
"amalgamation"
],
"properties": {
"amalgamation": {
"type":"object",
"required": [
"type",
"amalgamatingBusinesses",
"nameRequest",
"offices",
"parties",
"contactPoint",
"courtApproval"
],
severinbeauvais marked this conversation as resolved.
Show resolved Hide resolved
"properties": {
"type": {
"type": "string",
"title": "The type of Amalgamation",
"enum": [
"regular",
"vertical",
"horizontal"
]
},
"amalgamatingBusinesses": {
"type": "array",
"items": {
"oneOf": [
{
"required": [
"role",
"identifier"
]
},
{
"required": [
"role",
"foreignJurisdiction",
"legalName",
"corpNumber"
]
}
],
"properties": {
"role": {
"type": "string",
"enum": [
"holding",
"amalgamating"
]
},
"identifier": { "type": "string" },
"foreignJurisdiction": {
"$ref": "https://bcrs.gov.bc.ca/.well_known/schemas/foreign_jurisdiction"
},
"legalName": { "type": "string" },
"corpNumber": { "type": "string" }
argush3 marked this conversation as resolved.
Show resolved Hide resolved
}
}
},
"nameRequest": {
"title": "The resulting business name and type",
"$ref": "https://bcrs.gov.bc.ca/.well_known/schemas/name_request"
},
"nameTranslations": {
"$ref": "https://bcrs.gov.bc.ca/.well_known/schemas/name_translations"
},
"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"
]
},
"contactPoint": {
"$ref": "https://bcrs.gov.bc.ca/.well_known/schemas/contactPoint"
},
"parties": {
"type": "array",
"items": {
"$ref": "https://bcrs.gov.bc.ca/.well_known/schemas/parties#/definitions/party"
}
},
"shareStructure": {
"$ref": "https://bcrs.gov.bc.ca/.well_known/schemas/share_structure"
},
"courtOrder": {
"$ref": "https://bcrs.gov.bc.ca/.well_known/schemas/court_order#/properties/courtOrder"
},
"courtApproval": {
"title": "Amalgamation statement",
"type": "boolean"
}
argush3 marked this conversation as resolved.
Show resolved Hide resolved
}

}
}
}
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.17' # pylint: disable=invalid-name
__version__ = '2.18.18' # pylint: disable=invalid-name
1 change: 1 addition & 0 deletions tests/unit/schema_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
('admin_freeze.json'),
('agm_extension.json'),
('agm_location_change.json'),
('amalgamation.json'),
('affiliated_businesses.json'),
('agreement_type.json'),
('alteration.json'),
Expand Down
Loading
Loading