-
Notifications
You must be signed in to change notification settings - Fork 21
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
feat: update logic to reflect July 2024 IAA and Beneficiary changes #3503
Conversation
QA Summary
Test CoverageCoverage report for `packages/client`
Coverage report for `packages/server`
|
Terraform Summary
Hint: If "Terraform Format & Style" failed, run OutputValidation Output
Plan Summary
Pusher: @as1729, Action: |
Unique_Entity_Identifier__c: null, | ||
EIN__c: null, | ||
}; | ||
const recipientExists = true; |
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.
Should this be a boolean or an object?
errors.push(new ValidationError( | ||
'At least one of UEI or TIN/EIN must be set, but both are missing', | ||
{ col: 'C, D', severity: 'err' }, | ||
)); | ||
} else if (isBeneficiary && recipientExists) { | ||
if (recipientExists.created_at < new Date('2024-07-01') && !hasTIN && !hasUEI) { |
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.
Now that we are using recipientExists
as an object, it may make sense to rename it to not seem like a boolean.
Ticket #3372
Description
The PR ensures the following:
For Beneficiary subrecipient type.
If the beneficiary was created prior to July 1st, 2024 - require either a UEI or TIN.
If the beneficiary was created after July 1st, 2024 - require a TIN.
For IAA subrecipient type.
Raise an error if there is no UEI or TIN letting the user know that we currently do not support it.
Note: There will soon be a PR that supports ability to import IAA subrecipients without a UEI or TIN.
Screenshots / Demo Video
Testing
Automated and Unit Tests
Manual tests for Reviewer
Checklist