Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the types generated from the schema Item
Synopsis
- data Item = Item {}
- mkItem :: Int -> Int -> Text -> Text -> Text -> Item
- data ItemPrice' = ItemPrice' {
- itemPrice'Active :: Maybe Bool
- itemPrice'BillingScheme :: Maybe ItemPrice'BillingScheme'
- itemPrice'Created :: Maybe Int
- itemPrice'Currency :: Maybe Text
- itemPrice'Id :: Maybe Text
- itemPrice'Livemode :: Maybe Bool
- itemPrice'LookupKey :: Maybe Text
- itemPrice'Metadata :: Maybe Object
- itemPrice'Nickname :: Maybe Text
- itemPrice'Object :: Maybe ItemPrice'Object'
- itemPrice'Product :: Maybe ItemPrice'Product'Variants
- itemPrice'Recurring :: Maybe ItemPrice'Recurring'
- itemPrice'TaxBehavior :: Maybe ItemPrice'TaxBehavior'
- itemPrice'Tiers :: Maybe [PriceTier]
- itemPrice'TiersMode :: Maybe ItemPrice'TiersMode'
- itemPrice'TransformQuantity :: Maybe ItemPrice'TransformQuantity'
- itemPrice'Type :: Maybe ItemPrice'Type'
- itemPrice'UnitAmount :: Maybe Int
- itemPrice'UnitAmountDecimal :: Maybe Text
- mkItemPrice' :: ItemPrice'
- data ItemPrice'BillingScheme'
- data ItemPrice'Object'
- data ItemPrice'Product'Variants
- data ItemPrice'Recurring' = ItemPrice'Recurring' {}
- mkItemPrice'Recurring' :: ItemPrice'Recurring'
- data ItemPrice'Recurring'AggregateUsage'
- data ItemPrice'Recurring'Interval'
- data ItemPrice'Recurring'UsageType'
- data ItemPrice'TaxBehavior'
- data ItemPrice'TiersMode'
- data ItemPrice'TransformQuantity' = ItemPrice'TransformQuantity' {}
- mkItemPrice'TransformQuantity' :: ItemPrice'TransformQuantity'
- data ItemPrice'TransformQuantity'Round'
- data ItemPrice'Type'
Documentation
Defines the object schema located at components.schemas.item
in the specification.
A line item.
Item | |
|
data ItemPrice' Source #
Defines the object schema located at components.schemas.item.properties.price.anyOf
in the specification.
The price used to generate the line item.
ItemPrice' | |
|
Instances
Eq ItemPrice' Source # | |
Defined in StripeAPI.Types.Item (==) :: ItemPrice' -> ItemPrice' -> Bool # (/=) :: ItemPrice' -> ItemPrice' -> Bool # | |
Show ItemPrice' Source # | |
Defined in StripeAPI.Types.Item showsPrec :: Int -> ItemPrice' -> ShowS # show :: ItemPrice' -> String # showList :: [ItemPrice'] -> ShowS # | |
ToJSON ItemPrice' Source # | |
Defined in StripeAPI.Types.Item toJSON :: ItemPrice' -> Value # toEncoding :: ItemPrice' -> Encoding # toJSONList :: [ItemPrice'] -> Value # toEncodingList :: [ItemPrice'] -> Encoding # | |
FromJSON ItemPrice' Source # | |
Defined in StripeAPI.Types.Item parseJSON :: Value -> Parser ItemPrice' # parseJSONList :: Value -> Parser [ItemPrice'] # |
mkItemPrice' :: ItemPrice' Source #
Create a new ItemPrice'
with all required fields.
data ItemPrice'BillingScheme' Source #
Defines the enum schema located at components.schemas.item.properties.price.anyOf.properties.billing_scheme
in the specification.
Describes how to compute the price per period. Either `per_unit` or `tiered`. `per_unit` indicates that the fixed amount (specified in `unit_amount` or `unit_amount_decimal`) will be charged per unit in `quantity` (for prices with `usage_type=licensed`), or per unit of total usage (for prices with `usage_type=metered`). `tiered` indicates that the unit pricing will be computed using a tiering strategy as defined using the `tiers` and `tiers_mode` attributes.
ItemPrice'BillingScheme'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
ItemPrice'BillingScheme'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
ItemPrice'BillingScheme'EnumPerUnit | Represents the JSON value |
ItemPrice'BillingScheme'EnumTiered | Represents the JSON value |
Instances
Eq ItemPrice'BillingScheme' Source # | |
Defined in StripeAPI.Types.Item | |
Show ItemPrice'BillingScheme' Source # | |
Defined in StripeAPI.Types.Item showsPrec :: Int -> ItemPrice'BillingScheme' -> ShowS # show :: ItemPrice'BillingScheme' -> String # showList :: [ItemPrice'BillingScheme'] -> ShowS # | |
ToJSON ItemPrice'BillingScheme' Source # | |
Defined in StripeAPI.Types.Item | |
FromJSON ItemPrice'BillingScheme' Source # | |
Defined in StripeAPI.Types.Item |
data ItemPrice'Object' Source #
Defines the enum schema located at components.schemas.item.properties.price.anyOf.properties.object
in the specification.
String representing the object's type. Objects of the same type share the same value.
ItemPrice'Object'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
ItemPrice'Object'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
ItemPrice'Object'EnumPrice | Represents the JSON value |
Instances
Eq ItemPrice'Object' Source # | |
Defined in StripeAPI.Types.Item (==) :: ItemPrice'Object' -> ItemPrice'Object' -> Bool # (/=) :: ItemPrice'Object' -> ItemPrice'Object' -> Bool # | |
Show ItemPrice'Object' Source # | |
Defined in StripeAPI.Types.Item showsPrec :: Int -> ItemPrice'Object' -> ShowS # show :: ItemPrice'Object' -> String # showList :: [ItemPrice'Object'] -> ShowS # | |
ToJSON ItemPrice'Object' Source # | |
Defined in StripeAPI.Types.Item toJSON :: ItemPrice'Object' -> Value # toEncoding :: ItemPrice'Object' -> Encoding # toJSONList :: [ItemPrice'Object'] -> Value # toEncodingList :: [ItemPrice'Object'] -> Encoding # | |
FromJSON ItemPrice'Object' Source # | |
Defined in StripeAPI.Types.Item parseJSON :: Value -> Parser ItemPrice'Object' # parseJSONList :: Value -> Parser [ItemPrice'Object'] # |
data ItemPrice'Product'Variants Source #
Defines the oneOf schema located at components.schemas.item.properties.price.anyOf.properties.product.anyOf
in the specification.
The ID of the product this price is associated with.
ItemPrice'Product'Text Text | |
ItemPrice'Product'Product Product | |
ItemPrice'Product'DeletedProduct DeletedProduct |
Instances
Eq ItemPrice'Product'Variants Source # | |
Defined in StripeAPI.Types.Item | |
Show ItemPrice'Product'Variants Source # | |
Defined in StripeAPI.Types.Item showsPrec :: Int -> ItemPrice'Product'Variants -> ShowS # show :: ItemPrice'Product'Variants -> String # showList :: [ItemPrice'Product'Variants] -> ShowS # | |
ToJSON ItemPrice'Product'Variants Source # | |
Defined in StripeAPI.Types.Item | |
FromJSON ItemPrice'Product'Variants Source # | |
Defined in StripeAPI.Types.Item |
data ItemPrice'Recurring' Source #
Defines the object schema located at components.schemas.item.properties.price.anyOf.properties.recurring.anyOf
in the specification.
The recurring components of a price such as \`interval\` and \`usage_type\`.
ItemPrice'Recurring' | |
|
Instances
Eq ItemPrice'Recurring' Source # | |
Defined in StripeAPI.Types.Item (==) :: ItemPrice'Recurring' -> ItemPrice'Recurring' -> Bool # (/=) :: ItemPrice'Recurring' -> ItemPrice'Recurring' -> Bool # | |
Show ItemPrice'Recurring' Source # | |
Defined in StripeAPI.Types.Item showsPrec :: Int -> ItemPrice'Recurring' -> ShowS # show :: ItemPrice'Recurring' -> String # showList :: [ItemPrice'Recurring'] -> ShowS # | |
ToJSON ItemPrice'Recurring' Source # | |
Defined in StripeAPI.Types.Item toJSON :: ItemPrice'Recurring' -> Value # toEncoding :: ItemPrice'Recurring' -> Encoding # toJSONList :: [ItemPrice'Recurring'] -> Value # toEncodingList :: [ItemPrice'Recurring'] -> Encoding # | |
FromJSON ItemPrice'Recurring' Source # | |
Defined in StripeAPI.Types.Item parseJSON :: Value -> Parser ItemPrice'Recurring' # parseJSONList :: Value -> Parser [ItemPrice'Recurring'] # |
mkItemPrice'Recurring' :: ItemPrice'Recurring' Source #
Create a new ItemPrice'Recurring'
with all required fields.
data ItemPrice'Recurring'AggregateUsage' Source #
Defines the enum schema located at components.schemas.item.properties.price.anyOf.properties.recurring.anyOf.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`.
ItemPrice'Recurring'AggregateUsage'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
ItemPrice'Recurring'AggregateUsage'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
ItemPrice'Recurring'AggregateUsage'EnumLastDuringPeriod | Represents the JSON value |
ItemPrice'Recurring'AggregateUsage'EnumLastEver | Represents the JSON value |
ItemPrice'Recurring'AggregateUsage'EnumMax | Represents the JSON value |
ItemPrice'Recurring'AggregateUsage'EnumSum | Represents the JSON value |
data ItemPrice'Recurring'Interval' Source #
Defines the enum schema located at components.schemas.item.properties.price.anyOf.properties.recurring.anyOf.properties.interval
in the specification.
The frequency at which a subscription is billed. One of `day`, `week`, `month` or `year`.
ItemPrice'Recurring'Interval'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
ItemPrice'Recurring'Interval'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
ItemPrice'Recurring'Interval'EnumDay | Represents the JSON value |
ItemPrice'Recurring'Interval'EnumMonth | Represents the JSON value |
ItemPrice'Recurring'Interval'EnumWeek | Represents the JSON value |
ItemPrice'Recurring'Interval'EnumYear | Represents the JSON value |
Instances
data ItemPrice'Recurring'UsageType' Source #
Defines the enum schema located at components.schemas.item.properties.price.anyOf.properties.recurring.anyOf.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`.
ItemPrice'Recurring'UsageType'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
ItemPrice'Recurring'UsageType'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
ItemPrice'Recurring'UsageType'EnumLicensed | Represents the JSON value |
ItemPrice'Recurring'UsageType'EnumMetered | Represents the JSON value |
data ItemPrice'TaxBehavior' Source #
Defines the enum schema located at components.schemas.item.properties.price.anyOf.properties.tax_behavior
in the specification.
Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
ItemPrice'TaxBehavior'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
ItemPrice'TaxBehavior'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
ItemPrice'TaxBehavior'EnumExclusive | Represents the JSON value |
ItemPrice'TaxBehavior'EnumInclusive | Represents the JSON value |
ItemPrice'TaxBehavior'EnumUnspecified | Represents the JSON value |
Instances
Eq ItemPrice'TaxBehavior' Source # | |
Defined in StripeAPI.Types.Item | |
Show ItemPrice'TaxBehavior' Source # | |
Defined in StripeAPI.Types.Item showsPrec :: Int -> ItemPrice'TaxBehavior' -> ShowS # show :: ItemPrice'TaxBehavior' -> String # showList :: [ItemPrice'TaxBehavior'] -> ShowS # | |
ToJSON ItemPrice'TaxBehavior' Source # | |
Defined in StripeAPI.Types.Item toJSON :: ItemPrice'TaxBehavior' -> Value # toEncoding :: ItemPrice'TaxBehavior' -> Encoding # toJSONList :: [ItemPrice'TaxBehavior'] -> Value # | |
FromJSON ItemPrice'TaxBehavior' Source # | |
Defined in StripeAPI.Types.Item |
data ItemPrice'TiersMode' Source #
Defines the enum schema located at components.schemas.item.properties.price.anyOf.properties.tiers_mode
in the specification.
Defines if the tiering price should be `graduated` or `volume` based. In `volume`-based tiering, the maximum quantity within a period determines the per unit price. In `graduated` tiering, pricing can change as the quantity grows.
ItemPrice'TiersMode'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
ItemPrice'TiersMode'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
ItemPrice'TiersMode'EnumGraduated | Represents the JSON value |
ItemPrice'TiersMode'EnumVolume | Represents the JSON value |
Instances
Eq ItemPrice'TiersMode' Source # | |
Defined in StripeAPI.Types.Item (==) :: ItemPrice'TiersMode' -> ItemPrice'TiersMode' -> Bool # (/=) :: ItemPrice'TiersMode' -> ItemPrice'TiersMode' -> Bool # | |
Show ItemPrice'TiersMode' Source # | |
Defined in StripeAPI.Types.Item showsPrec :: Int -> ItemPrice'TiersMode' -> ShowS # show :: ItemPrice'TiersMode' -> String # showList :: [ItemPrice'TiersMode'] -> ShowS # | |
ToJSON ItemPrice'TiersMode' Source # | |
Defined in StripeAPI.Types.Item toJSON :: ItemPrice'TiersMode' -> Value # toEncoding :: ItemPrice'TiersMode' -> Encoding # toJSONList :: [ItemPrice'TiersMode'] -> Value # toEncodingList :: [ItemPrice'TiersMode'] -> Encoding # | |
FromJSON ItemPrice'TiersMode' Source # | |
Defined in StripeAPI.Types.Item parseJSON :: Value -> Parser ItemPrice'TiersMode' # parseJSONList :: Value -> Parser [ItemPrice'TiersMode'] # |
data ItemPrice'TransformQuantity' Source #
Defines the object schema located at components.schemas.item.properties.price.anyOf.properties.transform_quantity.anyOf
in the specification.
Apply a transformation to the reported usage or set quantity before computing the amount billed. Cannot be combined with \`tiers\`.
ItemPrice'TransformQuantity' | |
|
Instances
Eq ItemPrice'TransformQuantity' Source # | |
Defined in StripeAPI.Types.Item | |
Show ItemPrice'TransformQuantity' Source # | |
Defined in StripeAPI.Types.Item showsPrec :: Int -> ItemPrice'TransformQuantity' -> ShowS # show :: ItemPrice'TransformQuantity' -> String # showList :: [ItemPrice'TransformQuantity'] -> ShowS # | |
ToJSON ItemPrice'TransformQuantity' Source # | |
Defined in StripeAPI.Types.Item | |
FromJSON ItemPrice'TransformQuantity' Source # | |
Defined in StripeAPI.Types.Item |
mkItemPrice'TransformQuantity' :: ItemPrice'TransformQuantity' Source #
Create a new ItemPrice'TransformQuantity'
with all required fields.
data ItemPrice'TransformQuantity'Round' Source #
Defines the enum schema located at components.schemas.item.properties.price.anyOf.properties.transform_quantity.anyOf.properties.round
in the specification.
After division, either round the result `up` or `down`.
ItemPrice'TransformQuantity'Round'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
ItemPrice'TransformQuantity'Round'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
ItemPrice'TransformQuantity'Round'EnumDown | Represents the JSON value |
ItemPrice'TransformQuantity'Round'EnumUp | Represents the JSON value |
data ItemPrice'Type' Source #
Defines the enum schema located at components.schemas.item.properties.price.anyOf.properties.type
in the specification.
One of `one_time` or `recurring` depending on whether the price is for a one-time purchase or a recurring (subscription) purchase.
ItemPrice'Type'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
ItemPrice'Type'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
ItemPrice'Type'EnumOneTime | Represents the JSON value |
ItemPrice'Type'EnumRecurring | Represents the JSON value |
Instances
Eq ItemPrice'Type' Source # | |
Defined in StripeAPI.Types.Item (==) :: ItemPrice'Type' -> ItemPrice'Type' -> Bool # (/=) :: ItemPrice'Type' -> ItemPrice'Type' -> Bool # | |
Show ItemPrice'Type' Source # | |
Defined in StripeAPI.Types.Item showsPrec :: Int -> ItemPrice'Type' -> ShowS # show :: ItemPrice'Type' -> String # showList :: [ItemPrice'Type'] -> ShowS # | |
ToJSON ItemPrice'Type' Source # | |
Defined in StripeAPI.Types.Item toJSON :: ItemPrice'Type' -> Value # toEncoding :: ItemPrice'Type' -> Encoding # toJSONList :: [ItemPrice'Type'] -> Value # toEncodingList :: [ItemPrice'Type'] -> Encoding # | |
FromJSON ItemPrice'Type' Source # | |
Defined in StripeAPI.Types.Item parseJSON :: Value -> Parser ItemPrice'Type' # parseJSONList :: Value -> Parser [ItemPrice'Type'] # |