stripeapi-2.0.0.1: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Types.SubscriptionSchedulePhaseConfiguration

Description

Contains the types generated from the schema SubscriptionSchedulePhaseConfiguration

Synopsis

Documentation

data SubscriptionSchedulePhaseConfiguration Source #

Defines the object schema located at components.schemas.subscription_schedule_phase_configuration in the specification.

A phase describes the plans, coupon, and trialing status of a subscription for a predefined time period.

Constructors

SubscriptionSchedulePhaseConfiguration 

Fields

data SubscriptionSchedulePhaseConfigurationBillingCycleAnchor' Source #

Defines the enum schema located at components.schemas.subscription_schedule_phase_configuration.properties.billing_cycle_anchor in the specification.

Possible values are `phase_start` or `automatic`. If `phase_start` then billing cycle anchor of the subscription is set to the start of the phase when entering the phase. If `automatic` then the billing cycle anchor is automatically modified as needed when entering the phase. For more information, see the billing cycle documentation.

Constructors

SubscriptionSchedulePhaseConfigurationBillingCycleAnchor'Other Value

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

SubscriptionSchedulePhaseConfigurationBillingCycleAnchor'Typed Text

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

SubscriptionSchedulePhaseConfigurationBillingCycleAnchor'EnumAutomatic

Represents the JSON value "automatic"

SubscriptionSchedulePhaseConfigurationBillingCycleAnchor'EnumPhaseStart

Represents the JSON value "phase_start"

Instances

Instances details
Eq SubscriptionSchedulePhaseConfigurationBillingCycleAnchor' Source # 
Instance details

Defined in StripeAPI.Types.SubscriptionSchedulePhaseConfiguration

Show SubscriptionSchedulePhaseConfigurationBillingCycleAnchor' Source # 
Instance details

Defined in StripeAPI.Types.SubscriptionSchedulePhaseConfiguration

ToJSON SubscriptionSchedulePhaseConfigurationBillingCycleAnchor' Source # 
Instance details

Defined in StripeAPI.Types.SubscriptionSchedulePhaseConfiguration

FromJSON SubscriptionSchedulePhaseConfigurationBillingCycleAnchor' Source # 
Instance details

Defined in StripeAPI.Types.SubscriptionSchedulePhaseConfiguration

data SubscriptionSchedulePhaseConfigurationBillingThresholds' Source #

Defines the object schema located at components.schemas.subscription_schedule_phase_configuration.properties.billing_thresholds.anyOf in the specification.

Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period

Constructors

SubscriptionSchedulePhaseConfigurationBillingThresholds' 

Fields

Instances

Instances details
Eq SubscriptionSchedulePhaseConfigurationBillingThresholds' Source # 
Instance details

Defined in StripeAPI.Types.SubscriptionSchedulePhaseConfiguration

Show SubscriptionSchedulePhaseConfigurationBillingThresholds' Source # 
Instance details

Defined in StripeAPI.Types.SubscriptionSchedulePhaseConfiguration

ToJSON SubscriptionSchedulePhaseConfigurationBillingThresholds' Source # 
Instance details

Defined in StripeAPI.Types.SubscriptionSchedulePhaseConfiguration

FromJSON SubscriptionSchedulePhaseConfigurationBillingThresholds' Source # 
Instance details

Defined in StripeAPI.Types.SubscriptionSchedulePhaseConfiguration

data SubscriptionSchedulePhaseConfigurationCollectionMethod' Source #

Defines the enum schema located at components.schemas.subscription_schedule_phase_configuration.properties.collection_method in the specification.

Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay the underlying subscription at the end of each billing cycle using the default source attached to the customer. When sending an invoice, Stripe will email your customer an invoice with payment instructions.

Constructors

SubscriptionSchedulePhaseConfigurationCollectionMethod'Other Value

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

SubscriptionSchedulePhaseConfigurationCollectionMethod'Typed Text

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

SubscriptionSchedulePhaseConfigurationCollectionMethod'EnumChargeAutomatically

Represents the JSON value "charge_automatically"

