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 Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about TaxBreakdown, please refer to the API Reference. -
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier 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.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
CalculationLineItem
public CalculationLineItem()
-
-
Method Details
-
getAmount
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. -
getAmountTax
The amount of tax calculated for this line item, in the smallest currency unit. -
getLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
getMetadata
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. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
tax.calculation_line_item. -
getProduct
The ID of an existing Product. -
getQuantity
The number of units of the item being purchased. For reversals, this is the quantity reversed. -
getReference
A custom identifier for this line item. -
getTaxBehavior
Specifies whether theamountincludes taxes. Iftax_behavior=inclusive, then the amount includes taxes.One of
exclusive, orinclusive. -
getTaxBreakdown
Detailed account of taxes relevant to this line item. -
getTaxCode
The tax code ID used for this resource. -
setAmount
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. -
setAmountTax
The amount of tax calculated for this line item, in the smallest currency unit. -
setId
Unique identifier for the object. -
setLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
setMetadata
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. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
tax.calculation_line_item. -
setProduct
The ID of an existing Product. -
setQuantity
The number of units of the item being purchased. For reversals, this is the quantity reversed. -
setReference
A custom identifier for this line item. -
setTaxBehavior
Specifies whether theamountincludes taxes. Iftax_behavior=inclusive, then the amount includes taxes.One of
exclusive, orinclusive. -
setTaxBreakdown
Detailed account of taxes relevant to this line item. -
setTaxCode
The tax code ID used for this resource. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-