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:
StripeObjectInterface
public class ConnectionToken extends ApiResource
-
-
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
-
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
-
Constructor Summary
Constructors Constructor Description ConnectionToken()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)static 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 ConnectionTokencreate(java.util.Map<java.lang.String,java.lang.Object> 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(java.util.Map<java.lang.String,java.lang.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.booleanequals(java.lang.Object o)java.lang.StringgetLocation()The id of the location that this connection token is scoped to.java.lang.StringgetObject()String representing the object's type.java.lang.StringgetSecret()Your application should pass this token to the Stripe Terminal SDK.inthashCode()voidsetLocation(java.lang.String location)The id of the location that this connection token is scoped to.voidsetObject(java.lang.String object)String representing the object's type.voidsetSecret(java.lang.String secret)Your application should pass this token to the Stripe Terminal SDK.-
Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
-
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
-
-
-
Method Detail
-
create
public static ConnectionToken create(java.util.Map<java.lang.String,java.lang.Object> params) 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
-
create
public static ConnectionToken create(java.util.Map<java.lang.String,java.lang.Object> 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
-
create
public static ConnectionToken create(ConnectionTokenCreateParams params) 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
-
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
public java.lang.String 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
public java.lang.String getObject()
String representing the object's type. Objects of the same type share the same value.Equal to
terminal.connection_token.
-
getSecret
public java.lang.String getSecret()
Your application should pass this token to the Stripe Terminal SDK.
-
setLocation
public void setLocation(java.lang.String location)
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
public void setObject(java.lang.String object)
String representing the object's type. Objects of the same type share the same value.Equal to
terminal.connection_token.
-
setSecret
public void setSecret(java.lang.String secret)
Your application should pass this token to the Stripe Terminal SDK.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-