Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RecurlyClient.Operations.List_coupons
Description
Contains the different functions to run the operation list_coupons
Synopsis
- list_coupons :: forall m. MonadHTTP m => List_couponsParameters -> ClientT m (Response List_couponsResponse)
- data List_couponsParameters = List_couponsParameters {
- list_couponsParametersQueryBegin_time :: Maybe JsonDateTime
- list_couponsParametersQueryEnd_time :: Maybe JsonDateTime
- list_couponsParametersQueryIds :: Maybe [Text]
- list_couponsParametersQueryLimit :: Maybe Int
- list_couponsParametersQueryOrder :: Maybe List_couponsParametersQueryOrder
- list_couponsParametersQuerySort :: Maybe List_couponsParametersQuerySort
- mkList_couponsParameters :: List_couponsParameters
- data List_couponsParametersQueryOrder
- data List_couponsParametersQuerySort
- data List_couponsResponse
- list_couponsWithConfiguration :: forall m. MonadHTTP m => Configuration -> List_couponsParameters -> m (Response List_couponsResponse)
- list_couponsRaw :: forall m. MonadHTTP m => List_couponsParameters -> ClientT m (Response ByteString)
- list_couponsWithConfigurationRaw :: forall m. MonadHTTP m => Configuration -> List_couponsParameters -> m (Response ByteString)
Documentation
Arguments
:: forall m. MonadHTTP m | |
=> List_couponsParameters | Contains all available parameters of this operation (query and path parameters) |
-> ClientT m (Response List_couponsResponse) | Monadic computation which returns the result of the operation |
GET /coupons
See the Pagination Guide to learn how to use pagination in the API and Client Libraries.
data List_couponsParameters Source #
Defines the object schema located at paths./coupons.GET.parameters
in the specification.
Constructors
List_couponsParameters | |
Fields
|
Instances
FromJSON List_couponsParameters Source # | |
Defined in RecurlyClient.Operations.List_coupons Methods parseJSON :: Value -> Parser List_couponsParameters # parseJSONList :: Value -> Parser [List_couponsParameters] # | |
ToJSON List_couponsParameters Source # | |
Defined in RecurlyClient.Operations.List_coupons Methods toJSON :: List_couponsParameters -> Value # toEncoding :: List_couponsParameters -> Encoding # toJSONList :: [List_couponsParameters] -> Value # | |
Show List_couponsParameters Source # | |
Defined in RecurlyClient.Operations.List_coupons Methods showsPrec :: Int -> List_couponsParameters -> ShowS # show :: List_couponsParameters -> String # showList :: [List_couponsParameters] -> ShowS # | |
Eq List_couponsParameters Source # | |
Defined in RecurlyClient.Operations.List_coupons Methods (==) :: List_couponsParameters -> List_couponsParameters -> Bool # (/=) :: List_couponsParameters -> List_couponsParameters -> Bool # |
mkList_couponsParameters :: List_couponsParameters Source #
Create a new List_couponsParameters
with all required fields.
data List_couponsParametersQueryOrder Source #
Defines the enum schema located at paths./coupons.GET.parameters.properties.queryOrder
in the specification.
Represents the parameter named 'order'
Sort order.
Constructors
List_couponsParametersQueryOrderOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
List_couponsParametersQueryOrderTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
List_couponsParametersQueryOrderEnumAsc | Represents the JSON value |
List_couponsParametersQueryOrderEnumDesc | Represents the JSON value |
Instances
data List_couponsParametersQuerySort Source #
Defines the enum schema located at paths./coupons.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_couponsParametersQuerySortOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
List_couponsParametersQuerySortTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
List_couponsParametersQuerySortEnumCreated_at | Represents the JSON value |
List_couponsParametersQuerySortEnumUpdated_at | Represents the JSON value |
Instances
data List_couponsResponse Source #
Represents a response of the operation list_coupons
.
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_couponsResponseError
is used.
Constructors
List_couponsResponseError String | Means either no matching case available or a parse error |
List_couponsResponse200 CouponList | A list of the site's coupons. |
List_couponsResponse400 Error | Invalid or unpermitted parameter. |
List_couponsResponse404 Error | Incorrect site ID. |
List_couponsResponseDefault Error | Unexpected error. |
Instances
Show List_couponsResponse Source # | |
Defined in RecurlyClient.Operations.List_coupons Methods showsPrec :: Int -> List_couponsResponse -> ShowS # show :: List_couponsResponse -> String # showList :: [List_couponsResponse] -> ShowS # | |
Eq List_couponsResponse Source # | |
Defined in RecurlyClient.Operations.List_coupons Methods (==) :: List_couponsResponse -> List_couponsResponse -> Bool # (/=) :: List_couponsResponse -> List_couponsResponse -> Bool # |
list_couponsWithConfiguration Source #
Arguments
:: forall m. MonadHTTP m | |
=> Configuration | The configuration to use in the request |
-> List_couponsParameters | Contains all available parameters of this operation (query and path parameters) |
-> m (Response List_couponsResponse) | Monadic computation which returns the result of the operation |
GET /coupons
The same as list_coupons
but accepts an explicit configuration.
Arguments
:: forall m. MonadHTTP m | |
=> List_couponsParameters | 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
The same as list_coupons
but returns the raw ByteString
.
list_couponsWithConfigurationRaw Source #
Arguments
:: forall m. MonadHTTP m | |
=> Configuration | The configuration to use in the request |
-> List_couponsParameters | 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
The same as list_coupons
but accepts an explicit configuration and returns the raw ByteString
.