Skip to content

feat: add GBP currency support - #80

Merged
rafa-thayto merged 1 commit into
mainfrom
rafa-thayto/gbp-currency-support
Oct 27, 2026
Merged

rafa-thayto merged 1 commit into
mainfrom
rafa-thayto/gbp-currency-support

Conversation

@rafa-thayto

Copy link
Copy Markdown
Contributor

Summary

The live API accepts GBP on both FX endpoints, but the SDK doesn't type it yet. This mirrors #77 (EUR) for GBP:

  • add GBP to the shared Currency union
  • allow GBP in quotes.getFxRate (to) and payins.quotes.getFxRate (from)
  • add GBP to Payin.currency
  • minor changeset, matching the EUR one

Payout currency fields use Currency directly, so they pick up GBP without changes.

Notes for review

  • Payin.currency is an assumption. The live request schemas confirm GBP on the FX endpoints (POST /quotes/fx to, POST /payin-quotes/fx from/to), but I couldn't check the payin response schema. Widening Payin.currency follows the EUR precedent and the payin FX enum.
  • No .api-sync change. The committed spec-snapshot.json predates GBP, so there's no unmodeled entry to drop. Api-sync may flag GBP once the snapshot is refreshed.
  • Out of scope: the API also has a new UK faster_payments bank account rail, which isn't in Rail or the bank-account types yet. That should be a separate PR.

Testing

  • bun run check-types
  • bun run lint:check
  • bun run test (189 passed)
  • bun run contract-check
  • bun run sync:check

The live API accepts GBP on the payout FX (to) and payin FX (from/to)
endpoints. Mirror the EUR support from #77: add GBP to the shared
Currency union, the FX input types, and the payin response currency.
@BernardoSM

BernardoSM commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues
✅ Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@rafa-thayto
rafa-thayto merged commit 6df9b24 into main Oct 27, 2026
11 checks passed
@rafa-thayto
rafa-thayto deleted the rafa-thayto/gbp-currency-support branch October 27, 2026 18:51
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