Package com.stripe.param.checkout
Class SessionUpdateParams.LineItem.AdjustableQuantity.Builder
java.lang.Object
com.stripe.param.checkout.SessionUpdateParams.LineItem.AdjustableQuantity.Builder
- Enclosing class:
- SessionUpdateParams.LineItem.AdjustableQuantity
-
Constructor Summary
Constructors -
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 positive 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 positive integer. Setting to false will remove any previously specified constraints on quantity. -
putExtraParam
public SessionUpdateParams.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. SeeSessionUpdateParams.LineItem.AdjustableQuantity.extraParams
for the field documentation. -
putAllExtraParam
public SessionUpdateParams.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. SeeSessionUpdateParams.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
-