Skip to content

Commit

Permalink
18952 - Change amalgamation to amalgamationApplication (#2664)
Browse files Browse the repository at this point in the history
* replace amalagation to amalgamationApplication

* update shared-components-enums version, app version
  • Loading branch information
kzdev420 authored Dec 15, 2023
1 parent f1f27d7 commit eab038a
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 18 deletions.
14 changes: 7 additions & 7 deletions auth-web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion auth-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@bcrs-shared-components/base-address": "2.0.3",
"@bcrs-shared-components/bread-crumb": "1.0.8",
"@bcrs-shared-components/corp-type-module": "1.0.13",
"@bcrs-shared-components/enums": "1.1.2",
"@bcrs-shared-components/enums": "1.1.4",
"@bcrs-shared-components/interfaces": "1.0.71",
"@mdi/font": "^4.5.95",
"@sentry/vue": "^7.49.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export default defineComponent({
}
} else if (business.nameRequest?.requestActionCd === NrRequestActionCodes.AMALGAMATE) { // If Amalgmation
if (amalgamationTypes.includes(business.nameRequest?.legalType)) {
payload = { filingType: FilingTypes.AMALGAMATION, business }
payload = { filingType: FilingTypes.AMALGAMATION_APPLICATION, business }
}
}
Expand Down
6 changes: 3 additions & 3 deletions auth-web/src/composables/affiliations-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const useAffiliations = () => {
/** Returns true if the affiliation is a temporary business. */
const isTemporaryBusiness = (business: Business): boolean => {
return (
(business.corpType?.code || business.corpType) === CorpTypes.AMALGAMATION ||
(business.corpType?.code || business.corpType) === CorpTypes.AMALGAMATION_APPLICATION ||
(business.corpType?.code || business.corpType) === CorpTypes.INCORPORATION_APPLICATION ||
(business.corpType?.code || business.corpType) === CorpTypes.REGISTRATION
)
Expand All @@ -53,8 +53,8 @@ export const useAffiliations = () => {
/** Returns the temp business description. */
const tempDescription = (business: Business): string => {
switch ((business.corpType?.code || business.corpType) as CorpTypes) {
case CorpTypes.AMALGAMATION:
return AffiliationTypes.AMALGAMATION
case CorpTypes.AMALGAMATION_APPLICATION:
return AffiliationTypes.AMALGAMATION_APPLICATION
case CorpTypes.INCORPORATION_APPLICATION:
return AffiliationTypes.INCORPORATION_APPLICATION
case CorpTypes.REGISTRATION:
Expand Down
2 changes: 1 addition & 1 deletion auth-web/src/models/business.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export interface BusinessRequest {
business?: {
legalType: CorpTypes
},
amalgamation?: {
amalgamationApplication?: {
type: AmalgamationTypes,
nameRequest: NameRequest
},
Expand Down
4 changes: 2 additions & 2 deletions auth-web/src/stores/business.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export const useBusinessStore = defineStore('business', () => {
}

switch (filingType) {
case FilingTypes.AMALGAMATION: {
case FilingTypes.AMALGAMATION_APPLICATION: {
filingBody = {
filing: {
business: {
Expand All @@ -281,7 +281,7 @@ export const useBusinessStore = defineStore('business', () => {
accountId: currentOrganization.value.id,
name: filingType
},
amalgamation: {
amalgamationApplication: {
type: AmalgamationTypes.REGULAR,
nameRequest: {
legalType: business.nameRequest.legalType,
Expand Down
4 changes: 2 additions & 2 deletions auth-web/src/util/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export enum InvoiceStatus {

export enum AffiliationTypes {
NAME_REQUEST = 'Name Request',
AMALGAMATION = 'Amalgamation Application',
AMALGAMATION_APPLICATION = 'Amalgamation Application',
INCORPORATION_APPLICATION = 'Incorporation Application',
CORPORATION = 'Corporation',
REGISTRATION = 'Registration'
Expand Down Expand Up @@ -196,7 +196,7 @@ export enum CorpTypes {
XPRO_SOCIETY = 'XS',

// overloaded values
AMALGAMATION = 'ATMP',
AMALGAMATION_APPLICATION = 'ATMP',
INCORPORATION_APPLICATION = 'TMP',
NAME_REQUEST = 'NR',
REGISTRATION = 'RTMP'
Expand Down
2 changes: 1 addition & 1 deletion auth-web/tests/unit/test-utils/test-data/affiliations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export const businesses: Business[] = [
{
businessIdentifier: 'TC6weERhbH',
corpType: {
code: CorpTypes.AMALGAMATION
code: CorpTypes.AMALGAMATION_APPLICATION
},
corpSubType: {
code: CorpTypes.BENEFIT_COMPANY
Expand Down

0 comments on commit eab038a

Please sign in to comment.