View Source Stripe.CreditNoteLineItem (Striped v0.5.0) (generated)
Link to this section Summary
Functions
When retrieving a credit note, you’ll get a lines property containing the the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
Link to this section Types
@type t() :: %Stripe.CreditNoteLineItem{ amount: integer(), amount_excluding_tax: integer() | nil, description: binary() | nil, discount_amount: integer(), discount_amounts: term(), id: binary(), invoice_line_item: binary(), livemode: boolean(), object: binary(), quantity: integer() | nil, tax_amounts: term(), tax_rates: term(), type: binary(), unit_amount: integer() | nil, unit_amount_decimal: binary() | nil, unit_amount_excluding_tax: binary() | nil }
The credit_note_line_item
type.
amount
The integer amount in %s representing the gross amount being credited for this line item, excluding (exclusive) tax and discounts.amount_excluding_tax
The integer amount in %s representing the amount being credited for this line item, excluding all tax and discounts.description
Description of the item being credited.discount_amount
The integer amount in %s representing the discount being credited for this line item.discount_amounts
The amount of discount calculated per discount for this line itemid
Unique identifier for the object.invoice_line_item
ID of the invoice line item being creditedlivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.object
String representing the object's type. Objects of the same type share the same value.quantity
The number of units of product being credited.tax_amounts
The amount of tax calculated per tax rate for this line itemtax_rates
The tax rates which apply to the line item.type
The type of the credit note line item, one ofinvoice_line_item
orcustom_line_item
. When the type isinvoice_line_item
there is an additionalinvoice_line_item
property on the resource the value of which is the id of the credited line item on the invoice.unit_amount
The cost of each unit of product being credited.unit_amount_decimal
Same asunit_amount
, but contains a decimal value with at most 12 decimal places.unit_amount_excluding_tax
The amount in %s representing the unit amount being credited for this line item, excluding all tax and discounts.
Link to this section Functions
@spec list( client :: Stripe.t(), credit_note :: binary(), params :: %{ optional(:ending_before) => binary(), optional(:expand) => [binary()], optional(:limit) => integer(), optional(:starting_after) => binary() }, opts :: Keyword.t() ) :: {:ok, Stripe.List.t(t())} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
When retrieving a credit note, you’ll get a lines property containing the the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
Details
- Method:
get
- Path:
/v1/credit_notes/{credit_note}/lines