stripeapi-0.1.0.0: Stripe-Library

Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostCustomersCustomerSubscriptions

Description

Contains the different functions to run the operation postCustomersCustomerSubscriptions

Synopsis

Documentation

postCustomersCustomerSubscriptions Source #

Arguments

:: (MonadHTTP m, SecurityScheme s) 
=> Configuration s

The configuration to use in the request

-> String

customer | Constraints: Maximum length of 5000

-> PostCustomersCustomerSubscriptionsRequestBody

The request body to send

-> m (Either HttpException (Response PostCustomersCustomerSubscriptionsResponse))

Monad containing 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 data type for the schema postCustomersCustomerSubscriptionsRequestBody

Constructors

PostCustomersCustomerSubscriptionsRequestBody 

Fields

Instances
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 PostCustomersCustomerSubscriptionsRequestBodyBillingThresholds'OneOf1 Source #

Defines the enum schema postCustomersCustomerSubscriptionsRequestBodyBilling_thresholds'OneOf1

Instances
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'OneOf2 Source #

Defines the data type for the schema postCustomersCustomerSubscriptionsRequestBodyBilling_thresholds'OneOf2

Instances
Eq PostCustomersCustomerSubscriptionsRequestBodyBillingThresholds'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyBillingThresholds'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

ToJSON PostCustomersCustomerSubscriptionsRequestBodyBillingThresholds'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

FromJSON PostCustomersCustomerSubscriptionsRequestBodyBillingThresholds'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

data PostCustomersCustomerSubscriptionsRequestBodyBillingThresholds'Variants Source #

Define the one-of schema postCustomersCustomerSubscriptionsRequestBodyBilling_thresholds'

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
Eq PostCustomersCustomerSubscriptionsRequestBodyBillingThresholds'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyBillingThresholds'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Generic 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

type Rep PostCustomersCustomerSubscriptionsRequestBodyBillingThresholds'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

type Rep PostCustomersCustomerSubscriptionsRequestBodyBillingThresholds'Variants = D1 (MetaData "PostCustomersCustomerSubscriptionsRequestBodyBillingThresholds'Variants" "StripeAPI.Operations.PostCustomersCustomerSubscriptions" "stripeapi-0.1.0.0-A3hJyYFbMZN6w4qjBpK6b6" False) (C1 (MetaCons "PostCustomersCustomerSubscriptionsRequestBodyBillingThresholds'PostCustomersCustomerSubscriptionsRequestBodyBillingThresholds'OneOf1" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 PostCustomersCustomerSubscriptionsRequestBodyBillingThresholds'OneOf1)) :+: C1 (MetaCons "PostCustomersCustomerSubscriptionsRequestBodyBillingThresholds'PostCustomersCustomerSubscriptionsRequestBodyBillingThresholds'OneOf2" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 PostCustomersCustomerSubscriptionsRequestBodyBillingThresholds'OneOf2)))

data PostCustomersCustomerSubscriptionsRequestBodyCollectionMethod' Source #