SubscriptionSchedulePhaseConfigurationCollectionMethod'EnumSendInvoice

Represents the JSON value "send_invoice"

Instances

Instances details
Eq SubscriptionSchedulePhaseConfigurationCollectionMethod' Source # 
Instance details

Defined in StripeAPI.Types.SubscriptionSchedulePhaseConfiguration

Show SubscriptionSchedulePhaseConfigurationCollectionMethod' Source # 
Instance details

Defined in StripeAPI.Types.SubscriptionSchedulePhaseConfiguration

ToJSON SubscriptionSchedulePhaseConfigurationCollectionMethod' Source # 
Instance details

Defined in StripeAPI.Types.SubscriptionSchedulePhaseConfiguration

FromJSON SubscriptionSchedulePhaseConfigurationCollectionMethod' Source # 
Instance details

Defined in StripeAPI.Types.SubscriptionSchedulePhaseConfiguration

data SubscriptionSchedulePhaseConfigurationCoupon'Variants Source #

Defines the oneOf schema located at components.schemas.subscription_schedule_phase_configuration.properties.coupon.anyOf in the specification.

ID of the coupon to use during this phase of the subscription schedule.

Instances

Instances details
Eq SubscriptionSchedulePhaseConfigurationCoupon'Variants Source # 
Instance details

Defined in StripeAPI.Types.SubscriptionSchedulePhaseConfiguration

Show SubscriptionSchedulePhaseConfigurationCoupon'Variants Source # 
Instance details

Defined in StripeAPI.Types.SubscriptionSchedulePhaseConfiguration

ToJSON SubscriptionSchedulePhaseConfigurationCoupon'Variants Source # 
Instance details

Defined in StripeAPI.Types.SubscriptionSchedulePhaseConfiguration

FromJSON SubscriptionSchedulePhaseConfigurationCoupon'Variants Source # 
Instance details

Defined in StripeAPI.Types.SubscriptionSchedulePhaseConfiguration

data SubscriptionSchedulePhaseConfigurationDefaultPaymentMethod'Variants Source #

Defines the oneOf schema located at components.schemas.subscription_schedule_phase_configuration.properties.default_payment_method.anyOf in the specification.

ID of the default payment method for the subscription schedule. It must belong to the customer associated with the subscription schedule. If not set, invoices will use the default payment method in the customer's invoice settings.

Instances

Instances details
Eq SubscriptionSchedulePhaseConfigurationDefaultPaymentMethod'Variants Source # 
Instance details

Defined in StripeAPI.Types.SubscriptionSchedulePhaseConfiguration

Show SubscriptionSchedulePhaseConfigurationDefaultPaymentMethod'Variants Source # 
Instance details

Defined in StripeAPI.Types.SubscriptionSchedulePhaseConfiguration

ToJSON SubscriptionSchedulePhaseConfigurationDefaultPaymentMethod'Variants Source # 
Instance details

Defined in StripeAPI.Types.SubscriptionSchedulePhaseConfiguration

FromJSON SubscriptionSchedulePhaseConfigurationDefaultPaymentMethod'Variants Source # 
Instance details

Defined in StripeAPI.Types.SubscriptionSchedulePhaseConfiguration

data SubscriptionSchedulePhaseConfigurationInvoiceSettings' Source #

Defines the object schema located at components.schemas.subscription_schedule_phase_configuration.properties.invoice_settings.anyOf in the specification.

The invoice settings applicable during this phase.

Constructors

SubscriptionSchedulePhaseConfigurationInvoiceSettings' 

Fields

Instances

Instances details
Eq SubscriptionSchedulePhaseConfigurationInvoiceSettings' Source # 
Instance details

Defined in StripeAPI.Types.SubscriptionSchedulePhaseConfiguration

Show SubscriptionSchedulePhaseConfigurationInvoiceSettings' Source # 
Instance details

Defined in StripeAPI.Types.SubscriptionSchedulePhaseConfiguration

ToJSON SubscriptionSchedulePhaseConfigurationInvoiceSettings' Source # 
Instance details

Defined in StripeAPI.Types.SubscriptionSchedulePhaseConfiguration

