Class RateCreateParams.Tier

java.lang.Object
com.stripe.param.v2.billing.ratecards.RateCreateParams.Tier
Enclosing class:
RateCreateParams

public static class RateCreateParams.Tier extends Object
Required. The unit value for the custom pricing unit, as a string.
  • Method Details

    • builder

      public static RateCreateParams.Tier.Builder builder()
    • getExtraParams

      public Map<String,Object> getExtraParams()
      Map of extra parameters for custom features not available in this client library. The content in this map is not serialized under this field's @SerializedName value. Instead, each key/value pair is serialized as if the key is a root-level field (serialized) name in this param object. Effectively, this map is flattened to its parent instance.
    • getFlatAmount

      public String getFlatAmount()
      Price for the entire tier, represented as a decimal string in minor currency units with at most 12 decimal places.
    • getUnitAmount

      public String getUnitAmount()
      Per-unit price for units included in this tier, represented as a decimal string in minor currency units with at most 12 decimal places.
    • getUpToDecimal

      public String getUpToDecimal()
      Up to and including this quantity will be contained in the tier. Only one of up_to_decimal and up_to_inf may be set.
    • getUpToInf

      public RateCreateParams.Tier.UpToInf getUpToInf()
      No upper bound to this tier. Only one of up_to_decimal and up_to_inf may be set.
    • 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