Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RecurlyClient.Operations.Deactivate_item
Description
Contains the different functions to run the operation deactivate_item
Synopsis
- deactivate_item :: forall m. MonadHTTP m => Text -> ClientT m (Response Deactivate_itemResponse)
- data Deactivate_itemResponse
- deactivate_itemWithConfiguration :: forall m. MonadHTTP m => Configuration -> Text -> m (Response Deactivate_itemResponse)
- deactivate_itemRaw :: forall m. MonadHTTP m => Text -> ClientT m (Response ByteString)
- deactivate_itemWithConfigurationRaw :: forall m. MonadHTTP m => Configuration -> Text -> m (Response ByteString)
Documentation
Arguments
:: forall m. MonadHTTP m | |
=> Text | item_id: Item ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For code use prefix `code-`, e.g. `code-red`. |
-> ClientT m (Response Deactivate_itemResponse) | Monadic computation which returns the result of the operation |
DELETE /items/{item_id}
Deactivating an item makes it unavailable for new purchases. It will not affect existing line items.
data Deactivate_itemResponse Source #
Represents a response of the operation deactivate_item
.
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), Deactivate_itemResponseError
is used.
Constructors
Deactivate_itemResponseError String | Means either no matching case available or a parse error |
Deactivate_itemResponse200 Item | An item. |
Deactivate_itemResponse422 Error | Item may already be inactive. |
Deactivate_itemResponseDefault Error | Unexpected error. |
Instances
Show Deactivate_itemResponse Source # | |
Defined in RecurlyClient.Operations.Deactivate_item Methods showsPrec :: Int -> Deactivate_itemResponse -> ShowS # show :: Deactivate_itemResponse -> String # showList :: [Deactivate_itemResponse] -> ShowS # | |
Eq Deactivate_itemResponse Source # | |
Defined in RecurlyClient.Operations.Deactivate_item Methods (==) :: Deactivate_itemResponse -> Deactivate_itemResponse -> Bool # (/=) :: Deactivate_itemResponse -> Deactivate_itemResponse -> Bool # |
deactivate_itemWithConfiguration Source #
Arguments
:: forall m. MonadHTTP m | |
=> Configuration | The configuration to use in the request |
-> Text | item_id: Item ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For code use prefix `code-`, e.g. `code-red`. |
-> m (Response Deactivate_itemResponse) | Monadic computation which returns the result of the operation |
DELETE /items/{item_id}
The same as deactivate_item
but accepts an explicit configuration.
Arguments
:: forall m. MonadHTTP m | |
=> Text | item_id: Item ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For code use prefix `code-`, e.g. `code-red`. |
-> ClientT m (Response ByteString) | Monadic computation which returns the result of the operation |
DELETE /items/{item_id}
The same as deactivate_item
but returns the raw ByteString
.
deactivate_itemWithConfigurationRaw Source #
Arguments
:: forall m. MonadHTTP m | |
=> Configuration | The configuration to use in the request |
-> Text | item_id: Item ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For code use prefix `code-`, e.g. `code-red`. |
-> m (Response ByteString) | Monadic computation which returns the result of the operation |
DELETE /items/{item_id}
The same as deactivate_item
but accepts an explicit configuration and returns the raw ByteString
.