Skip to content
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(EMS-4000): application submission - conditional email template #3397

Merged
merged 11 commits into from
Dec 12, 2024

Conversation

ttbarnes
Copy link
Contributor

@ttbarnes ttbarnes commented Dec 11, 2024

Introduction ✏️

This PR updates the application submission emails logic so that a different "confirmation" email will be sent if the application is:

  • A multiple contract policy.
  • The MAXIMUM_BUYER_WILL_OWE field is £25,000 or less.

If the above conditions are true, an exporter is potentially eligible "Small Export Builder".

Resolution ✔️

  • Restructure the CONFIRMATION email template ID constants.
  • Create new helper function, getSubmittedConfirmationTemplateId.
  • Update application version constants.
  • Update application.submittedEmail to pass templateId via getSubmittedConfirmationTemplateId.
  • Update unit tests.
  • Add E2E tests for specifically submitting a multiple contract policy with:
    • MAXIMUM_BUYER_WILL_OWE below the threshold.
    • MAXIMUM_BUYER_WILL_OWE above the threshold.

Miscellaneous ➕

  • Minor documentation improvement.
  • E2E cypress command improvements.
  • Align application versions.
  • Minor content string improvements.

@ttbarnes ttbarnes added enhancement New feature or request feature New functionality chore Chore labels Dec 11, 2024
@ttbarnes ttbarnes self-assigned this Dec 11, 2024
@ttbarnes ttbarnes merged commit 8e890f3 into main-iterations-2 Dec 12, 2024
182 checks passed
@ttbarnes ttbarnes deleted the feat/EMS-4000 branch December 12, 2024 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Chore enhancement New feature or request feature New functionality tech Technical debt/improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants