stripeapi-2.0.0.1: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostCustomersCustomerSubscriptions

Description

Contains the different functions to run the operation postCustomersCustomerSubscriptions

Synopsis

Documentation

postCustomersCustomerSubscriptions Source #

Arguments

:: forall m. MonadHTTP m 
=> Text

customer | Constraints: Maximum length of 5000

-> Maybe PostCustomersCustomerSubscriptionsRequestBody

The request body to send

-> ClientT m (Response PostCustomersCustomerSubscriptionsResponse)

Monadic computation which returns the result of the operation

POST /v1/customers/{customer}/subscriptions

<p>Creates a new subscription on an existing customer.</p>

data PostCustomersCustomerSubscriptionsRequestBody Source #

Defines the object schema located at paths./v1/customers/{customer}/subscriptions.POST.requestBody.content.application/x-www-form-urlencoded.schema in the specification.

Constructors

PostCustomersCustomerSubscriptionsRequestBody 

Fields

Instances

Instances details
Eq PostCustomersCustomerSubscriptionsRequestBody Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBody Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

ToJSON PostCustomersCustomerSubscriptionsRequestBody Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

FromJSON PostCustomersCustomerSubscriptionsRequestBody Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

data PostCustomersCustomerSubscriptionsRequestBodyAddInvoiceItems' Source #

Defines the object schema located at paths./v1/customers/{customer}/subscriptions.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.add_invoice_items.items in the specification.

Instances

Instances details
Eq PostCustomersCustomerSubscriptionsRequestBodyAddInvoiceItems' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyAddInvoiceItems' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

ToJSON PostCustomersCustomerSubscriptionsRequestBodyAddInvoiceItems' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

FromJSON PostCustomersCustomerSubscriptionsRequestBodyAddInvoiceItems' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

data PostCustomersCustomerSubscriptionsRequestBodyAddInvoiceItems'PriceData' Source #

Defines the object schema located at paths./v1/customers/{customer}/subscriptions.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.add_invoice_items.items.properties.price_data in the specification.

Instances

Instances details
Eq PostCustomersCustomerSubscriptionsRequestBodyAddInvoiceItems'PriceData' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyAddInvoiceItems'PriceData' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

ToJSON PostCustomersCustomerSubscriptionsRequestBodyAddInvoiceItems'PriceData' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

FromJSON PostCustomersCustomerSubscriptionsRequestBodyAddInvoiceItems'PriceData' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

data PostCustomersCustomerSubscriptionsRequestBodyAddInvoiceItems'PriceData'TaxBehavior' Source #

Defines the enum schema located at paths./v1/customers/{customer}/subscriptions.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.add_invoice_items.items.properties.price_data.properties.tax_behavior in the specification.

Constructors

PostCustomersCustomerSubscriptionsRequestBodyAddInvoiceItems'PriceData'TaxBehavior'Other Value

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

PostCustomersCustomerSubscriptionsRequestBodyAddInvoiceItems'PriceData'TaxBehavior'Typed Text

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

PostCustomersCustomerSubscriptionsRequestBodyAddInvoiceItems'PriceData'TaxBehavior'EnumExclusive

Represents the JSON value "exclusive"

PostCustomersCustomerSubscriptionsRequestBodyAddInvoiceItems'PriceData'TaxBehavior'EnumInclusive

Represents the JSON value "inclusive"

PostCustomersCustomerSubscriptionsRequestBodyAddInvoiceItems'PriceData'TaxBehavior'EnumUnspecified

Represents the JSON value "unspecified"

Instances

Instances details
Eq PostCustomersCustomerSubscriptionsRequestBodyAddInvoiceItems'PriceData'TaxBehavior' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyAddInvoiceItems'PriceData'TaxBehavior' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

ToJSON PostCustomersCustomerSubscriptionsRequestBodyAddInvoiceItems'PriceData'TaxBehavior' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

FromJSON PostCustomersCustomerSubscriptionsRequestBodyAddInvoiceItems'PriceData'TaxBehavior' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

data PostCustomersCustomerSubscriptionsRequestBodyAddInvoiceItems'TaxRates'Variants Source #

Defines the oneOf schema located at paths./v1/customers/{customer}/subscriptions.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.add_invoice_items.items.properties.tax_rates.anyOf in the specification.

Instances

Instances details
Eq PostCustomersCustomerSubscriptionsRequestBodyAddInvoiceItems'TaxRates'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyAddInvoiceItems'TaxRates'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

