Class SubscriptionItemUpdateParams.PriceData

  • Enclosing class:

    public static class SubscriptionItemUpdateParams.PriceData
    extends java.lang.Object
    Usage threshold that triggers the subscription to advance to a new billing period.
    • Method Detail

      • getExtraParams

        public java.util.Map<java.lang.String,​java.lang.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.
      • getProduct

        public java.lang.Object getProduct()
        The ID of the product that this price will belong to.
      • getTaxBehavior

        public SubscriptionItemUpdateParams.PriceData.TaxBehavior getTaxBehavior()
        Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of inclusive, exclusive, or unspecified. Once specified as either inclusive or exclusive, it cannot be changed.
      • getUnitAmount

        public java.lang.Long getUnitAmount()
        A positive integer in %s (or 0 for a free price) representing how much to charge.
      • getUnitAmountDecimal

        public java.lang.Object getUnitAmountDecimal()
        Same as unit_amount, but accepts a decimal value in %s with at most 12 decimal places. Only one of unit_amount and unit_amount_decimal can be set.