Package com.stripe.model.tax
Class CalculationLineItem
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.tax.CalculationLineItem
- All Implemented Interfaces:
- HasId,- StripeObjectInterface
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classFor more details about TaxBreakdown, please refer to the API Reference.
- 
Field SummaryFields inherited from class com.stripe.model.StripeObjectPRETTY_PRINT_GSON
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanbooleanThe line item amount in the smallest currency unit.The amount of tax calculated for this line item, in the smallest currency unit.getId()Unique identifier for the object.Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.Set of key-value pairs that you can attach to an object.String representing the object's type.The ID of an existing Product.The number of units of the item being purchased.A custom identifier for this line item.Specifies whether theamountincludes taxes.Detailed account of taxes relevant to this line item.The tax code ID used for this resource.inthashCode()voidThe line item amount in the smallest currency unit.voidsetAmountTax(Long amountTax) The amount of tax calculated for this line item, in the smallest currency unit.voidUnique identifier for the object.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetMetadata(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.voidString representing the object's type.voidsetProduct(String product) The ID of an existing Product.voidsetQuantity(Long quantity) The number of units of the item being purchased.voidsetReference(String reference) A custom identifier for this line item.voidsetTaxBehavior(String taxBehavior) Specifies whether theamountincludes taxes.voidsetTaxBreakdown(List<CalculationLineItem.TaxBreakdown> taxBreakdown) Detailed account of taxes relevant to this line item.voidsetTaxCode(String taxCode) The tax code ID used for this resource.Methods inherited from class com.stripe.model.StripeObjectdeserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
- 
Constructor Details- 
CalculationLineItempublic CalculationLineItem()
 
- 
- 
Method Details- 
getAmountThe 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.
- 
getAmountTaxThe amount of tax calculated for this line item, in the smallest currency unit.
- 
getLivemodeHas the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.
- 
getMetadataSet 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.
- 
getObjectString representing the object's type. Objects of the same type share the same value.Equal to tax.calculation_line_item.
- 
getProductThe ID of an existing Product.
- 
getQuantityThe number of units of the item being purchased. For reversals, this is the quantity reversed.
- 
getReferenceA custom identifier for this line item.
- 
getTaxBehaviorSpecifies whether theamountincludes taxes. Iftax_behavior=inclusive, then the amount includes taxes.One of exclusive, orinclusive.
- 
getTaxBreakdownDetailed account of taxes relevant to this line item.
- 
getTaxCodeThe tax code ID used for this resource.
- 
setAmountThe 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.
- 
setAmountTaxThe amount of tax calculated for this line item, in the smallest currency unit.
- 
setIdUnique identifier for the object.
- 
setLivemodeHas the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.
- 
setMetadataSet 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.
- 
setObjectString representing the object's type. Objects of the same type share the same value.Equal to tax.calculation_line_item.
- 
setProductThe ID of an existing Product.
- 
setQuantityThe number of units of the item being purchased. For reversals, this is the quantity reversed.
- 
setReferenceA custom identifier for this line item.
- 
setTaxBehaviorSpecifies whether theamountincludes taxes. Iftax_behavior=inclusive, then the amount includes taxes.One of exclusive, orinclusive.
- 
setTaxBreakdownDetailed account of taxes relevant to this line item.
- 
setTaxCodeThe tax code ID used for this resource.
- 
equals
- 
canEqual
- 
hashCodepublic int hashCode()
- 
getIdUnique identifier for the object.
 
-