Class AuthorizationMockCommand
- java.lang.Object
-
- de.hybris.platform.payment.commands.impl.GenericMockCommand
-
- de.hybris.platform.payment.commands.impl.AuthorizationMockCommand
-
- All Implemented Interfaces:
AuthorizationCommand,Command<AuthorizationRequest,AuthorizationResult>
public class AuthorizationMockCommand extends GenericMockCommand implements AuthorizationCommand
A mockup Implementation forAuthorizationCommand. Set a wrong card expiration date if you need your transaction rejected. Transaction will have set REVIEW state if amount is greater thenREVIEW_AMOUNT. In other cases it will be accepted.
-
-
Field Summary
Fields Modifier and Type Field Description static longREVIEW_AMOUNT
-
Constructor Summary
Constructors Constructor Description AuthorizationMockCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthorizationResultperform(AuthorizationRequest request)perform command for a given request R-
Methods inherited from class de.hybris.platform.payment.commands.impl.GenericMockCommand
genericPerform
-
-
-
-
Field Detail
-
REVIEW_AMOUNT
public static final long REVIEW_AMOUNT
- See Also:
- Constant Field Values
-
-
Method Detail
-
perform
public AuthorizationResult perform(AuthorizationRequest request)
Description copied from interface:Commandperform command for a given request R- Specified by:
performin interfaceCommand<AuthorizationRequest,AuthorizationResult>- Parameters:
request- request to perform- Returns:
- outcome O of command
-
-