Package com.stripe.param.checkout
Class SessionCreateParams.CustomField.Dropdown.Builder
java.lang.Object
com.stripe.param.checkout.SessionCreateParams.CustomField.Dropdown.Builder
- Enclosing class:
- SessionCreateParams.CustomField.Dropdown
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdd all elements to `options` list.Add an element to `options` list.build()
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.setDefaultValue
(String defaultValue) The value that will pre-fill the field on the payment page.Must match avalue
in theoptions
array.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setDefaultValue
The value that will pre-fill the field on the payment page.Must match avalue
in theoptions
array. -
putExtraParam
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.CustomField.Dropdown.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. SeeSessionCreateParams.CustomField.Dropdown.extraParams
for the field documentation. -
addOption
public SessionCreateParams.CustomField.Dropdown.Builder addOption(SessionCreateParams.CustomField.Dropdown.Option element) Add an element to `options` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSessionCreateParams.CustomField.Dropdown.options
for the field documentation. -
addAllOption
public SessionCreateParams.CustomField.Dropdown.Builder addAllOption(List<SessionCreateParams.CustomField.Dropdown.Option> elements) Add all elements to `options` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSessionCreateParams.CustomField.Dropdown.options
for the field documentation.
-