Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RecurlyClient.Operations.List_items
Description
Contains the different functions to run the operation list_items
Synopsis
- list_items :: forall m. MonadHTTP m => List_itemsParameters -> ClientT m (Response List_itemsResponse)
- data List_itemsParameters = List_itemsParameters {
- list_itemsParametersQueryBegin_time :: Maybe JsonDateTime
- list_itemsParametersQueryEnd_time :: Maybe JsonDateTime
- list_itemsParametersQueryIds :: Maybe [Text]
- list_itemsParametersQueryLimit :: Maybe Int
- list_itemsParametersQueryOrder :: Maybe List_itemsParametersQueryOrder
- list_itemsParametersQuerySort :: Maybe List_itemsParametersQuerySort
- list_itemsParametersQueryState :: Maybe List_itemsParametersQueryState
- mkList_itemsParameters :: List_itemsParameters
- data List_itemsParametersQueryOrder
- data List_itemsParametersQuerySort
- data List_itemsParametersQueryState
- data List_itemsResponse
- list_itemsWithConfiguration :: forall m. MonadHTTP m => Configuration -> List_itemsParameters -> m (Response List_itemsResponse)
- list_itemsRaw :: forall m. MonadHTTP m => List_itemsParameters -> ClientT m (Response ByteString)
- list_itemsWithConfigurationRaw :: forall m. MonadHTTP m => Configuration -> List_itemsParameters -> m (Response ByteString)
Documentation
Arguments
:: forall m. MonadHTTP m | |
=> List_itemsParameters | Contains all available parameters of this operation (query and path parameters) |
-> ClientT m (Response List_itemsResponse) | Monadic computation which returns the result of the operation |
GET /items
See the Pagination Guide to learn how to use pagination in the API and Client Libraries.
data List_itemsParameters Source #
Defines the object schema located at paths./items.GET.parameters
in the specification.
Constructors
List_itemsParameters | |
Fields
|
Instances
FromJSON List_itemsParameters Source # | |
Defined in RecurlyClient.Operations.List_items Methods parseJSON :: Value -> Parser List_itemsParameters # parseJSONList :: Value -> Parser [List_itemsParameters] # | |
ToJSON List_itemsParameters Source # | |
Defined in RecurlyClient.Operations.List_items Methods toJSON :: List_itemsParameters -> Value # toEncoding :: List_itemsParameters -> Encoding # toJSONList :: [List_itemsParameters] -> Value # toEncodingList :: [List_itemsParameters] -> Encoding # | |
Show List_itemsParameters Source # | |
Defined in RecurlyClient.Operations.List_items Methods showsPrec :: Int -> List_itemsParameters -> ShowS # show :: List_itemsParameters -> String # showList :: [List_itemsParameters] -> ShowS # | |
Eq List_itemsParameters Source # | |
Defined in RecurlyClient.Operations.List_items Methods (==) :: List_itemsParameters -> List_itemsParameters -> Bool # (/=) :: List_itemsParameters -> List_itemsParameters -> Bool # |
mkList_itemsParameters :: List_itemsParameters Source #
Create a new List_itemsParameters
with all required fields.
data List_itemsParametersQueryOrder Source #
Defines the enum schema located at paths./items.GET.parameters.properties.queryOrder
in the specification.
Represents the parameter named 'order'
Sort order.
Constructors
List_itemsParametersQueryOrderOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
List_itemsParametersQueryOrderTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
List_itemsParametersQueryOrderEnumAsc | Represents the JSON value |
List_itemsParametersQueryOrderEnumDesc | Represents the JSON value |
Instances
data List_itemsParametersQuerySort Source #
Defines the enum schema located at paths./items.GET.parameters.properties.querySort
in the specification.
Represents the parameter named 'sort'
Sort field. You *really* only want to sort by `updated_at` in ascending order. In descending order updated records will move behind the cursor and could prevent some records from being returned.
Constructors
List_itemsParametersQuerySortOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
List_itemsParametersQuerySortTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
List_itemsParametersQuerySortEnumCreated_at | Represents the JSON value |
List_itemsParametersQuerySortEnumUpdated_at | Represents the JSON value |
Instances
FromJSON List_itemsParametersQuerySort Source # | |
Defined in RecurlyClient.Operations.List_items Methods parseJSON :: Value -> Parser List_itemsParametersQuerySort # parseJSONList :: Value -> Parser [List_itemsParametersQuerySort] # | |
ToJSON List_itemsParametersQuerySort Source # | |
Defined in RecurlyClient.Operations.List_items Methods toJSON :: List_itemsParametersQuerySort -> Value # toEncoding :: List_itemsParametersQuerySort -> Encoding # toJSONList :: [List_itemsParametersQuerySort] -> Value # toEncodingList :: [List_itemsParametersQuerySort] -> Encoding # | |
Show List_itemsParametersQuerySort Source # | |
Defined in RecurlyClient.Operations.List_items Methods showsPrec :: Int -> List_itemsParametersQuerySort -> ShowS # show :: List_itemsParametersQuerySort -> String # showList :: [List_itemsParametersQuerySort] -> ShowS # | |
Eq List_itemsParametersQuerySort Source # | |
Defined in RecurlyClient.Operations.List_items |
data List_itemsParametersQueryState Source #
Defines the enum schema located at paths./items.GET.parameters.properties.queryState
in the specification.
Represents the parameter named 'state'
Filter by state.
Constructors
List_itemsParametersQueryStateOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
List_itemsParametersQueryStateTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
List_itemsParametersQueryStateEnumActive | Represents the JSON value |
List_itemsParametersQueryStateEnumInactive | Represents the JSON value |
Instances
data List_itemsResponse Source #
Represents a response of the operation list_items
.
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), List_itemsResponseError
is used.
Constructors
List_itemsResponseError String | Means either no matching case available or a parse error |
List_itemsResponse200 ItemList | A list of the site's items. |
List_itemsResponse400 Error | Invalid or unpermitted parameter. |
List_itemsResponse404 Error | Incorrect site ID. |
List_itemsResponseDefault Error | Unexpected error. |
Instances
Show List_itemsResponse Source # | |
Defined in RecurlyClient.Operations.List_items Methods showsPrec :: Int -> List_itemsResponse -> ShowS # show :: List_itemsResponse -> String # showList :: [List_itemsResponse] -> ShowS # | |
Eq List_itemsResponse Source # | |
Defined in RecurlyClient.Operations.List_items Methods (==) :: List_itemsResponse -> List_itemsResponse -> Bool # (/=) :: List_itemsResponse -> List_itemsResponse -> Bool # |
list_itemsWithConfiguration Source #
Arguments
:: forall m. MonadHTTP m | |
=> Configuration | The configuration to use in the request |
-> List_itemsParameters | Contains all available parameters of this operation (query and path parameters) |
-> m (Response List_itemsResponse) | Monadic computation which returns the result of the operation |
GET /items
The same as list_items
but accepts an explicit configuration.
Arguments
:: forall m. MonadHTTP m | |
=> List_itemsParameters | Contains all available parameters of this operation (query and path parameters) |
-> ClientT m (Response ByteString) | Monadic computation which returns the result of the operation |
GET /items
The same as list_items
but returns the raw ByteString
.
list_itemsWithConfigurationRaw Source #
Arguments
:: forall m. MonadHTTP m | |
=> Configuration | The configuration to use in the request |
-> List_itemsParameters | Contains all available parameters of this operation (query and path parameters) |
-> m (Response ByteString) | Monadic computation which returns the result of the operation |
GET /items
The same as list_items
but accepts an explicit configuration and returns the raw ByteString
.