Class LineItem.Tax

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.LineItem.Tax
All Implemented Interfaces:
StripeObjectInterface
Enclosing class:
LineItem

public static class LineItem.Tax extends StripeObject
For more details about Tax, please refer to the API Reference.
  • Constructor Details

    • Tax

      public Tax()
  • Method Details

    • getAmount

      public Long getAmount()
      Amount of tax applied for this rate.
    • getRate

      public TaxRate getRate()
      Tax rates can be applied to invoices, subscriptions and Checkout Sessions to collect tax.

      Related guide: Tax rates

    • getTaxabilityReason

      public String 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, or zero_rated.

    • getTaxableAmount

      public Long getTaxableAmount()
      The amount on which tax is calculated, in cents (or local equivalent).
    • setAmount

      public void setAmount(Long amount)
      Amount of tax applied for this rate.
    • setRate

      public void setRate(TaxRate rate)
      Tax rates can be applied to invoices, subscriptions and Checkout Sessions to collect tax.

      Related guide: Tax rates

    • setTaxabilityReason

      public void setTaxabilityReason(String taxabilityReason)
      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, or zero_rated.

    • setTaxableAmount

      public void setTaxableAmount(Long taxableAmount)
      The amount on which tax is calculated, in cents (or local equivalent).
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object