Package com.stripe.model
Class LineItem.Tax
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.LineItem.Tax
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- LineItem
For more details about Tax, 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 boolean
boolean
Amount of tax applied for this rate.getRate()
The reasoning behind this tax, for example, if the product is tax exempt.The amount on which tax is calculated, in cents (or local equivalent).int
hashCode()
void
Amount of tax applied for this rate.void
void
setTaxabilityReason
(String taxabilityReason) The reasoning behind this tax, for example, if the product is tax exempt.void
setTaxableAmount
(Long taxableAmount) The amount on which tax is calculated, in cents (or local equivalent).Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
Tax
public Tax()
-
-
Method Details
-
getAmount
Amount of tax applied for this rate. -
getRate
Tax rates can be applied to invoices, subscriptions and Checkout Sessions to collect tax.Related guide: Tax rates
-
getTaxabilityReason
The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported.One of
customer_exempt
,not_collecting
,not_subject_to_tax
,not_supported
,portion_product_exempt
,portion_reduced_rated
,portion_standard_rated
,product_exempt
,product_exempt_holiday
,proportionally_rated
,reduced_rated
,reverse_charge
,standard_rated
,taxable_basis_reduced
, orzero_rated
. -
getTaxableAmount
The amount on which tax is calculated, in cents (or local equivalent). -
setAmount
Amount of tax applied for this rate. -
setRate
Tax rates can be applied to invoices, subscriptions and Checkout Sessions to collect tax.Related guide: Tax rates
-
setTaxabilityReason
The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported.One of
customer_exempt
,not_collecting
,not_subject_to_tax
,not_supported
,portion_product_exempt
,portion_reduced_rated
,portion_standard_rated
,product_exempt
,product_exempt_holiday
,proportionally_rated
,reduced_rated
,reverse_charge
,standard_rated
,taxable_basis_reduced
, orzero_rated
. -
setTaxableAmount
The amount on which tax is calculated, in cents (or local equivalent). -
equals
-
canEqual
-
hashCode
public int hashCode()
-