Skip to content

feat(payments): generate payments list filters - #27

Draft
sarkissianraffi wants to merge 2 commits into
mainfrom
feat/payments-list-filters
Draft

sarkissianraffi wants to merge 2 commits into
mainfrom
feat/payments-list-filters

Conversation

@sarkissianraffi

@sarkissianraffi sarkissianraffi commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

What changed

Advance spec/openapi.yaml to the payment filter OpenAPI commit and regenerate command descriptors, operations.json, reference docs and both payment man pages. All requested flags appear on lago payments list, with equivalent filters on lago customers payments. No flags or mapping tables added by hand.

Why

Finance can use the same payment predicate in the CLI, public API and UI. The pinned spec is temporarily ahead of the published snapshot; the daily drift job will reconcile after the OpenAPI PR merges and publishes. Source commit: 1cb1dd67552d07279e74f005ac28d3e9684a76f7; SHA-256 edc85fddf229feb79974e65bb8c7a1a8e720926cb294d3749e6bd572edb72d7d.

Verification

  • make test (race enabled)
  • make coverage
  • make lint
  • make security
  • make generate-check
  • make build, make test-e2e-compile, CI policy and fixture checks
  • No secrets, real customer data, internal URLs or unrelated roadmap details included
  • Generated help and JSON contract changes documented

Live CLI checks: payments list --payment-status succeeded --currency EUR returns seven identical IDs to UI/REST/all SDKs; comma-separated statuses return 14; card/sepa_debit methods return five; maximum int64 bound returns two; the customer-scoped command returns two. Local HTTP uses the explicit self-hosted --insecure option.

API and client QA, 79 HTTP assertions, cross-client IDs, UI QA and recording

Related PRs

Merge order: API, then front; OpenAPI before client/CLI releases. JavaScript CI uses the pinned feature spec during that rollout.

Performance follow-up (2026-09-09)

--payment-method-type removed from lago payments list and lago customers payments: the Lago API dropped the payment_method_type list filter for performance reasons (getlago/lago-api#6325, "Not shipped for performance reasons"). Regenerated from the updated OpenAPI bundle (getlago/lago-openapi#579); every other flag is unchanged. Indexes for the remaining filters ship first in getlago/lago-api#6341.

Advance the pinned OpenAPI snapshot to the payments filter spec and regenerate the command descriptors, reference docs and man pages. No handwritten flags or response changes.
Regenerated from the updated OpenAPI bundle: the Lago API removed the
filter for performance reasons.
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