Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation list_subscription_coupon_redemptions
Synopsis
- list_subscription_coupon_redemptions :: forall m. MonadHTTP m => List_subscription_coupon_redemptionsParameters -> ClientT m (Response List_subscription_coupon_redemptionsResponse)
- data List_subscription_coupon_redemptionsParameters = List_subscription_coupon_redemptionsParameters {
- list_subscription_coupon_redemptionsParametersPathSubscription_id :: Text
- list_subscription_coupon_redemptionsParametersQueryBegin_time :: Maybe JsonDateTime
- list_subscription_coupon_redemptionsParametersQueryEnd_time :: Maybe JsonDateTime
- list_subscription_coupon_redemptionsParametersQueryIds :: Maybe [Text]
- list_subscription_coupon_redemptionsParametersQuerySort :: Maybe List_subscription_coupon_redemptionsParametersQuerySort
- mkList_subscription_coupon_redemptionsParameters :: Text -> List_subscription_coupon_redemptionsParameters
- data List_subscription_coupon_redemptionsParametersQuerySort
- data List_subscription_coupon_redemptionsResponse
- list_subscription_coupon_redemptionsWithConfiguration :: forall m. MonadHTTP m => Configuration -> List_subscription_coupon_redemptionsParameters -> m (Response List_subscription_coupon_redemptionsResponse)
- list_subscription_coupon_redemptionsRaw :: forall m. MonadHTTP m => List_subscription_coupon_redemptionsParameters -> ClientT m (Response ByteString)
- list_subscription_coupon_redemptionsWithConfigurationRaw :: forall m. MonadHTTP m => Configuration -> List_subscription_coupon_redemptionsParameters -> m (Response ByteString)
Documentation
list_subscription_coupon_redemptions Source #
:: 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.
List_subscription_coupon_redemptionsParameters | |
|
Instances
mkList_subscription_coupon_redemptionsParameters Source #
:: Text |
|
-> List_subscription_coupon_redemptionsParameters |
Create a new List_subscription_coupon_redemptionsParameters
with all required fields.
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.
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 |
List_subscription_coupon_redemptionsParametersQuerySortEnumUpdated_at | Represents the JSON value |
Instances
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.
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 #
:: 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 #
:: 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 #
:: 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
.