Repository navigation
AshBilling 0.5.0
AshBilling 0.5.0 hardens Stripe subscription mutations, Customer identity and PostgreSQL webhook consistency.
Changes
- Preserve seat quantities when changing plans; reject ambiguous or incomplete item selection.
- Require an established Customer before recurring Checkout and protect resource ownership references.
- Validate required persistence and retain the remote Customer ID when a later local write fails.
- Reject unsupported nonterminal multi-item subscriptions instead of storing a partial entitlement model.
- Roll back supported shared-Repo PostgreSQL processing on sync/handler failures and keep leases retryable.
Upgrading
This release changes public contracts from 0.4.x. Recurring Checkout requires a Customer, handlers must return explicit success/error tuples, and raw lease errors propagate directly. No new schema migration is introduced.
Read the 0.5 upgrade guide. Unsupported snapshots retain the last supported entitlements pending application remediation. External effects still require consumer idempotency or an outbox.
{:ash_billing, "~> 0.5.0"}Validation
389 library tests pass with 91.98% coverage, plus 13 offline convergence tests and seven launcher safety tests. The release tree passes the three supported CI combinations. Real Stripe Test Mode checks cover paid Checkout, quantity preservation, lifecycle operations and signed webhooks, including official HTTPS resends. Fault injection and arranged event reordering are separately classified local simulations.