Skip to content

Commit

Permalink
Schema changes - Transition filing (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lekshmi authored Oct 21, 2020
1 parent d16370c commit 5e78850
Show file tree
Hide file tree
Showing 7 changed files with 422 additions and 4 deletions.
6 changes: 5 additions & 1 deletion src/registry_schemas/example_data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
INCORPORATION_FILING_TEMPLATE,
SPECIAL_RESOLUTION,
STUB_FILING,
TRANSITION,
TRANSITION_FILING_TEMPLATE,
VOLUNTARY_DISSOLUTION,
)

Expand Down Expand Up @@ -73,5 +75,7 @@
'ALTERATION',
'ALTERATION_FILING_TEMPLATE',
'CONVERSION',
'CONVERSION_FILING_TEMPLATE'
'CONVERSION_FILING_TEMPLATE',
'TRANSITION',
'TRANSITION_FILING_TEMPLATE'
]
170 changes: 169 additions & 1 deletion src/registry_schemas/example_data/schema_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -1314,6 +1314,154 @@
}
}

TRANSITION = {
'nameTranslations': {'new': ['ABC Ltd.', 'Financière de l’Odet', 'Société Générale']},
'hasProvisions': False,
'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]',
'orgName': '',
'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': 'Director',
'appointmentDate': '2018-01-01'

}
]
},
{
'officer': {
'id': 2,
'firstName': '',
'lastName': '',
'middleName': '',
'orgName': 'Xyz Inc.',
'partyType': 'org'
},
'mailingAddress': {
'streetAddress': 'mailing_address - address line one',
'streetAddressAdditional': '',
'addressCity': 'mailing_address city',
'addressCountry': 'CA',
'postalCode': 'H0H0H0',
'addressRegion': 'BC'
},
'roles': [
{
'roleType': 'Director',
'appointmentDate': '2018-01-01'
}
]
}
],
'shareStructure': {
'resolutionDates': ['2020-05-23', '2020-06-01'],
'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': []
},
]
},
'contactPoint': {
'email': '[email protected]',
'phone': '123-456-7890'
}
}

FILING_TEMPLATE = {
'filing': {
Expand Down Expand Up @@ -1394,6 +1542,25 @@
}
}

TRANSITION_FILING_TEMPLATE = {
'filing': {
'header': {
'name': 'transition',
'date': '2020-10-19',
'certifiedBy': 'full name',
'email': '[email protected]',
'filingId': 1
},
'business': {
'foundingDate': '2018-01-01T00:00:00+00:00',
'identifier': 'BC1234567',
'lastLedgerTimestamp': '2019-04-15T20:05:49.068272+00:00',
'legalName': 'legal name - BC1234567',
'legalType': 'BC'
},
'transition': TRANSITION
}
}

STUB_FILING = {
}
Expand All @@ -1419,7 +1586,8 @@
('continuedOut', STUB_FILING),
('changeOfDirectors', CHANGE_OF_DIRECTORS_MAILING), # bcorp-specific version of filing
('alteration', ALTERATION),
('conversion', CONVERSION)
('conversion', CONVERSION),
('transition', TRANSITION)
]


Expand Down
6 changes: 5 additions & 1 deletion src/registry_schemas/schemas/filing.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@
"continuedOut",
"correction",
"alteration",
"conversion"
"conversion",
"transition"
]
},
"availableOnPaperOnly": {
Expand Down Expand Up @@ -232,6 +233,9 @@
},
{
"$ref": "https://bcrs.gov.bc.ca/.well_known/schemas/alteration"
},
{
"$ref": "https://bcrs.gov.bc.ca/.well_known/schemas/transition"
}
]
}
Expand Down
43 changes: 43 additions & 0 deletions src/registry_schemas/schemas/transition.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://bcrs.gov.bc.ca/.well_known/schemas/transition",
"required": [
"nameTranslations",
"offices",
"parties",
"shareStructure",
"hasProvisions"
],
"type": "object",
"title": "Transition Filing",
"properties": {
"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", "recordsOffice"]
},
"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"
},
"hasProvisions": {
"type": "boolean",
"title": "Has Pre-existing company provisions?"
},
"contactPoint": {
"$ref": "https://bcrs.gov.bc.ca/.well_known/schemas/contactPoint"
}
}
}
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.8.0' # pylint: disable=invalid-name
__version__ = '2.8.1' # 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 @@ -42,5 +42,6 @@
('alteration.json'),
('name_translations.json'),
('conversion.json'),
('transition.json'),
('diff.json')
]
Loading

0 comments on commit 5e78850

Please sign in to comment.