ToJSON PostCustomersCustomerSubscriptionsRequestBodyAddInvoiceItems'TaxRates'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

FromJSON PostCustomersCustomerSubscriptionsRequestBodyAddInvoiceItems'TaxRates'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

data PostCustomersCustomerSubscriptionsRequestBodyAutomaticTax' Source #

Defines the object schema located at paths./v1/customers/{customer}/subscriptions.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.automatic_tax in the specification.

Automatic tax settings for this subscription.

Instances

Instances details
Eq PostCustomersCustomerSubscriptionsRequestBodyAutomaticTax' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyAutomaticTax' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

ToJSON PostCustomersCustomerSubscriptionsRequestBodyAutomaticTax' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

FromJSON PostCustomersCustomerSubscriptionsRequestBodyAutomaticTax' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

data PostCustomersCustomerSubscriptionsRequestBodyBillingThresholds'OneOf1 Source #

Defines the object schema located at paths./v1/customers/{customer}/subscriptions.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.billing_thresholds.anyOf in the specification.

Instances

Instances details
Eq PostCustomersCustomerSubscriptionsRequestBodyBillingThresholds'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyBillingThresholds'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

ToJSON PostCustomersCustomerSubscriptionsRequestBodyBillingThresholds'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

FromJSON PostCustomersCustomerSubscriptionsRequestBodyBillingThresholds'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

data PostCustomersCustomerSubscriptionsRequestBodyBillingThresholds'Variants Source #

Defines the oneOf schema located at paths./v1/customers/{customer}/subscriptions.POST.requestBody.content.application/x-www-form-urlencoded.schema.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. Pass an empty string to remove previously-defined thresholds.

Instances

Instances details
Eq PostCustomersCustomerSubscriptionsRequestBodyBillingThresholds'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyBillingThresholds'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

ToJSON PostCustomersCustomerSubscriptionsRequestBodyBillingThresholds'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

FromJSON PostCustomersCustomerSubscriptionsRequestBodyBillingThresholds'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

data PostCustomersCustomerSubscriptionsRequestBodyCollectionMethod' Source #

Defines the enum schema located at paths./v1/customers/{customer}/subscriptions.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.collection_method in the specification.

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

Constructors

PostCustomersCustomerSubscriptionsRequestBodyCollectionMethod'Other Value

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

PostCustomersCustomerSubscriptionsRequestBodyCollectionMethod'Typed Text

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

PostCustomersCustomerSubscriptionsRequestBodyCollectionMethod'EnumChargeAutomatically

Represents the JSON value "charge_automatically"

PostCustomersCustomerSubscriptionsRequestBodyCollectionMethod'EnumSendInvoice

Represents the JSON value "send_invoice"

Instances

Instances details
Eq PostCustomersCustomerSubscriptionsRequestBodyCollectionMethod' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyCollectionMethod' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

ToJSON PostCustomersCustomerSubscriptionsRequestBodyCollectionMethod' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

FromJSON PostCustomersCustomerSubscriptionsRequestBodyCollectionMethod' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

data PostCustomersCustomerSubscriptionsRequestBodyDefaultTaxRates'Variants Source #

Defines the oneOf schema located at paths./v1/customers/{customer}/subscriptions.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.default_tax_rates.anyOf in the specification.

The tax rates that will apply to any subscription item that does not have `tax_rates` set. Invoices created will have their `default_tax_rates` populated from the subscription.

Instances

Instances details
Eq PostCustomersCustomerSubscriptionsRequestBodyDefaultTaxRates'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyDefaultTaxRates'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

ToJSON PostCustomersCustomerSubscriptionsRequestBodyDefaultTaxRates'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

FromJSON PostCustomersCustomerSubscriptionsRequestBodyDefaultTaxRates'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

data PostCustomersCustomerSubscriptionsRequestBodyItems' Source #

Defines the object schema located at paths./v1/customers/{customer}/subscriptions.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.items.items in the specification.

Instances

Instances details
Eq PostCustomersCustomerSubscriptionsRequestBodyItems' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyItems' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

ToJSON PostCustomersCustomerSubscriptionsRequestBodyItems' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

FromJSON PostCustomersCustomerSubscriptionsRequestBodyItems' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

data PostCustomersCustomerSubscriptionsRequestBodyItems'BillingThresholds'OneOf1 Source #

Defines the object schema located at paths./v1/customers/{customer}/subscriptions.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.items.items.properties.billing_thresholds.anyOf in the specification.

Instances

