Package com.stripe.model
Class TaxRate.FlatAmount
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.TaxRate.FlatAmount
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- TaxRate
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
being
null`. This field exposes the amount and currency of the flat tax rate.-
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 the tax when therate_type
isflat_amount
.Three-letter ISO currency code, in lowercase.int
hashCode()
void
Amount of the tax when therate_type
isflat_amount
.void
setCurrency
(String currency) Three-letter ISO currency code, in lowercase.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
FlatAmount
public FlatAmount()
-
-
Method Details
-
getAmount
Amount of the tax when therate_type
isflat_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
Three-letter ISO currency code, in lowercase. -
setAmount
Amount of the tax when therate_type
isflat_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
Three-letter ISO currency code, in lowercase. -
equals
-
canEqual
-
hashCode
public int hashCode()
-