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.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 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
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 PaymentLinkCreateParams.CustomField.Builder setLabel(PaymentLinkCreateParams.CustomField.Label label) Required. The label for the field, displayed to the customer. -
setNumeric
public PaymentLinkCreateParams.CustomField.Builder setNumeric(PaymentLinkCreateParams.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
public PaymentLinkCreateParams.CustomField.Builder setText(PaymentLinkCreateParams.CustomField.Text text) Configuration fortype=text
fields. -
setType
public PaymentLinkCreateParams.CustomField.Builder setType(PaymentLinkCreateParams.CustomField.Type type) Required. The type of the field.
-