Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation list_subscriptions
Synopsis
- list_subscriptions :: forall m. MonadHTTP m => List_subscriptionsParameters -> ClientT m (Response List_subscriptionsResponse)
- data List_subscriptionsParameters = List_subscriptionsParameters {
- list_subscriptionsParametersQueryBegin_time :: Maybe JsonDateTime
- list_subscriptionsParametersQueryEnd_time :: Maybe JsonDateTime
- list_subscriptionsParametersQueryIds :: Maybe [Text]
- list_subscriptionsParametersQueryLimit :: Maybe Int
- list_subscriptionsParametersQueryOrder :: Maybe List_subscriptionsParametersQueryOrder
- list_subscriptionsParametersQuerySort :: Maybe List_subscriptionsParametersQuerySort
- list_subscriptionsParametersQueryState :: Maybe List_subscriptionsParametersQueryState
- mkList_subscriptionsParameters :: List_subscriptionsParameters
- data List_subscriptionsParametersQueryOrder
- data List_subscriptionsParametersQuerySort
- data List_subscriptionsParametersQueryState
- = List_subscriptionsParametersQueryStateOther Value
- | List_subscriptionsParametersQueryStateTyped Text
- | List_subscriptionsParametersQueryStateEnumActive
- | List_subscriptionsParametersQueryStateEnumCanceled
- | List_subscriptionsParametersQueryStateEnumExpired
- | List_subscriptionsParametersQueryStateEnumFuture
- | List_subscriptionsParametersQueryStateEnumIn_trial
- | List_subscriptionsParametersQueryStateEnumLive
- data List_subscriptionsResponse
- list_subscriptionsWithConfiguration :: forall m. MonadHTTP m => Configuration -> List_subscriptionsParameters -> m (Response List_subscriptionsResponse)
- list_subscriptionsRaw :: forall m. MonadHTTP m => List_subscriptionsParameters -> ClientT m (Response ByteString)
- list_subscriptionsWithConfigurationRaw :: forall m. MonadHTTP m => Configuration -> List_subscriptionsParameters -> m (Response ByteString)
Documentation
:: forall m. MonadHTTP m | |
=> List_subscriptionsParameters | Contains all available parameters of this operation (query and path parameters) |
-> ClientT m (Response List_subscriptionsResponse) | Monadic computation which returns the result of the operation |
GET /subscriptions
See the Pagination Guide to learn how to use pagination in the API and Client Libraries.
data List_subscriptionsParameters Source #
Defines the object schema located at paths./subscriptions.GET.parameters
in the specification.
List_subscriptionsParameters | |
|
Instances
mkList_subscriptionsParameters :: List_subscriptionsParameters Source #
Create a new List_subscriptionsParameters
with all required fields.
data List_subscriptionsParametersQueryOrder Source #
Defines the enum schema located at paths./subscriptions.GET.parameters.properties.queryOrder
in the specification.
Represents the parameter named 'order'
Sort order.
List_subscriptionsParametersQueryOrderOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
List_subscriptionsParametersQueryOrderTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
List_subscriptionsParametersQueryOrderEnumAsc | Represents the JSON value |
List_subscriptionsParametersQueryOrderEnumDesc | Represents the JSON value |
data List_subscriptionsParametersQuerySort Source #
Defines the enum schema located at paths./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.
List_subscriptionsParametersQuerySortOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
List_subscriptionsParametersQuerySortTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
List_subscriptionsParametersQuerySortEnumCreated_at | Represents the JSON value |
List_subscriptionsParametersQuerySortEnumUpdated_at | Represents the JSON value |
data List_subscriptionsParametersQueryState Source #
Defines the enum schema located at paths./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.
List_subscriptionsParametersQueryStateOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
List_subscriptionsParametersQueryStateTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
List_subscriptionsParametersQueryStateEnumActive | Represents the JSON value |
List_subscriptionsParametersQueryStateEnumCanceled | Represents the JSON value |
List_subscriptionsParametersQueryStateEnumExpired | Represents the JSON value |
List_subscriptionsParametersQueryStateEnumFuture | Represents the JSON value |
List_subscriptionsParametersQueryStateEnumIn_trial | Represents the JSON value |
List_subscriptionsParametersQueryStateEnumLive | Represents the JSON value |
data List_subscriptionsResponse Source #
Represents a response of the operation list_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_subscriptionsResponseError
is used.
List_subscriptionsResponseError String | Means either no matching case available or a parse error |
List_subscriptionsResponse200 SubscriptionList | A list of the site's subscriptions. |
List_subscriptionsResponse400 Error | Invalid or unpermitted parameter. |
List_subscriptionsResponse404 Error | Incorrect site ID. |
List_subscriptionsResponseDefault Error | Unexpected error. |
Instances
list_subscriptionsWithConfiguration Source #
:: forall m. MonadHTTP m | |
=> Configuration | The configuration to use in the request |
-> List_subscriptionsParameters | Contains all available parameters of this operation (query and path parameters) |
-> m (Response List_subscriptionsResponse) | Monadic computation which returns the result of the operation |
GET /subscriptions
The same as list_subscriptions
but accepts an explicit configuration.
list_subscriptionsRaw Source #
:: forall m. MonadHTTP m | |
=> List_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 /subscriptions
The same as list_subscriptions
but returns the raw ByteString
.
list_subscriptionsWithConfigurationRaw Source #
:: forall m. MonadHTTP m | |
=> Configuration | The configuration to use in the request |
-> List_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 /subscriptions
The same as list_subscriptions
but accepts an explicit configuration and returns the raw ByteString
.