mirror of
https://github.com/rjNemo/go-wiki
synced 2026-06-12 05:26:42 +00:00
25 lines
887 B
Go
25 lines
887 B
Go
package stripe
|
|
|
|
// UsageRecordSummary represents a usage record summary.
|
|
// See https://stripe.com/docs/api#usage_records
|
|
type UsageRecordSummary struct {
|
|
ID string `json:"id"`
|
|
Invoice string `json:"invoice"`
|
|
Livemode bool `json:"livemode"`
|
|
Object string `json:"object"`
|
|
Period *Period `json:"period"`
|
|
SubscriptionItem string `json:"subscription_item"`
|
|
TotalUsage int64 `json:"total_usage"`
|
|
}
|
|
|
|
// UsageRecordSummaryListParams is the set of parameters that can be used when listing charges.
|
|
type UsageRecordSummaryListParams struct {
|
|
ListParams `form:"*"`
|
|
SubscriptionItem *string `form:"-"` // Sent in with the URL
|
|
}
|
|
|
|
// UsageRecordSummaryList is a list of usage record summaries as retrieved from a list endpoint.
|
|
type UsageRecordSummaryList struct {
|
|
ListMeta
|
|
Data []*UsageRecordSummary `json:"data"`
|
|
}
|