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

RecurlyClient.Operations.List_subscription_coupon_redemptions

Description

Contains the different functions to run the operation list_subscription_coupon_redemptions

Synopsis

Documentation

list_subscription_coupon_redemptions Source #

Arguments

:: forall m. MonadHTTP m 
=> List_subscription_coupon_redemptionsParameters

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

-> ClientT m (Response List_subscription_coupon_redemptionsResponse)

Monadic computation which returns the result of the operation

GET /subscriptions/{subscription_id}/coupon_redemptions

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

data List_subscription_coupon_redemptionsParameters Source #

Defines the object schema located at paths./subscriptions/{subscription_id}/coupon_redemptions.GET.parameters in the specification.

Constructors

List_subscription_coupon_redemptionsParameters 

Fields

Instances

Instances details
FromJSON List_subscription_coupon_redemptionsParameters Source # 
Instance details

Defined in RecurlyClient.Operations.List_subscription_coupon_redemptions

ToJSON List_subscription_coupon_redemptionsParameters Source # 
Instance details

Defined in RecurlyClient.Operations.List_subscription_coupon_redemptions

Show List_subscription_coupon_redemptionsParameters Source # 
Instance details

Defined in RecurlyClient.Operations.List_subscription_coupon_redemptions

Eq List_subscription_coupon_redemptionsParameters Source # 
Instance details

Defined in RecurlyClient.Operations.List_subscription_coupon_redemptions

data List_subscription_coupon_redemptionsParametersQuerySort Source #

Defines the enum schema located at paths./subscriptions/{subscription_id}/coupon_redemptions.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_subscription_coupon_redemptionsParametersQuerySortOther Value

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

List_subscription_coupon_redemptionsParametersQuerySortTyped Text

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

List_subscription_coupon_redemptionsParametersQuerySortEnumCreated_at

Represents the JSON value "created_at"

List_subscription_coupon_redemptionsParametersQuerySortEnumUpdated_at

Represents the JSON value "updated_at"

Instances

Instances details
FromJSON List_subscription_coupon_redemptionsParametersQuerySort Source # 
Instance details

Defined in RecurlyClient.Operations.List_subscription_coupon_redemptions

ToJSON List_subscription_coupon_redemptionsParametersQuerySort Source # 
Instance details

Defined in RecurlyClient.Operations.List_subscription_coupon_redemptions

Show List_subscription_coupon_redemptionsParametersQuerySort Source # 
Instance details

Defined in RecurlyClient.Operations.List_subscription_coupon_redemptions

Eq List_subscription_coupon_redemptionsParametersQuerySort Source # 
Instance details

Defined in RecurlyClient.Operations.List_subscription_coupon_redemptions

data List_subscription_coupon_redemptionsResponse Source #

Represents a response of the operation list_subscription_coupon_redemptions.

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

Constructors

List_subscription_coupon_redemptionsResponseError String

Means either no matching case available or a parse error

List_subscription_coupon_redemptionsResponse200 CouponRedemptionList

A list of the the coupon redemptions on a subscription.

List_subscription_coupon_redemptionsResponse404 Error

Incorrect site or subscription ID.

List_subscription_coupon_redemptionsResponseDefault Error

Unexpected error.

list_subscription_coupon_redemptionsWithConfiguration Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> List_subscription_coupon_redemptionsParameters

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

-> m (Response List_subscription_coupon_redemptionsResponse)

Monadic computation which returns the result of the operation

GET /subscriptions/{subscription_id}/coupon_redemptions

The same as list_subscription_coupon_redemptions but accepts an explicit configuration.

list_subscription_coupon_redemptionsRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> List_subscription_coupon_redemptionsParameters

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/{subscription_id}/coupon_redemptions

The same as list_subscription_coupon_redemptions but returns the raw ByteString.

list_subscription_coupon_redemptionsWithConfigurationRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> List_subscription_coupon_redemptionsParameters

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/{subscription_id}/coupon_redemptions

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