stripeapi-1.0.0.0: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.DeleteSubscriptionItemsItem

Description

Contains the different functions to run the operation deleteSubscriptionItemsItem

Synopsis

Documentation

deleteSubscriptionItemsItem Source #

Arguments

:: forall m. MonadHTTP m 
=> Text

item | Constraints: Maximum length of 5000

-> Maybe DeleteSubscriptionItemsItemRequestBody

The request body to send

-> StripeT m (Response DeleteSubscriptionItemsItemResponse)

Monadic computation which returns the result of the operation

DELETE /v1/subscription_items/{item}

<p>Deletes an item from the subscription. Removing a subscription item from a subscription will not cancel the subscription.</p>

data DeleteSubscriptionItemsItemRequestBody Source #

Defines the object schema located at paths./v1/subscription_items/{item}.DELETE.requestBody.content.application/x-www-form-urlencoded.schema in the specification.

Constructors

DeleteSubscriptionItemsItemRequestBody 

Fields

data DeleteSubscriptionItemsItemRequestBodyProrationBehavior' Source #

Defines the enum schema located at paths./v1/subscription_items/{item}.DELETE.requestBody.content.application/x-www-form-urlencoded.schema.properties.proration_behavior in the specification.

Determines how to handle prorations when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. Valid values are `create_prorations`, `none`, or `always_invoice`.

Passing `create_prorations` will cause proration invoice items to be created when applicable. These proration items will only be invoiced immediately under certain conditions. In order to always invoice immediately for prorations, pass `always_invoice`.

Prorations can be disabled by passing `none`.

Constructors

DeleteSubscriptionItemsItemRequestBodyProrationBehavior'Other Value

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

DeleteSubscriptionItemsItemRequestBodyProrationBehavior'Typed Text

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

DeleteSubscriptionItemsItemRequestBodyProrationBehavior'EnumAlwaysInvoice

Represents the JSON value "always_invoice"

DeleteSubscriptionItemsItemRequestBodyProrationBehavior'EnumCreateProrations

Represents the JSON value "create_prorations"

DeleteSubscriptionItemsItemRequestBodyProrationBehavior'EnumNone

Represents the JSON value "none"

Instances

Instances details
Eq DeleteSubscriptionItemsItemRequestBodyProrationBehavior' Source # 
Instance details

Defined in StripeAPI.Operations.DeleteSubscriptionItemsItem

Show DeleteSubscriptionItemsItemRequestBodyProrationBehavior' Source # 
Instance details

Defined in StripeAPI.Operations.DeleteSubscriptionItemsItem

ToJSON DeleteSubscriptionItemsItemRequestBodyProrationBehavior' Source # 
Instance details

Defined in StripeAPI.Operations.DeleteSubscriptionItemsItem

FromJSON DeleteSubscriptionItemsItemRequestBodyProrationBehavior' Source # 
Instance details

Defined in StripeAPI.Operations.DeleteSubscriptionItemsItem