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 Summary
Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod -
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON, INTERNAL_GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier 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.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, setResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
ConnectionToken
public ConnectionToken()
-
-
Method Details
-
create
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
-
create
public 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
-
create
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
-
create
public 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
-
getLocation
The 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. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
terminal.connection_token. -
getSecret
Your application should pass this token to the Stripe Terminal SDK. -
setLocation
The 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. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
terminal.connection_token. -
setSecret
Your application should pass this token to the Stripe Terminal SDK. -
equals
-
canEqual
-
hashCode
public int hashCode()
-