Interface TransferCartTokenEncoder
-
- All Known Implementing Classes:
JWTTransferCartTokenEncoder
public interface TransferCartTokenEncoderAn interface used for encoding transfer cart tokens.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TransferCartTokenencode(TransferCartToken transferCartToken)Encodes a token from theTransferCartTokenand should return the same object with `token` property containing the encoded token string.
-
-
-
Method Detail
-
encode
TransferCartToken encode(TransferCartToken transferCartToken) throws TransferCartTokenEncoderException
Encodes a token from theTransferCartTokenand 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
-
-