Class QuoteCreateParams.Line.Action.SetItem

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

public static class QuoteCreateParams.Line.Action.SetItem extends Object
Add all map key/value pairs to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See QuoteCreateParams.Line.Action.SetDiscount.extraParams for the field documentation.
  • Method Details

    • builder

    • getDiscounts

      If an item with the price already exists, passing this will override the discounts array on the subscription item that matches that price. Otherwise, the items array is cleared and a single new item is added with the supplied discounts.
    • 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.
    • getMetadata

      public Map<String,String> getMetadata()
      If an item with the price already exists, passing this will override the metadata on the subscription item that matches that price. Otherwise, the items array is cleared and a single new item is added with the supplied metadata.
    • getPrice

      public String getPrice()
      Required. The ID of the price object.
    • getQuantity

      public Long getQuantity()
      If an item with the price already exists, passing this will override the quantity on the subscription item that matches that price. Otherwise, the items array is cleared and a single new item is added with the supplied quantity.
    • getTaxRates

      public List<String> getTaxRates()
      If an item with the price already exists, passing this will override the tax_rates array on the subscription item that matches that price. Otherwise, the items array is cleared and a single new item is added with the supplied tax_rates.
    • getTrial

      If an item with the price already exists, passing this will override the trial configuration on the subscription item that matches that price. Otherwise, the items array is cleared and a single new item is added with the supplied trial.