Defines the enum schema postCustomersCustomerSubscriptionsRequestBodyCollection_method'

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`.

Instances
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'OneOf1 Source #

Defines the enum schema postCustomersCustomerSubscriptionsRequestBodyDefault_tax_rates'OneOf1

Instances
Eq PostCustomersCustomerSubscriptionsRequestBodyDefaultTaxRates'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyDefaultTaxRates'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

ToJSON PostCustomersCustomerSubscriptionsRequestBodyDefaultTaxRates'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

FromJSON PostCustomersCustomerSubscriptionsRequestBodyDefaultTaxRates'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

data PostCustomersCustomerSubscriptionsRequestBodyDefaultTaxRates'Variants Source #

Define the one-of schema postCustomersCustomerSubscriptionsRequestBodyDefault_tax_rates'

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
Eq PostCustomersCustomerSubscriptionsRequestBodyDefaultTaxRates'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyDefaultTaxRates'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Generic 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

type Rep PostCustomersCustomerSubscriptionsRequestBodyDefaultTaxRates'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

type Rep PostCustomersCustomerSubscriptionsRequestBodyDefaultTaxRates'Variants = D1 (MetaData "PostCustomersCustomerSubscriptionsRequestBodyDefaultTaxRates'Variants" "StripeAPI.Operations.PostCustomersCustomerSubscriptions" "stripeapi-0.1.0.0-A3hJyYFbMZN6w4qjBpK6b6" False) (C1 (MetaCons "PostCustomersCustomerSubscriptionsRequestBodyDefaultTaxRates'PostCustomersCustomerSubscriptionsRequestBodyDefaultTaxRates'OneOf1" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 PostCustomersCustomerSubscriptionsRequestBodyDefaultTaxRates'OneOf1)) :+: C1 (MetaCons "PostCustomersCustomerSubscriptionsRequestBodyDefaultTaxRates'ListString" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [String])))

data PostCustomersCustomerSubscriptionsRequestBodyItems' Source #

Defines the data type for the schema postCustomersCustomerSubscriptionsRequestBodyItems'

Instances
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 enum schema postCustomersCustomerSubscriptionsRequestBodyItems'Billing_thresholds'OneOf1

Instances
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'OneOf2 Source #

Defines the data type for the schema postCustomersCustomerSubscriptionsRequestBodyItems'Billing_thresholds'OneOf2

Instances
Eq PostCustomersCustomerSubscriptionsRequestBodyItems'BillingThresholds'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyItems'BillingThresholds'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

ToJSON PostCustomersCustomerSubscriptionsRequestBodyItems'BillingThresholds'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

FromJSON PostCustomersCustomerSubscriptionsRequestBodyItems'BillingThresholds'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

data PostCustomersCustomerSubscriptionsRequestBodyItems'BillingThresholds'Variants Source #

Define the one-of schema postCustomersCustomerSubscriptionsRequestBodyItems'Billing_thresholds'

Instances
Eq PostCustomersCustomerSubscriptionsRequestBodyItems'BillingThresholds'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyItems'BillingThresholds'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Generic 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

type Rep PostCustomersCustomerSubscriptionsRequestBodyItems'BillingThresholds'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

type Rep PostCustomersCustomerSubscriptionsRequestBodyItems'BillingThresholds'Variants = D1 (MetaData "PostCustomersCustomerSubscriptionsRequestBodyItems'BillingThresholds'Variants" "StripeAPI.Operations.PostCustomersCustomerSubscriptions" "stripeapi-0.1.0.0-A3hJyYFbMZN6w4qjBpK6b6" False) (C1 (MetaCons "PostCustomersCustomerSubscriptionsRequestBodyItems'BillingThresholds'PostCustomersCustomerSubscriptionsRequestBodyItems'BillingThresholds'OneOf1" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 PostCustomersCustomerSubscriptionsRequestBodyItems'BillingThresholds'OneOf1)) :+: C1 (MetaCons "PostCustomersCustomerSubscriptionsRequestBodyItems'BillingThresholds'PostCustomersCustomerSubscriptionsRequestBodyItems'BillingThresholds'OneOf2" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 PostCustomersCustomerSubscriptionsRequestBodyItems'BillingThresholds'OneOf2)))

data PostCustomersCustomerSubscriptionsRequestBodyItems'Metadata' Source #

Defines the data type for the schema postCustomersCustomerSubscriptionsRequestBodyItems'Metadata'

Instances
Eq PostCustomersCustomerSubscriptionsRequestBodyItems'Metadata' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyItems'Metadata' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

ToJSON PostCustomersCustomerSubscriptionsRequestBodyItems'Metadata' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

FromJSON PostCustomersCustomerSubscriptionsRequestBodyItems'Metadata' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

data PostCustomersCustomerSubscriptionsRequestBodyItems'TaxRates'OneOf1 Source #

Defines the enum schema postCustomersCustomerSubscriptionsRequestBodyItems'Tax_rates'OneOf1

Instances
Eq PostCustomersCustomerSubscriptionsRequestBodyItems'TaxRates'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyItems'TaxRates'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

ToJSON PostCustomersCustomerSubscriptionsRequestBodyItems'TaxRates'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

FromJSON PostCustomersCustomerSubscriptionsRequestBodyItems'TaxRates'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

data PostCustomersCustomerSubscriptionsRequestBodyItems'TaxRates'Variants Source #

Define the one-of schema postCustomersCustomerSubscriptionsRequestBodyItems'Tax_rates'

Instances
Eq PostCustomersCustomerSubscriptionsRequestBodyItems'TaxRates'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyItems'TaxRates'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Generic 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

type Rep PostCustomersCustomerSubscriptionsRequestBodyItems'TaxRates'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

type Rep PostCustomersCustomerSubscriptionsRequestBodyItems'TaxRates'Variants = D1 (MetaData "PostCustomersCustomerSubscriptionsRequestBodyItems'TaxRates'Variants" "StripeAPI.Operations.PostCustomersCustomerSubscriptions" "stripeapi-0.1.0.0-A3hJyYFbMZN6w4qjBpK6b6" False) (C1 (MetaCons "PostCustomersCustomerSubscriptionsRequestBodyItems'TaxRates'PostCustomersCustomerSubscriptionsRequestBodyItems'TaxRates'OneOf1" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 PostCustomersCustomerSubscriptionsRequestBodyItems'TaxRates'OneOf1)) :+: C1 (MetaCons "PostCustomersCustomerSubscriptionsRequestBodyItems'TaxRates'ListString" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [String])))

data PostCustomersCustomerSubscriptionsRequestBodyMetadata' Source #

Defines the data type for the schema postCustomersCustomerSubscriptionsRequestBodyMetadata'

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
Eq PostCustomersCustomerSubscriptionsRequestBodyMetadata' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyMetadata' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

ToJSON PostCustomersCustomerSubscriptionsRequestBodyMetadata' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

FromJSON PostCustomersCustomerSubscriptionsRequestBodyMetadata' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

data PostCustomersCustomerSubscriptionsRequestBodyPaymentBehavior' Source #

Defines the enum schema postCustomersCustomerSubscriptionsRequestBodyPayment_behavior'

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 `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.

