Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the types generated from the schema Recurring
Synopsis
- data Recurring = Recurring {}
- mkRecurring :: RecurringInterval' -> Int -> RecurringUsageType' -> Recurring
- data RecurringAggregateUsage'
- data RecurringInterval'
- data RecurringUsageType'
Documentation
Defines the object schema located at components.schemas.recurring
in the specification.
Recurring | |
|
Create a new Recurring
with all required fields.
data RecurringAggregateUsage' Source #
Defines the enum schema located at components.schemas.recurring.properties.aggregate_usage
in the specification.
Specifies a usage aggregation strategy for prices of `usage_type=metered`. Allowed values are `sum` for summing up all usage during a period, `last_during_period` for using the last usage record reported within a period, `last_ever` for using the last usage record ever (across period bounds) or `max` which uses the usage record with the maximum reported usage during a period. Defaults to `sum`.
RecurringAggregateUsage'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
RecurringAggregateUsage'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
RecurringAggregateUsage'EnumLastDuringPeriod | Represents the JSON value |
RecurringAggregateUsage'EnumLastEver | Represents the JSON value |
RecurringAggregateUsage'EnumMax | Represents the JSON value |
RecurringAggregateUsage'EnumSum | Represents the JSON value |
Instances
Eq RecurringAggregateUsage' Source # | |
Defined in StripeAPI.Types.Recurring | |
Show RecurringAggregateUsage' Source # | |
Defined in StripeAPI.Types.Recurring showsPrec :: Int -> RecurringAggregateUsage' -> ShowS # show :: RecurringAggregateUsage' -> String # showList :: [RecurringAggregateUsage'] -> ShowS # | |
ToJSON RecurringAggregateUsage' Source # | |
Defined in StripeAPI.Types.Recurring | |
FromJSON RecurringAggregateUsage' Source # | |
Defined in StripeAPI.Types.Recurring |
data RecurringInterval' Source #
Defines the enum schema located at components.schemas.recurring.properties.interval
in the specification.
The frequency at which a subscription is billed. One of `day`, `week`, `month` or `year`.
RecurringInterval'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
RecurringInterval'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
RecurringInterval'EnumDay | Represents the JSON value |
RecurringInterval'EnumMonth | Represents the JSON value |
RecurringInterval'EnumWeek | Represents the JSON value |
RecurringInterval'EnumYear | Represents the JSON value |
Instances
Eq RecurringInterval' Source # | |
Defined in StripeAPI.Types.Recurring (==) :: RecurringInterval' -> RecurringInterval' -> Bool # (/=) :: RecurringInterval' -> RecurringInterval' -> Bool # | |
Show RecurringInterval' Source # | |
Defined in StripeAPI.Types.Recurring showsPrec :: Int -> RecurringInterval' -> ShowS # show :: RecurringInterval' -> String # showList :: [RecurringInterval'] -> ShowS # | |
ToJSON RecurringInterval' Source # | |
Defined in StripeAPI.Types.Recurring toJSON :: RecurringInterval' -> Value # toEncoding :: RecurringInterval' -> Encoding # toJSONList :: [RecurringInterval'] -> Value # toEncodingList :: [RecurringInterval'] -> Encoding # | |
FromJSON RecurringInterval' Source # | |
Defined in StripeAPI.Types.Recurring parseJSON :: Value -> Parser RecurringInterval' # parseJSONList :: Value -> Parser [RecurringInterval'] # |
data RecurringUsageType' Source #
Defines the enum schema located at components.schemas.recurring.properties.usage_type
in the specification.
Configures how the quantity per period should be determined. Can be either `metered` or `licensed`. `licensed` automatically bills the `quantity` set when adding it to a subscription. `metered` aggregates the total usage based on usage records. Defaults to `licensed`.
RecurringUsageType'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
RecurringUsageType'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
RecurringUsageType'EnumLicensed | Represents the JSON value |
RecurringUsageType'EnumMetered | Represents the JSON value |
Instances
Eq RecurringUsageType' Source # | |
Defined in StripeAPI.Types.Recurring (==) :: RecurringUsageType' -> RecurringUsageType' -> Bool # (/=) :: RecurringUsageType' -> RecurringUsageType' -> Bool # | |
Show RecurringUsageType' Source # | |
Defined in StripeAPI.Types.Recurring showsPrec :: Int -> RecurringUsageType' -> ShowS # show :: RecurringUsageType' -> String # showList :: [RecurringUsageType'] -> ShowS # | |
ToJSON RecurringUsageType' Source # | |
Defined in StripeAPI.Types.Recurring toJSON :: RecurringUsageType' -> Value # toEncoding :: RecurringUsageType' -> Encoding # toJSONList :: [RecurringUsageType'] -> Value # toEncodingList :: [RecurringUsageType'] -> Encoding # | |
FromJSON RecurringUsageType' Source # | |
Defined in StripeAPI.Types.Recurring parseJSON :: Value -> Parser RecurringUsageType' # parseJSONList :: Value -> Parser [RecurringUsageType'] # |