BillingSubscriptionItem

@Serializable
data class BillingSubscriptionItem(val id: String, val plan: BillingPlan, val planPeriod: BillingSubscriptionPlanPeriod = BillingSubscriptionPlanPeriod.UNKNOWN, val priceId: String? = null, val status: BillingSubscriptionStatus = BillingSubscriptionStatus.UNKNOWN, val createdAt: Long? = null, val pastDueAt: Long? = null, val periodStart: Long? = null, val periodEnd: Long? = null, val canceledAt: Long? = null, val amount: BillingMoneyAmount? = null, val nextPayment: BillingSubscriptionItemNextPayment? = null, val credit: BillingSubscriptionItemCredit? = null, val credits: BillingCredits? = null, val appliedDiscount: BillingDiscountRedemption? = null, val seats: BillingSubscriptionItemSeats? = null, val isFreeTrial: Boolean = false)

An item in a Billing Subscription.

Constructors

Link copied to clipboard
constructor(id: String, plan: BillingPlan, planPeriod: BillingSubscriptionPlanPeriod = BillingSubscriptionPlanPeriod.UNKNOWN, priceId: String? = null, status: BillingSubscriptionStatus = BillingSubscriptionStatus.UNKNOWN, createdAt: Long? = null, pastDueAt: Long? = null, periodStart: Long? = null, periodEnd: Long? = null, canceledAt: Long? = null, amount: BillingMoneyAmount? = null, nextPayment: BillingSubscriptionItemNextPayment? = null, credit: BillingSubscriptionItemCredit? = null, credits: BillingCredits? = null, appliedDiscount: BillingDiscountRedemption? = null, seats: BillingSubscriptionItemSeats? = null, isFreeTrial: Boolean = false)

Properties

Link copied to clipboard

The amount charged for the subscription item.

Link copied to clipboard

The active discount applied to this subscription item.

Link copied to clipboard

The date and time when the subscription item was canceled, as Unix milliseconds. null if the subscription item is not canceled.

Link copied to clipboard

The date and time when the subscription item was created, as Unix milliseconds. null if FAPI omits it.

Link copied to clipboard

The credit from a previous purchase that is being applied to the subscription item.

Link copied to clipboard

The credits applied to this subscription item.

Link copied to clipboard
val id: String

The unique identifier for the subscription item.

Link copied to clipboard

Whether the subscription item is for a free trial.

Link copied to clipboard

Information about the next payment for this subscription item.

Link copied to clipboard

The date and time when the subscription item became past due, as Unix milliseconds. null if the subscription item is not past due.

Link copied to clipboard

The date and time when the current billing period ends, as Unix milliseconds. null if not set.

Link copied to clipboard

The date and time when the current billing period starts, as Unix milliseconds. null if FAPI omits it.

Link copied to clipboard

The Plan associated with the subscription item.

Link copied to clipboard

The billing period for the subscription item.

Link copied to clipboard

The ID of the price that this subscription item is associated with.

Link copied to clipboard

Seat entitlement details for this subscription item. Only set for organization subscription items with seat-based billing.

Link copied to clipboard

The status of the subscription item.