Class ConnectionToken

    • Constructor Detail

      • ConnectionToken

        public ConnectionToken()
    • 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
      • 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:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object