Package com.stripe.model.terminal
Class ConnectionToken
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.terminal.ConnectionToken
- All Implemented Interfaces:
- StripeActiveObject,- StripeObjectInterface
A Connection Token is used by the Stripe Terminal SDK to connect to a reader.
 
Related guide: Fleet management
- 
Nested Class SummaryNested classes/interfaces inherited from class com.stripe.net.ApiResourceApiResource.RequestMethod
- 
Field SummaryFields inherited from class com.stripe.net.ApiResourceCHARSET, GSON, INTERNAL_GSONFields inherited from class com.stripe.model.StripeObjectPRETTY_PRINT_GSON
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanstatic ConnectionTokencreate(ConnectionTokenCreateParams params) To connect to a reader the Stripe Terminal SDK needs to retrieve a short-lived connection token from Stripe, proxied through your server.static ConnectionTokencreate(ConnectionTokenCreateParams params, RequestOptions options) To connect to a reader the Stripe Terminal SDK needs to retrieve a short-lived connection token from Stripe, proxied through your server.static ConnectionTokenTo connect to a reader the Stripe Terminal SDK needs to retrieve a short-lived connection token from Stripe, proxied through your server.static ConnectionTokencreate(Map<String, Object> params, RequestOptions options) To connect to a reader the Stripe Terminal SDK needs to retrieve a short-lived connection token from Stripe, proxied through your server.booleanThe id of the location that this connection token is scoped to.String representing the object's type.Your application should pass this token to the Stripe Terminal SDK.inthashCode()voidsetLocation(String location) The id of the location that this connection token is scoped to.voidString representing the object's type.voidYour application should pass this token to the Stripe Terminal SDK.Methods inherited from class com.stripe.net.ApiResourcecheckNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, setResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObjectdeserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stripe.model.StripeActiveObjecttrySetResponseGetter
- 
Constructor Details- 
ConnectionTokenpublic ConnectionToken()
 
- 
- 
Method Details- 
createTo connect to a reader the Stripe Terminal SDK needs to retrieve a short-lived connection token from Stripe, proxied through your server. On your backend, add an endpoint that creates and returns a connection token.- Throws:
- StripeException
 
- 
createpublic static ConnectionToken create(Map<String, Object> params, RequestOptions options) throws StripeExceptionTo connect to a reader the Stripe Terminal SDK needs to retrieve a short-lived connection token from Stripe, proxied through your server. On your backend, add an endpoint that creates and returns a connection token.- Throws:
- StripeException
 
- 
createTo connect to a reader the Stripe Terminal SDK needs to retrieve a short-lived connection token from Stripe, proxied through your server. On your backend, add an endpoint that creates and returns a connection token.- Throws:
- StripeException
 
- 
createpublic static ConnectionToken create(ConnectionTokenCreateParams params, RequestOptions options) throws StripeException To connect to a reader the Stripe Terminal SDK needs to retrieve a short-lived connection token from Stripe, proxied through your server. On your backend, add an endpoint that creates and returns a connection token.- Throws:
- StripeException
 
- 
getLocationThe id of the location that this connection token is scoped to. Note that location scoping only applies to internet-connected readers. For more details, see the docs on scoping connection tokens.
- 
getObjectString representing the object's type. Objects of the same type share the same value.Equal to terminal.connection_token.
- 
getSecretYour application should pass this token to the Stripe Terminal SDK.
- 
setLocationThe id of the location that this connection token is scoped to. Note that location scoping only applies to internet-connected readers. For more details, see the docs on scoping connection tokens.
- 
setObjectString representing the object's type. Objects of the same type share the same value.Equal to terminal.connection_token.
- 
setSecretYour application should pass this token to the Stripe Terminal SDK.
- 
equals
- 
canEqual
- 
hashCodepublic int hashCode()
 
-