Package com.stripe.model
Class PaymentLink.CustomField
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.PaymentLink.CustomField
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- PaymentLink
Determines the position and visibility of the payment method reuse agreement in the UI.
When set to
auto
, Stripe's defaults will be used.
When set to hidden
, the payment method reuse agreement text will always be
hidden in the UI.
One of auto
, or hidden
.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
The value for this option, not displayed to the customer, used by your integration to reconcile the option selected by the customer.static class
static class
-
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
getKey()
String of your choice that your integration can use to reconcile this field.getLabel()
Whether the customer is required to complete the field before completing the Checkout Session.getText()
getType()
The type of the field.int
hashCode()
void
setDropdown
(PaymentLink.CustomField.Dropdown dropdown) void
String of your choice that your integration can use to reconcile this field.void
void
void
setOptional
(Boolean optional) Whether the customer is required to complete the field before completing the Checkout Session.void
void
The type of the field.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
CustomField
public CustomField()
-
-
Method Details
-
getDropdown
-
getKey
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. -
getLabel
-
getNumeric
-
getOptional
Whether the customer is required to complete the field before completing the Checkout Session. Defaults tofalse
. -
getText
-
getType
The type of the field.One of
dropdown
,numeric
, ortext
. -
setDropdown
-
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
-
setNumeric
-
setOptional
Whether the customer is required to complete the field before completing the Checkout Session. Defaults tofalse
. -
setText
-
setType
The type of the field.One of
dropdown
,numeric
, ortext
. -
equals
-
canEqual
-
hashCode
public int hashCode()
-