Skip to content

feat: Subscription History - #155

Merged
davidgrayston-paddle merged 7 commits into
mainfrom
feat/subscription-history
Jul 27, 2026
Merged

feat: Subscription History#155
davidgrayston-paddle merged 7 commits into
mainfrom
feat/subscription-history

Conversation

@davidgrayston-paddle

@davidgrayston-paddle davidgrayston-paddle commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Added

  • Added support for subscription history. See related changelog
    • Client.subscriptions.list_history
  • Added type to subscription discount
  • Added consent_requirements to subscriptions
  • Added next_billed_at filter to list subscriptions operation
  • Added checkout_domain.read, checkout_domain.write, client_token.read, client_token.write, metrics.read, and subscription_history.read to ApiKeyPermission (permissions on api_key.* events)

@davidgrayston-paddle davidgrayston-paddle self-assigned this Jul 15, 2026
@davidgrayston-paddle davidgrayston-paddle changed the title Feat/subscription history feat: Subscription History Jul 15, 2026
@davidgrayston-paddle
davidgrayston-paddle force-pushed the feat/subscription-history branch from 07a57fc to 8be3c6c Compare July 20, 2026 22:11
@davidgrayston-paddle
davidgrayston-paddle marked this pull request as ready for review July 20, 2026 22:11
@davidgrayston-paddle
davidgrayston-paddle requested a review from a team as a code owner July 20, 2026 22:11
The subscription history endpoint introduces a subscription_history.read
scope; add it to the ApiKeyPermission enum so api_key.* webhook payloads
carrying it hydrate as a known permission.
The enum was missing several public permission scopes for features the SDK
already supports: checkout_domain.read/write, client_token.read/write, and
metrics.read. Add them so api_key.* webhook payloads carrying these scopes
hydrate as known permissions.
Preview responses (and environments where the field isn't yet populated)
may omit consent_requirements; hydrate it as an empty list instead of
raising KeyError.
@davidgrayston-paddle
davidgrayston-paddle merged commit 0e534dc into main Jul 27, 2026
6 checks passed
@davidgrayston-paddle
davidgrayston-paddle deleted the feat/subscription-history branch July 27, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants