export interface SubscriptionItem { /** * ID of the Subscription Item object. String starting with **subi\_**. */ id: string; /** * The time the subscription item was created, in [*Unix time*](ref:glossary). Response only. */ created: number; /** * A JSON object defined by the client. */ metadata: object; /** * The pricing plan that defines the product and pricing structure associated with this subscription item. * * See [Plan Object](ref:plan-object). */ plan: object; /** * Determines whether the charge is prorated, in the following situations: * * When a subscription item is switched from one subscription to another in a billing cycle. * * When a new customer starts in the middle of a billing cycle. * * When the customer cancels the subscription. */ prorate: boolean; /** * Indicates the date in [*Unix time*](ref:glossary) in the middle of the billing period that is the start or end of the prorated item. The other end is determined by the `period_start` or `period_end` of the invoice. * * If the subscription and its subscription item have different proration dates, the proration takes place on the earlier of the two dates. */ proration_date: number; /** * The number of units of the service defined in the plan. Integer. This number can be updated during the billing cycle using [Update Subscription](ref:update-subscription) or [Update Subscription Item](ref:update-subscription-item). */ quantity: number; /** * ID of the subscription that this item belongs to. String starting with **sub_**. * * See [Subscription Object](ref:subscription-object). */ subscription: `sub_${string}`; } //# sourceMappingURL=SubscriptionItem.d.ts.map