Instances details
Eq PostCustomersCustomerSubscriptionsRequestBodyItems'BillingThresholds'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyItems'BillingThresholds'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

ToJSON PostCustomersCustomerSubscriptionsRequestBodyItems'BillingThresholds'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

FromJSON PostCustomersCustomerSubscriptionsRequestBodyItems'BillingThresholds'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

data PostCustomersCustomerSubscriptionsRequestBodyItems'BillingThresholds'Variants Source #

Defines the oneOf schema located at paths./v1/customers/{customer}/subscriptions.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.items.items.properties.billing_thresholds.anyOf in the specification.

Instances

Instances details
Eq PostCustomersCustomerSubscriptionsRequestBodyItems'BillingThresholds'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyItems'BillingThresholds'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

ToJSON PostCustomersCustomerSubscriptionsRequestBodyItems'BillingThresholds'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

FromJSON PostCustomersCustomerSubscriptionsRequestBodyItems'BillingThresholds'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

data PostCustomersCustomerSubscriptionsRequestBodyItems'PriceData' Source #

Defines the object schema located at paths./v1/customers/{customer}/subscriptions.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.items.items.properties.price_data in the specification.

Instances

Instances details
Eq PostCustomersCustomerSubscriptionsRequestBodyItems'PriceData' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyItems'PriceData' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

ToJSON PostCustomersCustomerSubscriptionsRequestBodyItems'PriceData' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

FromJSON PostCustomersCustomerSubscriptionsRequestBodyItems'PriceData' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

data PostCustomersCustomerSubscriptionsRequestBodyItems'PriceData'Recurring' Source #

Defines the object schema located at paths./v1/customers/{customer}/subscriptions.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.items.items.properties.price_data.properties.recurring in the specification.

Instances

Instances details
Eq PostCustomersCustomerSubscriptionsRequestBodyItems'PriceData'Recurring' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyItems'PriceData'Recurring' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

ToJSON PostCustomersCustomerSubscriptionsRequestBodyItems'PriceData'Recurring' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

FromJSON PostCustomersCustomerSubscriptionsRequestBodyItems'PriceData'Recurring' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

data PostCustomersCustomerSubscriptionsRequestBodyItems'PriceData'Recurring'Interval' Source #

Defines the enum schema located at paths./v1/customers/{customer}/subscriptions.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.items.items.properties.price_data.properties.recurring.properties.interval in the specification.

Constructors

PostCustomersCustomerSubscriptionsRequestBodyItems'PriceData'Recurring'Interval'Other Value

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

PostCustomersCustomerSubscriptionsRequestBodyItems'PriceData'Recurring'Interval'Typed Text

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

PostCustomersCustomerSubscriptionsRequestBodyItems'PriceData'Recurring'Interval'EnumDay

Represents the JSON value "day"

PostCustomersCustomerSubscriptionsRequestBodyItems'PriceData'Recurring'Interval'EnumMonth

Represents the JSON value "month"

PostCustomersCustomerSubscriptionsRequestBodyItems'PriceData'Recurring'Interval'EnumWeek

Represents the JSON value "week"

PostCustomersCustomerSubscriptionsRequestBodyItems'PriceData'Recurring'Interval'EnumYear

Represents the JSON value "year"

Instances

Instances details
Eq PostCustomersCustomerSubscriptionsRequestBodyItems'PriceData'Recurring'Interval' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyItems'PriceData'Recurring'Interval' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

ToJSON PostCustomersCustomerSubscriptionsRequestBodyItems'PriceData'Recurring'Interval' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

FromJSON PostCustomersCustomerSubscriptionsRequestBodyItems'PriceData'Recurring'Interval' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

data PostCustomersCustomerSubscriptionsRequestBodyItems'PriceData'TaxBehavior' Source #

Defines the enum schema located at paths./v1/customers/{customer}/subscriptions.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.items.items.properties.price_data.properties.tax_behavior in the specification.

Constructors

PostCustomersCustomerSubscriptionsRequestBodyItems'PriceData'TaxBehavior'Other Value

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

PostCustomersCustomerSubscriptionsRequestBodyItems'PriceData'TaxBehavior'Typed Text

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

PostCustomersCustomerSubscriptionsRequestBodyItems'PriceData'TaxBehavior'EnumExclusive

Represents the JSON value "exclusive"

PostCustomersCustomerSubscriptionsRequestBodyItems'PriceData'TaxBehavior'EnumInclusive

Represents the JSON value "inclusive"

PostCustomersCustomerSubscriptionsRequestBodyItems'PriceData'TaxBehavior'EnumUnspecified

