2 - processTransferConfirm Request.txt

Rayvandy Gabbytian , November 13, 2018 16:47

Download (4.73 KB)

 
1
function processTransferConfirm() {
2
    path = "bii_RestfulRib/service/emoneyServices/processTransferConfirm";
3
    var input = {
4
        method: 'post',
5
        returnedContentType: 'json',
6
        path: path,
7
        body: {
8
            contentType: 'application/json; charset=UTF-8',
9
            content: JSON.stringify({
10
                "fromAccountCurrency":"IDR", //selected currency inside fromAccountMap
11
                "fromAccount":"0", //key of fromAccountMap
12
                "fromAccountMap":fromAccountMap,
13
               
14
                "toAmount":"50000",
15
                
16
                //open
17
//                "productId":"810128", //Key of productNameMap
18
//                "toAccountNo":"085966444100",
19
//                "productNameMap": JSON.stringify({
20
//                    "0": {
21
//                        "display": "GoPay - Favourite GoPay dari SGD - 0859664441",
22
//                        "mobileNumber": null,
23
//                        "nickname": null,
24
//                        "payeeCode": "108000810128",
25
//                        "payeeName": "GoPay",
26
//                        "toAccountNo": "0859664441",
27
//                        "voucherType": null
28
//                     },
29
//                     "1": {
30
//                        "display": "GoPay - Gopay Kris1 - 085966444100",
31
//                        "mobileNumber": null,
32
//                        "nickname": null,
33
//                        "payeeCode": "108000810128",
34
//                        "payeeName": "GoPay",
35
//                        "toAccountNo": "085966444100",
36
//                        "voucherType": null
37
//                     }
38
//                  }),
39
                
40
                //favourite
41
                "transferType":"registered", //Key of productNameMap
42
                "productId":"2", //Key of productNameMap
43
                "productNameMap": JSON.stringify({
44
                    "0": {
45
                        "display": "GoPay - Favourite GoPay dari SGD - 0859664441",
46
                        "mobileNumber": null,
47
                        "nickname": null,
48
                        "payeeCode": "108000810128",
49
                        "payeeName": "GoPay",
50
                        "toAccountNo": "0859664441",
51
                        "voucherType": null
52
                     },
53
                     "1": {
54
                        "display": "GoPay - Gopay Kris1 - 085966444100",
55
                        "mobileNumber": null,
56
                        "nickname": null,
57
                        "payeeCode": "108000810128",
58
                        "payeeName": "GoPay",
59
                        "toAccountNo": "085966444100",
60
                        "voucherType": null
61
                     },
62
                     "2": {
63
                        "display": "OVO - Fav OVO Test Basuki - 085333444456",
64
                        "mobileNumber": null,
65
                        "nickname": null,
66
                        "payeeCode": "119000812277",
67
                        "payeeName": "OVO",
68
                        "toAccountNo": "085333444456",
69
                        "voucherType": null
70
                     }
71
                  }),
72
                
73
                //Common
74
                "userId":"1391",
75
                "locale":"in",
76
                "sessionId":"20150323192520025619",
77
                "serviceInfoBean":JSON.stringify({ //from previous service
78
                    "charges": null,
79
                    "denominator": "0",
80
                    "futureTransactionFlag": true,
81
                    "mainNote1": null,
82
                    "mainNote2": null,
83
                    "mainNote3": null,
84
                    "mainNote4": null,
85
                    "mainNote5": null,
86
                    "mainNote6": null,
87
                    "maxLimit": "0",
88
                    "minLimit": "0",
89
                    "minimumSmsAmount": "0",
90
                    "offlineMessage": null,
91
                    "operationEndTime": null,
92
                    "operationHour": true,
93
                    "operationStartTime": null,
94
                    "rewardBase": "0",
95
                    "rewardMultiplier": "0.00",
96
                    "serviceInfoCode": "MEMOP",
97
                    "serviceInfoName": "Open E-Money",
98
                    "serviceType": null,
99
                    "si": true,
100
                    "smsCharges": "0",
101
                    "smsNote1": null,
102
                    "smsNote2": null,
103
                    "smsNote3": null,
104
                    "smsNote4": null,
105
                    "smsNote5": null,
106
                    "smsServiceBit": 0,
107
                    "status": "0",
108
                    "tableLimit": "0",
109
                    "tacRequired": false,
110
                    "weekend": false
111
                 }),
112
                
113
            })
114
        }
115
    };
116
    return WL.Server.invokeHttp(input);
117
}