Interface TransferCartTokenEncoder
- All Known Implementing Classes:
JWTTransferCartTokenEncoder
public interface TransferCartTokenEncoder
An interface used for encoding transfer cart tokens.
-
Method Summary
Modifier and TypeMethodDescriptionencode
(TransferCartToken transferCartToken) Encodes a token from theTransferCartToken
and should return the same object with `token` property containing the encoded token string.
-
Method Details
-
encode
TransferCartToken encode(TransferCartToken transferCartToken) throws TransferCartTokenEncoderException Encodes a token from theTransferCartToken
and should return the same object with `token` property containing the encoded token string.- Parameters:
transferCartToken
- the transfer cart token without an encoded token string- Returns:
- the transfer cart token with an encoded token string
- Throws:
TransferCartTokenEncoderException
- when it fails to encode the token
-