public static class Plan.Tier extends StripeObject
PRETTY_PRINT_GSON
Constructor and Description |
---|
Tier() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
java.lang.Long |
getFlatAmount()
Price for the entire tier.
|
java.math.BigDecimal |
getFlatAmountDecimal()
Same as
flat_amount , but contains a decimal value with at most 12 decimal places. |
java.lang.Long |
getUnitAmount()
Per unit price for units relevant to the tier.
|
java.math.BigDecimal |
getUnitAmountDecimal()
Same as
unit_amount , but contains a decimal value with at most 12 decimal places. |
java.lang.Long |
getUpTo()
Up to and including to this quantity will be contained in the tier.
|
int |
hashCode() |
void |
setFlatAmount(java.lang.Long flatAmount)
Price for the entire tier.
|
void |
setFlatAmountDecimal(java.math.BigDecimal flatAmountDecimal)
Same as
flat_amount , but contains a decimal value with at most 12 decimal places. |
void |
setUnitAmount(java.lang.Long unitAmount)
Per unit price for units relevant to the tier.
|
void |
setUnitAmountDecimal(java.math.BigDecimal unitAmountDecimal)
Same as
unit_amount , but contains a decimal value with at most 12 decimal places. |
void |
setUpTo(java.lang.Long upTo)
Up to and including to this quantity will be contained in the tier.
|
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
public java.lang.Long getFlatAmount()
public java.math.BigDecimal getFlatAmountDecimal()
flat_amount
, but contains a decimal value with at most 12 decimal places.public java.lang.Long getUnitAmount()
public java.math.BigDecimal getUnitAmountDecimal()
unit_amount
, but contains a decimal value with at most 12 decimal places.public java.lang.Long getUpTo()
public void setFlatAmount(java.lang.Long flatAmount)
public void setFlatAmountDecimal(java.math.BigDecimal flatAmountDecimal)
flat_amount
, but contains a decimal value with at most 12 decimal places.public void setUnitAmount(java.lang.Long unitAmount)
public void setUnitAmountDecimal(java.math.BigDecimal unitAmountDecimal)
unit_amount
, but contains a decimal value with at most 12 decimal places.public void setUpTo(java.lang.Long upTo)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode
in class java.lang.Object