View Source ExOAPI.Stripe.Schemas.CreditNoteLineItem (exoapi_stripe v0.1.4)
:amount :: :integer
The integer amount in %s representing the gross amount being credited for this line item, excluding (exclusive) tax and discounts.
:description :: :string
Description of the item being credited.
:discount_amount :: :integer
The integer amount in %s representing the discount being credited for this line item.
::discount_amounts :: ExOAPI.Stripe.Schemas.DiscountsResourceDiscountAmount
:id :: :string
Unique identifier for the object.
:invoice_line_item :: :string
ID of the invoice line item being credited
:livemode :: :boolean
Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
:object :: :string
String representing the object's type. Objects of the same type share the same value.
:quantity :: :integer
The number of units of product being credited.
::tax_amounts :: ExOAPI.Stripe.Schemas.CreditNoteTaxAmount
::tax_rates :: ExOAPI.Stripe.Schemas.TaxRate
:type :: :string
The type of the credit note line item, one of invoice_line_item
or custom_line_item
. When the type is invoice_line_item
there is an additional invoice_line_item
property on the resource the value of which is the id of the credited line item on the invoice.
:unit_amount :: :integer
The cost of each unit of product being credited.
:unit_amount_decimal :: :string
Same as unit_amount
, but contains a decimal value with at most 12 decimal places.
Link to this section Summary
Link to this section Types
@type params() :: map()
@type t() :: %ExOAPI.Stripe.Schemas.CreditNoteLineItem{ amount: integer() | nil, description: String.t() | nil, discount_amount: integer() | nil, discount_amounts: [ExOAPI.Stripe.Schemas.DiscountsResourceDiscountAmount.t()], id: String.t() | nil, invoice_line_item: String.t() | nil, livemode: boolean() | nil, object: :credit_note_line_item | nil, quantity: integer() | nil, tax_amounts: [ExOAPI.Stripe.Schemas.CreditNoteTaxAmount.t()], tax_rates: [ExOAPI.Stripe.Schemas.TaxRate.t()], type: (:invoice_line_item | :custom_line_item) | nil, unit_amount: integer() | nil, unit_amount_decimal: String.t() | nil }
Link to this section Functions
@spec changeset(t(), params()) :: Ecto.Changeset.t()