Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the types generated from the schema LineItem
Synopsis
- data LineItem = LineItem {
- lineItemAmount :: Int
- lineItemCurrency :: Text
- lineItemDescription :: Maybe Text
- lineItemDiscountAmounts :: Maybe [DiscountsResourceDiscountAmount]
- lineItemDiscountable :: Bool
- lineItemDiscounts :: Maybe [LineItemDiscounts'Variants]
- lineItemId :: Text
- lineItemInvoiceItem :: Maybe Text
- lineItemLivemode :: Bool
- lineItemMetadata :: Object
- lineItemPeriod :: InvoiceLineItemPeriod
- lineItemPrice :: Maybe LineItemPrice'
- lineItemProration :: Bool
- lineItemQuantity :: Maybe Int
- lineItemSubscription :: Maybe Text
- lineItemSubscriptionItem :: Maybe Text
- lineItemTaxAmounts :: Maybe [InvoiceTaxAmount]
- lineItemTaxRates :: Maybe [TaxRate]
- lineItemType :: LineItemType'
- mkLineItem :: Int -> Text -> Bool -> Text -> Bool -> Object -> InvoiceLineItemPeriod -> Bool -> LineItemType' -> LineItem
- data LineItemDiscounts'Variants
- data LineItemPrice' = LineItemPrice' {
- lineItemPrice'Active :: Maybe Bool
- lineItemPrice'BillingScheme :: Maybe LineItemPrice'BillingScheme'
- lineItemPrice'Created :: Maybe Int
- lineItemPrice'Currency :: Maybe Text
- lineItemPrice'Id :: Maybe Text
- lineItemPrice'Livemode :: Maybe Bool
- lineItemPrice'LookupKey :: Maybe Text
- lineItemPrice'Metadata :: Maybe Object
- lineItemPrice'Nickname :: Maybe Text
- lineItemPrice'Object :: Maybe LineItemPrice'Object'
- lineItemPrice'Product :: Maybe LineItemPrice'Product'Variants
- lineItemPrice'Recurring :: Maybe LineItemPrice'Recurring'
- lineItemPrice'TaxBehavior :: Maybe LineItemPrice'TaxBehavior'
- lineItemPrice'Tiers :: Maybe [PriceTier]
- lineItemPrice'TiersMode :: Maybe LineItemPrice'TiersMode'
- lineItemPrice'TransformQuantity :: Maybe LineItemPrice'TransformQuantity'
- lineItemPrice'Type :: Maybe LineItemPrice'Type'
- lineItemPrice'UnitAmount :: Maybe Int
- lineItemPrice'UnitAmountDecimal :: Maybe Text
- mkLineItemPrice' :: LineItemPrice'
- data LineItemPrice'BillingScheme'
- data LineItemPrice'Object'
- data LineItemPrice'Product'Variants
- data LineItemPrice'Recurring' = LineItemPrice'Recurring' {}
- mkLineItemPrice'Recurring' :: LineItemPrice'Recurring'
- data LineItemPrice'Recurring'AggregateUsage'
- = LineItemPrice'Recurring'AggregateUsage'Other Value
- | LineItemPrice'Recurring'AggregateUsage'Typed Text
- | LineItemPrice'Recurring'AggregateUsage'EnumLastDuringPeriod
- | LineItemPrice'Recurring'AggregateUsage'EnumLastEver
- | LineItemPrice'Recurring'AggregateUsage'EnumMax
- | LineItemPrice'Recurring'AggregateUsage'EnumSum
- data LineItemPrice'Recurring'Interval'
- data LineItemPrice'Recurring'UsageType'
- data LineItemPrice'TaxBehavior'
- data LineItemPrice'TiersMode'
- data LineItemPrice'TransformQuantity' = LineItemPrice'TransformQuantity' {}
- mkLineItemPrice'TransformQuantity' :: LineItemPrice'TransformQuantity'
- data LineItemPrice'TransformQuantity'Round'
- data LineItemPrice'Type'
- data LineItemType'
Documentation
Defines the object schema located at components.schemas.line_item
in the specification.
LineItem | |
|
:: Int | |
-> Text | |
-> Bool | |
-> Text | |
-> Bool | |
-> Object | |
-> InvoiceLineItemPeriod | |
-> Bool | |
-> LineItemType' | |
-> LineItem |
Create a new LineItem
with all required fields.
data LineItemDiscounts'Variants Source #
Defines the oneOf schema located at components.schemas.line_item.properties.discounts.items.anyOf
in the specification.
Instances
Eq LineItemDiscounts'Variants Source # | |
Defined in StripeAPI.Types.LineItem | |
Show LineItemDiscounts'Variants Source # | |
Defined in StripeAPI.Types.LineItem showsPrec :: Int -> LineItemDiscounts'Variants -> ShowS # show :: LineItemDiscounts'Variants -> String # showList :: [LineItemDiscounts'Variants] -> ShowS # | |
ToJSON LineItemDiscounts'Variants Source # | |
Defined in StripeAPI.Types.LineItem | |
FromJSON LineItemDiscounts'Variants Source # | |
Defined in StripeAPI.Types.LineItem |
data LineItemPrice' Source #
Defines the object schema located at components.schemas.line_item.properties.price.anyOf
in the specification.
The price of the line item.
LineItemPrice' | |
|
Instances
Eq LineItemPrice' Source # | |
Defined in StripeAPI.Types.LineItem (==) :: LineItemPrice' -> LineItemPrice' -> Bool # (/=) :: LineItemPrice' -> LineItemPrice' -> Bool # | |
Show LineItemPrice' Source # | |
Defined in StripeAPI.Types.LineItem showsPrec :: Int -> LineItemPrice' -> ShowS # show :: LineItemPrice' -> String # showList :: [LineItemPrice'] -> ShowS # | |
ToJSON LineItemPrice' Source # | |
Defined in StripeAPI.Types.LineItem toJSON :: LineItemPrice' -> Value # toEncoding :: LineItemPrice' -> Encoding # toJSONList :: [LineItemPrice'] -> Value # toEncodingList :: [LineItemPrice'] -> Encoding # | |
FromJSON LineItemPrice' Source # | |
Defined in StripeAPI.Types.LineItem parseJSON :: Value -> Parser LineItemPrice' # parseJSONList :: Value -> Parser [LineItemPrice'] # |
mkLineItemPrice' :: LineItemPrice' Source #
Create a new LineItemPrice'
with all required fields.
data LineItemPrice'BillingScheme' Source #
Defines the enum schema located at components.schemas.line_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.
LineItemPrice'BillingScheme'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
LineItemPrice'BillingScheme'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
LineItemPrice'BillingScheme'EnumPerUnit | Represents the JSON value |
LineItemPrice'BillingScheme'EnumTiered | Represents the JSON value |
Instances
data LineItemPrice'Object' Source #
Defines the enum schema located at components.schemas.line_item.properties.price.anyOf.properties.object
in the specification.
String representing the object's type. Objects of the same type share the same value.
LineItemPrice'Object'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
LineItemPrice'Object'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
LineItemPrice'Object'EnumPrice | Represents the JSON value |
Instances
Eq LineItemPrice'Object' Source # | |
Defined in StripeAPI.Types.LineItem (==) :: LineItemPrice'Object' -> LineItemPrice'Object' -> Bool # (/=) :: LineItemPrice'Object' -> LineItemPrice'Object' -> Bool # | |
Show LineItemPrice'Object' Source # | |
Defined in StripeAPI.Types.LineItem showsPrec :: Int -> LineItemPrice'Object' -> ShowS # show :: LineItemPrice'Object' -> String # showList :: [LineItemPrice'Object'] -> ShowS # | |
ToJSON LineItemPrice'Object' Source # | |
Defined in StripeAPI.Types.LineItem toJSON :: LineItemPrice'Object' -> Value # toEncoding :: LineItemPrice'Object' -> Encoding # toJSONList :: [LineItemPrice'Object'] -> Value # toEncodingList :: [LineItemPrice'Object'] -> Encoding # | |
FromJSON LineItemPrice'Object' Source # | |
Defined in StripeAPI.Types.LineItem parseJSON :: Value -> Parser LineItemPrice'Object' # parseJSONList :: Value -> Parser [LineItemPrice'Object'] # |
data LineItemPrice'Product'Variants Source #
Defines the oneOf schema located at components.schemas.line_item.properties.price.anyOf.properties.product.anyOf
in the specification.
The ID of the product this price is associated with.
LineItemPrice'Product'Text Text | |
LineItemPrice'Product'Product Product | |
LineItemPrice'Product'DeletedProduct DeletedProduct |
data LineItemPrice'Recurring' Source #
Defines the object schema located at components.schemas.line_item.properties.price.anyOf.properties.recurring.anyOf
in the specification.
The recurring components of a price such as \`interval\` and \`usage_type\`.
LineItemPrice'Recurring' | |
|
Instances
Eq LineItemPrice'Recurring' Source # | |
Defined in StripeAPI.Types.LineItem | |
Show LineItemPrice'Recurring' Source # | |
Defined in StripeAPI.Types.LineItem showsPrec :: Int -> LineItemPrice'Recurring' -> ShowS # show :: LineItemPrice'Recurring' -> String # showList :: [LineItemPrice'Recurring'] -> ShowS # | |
ToJSON LineItemPrice'Recurring' Source # | |
Defined in StripeAPI.Types.LineItem | |
FromJSON LineItemPrice'Recurring' Source # | |
Defined in StripeAPI.Types.LineItem |
mkLineItemPrice'Recurring' :: LineItemPrice'Recurring' Source #
Create a new LineItemPrice'Recurring'
with all required fields.
data LineItemPrice'Recurring'AggregateUsage' Source #
Defines the enum schema located at components.schemas.line_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`.
LineItemPrice'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. |
LineItemPrice'Recurring'AggregateUsage'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
LineItemPrice'Recurring'AggregateUsage'EnumLastDuringPeriod | Represents the JSON value |
LineItemPrice'Recurring'AggregateUsage'EnumLastEver | Represents the JSON value |
LineItemPrice'Recurring'AggregateUsage'EnumMax | Represents the JSON value |
LineItemPrice'Recurring'AggregateUsage'EnumSum | Represents the JSON value |
data LineItemPrice'Recurring'Interval' Source #
Defines the enum schema located at components.schemas.line_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`.
LineItemPrice'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. |
LineItemPrice'Recurring'Interval'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
LineItemPrice'Recurring'Interval'EnumDay | Represents the JSON value |
LineItemPrice'Recurring'Interval'EnumMonth | Represents the JSON value |
LineItemPrice'Recurring'Interval'EnumWeek | Represents the JSON value |
LineItemPrice'Recurring'Interval'EnumYear | Represents the JSON value |
data LineItemPrice'Recurring'UsageType' Source #
Defines the enum schema located at components.schemas.line_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`.
LineItemPrice'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. |
LineItemPrice'Recurring'UsageType'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
LineItemPrice'Recurring'UsageType'EnumLicensed | Represents the JSON value |
LineItemPrice'Recurring'UsageType'EnumMetered | Represents the JSON value |
data LineItemPrice'TaxBehavior' Source #
Defines the enum schema located at components.schemas.line_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.
LineItemPrice'TaxBehavior'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
LineItemPrice'TaxBehavior'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
LineItemPrice'TaxBehavior'EnumExclusive | Represents the JSON value |
LineItemPrice'TaxBehavior'EnumInclusive | Represents the JSON value |
LineItemPrice'TaxBehavior'EnumUnspecified | Represents the JSON value |
Instances
Eq LineItemPrice'TaxBehavior' Source # | |
Defined in StripeAPI.Types.LineItem | |
Show LineItemPrice'TaxBehavior' Source # | |
Defined in StripeAPI.Types.LineItem showsPrec :: Int -> LineItemPrice'TaxBehavior' -> ShowS # show :: LineItemPrice'TaxBehavior' -> String # showList :: [LineItemPrice'TaxBehavior'] -> ShowS # | |
ToJSON LineItemPrice'TaxBehavior' Source # | |
Defined in StripeAPI.Types.LineItem | |
FromJSON LineItemPrice'TaxBehavior' Source # | |
Defined in StripeAPI.Types.LineItem |
data LineItemPrice'TiersMode' Source #
Defines the enum schema located at components.schemas.line_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.
LineItemPrice'TiersMode'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
LineItemPrice'TiersMode'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
LineItemPrice'TiersMode'EnumGraduated | Represents the JSON value |
LineItemPrice'TiersMode'EnumVolume | Represents the JSON value |
Instances
Eq LineItemPrice'TiersMode' Source # | |
Defined in StripeAPI.Types.LineItem | |
Show LineItemPrice'TiersMode' Source # | |
Defined in StripeAPI.Types.LineItem showsPrec :: Int -> LineItemPrice'TiersMode' -> ShowS # show :: LineItemPrice'TiersMode' -> String # showList :: [LineItemPrice'TiersMode'] -> ShowS # | |
ToJSON LineItemPrice'TiersMode' Source # | |
Defined in StripeAPI.Types.LineItem | |
FromJSON LineItemPrice'TiersMode' Source # | |
Defined in StripeAPI.Types.LineItem |
data LineItemPrice'TransformQuantity' Source #
Defines the object schema located at components.schemas.line_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\`.
LineItemPrice'TransformQuantity' | |
|
mkLineItemPrice'TransformQuantity' :: LineItemPrice'TransformQuantity' Source #
Create a new LineItemPrice'TransformQuantity'
with all required fields.
data LineItemPrice'TransformQuantity'Round' Source #
Defines the enum schema located at components.schemas.line_item.properties.price.anyOf.properties.transform_quantity.anyOf.properties.round
in the specification.
After division, either round the result `up` or `down`.
LineItemPrice'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. |
LineItemPrice'TransformQuantity'Round'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
LineItemPrice'TransformQuantity'Round'EnumDown | Represents the JSON value |
LineItemPrice'TransformQuantity'Round'EnumUp | Represents the JSON value |
data LineItemPrice'Type' Source #
Defines the enum schema located at components.schemas.line_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.
LineItemPrice'Type'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
LineItemPrice'Type'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
LineItemPrice'Type'EnumOneTime | Represents the JSON value |
LineItemPrice'Type'EnumRecurring | Represents the JSON value |
Instances
Eq LineItemPrice'Type' Source # | |
Defined in StripeAPI.Types.LineItem (==) :: LineItemPrice'Type' -> LineItemPrice'Type' -> Bool # (/=) :: LineItemPrice'Type' -> LineItemPrice'Type' -> Bool # | |
Show LineItemPrice'Type' Source # | |
Defined in StripeAPI.Types.LineItem showsPrec :: Int -> LineItemPrice'Type' -> ShowS # show :: LineItemPrice'Type' -> String # showList :: [LineItemPrice'Type'] -> ShowS # | |
ToJSON LineItemPrice'Type' Source # | |
Defined in StripeAPI.Types.LineItem toJSON :: LineItemPrice'Type' -> Value # toEncoding :: LineItemPrice'Type' -> Encoding # toJSONList :: [LineItemPrice'Type'] -> Value # toEncodingList :: [LineItemPrice'Type'] -> Encoding # | |
FromJSON LineItemPrice'Type' Source # | |
Defined in StripeAPI.Types.LineItem parseJSON :: Value -> Parser LineItemPrice'Type' # parseJSONList :: Value -> Parser [LineItemPrice'Type'] # |
data LineItemType' Source #
Defines the enum schema located at components.schemas.line_item.properties.type
in the specification.
A string identifying the type of the source of this line item, either an `invoiceitem` or a `subscription`.
LineItemType'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
LineItemType'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
LineItemType'EnumInvoiceitem | Represents the JSON value |
LineItemType'EnumSubscription | Represents the JSON value |
Instances
Eq LineItemType' Source # | |
Defined in StripeAPI.Types.LineItem (==) :: LineItemType' -> LineItemType' -> Bool # (/=) :: LineItemType' -> LineItemType' -> Bool # | |
Show LineItemType' Source # | |
Defined in StripeAPI.Types.LineItem showsPrec :: Int -> LineItemType' -> ShowS # show :: LineItemType' -> String # showList :: [LineItemType'] -> ShowS # | |
ToJSON LineItemType' Source # | |
Defined in StripeAPI.Types.LineItem toJSON :: LineItemType' -> Value # toEncoding :: LineItemType' -> Encoding # toJSONList :: [LineItemType'] -> Value # toEncodingList :: [LineItemType'] -> Encoding # | |
FromJSON LineItemType' Source # | |
Defined in StripeAPI.Types.LineItem parseJSON :: Value -> Parser LineItemType' # parseJSONList :: Value -> Parser [LineItemType'] # |