Class TaxRate.FlatAmount

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.TaxRate.FlatAmount
All Implemented Interfaces:
StripeObjectInterface
Enclosing class:
TaxRate

public static class TaxRate.FlatAmount extends StripeObject
The amount of the tax rate when the rate_type`` is flat_amount. Tax rates with rate_typepercentagecan vary based on the transaction, resulting in this field beingnull`. This field exposes the amount and currency of the flat tax rate.
  • Constructor Details

    • FlatAmount

      public FlatAmount()
  • Method Details

    • getAmount

      public Long getAmount()
      Amount of the tax when the rate_type is flat_amount. This positive integer represents how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
    • getCurrency

      public String getCurrency()
      Three-letter ISO currency code, in lowercase.
    • setAmount

      public void setAmount(Long amount)
      Amount of the tax when the rate_type is flat_amount. This positive integer represents how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
    • setCurrency

      public void setCurrency(String currency)
      Three-letter ISO currency code, in lowercase.
    • 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