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
public static class Price.Tier extends StripeObject
-
-
Field Summary
-
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
-
Constructor Summary
Constructors Constructor Description Tier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.LonggetFlatAmount()Price for the entire tier.java.math.BigDecimalgetFlatAmountDecimal()Same asflat_amount, but contains a decimal value with at most 12 decimal places.java.lang.LonggetUnitAmount()Per unit price for units relevant to the tier.java.math.BigDecimalgetUnitAmountDecimal()Same asunit_amount, but contains a decimal value with at most 12 decimal places.java.lang.LonggetUpTo()Up to and including to this quantity will be contained in the tier.inthashCode()voidsetFlatAmount(java.lang.Long flatAmount)Price for the entire tier.voidsetFlatAmountDecimal(java.math.BigDecimal flatAmountDecimal)Same asflat_amount, but contains a decimal value with at most 12 decimal places.voidsetUnitAmount(java.lang.Long unitAmount)Per unit price for units relevant to the tier.voidsetUnitAmountDecimal(java.math.BigDecimal unitAmountDecimal)Same asunit_amount, but contains a decimal value with at most 12 decimal places.voidsetUpTo(java.lang.Long upTo)Up 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
-
-
-
-
Method Detail
-
getFlatAmount
public java.lang.Long getFlatAmount()
Price for the entire tier.
-
getFlatAmountDecimal
public java.math.BigDecimal getFlatAmountDecimal()
Same asflat_amount, but contains a decimal value with at most 12 decimal places.
-
getUnitAmount
public java.lang.Long getUnitAmount()
Per unit price for units relevant to the tier.
-
getUnitAmountDecimal
public java.math.BigDecimal getUnitAmountDecimal()
Same asunit_amount, but contains a decimal value with at most 12 decimal places.
-
getUpTo
public java.lang.Long getUpTo()
Up to and including to this quantity will be contained in the tier.
-
setFlatAmount
public void setFlatAmount(java.lang.Long flatAmount)
Price for the entire tier.
-
setFlatAmountDecimal
public void setFlatAmountDecimal(java.math.BigDecimal flatAmountDecimal)
Same asflat_amount, but contains a decimal value with at most 12 decimal places.
-
setUnitAmount
public void setUnitAmount(java.lang.Long unitAmount)
Per unit price for units relevant to the tier.
-
setUnitAmountDecimal
public void setUnitAmountDecimal(java.math.BigDecimal unitAmountDecimal)
Same asunit_amount, but contains a decimal value with at most 12 decimal places.
-
setUpTo
public void setUpTo(java.lang.Long upTo)
Up to and including to this quantity will be contained in the tier.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-