Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RecurlyClient.Operations.Remove_line_item
Description
Contains the different functions to run the operation remove_line_item
Synopsis
- remove_line_item :: forall m. MonadHTTP m => Text -> ClientT m (Response Remove_line_itemResponse)
- data Remove_line_itemResponse
- remove_line_itemWithConfiguration :: forall m. MonadHTTP m => Configuration -> Text -> m (Response Remove_line_itemResponse)
- remove_line_itemRaw :: forall m. MonadHTTP m => Text -> ClientT m (Response ByteString)
- remove_line_itemWithConfigurationRaw :: forall m. MonadHTTP m => Configuration -> Text -> m (Response ByteString)
Documentation
Arguments
:: forall m. MonadHTTP m | |
=> Text | line_item_id: Line Item ID. |
-> ClientT m (Response Remove_line_itemResponse) | Monadic computation which returns the result of the operation |
DELETE /line_items/{line_item_id}
Delete an uninvoiced line item
data Remove_line_itemResponse Source #
Represents a response of the operation remove_line_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), Remove_line_itemResponseError
is used.
Constructors
Remove_line_itemResponseError String | Means either no matching case available or a parse error |
Remove_line_itemResponse204 | Line item deleted. |
Remove_line_itemResponse404 Error | Incorrect site or line item ID. |
Remove_line_itemResponse422 Error | Only pending line items can be deleted. |
Remove_line_itemResponseDefault Error | Unexpected error. |
Instances
Show Remove_line_itemResponse Source # | |
Defined in RecurlyClient.Operations.Remove_line_item Methods showsPrec :: Int -> Remove_line_itemResponse -> ShowS # show :: Remove_line_itemResponse -> String # showList :: [Remove_line_itemResponse] -> ShowS # | |
Eq Remove_line_itemResponse Source # | |
Defined in RecurlyClient.Operations.Remove_line_item Methods (==) :: Remove_line_itemResponse -> Remove_line_itemResponse -> Bool # (/=) :: Remove_line_itemResponse -> Remove_line_itemResponse -> Bool # |
remove_line_itemWithConfiguration Source #
Arguments
:: forall m. MonadHTTP m | |
=> Configuration | The configuration to use in the request |
-> Text | line_item_id: Line Item ID. |
-> m (Response Remove_line_itemResponse) | Monadic computation which returns the result of the operation |
DELETE /line_items/{line_item_id}
The same as remove_line_item
but accepts an explicit configuration.
Arguments
:: forall m. MonadHTTP m | |
=> Text | line_item_id: Line Item ID. |
-> ClientT m (Response ByteString) | Monadic computation which returns the result of the operation |
DELETE /line_items/{line_item_id}
The same as remove_line_item
but returns the raw ByteString
.
remove_line_itemWithConfigurationRaw Source #
Arguments
:: forall m. MonadHTTP m | |
=> Configuration | The configuration to use in the request |
-> Text | line_item_id: Line Item ID. |
-> m (Response ByteString) | Monadic computation which returns the result of the operation |
DELETE /line_items/{line_item_id}
The same as remove_line_item
but accepts an explicit configuration and returns the raw ByteString
.