{
"createdAt": "2023-08-24T02:20:23.572Z",
"updatedAt": "2025-11-28T07:30:43.278Z",
"id": "606e6c4ba7ee733a716f1dd9",
"code": "AGENTCASHOUTFORPHONE",
"name": "Agent cash out for Non-Customer",
"fullName": "Agent cash out for Non-Customer",
"desc": "",
"channels": [
"mobile"
],
"related": [
"agent"
],
"version": 2,
"action": "redeemCashcode",
"transType": "normal",
"isRefund": false,
"billerService": "none",
"actionParams": {},
"actions": [
{
"params": [
{
"name": "ServiceId",
"source": "transaction",
"field": "SERVICEID",
"defaultValue": ""
},
{
"name": "TransRefId",
"source": "transaction",
"field": "TRANSREFID",
"defaultValue": ""
},
{
"name": "ServiceName",
"source": "service",
"field": "name",
"defaultValue": ""
},
{
"name": "TransOrigAmount",
"source": "transaction",
"field": "AMOUNT",
"defaultValue": ""
},
{
"name": "TransAmount",
"source": "transaction",
"field": "TOTALAMOUNT",
"defaultValue": ""
},
{
"name": "Currency",
"source": "transaction",
"field": "CURRENCY",
"defaultValue": ""
},
{
"name": "TransType",
"source": "",
"field": "",
"defaultValue": "normal"
},
{
"name": "SenderId",
"source": "transaction",
"field": "SENDERID",
"defaultValue": ""
},
{
"name": "SenderSettlement",
"source": "transaction",
"field": "SENDERSETTLEMENT",
"defaultValue": ""
},
{
"name": "SenderSettlementDates",
"source": "transaction",
"field": "SENDERSETTLEMENTDATES",
"defaultValue": ""
},
{
"name": "ReceiverId",
"source": "transaction",
"field": "RECEIVERID",
"defaultValue": ""
},
{
"name": "ReceiverSettlement",
"source": "transaction",
"field": "RECEIVERSETTLEMENT",
"defaultValue": ""
},
{
"name": "ReceiverSettlementDates",
"source": "transaction",
"field": "RECEIVERSETTLEMENTDATES",
"defaultValue": ""
},
{
"name": "AggregatorId",
"source": "transaction",
"field": "AGGREGATORID",
"defaultValue": ""
},
{
"name": "feeCalculating",
"source": "transaction",
"field": "FEECALCULATING",
"defaultValue": ""
},
{
"name": "distributionCalculating",
"source": "transaction",
"field": "DISTRIBUTIONCALCULATING",
"defaultValue": ""
},
{
"name": "discountCalculating",
"source": "transaction",
"field": "DISCOUNTCALCULATING",
"defaultValue": ""
},
{
"name": "TotalDebitFee",
"source": "transaction",
"field": "DEBITFEE",
"defaultValue": ""
},
{
"name": "TotalCreditFee",
"source": "transaction",
"field": "CREDITFEE",
"defaultValue": ""
},
{
"name": "TotalDebitTax",
"source": "transaction",
"field": "DEBITTAX",
"defaultValue": ""
},
{
"name": "TotalCreditTax",
"source": "transaction",
"field": "CREDITTAX",
"defaultValue": ""
},
{
"name": "TotalDebitDiscount",
"source": "transaction",
"field": "TOTALDEBITDISCOUNT",
"defaultValue": ""
},
{
"name": "TotalCreditDiscount",
"source": "transaction",
"field": "TOTALCREDITDISCOUNT",
"defaultValue": ""
},
{
"name": "BillerDiscountAmount",
"source": "transaction",
"field": "DISCOUNTAMOUNT",
"defaultValue": ""
},
{
"name": "TotalDebitTax",
"source": "transaction",
"field": "DEBITTAX",
"defaultValue": ""
},
{
"name": "TotalCreditTax",
"source": "transaction",
"field": "CREDITTAX",
"defaultValue": ""
},
{
"name": "taxCalculating",
"source": "transaction",
"field": "TAXCALCULATING",
"defaultValue": ""
}
],
"valueToSet": [],
"output": [
{
"name": "glSteps",
"source": "metadata",
"field": "data.journalEntry.glSteps",
"defaultValue": "",
"mapToTransaction": "transStepLog.3.glPostingLog"
}
],
"error": [
{
"code": "errorCode",
"value": "0",
"mapping": "0",
"message": "Success"
},
{
"code": "errorCode",
"value": "default",
"mapping": "9101",
"message": "GL Posting get failedx"
}
],
"selects": [],
"actionCode": "glposting",
"entryPoint": "model:transdefinition",
"method": "performTransaction",
"type": "glposting",
"entryConditions": "errorCode == 0",
"required": true,
"hasEnquiry": true,
"name": "GL Posting",
"r": 0,
"viewConfiguration": {
"x": 465,
"y": 65,
"r": 50,
"inputConnectors": [
{
"name": ""
}
],
"outputConnectors": [
{
"name": ""
}
]
},
"nextActions": [
"2"
],
"actionId": "1"
},
{
"params": [
{
"name": "TRANSREFID",
"source": "transaction",
"field": "TRANSREFID",
"defaultValue": ""
},
{
"name": "PIN",
"source": "transaction",
"field": "TRANSBODY.PIN",
"defaultValue": ""
},
{
"name": "BENEFICIARYPHONE",
"source": "transaction",
"field": "TRANSBODY.BENEFICIARYPHONE",
"defaultValue": ""
},
{
"name": "BENEFICIARYNRIC",
"source": "transaction",
"field": "TRANSBODY.BENEFICIARYNRIC",
"defaultValue": ""
},
{
"name": "DEPOSITORPHONE",
"source": "transaction",
"field": "TRANSBODY.DEPOSITORPHONE",
"defaultValue": ""
},
{
"name": "CASHCODE",
"source": "transaction",
"field": "TRANSBODY.CASHCODE",
"defaultValue": ""
},
{
"name": "AMOUNT",
"source": "transaction",
"field": "AMOUNT",
"defaultValue": ""
},
{
"name": "CURRENCY",
"source": "transaction",
"field": "CURRENCY",
"defaultValue": ""
},
{
"name": "OFFERID",
"source": "transaction",
"field": "OFFERID",
"defaultValue": ""
},
{
"name": "TRANSID",
"source": "transaction",
"field": "TRANSBODY.TRANSID",
"defaultValue": ""
},
{
"name": "CASHCODETYPE",
"source": "transaction",
"field": "TRANSBODY.CASHCODETYPE",
"defaultValue": ""
},
{
"name": "BENEFICIARYKYCTYPE",
"source": "transaction",
"field": "TRANSBODY.BENEFICIARYKYCTYPE",
"defaultValue": ""
}
],
"valueToSet": [],
"output": [
{
"name": "cashcode",
"source": "metadata",
"field": "cashcode",
"defaultValue": "",
"mapToTransaction": "outputMessage.cashcode.cashcode"
}
],
"error": [
{
"code": "err",
"value": "0",
"mapping": "0",
"message": "Success"
},
{
"code": "err",
"value": "default",
"mapping": "9100",
"message": "Something went wrong"
}
],
"selects": [],
"actionCode": "redeemcashcode",
"entryPoint": "model:cashcode",
"method": "updateRedeemedCashcode",
"type": "internal_ingression",
"entryConditions": "errorCode == 0",
"required": true,
"hasEnquiry": 0,
"name": "Redeem Cc",
"r": 0,
"viewConfiguration": {
"x": 628,
"y": 76,
"r": 50,
"inputConnectors": [
{
"name": ""
}
],
"outputConnectors": [
{
"name": ""
}
]
},
"nextActions": null,
"actionId": "2"
}
],
"startAction": "1",
"confirmation": true,
"status": 1,
"lockedBy": {},
"activatedBy": {
"id": "606bc1d35be128bfe08307b9",
"name": "nhung",
"roles": [
"root"
]
},
"statusChangedAt": "2021-04-08T03:55:53.800Z",
"createdBy": {
"id": "5dc392c8195301738cd1e2bf",
"name": "SYSTEM USER 01",
"roles": [
"root"
]
},
"updatedBy": {
"id": "64edb3fde65ee58241cce1d5",
"name": "SYSTEM USER 08",
"roles": [
"root",
"a"
]
},
"note": "",
"devGrp": 0,
"serviceToRefund": "",
"inputFields": {},
"outputFields": [],
"paymentResult": {
"en": [
{
"name": "Transaction Name",
"value": "name",
"dataType": "text",
"isMapping": true,
"isCopy": false,
"needSecured": false,
"id": "123"
},
{
"name": "Transaction Code",
"value": "code",
"dataType": "text",
"isMapping": true,
"isCopy": true,
"needSecured": false,
"id": "qwqwqsấá"
},
{
"name": "Transaction Status",
"value": "status",
"dataType": "text",
"isMapping": true,
"isCopy": false,
"needSecured": false,
"id": "asassa"
},
{
"name": "Source Money",
"value": "Digital Wallet",
"dataType": "text",
"isMapping": false,
"isCopy": false,
"needSecured": false,
"id": "asas"
},
{
"name": "Time",
"value": "createdAt",
"dataType": "datetime",
"isMapping": true,
"isCopy": false,
"needSecured": false,
"id": "á"
},
{
"name": "Beneficiary Phone",
"value": "beneficiary.number",
"dataType": "number",
"isMapping": true,
"isCopy": false,
"needSecured": false,
"id": "112121"
},
{
"name": "Amount",
"value": "origAmount",
"dataType": "currency",
"isMapping": true,
"isCopy": false,
"needSecured": false,
"id": "asasas"
},
{
"name": "Agent Commission",
"value": "totalDistribution.transAgent.debit + totalDistribution.transAgent.credit",
"dataType": "currency",
"isMapping": true,
"isCopy": false,
"needSecured": false,
"isFormula": true,
"actor": "receiver",
"id": "a"
}
],
"pt": [],
"tet": [],
"vi": []
},
"paymentPreview": {
"en": [],
"pt": [],
"tet": [],
"vi": []
},
"paymentShortResult": {
"en": [],
"pt": [],
"tet": [],
"vi": []
},
"serviceTarget": "",
"actionPriority": "before",
"fieldBuilder": [
{
"order": 1,
"name": "SERVICEID",
"rule": "mapping",
"datatype": "string",
"variable": "SERVICEID",
"source": "parameters"
},
{
"order": 2,
"name": "BENEFICIARYKYCTYPE",
"rule": "mapping",
"datatype": "string",
"variable": "KYCTYPE",
"source": "parameters"
},
{
"order": 3,
"name": "CASHCODE",
"rule": "mapping",
"datatype": "string",
"variable": "CASHCODE",
"source": "parameters"
},
{
"order": 4,
"name": "AMOUNT",
"rule": "mapping",
"datatype": "float",
"variable": "AMOUNT",
"source": "parameters"
},
{
"order": 5,
"name": "CURRENCY",
"rule": "mapping",
"datatype": "string",
"variable": "CURRENCY",
"source": "parameters"
},
{
"order": 6,
"name": "DEPOSITORPHONE",
"rule": "mapping",
"datatype": "string",
"variable": "DEPOSITORPHONE",
"source": "parameters"
},
{
"order": 7,
"name": "BENEFICIARYPHONE",
"rule": "mapping",
"datatype": "string",
"variable": "BENEFICIARYPHONE",
"source": "parameters"
},
{
"order": 8,
"name": "RECEIVERPHONE",
"rule": "mapping",
"datatype": "string",
"variable": "RECEIVERPHONE",
"source": "parameters"
},
{
"order": 9,
"name": "RECEIVERCLIENT",
"rule": "mapping",
"datatype": "string",
"variable": "RECEIVERCLIENT",
"source": "parameters"
},
{
"order": 10,
"name": "DEVICEID",
"rule": "mapping",
"datatype": "string",
"variable": "DEVICEID",
"source": "parameters"
},
{
"order": 11,
"name": "MessageType",
"rule": "mapping",
"datatype": "string",
"variable": "MessageType",
"source": "parameters"
},
{
"order": 12,
"name": "USERID",
"rule": "mapping",
"datatype": "string",
"variable": "id",
"source": "user"
},
{
"order": 13,
"name": "OFFERID",
"rule": "mapping",
"datatype": "string",
"variable": "offer",
"source": "user"
},
{
"order": 14,
"name": "RECEIVERID",
"rule": "query",
"datatype": "string",
"variable": "id",
"source": "receiverPocket",
"query": "queryPocketByPhone(RECEIVERPHONE, RECEIVERCLIENT,CURRENCY)"
},
{
"order": 15,
"name": "BENEFICIARYNRIC",
"rule": "mapping",
"datatype": "string",
"variable": "NRICNUMBER",
"source": "parameters"
},
{
"order": 16,
"name": "CASHCODETYPE",
"rule": "fixed",
"datatype": "string",
"source": "phoneNric",
"query": "",
"errorMsg": ""
},
{
"order": 17,
"name": "ORIGINTRANSREFID",
"rule": "query",
"datatype": "string",
"variable": "transRefId",
"source": "cashcode",
"query": "queryPendingCashcode(CASHCODE, CASHCODETYPE, BENEFICIARYPHONE, AMOUNT, '',BENEFICIARYNRIC,'', DEPOSITORPHONE,BENEFICIARYKYCTYPE)"
},
{
"order": 18,
"name": "FEES",
"rule": "query",
"datatype": "json",
"variable": "fees",
"source": "transaction",
"query": "queryTransaction(ORIGINTRANSREFID)"
},
{
"order": 19,
"name": "DISTRIBUTIONCALCULATING",
"rule": "mapping",
"datatype": "json",
"variable": "distribution",
"source": "transaction"
},
{
"order": 20,
"name": "CLIENT",
"rule": "mapping",
"datatype": "string",
"variable": "client",
"source": "user"
},
{
"order": 21,
"name": "DISCOUNTS",
"rule": "mapping",
"datatype": "json",
"variable": "discounts",
"source": "transaction",
"query": ""
},
{
"order": 22,
"name": "NRICFRONTIMAGE",
"rule": "mapping",
"datatype": "string",
"variable": "NRICFRONTIMAGE",
"source": "parameters"
},
{
"order": 23,
"name": "NRICBACKIMAGE",
"rule": "mapping",
"datatype": "string",
"variable": "NRICBACKIMAGE",
"source": "parameters"
},
{
"order": 24,
"name": "ADDRESS",
"rule": "mapping",
"datatype": "string",
"variable": "ADDRESS",
"source": "parameters"
},
{
"order": 25,
"name": "PORTRAIT",
"rule": "mapping",
"datatype": "string",
"variable": "PORTRAIT",
"source": "parameters"
},
{
"order": 26,
"name": "MESSAGE",
"rule": "mapping",
"datatype": "string",
"variable": "MESSAGE",
"source": "parameters"
},
{
"order": 27,
"name": "RECEIVERNAME",
"rule": "mapping",
"datatype": "string",
"variable": "RECEIVERNAME",
"source": "parameters"
},
{
"order": 28,
"name": "ORIGINSERVICEID",
"rule": "mapping",
"datatype": "string",
"variable": "service",
"source": "transaction",
"query": ""
}
],
"actionResult": [],
"webResult": "",
"typeResult": "dynamic",
"category": "personal",
"amountFormula": {
"senderAmount": "amount",
"receiverAmount": "amount - creditFee"
},
"historyResult": [
{
"dataType": "text",
"isMapping": true,
"isFormula": false,
"needEncrypted": false,
"field": "name",
"value": "name"
},
{
"dataType": "text",
"isMapping": true,
"isFormula": false,
"needEncrypted": false,
"field": "code",
"value": "code"
},
{
"dataType": "datetime",
"isMapping": true,
"isFormula": false,
"needEncrypted": false,
"field": "createdAt",
"value": "createdAt"
},
{
"dataType": "text",
"isMapping": true,
"isFormula": false,
"needEncrypted": false,
"field": "fromValue",
"value": "sender.phone"
},
{
"dataType": "text",
"isMapping": true,
"isFormula": false,
"needEncrypted": false,
"field": "toValue",
"value": "beneficiary.phone"
},
{
"dataType": "currency",
"isMapping": true,
"isFormula": true,
"needEncrypted": false,
"field": "amount",
"value": "origAmount"
},
{
"dataType": "text",
"isMapping": true,
"isFormula": false,
"needEncrypted": false,
"field": "status",
"value": "status"
},
{
"dataType": "object",
"isMapping": true,
"isFormula": false,
"needEncrypted": false,
"field": "beneficiary",
"value": "beneficiary"
},
{
"dataType": "object",
"isMapping": true,
"isFormula": false,
"needEncrypted": false,
"field": "depositor",
"value": "depositor"
}
]
}curl --location --request POST '/admin/service/configAdvance' \
--header 'Authorization: Bearer f41e8fd7-3221-4b36-8dc3-623890b2c078' \
--header 'Accept: application/json' \
--header 'User-Agent: Mozilla/5.0' \
--header 'Referer: https://wallet-admin-vpay-dev2.vinsmartfuture.tech/' \
--header 'Content-Type: application/json;charset=UTF-8' \
--data-raw '{
"createdAt": "2023-08-24T02:20:23.572Z",
"updatedAt": "2025-11-28T07:30:43.278Z",
"id": "606e6c4ba7ee733a716f1dd9",
"code": "AGENTCASHOUTFORPHONE",
"name": "Agent cash out for Non-Customer",
"fullName": "Agent cash out for Non-Customer",
"desc": "",
"channels": [
"mobile"
],
"related": [
"agent"
],
"version": 2,
"action": "redeemCashcode",
"transType": "normal",
"isRefund": false,
"billerService": "none",
"actionParams": {},
"actions": [
{
"params": [
{
"name": "ServiceId",
"source": "transaction",
"field": "SERVICEID",
"defaultValue": ""
},
{
"name": "TransRefId",
"source": "transaction",
"field": "TRANSREFID",
"defaultValue": ""
},
{
"name": "ServiceName",
"source": "service",
"field": "name",
"defaultValue": ""
},
{
"name": "TransOrigAmount",
"source": "transaction",
"field": "AMOUNT",
"defaultValue": ""
},
{
"name": "TransAmount",
"source": "transaction",
"field": "TOTALAMOUNT",
"defaultValue": ""
},
{
"name": "Currency",
"source": "transaction",
"field": "CURRENCY",
"defaultValue": ""
},
{
"name": "TransType",
"source": "",
"field": "",
"defaultValue": "normal"
},
{
"name": "SenderId",
"source": "transaction",
"field": "SENDERID",
"defaultValue": ""
},
{
"name": "SenderSettlement",
"source": "transaction",
"field": "SENDERSETTLEMENT",
"defaultValue": ""
},
{
"name": "SenderSettlementDates",
"source": "transaction",
"field": "SENDERSETTLEMENTDATES",
"defaultValue": ""
},
{
"name": "ReceiverId",
"source": "transaction",
"field": "RECEIVERID",
"defaultValue": ""
},
{
"name": "ReceiverSettlement",
"source": "transaction",
"field": "RECEIVERSETTLEMENT",
"defaultValue": ""
},
{
"name": "ReceiverSettlementDates",
"source": "transaction",
"field": "RECEIVERSETTLEMENTDATES",
"defaultValue": ""
},
{
"name": "AggregatorId",
"source": "transaction",
"field": "AGGREGATORID",
"defaultValue": ""
},
{
"name": "feeCalculating",
"source": "transaction",
"field": "FEECALCULATING",
"defaultValue": ""
},
{
"name": "distributionCalculating",
"source": "transaction",
"field": "DISTRIBUTIONCALCULATING",
"defaultValue": ""
},
{
"name": "discountCalculating",
"source": "transaction",
"field": "DISCOUNTCALCULATING",
"defaultValue": ""
},
{
"name": "TotalDebitFee",
"source": "transaction",
"field": "DEBITFEE",
"defaultValue": ""
},
{
"name": "TotalCreditFee",
"source": "transaction",
"field": "CREDITFEE",
"defaultValue": ""
},
{
"name": "TotalDebitTax",
"source": "transaction",
"field": "DEBITTAX",
"defaultValue": ""
},
{
"name": "TotalCreditTax",
"source": "transaction",
"field": "CREDITTAX",
"defaultValue": ""
},
{
"name": "TotalDebitDiscount",
"source": "transaction",
"field": "TOTALDEBITDISCOUNT",
"defaultValue": ""
},
{
"name": "TotalCreditDiscount",
"source": "transaction",
"field": "TOTALCREDITDISCOUNT",
"defaultValue": ""
},
{
"name": "BillerDiscountAmount",
"source": "transaction",
"field": "DISCOUNTAMOUNT",
"defaultValue": ""
},
{
"name": "TotalDebitTax",
"source": "transaction",
"field": "DEBITTAX",
"defaultValue": ""
},
{
"name": "TotalCreditTax",
"source": "transaction",
"field": "CREDITTAX",
"defaultValue": ""
},
{
"name": "taxCalculating",
"source": "transaction",
"field": "TAXCALCULATING",
"defaultValue": ""
}
],
"valueToSet": [],
"output": [
{
"name": "glSteps",
"source": "metadata",
"field": "data.journalEntry.glSteps",
"defaultValue": "",
"mapToTransaction": "transStepLog.3.glPostingLog"
}
],
"error": [
{
"code": "errorCode",
"value": "0",
"mapping": "0",
"message": "Success"
},
{
"code": "errorCode",
"value": "default",
"mapping": "9101",
"message": "GL Posting get failedx"
}
],
"selects": [],
"actionCode": "glposting",
"entryPoint": "model:transdefinition",
"method": "performTransaction",
"type": "glposting",
"entryConditions": "errorCode == 0",
"required": true,
"hasEnquiry": true,
"name": "GL Posting",
"r": 0,
"viewConfiguration": {
"x": 465,
"y": 65,
"r": 50,
"inputConnectors": [
{
"name": ""
}
],
"outputConnectors": [
{
"name": ""
}
]
},
"nextActions": [
"2"
],
"actionId": "1"
},
{
"params": [
{
"name": "TRANSREFID",
"source": "transaction",
"field": "TRANSREFID",
"defaultValue": ""
},
{
"name": "PIN",
"source": "transaction",
"field": "TRANSBODY.PIN",
"defaultValue": ""
},
{
"name": "BENEFICIARYPHONE",
"source": "transaction",
"field": "TRANSBODY.BENEFICIARYPHONE",
"defaultValue": ""
},
{
"name": "BENEFICIARYNRIC",
"source": "transaction",
"field": "TRANSBODY.BENEFICIARYNRIC",
"defaultValue": ""
},
{
"name": "DEPOSITORPHONE",
"source": "transaction",
"field": "TRANSBODY.DEPOSITORPHONE",
"defaultValue": ""
},
{
"name": "CASHCODE",
"source": "transaction",
"field": "TRANSBODY.CASHCODE",
"defaultValue": ""
},
{
"name": "AMOUNT",
"source": "transaction",
"field": "AMOUNT",
"defaultValue": ""
},
{
"name": "CURRENCY",
"source": "transaction",
"field": "CURRENCY",
"defaultValue": ""
},
{
"name": "OFFERID",
"source": "transaction",
"field": "OFFERID",
"defaultValue": ""
},
{
"name": "TRANSID",
"source": "transaction",
"field": "TRANSBODY.TRANSID",
"defaultValue": ""
},
{
"name": "CASHCODETYPE",
"source": "transaction",
"field": "TRANSBODY.CASHCODETYPE",
"defaultValue": ""
},
{
"name": "BENEFICIARYKYCTYPE",
"source": "transaction",
"field": "TRANSBODY.BENEFICIARYKYCTYPE",
"defaultValue": ""
}
],
"valueToSet": [],
"output": [
{
"name": "cashcode",
"source": "metadata",
"field": "cashcode",
"defaultValue": "",
"mapToTransaction": "outputMessage.cashcode.cashcode"
}
],
"error": [
{
"code": "err",
"value": "0",
"mapping": "0",
"message": "Success"
},
{
"code": "err",
"value": "default",
"mapping": "9100",
"message": "Something went wrong"
}
],
"selects": [],
"actionCode": "redeemcashcode",
"entryPoint": "model:cashcode",
"method": "updateRedeemedCashcode",
"type": "internal_ingression",
"entryConditions": "errorCode == 0",
"required": true,
"hasEnquiry": 0,
"name": "Redeem Cc",
"r": 0,
"viewConfiguration": {
"x": 628,
"y": 76,
"r": 50,
"inputConnectors": [
{
"name": ""
}
],
"outputConnectors": [
{
"name": ""
}
]
},
"nextActions": null,
"actionId": "2"
}
],
"startAction": "1",
"confirmation": true,
"status": 1,
"lockedBy": {},
"activatedBy": {
"id": "606bc1d35be128bfe08307b9",
"name": "nhung",
"roles": [
"root"
]
},
"statusChangedAt": "2021-04-08T03:55:53.800Z",
"createdBy": {
"id": "5dc392c8195301738cd1e2bf",
"name": "SYSTEM USER 01",
"roles": [
"root"
]
},
"updatedBy": {
"id": "64edb3fde65ee58241cce1d5",
"name": "SYSTEM USER 08",
"roles": [
"root",
"a"
]
},
"note": "",
"devGrp": 0,
"serviceToRefund": "",
"inputFields": {},
"outputFields": [],
"paymentResult": {
"en": [
{
"name": "Transaction Name",
"value": "name",
"dataType": "text",
"isMapping": true,
"isCopy": false,
"needSecured": false,
"id": "123"
},
{
"name": "Transaction Code",
"value": "code",
"dataType": "text",
"isMapping": true,
"isCopy": true,
"needSecured": false,
"id": "qwqwqsấá"
},
{
"name": "Transaction Status",
"value": "status",
"dataType": "text",
"isMapping": true,
"isCopy": false,
"needSecured": false,
"id": "asassa"
},
{
"name": "Source Money",
"value": "Digital Wallet",
"dataType": "text",
"isMapping": false,
"isCopy": false,
"needSecured": false,
"id": "asas"
},
{
"name": "Time",
"value": "createdAt",
"dataType": "datetime",
"isMapping": true,
"isCopy": false,
"needSecured": false,
"id": "á"
},
{
"name": "Beneficiary Phone",
"value": "beneficiary.number",
"dataType": "number",
"isMapping": true,
"isCopy": false,
"needSecured": false,
"id": "112121"
},
{
"name": "Amount",
"value": "origAmount",
"dataType": "currency",
"isMapping": true,
"isCopy": false,
"needSecured": false,
"id": "asasas"
},
{
"name": "Agent Commission",
"value": "totalDistribution.transAgent.debit + totalDistribution.transAgent.credit",
"dataType": "currency",
"isMapping": true,
"isCopy": false,
"needSecured": false,
"isFormula": true,
"actor": "receiver",
"id": "a"
}
],
"pt": [],
"tet": [],
"vi": []
},
"paymentPreview": {
"en": [],
"pt": [],
"tet": [],
"vi": []
},
"paymentShortResult": {
"en": [],
"pt": [],
"tet": [],
"vi": []
},
"serviceTarget": "",
"actionPriority": "before",
"fieldBuilder": [
{
"order": 1,
"name": "SERVICEID",
"rule": "mapping",
"datatype": "string",
"variable": "SERVICEID",
"source": "parameters"
},
{
"order": 2,
"name": "BENEFICIARYKYCTYPE",
"rule": "mapping",
"datatype": "string",
"variable": "KYCTYPE",
"source": "parameters"
},
{
"order": 3,
"name": "CASHCODE",
"rule": "mapping",
"datatype": "string",
"variable": "CASHCODE",
"source": "parameters"
},
{
"order": 4,
"name": "AMOUNT",
"rule": "mapping",
"datatype": "float",
"variable": "AMOUNT",
"source": "parameters"
},
{
"order": 5,
"name": "CURRENCY",
"rule": "mapping",
"datatype": "string",
"variable": "CURRENCY",
"source": "parameters"
},
{
"order": 6,
"name": "DEPOSITORPHONE",
"rule": "mapping",
"datatype": "string",
"variable": "DEPOSITORPHONE",
"source": "parameters"
},
{
"order": 7,
"name": "BENEFICIARYPHONE",
"rule": "mapping",
"datatype": "string",
"variable": "BENEFICIARYPHONE",
"source": "parameters"
},
{
"order": 8,
"name": "RECEIVERPHONE",
"rule": "mapping",
"datatype": "string",
"variable": "RECEIVERPHONE",
"source": "parameters"
},
{
"order": 9,
"name": "RECEIVERCLIENT",
"rule": "mapping",
"datatype": "string",
"variable": "RECEIVERCLIENT",
"source": "parameters"
},
{
"order": 10,
"name": "DEVICEID",
"rule": "mapping",
"datatype": "string",
"variable": "DEVICEID",
"source": "parameters"
},
{
"order": 11,
"name": "MessageType",
"rule": "mapping",
"datatype": "string",
"variable": "MessageType",
"source": "parameters"
},
{
"order": 12,
"name": "USERID",
"rule": "mapping",
"datatype": "string",
"variable": "id",
"source": "user"
},
{
"order": 13,
"name": "OFFERID",
"rule": "mapping",
"datatype": "string",
"variable": "offer",
"source": "user"
},
{
"order": 14,
"name": "RECEIVERID",
"rule": "query",
"datatype": "string",
"variable": "id",
"source": "receiverPocket",
"query": "queryPocketByPhone(RECEIVERPHONE, RECEIVERCLIENT,CURRENCY)"
},
{
"order": 15,
"name": "BENEFICIARYNRIC",
"rule": "mapping",
"datatype": "string",
"variable": "NRICNUMBER",
"source": "parameters"
},
{
"order": 16,
"name": "CASHCODETYPE",
"rule": "fixed",
"datatype": "string",
"source": "phoneNric",
"query": "",
"errorMsg": ""
},
{
"order": 17,
"name": "ORIGINTRANSREFID",
"rule": "query",
"datatype": "string",
"variable": "transRefId",
"source": "cashcode",
"query": "queryPendingCashcode(CASHCODE, CASHCODETYPE, BENEFICIARYPHONE, AMOUNT, '\'''\'',BENEFICIARYNRIC,'\'''\'', DEPOSITORPHONE,BENEFICIARYKYCTYPE)"
},
{
"order": 18,
"name": "FEES",
"rule": "query",
"datatype": "json",
"variable": "fees",
"source": "transaction",
"query": "queryTransaction(ORIGINTRANSREFID)"
},
{
"order": 19,
"name": "DISTRIBUTIONCALCULATING",
"rule": "mapping",
"datatype": "json",
"variable": "distribution",
"source": "transaction"
},
{
"order": 20,
"name": "CLIENT",
"rule": "mapping",
"datatype": "string",
"variable": "client",
"source": "user"
},
{
"order": 21,
"name": "DISCOUNTS",
"rule": "mapping",
"datatype": "json",
"variable": "discounts",
"source": "transaction",
"query": ""
},
{
"order": 22,
"name": "NRICFRONTIMAGE",
"rule": "mapping",
"datatype": "string",
"variable": "NRICFRONTIMAGE",
"source": "parameters"
},
{
"order": 23,
"name": "NRICBACKIMAGE",
"rule": "mapping",
"datatype": "string",
"variable": "NRICBACKIMAGE",
"source": "parameters"
},
{
"order": 24,
"name": "ADDRESS",
"rule": "mapping",
"datatype": "string",
"variable": "ADDRESS",
"source": "parameters"
},
{
"order": 25,
"name": "PORTRAIT",
"rule": "mapping",
"datatype": "string",
"variable": "PORTRAIT",
"source": "parameters"
},
{
"order": 26,
"name": "MESSAGE",
"rule": "mapping",
"datatype": "string",
"variable": "MESSAGE",
"source": "parameters"
},
{
"order": 27,
"name": "RECEIVERNAME",
"rule": "mapping",
"datatype": "string",
"variable": "RECEIVERNAME",
"source": "parameters"
},
{
"order": 28,
"name": "ORIGINSERVICEID",
"rule": "mapping",
"datatype": "string",
"variable": "service",
"source": "transaction",
"query": ""
}
],
"actionResult": [],
"webResult": "",
"typeResult": "dynamic",
"category": "personal",
"amountFormula": {
"senderAmount": "amount",
"receiverAmount": "amount - creditFee"
},
"historyResult": [
{
"dataType": "text",
"isMapping": true,
"isFormula": false,
"needEncrypted": false,
"field": "name",
"value": "name"
},
{
"dataType": "text",
"isMapping": true,
"isFormula": false,
"needEncrypted": false,
"field": "code",
"value": "code"
},
{
"dataType": "datetime",
"isMapping": true,
"isFormula": false,
"needEncrypted": false,
"field": "createdAt",
"value": "createdAt"
},
{
"dataType": "text",
"isMapping": true,
"isFormula": false,
"needEncrypted": false,
"field": "fromValue",
"value": "sender.phone"
},
{
"dataType": "text",
"isMapping": true,
"isFormula": false,
"needEncrypted": false,
"field": "toValue",
"value": "beneficiary.phone"
},
{
"dataType": "currency",
"isMapping": true,
"isFormula": true,
"needEncrypted": false,
"field": "amount",
"value": "origAmount"
},
{
"dataType": "text",
"isMapping": true,
"isFormula": false,
"needEncrypted": false,
"field": "status",
"value": "status"
},
{
"dataType": "object",
"isMapping": true,
"isFormula": false,
"needEncrypted": false,
"field": "beneficiary",
"value": "beneficiary"
},
{
"dataType": "object",
"isMapping": true,
"isFormula": false,
"needEncrypted": false,
"field": "depositor",
"value": "depositor"
}
]
}'