Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RecurlyClient.Operations.Get_line_item
Description
Contains the different functions to run the operation get_line_item
Synopsis
- get_line_item :: forall m. MonadHTTP m => Text -> ClientT m (Response Get_line_itemResponse)
- data Get_line_itemResponse
- get_line_itemWithConfiguration :: forall m. MonadHTTP m => Configuration -> Text -> m (Response Get_line_itemResponse)
- get_line_itemRaw :: forall m. MonadHTTP m => Text -> ClientT m (Response ByteString)
- get_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 Get_line_itemResponse) | Monadic computation which returns the result of the operation |
GET /line_items/{line_item_id}
Fetch a line item
data Get_line_itemResponse Source #
Represents a response of the operation get_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), Get_line_itemResponseError
is used.
Constructors
Get_line_itemResponseError String | Means either no matching case available or a parse error |
Get_line_itemResponse200 LineItem | A line item. |
Get_line_itemResponse404 Error | Incorrect site or line item ID. |
Get_line_itemResponseDefault Error | Unexpected error. |
Instances
Show Get_line_itemResponse Source # | |
Defined in RecurlyClient.Operations.Get_line_item Methods showsPrec :: Int -> Get_line_itemResponse -> ShowS # show :: Get_line_itemResponse -> String # showList :: [Get_line_itemResponse] -> ShowS # | |
Eq Get_line_itemResponse Source # | |
Defined in RecurlyClient.Operations.Get_line_item Methods (==) :: Get_line_itemResponse -> Get_line_itemResponse -> Bool # (/=) :: Get_line_itemResponse -> Get_line_itemResponse -> Bool # |
get_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 Get_line_itemResponse) | Monadic computation which returns the result of the operation |
GET /line_items/{line_item_id}
The same as get_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 |
GET /line_items/{line_item_id}
The same as get_line_item
but returns the raw ByteString
.
get_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 |
GET /line_items/{line_item_id}
The same as get_line_item
but accepts an explicit configuration and returns the raw ByteString
.