You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(products): attach rate cards directly to subscriptions
Sales-led subscriptions need rate cards attached and amended on the
subscription itself, without going through a plan. Snapshotted entries
also need sub-level phase amendments, since they are the subscription's
own copy of the plan's pricing.
Add SubscriptionProductItems::CreateService to attach a rate card
directly to a subscription (with a default indefinite phase), mirroring
the plan-side flow. Billing then follows the same path as snapshotted
items.
Generalize RatePhases::ReplaceService to accept either a plan or a
subscription entry as parent: plan-level phases stay locked once the
plan has subscriptions, while a subscription's own phases remain
editable (amendment flow).
Expose the REST endpoints under /api/v2/subscription_product_items
(index, show, create, nested rate_phases index/replace), with query
object, serializer, and the subscription_product_item API permission.
0 commit comments