SubscriptionPlan

data class SubscriptionPlan(val id: String?, val interval: String?, val product: String?, val amount: Int?, val currency: String?, val planObject: String?, val active: Boolean?, val created: Int?, val livemode: Boolean?)

Represents the billing plan attached to a subscription.

Constructors

Link copied to clipboard
constructor(id: String?, interval: String?, product: String?, amount: Int?, currency: String?, planObject: String?, active: Boolean?, created: Int?, livemode: Boolean?)

Properties

Link copied to clipboard

Whether the plan is currently available for new subscriptions.

Link copied to clipboard
val amount: Int?

Billing amount per interval in the smallest currency unit (e.g., cents).

Link copied to clipboard
val created: Int?

Unix timestamp of when the plan was created.

Link copied to clipboard

Three-letter ISO currency code for the plan amount.

Link copied to clipboard
val id: String?

Unique identifier for the plan.

Link copied to clipboard

Billing interval for the plan (e.g., "month", "year").

Link copied to clipboard

Whether the plan exists in live mode (true) or test mode (false).

Link copied to clipboard
@SerializedName(value = "object")
val planObject: String?

String identifier for the object type, always "plan".

Link copied to clipboard

ID of the product this plan is associated with.