Skip to content

fix: consider wkly update transaction as cancellation - #259

Merged
mdiapenabc merged 1 commit into
release/cra-file-transfer-enabledfrom
fix/wkl-file-update-as-cancel
May 14, 2026
Merged

fix: consider wkly update transaction as cancellation#259
mdiapenabc merged 1 commit into
release/cra-file-transfer-enabledfrom
fix/wkl-file-update-as-cancel

Conversation

@mdiapenabc

@mdiapenabc mdiapenabc commented May 14, 2026

Copy link
Copy Markdown
Collaborator

Description

CRA Weekly file records carry a TRAN_TYP_CD of A (Application), C (Cancellation), or U (Update, initiated by CRA). Per the FDD, type U follows the same business logic as C, both with status COMPLETED/UPDATED set CSA Status to Not Eligible - Out of Pay, and both with status ABANDONED set CSA Status to Cancellation Refused - CRA.

What Changes

  • backend/src/cra/cra.constant.ts: TRANSACTION_TYPE_MAP.U now maps to 'cancellation'; removed 'update' from the TRANSACTION_TYPES tuple since it is no longer produced.
  • backend/src/cra/handlers/poll-cra-response.handler.spec.ts: added two test cases in the WKL describe block covering:
    • U + COMPLETED → fires CRA_WKL_APPROVED, passes careEndDate in additionalData, increments records_wkl_approved.
    • U + ABANDONED → fires CRA_WKL_REFUSED, passes careEndDate, increments records_wkl_refused.

@mdiapenabc
mdiapenabc requested a review from saifrazabc May 14, 2026 03:44

@saifrazabc saifrazabc left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving for consider wkly update transaction as cancellation

@mdiapenabc
mdiapenabc merged commit bd6abe8 into release/cra-file-transfer-enabled May 14, 2026
19 checks passed
@mdiapenabc
mdiapenabc deleted the fix/wkl-file-update-as-cancel branch May 14, 2026 04:26
plakkara-bc added a commit that referenced this pull request May 20, 2026
Co-authored-by: plakkara-bc <Preethi.Lakkaraju@gov.bc.ca>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants