TaxProductResourceTaxCalculationLineItem
Summary
Types
@type t() :: %Stripe.Resources.Tax.CalculationLineItem{ amount: integer(), amount_tax: integer(), id: String.t(), livemode: boolean(), metadata: %{required(String.t()) => String.t()}, object: String.t(), product: String.t(), quantity: integer(), reference: String.t(), tax_behavior: String.t(), tax_breakdown: [tax_breakdown()] | nil, tax_code: String.t() }
amount- The line item amount in the smallest currency unit. Iftax_behavior=inclusive, then this amount includes taxes. Otherwise, taxes were calculated on top of this amount.amount_tax- The amount of tax calculated for this line item, in the smallest currency unit.id- Unique identifier for the object. Max length: 5000.livemode- Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.metadata- Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Nullable.object- String representing the object's type. Objects of the same type share the same value. Possible values:tax.calculation_line_item.product- The ID of an existing Product. Max length: 5000. Nullable.quantity- The number of units of the item being purchased. For reversals, this is the quantity reversed.reference- A custom identifier for this line item. Max length: 5000.tax_behavior- Specifies whether theamountincludes taxes. Iftax_behavior=inclusive, then the amount includes taxes. Possible values:exclusive,inclusive.tax_breakdown- Detailed account of taxes relevant to this line item. Nullable. Expandable.tax_code- The tax code ID used for this resource. Max length: 5000.
@type tax_breakdown() :: %{ optional(:amount) => integer() | nil, optional(:jurisdiction) => tax_breakdown_jurisdiction() | nil, optional(:sourcing) => String.t() | nil, optional(:tax_rate_details) => tax_breakdown_tax_rate_details() | nil, optional(:taxability_reason) => String.t() | nil, optional(:taxable_amount) => integer() | nil, optional(String.t()) => term() }
amount- The amount of tax, in the smallest currency unit.jurisdictionsourcing- Indicates whether the jurisdiction was determined by the origin (merchant's address) or destination (customer's address). Possible values:destination,origin.tax_rate_details- Details regarding the rate for this tax. This field will benullwhen the tax is not imposed, for example if the product is exempt from tax. Nullable.taxability_reason- The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. Possible values:customer_exempt,not_collecting,not_subject_to_tax,not_supported,portion_product_exempt,portion_reduced_rated,portion_standard_rated,product_exempt,product_exempt_holiday,proportionally_rated,reduced_rated,reverse_charge,standard_rated,taxable_basis_reduced,zero_rated.taxable_amount- The amount on which tax is calculated, in the smallest currency unit.
@type tax_breakdown_jurisdiction() :: %{ optional(:country) => String.t() | nil, optional(:display_name) => String.t() | nil, optional(:level) => String.t() | nil, optional(:state) => String.t() | nil, optional(String.t()) => term() }
country- Two-letter country code (ISO 3166-1 alpha-2). Max length: 5000.display_name- A human-readable name for the jurisdiction imposing the tax. Max length: 5000.level- Indicates the level of the jurisdiction imposing the tax. Possible values:city,country,county,district,state.state- ISO 3166-2 subdivision code, without country prefix. For example, "NY" for New York, United States. Max length: 5000. Nullable.
@type tax_breakdown_tax_rate_details() :: %{ optional(:display_name) => String.t() | nil, optional(:percentage_decimal) => String.t() | nil, optional(:tax_type) => String.t() | nil, optional(String.t()) => term() }
display_name- A localized display name for tax type, intended to be human-readable. For example, "Local Sales and Use Tax", "Value-added tax (VAT)", or "Umsatzsteuer (USt.)". Max length: 5000.percentage_decimal- The tax rate percentage as a string. For example, 8.5% is represented as "8.5". Max length: 5000.tax_type- The tax type, such asvatorsales_tax. Possible values:amusement_tax,communications_tax,gst,hst,igst,jct,lease_tax,pst,qst,retail_delivery_fee,rst,sales_tax,service_tax,vat.