| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
StripeAPI.Types.UsageRecord
Description
Contains the types generated from the schema UsageRecord
Synopsis
- data UsageRecord = UsageRecord {}
- mkUsageRecord :: Text -> Bool -> Int -> Text -> Int -> UsageRecord
Documentation
data UsageRecord Source #
Defines the object schema located at components.schemas.usage_record in the specification.
Usage records allow you to report customer usage and metrics to Stripe for metered billing of subscription prices.
Related guide: Metered Billing.
Constructors
| UsageRecord | |
Fields
| |
Instances
| Eq UsageRecord Source # | |
Defined in StripeAPI.Types.UsageRecord | |
| Show UsageRecord Source # | |
Defined in StripeAPI.Types.UsageRecord Methods showsPrec :: Int -> UsageRecord -> ShowS # show :: UsageRecord -> String # showList :: [UsageRecord] -> ShowS # | |
| ToJSON UsageRecord Source # | |
Defined in StripeAPI.Types.UsageRecord Methods toJSON :: UsageRecord -> Value # toEncoding :: UsageRecord -> Encoding # toJSONList :: [UsageRecord] -> Value # toEncodingList :: [UsageRecord] -> Encoding # | |
| FromJSON UsageRecord Source # | |
Defined in StripeAPI.Types.UsageRecord | |
Create a new UsageRecord with all required fields.