stripeapi-2.0.0.1: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Types.Invoiceitem

Description

Contains the types generated from the schema Invoiceitem

Synopsis

Documentation

data Invoiceitem Source #

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

Sometimes you want to add a charge or credit to a customer, but actually charge or credit the customer's card only at the end of a regular billing cycle. This is useful for combining several charges (to minimize per-transaction fees), or for having Stripe tabulate your usage-based billing totals.

Related guide: Subscription Invoices.

Constructors

Invoiceitem 

Fields

data InvoiceitemPrice' Source #

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

The price of the invoice item.

Constructors

InvoiceitemPrice' 

Fields

mkInvoiceitemPrice' :: InvoiceitemPrice' Source #

Create a new InvoiceitemPrice' with all required fields.

data InvoiceitemPrice'BillingScheme' Source #

Defines the enum schema located at components.schemas.invoiceitem.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

InvoiceitemPrice'BillingScheme'Other Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

InvoiceitemPrice'BillingScheme'Typed Text

This constructor can be used to send values to the server which are not present in the specification yet.

InvoiceitemPrice'BillingScheme'EnumPerUnit

Represents the JSON value "per_unit"

InvoiceitemPrice'BillingScheme'EnumTiered

Represents the JSON value "tiered"

data InvoiceitemPrice'Object' Source #

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

String representing the object's type. Objects of the same type share the same value.

Constructors

InvoiceitemPrice'Object'Other Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

InvoiceitemPrice'Object'Typed Text

This constructor can be used to send values to the server which are not present in the specification yet.

InvoiceitemPrice'Object'EnumPrice

Represents the JSON value "price"

data InvoiceitemPrice'Product'Variants Source #

Defines the oneOf schema located at components.schemas.invoiceitem.properties.price.anyOf.properties.product.anyOf in the specification.

The ID of the product this price is associated with.

data InvoiceitemPrice'Recurring' Source #

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

The recurring components of a price such as \`interval\` and \`usage_type\`.

Constructors

InvoiceitemPrice'Recurring' 

Fields

data InvoiceitemPrice'Recurring'AggregateUsage' Source #

Defines the enum schema located at components.schemas.invoiceitem.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

InvoiceitemPrice'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.

InvoiceitemPrice'Recurring'AggregateUsage'Typed Text

This constructor can be used to send values to the server which are not present in the specification yet.

InvoiceitemPrice'Recurring'AggregateUsage'EnumLastDuringPeriod

Represents the JSON value "last_during_period"

InvoiceitemPrice'Recurring'AggregateUsage'EnumLastEver

Represents the JSON value "last_ever"

InvoiceitemPrice'Recurring'AggregateUsage'EnumMax

Represents the JSON value "max"

InvoiceitemPrice'Recurring'AggregateUsage'EnumSum

Represents the JSON value "sum"

data InvoiceitemPrice'Recurring'Interval' Source #

Defines the enum schema located at components.schemas.invoiceitem.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

InvoiceitemPrice'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.

InvoiceitemPrice'Recurring'Interval'Typed Text

This constructor can be used to send values to the server which are not present in the specification yet.

InvoiceitemPrice'Recurring'Interval'EnumDay

Represents the JSON value "day"

InvoiceitemPrice'Recurring'Interval'EnumMonth

Represents the JSON value "month"

InvoiceitemPrice'Recurring'Interval'EnumWeek

Represents the JSON value "week"

InvoiceitemPrice'Recurring'Interval'EnumYear

Represents the JSON value "year"

data InvoiceitemPrice'Recurring'UsageType' Source #

Defines the enum schema located at components.schemas.invoiceitem.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

InvoiceitemPrice'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.

InvoiceitemPrice'Recurring'UsageType'Typed Text

This constructor can be used to send values to the server which are not present in the specification yet.

InvoiceitemPrice'Recurring'UsageType'EnumLicensed

Represents the JSON value "licensed"

InvoiceitemPrice'Recurring'UsageType'EnumMetered

Represents the JSON value "metered"

data InvoiceitemPrice'TaxBehavior' Source #

Defines the enum schema located at components.schemas.invoiceitem.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

InvoiceitemPrice'TaxBehavior'Other Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

InvoiceitemPrice'TaxBehavior'Typed Text

This constructor can be used to send values to the server which are not present in the specification yet.

InvoiceitemPrice'TaxBehavior'EnumExclusive

Represents the JSON value "exclusive"

InvoiceitemPrice'TaxBehavior'EnumInclusive

Represents the JSON value "inclusive"

InvoiceitemPrice'TaxBehavior'EnumUnspecified

Represents the JSON value "unspecified"

data InvoiceitemPrice'TiersMode' Source #

Defines the enum schema located at components.schemas.invoiceitem.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

InvoiceitemPrice'TiersMode'Other Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

InvoiceitemPrice'TiersMode'Typed Text

This constructor can be used to send values to the server which are not present in the specification yet.

InvoiceitemPrice'TiersMode'EnumGraduated

Represents the JSON value "graduated"

InvoiceitemPrice'TiersMode'EnumVolume

Represents the JSON value "volume"

data InvoiceitemPrice'TransformQuantity' Source #

Defines the object schema located at components.schemas.invoiceitem.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

InvoiceitemPrice'TransformQuantity' 

Fields

data InvoiceitemPrice'TransformQuantity'Round' Source #

Defines the enum schema located at components.schemas.invoiceitem.properties.price.anyOf.properties.transform_quantity.anyOf.properties.round in the specification.

After division, either round the result `up` or `down`.

Constructors

InvoiceitemPrice'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.

InvoiceitemPrice'TransformQuantity'Round'Typed Text

This constructor can be used to send values to the server which are not present in the specification yet.

InvoiceitemPrice'TransformQuantity'Round'EnumDown

Represents the JSON value "down"

InvoiceitemPrice'TransformQuantity'Round'EnumUp

Represents the JSON value "up"

data InvoiceitemPrice'Type' Source #

Defines the enum schema located at components.schemas.invoiceitem.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

InvoiceitemPrice'Type'Other Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

InvoiceitemPrice'Type'Typed Text

This constructor can be used to send values to the server which are not present in the specification yet.

InvoiceitemPrice'Type'EnumOneTime

Represents the JSON value "one_time"

InvoiceitemPrice'Type'EnumRecurring

Represents the JSON value "recurring"

data InvoiceitemSubscription'Variants Source #

Defines the oneOf schema located at components.schemas.invoiceitem.properties.subscription.anyOf in the specification.

The subscription that this invoice item has been created for, if any.