Package com.stripe.model.checkout
Class Session.CustomField
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.checkout.Session.CustomField
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- Session
-
Nested Class Summary
Nested ClassesModifier 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Configuration fortype=dropdown
fields.getKey()
String of your choice that your integration can use to reconcile this field.getLabel()
Configuration fortype=numeric
fields.Whether the customer is required to complete the field before completing the Checkout Session.getText()
Configuration fortype=text
fields.getType()
The type of the field.int
hashCode()
void
setDropdown
(Session.CustomField.Dropdown dropdown) Configuration fortype=dropdown
fields.void
String of your choice that your integration can use to reconcile this field.void
void
setNumeric
(Session.CustomField.Numeric numeric) Configuration fortype=numeric
fields.void
setOptional
(Boolean optional) Whether the customer is required to complete the field before completing the Checkout Session.void
Configuration fortype=text
fields.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
Configuration fortype=dropdown
fields. -
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
Configuration fortype=numeric
fields. -
getOptional
Whether the customer is required to complete the field before completing the Checkout Session. Defaults tofalse
. -
getText
Configuration fortype=text
fields. -
getType
The type of the field.One of
dropdown
,numeric
, ortext
. -
setDropdown
Configuration fortype=dropdown
fields. -
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
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
The type of the field.One of
dropdown
,numeric
, ortext
. -
equals
-
canEqual
-
hashCode
public int hashCode()
-