Skip to content

Commit

Permalink
Merge pull request #1904 from govuk-one-login/PYIC-5809-change-name-r…
Browse files Browse the repository at this point in the history
…oute-fix

PYIC-5809: add page-update-name step to update name
  • Loading branch information
Sam Barker authored May 10, 2024
2 parents a6abf9d + 75749ee commit 16651b6
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ states:
context: coi
events:
end:
targetState: UPDATE_DETAILS_PAGE
targetJourney: REUSE_EXISTING_IDENTITY
targetState: START

RETURN_TO_RP:
response:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ states:
UPDATE_NAME_WITH_ADDRESS_START:
events:
next:
targetState: RESET_IDENTITY_WITH_ADDRESS
targetState: UPDATE_NAME_PAGE_WITH_ADDRESS

UPDATE_NAME_WITHOUT_ADDRESS_START:
events:
next:
targetState: RESET_IDENTITY_WITHOUT_ADDRESS
targetState: UPDATE_NAME_PAGE_WITHOUT_ADDRESS

# Parent States

Expand Down Expand Up @@ -51,7 +51,20 @@ states:

# Journey States

# WITHOUT ADDRESS
# WITHOUT ADDRESS

UPDATE_NAME_PAGE_WITHOUT_ADDRESS:
response:
type: page
pageId: page-update-name
events:
update-name:
targetState: RESET_IDENTITY_WITHOUT_ADDRESS
end:
targetState: RETURN_TO_RP
page-ipv-reuse:
targetJourney: REUSE_EXISTING_IDENTITY
targetState: START

RESET_IDENTITY_WITHOUT_ADDRESS:
response:
Expand Down Expand Up @@ -86,7 +99,7 @@ states:
response:
type: page
pageId: page-dcmaw-success
context: coi-no-address
context: coiNoAddress
events:
next:
targetState: FRAUD_CHECK_UPDATE_NAME
Expand All @@ -107,6 +120,19 @@ states:

# WITH ADDRESS

UPDATE_NAME_PAGE_WITH_ADDRESS:
response:
type: page
pageId: page-update-name
events:
update-name:
targetState: RESET_IDENTITY_WITH_ADDRESS
end:
targetState: RETURN_TO_RP
page-ipv-reuse:
targetJourney: REUSE_EXISTING_IDENTITY
targetState: START

RESET_IDENTITY_WITH_ADDRESS:
response:
type: process
Expand Down Expand Up @@ -140,7 +166,7 @@ states:
response:
type: page
pageId: page-dcmaw-success
context: coi-address
context: coiAddress
events:
next:
targetState: ADDRESS_AND_FRAUD_UPDATE
Expand Down

0 comments on commit 16651b6

Please sign in to comment.