Skip to content

build: port BaseMessage type guards from feat-paysys-poc and bump frms-coe-lib to 8.0.0-rc.3 #404

@Justus-at-Tazama

Description

@Justus-at-Tazama

Context

frms-coe-lib has been updated to 8.0.0-rc.3. The paysys team already updated logic.service.ts on the feat-paysys-poc branch to use isPacs002Transaction and isBaseMessageTransaction guards. This issue tracks porting those changes to dev with the updated library version.

Changes required

  • Bump @tazama-lf/frms-coe-lib to 8.0.0-rc.3
  • Port logic.service.ts changes from feat-paysys-poc (type guard pattern for transactionId derivation)
  • Update RuleRequest usage to RuleRequest<SupportedTransactionMessage> where applicable
  • Build, test, publish rc, raise PR to dev

Notes

The paysys branch already contains the correct pattern:

if (isPacs002Transaction(transaction)) {
  transactionId = transaction.FIToFIPmtSts.GrpHdr.MsgId;
}
if (isBaseMessageTransaction(transaction)) {
  transactionId = transaction.MsgId;
}

New guards isPacs008Transaction, isPain001Transaction, isPain013Transaction are also available in 8.0.0-rc.3 if needed.

Related

Part of the BaseMessage refactor chain. See base-message-refactor.md for full pipeline analysis.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions