-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
18640 Amalgamating businesses structure + validations + etc (#587)
* - app version = 5.6.6 - worked on amalgamating businesses data/types - renamed some enums - fixed table key - added more BusinessTable logic (including foreign jurisdiction) - updated static (test) data - updated some imports in unit tests * - misc fixes
- Loading branch information
1 parent
73e61e5
commit a57bd1c
Showing
15 changed files
with
186 additions
and
127 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
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,12 @@ | ||
export enum AmalgamatingStatuses { | ||
OK, | ||
ERROR_AFFILIATION, | ||
ERROR_CCC_MISMATCH, | ||
ERROR_FOREIGN, | ||
ERROR_NIGS | ||
} | ||
|
||
export enum AmlRoles { | ||
AMALGAMATING = 'amalgamating', | ||
HOLDING = 'holding' | ||
} |
This file was deleted.
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
45 changes: 43 additions & 2 deletions
45
src/interfaces/store-interfaces/state-interfaces/amalgamation-state-interface.ts
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 |
---|---|---|
@@ -1,6 +1,47 @@ | ||
import { AmalgamationTypes } from '@/enums' | ||
import { AddressIF } from '@/interfaces' | ||
import { AmalgamatingStatuses, AmalgamationTypes, AmlRoles } from '@/enums' | ||
import { CorpTypeCd } from '@bcrs-shared-components/corp-type-module' | ||
|
||
/** Interface for LEAR amalgamating businesses. */ | ||
interface AmalgamatingLearIF { | ||
type: 'lear' | ||
|
||
// properties in schema: | ||
role: AmlRoles | ||
identifier: string | ||
|
||
// properties for UI only: | ||
name?: string | ||
email?: string | ||
legalType?: CorpTypeCd | ||
address?: AddressIF | ||
goodStanding?: boolean | ||
status?: AmalgamatingStatuses | ||
} | ||
|
||
/** Interface for foreign amalgamating businesses. */ | ||
interface AmalgamatingForeignIF { | ||
type: 'foreign' | ||
|
||
// properties in schema: | ||
role: AmlRoles | ||
foreignJurisdiction: { | ||
region?: string | ||
country: string | ||
} | ||
legalName: string | ||
corpNumber: string | ||
|
||
// properties for UI only: | ||
status?: AmalgamatingStatuses | ||
} | ||
|
||
// type alias (union type) | ||
export type AmalgamatingBusinessIF = AmalgamatingLearIF | AmalgamatingForeignIF | ||
|
||
/** State interface for amalgamation-specific data. */ | ||
export interface AmalgamationStateIF { | ||
amalgamatingBusinesses: Array<any> | ||
amalgamatingBusinesses: Array<AmalgamatingBusinessIF> | ||
courtApproval: boolean | ||
type: AmalgamationTypes | ||
} |
Oops, something went wrong.