· 4 years ago · May 24, 2021, 09:32 AM
1<service name="getCustomerLastSellPrice" output="outputDto">
2 <informations>
3 <description>get customer last sell price</description>
4 <info-in>
5 <info name="result.header.userLoginId" description="user login id" type="Long" />
6 <info name="result.header.roleLoginId" description="role login id" type="Long" />
7 <info name="result.header.tenantLoginId" description="tenant login id" type="Long" />
8 <info name="result.header.datetime" description="datetime" type="String" />
9
10 <info name="result.payload.apikey" description="api key" type="String" />
11 <info name="result.payload.tsstockid" description="stock id from SOBAT" type="Long" />
12 <info name="result.payload.sasstockid" description="SAS stock id from SAS" type="Long" />
13 <info name="result.payload.tstokoid" description="kode customer / kode toko di SOBAT" type="String" />
14 <info name="result.payload.sasproductcode" description="kode produk di SOBAT" type="String" />
15 <info name="result.payload.sastokoid" description="kode customer / toko di SAS" type="String" />
16 </info-in>
17 <info-out>
18 <info name="result.hargaterakhir" description="harga terakhir" type="Double" />
19 <info name="result.statustokobmk" type="String" description="status toko BMK"/>
20 <info name="result.tanggaltransaksi" type="String" description="tanggal transaksi terakhir"/>
21 <info name="result.errormessage" type="String" description="error message"/>
22 <info name="result.status" type="String" description="status API"/>
23 </info-out>
24 </informations>
25 <mod-dto output="inputForValApiKey">
26 <key name="apiKey" type="String" from="${result.payload.apikey}" />
27 </mod-dto>
28
29 <call-bf output="outputDtoForValApiKeyForSobat" input="${inputForValApiKey}" name="valApiKeyForSobat">
30 <onsuccess />
31 <onerror />
32 </call-bf>
33
34 <mod-dto output="inputForFindCustomerLastSellPrice">
35 <key name="tenantId" type="Long" from="${result.header.tenantLoginId}" />
36 <key name="productCode" type="String" from="${result.payload.sasproductcode}" />
37 <key name="partnerCode" type="String" from="${result.payload.tstokoid}" />
38 </mod-dto>
39 <call-bf output="outputDto" input="${inputForFindCustomerLastSellPrice}" name="getCustomerLastSellPrice">
40 <onsuccess />
41 <onerror />
42 </call-bf>
43 </service>