Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RecurlyClient.Operations.List_usage
Description
Contains the different functions to run the operation list_usage
Synopsis
- list_usage :: forall m. MonadHTTP m => List_usageParameters -> ClientT m (Response List_usageResponse)
- data List_usageParameters = List_usageParameters {
- list_usageParametersPathAdd_on_id :: Text
- list_usageParametersPathSubscription_id :: Text
- list_usageParametersQueryBegin_time :: Maybe JsonDateTime
- list_usageParametersQueryBilling_status :: Maybe List_usageParametersQueryBilling_status
- list_usageParametersQueryEnd_time :: Maybe JsonDateTime
- list_usageParametersQueryIds :: Maybe [Text]
- list_usageParametersQueryLimit :: Maybe Int
- list_usageParametersQueryOrder :: Maybe List_usageParametersQueryOrder
- list_usageParametersQuerySort :: Maybe List_usageParametersQuerySort
- mkList_usageParameters :: Text -> Text -> List_usageParameters
- data List_usageParametersQueryBilling_status
- data List_usageParametersQueryOrder
- data List_usageParametersQuerySort
- data List_usageResponse
- list_usageWithConfiguration :: forall m. MonadHTTP m => Configuration -> List_usageParameters -> m (Response List_usageResponse)
- list_usageRaw :: forall m. MonadHTTP m => List_usageParameters -> ClientT m (Response ByteString)
- list_usageWithConfigurationRaw :: forall m. MonadHTTP m => Configuration -> List_usageParameters -> m (Response ByteString)
Documentation
Arguments
:: forall m. MonadHTTP m | |
=> List_usageParameters | Contains all available parameters of this operation (query and path parameters) |
-> ClientT m (Response List_usageResponse) | Monadic computation which returns the result of the operation |
GET /subscriptions/{subscription_id}/add_ons/{add_on_id}/usage
List a subscription add-on's usage records
data List_usageParameters Source #
Defines the object schema located at paths./subscriptions/{subscription_id}/add_ons/{add_on_id}/usage.GET.parameters
in the specification.
Constructors
List_usageParameters | |
Fields
|
Instances
FromJSON List_usageParameters Source # | |
Defined in RecurlyClient.Operations.List_usage Methods parseJSON :: Value -> Parser List_usageParameters # parseJSONList :: Value -> Parser [List_usageParameters] # | |
ToJSON List_usageParameters Source # | |
Defined in RecurlyClient.Operations.List_usage Methods toJSON :: List_usageParameters -> Value # toEncoding :: List_usageParameters -> Encoding # toJSONList :: [List_usageParameters] -> Value # toEncodingList :: [List_usageParameters] -> Encoding # | |
Show List_usageParameters Source # | |
Defined in RecurlyClient.Operations.List_usage Methods showsPrec :: Int -> List_usageParameters -> ShowS # show :: List_usageParameters -> String # showList :: [List_usageParameters] -> ShowS # | |
Eq List_usageParameters Source # | |
Defined in RecurlyClient.Operations.List_usage Methods (==) :: List_usageParameters -> List_usageParameters -> Bool # (/=) :: List_usageParameters -> List_usageParameters -> Bool # |
mkList_usageParameters Source #
Arguments
:: Text | |
-> Text | |
-> List_usageParameters |
Create a new List_usageParameters
with all required fields.
data List_usageParametersQueryBilling_status Source #
Defines the enum schema located at paths./subscriptions/{subscription_id}/add_ons/{add_on_id}/usage.GET.parameters.properties.queryBilling_status
in the specification.
Represents the parameter named 'billing_status'
Filter by usage record's billing status
Constructors
List_usageParametersQueryBilling_statusOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
List_usageParametersQueryBilling_statusTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
List_usageParametersQueryBilling_statusEnumUnbilled | Represents the JSON value |
List_usageParametersQueryBilling_statusEnumBilled | Represents the JSON value |
List_usageParametersQueryBilling_statusEnumAll | Represents the JSON value |
Instances
data List_usageParametersQueryOrder Source #
Defines the enum schema located at paths./subscriptions/{subscription_id}/add_ons/{add_on_id}/usage.GET.parameters.properties.queryOrder
in the specification.
Represents the parameter named 'order'
Sort order.
Constructors
List_usageParametersQueryOrderOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
List_usageParametersQueryOrderTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
List_usageParametersQueryOrderEnumAsc | Represents the JSON value |
List_usageParametersQueryOrderEnumDesc | Represents the JSON value |
Instances
data List_usageParametersQuerySort Source #
Defines the enum schema located at paths./subscriptions/{subscription_id}/add_ons/{add_on_id}/usage.GET.parameters.properties.querySort
in the specification.
Represents the parameter named 'sort'
Sort field. You *really* only want to sort by `usage_timestamp` in ascending order. In descending order updated records will move behind the cursor and could prevent some records from being returned.
Constructors
List_usageParametersQuerySortOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
List_usageParametersQuerySortTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
List_usageParametersQuerySortEnumRecorded_timestamp | Represents the JSON value |
List_usageParametersQuerySortEnumUsage_timestamp | Represents the JSON value |
Instances
FromJSON List_usageParametersQuerySort Source # | |
Defined in RecurlyClient.Operations.List_usage Methods parseJSON :: Value -> Parser List_usageParametersQuerySort # parseJSONList :: Value -> Parser [List_usageParametersQuerySort] # | |
ToJSON List_usageParametersQuerySort Source # | |
Defined in RecurlyClient.Operations.List_usage Methods toJSON :: List_usageParametersQuerySort -> Value # toEncoding :: List_usageParametersQuerySort -> Encoding # toJSONList :: [List_usageParametersQuerySort] -> Value # toEncodingList :: [List_usageParametersQuerySort] -> Encoding # | |
Show List_usageParametersQuerySort Source # | |
Defined in RecurlyClient.Operations.List_usage Methods showsPrec :: Int -> List_usageParametersQuerySort -> ShowS # show :: List_usageParametersQuerySort -> String # showList :: [List_usageParametersQuerySort] -> ShowS # | |
Eq List_usageParametersQuerySort Source # | |
Defined in RecurlyClient.Operations.List_usage |
data List_usageResponse Source #
Represents a response of the operation list_usage
.
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_usageResponseError
is used.
Constructors
List_usageResponseError String | Means either no matching case available or a parse error |
List_usageResponse200 UsageList | A list of the subscription add-on's usage records. |
List_usageResponse400 Error | Invalid or unpermitted parameter. |
List_usageResponse404 Error | Incorrect site or subscription ID or add-on id. |
List_usageResponseDefault Error | Unexpected error. |
Instances
Show List_usageResponse Source # | |
Defined in RecurlyClient.Operations.List_usage Methods showsPrec :: Int -> List_usageResponse -> ShowS # show :: List_usageResponse -> String # showList :: [List_usageResponse] -> ShowS # | |
Eq List_usageResponse Source # | |
Defined in RecurlyClient.Operations.List_usage Methods (==) :: List_usageResponse -> List_usageResponse -> Bool # (/=) :: List_usageResponse -> List_usageResponse -> Bool # |
list_usageWithConfiguration Source #
Arguments
:: forall m. MonadHTTP m | |
=> Configuration | The configuration to use in the request |
-> List_usageParameters | Contains all available parameters of this operation (query and path parameters) |
-> m (Response List_usageResponse) | Monadic computation which returns the result of the operation |
GET /subscriptions/{subscription_id}/add_ons/{add_on_id}/usage
The same as list_usage
but accepts an explicit configuration.
Arguments
:: forall m. MonadHTTP m | |
=> List_usageParameters | 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}/add_ons/{add_on_id}/usage
The same as list_usage
but returns the raw ByteString
.
list_usageWithConfigurationRaw Source #
Arguments
:: forall m. MonadHTTP m | |
=> Configuration | The configuration to use in the request |
-> List_usageParameters | 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}/add_ons/{add_on_id}/usage
The same as list_usage
but accepts an explicit configuration and returns the raw ByteString
.