call(action, args)
This method calls one of the available FeeReversalHelperFunctions actions and passes arguments to that action.
public Object call(String action, Map<String, Object> args)
Type: String
The action to call. The value must be one of the following:
- getFeeReversalAttributes — Fetches the list of Service Process attributes for the Fee Reversal request.
- callCreateCaseApi — Creates a new Case and a related Service Process record with the transaction data.
Type: Map<String, Object>
The first three keys must be input, output, and options. The required content for each depends on the action:
-
getFeeReversalAttributes
- String caseId — Id of the Case created using the Fee Reversal OmniScript.
-
callCreateCaseApi
- Map<String,Object>
Type: Map<String, Object>
The return values of the corresponding action.
To use this class in an Integration Procedure, specify the class in the Remote Class property, the action in the Remote Method property, and the arguments in the Additional Input property.
Input and output JSON examples for some of the actions are as follows.
Input format:
Output format:
Input format:
Output format: