Package com.stripe.model.tax
Class TransactionLineItem
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.tax.TransactionLineItem
- All Implemented Interfaces:
- HasId,- StripeObjectInterface
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classFor more details about Reversal, 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 in the transaction.Iftype=reversal, contains information about what was reversed.Specifies whether theamountincludes taxes.The tax code ID used for this resource.getType()Ifreversal, this line item reverses an earlier transaction.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 in the transaction.voidsetReversal(TransactionLineItem.Reversal reversal) Iftype=reversal, contains information about what was reversed.voidsetTaxBehavior(String taxBehavior) Specifies whether theamountincludes taxes.voidsetTaxCode(String taxCode) The tax code ID used for this resource.voidIfreversal, this line item reverses an earlier transaction.Methods inherited from class com.stripe.model.StripeObjectdeserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
- 
Constructor Details- 
TransactionLineItempublic TransactionLineItem()
 
- 
- 
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.transaction_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 in the transaction.
- 
getReversalIftype=reversal, contains information about what was reversed.
- 
getTaxBehaviorSpecifies whether theamountincludes taxes. Iftax_behavior=inclusive, then the amount includes taxes.One of exclusive, orinclusive.
- 
getTaxCodeThe tax code ID used for this resource.
- 
getTypeIfreversal, this line item reverses an earlier transaction.One of reversal, ortransaction.
- 
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.transaction_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 in the transaction.
- 
setReversalIftype=reversal, contains information about what was reversed.
- 
setTaxBehaviorSpecifies whether theamountincludes taxes. Iftax_behavior=inclusive, then the amount includes taxes.One of exclusive, orinclusive.
- 
setTaxCodeThe tax code ID used for this resource.
- 
setTypeIfreversal, this line item reverses an earlier transaction.One of reversal, ortransaction.
- 
equals
- 
canEqual
- 
hashCodepublic int hashCode()
- 
getIdUnique identifier for the object.
 
-