Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation getSubscriptionItemsSubscriptionItemUsageRecordSummaries
Synopsis
- getSubscriptionItemsSubscriptionItemUsageRecordSummaries :: forall m. MonadHTTP m => GetSubscriptionItemsSubscriptionItemUsageRecordSummariesParameters -> StripeT m (Response GetSubscriptionItemsSubscriptionItemUsageRecordSummariesResponse)
- data GetSubscriptionItemsSubscriptionItemUsageRecordSummariesParameters = GetSubscriptionItemsSubscriptionItemUsageRecordSummariesParameters {
- getSubscriptionItemsSubscriptionItemUsageRecordSummariesParametersPathSubscriptionItem :: Text
- getSubscriptionItemsSubscriptionItemUsageRecordSummariesParametersQueryEndingBefore :: Maybe Text
- getSubscriptionItemsSubscriptionItemUsageRecordSummariesParametersQueryExpand :: Maybe [Text]
- getSubscriptionItemsSubscriptionItemUsageRecordSummariesParametersQueryLimit :: Maybe Int
- getSubscriptionItemsSubscriptionItemUsageRecordSummariesParametersQueryStartingAfter :: Maybe Text
- mkGetSubscriptionItemsSubscriptionItemUsageRecordSummariesParameters :: Text -> GetSubscriptionItemsSubscriptionItemUsageRecordSummariesParameters
- data GetSubscriptionItemsSubscriptionItemUsageRecordSummariesResponse
- data GetSubscriptionItemsSubscriptionItemUsageRecordSummariesResponseBody200 = GetSubscriptionItemsSubscriptionItemUsageRecordSummariesResponseBody200 {}
- mkGetSubscriptionItemsSubscriptionItemUsageRecordSummariesResponseBody200 :: [UsageRecordSummary] -> Bool -> Text -> GetSubscriptionItemsSubscriptionItemUsageRecordSummariesResponseBody200
Documentation
getSubscriptionItemsSubscriptionItemUsageRecordSummaries Source #
:: forall m. MonadHTTP m | |
=> GetSubscriptionItemsSubscriptionItemUsageRecordSummariesParameters | Contains all available parameters of this operation (query and path parameters) |
-> StripeT m (Response GetSubscriptionItemsSubscriptionItemUsageRecordSummariesResponse) | Monadic computation which returns the result of the operation |
GET /v1/subscription_items/{subscription_item}/usage_record_summaries
<p>For the specified subscription item, returns a list of summary objects. Each object in the list provides usage information that’s been summarized from multiple usage records and over a subscription billing period (e.g., 15 usage records in the month of September).</p>
<p>The list is sorted in reverse-chronological order (newest first). The first list item represents the most current usage period that hasn’t ended yet. Since new usage records can still be added, the returned summary information for the subscription item’s ID should be seen as unstable until the subscription billing period ends.</p>
data GetSubscriptionItemsSubscriptionItemUsageRecordSummariesParameters Source #
Defines the object schema located at paths./v1/subscription_items/{subscription_item}/usage_record_summaries.GET.parameters
in the specification.
GetSubscriptionItemsSubscriptionItemUsageRecordSummariesParameters | |
|
Instances
mkGetSubscriptionItemsSubscriptionItemUsageRecordSummariesParameters Source #
:: Text |
|
-> GetSubscriptionItemsSubscriptionItemUsageRecordSummariesParameters |
Create a new GetSubscriptionItemsSubscriptionItemUsageRecordSummariesParameters
with all required fields.
data GetSubscriptionItemsSubscriptionItemUsageRecordSummariesResponse Source #
Represents a response of the operation getSubscriptionItemsSubscriptionItemUsageRecordSummaries
.
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), GetSubscriptionItemsSubscriptionItemUsageRecordSummariesResponseError
is used.
GetSubscriptionItemsSubscriptionItemUsageRecordSummariesResponseError String | Means either no matching case available or a parse error |
GetSubscriptionItemsSubscriptionItemUsageRecordSummariesResponse200 GetSubscriptionItemsSubscriptionItemUsageRecordSummariesResponseBody200 | Successful response. |
GetSubscriptionItemsSubscriptionItemUsageRecordSummariesResponseDefault Error | Error response. |
Instances
data GetSubscriptionItemsSubscriptionItemUsageRecordSummariesResponseBody200 Source #
Defines the object schema located at paths./v1/subscription_items/{subscription_item}/usage_record_summaries.GET.responses.200.content.application/json.schema
in the specification.
GetSubscriptionItemsSubscriptionItemUsageRecordSummariesResponseBody200 | |
|
Instances
mkGetSubscriptionItemsSubscriptionItemUsageRecordSummariesResponseBody200 Source #
Create a new GetSubscriptionItemsSubscriptionItemUsageRecordSummariesResponseBody200
with all required fields.