Skip to content

Expose account servicer on Account DTO#184

Open
dereuromark wants to merge 1 commit into
genkgo:masterfrom
dereuromark:issue-182-account-servicer
Open

Expose account servicer on Account DTO#184
dereuromark wants to merge 1 commit into
genkgo:masterfrom
dereuromark:issue-182-account-servicer

Conversation

@dereuromark
Copy link
Copy Markdown

@dereuromark dereuromark commented Apr 16, 2026

Summary

Implements option C from #182: adds Account::getServicer(): ?FinancialInstitution, surfacing the <Acct><Svcr><FinInstnId> element on the public DTO surface for CAMT.052, CAMT.053, and CAMT.054 messages.

Downstream consumers can now obtain the servicing bank's BIC and name alongside the account identification, which is the common IBAN+BIC pair needed for reconciliation workflows.

What changed

  • New DTO Genkgo\Camt\DTO\FinancialInstitution with getBic(): ?string and getName(): ?string.
  • Account gets a nullable servicer property with getServicer() / setServicer().
  • Shared Decoder\Message::getAccountServicer() helper extracts BICFI (falling back to BIC) and Nm from Svcr/FinInstnId.
  • Wired into the 052 / 053 / 054 addRecords() paths so the servicer is attached to whatever Account subclass getAccount() returns (Iban, BBAN, UPIC, Proprietary, Other).

Adds Account::getServicer(): ?FinancialInstitution, surfacing the
<Acct><Svcr><FinInstnId> element from CAMT.052/053/054 messages. Reads
BICFI (falling back to BIC) and Nm, so downstream consumers can obtain
the servicing bank's BIC and name alongside the account identification.
@dereuromark
Copy link
Copy Markdown
Author

Tip: you can set in your settings, that "only new github users" are not allowed to run the CI pipeline.
Then there is no extra approval needed here, and the PR sender can directly check if CI will be green.

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.

1 participant