Defines the object schema located at components.schemas.subscription_schedule in the specification.
A subscription schedule allows you to create and manage the lifecycle of a subscription by predefining expected changes.
Related guide: Subscription Schedules.
Constructors
SubscriptionSchedulesubscriptionScheduleApplication :: Maybe (Nullable SubscriptionScheduleApplication'NonNullableVariants)application: ID of the Connect Application that created the schedule.
subscriptionScheduleCanceledAt :: Maybe (Nullable Int)canceled_at: Time at which the subscription schedule was canceled. Measured in seconds since the Unix epoch.
subscriptionScheduleCompletedAt :: Maybe (Nullable Int)completed_at: Time at which the subscription schedule was completed. Measured in seconds since the Unix epoch.
subscriptionScheduleCreated :: Intcreated: Time at which the object was created. Measured in seconds since the Unix epoch.
subscriptionScheduleCurrentPhase :: Maybe (Nullable SubscriptionScheduleCurrentPhase'NonNullable)current_phase: Object representing the start and end dates for the current phase of the subscription schedule, if it is `active`.
subscriptionScheduleCustomer :: SubscriptionScheduleCustomer'Variantscustomer: ID of the customer who owns the subscription schedule.
subscriptionScheduleDefaultSettings :: SubscriptionSchedulesResourceDefaultSettingsdefault_settings:
subscriptionScheduleEndBehavior :: SubscriptionScheduleEndBehavior'end_behavior: Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` and `cancel`.
subscriptionScheduleId :: Textid: Unique identifier for the object.
Constraints:
Maximum length of 5000
subscriptionScheduleLivemode :: Boollivemode: Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
subscriptionScheduleMetadata :: Maybe (Nullable Object)metadata: Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
subscriptionSchedulePhases :: [SubscriptionSchedulePhaseConfiguration]phases: Configuration for the subscription schedule's phases.
subscriptionScheduleReleasedAt :: Maybe (Nullable Int)released_at: Time at which the subscription schedule was released. Measured in seconds since the Unix epoch.
subscriptionScheduleReleasedSubscription :: Maybe (Nullable Text)released_subscription: ID of the subscription once managed by the subscription schedule (if it is released).
Constraints:
Maximum length of 5000
subscriptionScheduleStatus :: SubscriptionScheduleStatus'status: The present status of the subscription schedule. Possible values are `not_started`, `active`, `completed`, `released`, and `canceled`. You can read more about the different states in our behavior guide.
subscriptionScheduleSubscription :: Maybe (Nullable SubscriptionScheduleSubscription'NonNullableVariants)subscription: ID of the subscription managed by the subscription schedule.
subscriptionScheduleTestClock :: Maybe (Nullable SubscriptionScheduleTestClock'NonNullableVariants)test_clock: ID of the test clock this subscription schedule belongs to.
Instances4Eq, Show, FromJSON, ToJSON
Eq SubscriptionScheduleDefined in stripeapi-3.0.0.0 · StripeAPI.Types.SubscriptionScheduleShow SubscriptionScheduleDefined in stripeapi-3.0.0.0 · StripeAPI.Types.SubscriptionScheduleFromJSON SubscriptionScheduleDefined in stripeapi-3.0.0.0 · StripeAPI.Types.SubscriptionScheduleToJSON SubscriptionScheduleDefined in stripeapi-3.0.0.0 · StripeAPI.Types.SubscriptionSchedule