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

RecurlyClient.Operations.List_plan_add_ons

Description

Contains the different functions to run the operation list_plan_add_ons

Synopsis

Documentation

list_plan_add_ons Source #

Arguments

:: forall m. MonadHTTP m 
=> List_plan_add_onsParameters

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

-> ClientT m (Response List_plan_add_onsResponse)

Monadic computation which returns the result of the operation

GET /plans/{plan_id}/add_ons

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

data List_plan_add_onsParameters Source #

Defines the object schema located at paths./plans/{plan_id}/add_ons.GET.parameters in the specification.

Constructors

List_plan_add_onsParameters 

Fields

data List_plan_add_onsParametersQueryOrder Source #

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

Represents the parameter named 'order'

Sort order.

Constructors

List_plan_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_plan_add_onsParametersQueryOrderTyped Text

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

List_plan_add_onsParametersQueryOrderEnumAsc

Represents the JSON value "asc"

List_plan_add_onsParametersQueryOrderEnumDesc

Represents the JSON value "desc"

data List_plan_add_onsParametersQuerySort Source #

Defines the enum schema located at paths./plans/{plan_id}/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_plan_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_plan_add_onsParametersQuerySortTyped Text

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

List_plan_add_onsParametersQuerySortEnumCreated_at

Represents the JSON value "created_at"

List_plan_add_onsParametersQuerySortEnumUpdated_at

Represents the JSON value "updated_at"

data List_plan_add_onsParametersQueryState Source #

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

Represents the parameter named 'state'

Filter by state.

Constructors

List_plan_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_plan_add_onsParametersQueryStateTyped Text

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

List_plan_add_onsParametersQueryStateEnumActive

Represents the JSON value "active"

List_plan_add_onsParametersQueryStateEnumInactive

Represents the JSON value "inactive"

data List_plan_add_onsResponse Source #

Represents a response of the operation list_plan_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_plan_add_onsResponseError is used.

Constructors

List_plan_add_onsResponseError String

Means either no matching case available or a parse error

List_plan_add_onsResponse200 AddOnList

A list of add-ons.

List_plan_add_onsResponse400 Error

Invalid or unpermitted parameter.

List_plan_add_onsResponse404 Error

Incorrect site or plan ID.

List_plan_add_onsResponseDefault Error

Unexpected error.

list_plan_add_onsWithConfiguration Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> List_plan_add_onsParameters

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

-> m (Response List_plan_add_onsResponse)

Monadic computation which returns the result of the operation

GET /plans/{plan_id}/add_ons

The same as list_plan_add_ons but accepts an explicit configuration.

list_plan_add_onsRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> List_plan_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 /plans/{plan_id}/add_ons

The same as list_plan_add_ons but returns the raw ByteString.

list_plan_add_onsWithConfigurationRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> List_plan_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 /plans/{plan_id}/add_ons

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