Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RecurlyClient.Operations.List_unique_coupon_codes
Description
Contains the different functions to run the operation list_unique_coupon_codes
Synopsis
- list_unique_coupon_codes :: forall m. MonadHTTP m => List_unique_coupon_codesParameters -> ClientT m (Response List_unique_coupon_codesResponse)
- data List_unique_coupon_codesParameters = List_unique_coupon_codesParameters {
- list_unique_coupon_codesParametersPathCoupon_id :: Text
- list_unique_coupon_codesParametersQueryBegin_time :: Maybe JsonDateTime
- list_unique_coupon_codesParametersQueryEnd_time :: Maybe JsonDateTime
- list_unique_coupon_codesParametersQueryIds :: Maybe [Text]
- list_unique_coupon_codesParametersQueryLimit :: Maybe Int
- list_unique_coupon_codesParametersQueryOrder :: Maybe List_unique_coupon_codesParametersQueryOrder
- list_unique_coupon_codesParametersQueryRedeemed :: Maybe List_unique_coupon_codesParametersQueryRedeemed
- list_unique_coupon_codesParametersQuerySort :: Maybe List_unique_coupon_codesParametersQuerySort
- mkList_unique_coupon_codesParameters :: Text -> List_unique_coupon_codesParameters
- data List_unique_coupon_codesParametersQueryOrder
- data List_unique_coupon_codesParametersQueryRedeemed
- data List_unique_coupon_codesParametersQuerySort
- data List_unique_coupon_codesResponse
- list_unique_coupon_codesWithConfiguration :: forall m. MonadHTTP m => Configuration -> List_unique_coupon_codesParameters -> m (Response List_unique_coupon_codesResponse)
- list_unique_coupon_codesRaw :: forall m. MonadHTTP m => List_unique_coupon_codesParameters -> ClientT m (Response ByteString)
- list_unique_coupon_codesWithConfigurationRaw :: forall m. MonadHTTP m => Configuration -> List_unique_coupon_codesParameters -> m (Response ByteString)
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
|
Instances
mkList_unique_coupon_codesParameters Source #
Arguments
:: Text | |
-> List_unique_coupon_codesParameters |
Create a new List_unique_coupon_codesParameters
with all required 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 |
List_unique_coupon_codesParametersQueryOrderEnumDesc | Represents the JSON value |
Instances
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 |
List_unique_coupon_codesParametersQueryRedeemedEnumFalse | Represents the JSON value |
Instances
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 |
List_unique_coupon_codesParametersQuerySortEnumUpdated_at | Represents the JSON value |
Instances
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. |
Instances
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
.