Skip to content

Commit 6cdd246

Browse files
committed
lp-1378 : update url limited-partner-type
1 parent 86ef974 commit 6cdd246

23 files changed

+80
-81
lines changed

src/presentation/controller/common/PartnerController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ abstract class PartnerController extends AbstractController {
141141
};
142142
}
143143

144-
partnerChoice(urls: { addPersonUrl: string; addLegalEntityUrl: string }) {
144+
partnerType(urls: { addPersonUrl: string; addLegalEntityUrl: string }) {
145145
return (request: Request, response: Response, next: NextFunction) => {
146146
try {
147147
const { ids } = this.extractRequestData(request);

src/presentation/controller/postTransition/GeneralPartnerController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class GeneralPartnerPostTransitionController extends PartnerController {
3636
}
3737

3838
generalPartnerChoice() {
39-
return super.partnerChoice({
39+
return super.partnerType({
4040
addPersonUrl: ADD_GENERAL_PARTNER_PERSON_URL,
4141
addLegalEntityUrl: ADD_GENERAL_PARTNER_LEGAL_ENTITY_URL
4242
});

src/presentation/controller/postTransition/LimitedPartnerController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class LimitedPartnerPostTransitionController extends PartnerController {
3636
}
3737

3838
limitedPartnerChoice() {
39-
return super.partnerChoice({
39+
return super.partnerType({
4040
addPersonUrl: ADD_LIMITED_PARTNER_PERSON_URL,
4141
addLegalEntityUrl: ADD_LIMITED_PARTNER_LEGAL_ENTITY_URL
4242
});

src/presentation/controller/postTransition/pageType.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ enum PostTransitionPageType {
1414
addGeneralPartnerLegalEntity = "add-general-partner-legal-entity",
1515
generalPartnerCheckYourAnswers = "general-partner-check-your-answers",
1616

17-
limitedPartnerChoice = "limited-partner-choice",
17+
limitedPartnerType = "limited-partner-type",
1818
addLimitedPartnerPerson = "add-limited-partner-person",
1919
addLimitedPartnerLegalEntity = "add-limited-partner-legal-entity",
2020
limitedPartnerCheckYourAnswers = "limited-partner-check-your-answers",

src/presentation/controller/postTransition/routing/limitedPartner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const postTransitionRoutingLimitedPartnerChoice = {
1212
previousUrl: url.LANDING_PAGE_URL,
1313
currentUrl: url.LIMITED_PARTNER_CHOICE_URL,
1414
nextUrl: "/",
15-
pageType: PostTransitionPageType.limitedPartnerChoice
15+
pageType: PostTransitionPageType.limitedPartnerType
1616
};
1717

1818
const postTransitionRoutingAddLimitedPartnerPerson = {

src/presentation/controller/postTransition/template.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const ADD_GENERAL_PARTNER_LEGAL_ENTITY_TEMPLATE = PostTransitionPageType.
1111
export const GENERAL_PARTNER_CHECK_YOUR_ANSWERS_TEMPLATE = PostTransitionPageType.generalPartnerCheckYourAnswers;
1212

1313
// limited partner
14-
export const LIMITED_PARTNER_CHOICE_TEMPLATE = PostTransitionPageType.limitedPartnerChoice;
14+
export const LIMITED_PARTNER_CHOICE_TEMPLATE = PostTransitionPageType.limitedPartnerType;
1515
export const ADD_LIMITED_PARTNER_PERSON_TEMPLATE = PostTransitionPageType.addLimitedPartnerPerson;
1616
export const ADD_LIMITED_PARTNER_LEGAL_ENTITY_TEMPLATE = PostTransitionPageType.addLimitedPartnerLegalEntity;
1717
export const LIMITED_PARTNER_CHECK_YOUR_ANSWERS_TEMPLATE = PostTransitionPageType.limitedPartnerCheckYourAnswers;

src/presentation/controller/registration/GeneralPartnerController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class GeneralPartnerRegistrationController extends PartnerController {
3434
}
3535

3636
generalPartnerChoice() {
37-
return super.partnerChoice({
37+
return super.partnerType({
3838
addPersonUrl: ADD_GENERAL_PARTNER_PERSON_URL,
3939
addLegalEntityUrl: ADD_GENERAL_PARTNER_LEGAL_ENTITY_URL
4040
});

src/presentation/controller/registration/LimitedPartnerController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class LimitedPartnerRegistrationController extends PartnerController {
3333
}
3434

3535
limitedPartnerChoice() {
36-
return super.partnerChoice({
36+
return super.partnerType({
3737
addPersonUrl: ADD_LIMITED_PARTNER_PERSON_URL,
3838
addLegalEntityUrl: ADD_LIMITED_PARTNER_LEGAL_ENTITY_URL
3939
});

src/presentation/controller/registration/PageType.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ enum RegistrationPageType {
1515
removeGeneralPartner = "remove-general-partner",
1616

1717
limitedPartners = "limited-partners",
18-
limitedPartnerChoice = "limited-partner-choice",
18+
limitedPartnerType = "limited-partner-type",
1919
addLimitedPartnerPerson = "add-limited-partner-person",
2020
addLimitedPartnerLegalEntity = "add-limited-partner-legal-entity",
2121
reviewLimitedPartners = "review-limited-partners",

src/presentation/controller/registration/routing/limitedPartner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const registrationRoutingLimitedPartnerChoice = {
1616
previousUrl: url.LIMITED_PARTNERS_URL,
1717
currentUrl: url.LIMITED_PARTNER_CHOICE_URL,
1818
nextUrl: "",
19-
pageType: RegistrationPageType.limitedPartnerChoice
19+
pageType: RegistrationPageType.limitedPartnerType
2020
};
2121

2222
const registrationRoutingAddLimitedPartnerPerson = {

0 commit comments

Comments
 (0)