Package com.stripe.model
Class Plan.Tier
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.Plan.Tier
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- Plan
-
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Price for the entire tier.Same asflat_amount
, but contains a decimal value with at most 12 decimal places.Per unit price for units relevant to the tier.Same asunit_amount
, but contains a decimal value with at most 12 decimal places.getUpTo()
Up to and including to this quantity will be contained in the tier.int
hashCode()
void
setFlatAmount
(Long flatAmount) Price for the entire tier.void
setFlatAmountDecimal
(BigDecimal flatAmountDecimal) Same asflat_amount
, but contains a decimal value with at most 12 decimal places.void
setUnitAmount
(Long unitAmount) Per unit price for units relevant to the tier.void
setUnitAmountDecimal
(BigDecimal unitAmountDecimal) Same asunit_amount
, but contains a decimal value with at most 12 decimal places.void
Up to and including to this quantity will be contained in the tier.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
Tier
public Tier()
-
-
Method Details
-
getFlatAmount
Price for the entire tier. -
getFlatAmountDecimal
Same asflat_amount
, but contains a decimal value with at most 12 decimal places. -
getUnitAmount
Per unit price for units relevant to the tier. -
getUnitAmountDecimal
Same asunit_amount
, but contains a decimal value with at most 12 decimal places. -
getUpTo
Up to and including to this quantity will be contained in the tier. -
setFlatAmount
Price for the entire tier. -
setFlatAmountDecimal
Same asflat_amount
, but contains a decimal value with at most 12 decimal places. -
setUnitAmount
Per unit price for units relevant to the tier. -
setUnitAmountDecimal
Same asunit_amount
, but contains a decimal value with at most 12 decimal places. -
setUpTo
Up to and including to this quantity will be contained in the tier. -
equals
-
canEqual
-
hashCode
public int hashCode()
-