stripeapi-2.0.0.1: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Types.LineItem

Description

Contains the types generated from the schema LineItem

Synopsis

Documentation

data LineItem Source #

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

Constructors

LineItem 

Fields

Instances

Instances details
Eq LineItem Source # 
Instance details

Defined in StripeAPI.Types.LineItem

Show LineItem Source # 
Instance details

Defined in StripeAPI.Types.LineItem

ToJSON LineItem Source # 
Instance details

Defined in StripeAPI.Types.LineItem

FromJSON LineItem Source # 
Instance details

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.

Constructors

LineItemPrice' 

Fields

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.

Constructors

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 "per_unit"

LineItemPrice'BillingScheme'EnumTiered

Represents the JSON value "tiered"

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.

Constructors

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 "price"

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.

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

Constructors

LineItemPrice'Recurring' 

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

Constructors

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 "last_during_period"

LineItemPrice'Recurring'AggregateUsage'EnumLastEver

Represents the JSON value "last_ever"

LineItemPrice'Recurring'AggregateUsage'EnumMax

Represents the JSON value "max"

LineItemPrice'Recurring'AggregateUsage'EnumSum

Represents the JSON value "sum"

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

Constructors

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 "day"

LineItemPrice'Recurring'Interval'EnumMonth

Represents the JSON value "month"

LineItemPrice'Recurring'Interval'EnumWeek

Represents the JSON value "week"

LineItemPrice'Recurring'Interval'EnumYear

Represents the JSON value "year"

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

Constructors

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 "licensed"

LineItemPrice'Recurring'UsageType'EnumMetered

Represents the JSON value "metered"

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.

Constructors

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 "exclusive"

LineItemPrice'TaxBehavior'EnumInclusive

Represents the JSON value "inclusive"

LineItemPrice'TaxBehavior'EnumUnspecified

Represents the JSON value "unspecified"

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.

Constructors

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 "graduated"

LineItemPrice'TiersMode'EnumVolume

Represents the JSON value "volume"

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

Constructors

LineItemPrice'TransformQuantity' 

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

Constructors

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 "down"

LineItemPrice'TransformQuantity'Round'EnumUp

Represents the JSON value "up"

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.

Constructors

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 "one_time"

LineItemPrice'Type'EnumRecurring

Represents the JSON value "recurring"

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

Constructors

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 "invoiceitem"

LineItemType'EnumSubscription

Represents the JSON value "subscription"