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
-
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The 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 valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.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 theamount
includes taxes.Detailed account of taxes relevant to this line item.The tax code ID used for this resource.int
hashCode()
void
The line item amount in the smallest currency unit.void
setAmountTax
(Long amountTax) The amount of tax calculated for this line item, in the smallest currency unit.void
Unique identifier for the object.void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
String representing the object's type.void
setProduct
(String product) The ID of an existing Product.void
setQuantity
(Long quantity) The number of units of the item being purchased.void
setReference
(String reference) A custom identifier for this line item.void
setTaxBehavior
(String taxBehavior) Specifies whether theamount
includes taxes.void
setTaxBreakdown
(List<CalculationLineItem.TaxBreakdown> taxBreakdown) Detailed account of taxes relevant to this line item.void
setTaxCode
(String taxCode) The tax code ID used for this resource.Methods inherited from class com.stripe.model.StripeObject
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 valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
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 theamount
includes 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 valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
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 theamount
includes 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.
-