Instances
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 enum schema postCustomersCustomerSubscriptionsRequestBodyPending_invoice_item_interval'OneOf1

Instances
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'OneOf2 Source #

Defines the data type for the schema postCustomersCustomerSubscriptionsRequestBodyPending_invoice_item_interval'OneOf2

Instances
Eq PostCustomersCustomerSubscriptionsRequestBodyPendingInvoiceItemInterval'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyPendingInvoiceItemInterval'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

ToJSON PostCustomersCustomerSubscriptionsRequestBodyPendingInvoiceItemInterval'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

FromJSON PostCustomersCustomerSubscriptionsRequestBodyPendingInvoiceItemInterval'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

data PostCustomersCustomerSubscriptionsRequestBodyPendingInvoiceItemInterval'OneOf2Interval' Source #

Defines the enum schema postCustomersCustomerSubscriptionsRequestBodyPending_invoice_item_interval'OneOf2Interval'

Instances
Eq PostCustomersCustomerSubscriptionsRequestBodyPendingInvoiceItemInterval'OneOf2Interval' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyPendingInvoiceItemInterval'OneOf2Interval' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

ToJSON PostCustomersCustomerSubscriptionsRequestBodyPendingInvoiceItemInterval'OneOf2Interval' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

FromJSON PostCustomersCustomerSubscriptionsRequestBodyPendingInvoiceItemInterval'OneOf2Interval' Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

data PostCustomersCustomerSubscriptionsRequestBodyPendingInvoiceItemInterval'Variants Source #

Define the one-of schema postCustomersCustomerSubscriptionsRequestBodyPending_invoice_item_interval'

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
Eq PostCustomersCustomerSubscriptionsRequestBodyPendingInvoiceItemInterval'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyPendingInvoiceItemInterval'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Generic 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

type Rep PostCustomersCustomerSubscriptionsRequestBodyPendingInvoiceItemInterval'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

type Rep PostCustomersCustomerSubscriptionsRequestBodyPendingInvoiceItemInterval'Variants = D1 (MetaData "PostCustomersCustomerSubscriptionsRequestBodyPendingInvoiceItemInterval'Variants" "StripeAPI.Operations.PostCustomersCustomerSubscriptions" "stripeapi-0.1.0.0-A3hJyYFbMZN6w4qjBpK6b6" False) (C1 (MetaCons "PostCustomersCustomerSubscriptionsRequestBodyPendingInvoiceItemInterval'PostCustomersCustomerSubscriptionsRequestBodyPendingInvoiceItemInterval'OneOf1" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 PostCustomersCustomerSubscriptionsRequestBodyPendingInvoiceItemInterval'OneOf1)) :+: C1 (MetaCons "PostCustomersCustomerSubscriptionsRequestBodyPendingInvoiceItemInterval'PostCustomersCustomerSubscriptionsRequestBodyPendingInvoiceItemInterval'OneOf2" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 PostCustomersCustomerSubscriptionsRequestBodyPendingInvoiceItemInterval'OneOf2)))

