Blame view

config_partner.json 2.37 KB
50ac5707   Nattapon   initial commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
  "partner": [
    {
      "partnerCode": "0001",
      "partnerName": "KTC",
      "request": {
        "protocol": "https",
        "host": "10.137.19.81:30033",
        "url": "/ktc/point/transferPoint",
        "certificate": "/src/data/portal/public.cer",
        "method": "POST",
        "command": "transferIn",
        "ContentType": "application/json",
        "header": "sessionid=$x-session-id, appId=$x-app-id, Content-Type=application/json",
        "body": "@pointIdList=$@pointId, customerId=$userIdData, transfer.transferFrom=$tran.pointIdFrom, transfer.transferTo=$tran.pointIdTo, transfer.pointTransfer=?tran.pointTransfer, createdAt=?createdAt, updatedAt=now()"
      },
      "response": {
        "bodyValidation": "pushRefId=*",
        "headerValidation": "statusCode=200"
      }
    },
    {
      "partnerCode": "0002",
      "partnerName": "AIS",
      "request": {
        "protocol": "http",
        "host": "10.137.19.81:30033",
        "url": "/v1/customers/customerCharacteristic/spwCustomerAccounts.json",
        "certificate": "",
        "method": "POST",
        "command": "CustomeAccounts",
        "ContentType": "application/json",
        "header": "sessionid=$x-session-id ",
        "body": "customerId=$userIdData, transfer.transferFrom=$pointIdFrom, transfer.transferTo=$pointIdTo, transfer.pointTransfer=$pointTransfer"
      },
      "response": {
        "bodyValidation": "resultCode=20000",
        "headerValidation": "statusCode=200"
      }
    },
    {
      "partnerCode": "0003",
      "partnerName": "SCB",
      "request": {
        "protocol": "http",
        "host": "10.137.19.81:30033",
        "url": "/mockOneSiamMoblieServiceSoap",
        "certificate": "",
        "method": "POST",
        "command": "transferIn",
        "ContentType": "text/xml",
        "header": "sessionid=$x-session-id",
        "body": "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:tem=\"http://tempuri.org/\"><soapenv:Header/><soapenv:Body><tem:SearchCustomer><tem:SystemName>$appName.name</tem:SystemName><tem:Username>$userName</tem:Username><tem:Password>$password</tem:Password><tem:CitizenID>?citizenID</tem:CitizenID></tem:SearchCustomer></soapenv:Body></soapenv:Envelope>"
      },
      "response": {
        "bodyValidation": "<tem:STATUSCODE>0</tem:STATUSCODE>",
        "headerValidation": "statusCode=200"
      }
    }
  ]
}