MON-4025: Add CaaS transaction split methods#162
Merged
Conversation
4b79643 to
f82cd4b
Compare
stefanspita-mh
approved these changes
Jun 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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, scopecaas:transaction_splits:write, body{ data: splits }, returnsApiResponsewith splitdata(amount,userCategoryId,description)caasDeleteTransactionSplits:DELETEon the same path, scopecaas:transaction_splits:delete, returns HTTP204Screenshots, Recordings
This PR includes:
Added config changes?
Added database migrations/resources (db, collection, table, column)?
Are there any post deployment tasks that need to be performed?
Publish a new
@mft/moneyhub-api-clientversion after merge. Consumers need tokens withcaas:transaction_splits:writeandcaas:transaction_splits:deletefor the new methods. Runnpm run test-caasagainst 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, scopecaas:transaction_splits:write, body{ data: splits }, returns upserted splits) andcaasDeleteTransactionSplits(DELETE, scopecaas:transaction_splits:delete, returns HTTP 204).New request module
src/requests/caas/transaction-splits.tsand types are wired into the client export list. README documents both methods; CLI examples underexamples/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.