Skip to content

feat(currencies): add TND and SYP support - #582

Merged
vincent-pochet merged 4 commits into
mainfrom
feat/add-tnd-currency
Sep 18, 2026
Merged

vincent-pochet merged 4 commits into
mainfrom
feat/add-tnd-currency

Conversation

@vincent-pochet

@vincent-pochet vincent-pochet commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Context

TND (Tunisian Dinar) and SYP (Syrian Pound) are standard ISO 4217 currencies missing from the API currency list. The backend side is handled in getlago/lago-api#6424 for TND (originally contributed as getlago/lago-api#6389) and getlago/lago-api#6433 for SYP; this adds the same values to the spec so the documented enum matches what the API accepts.

Description

  • Add TND to src/schemas/Currency.yaml and src/schemas/CurrencyOrNull.yaml.
  • Add SYP to the same two schemas.
  • Rebuild openapi.yaml (npm run build), which adds both values to the bundled enums.
  • Drop the stale components.parameters.currency entry the rebuild removes.

That last bullet is unrelated drift inherited from main: the bundler inlines the parameter at each of its five $ref sites and prunes the shared component, so the committed bundle no longer matched its own sources and the up-to-date check failed here once main moved. redocly lint passes on the rebuilt bundle.

🤖 Generated with Claude Code

Add TND to the Currency and CurrencyOrNull enums and rebuild the bundled
spec.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
## Context

SYP (Syrian Pound) is a standard ISO 4217 currency missing from the API
currency list. The backend adds it in getlago/lago-api#6433, so the
documented enum has to match what the API accepts.

## Description

Add SYP to Currency and CurrencyOrNull, and rebuild the bundle.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
vincent-pochet added a commit to getlago/lago-go-client that referenced this pull request Sep 18, 2026
## Context

SYP (Syrian Pound) is a standard ISO 4217 currency missing from the Lago
currency list. The backend adds it in getlago/lago-api#6433, and the
spec in getlago/lago-openapi#582.

## Description

Add SYP to the Currency constants so the Go client accepts the same
values as the API.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@vincent-pochet vincent-pochet changed the title feat(currencies): add Tunisian Dinar (TND) feat(currencies): add TND and SYP support Sep 18, 2026
vincent-pochet and others added 2 commits September 18, 2026 09:57
## Context

The committed bundle carried a `components.parameters.currency` entry that
a rebuild from `src/` does not produce: the bundler inlines the parameter
at each of its five `$ref` sites and prunes the shared component. CI
rebuilds the bundle and diffs it against the committed file, so the drift
turned the branch red once main moved under it.

## Description

Rebuild the bundle from `src/`, dropping the stale component entry.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
vincent-pochet added a commit to getlago/lago-go-client that referenced this pull request Sep 18, 2026
* feat(currencies): add Tunisian Dinar (TND)

Add TND to the Currency constants so the client exposes the same currency
list as the API.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* feat(currencies): add Syrian Pound (SYP)

## Context

SYP (Syrian Pound) is a standard ISO 4217 currency missing from the Lago
currency list. The backend adds it in getlago/lago-api#6433, and the
spec in getlago/lago-openapi#582.

## Description

Add SYP to the Currency constants so the Go client accepts the same
values as the API.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
@vincent-pochet
vincent-pochet merged commit b890523 into main Sep 18, 2026
3 checks passed
@vincent-pochet
vincent-pochet deleted the feat/add-tnd-currency branch September 18, 2026 11:58
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