Class QuoteCreateParams.LineItem.Builder

java.lang.Object
com.stripe.param.QuoteCreateParams.LineItem.Builder
Enclosing class:
QuoteCreateParams.LineItem

public static class QuoteCreateParams.LineItem.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      Finalize and obtain parameter instance from this builder.
    • putExtraParam

      public QuoteCreateParams.LineItem.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.LineItem.extraParams for the field documentation.
    • putAllExtraParam

      public QuoteCreateParams.LineItem.Builder putAllExtraParam(Map<String,Object> map)
      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.LineItem.extraParams for the field documentation.
    • setPrice

      public QuoteCreateParams.LineItem.Builder setPrice(String price)
      The ID of the price object. One of price or price_data is required.
    • setPriceData

      Data used to generate a new Price object inline. One of price or price_data is required.
    • setQuantity

      public QuoteCreateParams.LineItem.Builder setQuantity(Long quantity)
      The quantity of the line item.
    • addTaxRate

      public QuoteCreateParams.LineItem.Builder addTaxRate(String element)
      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.LineItem.taxRates for the field documentation.
    • addAllTaxRate

      public QuoteCreateParams.LineItem.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.LineItem.taxRates for the field documentation.
    • setTaxRates

      public QuoteCreateParams.LineItem.Builder setTaxRates(EmptyParam taxRates)
      The tax rates which apply to the line item. When set, the default_tax_rates on the quote do not apply to this line item.
    • setTaxRates

      public QuoteCreateParams.LineItem.Builder setTaxRates(List<String> taxRates)
      The tax rates which apply to the line item. When set, the default_tax_rates on the quote do not apply to this line item.