Represents the JSON value "unspecified"

Instances

Instances details
Eq PostCustomersCustomerSubscriptionsRequestBodyItems'PriceData'TaxBehavior' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyItems'PriceData'TaxBehavior' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

ToJSON PostCustomersCustomerSubscriptionsRequestBodyItems'PriceData'TaxBehavior' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

FromJSON PostCustomersCustomerSubscriptionsRequestBodyItems'PriceData'TaxBehavior' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

data PostCustomersCustomerSubscriptionsRequestBodyItems'TaxRates'Variants Source #

Defines the oneOf schema located at paths./v1/customers/{customer}/subscriptions.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.items.items.properties.tax_rates.anyOf in the specification.

Instances

Instances details
Eq PostCustomersCustomerSubscriptionsRequestBodyItems'TaxRates'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyItems'TaxRates'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

ToJSON PostCustomersCustomerSubscriptionsRequestBodyItems'TaxRates'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

FromJSON PostCustomersCustomerSubscriptionsRequestBodyItems'TaxRates'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

data PostCustomersCustomerSubscriptionsRequestBodyMetadata'Variants Source #

Defines the oneOf schema located at paths./v1/customers/{customer}/subscriptions.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.metadata.anyOf in the specification.

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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.

Instances

Instances details
Eq PostCustomersCustomerSubscriptionsRequestBodyMetadata'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyMetadata'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

ToJSON PostCustomersCustomerSubscriptionsRequestBodyMetadata'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

FromJSON PostCustomersCustomerSubscriptionsRequestBodyMetadata'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

data PostCustomersCustomerSubscriptionsRequestBodyPaymentBehavior' Source #

Defines the enum schema located at paths./v1/customers/{customer}/subscriptions.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.payment_behavior in the specification.

Use `allow_incomplete` to create subscriptions with `status=incomplete` if the first invoice cannot be paid. Creating subscriptions with this status allows you to manage scenarios where additional user actions are needed to pay a subscription's invoice. For example, SCA regulation may require 3DS authentication to complete payment. See the SCA Migration Guide for Billing to learn more. This is the default behavior.

Use `default_incomplete` to create Subscriptions with `status=incomplete` when the first invoice requires payment, otherwise start as active. Subscriptions transition to `status=active` when successfully confirming the payment intent on the first invoice. This allows simpler management of scenarios where additional user actions are needed to pay a subscription’s invoice. Such as failed payments, SCA regulation, or collecting a mandate for a bank debit payment method. If the payment intent is not confirmed within 23 hours subscriptions transition to `status=expired_incomplete`, which is a terminal state.

Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's first invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not create a subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the changelog to learn more.

`pending_if_incomplete` is only used with updates and cannot be passed when creating a subscription.

Constructors

PostCustomersCustomerSubscriptionsRequestBodyPaymentBehavior'Other Value

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

PostCustomersCustomerSubscriptionsRequestBodyPaymentBehavior'Typed Text

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

PostCustomersCustomerSubscriptionsRequestBodyPaymentBehavior'EnumAllowIncomplete

Represents the JSON value "allow_incomplete"

PostCustomersCustomerSubscriptionsRequestBodyPaymentBehavior'EnumDefaultIncomplete

Represents the JSON value "default_incomplete"

PostCustomersCustomerSubscriptionsRequestBodyPaymentBehavior'EnumErrorIfIncomplete

Represents the JSON value "error_if_incomplete"

PostCustomersCustomerSubscriptionsRequestBodyPaymentBehavior'EnumPendingIfIncomplete

Represents the JSON value "pending_if_incomplete"

Instances

Instances details
Eq PostCustomersCustomerSubscriptionsRequestBodyPaymentBehavior' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyPaymentBehavior' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

ToJSON PostCustomersCustomerSubscriptionsRequestBodyPaymentBehavior' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

FromJSON PostCustomersCustomerSubscriptionsRequestBodyPaymentBehavior' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

data PostCustomersCustomerSubscriptionsRequestBodyPendingInvoiceItemInterval'OneOf1 Source #

Defines the object schema located at paths./v1/customers/{customer}/subscriptions.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.pending_invoice_item_interval.anyOf in the specification.

Instances

Instances details
Eq PostCustomersCustomerSubscriptionsRequestBodyPendingInvoiceItemInterval'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyPendingInvoiceItemInterval'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

ToJSON PostCustomersCustomerSubscriptionsRequestBodyPendingInvoiceItemInterval'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

