HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulestripeapi-3.0.0.0Haskell2010

StripeAPI.Types.LineItem

Contains the types generated from the schema LineItem

  • 19 types
  • 7 values
datadata LineItem
#

Defines the object schema located at components.schemas.line_item in the specification.

Constructors

Instances4Eq, Show, FromJSON, ToJSON
  • Eq LineItemDefined in stripeapi-3.0.0.0 · StripeAPI.Types.LineItem
  • Show LineItemDefined in stripeapi-3.0.0.0 · StripeAPI.Types.LineItem
  • FromJSON LineItemDefined in stripeapi-3.0.0.0 · StripeAPI.Types.LineItem
  • ToJSON LineItemDefined in stripeapi-3.0.0.0 · StripeAPI.Types.LineItem

Defines the oneOf schema located at components.schemas.line_item.properties.discounts.items.anyOf in the specification.

Instances4Eq, Show, FromJSON, ToJSON

Defines the object schema located at components.schemas.line_item.properties.price.anyOf in the specification.

The price of the line item.

Constructors

Instances4Eq, Show, FromJSON, ToJSON

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.

Constructors

Instances4Eq, Show, FromJSON, ToJSON

Defines the object schema located at components.schemas.line_item.properties.price.anyOf.properties.custom_unit_amount.anyOf in the specification.

When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.

Constructors

Instances4Eq, Show, FromJSON, ToJSON

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.

Constructors

Instances4Eq, Show, FromJSON, ToJSON

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.

Instances4Eq, Show, FromJSON, ToJSON

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\`.

Constructors

Instances4Eq, Show, FromJSON, ToJSON

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`.

Constructors

Instances4Eq, Show, FromJSON, ToJSON

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`.

Constructors

Instances4Eq, Show, FromJSON, ToJSON

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`.

Constructors

Instances4Eq, Show, FromJSON, ToJSON

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.

Constructors

Instances4Eq, Show, FromJSON, ToJSON

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.

Constructors

Instances4Eq, Show, FromJSON, ToJSON

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\`.

Instances4Eq, Show, FromJSON, ToJSON

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`.

Constructors

Instances4Eq, Show, FromJSON, ToJSON

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.

Constructors

Instances4Eq, Show, FromJSON, ToJSON

Defines the object schema located at components.schemas.line_item.properties.proration_details.anyOf in the specification.

Additional details for proration line items

Constructors

Instances4Eq, Show, FromJSON, ToJSON

Defines the object schema located at components.schemas.line_item.properties.proration_details.anyOf.properties.credited_items.anyOf in the specification.

For a credit proration \`line_item\`, the original debit line_items to which the credit proration applies.

Constructors

Instances4Eq, Show, FromJSON, ToJSON
datadata LineItemType'
#

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`.

Constructors

Instances4Eq, Show, FromJSON, ToJSON