Class TransferCartToken

  • All Implemented Interfaces:
    Serializable

    public class TransferCartToken
    extends Object
    implements Serializable
    The response object used to provide details of the cart transfer token and the token itself.
    See Also:
    Serialized Form
    • Constructor Detail

      • TransferCartToken

        public TransferCartToken()
    • Method Detail

      • getToken

        public String getToken()
        The token string that is used to authorize that a request has access to transfer the given cart.
      • getExpirationTime

        public Instant getExpirationTime()
        The expiration time of the transfer cart token in UTC. This is used to inform clients of when to expect the token to be expired.
      • getAuthor

        public String getAuthor()
        The username of the author associated with the transfer cart token.
      • getCartId

        public String getCartId()
        The ID of the cart the token is authorized to transfer.
      • setToken

        public void setToken​(String token)
        The token string that is used to authorize that a request has access to transfer the given cart.
      • setExpirationTime

        public void setExpirationTime​(Instant expirationTime)
        The expiration time of the transfer cart token in UTC. This is used to inform clients of when to expect the token to be expired.
      • setAuthor

        public void setAuthor​(String author)
        The username of the author associated with the transfer cart token.
      • setCartId

        public void setCartId​(String cartId)
        The ID of the cart the token is authorized to transfer.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object