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 forSubscriptionAuthorizationCommand. SetINVALIDas subscription id, 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 java.lang.StringINVALIDstatic longREVIEW_AMOUNT
-
Constructor Summary
Constructors Constructor Description SubscriptionAuthorizationMockCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthorizationResultperform(SubscriptionAuthorizationRequest request)perform command for a given request R-
Methods inherited from class de.hybris.platform.payment.commands.impl.GenericMockCommand
genericPerform
-
-
-
-
Field Detail
-
INVALID
public static final java.lang.String INVALID
- See Also:
- Constant Field Values
-
REVIEW_AMOUNT
public static final long REVIEW_AMOUNT
- See Also:
- Constant Field Values
-
-
Method Detail
-
perform
public AuthorizationResult perform(SubscriptionAuthorizationRequest request)
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
-
-