Commit 5fdd6d1b0782d4993470066a5692959cf7b1a4ea
1 parent
c8832510
Exists in
master
and in
1 other branch
update mockup for ture
Showing
2 changed files
with
98 additions
and
1 deletions
Show diff stats
app.js
| ... | ... | @@ -397,6 +397,7 @@ app.post('/api/v1/LG-API/notifySubscription', require('./lg').notifySubscription |
| 397 | 397 | app.post('/goapi/profile/assetDetail', require('./ccbs').assetDetail); |
| 398 | 398 | app.post('/goapi/profile/churnscore/offerlist', require('./ccbs').churnScoreOfferList); |
| 399 | 399 | app.get('/goapi/profile/external/customer/usageInfo/:type/:number', require('./ccbs').usageInfo); |
| 400 | +app.post('/v1/OSBCOM/BillingProfileInfo/UsageProfileInfoREST/getAccumulationUOMGroupList/', require('./ccbs').accumulationUOMGroupList); | |
| 400 | 401 | |
| 401 | 402 | app.get('/api/callback', require('./line').callback); |
| 402 | 403 | ... | ... |
ccbs.js
| ... | ... | @@ -149,7 +149,103 @@ module.exports.usageInfo = async (req, res) => { |
| 149 | 149 | "TrueMoneyError": true |
| 150 | 150 | } |
| 151 | 151 | |
| 152 | - res.status(200).send(responseErr) | |
| 152 | + res.status(200).send(response) | |
| 153 | +} | |
| 154 | + | |
| 155 | +module.exports.accumulationUOMGroupList = async (req, res) => { | |
| 156 | + console.log('===== POST accumulationUOMGroupList =====') | |
| 157 | + console.log('url', req.originalUrl); | |
| 158 | + console.log('headers', req.headers); | |
| 159 | + console.log('query', req.query); | |
| 160 | + console.log('params', req.params); | |
| 161 | + console.log('body', req.body); | |
| 162 | + | |
| 163 | + console.log(JSON.stringify(req.body)) | |
| 164 | + | |
| 165 | + let responseErr = { | |
| 166 | + "errorCode" : "OSBbllngA00002", | |
| 167 | + "message" : "Error.", | |
| 168 | + } | |
| 169 | + | |
| 170 | + let response = { | |
| 171 | + "errorCode" : "OSBbllngA00001", | |
| 172 | + "message" : "Success.", | |
| 173 | + "uuid" : "ca517eac-b687-45f2-a921-c5138c44402e", | |
| 174 | + "backendResponseList" : { | |
| 175 | + "backendResponseInfoArray" : [ { | |
| 176 | + "apiName" : "getPrimaryKeyInfoByActiveAndBusinessLine", | |
| 177 | + "errorCode" : "OSBbllngA00001", | |
| 178 | + "message" : "Success.", | |
| 179 | + "system" : "OSB", | |
| 180 | + "url" : "http://172.19.188.21:8080/ESB_Get_CustomerPreferenceInfo/Interfaces/Proxy/CommonPreferenceInfoPS" | |
| 181 | + }, { | |
| 182 | + "apiName" : "getUnbilledCycleInfo", | |
| 183 | + "errorCode" : "OSBbllngA00001", | |
| 184 | + "message" : "Success.", | |
| 185 | + "system" : "OSB", | |
| 186 | + "url" : "http://172.19.188.21:8080/ESB_Get_FinancialManagementInfo/Interfaces/Proxy/BillingInfoPS" | |
| 187 | + }, { | |
| 188 | + "apiName" : "getRatedPerformanceIndicators3", | |
| 189 | + "errorCode" : "OSBbllngA00001", | |
| 190 | + "message" : "Success.", | |
| 191 | + "system" : "CCCSOA", | |
| 192 | + "url" : "http://172.19.136.104/RaterServiceWS/RaterServiceSI" | |
| 193 | + } ] | |
| 194 | + }, | |
| 195 | + "accumulationUOMGroupList" : { | |
| 196 | + "accumulationInfoArray" : [ { | |
| 197 | + "accumulatedCharge" : 135, | |
| 198 | + "accumulatedQuantity" : 191, | |
| 199 | + "accumulatedQuantityFormat" : "03:11:00", | |
| 200 | + "lastCallDate" : "2021-03-21T22:44:19.000+07:00", | |
| 201 | + "serviceType" : "Voice", | |
| 202 | + "system" : "CCBS", | |
| 203 | + "uomCode" : "M" | |
| 204 | + }, { | |
| 205 | + "accumulatedCharge" : 1013.5, | |
| 206 | + "accumulatedQuantity" : 223, | |
| 207 | + "accumulatedQuantityFormat" : null, | |
| 208 | + "lastCallDate" : "2021-03-22T08:06:29.000+07:00", | |
| 209 | + "serviceType" : "SMS", | |
| 210 | + "system" : "CCBS", | |
| 211 | + "uomCode" : "O" | |
| 212 | + }, { | |
| 213 | + "accumulatedCharge" : 546.4, | |
| 214 | + "accumulatedQuantity" : 223, | |
| 215 | + "accumulatedQuantityFormat" : null, | |
| 216 | + "lastCallDate" : "2021-03-22T08:06:29.000+07:00", | |
| 217 | + "serviceType" : "Video", | |
| 218 | + "system" : "CCBS", | |
| 219 | + "uomCode" : "O" | |
| 220 | + }, { | |
| 221 | + "accumulatedCharge" : 785.8, | |
| 222 | + "accumulatedQuantity" : 223, | |
| 223 | + "accumulatedQuantityFormat" : null, | |
| 224 | + "lastCallDate" : "2021-03-22T08:06:29.000+07:00", | |
| 225 | + "serviceType" : "Voice", | |
| 226 | + "system" : "CCBS", | |
| 227 | + "uomCode" : "O" | |
| 228 | + }, { | |
| 229 | + "accumulatedCharge" : 1251.9, | |
| 230 | + "accumulatedQuantity" : 258, | |
| 231 | + "accumulatedQuantityFormat" : null, | |
| 232 | + "lastCallDate" : "2021-03-22T08:06:29.000+07:00", | |
| 233 | + "serviceType" : "Video", | |
| 234 | + "system" : "CCBS", | |
| 235 | + "uomCode" : "M" | |
| 236 | + } ], | |
| 237 | + "size" : 2 | |
| 238 | + }, | |
| 239 | + "cycleInfo" : { | |
| 240 | + "code" : 13, | |
| 241 | + "month" : 4, | |
| 242 | + "year" : 2021 | |
| 243 | + }, | |
| 244 | + "maxLastCallDate" : "2021-03-22T08:06:29.000+07:00", | |
| 245 | + "rerateIndicator" : "N" | |
| 246 | + } | |
| 247 | + | |
| 248 | + res.status(200).send(response) | |
| 153 | 249 | } |
| 154 | 250 | |
| 155 | 251 | ... | ... |