Skip to content

feat: Add paid trials support to price trial periods#154

Merged
davidgrayston-paddle merged 2 commits into
mainfrom
feat/paid-trials
Jul 21, 2026
Merged

feat: Add paid trials support to price trial periods#154
davidgrayston-paddle merged 2 commits into
mainfrom
feat/paid-trials

Conversation

@davidgrayston-paddle

Copy link
Copy Markdown
Contributor

Added

  • Added paid trials support: requires_payment_method, unit_price, and unit_price_overrides on price trial_period. See related changelog

Changed

  • trial_period fields are now typed as PriceTrialPeriod (subclass of Duration, backwards compatible)

Introduce `PriceTrialPeriod` (a `Duration` subclass) with
`requires_payment_method`, `unit_price`, and `unit_price_overrides` so
trial periods can require an upfront/discounted charge, not just a
free trial. Swaps `trial_period` typing from `Duration` to
`PriceTrialPeriod` across Price/TransactionPreviewPrice entities,
notification entities, and price-bearing request operations, and
updates fixtures accordingly.
mikeymike
mikeymike previously approved these changes Jul 20, 2026
@davidgrayston-paddle
davidgrayston-paddle merged commit 48c8cc0 into main Jul 21, 2026
6 checks passed
@davidgrayston-paddle
davidgrayston-paddle deleted the feat/paid-trials branch July 21, 2026 10:50
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