public class SubscriptionAuthorizationMockCommand extends GenericMockCommand implements SubscriptionAuthorizationCommand
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.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
INVALID |
static long |
REVIEW_AMOUNT |
| Constructor and Description |
|---|
SubscriptionAuthorizationMockCommand() |
| Modifier and Type | Method and Description |
|---|---|
AuthorizationResult |
perform(SubscriptionAuthorizationRequest request)
perform command for a given request R
|
genericPerformpublic static final java.lang.String INVALID
public static final long REVIEW_AMOUNT
public SubscriptionAuthorizationMockCommand()
public AuthorizationResult perform(SubscriptionAuthorizationRequest request)
Commandperform in interface Command<SubscriptionAuthorizationRequest,AuthorizationResult>request - request to performCopyright © 2018 SAP SE. All Rights Reserved.