import type * as Square from "../index"; /** * Describes changes to a subscription and the subscription status. */ export interface SubscriptionEvent { /** The ID of the subscription event. */ id: string; /** * Type of the subscription event. * See [SubscriptionEventSubscriptionEventType](#type-subscriptioneventsubscriptioneventtype) for possible values */ subscriptionEventType: Square.SubscriptionEventSubscriptionEventType; /** The `YYYY-MM-DD`-formatted date (for example, 2013-01-15) when the subscription event occurred. */ effectiveDate: string; /** The day-of-the-month the billing anchor date was changed to, if applicable. */ monthlyBillingAnchorDate?: number; /** Additional information about the subscription event. */ info?: Square.SubscriptionEventInfo; /** A list of Phases, to pass phase-specific information used in the swap. */ phases?: Square.Phase[] | null; /** The ID of the subscription plan variation associated with the subscription. */ planVariationId: string; }