Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RecurlyClient.Types.Usage
Description
Contains the types generated from the schema Usage
Synopsis
- data Usage = Usage {
- usageAmount :: Maybe Float
- usageBilled_at :: Maybe JsonDateTime
- usageCreated_at :: Maybe JsonDateTime
- usageId :: Maybe Text
- usageMeasured_unit_id :: Maybe Text
- usageMerchant_tag :: Maybe Text
- usageObject :: Maybe Text
- usagePercentage_tiers :: Maybe [SubscriptionAddOnPercentageTier]
- usageRecording_timestamp :: Maybe JsonDateTime
- usageTier_type :: Maybe UsageTier_type
- usageTiers :: Maybe [SubscriptionAddOnTier]
- usageUnit_amount :: Maybe Float
- usageUnit_amount_decimal :: Maybe Text
- usageUpdated_at :: Maybe JsonDateTime
- usageUsage_percentage :: Maybe Float
- usageUsage_timestamp :: Maybe JsonDateTime
- usageUsage_type :: Maybe UsageUsage_type
- mkUsage :: Usage
- data UsageTier_type
- data UsageUsage_type
Documentation
Defines the object schema located at components.schemas.Usage
in the specification.
Constructors
Usage | |
Fields
|
data UsageTier_type Source #
Defines the enum schema located at components.schemas.Usage.properties.tier_type
in the specification.
The pricing model for the add-on. For more information, click here. See our Guide for an overview of how to configure quantity-based pricing models.
Constructors
UsageTier_typeOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
UsageTier_typeTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
UsageTier_typeEnumFlat | Represents the JSON value |
UsageTier_typeEnumTiered | Represents the JSON value |
UsageTier_typeEnumStairstep | Represents the JSON value |
UsageTier_typeEnumVolume | Represents the JSON value |
Instances
FromJSON UsageTier_type Source # | |
Defined in RecurlyClient.Types.Usage Methods parseJSON :: Value -> Parser UsageTier_type # parseJSONList :: Value -> Parser [UsageTier_type] # | |
ToJSON UsageTier_type Source # | |
Defined in RecurlyClient.Types.Usage Methods toJSON :: UsageTier_type -> Value # toEncoding :: UsageTier_type -> Encoding # toJSONList :: [UsageTier_type] -> Value # toEncodingList :: [UsageTier_type] -> Encoding # | |
Show UsageTier_type Source # | |
Defined in RecurlyClient.Types.Usage Methods showsPrec :: Int -> UsageTier_type -> ShowS # show :: UsageTier_type -> String # showList :: [UsageTier_type] -> ShowS # | |
Eq UsageTier_type Source # | |
Defined in RecurlyClient.Types.Usage Methods (==) :: UsageTier_type -> UsageTier_type -> Bool # (/=) :: UsageTier_type -> UsageTier_type -> Bool # |
data UsageUsage_type Source #
Defines the enum schema located at components.schemas.Usage.properties.usage_type
in the specification.
Type of usage, returns usage type if `add_on_type` is `usage`.
Constructors
UsageUsage_typeOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
UsageUsage_typeTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
UsageUsage_typeEnumPrice | Represents the JSON value |
UsageUsage_typeEnumPercentage | Represents the JSON value |
Instances
FromJSON UsageUsage_type Source # | |
Defined in RecurlyClient.Types.Usage Methods parseJSON :: Value -> Parser UsageUsage_type # parseJSONList :: Value -> Parser [UsageUsage_type] # | |
ToJSON UsageUsage_type Source # | |
Defined in RecurlyClient.Types.Usage Methods toJSON :: UsageUsage_type -> Value # toEncoding :: UsageUsage_type -> Encoding # toJSONList :: [UsageUsage_type] -> Value # toEncodingList :: [UsageUsage_type] -> Encoding # | |
Show UsageUsage_type Source # | |
Defined in RecurlyClient.Types.Usage Methods showsPrec :: Int -> UsageUsage_type -> ShowS # show :: UsageUsage_type -> String # showList :: [UsageUsage_type] -> ShowS # | |
Eq UsageUsage_type Source # | |
Defined in RecurlyClient.Types.Usage Methods (==) :: UsageUsage_type -> UsageUsage_type -> Bool # (/=) :: UsageUsage_type -> UsageUsage_type -> Bool # |