Skip to content

Commit

Permalink
18951 Change amalgamation to amalgamationApplication (#750)
Browse files Browse the repository at this point in the history
* change amalgamation to amalgamationApplication

* update shared-component-enum version

* update lint

* revert auto changes
  • Loading branch information
kzdev420 authored Dec 19, 2023
1 parent 43a847d commit 7b3b5c1
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 35 deletions.
40 changes: 12 additions & 28 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "name-request",
"version": "5.3.11",
"version": "5.3.12",
"private": true,
"appName": "Name Request UI",
"sbcName": "SBC Common Components",
Expand All @@ -16,7 +16,7 @@
"@babel/compat-data": "^7.21.5",
"@bcrs-shared-components/breadcrumb": "2.1.24",
"@bcrs-shared-components/corp-type-module": "1.0.13",
"@bcrs-shared-components/enums": "1.1.1",
"@bcrs-shared-components/enums": "1.1.4",
"@bcrs-shared-components/genesys-web-message": "1.0.0",
"@bcrs-shared-components/interfaces": "1.0.67",
"@bcrs-shared-components/staff-payment": "1.0.29",
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/business.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export interface BusinessRequest {
nrNumber?: string
}
},
amalgamation?: {
amalgamationApplication?: {
nameRequest: {
legalType: string
nrNumber?: string
Expand Down
8 changes: 4 additions & 4 deletions src/mixins/nr-affiliation-mixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,13 @@ export class NrAffiliationMixin extends Mixins(CommonMixin) {
const nrNumber = nr.nrNum
if (!this.isFirm(nr)) {
if (nr.request_action_cd === 'AML') {
name = FilingTypes.AMALGAMATION
name = FilingTypes.AMALGAMATION_APPLICATION
legalType = nr.legalType
businessRequest = {
filing: {
business: { legalType },
header: { accountId, name },
amalgamation: {
amalgamationApplication: {
type: AmalgamationTypes.REGULAR,
nameRequest: { legalType, nrNumber }
}
Expand Down Expand Up @@ -244,13 +244,13 @@ export class NrAffiliationMixin extends Mixins(CommonMixin) {
const businessRequest = {
filing: {
header: {
name: FilingTypes.AMALGAMATION,
name: FilingTypes.AMALGAMATION_APPLICATION,
accountId: accountId
},
business: {
legalType: legalType
},
amalgamation: {
amalgamationApplication: {
nameRequest: {
legalType: legalType
},
Expand Down

0 comments on commit 7b3b5c1

Please sign in to comment.