data PostCustomersCustomerSubscriptionsRequestBodyProrationBehavior' Source #

Defines the enum schema postCustomersCustomerSubscriptionsRequestBodyProration_behavior'

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`.

Instances
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 PostCustomersCustomerSubscriptionsRequestBodyTaxPercent'OneOf1 Source #

Defines the enum schema postCustomersCustomerSubscriptionsRequestBodyTax_percent'OneOf1

Instances
Eq PostCustomersCustomerSubscriptionsRequestBodyTaxPercent'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyTaxPercent'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

ToJSON PostCustomersCustomerSubscriptionsRequestBodyTaxPercent'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

FromJSON PostCustomersCustomerSubscriptionsRequestBodyTaxPercent'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

data PostCustomersCustomerSubscriptionsRequestBodyTaxPercent'Variants Source #

Define the one-of schema postCustomersCustomerSubscriptionsRequestBodyTax_percent'

A non-negative decimal (with at most four decimal places) between 0 and 100. This represents the percentage of the subscription invoice subtotal that will be calculated and added as tax to the final amount in each billing period. For example, a plan which charges $10/month with a `tax_percent` of `20.0` will charge $12 per invoice. To unset a previously-set value, pass an empty string. This field has been deprecated and will be removed in a future API version, for further information view the migration docs for `tax_rates`.

Instances
Eq PostCustomersCustomerSubscriptionsRequestBodyTaxPercent'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyTaxPercent'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Generic PostCustomersCustomerSubscriptionsRequestBodyTaxPercent'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

ToJSON PostCustomersCustomerSubscriptionsRequestBodyTaxPercent'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

FromJSON PostCustomersCustomerSubscriptionsRequestBodyTaxPercent'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

type Rep PostCustomersCustomerSubscriptionsRequestBodyTaxPercent'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

type Rep PostCustomersCustomerSubscriptionsRequestBodyTaxPercent'Variants = D1 (MetaData "PostCustomersCustomerSubscriptionsRequestBodyTaxPercent'Variants" "StripeAPI.Operations.PostCustomersCustomerSubscriptions" "stripeapi-0.1.0.0-A3hJyYFbMZN6w4qjBpK6b6" False) (C1 (MetaCons "PostCustomersCustomerSubscriptionsRequestBodyTaxPercent'PostCustomersCustomerSubscriptionsRequestBodyTaxPercent'OneOf1" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 PostCustomersCustomerSubscriptionsRequestBodyTaxPercent'OneOf1)) :+: C1 (MetaCons "PostCustomersCustomerSubscriptionsRequestBodyTaxPercent'Double" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Double)))

data PostCustomersCustomerSubscriptionsRequestBodyTrialEnd'OneOf1 Source #

Defines the enum schema postCustomersCustomerSubscriptionsRequestBodyTrial_end'OneOf1

Instances
Eq PostCustomersCustomerSubscriptionsRequestBodyTrialEnd'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyTrialEnd'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

ToJSON PostCustomersCustomerSubscriptionsRequestBodyTrialEnd'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

FromJSON PostCustomersCustomerSubscriptionsRequestBodyTrialEnd'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

data PostCustomersCustomerSubscriptionsRequestBodyTrialEnd'Variants Source #

Define the one-of schema postCustomersCustomerSubscriptionsRequestBodyTrial_end'

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
Eq PostCustomersCustomerSubscriptionsRequestBodyTrialEnd'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Show PostCustomersCustomerSubscriptionsRequestBodyTrialEnd'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

Generic 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

type Rep PostCustomersCustomerSubscriptionsRequestBodyTrialEnd'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomersCustomerSubscriptions

type Rep PostCustomersCustomerSubscriptionsRequestBodyTrialEnd'Variants = D1 (MetaData "PostCustomersCustomerSubscriptionsRequestBodyTrialEnd'Variants" "StripeAPI.Operations.PostCustomersCustomerSubscriptions" "stripeapi-0.1.0.0-A3hJyYFbMZN6w4qjBpK6b6" False) (C1 (MetaCons "PostCustomersCustomerSubscriptionsRequestBodyTrialEnd'PostCustomersCustomerSubscriptionsRequestBodyTrialEnd'OneOf1" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 PostCustomersCustomerSubscriptionsRequestBodyTrialEnd'OneOf1)) :+: C1 (MetaCons "PostCustomersCustomerSubscriptionsRequestBodyTrialEnd'Integer" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Integer)))