FromJSON PostCustomersCustomerSubscriptionsRequestBodyPendingInvoiceItemInterval'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

data PostCustomersCustomerSubscriptionsRequestBodyPendingInvoiceItemInterval'OneOf1Interval' Source #

Defines the enum schema located at paths./v1/customers/{customer}/subscriptions.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.pending_invoice_item_interval.anyOf.properties.interval in the specification.

Instances

Instances details
Eq PostCustomersCustomerSubscriptionsRequestBodyPendingInvoiceItemInterval'OneOf1Interval' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyPendingInvoiceItemInterval'OneOf1Interval' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

ToJSON PostCustomersCustomerSubscriptionsRequestBodyPendingInvoiceItemInterval'OneOf1Interval' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

FromJSON PostCustomersCustomerSubscriptionsRequestBodyPendingInvoiceItemInterval'OneOf1Interval' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

data PostCustomersCustomerSubscriptionsRequestBodyPendingInvoiceItemInterval'Variants Source #

Defines the oneOf schema located at paths./v1/customers/{customer}/subscriptions.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.pending_invoice_item_interval.anyOf in the specification.

Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling Create an invoice for the given subscription at the specified interval.

Instances

Instances details
Eq PostCustomersCustomerSubscriptionsRequestBodyPendingInvoiceItemInterval'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyPendingInvoiceItemInterval'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

ToJSON PostCustomersCustomerSubscriptionsRequestBodyPendingInvoiceItemInterval'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

FromJSON PostCustomersCustomerSubscriptionsRequestBodyPendingInvoiceItemInterval'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

data PostCustomersCustomerSubscriptionsRequestBodyProrationBehavior' Source #

Defines the enum schema located at paths./v1/customers/{customer}/subscriptions.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.proration_behavior in the specification.

Determines how to handle prorations resulting from the `billing_cycle_anchor`. Valid values are `create_prorations` or `none`.

Passing `create_prorations` will cause proration invoice items to be created when applicable. Prorations can be disabled by passing `none`. If no value is passed, the default is `create_prorations`.

Constructors

PostCustomersCustomerSubscriptionsRequestBodyProrationBehavior'Other Value

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

PostCustomersCustomerSubscriptionsRequestBodyProrationBehavior'Typed Text

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

PostCustomersCustomerSubscriptionsRequestBodyProrationBehavior'EnumAlwaysInvoice

Represents the JSON value "always_invoice"

PostCustomersCustomerSubscriptionsRequestBodyProrationBehavior'EnumCreateProrations

Represents the JSON value "create_prorations"

PostCustomersCustomerSubscriptionsRequestBodyProrationBehavior'EnumNone

Represents the JSON value "none"

Instances

Instances details
Eq PostCustomersCustomerSubscriptionsRequestBodyProrationBehavior' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyProrationBehavior' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

ToJSON PostCustomersCustomerSubscriptionsRequestBodyProrationBehavior' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

FromJSON PostCustomersCustomerSubscriptionsRequestBodyProrationBehavior' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

data PostCustomersCustomerSubscriptionsRequestBodyTransferData' Source #

Defines the object schema located at paths./v1/customers/{customer}/subscriptions.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.transfer_data in the specification.

If specified, the funds from the subscription's invoices will be transferred to the destination and the ID of the resulting transfers will be found on the resulting charges.

Instances

Instances details
Eq PostCustomersCustomerSubscriptionsRequestBodyTransferData' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyTransferData' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

ToJSON PostCustomersCustomerSubscriptionsRequestBodyTransferData' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

FromJSON PostCustomersCustomerSubscriptionsRequestBodyTransferData' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

data PostCustomersCustomerSubscriptionsRequestBodyTrialEnd'Variants Source #

Defines the oneOf schema located at paths./v1/customers/{customer}/subscriptions.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.trial_end.anyOf in the specification.

Unix timestamp representing the end of the trial period the customer will get before being charged for the first time. This will always overwrite any trials that might apply via a subscribed plan. If set, trial_end will override the default trial period of the plan the customer is being subscribed to. The special value `now` can be provided to end the customer's trial immediately. Can be at most two years from `billing_cycle_anchor`.

Instances

Instances details
Eq PostCustomersCustomerSubscriptionsRequestBodyTrialEnd'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyTrialEnd'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

ToJSON PostCustomersCustomerSubscriptionsRequestBodyTrialEnd'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

FromJSON PostCustomersCustomerSubscriptionsRequestBodyTrialEnd'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions