Class QuoteUpdateParams.Line.Action.SetItem

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

public static class QuoteUpdateParams.Line.Action.SetItem extends Object
An ID of an existing promotion code to replace the discounts array with.
  • 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 Object 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.
    • 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