Skip to content

Commit 1d7f623

Browse files
authored
Merge pull request #1753 from companieshouse/feature/FEE-320
feature/FEE-320
2 parents c7fc7d2 + 2b4cc3d commit 1d7f623

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ REMOVE_LANDING_PAGE_URL | Remove OE landing Page | `/update-an-overseas-entity/c
9292
LOG_LEVEL | LOG level | DEBUG
9393
OAUTH2_CLIENT_ID | OAUTH2 client ID | client ID
9494
OAUTH2_CLIENT_SECRET | OAUTH2 client secret | secret
95-
PAYMENT_FEE | Payment Fee | config value
96-
UPDATE_PAYMENT_FEE | Update Payment Fee | config value
95+
OE01_PAYMENT_FEE | Payment Fee | config value
96+
OE02_UPDATE_PAYMENT_FEE | Update Payment Fee | config value
9797
PIWIK_URL | Matomo URL | `https://matomo.platform.aws.chdev.org`
9898
PIWIK_SITE_ID | Matomo Site ID | 24
9999
PIWIK_START_GOAL_ID | Matomo Start goal ID | 3

src/config/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ export const PIWIK_UPDATE_START_GOAL_ID = getEnvironmentValue("PIWIK_UPDATE_STAR
2121
export const PIWIK_REMOVE_START_GOAL_ID = getEnvironmentValue("PIWIK_REMOVE_START_GOAL_ID");
2222
export const PIWIK_RELEVANT_PERIOD_START_GOAL_ID = getEnvironmentValue("PIWIK_RELEVANT_PERIOD_START_GOAL_ID");
2323
export const PIWIK_CHS_DOMAIN = getEnvironmentValue("PIWIK_CHS_DOMAIN");
24-
export const PAYMENT_FEE = getEnvironmentValue("PAYMENT_FEE");
25-
export const UPDATE_PAYMENT_FEE = getEnvironmentValue("UPDATE_PAYMENT_FEE");
24+
export const OE01_PAYMENT_FEE = getEnvironmentValue("OE01_PAYMENT_FEE");
25+
export const OE02_UPDATE_PAYMENT_FEE = getEnvironmentValue("OE02_UPDATE_PAYMENT_FEE");
2626
export const LANDING_PAGE_URL = getEnvironmentValue("LANDING_PAGE_URL");
2727
export const LANDING_PAGE_STARTING_NEW_URL = getEnvironmentValue("LANDING_PAGE_STARTING_NEW_URL");
2828
export const UPDATE_LANDING_PAGE_URL = getEnvironmentValue("UPDATE_LANDING_PAGE_URL");

src/controllers/confirmation.controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { WhoIsRegisteringType } from "../model/who.is.making.filing.model";
66
import { isRegistrationJourney } from "../utils/url";
77
import { deleteApplicationData, fetchApplicationData } from "../utils/application.data";
88
import { Transactionkey } from "../model/data.types.model";
9-
import { CONFIRMATION_PAGE, PAYMENT_FEE } from "../config";
9+
import { CONFIRMATION_PAGE, OE01_PAYMENT_FEE } from "../config";
1010

1111
export const get = async (req: Request, res: Response, next: NextFunction) => {
1212

@@ -26,7 +26,7 @@ export const get = async (req: Request, res: Response, next: NextFunction) => {
2626
entityEmail: appData.entity?.email,
2727
userEmail: getLoggedInUserEmail(req.session),
2828
verificationCheckDays: 14,
29-
paymentFee: PAYMENT_FEE,
29+
paymentFee: OE01_PAYMENT_FEE,
3030
templateName: CONFIRMATION_PAGE
3131
});
3232
} catch (error: any) {

test/controllers/confirmation.controller.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import {
2525
} from '../../src/utils/application.data';
2626

2727
import {
28-
PAYMENT_FEE,
28+
OE01_PAYMENT_FEE,
2929
CONFIRMATION_URL,
3030
CONFIRMATION_WITH_PARAMS_URL,
3131
} from "../../src/config";
@@ -93,7 +93,7 @@ describe("Confirmation controller tests", () => {
9393
expect(resp.text).toContain(CONFIRMATION_NUMBER_OF_DAYS);
9494
expect(resp.text).toContain(CONFIRMATION_WHAT_YOU_NEED_TO_DO_NOW);
9595
expect(resp.text).toContain(ENTITY_OBJECT_MOCK.email);
96-
expect(resp.text).toContain(${PAYMENT_FEE}`);
96+
expect(resp.text).toContain(${OE01_PAYMENT_FEE}`);
9797
expect(resp.text).toContain(userMail);
9898
expect(resp.text).toContain(config.VF01_FORM_DOWNLOAD_URL);
9999
expect(mockDeleteApplicationData).toHaveBeenCalledTimes(1);
@@ -125,7 +125,7 @@ describe("Confirmation controller tests", () => {
125125
expect(resp.text).toContain(CONFIRMATION_NUMBER_OF_DAYS);
126126
expect(resp.text).toContain(CONFIRMATION_WHAT_YOU_NEED_TO_DO_NOW);
127127
expect(resp.text).toContain(ENTITY_OBJECT_MOCK.email);
128-
expect(resp.text).toContain(${PAYMENT_FEE}`);
128+
expect(resp.text).toContain(${OE01_PAYMENT_FEE}`);
129129
expect(resp.text).toContain(userMail);
130130
expect(resp.text).toContain(config.VF01_FORM_DOWNLOAD_URL);
131131
expect(mockDeleteApplicationData).toHaveBeenCalledTimes(1);

test/setup.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ export default () => {
1616
process.env.PIWIK_REMOVE_START_GOAL_ID = "test";
1717
process.env.PIWIK_RELEVANT_PERIOD_START_GOAL_ID = "test";
1818
process.env.PIWIK_CHS_DOMAIN = "*.chs.local";
19-
process.env.PAYMENT_FEE = "234.00";
20-
process.env.UPDATE_PAYMENT_FEE = "234.00";
19+
process.env.OE01_PAYMENT_FEE = "234.00";
20+
process.env.OE02_UPDATE_PAYMENT_FEE = "234.00";
2121
process.env.LANDING_PAGE_URL = "/register-an-overseas-entity/sold-land-filter?start=0";
2222
process.env.LANDING_PAGE_STARTING_NEW_URL = "/register-an-overseas-entity/starting-new";
2323
process.env.UPDATE_LANDING_PAGE_URL = "/update-an-overseas-entity/overseas-entity-query";

0 commit comments

Comments
 (0)