FromJSON SubscriptionSchedulePhaseConfigurationInvoiceSettings' Source # 
Instance details

Defined in StripeAPI.Types.SubscriptionSchedulePhaseConfiguration

data SubscriptionSchedulePhaseConfigurationProrationBehavior' Source #

Defines the enum schema located at components.schemas.subscription_schedule_phase_configuration.properties.proration_behavior in the specification.

If the subscription schedule will prorate when transitioning to this phase. Possible values are `create_prorations` and `none`.

Constructors

SubscriptionSchedulePhaseConfigurationProrationBehavior'Other Value

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

SubscriptionSchedulePhaseConfigurationProrationBehavior'Typed Text

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

SubscriptionSchedulePhaseConfigurationProrationBehavior'EnumAlwaysInvoice

Represents the JSON value "always_invoice"

SubscriptionSchedulePhaseConfigurationProrationBehavior'EnumCreateProrations

Represents the JSON value "create_prorations"

SubscriptionSchedulePhaseConfigurationProrationBehavior'EnumNone

Represents the JSON value "none"

Instances

Instances details
Eq SubscriptionSchedulePhaseConfigurationProrationBehavior' Source # 
Instance details

Defined in StripeAPI.Types.SubscriptionSchedulePhaseConfiguration

Show SubscriptionSchedulePhaseConfigurationProrationBehavior' Source # 
Instance details

Defined in StripeAPI.Types.SubscriptionSchedulePhaseConfiguration

ToJSON SubscriptionSchedulePhaseConfigurationProrationBehavior' Source # 
Instance details

Defined in StripeAPI.Types.SubscriptionSchedulePhaseConfiguration

FromJSON SubscriptionSchedulePhaseConfigurationProrationBehavior' Source # 
Instance details

Defined in StripeAPI.Types.SubscriptionSchedulePhaseConfiguration

data SubscriptionSchedulePhaseConfigurationTransferData' Source #

Defines the object schema located at components.schemas.subscription_schedule_phase_configuration.properties.transfer_data.anyOf in the specification.

The account (if any) the associated subscription\'s payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the subscription\'s invoices.

Constructors

SubscriptionSchedulePhaseConfigurationTransferData' 

Fields

Instances

Instances details
Eq SubscriptionSchedulePhaseConfigurationTransferData' Source # 
Instance details

Defined in StripeAPI.Types.SubscriptionSchedulePhaseConfiguration

Show SubscriptionSchedulePhaseConfigurationTransferData' Source # 
Instance details

Defined in StripeAPI.Types.SubscriptionSchedulePhaseConfiguration

ToJSON SubscriptionSchedulePhaseConfigurationTransferData' Source # 
Instance details

Defined in StripeAPI.Types.SubscriptionSchedulePhaseConfiguration

FromJSON SubscriptionSchedulePhaseConfigurationTransferData' Source # 
Instance details

Defined in StripeAPI.Types.SubscriptionSchedulePhaseConfiguration

data SubscriptionSchedulePhaseConfigurationTransferData'Destination'Variants Source #

Defines the oneOf schema located at components.schemas.subscription_schedule_phase_configuration.properties.transfer_data.anyOf.properties.destination.anyOf in the specification.

The account where funds from the payment will be transferred to upon payment success.

Instances

Instances details
Eq SubscriptionSchedulePhaseConfigurationTransferData'Destination'Variants Source # 
Instance details

Defined in StripeAPI.Types.SubscriptionSchedulePhaseConfiguration

Show SubscriptionSchedulePhaseConfigurationTransferData'Destination'Variants Source # 
Instance details

Defined in StripeAPI.Types.SubscriptionSchedulePhaseConfiguration

ToJSON SubscriptionSchedulePhaseConfigurationTransferData'Destination'Variants Source # 
Instance details

Defined in StripeAPI.Types.SubscriptionSchedulePhaseConfiguration

FromJSON SubscriptionSchedulePhaseConfigurationTransferData'Destination'Variants Source # 
Instance details

Defined in StripeAPI.Types.SubscriptionSchedulePhaseConfiguration