Packages
stripity_stripe
3.3.1
3.3.2
3.3.1
3.2.0
3.1.1
3.1.0
3.0.0
2.17.3
2.17.2
2.17.1
2.17.0
2.16.0
2.15.1
2.15.0
2.14.1
2.14.0
2.13.0
2.12.1
2.12.0
2.11.0
2.10.0
2.9.0
2.8.0
2.7.2
2.7.1
2.7.0
2.6.0
2.5.0
2.4.0
2.3.0
2.2.3
2.2.2
2.2.1
2.2.0
2.1.0
2.0.1
2.0.0
2.0.0-alpha.11
2.0.0-alpha.10
2.0.0-alpha.9
2.0.0-alpha.8
2.0.0-alpha.7
2.0.0-alpha.6
2.0.0-alpha.5
2.0.0-alpha.4
2.0.0-alpha.3
2.0.0-alpha.2
2.0.0-alpha.1
1.6.2
1.6.1
1.6.0
1.4.0
1.3.0
1.2.0
1.1.0
0.5.0
0.4.0
0.3.0
0.2.0
A Stripe client for Elixir.
Current section
Files
Jump to
Current section
Files
lib/generated/item.ex
defmodule Stripe.Item do
use Stripe.Entity
@moduledoc "A line item."
(
defstruct [
:amount_discount,
:amount_subtotal,
:amount_tax,
:amount_total,
:currency,
:description,
:discounts,
:id,
:object,
:price,
:quantity,
:taxes
]
@typedoc "The `item` type.\n\n * `amount_discount` Total discount amount applied. If no discounts were applied, defaults to 0.\n * `amount_subtotal` Total before any discounts or taxes are applied.\n * `amount_tax` Total tax amount applied. If no tax was applied, defaults to 0.\n * `amount_total` Total after discounts and taxes.\n * `currency` Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).\n * `description` An arbitrary string attached to the object. Often useful for displaying to users. Defaults to product name.\n * `discounts` The discounts applied to the line item.\n * `id` Unique identifier for the object.\n * `object` String representing the object's type. Objects of the same type share the same value.\n * `price` The price used to generate the line item.\n * `quantity` The quantity of products being purchased.\n * `taxes` The taxes applied to the line item.\n"
@type t :: %__MODULE__{
amount_discount: integer,
amount_subtotal: integer,
amount_tax: integer,
amount_total: integer,
currency: binary,
description: binary | nil,
discounts: term,
id: binary,
object: binary,
price: Stripe.Price.t() | nil,
quantity: integer | nil,
taxes: term
}
)
end