Record what SimpleFIN actually sends for a loan account
Fixes #159.
SimplefinAccount::Liabilities::LoanProcessor#update_loan_attributes has carried an open question since it was written:
I don't know if SimpleFin typically provide detailed loan metadata like interest rates, terms, etc.
#159 existed to answer it from a real payload rather than from the protocol alone, and @adbsmith contributed one — a LoanCare mortgage:
account: id, org, name, balance, currency, holdings, balance-date, available-balance
No extra field at all, and extra is the only place a rate or term could appear: the protocol's Account object defines no interest rate, APR, term or original principal of its own. So there is no provider-metadata path to build here, and the stub is empty because there is nothing to read — not because nobody looked.
The comment now says that, with the payload's shape, the protocol link, and the one thing the evidence does not establish: extra is optional and server-discretionary, so one server answering for itself does not prove that none populate it. If one ever turns up, this is the method that reads it — with a payload attached, the way #159 was settled.
Also recorded from the same contribution: escrow arrives as separate transactions rather than as a split inside the mortgage payment, so a SimpleFIN mortgage's payment stream is already decomposed on the provider side.
Scope
Comment-only. No behaviour changes, and none was available to change — the method was already empty. Rate and term for SimpleFIN users stay on the transaction-text path (#142 Phase 2), which never depended on provider metadata.
Verification
bin/rubocop clean; test/models/simplefin_account/ 43 runs, 0 failures.
Summary by CodeRabbit
- Documentation
- Clarified that SimpleFIN does not provide loan metadata such as interest rate, APR, term, or original principal.
- Documented that loan rate and term information must be derived from transaction text when available.