| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
RecurlyClient.Operations.List_plans
Description
Contains the different functions to run the operation list_plans
Synopsis
- list_plans :: forall m. MonadHTTP m => List_plansParameters -> ClientT m (Response List_plansResponse)
- data List_plansParameters = List_plansParameters {
- list_plansParametersQueryBegin_time :: Maybe JsonDateTime
- list_plansParametersQueryEnd_time :: Maybe JsonDateTime
- list_plansParametersQueryIds :: Maybe [Text]
- list_plansParametersQueryLimit :: Maybe Int
- list_plansParametersQueryOrder :: Maybe List_plansParametersQueryOrder
- list_plansParametersQuerySort :: Maybe List_plansParametersQuerySort
- list_plansParametersQueryState :: Maybe List_plansParametersQueryState
- mkList_plansParameters :: List_plansParameters
- data List_plansParametersQueryOrder
- data List_plansParametersQuerySort
- data List_plansParametersQueryState
- data List_plansResponse
- list_plansWithConfiguration :: forall m. MonadHTTP m => Configuration -> List_plansParameters -> m (Response List_plansResponse)
- list_plansRaw :: forall m. MonadHTTP m => List_plansParameters -> ClientT m (Response ByteString)
- list_plansWithConfigurationRaw :: forall m. MonadHTTP m => Configuration -> List_plansParameters -> m (Response ByteString)
Documentation
Arguments
| :: forall m. MonadHTTP m | |
| => List_plansParameters | Contains all available parameters of this operation (query and path parameters) |
| -> ClientT m (Response List_plansResponse) | Monadic computation which returns the result of the operation |
GET /plans
See the Pagination Guide to learn how to use pagination in the API and Client Libraries.
data List_plansParameters Source #
Defines the object schema located at paths./plans.GET.parameters in the specification.
Constructors
| List_plansParameters | |
Fields
| |
Instances
| FromJSON List_plansParameters Source # | |
Defined in RecurlyClient.Operations.List_plans Methods parseJSON :: Value -> Parser List_plansParameters # parseJSONList :: Value -> Parser [List_plansParameters] # | |
| ToJSON List_plansParameters Source # | |
Defined in RecurlyClient.Operations.List_plans Methods toJSON :: List_plansParameters -> Value # toEncoding :: List_plansParameters -> Encoding # toJSONList :: [List_plansParameters] -> Value # toEncodingList :: [List_plansParameters] -> Encoding # | |
| Show List_plansParameters Source # | |
Defined in RecurlyClient.Operations.List_plans Methods showsPrec :: Int -> List_plansParameters -> ShowS # show :: List_plansParameters -> String # showList :: [List_plansParameters] -> ShowS # | |
| Eq List_plansParameters Source # | |
Defined in RecurlyClient.Operations.List_plans Methods (==) :: List_plansParameters -> List_plansParameters -> Bool # (/=) :: List_plansParameters -> List_plansParameters -> Bool # | |
mkList_plansParameters :: List_plansParameters Source #
Create a new List_plansParameters with all required fields.
data List_plansParametersQueryOrder Source #
Defines the enum schema located at paths./plans.GET.parameters.properties.queryOrder in the specification.
Represents the parameter named 'order'
Sort order.
Constructors
| List_plansParametersQueryOrderOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
| List_plansParametersQueryOrderTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
| List_plansParametersQueryOrderEnumAsc | Represents the JSON value |
| List_plansParametersQueryOrderEnumDesc | Represents the JSON value |
Instances
data List_plansParametersQuerySort Source #
Defines the enum schema located at paths./plans.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_plansParametersQuerySortOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
| List_plansParametersQuerySortTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
| List_plansParametersQuerySortEnumCreated_at | Represents the JSON value |
| List_plansParametersQuerySortEnumUpdated_at | Represents the JSON value |
Instances
| FromJSON List_plansParametersQuerySort Source # | |
Defined in RecurlyClient.Operations.List_plans Methods parseJSON :: Value -> Parser List_plansParametersQuerySort # parseJSONList :: Value -> Parser [List_plansParametersQuerySort] # | |
| ToJSON List_plansParametersQuerySort Source # | |
Defined in RecurlyClient.Operations.List_plans Methods toJSON :: List_plansParametersQuerySort -> Value # toEncoding :: List_plansParametersQuerySort -> Encoding # toJSONList :: [List_plansParametersQuerySort] -> Value # toEncodingList :: [List_plansParametersQuerySort] -> Encoding # | |
| Show List_plansParametersQuerySort Source # | |
Defined in RecurlyClient.Operations.List_plans Methods showsPrec :: Int -> List_plansParametersQuerySort -> ShowS # show :: List_plansParametersQuerySort -> String # showList :: [List_plansParametersQuerySort] -> ShowS # | |
| Eq List_plansParametersQuerySort Source # | |
Defined in RecurlyClient.Operations.List_plans | |
data List_plansParametersQueryState Source #
Defines the enum schema located at paths./plans.GET.parameters.properties.queryState in the specification.
Represents the parameter named 'state'
Filter by state.
Constructors
| List_plansParametersQueryStateOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
| List_plansParametersQueryStateTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
| List_plansParametersQueryStateEnumActive | Represents the JSON value |
| List_plansParametersQueryStateEnumInactive | Represents the JSON value |
Instances
data List_plansResponse Source #
Represents a response of the operation list_plans.
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_plansResponseError is used.
Constructors
| List_plansResponseError String | Means either no matching case available or a parse error |
| List_plansResponse200 PlanList | A list of plans. |
| List_plansResponse400 Error | Invalid or unpermitted parameter. |
| List_plansResponse404 Error | Incorrect site ID. |
| List_plansResponseDefault Error | Unexpected error. |
Instances
| Show List_plansResponse Source # | |
Defined in RecurlyClient.Operations.List_plans Methods showsPrec :: Int -> List_plansResponse -> ShowS # show :: List_plansResponse -> String # showList :: [List_plansResponse] -> ShowS # | |
| Eq List_plansResponse Source # | |
Defined in RecurlyClient.Operations.List_plans Methods (==) :: List_plansResponse -> List_plansResponse -> Bool # (/=) :: List_plansResponse -> List_plansResponse -> Bool # | |
list_plansWithConfiguration Source #
Arguments
| :: forall m. MonadHTTP m | |
| => Configuration | The configuration to use in the request |
| -> List_plansParameters | Contains all available parameters of this operation (query and path parameters) |
| -> m (Response List_plansResponse) | Monadic computation which returns the result of the operation |
GET /plans
The same as list_plans but accepts an explicit configuration.
Arguments
| :: forall m. MonadHTTP m | |
| => List_plansParameters | 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 /plans
The same as list_plans but returns the raw ByteString.
list_plansWithConfigurationRaw Source #
Arguments
| :: forall m. MonadHTTP m | |
| => Configuration | The configuration to use in the request |
| -> List_plansParameters | Contains all available parameters of this operation (query and path parameters) |
| -> m (Response ByteString) | Monadic computation which returns the result of the operation |
GET /plans
The same as list_plans but accepts an explicit configuration and returns the raw ByteString.