Module plan

Module plan 

Source

Structs§

CreatePlan
You can now model subscriptions more flexibly using the Prices API. It replaces the Plans API and is backwards compatible to simplify your migration.
CreatePlanInlineProductParams
CreatePlanTiers
Each element represents a pricing tier. This parameter requires billing_scheme to be set to tiered. See also the documentation for billing_scheme.
CreatePlanTransformUsage
Apply a transformation to the reported usage or set quantity before computing the billed price. Cannot be combined with tiers.
DeletePlan
Deleting plans means new subscribers can’t be added. Existing subscribers aren’t affected.
ListPlan
Returns a list of your plans.
RetrievePlan
Retrieves the plan with the given ID.
UpdatePlan
Updates the specified plan by setting the values of the parameters passed. Any parameters not provided are left unchanged. By design, you cannot change a plan’s ID, amount, currency, or billing cycle.

Enums§

CreatePlanProduct
CreatePlanTiersUpTo
Specifies the upper bound of this tier. The lower bound of a tier is the upper bound of the previous tier adding one. Use inf to define a fallback tier.
CreatePlanTransformUsageRound
After division, either round the result up or down.