stripeapi-0.1.0.0: Stripe-Library

Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostSubscriptions

Description

Contains the different functions to run the operation postSubscriptions

Synopsis

Documentation

postSubscriptions Source #

Arguments

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

The configuration to use in the request

-> PostSubscriptionsRequestBody

The request body to send

-> m (Either HttpException (Response PostSubscriptionsResponse))

Monad containing the result of the operation

POST /v1/subscriptions

<p>Creates a new subscription on an existing customer. Each customer can have up to 25 active or scheduled subscriptions.</p>

postSubscriptionsRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostSubscriptionsRequestBody -> m (Either HttpException (Response ByteString)) Source #

POST /v1/subscriptions

The same as postSubscriptions but returns the raw ByteString

data PostSubscriptionsRequestBody Source #

Defines the data type for the schema postSubscriptionsRequestBody

Constructors

PostSubscriptionsRequestBody 

Fields

data PostSubscriptionsRequestBodyBillingThresholds'OneOf1 Source #

Defines the enum schema postSubscriptionsRequestBodyBilling_thresholds'OneOf1

Instances
Eq PostSubscriptionsRequestBodyBillingThresholds'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

Show PostSubscriptionsRequestBodyBillingThresholds'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

ToJSON PostSubscriptionsRequestBodyBillingThresholds'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

FromJSON PostSubscriptionsRequestBodyBillingThresholds'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

data PostSubscriptionsRequestBodyBillingThresholds'OneOf2 Source #

Defines the data type for the schema postSubscriptionsRequestBodyBilling_thresholds'OneOf2

Instances
Eq PostSubscriptionsRequestBodyBillingThresholds'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

Show PostSubscriptionsRequestBodyBillingThresholds'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

ToJSON PostSubscriptionsRequestBodyBillingThresholds'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

FromJSON PostSubscriptionsRequestBodyBillingThresholds'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

data PostSubscriptionsRequestBodyBillingThresholds'Variants Source #

Define the one-of schema postSubscriptionsRequestBodyBilling_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 PostSubscriptionsRequestBodyBillingThresholds'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

Show PostSubscriptionsRequestBodyBillingThresholds'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

Generic PostSubscriptionsRequestBodyBillingThresholds'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

ToJSON PostSubscriptionsRequestBodyBillingThresholds'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

FromJSON PostSubscriptionsRequestBodyBillingThresholds'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

type Rep PostSubscriptionsRequestBodyBillingThresholds'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

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

data PostSubscriptionsRequestBodyCollectionMethod' Source #

