Package com.stripe.param
Class PaymentLinkCreateParams.CustomField.Builder
java.lang.Object
com.stripe.param.PaymentLinkCreateParams.CustomField.Builder
- Enclosing class:
- PaymentLinkCreateParams.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.String of your choice that your integration can use to reconcile this field.The label for the field, displayed to the customer.setOptional
(Boolean optional) Whether the customer is required to complete the field before completing the Checkout Session.The type of the field.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setDropdown
public PaymentLinkCreateParams.CustomField.Builder setDropdown(PaymentLinkCreateParams.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. SeePaymentLinkCreateParams.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. SeePaymentLinkCreateParams.CustomField.extraParams
for the field documentation. -
setKey
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 PaymentLinkCreateParams.CustomField.Builder setLabel(PaymentLinkCreateParams.CustomField.Label label) The label for the field, displayed to the customer. -
setOptional
Whether the customer is required to complete the field before completing the Checkout Session. Defaults tofalse
. -
setType
public PaymentLinkCreateParams.CustomField.Builder setType(PaymentLinkCreateParams.CustomField.Type type) The type of the field.
-