Skip to content

MON-4025: Add CaaS transaction split methods#162

Merged
ingridacero merged 2 commits into
mainfrom
MON-4025_add_caas_splits_Transactions
Jun 4, 2026
Merged

MON-4025: Add CaaS transaction split methods#162
ingridacero merged 2 commits into
mainfrom
MON-4025_add_caas_splits_Transactions

Conversation

@ingridacero

@ingridacero ingridacero commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Description

Implements MON-4025: CaaS transaction split support in @mft/moneyhub-api-client, aligned with api-gateway (MON-4023).

Added

  • caasPutTransactionSplits: PUT /accounts/{accountId}/transactions/{transactionId}/splits, scope caas:transaction_splits:write, body { data: splits }, returns ApiResponse with split data (amount, userCategoryId, description)
  • caasDeleteTransactionSplits: DELETE on the same path, scope caas:transaction_splits:delete, returns HTTP 204

Screenshots, Recordings

Screenshot 2026-06-04 at 11 04 35 am

This PR includes:

  • Unit tests
  • Contract tests
  • Logging
  • Monitoring
  • Dependencies updates
  • Swagger/Documentation changes

Added config changes?

  • Yes, add more details and remember to add them in ETCD
  • No

Added database migrations/resources (db, collection, table, column)?

  • Yes, please add more details and get them 'signed off' by devsecops team (add them to the PR)
  • No

Are there any post deployment tasks that need to be performed?

Publish a new @mft/moneyhub-api-client version after merge. Consumers need tokens with caas:transaction_splits:write and caas:transaction_splits:delete for the new methods. Run npm run test-caas against an environment with api-gateway splits deployed.


Note

Low Risk
Additive client API and docs/tests only; no changes to auth, existing CAAS transaction flows, or shared request core beyond registering the new module.

Overview
Adds CaaS transaction split support to the API client: caasPutTransactionSplits (PUT, scope caas:transaction_splits:write, body { data: splits }, returns upserted splits) and caasDeleteTransactionSplits (DELETE, scope caas:transaction_splits:delete, returns HTTP 204).

New request module src/requests/caas/transaction-splits.ts and types are wired into the client export list. README documents both methods; CLI examples under examples/caas/ exercise put (inline JSON or file) and delete. Integration tests cover PUT (Swagger validation + response shape) and DELETE (enrich → put → delete → 204).

Reviewed by Cursor Bugbot for commit f82cd4b. Bugbot is set up for automated code reviews on this repo. Configure here.

@ingridacero ingridacero merged commit a7fb582 into main Jun 4, 2026
3 checks passed
@ingridacero ingridacero deleted the MON-4025_add_caas_splits_Transactions branch June 4, 2026 10:31
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