feat: Subscription History - #155
Merged
Merged
Conversation
davidgrayston-paddle
force-pushed
the
feat/subscription-history
branch
from
July 20, 2026 22:11
07a57fc to
8be3c6c
Compare
davidgrayston-paddle
marked this pull request as ready for review
July 20, 2026 22:11
…billed_at list filter
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.
davidgrayston-paddle
force-pushed
the
feat/subscription-history
branch
from
July 21, 2026 10:53
cdd8aff to
b83d126
Compare
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.
mikeymike
approved these changes
Jul 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added
Client.subscriptions.list_historytypeto subscriptiondiscountconsent_requirementsto subscriptionsnext_billed_atfilter to list subscriptions operationcheckout_domain.read,checkout_domain.write,client_token.read,client_token.write,metrics.read, andsubscription_history.readtoApiKeyPermission(permissions onapi_key.*events)