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_GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
static ConnectionToken
create
(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 ConnectionToken
create
(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 ConnectionToken
To connect to a reader the Stripe Terminal SDK needs to retrieve a short-lived connection token from Stripe, proxied through your server.static ConnectionToken
create
(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.boolean
The 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.int
hashCode()
void
setLocation
(String location) The id of the location that this connection token is scoped to.void
String representing the object's type.void
Your application should pass this token to the Stripe Terminal SDK.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setResponseGetter, setStripeResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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()
-