Class SubscriptionItemUpdateParams.Discount

java.lang.Object
com.stripe.param.SubscriptionItemUpdateParams.Discount
Enclosing class:
SubscriptionItemUpdateParams

public static class SubscriptionItemUpdateParams.Discount extends Object
Required. Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 monetary threshold)
  • Method Details

    • builder

    • getCoupon

      public Object getCoupon()
      ID of the coupon to create a new discount for.
    • getDiscount

      public Object getDiscount()
      ID of an existing discount on the object (or one of its ancestors) to reuse.
    • 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.
    • getPromotionCode

      public Object getPromotionCode()
      ID of the promotion code to create a new discount for.