Class Plan.Tier

All Implemented Interfaces:
StripeObjectInterface
Enclosing class:
Plan

public static class Plan.Tier extends StripeObject
  • Constructor Details

    • Tier

      public Tier()
  • Method Details

    • getFlatAmount

      public Long getFlatAmount()
      Price for the entire tier.
    • getFlatAmountDecimal

      public BigDecimal getFlatAmountDecimal()
      Same as flat_amount, but contains a decimal value with at most 12 decimal places.
    • getUnitAmount

      public Long getUnitAmount()
      Per unit price for units relevant to the tier.
    • getUnitAmountDecimal

      public BigDecimal getUnitAmountDecimal()
      Same as unit_amount, but contains a decimal value with at most 12 decimal places.
    • getUpTo

      public Long getUpTo()
      Up to and including to this quantity will be contained in the tier.
    • setFlatAmount

      public void setFlatAmount(Long flatAmount)
      Price for the entire tier.
    • setFlatAmountDecimal

      public void setFlatAmountDecimal(BigDecimal flatAmountDecimal)
      Same as flat_amount, but contains a decimal value with at most 12 decimal places.
    • setUnitAmount

      public void setUnitAmount(Long unitAmount)
      Per unit price for units relevant to the tier.
    • setUnitAmountDecimal

      public void setUnitAmountDecimal(BigDecimal unitAmountDecimal)
      Same as unit_amount, but contains a decimal value with at most 12 decimal places.
    • setUpTo

      public void setUpTo(Long upTo)
      Up to and including to this quantity will be contained in the tier.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object