-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ccap 469 create providerresponse registration tax id ein screen #998
base: main
Are you sure you want to change the base?
Ccap 469 create providerresponse registration tax id ein screen #998
Conversation
22b04cc
to
bbadfd5
Compare
src/main/java/org/ilgcc/app/pdf/ProviderApplicationPreparer.java
Outdated
Show resolved
Hide resolved
src/main/java/org/ilgcc/app/pdf/ProviderApplicationPreparer.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add tests: ProviderresponseProviderRegistrationJourneyTest.java
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add tests: ProviderresponseProviderRegistrationJourneyTest.java
|
||
Locale locale = LocaleContextHolder.getLocale(); | ||
|
||
String regex = "\\d{9}"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of creating an action, you can add a validation to the providerresponse input file:
See gcc for an example:
@pattern(regexp = "\d{3}-\d{2}-\d{4}", message = "{errors.invalid-ssn}")
@Encrypted
private String parentSsn;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This validation actually forces an EIN to be added but the copy states "This isn't required to register for CCAP, but will be required in order to actually get paid by CCAP."
Doing it as a pattern annotation means that the pattern is checked if the value isn't null.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nevermind
@@ -37,7 +37,7 @@ public Map<String, List<String>> runValidation(FormSubmission formSubmission, Su | |||
|
|||
if (!requiredSSNMatcher.matches()) { | |||
errorMessages.put(INPUT_NAME, | |||
List.of(messageSource.getMessage("registration-home-provider-ssn.error", null, locale))); | |||
List.of(messageSource.getMessage("registration-tax-id-ssn.error", null, locale))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here:
Instead of creating an action, you can add a validation to the providerresponse input file:
See gcc for an example:
@pattern(regexp = "\d{3}-\d{2}-\d{4}", message = "{errors.invalid-ssn}")
@Encrypted
private String parentSsn;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nevermind
…agOnTest.java, ProviderApplicationPreparer
0eadd40
to
f560916
Compare
🔗 Jira ticket
CCAP-469
✍️ Description
📷 Design reference
Figma
Content Manager
✅ Completion tasks