Class DefaultMerchantTransactionCodeGenerator
- java.lang.Object
-
- de.hybris.platform.payment.strategy.impl.DefaultMerchantTransactionCodeGenerator
-
- All Implemented Interfaces:
TransactionCodeGenerator
public class DefaultMerchantTransactionCodeGenerator extends java.lang.Object implements TransactionCodeGenerator
This class is used byDefaultPaymentServiceImplto provide the merchant transaction code based on the specified order.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDELIMITER
-
Constructor Summary
Constructors Constructor Description DefaultMerchantTransactionCodeGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgenerateCode(java.lang.String base)this implementation generates a code of the following pattern- NOTE: if 'base' is only will be returned. voidsetKeyGenerator(KeyGenerator keyGenerator)
-
-
-
Field Detail
-
DELIMITER
public static final java.lang.String DELIMITER
- See Also:
- Constant Field Values
-
-
Method Detail
-
setKeyGenerator
public void setKeyGenerator(KeyGenerator keyGenerator)
-
generateCode
public java.lang.String generateCode(java.lang.String base)
this implementation generates a code of the following pattern- NOTE: if 'base' is only will be returned. - Specified by:
generateCodein interfaceTransactionCodeGenerator- Parameters:
base- the leading part of the generated code- Returns:
- the merchant transaction code
-
-