stripeapi-1.0.0.0: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Types.SubscriptionSchedule

Description

Contains the types generated from the schema SubscriptionSchedule

Synopsis

Documentation

data SubscriptionSchedule Source #

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

SubscriptionSchedule 

Fields

data SubscriptionScheduleCurrentPhase' Source #

Defines the object schema located at components.schemas.subscription_schedule.properties.current_phase.anyOf in the specification.

Object representing the start and end dates for the current phase of the subscription schedule, if it is \`active\`.

Constructors

SubscriptionScheduleCurrentPhase' 

Fields

data SubscriptionScheduleCustomer'Variants Source #

Defines the oneOf schema located at components.schemas.subscription_schedule.properties.customer.anyOf in the specification.

ID of the customer who owns the subscription schedule.

data SubscriptionScheduleEndBehavior' Source #

Defines the enum schema located at components.schemas.subscription_schedule.properties.end_behavior in the specification.

Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` and `cancel`.

Constructors

SubscriptionScheduleEndBehavior'Other Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

SubscriptionScheduleEndBehavior'Typed Text

This constructor can be used to send values to the server which are not present in the specification yet.

SubscriptionScheduleEndBehavior'EnumCancel

Represents the JSON value "cancel"

SubscriptionScheduleEndBehavior'EnumNone

Represents the JSON value "none"

SubscriptionScheduleEndBehavior'EnumRelease

Represents the JSON value "release"

SubscriptionScheduleEndBehavior'EnumRenew

Represents the JSON value "renew"

data SubscriptionScheduleStatus' Source #

Defines the enum schema located at components.schemas.subscription_schedule.properties.status in the specification.

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.

Constructors

SubscriptionScheduleStatus'Other Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

SubscriptionScheduleStatus'Typed Text

This constructor can be used to send values to the server which are not present in the specification yet.

SubscriptionScheduleStatus'EnumActive

Represents the JSON value "active"

SubscriptionScheduleStatus'EnumCanceled

Represents the JSON value "canceled"

SubscriptionScheduleStatus'EnumCompleted

Represents the JSON value "completed"

SubscriptionScheduleStatus'EnumNotStarted

Represents the JSON value "not_started"

SubscriptionScheduleStatus'EnumReleased

Represents the JSON value "released"

data SubscriptionScheduleSubscription'Variants Source #

Defines the oneOf schema located at components.schemas.subscription_schedule.properties.subscription.anyOf in the specification.

ID of the subscription managed by the subscription schedule.