Package com.stripe.model
Class Price.Tier
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.Price.Tier
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- Price
-
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanPrice 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.inthashCode()voidsetFlatAmount(Long flatAmount) Price for the entire tier.voidsetFlatAmountDecimal(BigDecimal flatAmountDecimal) Same asflat_amount, but contains a decimal value with at most 12 decimal places.voidsetUnitAmount(Long unitAmount) Per unit price for units relevant to the tier.voidsetUnitAmountDecimal(BigDecimal unitAmountDecimal) Same asunit_amount, but contains a decimal value with at most 12 decimal places.voidUp to and including to this quantity will be contained in the tier.Methods inherited from class com.stripe.model.StripeObject
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()
-