Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation deleteSubscriptionItemsItem
Synopsis
- deleteSubscriptionItemsItem :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> DeleteSubscriptionItemsItemRequestBody -> m (Either HttpException (Response DeleteSubscriptionItemsItemResponse))
- deleteSubscriptionItemsItemRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> DeleteSubscriptionItemsItemRequestBody -> m (Either HttpException (Response ByteString))
- deleteSubscriptionItemsItemM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> DeleteSubscriptionItemsItemRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response DeleteSubscriptionItemsItemResponse))
- deleteSubscriptionItemsItemRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> DeleteSubscriptionItemsItemRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data DeleteSubscriptionItemsItemRequestBody = DeleteSubscriptionItemsItemRequestBody {
- deleteSubscriptionItemsItemRequestBodyClearUsage :: Maybe Bool
- deleteSubscriptionItemsItemRequestBodyProrate :: Maybe Bool
- deleteSubscriptionItemsItemRequestBodyProrationBehavior :: Maybe DeleteSubscriptionItemsItemRequestBodyProrationBehavior'
- deleteSubscriptionItemsItemRequestBodyProrationDate :: Maybe Integer
- data DeleteSubscriptionItemsItemRequestBodyProrationBehavior'
- = DeleteSubscriptionItemsItemRequestBodyProrationBehavior'EnumOther Value
- | DeleteSubscriptionItemsItemRequestBodyProrationBehavior'EnumTyped String
- | DeleteSubscriptionItemsItemRequestBodyProrationBehavior'EnumStringAlwaysInvoice
- | DeleteSubscriptionItemsItemRequestBodyProrationBehavior'EnumStringCreateProrations
- | DeleteSubscriptionItemsItemRequestBodyProrationBehavior'EnumStringNone
- data DeleteSubscriptionItemsItemResponse
Documentation
deleteSubscriptionItemsItem Source #
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> String | item | Constraints: Maximum length of 5000 |
-> DeleteSubscriptionItemsItemRequestBody | The request body to send |
-> m (Either HttpException (Response DeleteSubscriptionItemsItemResponse)) | Monad containing 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>
deleteSubscriptionItemsItemRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> DeleteSubscriptionItemsItemRequestBody -> m (Either HttpException (Response ByteString)) Source #
DELETE /v1/subscription_items/{item}
The same as deleteSubscriptionItemsItem
but returns the raw ByteString
deleteSubscriptionItemsItemM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> DeleteSubscriptionItemsItemRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response DeleteSubscriptionItemsItemResponse)) Source #
DELETE /v1/subscription_items/{item}
Monadic version of deleteSubscriptionItemsItem
(use with runWithConfiguration
)
deleteSubscriptionItemsItemRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> DeleteSubscriptionItemsItemRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
DELETE /v1/subscription_items/{item}
Monadic version of deleteSubscriptionItemsItemRaw
(use with runWithConfiguration
)
data DeleteSubscriptionItemsItemRequestBody Source #
Defines the data type for the schema deleteSubscriptionItemsItemRequestBody
DeleteSubscriptionItemsItemRequestBody | |
|
data DeleteSubscriptionItemsItemRequestBodyProrationBehavior' Source #
Defines the enum schema deleteSubscriptionItemsItemRequestBodyProration_behavior'
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`.
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. |