BillingPlan

@Serializable
data class BillingPlan(val id: String, val name: String, val fee: BillingMoneyAmount? = null, val annualFee: BillingMoneyAmount? = null, val annualMonthlyFee: BillingMoneyAmount? = null, val description: String? = null, val isDefault: Boolean, val isRecurring: Boolean, val hasBaseFee: Boolean, val forPayerType: BillingPayerResourceType = BillingPayerResourceType.UNKNOWN, val publiclyVisible: Boolean, val slug: String, val avatarUrl: String? = null, val features: List<Feature> = emptyList(), val unitPrices: List<BillingPlanUnitPrice>? = null, val availablePrices: List<BillingPlanPrice>? = null, val freeTrialDays: Int? = null, val freeTrialEnabled: Boolean = false)

A Subscription Plan with its details.

Constructors

Link copied to clipboard
constructor(id: String, name: String, fee: BillingMoneyAmount? = null, annualFee: BillingMoneyAmount? = null, annualMonthlyFee: BillingMoneyAmount? = null, description: String? = null, isDefault: Boolean, isRecurring: Boolean, hasBaseFee: Boolean, forPayerType: BillingPayerResourceType = BillingPayerResourceType.UNKNOWN, publiclyVisible: Boolean, slug: String, avatarUrl: String? = null, features: List<Feature> = emptyList(), unitPrices: List<BillingPlanUnitPrice>? = null, availablePrices: List<BillingPlanPrice>? = null, freeTrialDays: Int? = null, freeTrialEnabled: Boolean = false)

Properties

Link copied to clipboard

The annual price of the Plan, or null if the Plan is not annual.

Link copied to clipboard

The effective monthly price when billed annually, or null if the Plan is not annual.

Link copied to clipboard

Prices that can be used to check out for this plan, including non-default prices.

Link copied to clipboard

The URL of the Plan's avatar image, or null if not set.

Link copied to clipboard

A short description of what the Plan offers, or null if none is provided.

Link copied to clipboard

The Features the Plan offers.

Link copied to clipboard

The monthly price of the Plan.

Link copied to clipboard

Specifies the subscriber type this Plan is designed for.

Link copied to clipboard

The number of days of the free trial for the Plan. null if the Plan does not have a free trial.

Link copied to clipboard

Whether the Plan has a free trial.

Link copied to clipboard

Whether the Plan has a base fee.

Link copied to clipboard
val id: String

The unique identifier for the Plan.

Link copied to clipboard

Whether the Plan is the default Plan.

Link copied to clipboard

Whether the Plan is recurring.

Link copied to clipboard

The name of the Plan.

Link copied to clipboard

Whether the Plan is visible to the public.

Link copied to clipboard

The URL-friendly identifier of the Plan.

Link copied to clipboard

Per-unit pricing tiers for this Plan (for example, seats).