recurly-client-0.0.0.1: Client for Recurly subscription management
Safe HaskellSafe-Inferred
LanguageHaskell2010

RecurlyClient.Operations.List_add_ons

Description

Contains the different functions to run the operation list_add_ons

Synopsis

Documentation

list_add_ons Source #

Arguments

:: forall m. MonadHTTP m 
=> List_add_onsParameters

Contains all available parameters of this operation (query and path parameters)

-> ClientT m (Response List_add_onsResponse)

Monadic computation which returns the result of the operation

GET /add_ons

See the Pagination Guide to learn how to use pagination in the API and Client Libraries.

data List_add_onsParameters Source #

Defines the object schema located at paths./add_ons.GET.parameters in the specification.

Constructors

List_add_onsParameters 

Fields

  • list_add_onsParametersQueryBegin_time :: Maybe JsonDateTime

    queryBegin_time: Represents the parameter named 'begin_time'

    Inclusively filter by begin_time when `sort=created_at` or `sort=updated_at`. **Note:** this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.

  • list_add_onsParametersQueryEnd_time :: Maybe JsonDateTime

    queryEnd_time: Represents the parameter named 'end_time'

    Inclusively filter by end_time when `sort=created_at` or `sort=updated_at`. **Note:** this value is an ISO8601 timestamp. A partial timestamp that does not include a time zone will default to UTC.

  • list_add_onsParametersQueryIds :: Maybe [Text]

    queryIds: Represents the parameter named 'ids'

    Filter results by their IDs. Up to 200 IDs can be passed at once using commas as separators, e.g. `ids=h1at4d57xlmy,gyqgg0d3v9n1,jrsm5b4yefg6`.

    • *Important notes:**
    • The `ids` parameter cannot be used with any other ordering or filtering parameters (`limit`, `order`, `sort`, `begin_time`, `end_time`, etc)
    • Invalid or unknown IDs will be ignored, so you should check that the results correspond to your request.
    • Records are returned in an arbitrary order. Since results are all returned at once you can sort the records yourself.
  • list_add_onsParametersQueryLimit :: Maybe Int

    queryLimit: Represents the parameter named 'limit'

    Limit number of records 1-200.

    Constraints:

    • Maxium of 200.0
    • Minimum of 1.0
  • list_add_onsParametersQueryOrder :: Maybe List_add_onsParametersQueryOrder

    queryOrder: Represents the parameter named 'order'

    Sort order.

  • list_add_onsParametersQuerySort :: Maybe List_add_onsParametersQuerySort

    querySort: 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_add_onsParametersQueryState :: Maybe List_add_onsParametersQueryState

    queryState: Represents the parameter named 'state'

    Filter by state.

data List_add_onsParametersQueryOrder Source #

Defines the enum schema located at paths./add_ons.GET.parameters.properties.queryOrder in the specification.

Represents the parameter named 'order'

Sort order.

Constructors

List_add_onsParametersQueryOrderOther Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

List_add_onsParametersQueryOrderTyped Text

This constructor can be used to send values to the server which are not present in the specification yet.

List_add_onsParametersQueryOrderEnumAsc

Represents the JSON value "asc"

List_add_onsParametersQueryOrderEnumDesc

Represents the JSON value "desc"

data List_add_onsParametersQuerySort Source #

Defines the enum schema located at paths./add_ons.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_add_onsParametersQuerySortOther Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

List_add_onsParametersQuerySortTyped Text

This constructor can be used to send values to the server which are not present in the specification yet.

List_add_onsParametersQuerySortEnumCreated_at

Represents the JSON value "created_at"

List_add_onsParametersQuerySortEnumUpdated_at

Represents the JSON value "updated_at"

data List_add_onsParametersQueryState Source #

Defines the enum schema located at paths./add_ons.GET.parameters.properties.queryState in the specification.

Represents the parameter named 'state'

Filter by state.

Constructors

List_add_onsParametersQueryStateOther Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

List_add_onsParametersQueryStateTyped Text

This constructor can be used to send values to the server which are not present in the specification yet.

List_add_onsParametersQueryStateEnumActive

Represents the JSON value "active"

List_add_onsParametersQueryStateEnumInactive

Represents the JSON value "inactive"

data List_add_onsResponse Source #

Represents a response of the operation list_add_ons.

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_add_onsResponseError is used.

Constructors

List_add_onsResponseError String

Means either no matching case available or a parse error

List_add_onsResponse200 AddOnList

A list of add-ons.

List_add_onsResponse400 Error

Invalid or unpermitted parameter.

List_add_onsResponse404 Error

Incorrect site or add-on ID.

List_add_onsResponseDefault Error

Unexpected error.

list_add_onsWithConfiguration Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> List_add_onsParameters

Contains all available parameters of this operation (query and path parameters)

-> m (Response List_add_onsResponse)

Monadic computation which returns the result of the operation

GET /add_ons

The same as list_add_ons but accepts an explicit configuration.

list_add_onsRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> List_add_onsParameters

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 /add_ons

The same as list_add_ons but returns the raw ByteString.

list_add_onsWithConfigurationRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> List_add_onsParameters

Contains all available parameters of this operation (query and path parameters)

-> m (Response ByteString)

Monadic computation which returns the result of the operation

GET /add_ons

The same as list_add_ons but accepts an explicit configuration and returns the raw ByteString.