Add optional transaction-count breakdown per status (SPS 2026) - #8
Draft
claude[bot] wants to merge 1 commit into
Draft
Add optional transaction-count breakdown per status (SPS 2026)#8claude[bot] wants to merge 1 commit into
claude[bot] wants to merge 1 commit into
Conversation
…s responses SPS 2026 changes the status condition for NbOfTxsPerSts from "not defined" to "optional", so financial institutions can report how many transactions were assigned each status. Add the same breakdown as an optional array to PaymentSubmissionStatus and StandingOrderSubmissionStatus, reusing the existing transaction-level status codes. Closes #7 (status report part only, see PR description for scope) Co-Authored-By: sfti-agent <257322368+sfti-agent@users.noreply.github.com>
1 task
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.
Closes #7
Summary
Issue #7 bundles several SPS/CBPR+ 2026 changes. This PR implements the one item that was concrete and unambiguous enough to design without further working-group input:
Status Report 4.3 —
NbOfTxsPerStschanged from "not defined" to "optional"Added an optional
numberOfTransactionsPerStatusarray toPaymentSubmissionStatusandStandingOrderSubmissionStatus(used byGET /single-payments/{submissionId}/status,GET /payment-requests/{submissionId}/statusandGET /standing-orders/{submissionId}/status). Each entry carries astatusCode(reusing the existing transaction-level status codes already defined onPaymentInstructionItemStatus) and anumberOfTransactionscount, so a server can report how many of the underlying transactions were assigned a given status without having to enumerate every transaction individually. This is purely additive — existing clients that ignore the new field are unaffected.Not implemented in this PR — left for the working group
RemittanceInformation): the issue itself poses this as an open question ("To decide: … Which additional attributes for structured Remittance Information should be included?") with only examples (RfrdDocInf,RfrdDocAmt) rather than a definitive list, and asks which release the change should target. Since the issue explicitly leaves the choice of attributes open to the working group, I left this out rather than guessing a specific attribute set. Left a comment on the issue explaining this and asking for the concrete attribute list.Assumptions
numberOfTransactionsPerStatusis modeled as an array of{statusCode, numberOfTransactions}objects (no control-sum field), since the issue only describes "indicates the number of transactions reflected by the respective status" and no monetary breakdown was requested.statusCodeenum for the new object reuses the transaction-level codes already used onPaymentInstructionItemStatus(ACCC,ACCP,ACSC,ACWC,RJCT) for consistency with how individual transaction statuses are already represented in this API.