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

RecurlyClient.Operations.List_unique_coupon_codes

Description

Contains the different functions to run the operation list_unique_coupon_codes

Synopsis

Documentation

list_unique_coupon_codes Source #

Arguments

:: forall m. MonadHTTP m 
=> List_unique_coupon_codesParameters

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

-> ClientT m (Response List_unique_coupon_codesResponse)

Monadic computation which returns the result of the operation

GET /coupons/{coupon_id}/unique_coupon_codes

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

data List_unique_coupon_codesParameters Source #

Defines the object schema located at paths./coupons/{coupon_id}/unique_coupon_codes.GET.parameters in the specification.

Constructors

List_unique_coupon_codesParameters 

Fields

data List_unique_coupon_codesParametersQueryOrder Source #

Defines the enum schema located at paths./coupons/{coupon_id}/unique_coupon_codes.GET.parameters.properties.queryOrder in the specification.

Represents the parameter named 'order'

Sort order.

Constructors

List_unique_coupon_codesParametersQueryOrderOther Value

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

List_unique_coupon_codesParametersQueryOrderTyped Text

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

List_unique_coupon_codesParametersQueryOrderEnumAsc

Represents the JSON value "asc"

List_unique_coupon_codesParametersQueryOrderEnumDesc

Represents the JSON value "desc"

data List_unique_coupon_codesParametersQueryRedeemed Source #

Defines the enum schema located at paths./coupons/{coupon_id}/unique_coupon_codes.GET.parameters.properties.queryRedeemed in the specification.

Represents the parameter named 'redeemed'

Filter unique coupon codes by redemption status. `true` for redeemed, `false` for not redeemed.

Constructors

List_unique_coupon_codesParametersQueryRedeemedOther Value

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

List_unique_coupon_codesParametersQueryRedeemedTyped Text

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

List_unique_coupon_codesParametersQueryRedeemedEnumTrue

Represents the JSON value true

List_unique_coupon_codesParametersQueryRedeemedEnumFalse

Represents the JSON value false

Instances

Instances details
FromJSON List_unique_coupon_codesParametersQueryRedeemed Source # 
Instance details

Defined in RecurlyClient.Operations.List_unique_coupon_codes

ToJSON List_unique_coupon_codesParametersQueryRedeemed Source # 
Instance details

Defined in RecurlyClient.Operations.List_unique_coupon_codes

Show List_unique_coupon_codesParametersQueryRedeemed Source # 
Instance details

Defined in RecurlyClient.Operations.List_unique_coupon_codes

Eq List_unique_coupon_codesParametersQueryRedeemed Source # 
Instance details

Defined in RecurlyClient.Operations.List_unique_coupon_codes

data List_unique_coupon_codesParametersQuerySort Source #

Defines the enum schema located at paths./coupons/{coupon_id}/unique_coupon_codes.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_unique_coupon_codesParametersQuerySortOther Value

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

List_unique_coupon_codesParametersQuerySortTyped Text

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

List_unique_coupon_codesParametersQuerySortEnumCreated_at

Represents the JSON value "created_at"

List_unique_coupon_codesParametersQuerySortEnumUpdated_at

Represents the JSON value "updated_at"

data List_unique_coupon_codesResponse Source #

Represents a response of the operation list_unique_coupon_codes.

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

Constructors

List_unique_coupon_codesResponseError String

Means either no matching case available or a parse error

List_unique_coupon_codesResponse200 UniqueCouponCodeList

A list of unique coupon codes that were generated

List_unique_coupon_codesResponse404 Error

Incorrect site or coupon ID.

List_unique_coupon_codesResponseDefault Error

Unexpected error.

list_unique_coupon_codesWithConfiguration Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> List_unique_coupon_codesParameters

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

-> m (Response List_unique_coupon_codesResponse)

Monadic computation which returns the result of the operation

GET /coupons/{coupon_id}/unique_coupon_codes

The same as list_unique_coupon_codes but accepts an explicit configuration.

list_unique_coupon_codesRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> List_unique_coupon_codesParameters

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 /coupons/{coupon_id}/unique_coupon_codes

The same as list_unique_coupon_codes but returns the raw ByteString.

list_unique_coupon_codesWithConfigurationRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> List_unique_coupon_codesParameters

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

-> m (Response ByteString)

Monadic computation which returns the result of the operation

GET /coupons/{coupon_id}/unique_coupon_codes

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