import type * as Square from "../index"; /** * Describes a phase in a subscription plan variation. For more information, see [Subscription Plans and Variations](https://developer.squareup.com/docs/subscriptions-api/plans-and-variations). */ export interface SubscriptionPhase { /** The Square-assigned ID of the subscription phase. This field cannot be changed after a `SubscriptionPhase` is created. */ uid?: string | null; /** * The billing cadence of the phase. For example, weekly or monthly. This field cannot be changed after a `SubscriptionPhase` is created. * See [SubscriptionCadence](#type-subscriptioncadence) for possible values */ cadence: Square.SubscriptionCadence; /** The number of `cadence`s the phase lasts. If not set, the phase never ends. Only the last phase can be indefinite. This field cannot be changed after a `SubscriptionPhase` is created. */ periods?: number | null; /** The amount to bill for each `cadence`. Failure to specify this field results in a `MISSING_REQUIRED_PARAMETER` error at runtime. */ recurringPriceMoney?: Square.Money; /** The position this phase appears in the sequence of phases defined for the plan, indexed from 0. This field cannot be changed after a `SubscriptionPhase` is created. */ ordinal?: bigint | null; /** The subscription pricing. */ pricing?: Square.SubscriptionPricing; }