Get Started
call(action, args)
Custom Triggers
Custom Validation Rules
DPE and Monitor Workflow Services
API End-of-Life Policy
Previous Versions
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:
Type: Map<String, Object>
The first three keys must be input, output, and options. The required content for each depends on the action:
getFeeReversalAttributes
callCreateCaseApi
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:
1{"caseId": "500RM000003rQu1YAE"}Output format:
1{
2 "caseRequestAttr": {
3 "FinancialAccountId": "a0URM0000004OCM2A2",
4 "Transactions": [
5 {
6 "frt_reversal_transaction_description": "Reverse Cheque book charge",
7 "frt_reversal_amount_currency": "USD",
8 "frt_reversal_percentage": 100,
9 "frt_transaction_id": "12",
10 "frt_reversal_error_reason": null,
11 "frt_override_percentage": 80,
12 "frt_reversal_transaction_amount": 40,
13 "groupCorrelationNumber": 1,
14 "frt_transaction_code": "54",
15 "frt_override_amount_currency": "USD",
16 "frt_transaction_posted_date": "2022-11-11T12:53:14.000Z",
17 "frt_fee_type": "Cheque book charge",
18 "override_percentage_formatted": "80.0%",
19 "frt_override_amount": 40,
20 "frt_transaction_amount_currency": "USD",
21 "frt_transaction_description": "Fee charge for Cheque book",
22 "frt_reversal_transaction_posted_date": "2022-11-15T20:20:20.000Z",
23 "reversal_percentage_formatted": "100.0%",
24 "frt_transaction_amount": 50,
25 "frt_reversal_amount": 50,
26 "frt_reversal_transaction_id": "1001116623",
27 "frt_reversal_transaction_amount_currency": null
28 }
29 ]
30 }
31 }Input format:
1{
2 "attributes": {
3 "data": {
4 "financial_account_id_1": {
5 "value": "accountId"
6 },
7 "source_system_id_1": {
8 "value": "100"
9 },
10 "reversal_reason_1": {
11 "value": null
12 },
13 "fee_reversal_transactions_1": {
14 "value": [
15 {
16 "frt_transaction_id_1": "12",
17 "frt_transaction_posted_date_1": "2022-11-11T12:53:14.924Z",
18 "frt_transaction_amount_1": 50,
19 "frt_transaction_amount_currency_1": "USD",
20 "frt_fee_type_1": "Check book charge",
21 "frt_transaction_code_1": "54",
22 "frt_reversal_amount_currency_1": null,
23 "frt_reversal_amount_1": null,
24 "frt_reversal_percentage_1": null,
25 "frt_override_amount_currency_1": null,
26 "frt_override_amount_1": null,
27 "frt_override_percentage_1": null,
28 "frtr_transaction_id_1": null,
29 "frtr_transaction_posted_date_1": null,
30 "frtr_transaction_description_1": null,
31 "frtr_transaction_amount_1": null,
32 "frtr_transaction_amount_currency_1": null,
33 "frtr_error_reason_1": null
34 }
35 ]
36 },
37 "reversal_summary_1": {
38 "value": {
39 "reversal_transaction_status_1": null
40 }
41 }
42 }
43 },
44 "svcCatalogItemDefApiName": "Fee_Reversal_Test_2",
45 "caseInfo": {
46 "data": {
47 "Subject": {
48 "value": "Check book charge reversal"
49 },
50 "Origin": {
51 "value": "Phone"
52 }
53 }
54 }
55}Output format:
1{
2 "svcCatalogRequestId": "946xx000000009hEAA",
3 "caseId": "500xx000000cd69AAA",
4 "caseNumber": "00001032"
5}