Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RecurlyClient.Operations.List_account_subscriptions
Description
Contains the different functions to run the operation list_account_subscriptions
Synopsis
- list_account_subscriptions :: forall m. MonadHTTP m => List_account_subscriptionsParameters -> ClientT m (Response List_account_subscriptionsResponse)
- data List_account_subscriptionsParameters = List_account_subscriptionsParameters {
- list_account_subscriptionsParametersPathAccount_id :: Text
- list_account_subscriptionsParametersQueryBegin_time :: Maybe JsonDateTime
- list_account_subscriptionsParametersQueryEnd_time :: Maybe JsonDateTime
- list_account_subscriptionsParametersQueryIds :: Maybe [Text]
- list_account_subscriptionsParametersQueryLimit :: Maybe Int
- list_account_subscriptionsParametersQueryOrder :: Maybe List_account_subscriptionsParametersQueryOrder
- list_account_subscriptionsParametersQuerySort :: Maybe List_account_subscriptionsParametersQuerySort
- list_account_subscriptionsParametersQueryState :: Maybe List_account_subscriptionsParametersQueryState
- mkList_account_subscriptionsParameters :: Text -> List_account_subscriptionsParameters
- data List_account_subscriptionsParametersQueryOrder
- data List_account_subscriptionsParametersQuerySort
- data List_account_subscriptionsParametersQueryState
- = List_account_subscriptionsParametersQueryStateOther Value
- | List_account_subscriptionsParametersQueryStateTyped Text
- | List_account_subscriptionsParametersQueryStateEnumActive
- | List_account_subscriptionsParametersQueryStateEnumCanceled
- | List_account_subscriptionsParametersQueryStateEnumExpired
- | List_account_subscriptionsParametersQueryStateEnumFuture
- | List_account_subscriptionsParametersQueryStateEnumIn_trial
- | List_account_subscriptionsParametersQueryStateEnumLive
- data List_account_subscriptionsResponse
- list_account_subscriptionsWithConfiguration :: forall m. MonadHTTP m => Configuration -> List_account_subscriptionsParameters -> m (Response List_account_subscriptionsResponse)
- list_account_subscriptionsRaw :: forall m. MonadHTTP m => List_account_subscriptionsParameters -> ClientT m (Response ByteString)
- list_account_subscriptionsWithConfigurationRaw :: forall m. MonadHTTP m => Configuration -> List_account_subscriptionsParameters -> m (Response ByteString)
Documentation
list_account_subscriptions Source #
Arguments
:: forall m. MonadHTTP m | |
=> List_account_subscriptionsParameters | Contains all available parameters of this operation (query and path parameters) |
-> ClientT m (Response List_account_subscriptionsResponse) | Monadic computation which returns the result of the operation |
GET /accounts/{account_id}/subscriptions
See the Pagination Guide to learn how to use pagination in the API and Client Libraries.
data List_account_subscriptionsParameters Source #
Defines the object schema located at paths./accounts/{account_id}/subscriptions.GET.parameters
in the specification.
Constructors
List_account_subscriptionsParameters | |
Fields
|
Instances
mkList_account_subscriptionsParameters Source #
Arguments
:: Text | |
-> List_account_subscriptionsParameters |
Create a new List_account_subscriptionsParameters
with all required fields.
data List_account_subscriptionsParametersQueryOrder Source #
Defines the enum schema located at paths./accounts/{account_id}/subscriptions.GET.parameters.properties.queryOrder
in the specification.
Represents the parameter named 'order'
Sort order.
Constructors
List_account_subscriptionsParametersQueryOrderOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
List_account_subscriptionsParametersQueryOrderTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
List_account_subscriptionsParametersQueryOrderEnumAsc | Represents the JSON value |
List_account_subscriptionsParametersQueryOrderEnumDesc | Represents the JSON value |
Instances
data List_account_subscriptionsParametersQuerySort Source #
Defines the enum schema located at paths./accounts/{account_id}/subscriptions.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_account_subscriptionsParametersQuerySortOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
List_account_subscriptionsParametersQuerySortTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
List_account_subscriptionsParametersQuerySortEnumCreated_at | Represents the JSON value |
List_account_subscriptionsParametersQuerySortEnumUpdated_at | Represents the JSON value |
Instances
data List_account_subscriptionsParametersQueryState Source #
Defines the enum schema located at paths./accounts/{account_id}/subscriptions.GET.parameters.properties.queryState
in the specification.
Represents the parameter named 'state'
Filter by state.
- When `state=active`, `state=canceled`, `state=expired`, or `state=future`, subscriptions with states that match the query and only those subscriptions will be returned.
- When `state=in_trial`, only subscriptions that have a trial_started_at date earlier than now and a trial_ends_at date later than now will be returned.
- When `state=live`, only subscriptions that are in an active, canceled, or future state or are in trial will be returned.
Constructors
List_account_subscriptionsParametersQueryStateOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
List_account_subscriptionsParametersQueryStateTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
List_account_subscriptionsParametersQueryStateEnumActive | Represents the JSON value |
List_account_subscriptionsParametersQueryStateEnumCanceled | Represents the JSON value |
List_account_subscriptionsParametersQueryStateEnumExpired | Represents the JSON value |
List_account_subscriptionsParametersQueryStateEnumFuture | Represents the JSON value |
List_account_subscriptionsParametersQueryStateEnumIn_trial | Represents the JSON value |
List_account_subscriptionsParametersQueryStateEnumLive | Represents the JSON value |
Instances
data List_account_subscriptionsResponse Source #
Represents a response of the operation list_account_subscriptions
.
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_account_subscriptionsResponseError
is used.
Constructors
List_account_subscriptionsResponseError String | Means either no matching case available or a parse error |
List_account_subscriptionsResponse200 SubscriptionList | A list of the account's subscriptions. |
List_account_subscriptionsResponse400 Error | Invalid or unpermitted parameter. |
List_account_subscriptionsResponse404 Error | Incorrect site or account ID. |
List_account_subscriptionsResponseDefault Error | Unexpected error. |
Instances
list_account_subscriptionsWithConfiguration Source #
Arguments
:: forall m. MonadHTTP m | |
=> Configuration | The configuration to use in the request |
-> List_account_subscriptionsParameters | Contains all available parameters of this operation (query and path parameters) |
-> m (Response List_account_subscriptionsResponse) | Monadic computation which returns the result of the operation |
GET /accounts/{account_id}/subscriptions
The same as list_account_subscriptions
but accepts an explicit configuration.
list_account_subscriptionsRaw Source #
Arguments
:: forall m. MonadHTTP m | |
=> List_account_subscriptionsParameters | 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 /accounts/{account_id}/subscriptions
The same as list_account_subscriptions
but returns the raw ByteString
.
list_account_subscriptionsWithConfigurationRaw Source #
Arguments
:: forall m. MonadHTTP m | |
=> Configuration | The configuration to use in the request |
-> List_account_subscriptionsParameters | Contains all available parameters of this operation (query and path parameters) |
-> m (Response ByteString) | Monadic computation which returns the result of the operation |
GET /accounts/{account_id}/subscriptions
The same as list_account_subscriptions
but accepts an explicit configuration and returns the raw ByteString
.