Class QuoteCreateParams.Line.Action.SetItem.Builder

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

public static class QuoteCreateParams.Line.Action.SetItem.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      Finalize and obtain parameter instance from this builder.
    • addDiscount

      Add an element to `discounts` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See QuoteCreateParams.Line.Action.SetItem.discounts for the field documentation.
    • addAllDiscount

      Add all elements to `discounts` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See QuoteCreateParams.Line.Action.SetItem.discounts for the field documentation.
    • putExtraParam

      public QuoteCreateParams.Line.Action.SetItem.Builder putExtraParam(String key, Object value)
      Add a key/value pair 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.SetItem.extraParams for the field documentation.
    • putAllExtraParam

      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.SetItem.extraParams for the field documentation.
    • putMetadata

      Add a key/value pair to `metadata` 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.SetItem.metadata for the field documentation.
    • putAllMetadata

      Add all map key/value pairs to `metadata` 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.SetItem.metadata for the field documentation.
    • setPrice

      Required. The ID of the price object.
    • setQuantity

      public QuoteCreateParams.Line.Action.SetItem.Builder setQuantity(Long quantity)
      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.
    • addTaxRate

      Add an element to `taxRates` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See QuoteCreateParams.Line.Action.SetItem.taxRates for the field documentation.
    • addAllTaxRate

      public QuoteCreateParams.Line.Action.SetItem.Builder addAllTaxRate(List<String> elements)
      Add all elements to `taxRates` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See QuoteCreateParams.Line.Action.SetItem.taxRates for the field documentation.
    • setTrial

      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.