forked from bcgov/business-filings-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create draft amalgamation + redirect + misc. fixes/updates (bcgov#601)
* Create draft amalgamation + redirect + misc. fixes/updates * Fixed comments * Fixed in response to Sev's comments + added unit tests * fixed typos
- Loading branch information
1 parent
927667d
commit 03aca5b
Showing
13 changed files
with
259 additions
and
33 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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,67 @@ | ||
import { AmalgamationTypes, CorpTypeCd, FilingTypes } from '@/enums' | ||
import { CorrectNameOptions } from '@bcrs-shared-components/enums' | ||
import { CompletingPartyIF, ContactPointIF, CourtOrderIF, | ||
NameTranslationIF, ShareClassIF } from '@bcrs-shared-components/interfaces' | ||
import { OfficeAddressIF } from './address-interfaces' | ||
|
||
/** | ||
* A filing's amalgamation application object from the API. See: | ||
* https://github.com/bcgov/business-schemas/blob/main/src/registry_schemas/schemas/amalgamation_application.json | ||
*/ | ||
export interface RegisteredRecordsAddressesIF { | ||
registeredOffice: OfficeAddressIF | ||
recordsOffice?: OfficeAddressIF | ||
} | ||
|
||
export interface NameRequestFilingIF { | ||
legalType: CorpTypeCd | ||
legalName?: string | ||
nrNumber?: string | ||
correctNameOption?: CorrectNameOptions | ||
} | ||
|
||
export interface AmalgamationApplicationIF { | ||
amalgamatingBusinesses: any[] | ||
courtApproval: boolean | ||
type: AmalgamationTypes | ||
nameRequest: NameRequestFilingIF | ||
nameTranslations: NameTranslationIF[] | ||
offices: RegisteredRecordsAddressesIF | object | ||
contactPoint: ContactPointIF | ||
parties: CompletingPartyIF[] | ||
|
||
// BEN / CC / BC / ULC only: | ||
shareStructure?: { | ||
shareClasses: ShareClassIF[] | ||
} | ||
incorporationAgreement?: { | ||
agreementType: string | ||
} | ||
// ULC only: | ||
courtOrder?: CourtOrderIF | ||
} | ||
|
||
/** Amalgamation Application filing interface. */ | ||
export interface AmalgamationApplicationFilingIF { | ||
header: { | ||
name: FilingTypes | ||
certifiedBy: string | ||
date: string | ||
effectiveDate?: string | ||
filingId?: number | ||
folioNumber?: string | ||
isFutureEffective: boolean | ||
|
||
// staff payment properties: | ||
routingSlipNumber?: string | ||
bcolAccountNumber?: string | ||
datNumber?: string | ||
waiveFees?: boolean | ||
priority?: boolean | ||
} | ||
business: { | ||
legalType: CorpTypeCd | ||
identifier: string | ||
} | ||
amalgamationApplication: AmalgamationApplicationIF | ||
} |
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
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.