Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the types generated from the schema Invoiceitem
Synopsis
- data Invoiceitem = Invoiceitem {
- invoiceitemAmount :: Int
- invoiceitemCurrency :: Text
- invoiceitemCustomer :: InvoiceitemCustomer'Variants
- invoiceitemDate :: Int
- invoiceitemDescription :: Maybe Text
- invoiceitemDiscountable :: Bool
- invoiceitemDiscounts :: Maybe [InvoiceitemDiscounts'Variants]
- invoiceitemId :: Text
- invoiceitemInvoice :: Maybe InvoiceitemInvoice'Variants
- invoiceitemLivemode :: Bool
- invoiceitemMetadata :: Maybe Object
- invoiceitemPeriod :: InvoiceLineItemPeriod
- invoiceitemPrice :: Maybe InvoiceitemPrice'
- invoiceitemProration :: Bool
- invoiceitemQuantity :: Int
- invoiceitemSubscription :: Maybe InvoiceitemSubscription'Variants
- invoiceitemSubscriptionItem :: Maybe Text
- invoiceitemTaxRates :: Maybe [TaxRate]
- invoiceitemUnitAmount :: Maybe Int
- invoiceitemUnitAmountDecimal :: Maybe Text
- mkInvoiceitem :: Int -> Text -> InvoiceitemCustomer'Variants -> Int -> Bool -> Text -> Bool -> InvoiceLineItemPeriod -> Bool -> Int -> Invoiceitem
- data InvoiceitemCustomer'Variants
- data InvoiceitemDiscounts'Variants
- data InvoiceitemInvoice'Variants
- data InvoiceitemPrice' = InvoiceitemPrice' {
- invoiceitemPrice'Active :: Maybe Bool
- invoiceitemPrice'BillingScheme :: Maybe InvoiceitemPrice'BillingScheme'
- invoiceitemPrice'Created :: Maybe Int
- invoiceitemPrice'Currency :: Maybe Text
- invoiceitemPrice'Id :: Maybe Text
- invoiceitemPrice'Livemode :: Maybe Bool
- invoiceitemPrice'LookupKey :: Maybe Text
- invoiceitemPrice'Metadata :: Maybe Object
- invoiceitemPrice'Nickname :: Maybe Text
- invoiceitemPrice'Object :: Maybe InvoiceitemPrice'Object'
- invoiceitemPrice'Product :: Maybe InvoiceitemPrice'Product'Variants
- invoiceitemPrice'Recurring :: Maybe InvoiceitemPrice'Recurring'
- invoiceitemPrice'TaxBehavior :: Maybe InvoiceitemPrice'TaxBehavior'
- invoiceitemPrice'Tiers :: Maybe [PriceTier]
- invoiceitemPrice'TiersMode :: Maybe InvoiceitemPrice'TiersMode'
- invoiceitemPrice'TransformQuantity :: Maybe InvoiceitemPrice'TransformQuantity'
- invoiceitemPrice'Type :: Maybe InvoiceitemPrice'Type'
- invoiceitemPrice'UnitAmount :: Maybe Int
- invoiceitemPrice'UnitAmountDecimal :: Maybe Text
- mkInvoiceitemPrice' :: InvoiceitemPrice'
- data InvoiceitemPrice'BillingScheme'
- data InvoiceitemPrice'Object'
- data InvoiceitemPrice'Product'Variants
- data InvoiceitemPrice'Recurring' = InvoiceitemPrice'Recurring' {
- invoiceitemPrice'Recurring'AggregateUsage :: Maybe InvoiceitemPrice'Recurring'AggregateUsage'
- invoiceitemPrice'Recurring'Interval :: Maybe InvoiceitemPrice'Recurring'Interval'
- invoiceitemPrice'Recurring'IntervalCount :: Maybe Int
- invoiceitemPrice'Recurring'UsageType :: Maybe InvoiceitemPrice'Recurring'UsageType'
- mkInvoiceitemPrice'Recurring' :: InvoiceitemPrice'Recurring'
- data InvoiceitemPrice'Recurring'AggregateUsage'
- = InvoiceitemPrice'Recurring'AggregateUsage'Other Value
- | InvoiceitemPrice'Recurring'AggregateUsage'Typed Text
- | InvoiceitemPrice'Recurring'AggregateUsage'EnumLastDuringPeriod
- | InvoiceitemPrice'Recurring'AggregateUsage'EnumLastEver
- | InvoiceitemPrice'Recurring'AggregateUsage'EnumMax
- | InvoiceitemPrice'Recurring'AggregateUsage'EnumSum
- data InvoiceitemPrice'Recurring'Interval'
- data InvoiceitemPrice'Recurring'UsageType'
- data InvoiceitemPrice'TaxBehavior'
- data InvoiceitemPrice'TiersMode'
- data InvoiceitemPrice'TransformQuantity' = InvoiceitemPrice'TransformQuantity' {}
- mkInvoiceitemPrice'TransformQuantity' :: InvoiceitemPrice'TransformQuantity'
- data InvoiceitemPrice'TransformQuantity'Round'
- data InvoiceitemPrice'Type'
- data InvoiceitemSubscription'Variants
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.
Invoiceitem | |
|
Instances
Eq Invoiceitem Source # | |
Defined in StripeAPI.Types.Invoiceitem (==) :: Invoiceitem -> Invoiceitem -> Bool # (/=) :: Invoiceitem -> Invoiceitem -> Bool # | |
Show Invoiceitem Source # | |
Defined in StripeAPI.Types.Invoiceitem showsPrec :: Int -> Invoiceitem -> ShowS # show :: Invoiceitem -> String # showList :: [Invoiceitem] -> ShowS # | |
ToJSON Invoiceitem Source # | |
Defined in StripeAPI.Types.Invoiceitem toJSON :: Invoiceitem -> Value # toEncoding :: Invoiceitem -> Encoding # toJSONList :: [Invoiceitem] -> Value # toEncodingList :: [Invoiceitem] -> Encoding # | |
FromJSON Invoiceitem Source # | |
Defined in StripeAPI.Types.Invoiceitem parseJSON :: Value -> Parser Invoiceitem # parseJSONList :: Value -> Parser [Invoiceitem] # |
:: Int | |
-> Text | |
-> InvoiceitemCustomer'Variants | |
-> Int | |
-> Bool | |
-> Text | |
-> Bool | |
-> InvoiceLineItemPeriod | |
-> Bool | |
-> Int | |
-> Invoiceitem |
Create a new Invoiceitem
with all required fields.
data InvoiceitemCustomer'Variants Source #
Defines the oneOf schema located at components.schemas.invoiceitem.properties.customer.anyOf
in the specification.
The ID of the customer who will be billed when this invoice item is billed.
InvoiceitemCustomer'Text Text | |
InvoiceitemCustomer'Customer Customer | |
InvoiceitemCustomer'DeletedCustomer DeletedCustomer |
Instances
data InvoiceitemDiscounts'Variants Source #
Defines the oneOf schema located at components.schemas.invoiceitem.properties.discounts.items.anyOf
in the specification.
Instances
data InvoiceitemInvoice'Variants Source #
Defines the oneOf schema located at components.schemas.invoiceitem.properties.invoice.anyOf
in the specification.
The ID of the invoice this invoice item belongs to.
Instances
data InvoiceitemPrice' Source #
Defines the object schema located at components.schemas.invoiceitem.properties.price.anyOf
in the specification.
The price of the invoice item.
InvoiceitemPrice' | |
|
Instances
Eq InvoiceitemPrice' Source # | |
Defined in StripeAPI.Types.Invoiceitem (==) :: InvoiceitemPrice' -> InvoiceitemPrice' -> Bool # (/=) :: InvoiceitemPrice' -> InvoiceitemPrice' -> Bool # | |
Show InvoiceitemPrice' Source # | |
Defined in StripeAPI.Types.Invoiceitem showsPrec :: Int -> InvoiceitemPrice' -> ShowS # show :: InvoiceitemPrice' -> String # showList :: [InvoiceitemPrice'] -> ShowS # | |
ToJSON InvoiceitemPrice' Source # | |
Defined in StripeAPI.Types.Invoiceitem toJSON :: InvoiceitemPrice' -> Value # toEncoding :: InvoiceitemPrice' -> Encoding # toJSONList :: [InvoiceitemPrice'] -> Value # toEncodingList :: [InvoiceitemPrice'] -> Encoding # | |
FromJSON InvoiceitemPrice' Source # | |
Defined in StripeAPI.Types.Invoiceitem parseJSON :: Value -> Parser InvoiceitemPrice' # parseJSONList :: Value -> Parser [InvoiceitemPrice'] # |
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.
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 |
InvoiceitemPrice'BillingScheme'EnumTiered | Represents the JSON value |
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.
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 |
Instances
Eq InvoiceitemPrice'Object' Source # | |
Defined in StripeAPI.Types.Invoiceitem | |
Show InvoiceitemPrice'Object' Source # | |
Defined in StripeAPI.Types.Invoiceitem showsPrec :: Int -> InvoiceitemPrice'Object' -> ShowS # show :: InvoiceitemPrice'Object' -> String # showList :: [InvoiceitemPrice'Object'] -> ShowS # | |
ToJSON InvoiceitemPrice'Object' Source # | |
Defined in StripeAPI.Types.Invoiceitem | |
FromJSON InvoiceitemPrice'Object' Source # | |
Defined in StripeAPI.Types.Invoiceitem |
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.
InvoiceitemPrice'Product'Text Text | |
InvoiceitemPrice'Product'Product Product | |
InvoiceitemPrice'Product'DeletedProduct DeletedProduct |
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\`.
InvoiceitemPrice'Recurring' | |
|
Instances
mkInvoiceitemPrice'Recurring' :: InvoiceitemPrice'Recurring' Source #
Create a new InvoiceitemPrice'Recurring'
with all required 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`.
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 |
InvoiceitemPrice'Recurring'AggregateUsage'EnumLastEver | Represents the JSON value |
InvoiceitemPrice'Recurring'AggregateUsage'EnumMax | Represents the JSON value |
InvoiceitemPrice'Recurring'AggregateUsage'EnumSum | Represents the JSON value |
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`.
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 |
InvoiceitemPrice'Recurring'Interval'EnumMonth | Represents the JSON value |
InvoiceitemPrice'Recurring'Interval'EnumWeek | Represents the JSON value |
InvoiceitemPrice'Recurring'Interval'EnumYear | Represents the JSON value |
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`.
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 |
InvoiceitemPrice'Recurring'UsageType'EnumMetered | Represents the JSON value |
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.
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 |
InvoiceitemPrice'TaxBehavior'EnumInclusive | Represents the JSON value |
InvoiceitemPrice'TaxBehavior'EnumUnspecified | Represents the JSON value |
Instances
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.
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 |
InvoiceitemPrice'TiersMode'EnumVolume | Represents the JSON value |
Instances
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\`.
InvoiceitemPrice'TransformQuantity' | |
|
mkInvoiceitemPrice'TransformQuantity' :: InvoiceitemPrice'TransformQuantity' Source #
Create a new InvoiceitemPrice'TransformQuantity'
with all required 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`.
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 |
InvoiceitemPrice'TransformQuantity'Round'EnumUp | Represents the JSON value |
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.
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 |
InvoiceitemPrice'Type'EnumRecurring | Represents the JSON value |
Instances
Eq InvoiceitemPrice'Type' Source # | |
Defined in StripeAPI.Types.Invoiceitem | |
Show InvoiceitemPrice'Type' Source # | |
Defined in StripeAPI.Types.Invoiceitem showsPrec :: Int -> InvoiceitemPrice'Type' -> ShowS # show :: InvoiceitemPrice'Type' -> String # showList :: [InvoiceitemPrice'Type'] -> ShowS # | |
ToJSON InvoiceitemPrice'Type' Source # | |
Defined in StripeAPI.Types.Invoiceitem toJSON :: InvoiceitemPrice'Type' -> Value # toEncoding :: InvoiceitemPrice'Type' -> Encoding # toJSONList :: [InvoiceitemPrice'Type'] -> Value # | |
FromJSON InvoiceitemPrice'Type' Source # | |
Defined in StripeAPI.Types.Invoiceitem |
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.