Class QuoteCreateParams.Line.Action.AddDiscount

java.lang.Object
com.stripe.param.QuoteCreateParams.Line.Action.AddDiscount
Enclosing class:
QuoteCreateParams.Line.Action

public static class QuoteCreateParams.Line.Action.AddDiscount extends Object
  • Method Details

    • builder

    • getCoupon

      public String getCoupon()
      The coupon code to redeem.
    • getDiscount

      public String getDiscount()
      An ID of an existing discount for a coupon that was already redeemed.
    • getDiscountEnd

      Details to determine how long the discount should be applied for.
    • 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.
    • getIndex

      public Long getIndex()
      The index, starting at 0, at which to position the new discount. When not supplied, Stripe defaults to appending the discount to the end of the discounts array.