Package com.stripe.param.tax
Class CalculationCreateParams.LineItem
java.lang.Object
com.stripe.param.tax.CalculationCreateParams.LineItem
- Enclosing class:
- CalculationCreateParams
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static enum
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Required. A positive integer representing the line item's total price in the smallest currency unit.Map of extra parameters for custom features not available in this client library.If provided, the product'stax_code
will be used as the line item'stax_code
.The number of units of the item being purchased.A custom identifier for this line item, which must be unique across the line items in the calculation.Specifies whether theamount
includes taxes.A tax code ID to use for this line item.
-
Method Details
-
builder
-
getAmount
Required. A positive integer representing the line item's total price in the smallest currency unit. Iftax_behavior=inclusive
, then this amount includes taxes. Otherwise, taxes are calculated on top of this amount. -
getExtraParams
Map of extra parameters for custom features not available in this client library. The content in this map is not serialized under this field's@SerializedName
value. Instead, each key/value pair is serialized as if the key is a root-level field (serialized) name in this param object. Effectively, this map is flattened to its parent instance. -
getProduct
If provided, the product'stax_code
will be used as the line item'stax_code
. -
getQuantity
The number of units of the item being purchased. Used to calculate the per-unit price from the totalamount
for the line. For example, ifamount=100
andquantity=4
, the calculated unit price is 25. -
getReference
A custom identifier for this line item, which must be unique across the line items in the calculation. The reference helps identify each line item in exported tax reports. -
getTaxBehavior
Specifies whether theamount
includes taxes. Defaults toexclusive
. -
getTaxCode
A tax code ID to use for this line item. If not provided, we will use the tax code from the providedproduct
param. If neithertax_code
norproduct
is provided, we will use the default tax code from your Tax Settings.
-