Class SessionCreateParams.LineItem.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • build

      Finalize and obtain parameter instance from this builder.
    • setAdjustableQuantity

      When set, provides configuration for this item’s quantity to be adjusted by the customer during Checkout.
    • addDynamicTaxRate

      public SessionCreateParams.LineItem.Builder addDynamicTaxRate(String element)
      Add an element to `dynamicTaxRates` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See SessionCreateParams.LineItem.dynamicTaxRates for the field documentation.
    • addAllDynamicTaxRate

      public SessionCreateParams.LineItem.Builder addAllDynamicTaxRate(List<String> elements)
      Add all elements to `dynamicTaxRates` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See SessionCreateParams.LineItem.dynamicTaxRates for the field documentation.
    • putExtraParam

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

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

      The ID of the Price or Plan 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 SessionCreateParams.LineItem.Builder setQuantity(Long quantity)
      The quantity of the line item being purchased. Quantity should not be defined when recurring.usage_type=metered.
    • addTaxRate

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

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