Defines the enum schema postSubscriptionsRequestBodyCollection_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`.

data PostSubscriptionsRequestBodyDefaultTaxRates'OneOf1 Source #

Defines the enum schema postSubscriptionsRequestBodyDefault_tax_rates'OneOf1

Instances
Eq PostSubscriptionsRequestBodyDefaultTaxRates'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

Show PostSubscriptionsRequestBodyDefaultTaxRates'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

ToJSON PostSubscriptionsRequestBodyDefaultTaxRates'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

FromJSON PostSubscriptionsRequestBodyDefaultTaxRates'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

data PostSubscriptionsRequestBodyDefaultTaxRates'Variants Source #

Define the one-of schema postSubscriptionsRequestBodyDefault_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 PostSubscriptionsRequestBodyDefaultTaxRates'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

Show PostSubscriptionsRequestBodyDefaultTaxRates'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

Generic PostSubscriptionsRequestBodyDefaultTaxRates'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

ToJSON PostSubscriptionsRequestBodyDefaultTaxRates'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

FromJSON PostSubscriptionsRequestBodyDefaultTaxRates'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

type Rep PostSubscriptionsRequestBodyDefaultTaxRates'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

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

data PostSubscriptionsRequestBodyItems' Source #

Defines the data type for the schema postSubscriptionsRequestBodyItems'

data PostSubscriptionsRequestBodyItems'BillingThresholds'OneOf1 Source #

Defines the enum schema postSubscriptionsRequestBodyItems'Billing_thresholds'OneOf1

Instances
Eq PostSubscriptionsRequestBodyItems'BillingThresholds'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

Show PostSubscriptionsRequestBodyItems'BillingThresholds'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

ToJSON PostSubscriptionsRequestBodyItems'BillingThresholds'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

FromJSON PostSubscriptionsRequestBodyItems'BillingThresholds'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

data PostSubscriptionsRequestBodyItems'BillingThresholds'OneOf2 Source #

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

Instances
Eq PostSubscriptionsRequestBodyItems'BillingThresholds'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

Show PostSubscriptionsRequestBodyItems'BillingThresholds'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

ToJSON PostSubscriptionsRequestBodyItems'BillingThresholds'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

FromJSON PostSubscriptionsRequestBodyItems'BillingThresholds'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

data PostSubscriptionsRequestBodyItems'BillingThresholds'Variants Source #

Define the one-of schema postSubscriptionsRequestBodyItems'Billing_thresholds'

Instances
Eq PostSubscriptionsRequestBodyItems'BillingThresholds'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

Show PostSubscriptionsRequestBodyItems'BillingThresholds'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

Generic PostSubscriptionsRequestBodyItems'BillingThresholds'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

ToJSON PostSubscriptionsRequestBodyItems'BillingThresholds'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

FromJSON PostSubscriptionsRequestBodyItems'BillingThresholds'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

type Rep PostSubscriptionsRequestBodyItems'BillingThresholds'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

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

data PostSubscriptionsRequestBodyItems'Metadata' Source #

Defines the data type for the schema postSubscriptionsRequestBodyItems'Metadata'

data PostSubscriptionsRequestBodyItems'TaxRates'OneOf1 Source #

Defines the enum schema postSubscriptionsRequestBodyItems'Tax_rates'OneOf1

Instances
Eq PostSubscriptionsRequestBodyItems'TaxRates'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

Show PostSubscriptionsRequestBodyItems'TaxRates'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

ToJSON PostSubscriptionsRequestBodyItems'TaxRates'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

FromJSON PostSubscriptionsRequestBodyItems'TaxRates'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

data PostSubscriptionsRequestBodyItems'TaxRates'Variants Source #

Define the one-of schema postSubscriptionsRequestBodyItems'Tax_rates'

Instances
Eq PostSubscriptionsRequestBodyItems'TaxRates'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

Show PostSubscriptionsRequestBodyItems'TaxRates'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

Generic PostSubscriptionsRequestBodyItems'TaxRates'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

ToJSON PostSubscriptionsRequestBodyItems'TaxRates'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

FromJSON PostSubscriptionsRequestBodyItems'TaxRates'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

type Rep PostSubscriptionsRequestBodyItems'TaxRates'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

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

data PostSubscriptionsRequestBodyMetadata' Source #

Defines the data type for the schema postSubscriptionsRequestBodyMetadata'

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

data PostSubscriptionsRequestBodyPaymentBehavior' Source #

Defines the enum schema postSubscriptionsRequestBodyPayment_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.

data PostSubscriptionsRequestBodyPendingInvoiceItemInterval'OneOf1 Source #

Defines the enum schema postSubscriptionsRequestBodyPending_invoice_item_interval'OneOf1

Instances
Eq PostSubscriptionsRequestBodyPendingInvoiceItemInterval'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

Show PostSubscriptionsRequestBodyPendingInvoiceItemInterval'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

ToJSON PostSubscriptionsRequestBodyPendingInvoiceItemInterval'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

FromJSON PostSubscriptionsRequestBodyPendingInvoiceItemInterval'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

data PostSubscriptionsRequestBodyPendingInvoiceItemInterval'OneOf2 Source #

Defines the data type for the schema postSubscriptionsRequestBodyPending_invoice_item_interval'OneOf2

Instances
Eq PostSubscriptionsRequestBodyPendingInvoiceItemInterval'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

Show PostSubscriptionsRequestBodyPendingInvoiceItemInterval'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

ToJSON PostSubscriptionsRequestBodyPendingInvoiceItemInterval'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

FromJSON PostSubscriptionsRequestBodyPendingInvoiceItemInterval'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

data PostSubscriptionsRequestBodyPendingInvoiceItemInterval'OneOf2Interval' Source #

Defines the enum schema postSubscriptionsRequestBodyPending_invoice_item_interval'OneOf2Interval'

Instances
Eq PostSubscriptionsRequestBodyPendingInvoiceItemInterval'OneOf2Interval' Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

Show PostSubscriptionsRequestBodyPendingInvoiceItemInterval'OneOf2Interval' Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

ToJSON PostSubscriptionsRequestBodyPendingInvoiceItemInterval'OneOf2Interval' Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

FromJSON PostSubscriptionsRequestBodyPendingInvoiceItemInterval'OneOf2Interval' Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

data PostSubscriptionsRequestBodyPendingInvoiceItemInterval'Variants Source #

Define the one-of schema postSubscriptionsRequestBodyPending_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 PostSubscriptionsRequestBodyPendingInvoiceItemInterval'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

Show PostSubscriptionsRequestBodyPendingInvoiceItemInterval'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

Generic PostSubscriptionsRequestBodyPendingInvoiceItemInterval'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

ToJSON PostSubscriptionsRequestBodyPendingInvoiceItemInterval'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

FromJSON PostSubscriptionsRequestBodyPendingInvoiceItemInterval'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

type Rep PostSubscriptionsRequestBodyPendingInvoiceItemInterval'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

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

data PostSubscriptionsRequestBodyProrationBehavior' Source #

Defines the enum schema postSubscriptionsRequestBodyProration_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`.

data PostSubscriptionsRequestBodyTaxPercent'OneOf1 Source #

Defines the enum schema postSubscriptionsRequestBodyTax_percent'OneOf1

data PostSubscriptionsRequestBodyTaxPercent'Variants Source #

Define the one-of schema postSubscriptionsRequestBodyTax_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 PostSubscriptionsRequestBodyTaxPercent'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

Show PostSubscriptionsRequestBodyTaxPercent'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

Generic PostSubscriptionsRequestBodyTaxPercent'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

ToJSON PostSubscriptionsRequestBodyTaxPercent'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

FromJSON PostSubscriptionsRequestBodyTaxPercent'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

type Rep PostSubscriptionsRequestBodyTaxPercent'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

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

data PostSubscriptionsRequestBodyTrialEnd'OneOf1 Source #

Defines the enum schema postSubscriptionsRequestBodyTrial_end'OneOf1

data PostSubscriptionsRequestBodyTrialEnd'Variants Source #

Define the one-of schema postSubscriptionsRequestBodyTrial_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 PostSubscriptionsRequestBodyTrialEnd'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

Show PostSubscriptionsRequestBodyTrialEnd'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

Generic PostSubscriptionsRequestBodyTrialEnd'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

ToJSON PostSubscriptionsRequestBodyTrialEnd'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

FromJSON PostSubscriptionsRequestBodyTrialEnd'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

type Rep PostSubscriptionsRequestBodyTrialEnd'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostSubscriptions

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

data PostSubscriptionsResponse Source #

Represents a response of the operation postSubscriptions.

The response constructor is chosen by the status code of the response. If no case matches (no specific case for the response code, no range case, no default case), PostSubscriptionsResponseError is used.

Constructors

PostSubscriptionsResponseError String

Means either no matching case available or a parse error

PostSubscriptionsResponse200 Subscription

Successful response.

PostSubscriptionsResponseDefault Error

Error response.