generated from bcgov/bcrs-template-ui
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conversion filing - Schema changes (#34)
* Conversion schema * More changes * Pylint and Flake8 fixes
- Loading branch information
Lekshmi
authored
Jun 25, 2020
1 parent
f7cf6ef
commit e6ee574
Showing
8 changed files
with
417 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
"""Sample data used across many tests.""" | ||
|
||
# pylint: disable=too-many-lines | ||
import copy | ||
|
||
|
||
|
@@ -913,6 +913,162 @@ | |
} | ||
} | ||
|
||
|
||
CONVERSION = { | ||
'nameRequest': { | ||
'legalType': 'BC' | ||
}, | ||
'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': 'Completing Party', | ||
'appointmentDate': '2018-01-01' | ||
|
||
}, | ||
{ | ||
'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': 'Incorporator', | ||
'appointmentDate': '2018-01-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' | ||
}, | ||
'incorporationAgreement': { | ||
'agreementType': 'sample' | ||
} | ||
} | ||
|
||
FILING_TEMPLATE = { | ||
'filing': { | ||
'header': { | ||
|
@@ -953,6 +1109,26 @@ | |
} | ||
} | ||
|
||
CONVERSION_FILING_TEMPLATE = { | ||
'filing': { | ||
'header': { | ||
'name': 'conversion', | ||
'date': '2020-06-25', | ||
'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' | ||
}, | ||
'conversion': CONVERSION | ||
} | ||
} | ||
|
||
|
||
STUB_FILING = { | ||
} | ||
|
@@ -977,6 +1153,7 @@ | |
('appointReceiver', STUB_FILING), | ||
('continuedOut', STUB_FILING), | ||
('changeOfDirectors', CHANGE_OF_DIRECTORS_MAILING), # bcorp-specific version of filing | ||
('conversion', CONVERSION) | ||
] | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"$id": "https://bcrs.gov.bc.ca/.well_known/schemas/conversion", | ||
"required": [ | ||
"nameRequest", | ||
"offices", | ||
"parties", | ||
"shareClasses", | ||
"contactPoint" | ||
], | ||
"type": "object", | ||
"title": "Conversion Filing", | ||
"properties": { | ||
"nameRequest": { | ||
"$ref": "https://bcrs.gov.bc.ca/.well_known/schemas/name_request" | ||
}, | ||
"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" | ||
} | ||
}, | ||
"shareClasses": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "https://bcrs.gov.bc.ca/.well_known/schemas/share_class#/definitions/shareClass" | ||
} | ||
}, | ||
"contactPoint" : { | ||
"$ref": "https://bcrs.gov.bc.ca/.well_known/schemas/contactPoint" | ||
}, | ||
"incorporationAgreement": { | ||
"$ref": "https://bcrs.gov.bc.ca/.well_known/schemas/agreementType" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.