Skip to main content

MembershipPriceRepository

Data access for the billing cadences attached to a built-in membership tier. One record is one cadence: a label, an interval (unit plus count), an amount, a currency, and the Stripe Price IDs minted for it in each keyset.

A tier is one Stripe Product with N Prices hanging off it, and this repository owns that child collection. A tier with no prices is legal and is deliberately hidden from benecaster_subscribe.

You rarely construct this directly. MembershipTierRepository takes it as a dependency and cascades through it, so writing a tier with a prices[] sub-array is the normal path. Reach for this class when you are manipulating cadences on a tier that already exists — adding a quarterly option to a live tier, for example.