Class SubscriptionAuthorizationMockCommand
java.lang.Object
de.hybris.platform.payment.commands.impl.GenericMockCommand
de.hybris.platform.payment.commands.impl.SubscriptionAuthorizationMockCommand
- All Implemented Interfaces:
Command<SubscriptionAuthorizationRequest,,AuthorizationResult> SubscriptionAuthorizationCommand
public class SubscriptionAuthorizationMockCommand
extends GenericMockCommand
implements SubscriptionAuthorizationCommand
A mockup Implementation for
SubscriptionAuthorizationCommand. Set
INVALID as subscription id, if you need your transaction rejected.
Transaction will have set REVIEW state if amount is greater then
REVIEW_AMOUNT . In other cases it will be accepted.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionperform(SubscriptionAuthorizationRequest request) perform command for a given request RMethods inherited from class de.hybris.platform.payment.commands.impl.GenericMockCommand
genericPerform
-
Field Details
-
INVALID
- See Also:
-
REVIEW_AMOUNT
public static final long REVIEW_AMOUNT- See Also:
-
-
Constructor Details
-
SubscriptionAuthorizationMockCommand
public SubscriptionAuthorizationMockCommand()
-
-
Method Details
-
perform
Description copied from interface:Commandperform command for a given request R- Specified by:
performin interfaceCommand<SubscriptionAuthorizationRequest,AuthorizationResult> - Parameters:
request- request to perform- Returns:
- outcome O of command
-