Package com.stripe.param.terminal
Class ReaderCollectInputsParams.Input.Builder
java.lang.Object
com.stripe.param.terminal.ReaderCollectInputsParams.Input.Builder
- Enclosing class:
- ReaderCollectInputsParams.Input
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd all elements to `toggles` list.Add an element to `toggles` 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.Required. Customize the text which will be displayed while collecting this inputsetRequired
(Boolean required) Indicate that this input is required, disabling the skip button.Options for theselection
input.Required. The type of input to collect
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setCustomText
public ReaderCollectInputsParams.Input.Builder setCustomText(ReaderCollectInputsParams.Input.CustomText customText) Required. Customize the text which will be displayed while collecting this input -
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. SeeReaderCollectInputsParams.Input.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. SeeReaderCollectInputsParams.Input.extraParams
for the field documentation. -
setRequired
Indicate that this input is required, disabling the skip button. -
setSelection
public ReaderCollectInputsParams.Input.Builder setSelection(ReaderCollectInputsParams.Input.Selection selection) Options for theselection
input. -
addToggle
public ReaderCollectInputsParams.Input.Builder addToggle(ReaderCollectInputsParams.Input.Toggle element) Add an element to `toggles` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeReaderCollectInputsParams.Input.toggles
for the field documentation. -
addAllToggle
public ReaderCollectInputsParams.Input.Builder addAllToggle(List<ReaderCollectInputsParams.Input.Toggle> elements) Add all elements to `toggles` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeReaderCollectInputsParams.Input.toggles
for the field documentation. -
setType
Required. The type of input to collect
-