Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation deleteSubscriptionItemsItem
Synopsis
- deleteSubscriptionItemsItem :: forall m. MonadHTTP m => Text -> Maybe DeleteSubscriptionItemsItemRequestBody -> StripeT m (Response DeleteSubscriptionItemsItemResponse)
- data DeleteSubscriptionItemsItemRequestBody = DeleteSubscriptionItemsItemRequestBody {}
- mkDeleteSubscriptionItemsItemRequestBody :: DeleteSubscriptionItemsItemRequestBody
- data DeleteSubscriptionItemsItemRequestBodyProrationBehavior'
- = DeleteSubscriptionItemsItemRequestBodyProrationBehavior'Other Value
- | DeleteSubscriptionItemsItemRequestBodyProrationBehavior'Typed Text
- | DeleteSubscriptionItemsItemRequestBodyProrationBehavior'EnumAlwaysInvoice
- | DeleteSubscriptionItemsItemRequestBodyProrationBehavior'EnumCreateProrations
- | DeleteSubscriptionItemsItemRequestBodyProrationBehavior'EnumNone
- data DeleteSubscriptionItemsItemResponse
Documentation
deleteSubscriptionItemsItem Source #
:: 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.
DeleteSubscriptionItemsItemRequestBody | |
|
mkDeleteSubscriptionItemsItemRequestBody :: DeleteSubscriptionItemsItemRequestBody Source #
Create a new DeleteSubscriptionItemsItemRequestBody
with all required 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`.
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 |
DeleteSubscriptionItemsItemRequestBodyProrationBehavior'EnumCreateProrations | Represents the JSON value |
DeleteSubscriptionItemsItemRequestBodyProrationBehavior'EnumNone | Represents the JSON value |
Instances
data DeleteSubscriptionItemsItemResponse Source #
Represents a response of the operation deleteSubscriptionItemsItem
.
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), DeleteSubscriptionItemsItemResponseError
is used.
DeleteSubscriptionItemsItemResponseError String | Means either no matching case available or a parse error |
DeleteSubscriptionItemsItemResponse200 DeletedSubscriptionItem | Successful response. |
DeleteSubscriptionItemsItemResponseDefault Error | Error response. |