Package com.stripe.param.checkout
Class SessionCreateParams.CustomField.Builder
java.lang.Object
com.stripe.param.checkout.SessionCreateParams.CustomField.Builder
- Enclosing class:
- SessionCreateParams.CustomField
-
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.Configuration fortype=dropdown
fields.Required. String of your choice that your integration can use to reconcile this field.Required. The label for the field, displayed to the customer.Configuration fortype=numeric
fields.setOptional
(Boolean optional) Whether the customer is required to complete the field before completing the Checkout Session.Configuration fortype=text
fields.Required. The type of the field.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setDropdown
public SessionCreateParams.CustomField.Builder setDropdown(SessionCreateParams.CustomField.Dropdown dropdown) Configuration fortype=dropdown
fields. -
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.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.extraParams
for the field documentation. -
setKey
Required. String of your choice that your integration can use to reconcile this field. Must be unique to this field, alphanumeric, and up to 200 characters. -
setLabel
public SessionCreateParams.CustomField.Builder setLabel(SessionCreateParams.CustomField.Label label) Required. The label for the field, displayed to the customer. -
setNumeric
public SessionCreateParams.CustomField.Builder setNumeric(SessionCreateParams.CustomField.Numeric numeric) Configuration fortype=numeric
fields. -
setOptional
Whether the customer is required to complete the field before completing the Checkout Session. Defaults tofalse
. -
setText
Configuration fortype=text
fields. -
setType
Required. The type of the field.
-