Package com.stripe.param.checkout
Class SessionCreateParams.LineItem.AdjustableQuantity.Builder
java.lang.Object
com.stripe.param.checkout.SessionCreateParams.LineItem.AdjustableQuantity.Builder
- Enclosing class:
- SessionCreateParams.LineItem.AdjustableQuantity
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finalize and obtain parameter instance from this builder.putAllExtraParam
(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.setEnabled
(Boolean enabled) Required. Set to true if the quantity can be adjusted to any non-negative integer.setMaximum
(Long maximum) The maximum quantity the customer can purchase for the Checkout Session.setMinimum
(Long minimum)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setEnabled
Required. Set to true if the quantity can be adjusted to any non-negative integer. By default customers will be able to remove the line item by setting the quantity to 0. -
putExtraParam
public SessionCreateParams.LineItem.AdjustableQuantity.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. SeeSessionCreateParams.LineItem.AdjustableQuantity.extraParams
for the field documentation. -
putAllExtraParam
public SessionCreateParams.LineItem.AdjustableQuantity.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. SeeSessionCreateParams.LineItem.AdjustableQuantity.extraParams
for the field documentation. -
setMaximum
The maximum quantity the customer can purchase for the Checkout Session. By default this value is 99. You can specify a value up to 999999. -
setMinimum
-