Commit f6530acd735315148ff5293d40c1c50b75a0b9c6
1 parent
16ea296b
Exists in
master
and in
1 other branch
update mockup true
Showing
5 changed files
with
1809 additions
and
563 deletions
Show diff stats
app.js
| 1 | const express = require('express') | 1 | const express = require('express') |
| 2 | const app = express() | 2 | const app = express() |
| 3 | 3 | ||
| 4 | -const bodyParser = require('body-parser') | ||
| 5 | - | ||
| 6 | const configPartnerList = require('./config_partner.json'); | 4 | const configPartnerList = require('./config_partner.json'); |
| 7 | const PartnerManager = require('./req_partner_manager'); | 5 | const PartnerManager = require('./req_partner_manager'); |
| 8 | 6 | ||
| @@ -35,23 +33,8 @@ app.use((req, res, next) => { | @@ -35,23 +33,8 @@ app.use((req, res, next) => { | ||
| 35 | next() | 33 | next() |
| 36 | }) | 34 | }) |
| 37 | 35 | ||
| 38 | -app.post('/parse', bodyParser.text('*/*'), async (req, res) => { | ||
| 39 | - console.log('test', req.body) | ||
| 40 | - console.log('test', req.headers) | ||
| 41 | - | ||
| 42 | - try { | ||
| 43 | - JSON.parse(req.body) | ||
| 44 | - } catch (e) { | ||
| 45 | - | ||
| 46 | - } | ||
| 47 | - | ||
| 48 | - res.send(result) | ||
| 49 | - | ||
| 50 | - | ||
| 51 | -}); | ||
| 52 | - | ||
| 53 | -app.use(bodyParser.urlencoded()); | ||
| 54 | -app.use(bodyParser.json()); | 36 | +app.use(express.urlencoded()); |
| 37 | +app.use(express.json()); | ||
| 55 | 38 | ||
| 56 | app.post('/apiRequest', (req, res) => { | 39 | app.post('/apiRequest', (req, res) => { |
| 57 | console.log(req.params.apiRequest) | 40 | console.log(req.params.apiRequest) |
| @@ -399,6 +382,7 @@ app.post('/goapi/profile/churnscore/offerlist', require('./ccbs').churnScoreOffe | @@ -399,6 +382,7 @@ app.post('/goapi/profile/churnscore/offerlist', require('./ccbs').churnScoreOffe | ||
| 399 | app.get('/goapi/profile/external/customer/usageInfo/:type/:number', require('./ccbs').usageInfo); | 382 | app.get('/goapi/profile/external/customer/usageInfo/:type/:number', require('./ccbs').usageInfo); |
| 400 | app.post('/v1/OSBCOM/BillingProfileInfo/UsageProfileInfoREST/getAccumulationUOMGroupList/', require('./ccbs').accumulationUOMGroupList); | 383 | app.post('/v1/OSBCOM/BillingProfileInfo/UsageProfileInfoREST/getAccumulationUOMGroupList/', require('./ccbs').accumulationUOMGroupList); |
| 401 | app.post('/CCBSCommonInfo/MGCommonInfo/getPrimaryKeyListWithoutResourceType', require('./ccbs').getPrimaryKeyListWithoutResourceType); | 384 | app.post('/CCBSCommonInfo/MGCommonInfo/getPrimaryKeyListWithoutResourceType', require('./ccbs').getPrimaryKeyListWithoutResourceType); |
| 385 | +app.post('/v1/get_bundle_profile_list/', require('./ccbs').getBundleProfileList); | ||
| 402 | 386 | ||
| 403 | app.post('/CRMIAsset/getAssetComponentList', require('./crmasset').getAssetComponentList); | 387 | app.post('/CRMIAsset/getAssetComponentList', require('./crmasset').getAssetComponentList); |
| 404 | 388 | ||
| @@ -410,6 +394,10 @@ app.post('/MGOfferInfo/NativeOfferInfo/getCurrentSpendingLimitList', require('./ | @@ -410,6 +394,10 @@ app.post('/MGOfferInfo/NativeOfferInfo/getCurrentSpendingLimitList', require('./ | ||
| 410 | app.post('/MGOfferInfo/NativeOfferInfo/getCurrentCreditLimitAtSubList', require('./int').getCurrentCreditLimitAtSubList); | 394 | app.post('/MGOfferInfo/NativeOfferInfo/getCurrentCreditLimitAtSubList', require('./int').getCurrentCreditLimitAtSubList); |
| 411 | app.post('/MGOfferInfo/NativeOfferInfo/getCurrentSplitChargeInfo', require('./int').getCurrentSplitChargeInfo); | 395 | app.post('/MGOfferInfo/NativeOfferInfo/getCurrentSplitChargeInfo', require('./int').getCurrentSplitChargeInfo); |
| 412 | 396 | ||
| 397 | +app.post('/SBMWSREALCCP3G15/DoServiceFromXML', express.text({type:"*/*"}), require('./sbm').getCheckBalance_SBMWSREALCCP); | ||
| 398 | +app.post('/SBMWSREAL3G15/DoServiceFromXML', express.text({type:"*/*"}), require('./sbm').getCheckBalance_SBMWSREAL); | ||
| 399 | +app.post('/SBMWSDataIRPos/DoServiceFromXML', express.text({type:"*/*"}), require('./sbm').getCheckBalanceIR); | ||
| 400 | + | ||
| 413 | 401 | ||
| 414 | app.get('/api/callback', require('./line').callback); | 402 | app.get('/api/callback', require('./line').callback); |
| 415 | 403 |
ccbs.js
| @@ -274,8 +274,8 @@ module.exports.getPrimaryKeyListWithoutResourceType = async (req, res) => { | @@ -274,8 +274,8 @@ module.exports.getPrimaryKeyListWithoutResourceType = async (req, res) => { | ||
| 274 | console.log('params', req.params); | 274 | console.log('params', req.params); |
| 275 | console.log('body', req.body); | 275 | console.log('body', req.body); |
| 276 | 276 | ||
| 277 | - let responseErr ={ | ||
| 278 | - "getPrimaryKeyListWithoutResourceTypeResponse": { | 277 | + let responseErr = { |
| 278 | + "getPrimaryKeyListWithoutResourceTypeResponse": { | ||
| 279 | "return": { | 279 | "return": { |
| 280 | "uuid": "f9336125-be9e-4c37-80c4-ab97990100cf", | 280 | "uuid": "f9336125-be9e-4c37-80c4-ab97990100cf", |
| 281 | "errorCode": "OSBbllngA10001", | 281 | "errorCode": "OSBbllngA10001", |
| @@ -316,3 +316,173 @@ module.exports.getPrimaryKeyListWithoutResourceType = async (req, res) => { | @@ -316,3 +316,173 @@ module.exports.getPrimaryKeyListWithoutResourceType = async (req, res) => { | ||
| 316 | 316 | ||
| 317 | res.status(200).send(response) | 317 | res.status(200).send(response) |
| 318 | } | 318 | } |
| 319 | + | ||
| 320 | +module.exports.getBundleProfileList = async (req, res) => { | ||
| 321 | + console.log('===== POST getBundleProfileList =====') | ||
| 322 | + console.log('url', req.originalUrl); | ||
| 323 | + console.log('headers', req.headers); | ||
| 324 | + console.log('query', req.query); | ||
| 325 | + console.log('params', req.params); | ||
| 326 | + console.log('body', req.body); | ||
| 327 | + | ||
| 328 | + let responseErr = { | ||
| 329 | + "errorCode": "OSBbllngA00001", | ||
| 330 | + "message": "Success.", | ||
| 331 | + } | ||
| 332 | + | ||
| 333 | + let response = { | ||
| 334 | + "errorCode": "OSBbllngA00001", | ||
| 335 | + "message": "Success.", | ||
| 336 | + "uuid": "855bb4ff-e41e-4d84-86b3-d96853f79630", | ||
| 337 | + "backendResponseList": { | ||
| 338 | + "backendResponseInfoArray": [ | ||
| 339 | + { | ||
| 340 | + "apiName": "getPrimaryKeyInfoByActiveAndBusinessLine", | ||
| 341 | + "errorCode": "OSBbllngA00001", | ||
| 342 | + "message": "Success.", | ||
| 343 | + "system": "OSB", | ||
| 344 | + "url": "http://172.19.231.21:8080/ESB_Get_CustomerPreferenceInfo/Interfaces/Proxy/CommonPreferenceInfoPS" | ||
| 345 | + }, | ||
| 346 | + { | ||
| 347 | + "apiName": "getUnbilledCycleInfo", | ||
| 348 | + "errorCode": "OSBbllngA00001", | ||
| 349 | + "message": "Success.", | ||
| 350 | + "system": "CCCSOA", | ||
| 351 | + "url": "http://172.19.136.104/BillingServiceIntegration/BillingServiceIntegrationSI" | ||
| 352 | + }, | ||
| 353 | + { | ||
| 354 | + "apiName": "getAccumulatedRatedPerformanceIndicators", | ||
| 355 | + "errorCode": "OSBbllngA00001", | ||
| 356 | + "message": "Success.", | ||
| 357 | + "system": "CCCSOA", | ||
| 358 | + "url": "http://172.19.136.104/RaterServiceWS/RaterServiceSI" | ||
| 359 | + }, | ||
| 360 | + { | ||
| 361 | + "apiName": "getOfferDetailList", | ||
| 362 | + "errorCode": "OSBbllngA00001", | ||
| 363 | + "message": "Success.", | ||
| 364 | + "system": "OSB", | ||
| 365 | + "url": "http://172.19.231.21:8080/ESB_Get_CustomerDataInfo/Interfaces/Proxy/OfferReferenceInfoPS" | ||
| 366 | + } | ||
| 367 | + ], | ||
| 368 | + "size": 4 | ||
| 369 | + }, | ||
| 370 | + "billingBundleList": { | ||
| 371 | + "billingBundleInfoArray": [ | ||
| 372 | + { | ||
| 373 | + "cycleInfo": { | ||
| 374 | + "closeDay": 27, | ||
| 375 | + "code": 28, | ||
| 376 | + "endDate": "2021-05-27T00:00:00+07:00", | ||
| 377 | + "month": 5, | ||
| 378 | + "startDate": "2021-04-28T00:00:00+07:00", | ||
| 379 | + "year": 2021 | ||
| 380 | + }, | ||
| 381 | + "effectiveDate": "2019-11-22T03:23:07.000+07:00", | ||
| 382 | + "expirationDate": "2049-12-31T00:00:00.000+07:00", | ||
| 383 | + "initialQuota": "200.00", | ||
| 384 | + "initialQuotaFormat": "03:20:00", | ||
| 385 | + "itemId": "1084229", | ||
| 386 | + "lastCallDate": "2021-04-29T23:32:44.000+07:00", | ||
| 387 | + "offer": { | ||
| 388 | + "code": "11894312", | ||
| 389 | + "engBillDescription": "5G Super Max Speed Plus 1399", | ||
| 390 | + "name": "TMTOPS18", | ||
| 391 | + "socType": "U", | ||
| 392 | + "thaiBillDescription": "5G Super Max Speed Plus 1399" | ||
| 393 | + }, | ||
| 394 | + "offerInstance": 408076475, | ||
| 395 | + "remainingQuota": 178.00, | ||
| 396 | + "remainingQuotaFormat": "02:58:00", | ||
| 397 | + "roundedInitialQuota": 200.00, | ||
| 398 | + "roundedInitialQuotaFormat": "03:20:00", | ||
| 399 | + "serviceType": "Voice", | ||
| 400 | + "uom": { | ||
| 401 | + "code": "M", | ||
| 402 | + "description": "Minutes" | ||
| 403 | + }, | ||
| 404 | + "utilizedQuota": 22.00, | ||
| 405 | + "utilizedQuotaFormat": "00:22:00" | ||
| 406 | + }, | ||
| 407 | + { | ||
| 408 | + "cycleInfo": { | ||
| 409 | + "closeDay": 27, | ||
| 410 | + "code": 28, | ||
| 411 | + "endDate": "2021-05-27T00:00:00+07:00", | ||
| 412 | + "month": 5, | ||
| 413 | + "startDate": "2021-04-28T00:00:00+07:00", | ||
| 414 | + "year": 2021 | ||
| 415 | + }, | ||
| 416 | + "effectiveDate": "2021-02-27T18:55:28.000+07:00", | ||
| 417 | + "expirationDate": "2049-12-31T00:00:00.000+07:00", | ||
| 418 | + "initialQuota": "600.00", | ||
| 419 | + "initialQuotaFormat": "10:00:00", | ||
| 420 | + "itemId": "12941725", | ||
| 421 | + "lastCallDate": "1960-01-01T19:50:00.000+07:00", | ||
| 422 | + "offer": { | ||
| 423 | + "code": "18373529", | ||
| 424 | + "engBillDescription": "5G Super Max Speed Plus 1399", | ||
| 425 | + "name": "SMRTFP29", | ||
| 426 | + "socType": "P", | ||
| 427 | + "thaiBillDescription": "5G Super Max Speed Plus 1399" | ||
| 428 | + }, | ||
| 429 | + "offerInstance": 760422462, | ||
| 430 | + "remainingQuota": 600.00, | ||
| 431 | + "remainingQuotaFormat": "10:00:00", | ||
| 432 | + "roundedInitialQuota": 600.00, | ||
| 433 | + "roundedInitialQuotaFormat": "10:00:00", | ||
| 434 | + "serviceType": "Voice", | ||
| 435 | + "uom": { | ||
| 436 | + "code": "M", | ||
| 437 | + "description": "Minutes" | ||
| 438 | + }, | ||
| 439 | + "utilizedQuota": 0.00, | ||
| 440 | + "utilizedQuotaFormat": "00:00:00" | ||
| 441 | + }, | ||
| 442 | + { | ||
| 443 | + "cycleInfo": { | ||
| 444 | + "closeDay": 27, | ||
| 445 | + "code": 28, | ||
| 446 | + "endDate": "2021-05-27T00:00:00+07:00", | ||
| 447 | + "month": 5, | ||
| 448 | + "startDate": "2021-04-28T00:00:00+07:00", | ||
| 449 | + "year": 2021 | ||
| 450 | + }, | ||
| 451 | + "effectiveDate": "2020-12-17T15:41:12.000+07:00", | ||
| 452 | + "expirationDate": "2049-12-31T00:00:00.000+07:00", | ||
| 453 | + "initialQuota": "80.00", | ||
| 454 | + "initialQuotaFormat": "01:20:00", | ||
| 455 | + "itemId": "13699117", | ||
| 456 | + "lastCallDate": "1960-01-01T19:50:00.000+07:00", | ||
| 457 | + "offer": { | ||
| 458 | + "code": "15835629", | ||
| 459 | + "engBillDescription": "5G Super Max Speed Plus 1399", | ||
| 460 | + "name": "PRORES09", | ||
| 461 | + "socType": "U", | ||
| 462 | + "thaiBillDescription": "5G Super Max Speed Plus 1399" | ||
| 463 | + }, | ||
| 464 | + "offerInstance": 710065476, | ||
| 465 | + "remainingQuota": 80.00, | ||
| 466 | + "remainingQuotaFormat": "01:20:00", | ||
| 467 | + "roundedInitialQuota": 80.00, | ||
| 468 | + "roundedInitialQuotaFormat": "01:20:00", | ||
| 469 | + "serviceType": "Voice", | ||
| 470 | + "uom": { | ||
| 471 | + "code": "M", | ||
| 472 | + "description": "Minutes" | ||
| 473 | + }, | ||
| 474 | + "utilizedQuota": 0.00, | ||
| 475 | + "utilizedQuotaFormat": "00:00:00" | ||
| 476 | + } | ||
| 477 | + ], | ||
| 478 | + "size": 3 | ||
| 479 | + }, | ||
| 480 | + "ccpBucketBalanceList": null, | ||
| 481 | + "classify": "R", | ||
| 482 | + "ouBundleList": null, | ||
| 483 | + "sbmBundleList": null, | ||
| 484 | + "system": "CCBS" | ||
| 485 | +} | ||
| 486 | + | ||
| 487 | + res.status(200).send(response) | ||
| 488 | +} | ||
| 319 | \ No newline at end of file | 489 | \ No newline at end of file |
crmasset.js
| 1 | module.exports.getAssetComponentList = async (req, res) => { | 1 | module.exports.getAssetComponentList = async (req, res) => { |
| 2 | - console.log('===== POST getAssetComponentList =====') | ||
| 3 | - console.log('url', req.originalUrl); | ||
| 4 | - console.log('headers', req.headers); | ||
| 5 | - console.log('query', req.query); | ||
| 6 | - console.log('params', req.params); | ||
| 7 | - console.log('body', req.body); | 2 | + console.log('===== POST getAssetComponentList =====') |
| 3 | + console.log('url', req.originalUrl); | ||
| 4 | + console.log('headers', req.headers); | ||
| 5 | + console.log('query', req.query); | ||
| 6 | + console.log('params', req.params); | ||
| 7 | + console.log('body', req.body); | ||
| 8 | 8 | ||
| 9 | - let responseErr = { | ||
| 10 | - "code": "5000", | ||
| 11 | - "msg": "Error bind json to model" | ||
| 12 | - } | 9 | + let responseErr = { |
| 10 | + "code": "5000", | ||
| 11 | + "msg": "Error bind json to model" | ||
| 12 | + } | ||
| 13 | 13 | ||
| 14 | - let response = { | ||
| 15 | - "code": "0", | ||
| 16 | - "msg": "Success", | ||
| 17 | - "transID": "610d300c-f33c-4aa7-b640-bcddff7d7ddf", | ||
| 18 | - "assetComponentList": [ | ||
| 19 | - { | ||
| 20 | - "assetRowID": "1-7STT9PJ", | ||
| 21 | - "parAssetRowID": "1-6XIP5UU", | ||
| 22 | - "rootAssetRowID": "1-6XIP5UU", | ||
| 23 | - "assetNo": "CDC1392733125643171516804", | ||
| 24 | - "partNum": "CD_12564317", | ||
| 25 | - "offerCode": "BSP014", | ||
| 26 | - "offerName": "BSP014-Advance payment-Advance payment", | ||
| 27 | - "productRowID": "1-H2Y-65", | ||
| 28 | - "productCategory": "External", | ||
| 29 | - "productName": "12564317-BSP014", | ||
| 30 | - "productType": "Discount", | ||
| 31 | - "productLine": "True Mobile", | ||
| 32 | - "effectiveDate": "2020-04-21T18:40:55.000+0700", | ||
| 33 | - "expiryDate": "2020-09-06T00:00:00.000+0700", | ||
| 34 | - "status": "Inactive", | ||
| 35 | - "offerType": "Discount", | ||
| 36 | - "chargePeriod": "Monthly" | ||
| 37 | - }, | ||
| 38 | - { | ||
| 39 | - "assetRowID": "1-7KISY7T", | ||
| 40 | - "parAssetRowID": "1-6XIP5UU", | ||
| 41 | - "rootAssetRowID": "1-6XIP5UU", | ||
| 42 | - "assetNo": "COC1392733134135251488290", | ||
| 43 | - "partNum": "CO_13413525", | ||
| 44 | - "offerCode": "BUA3GS58", | ||
| 45 | - "offerName": "BUA3GS58-Free Net 12GB/month for 12 months-Free Net 12GB/month for 12 months", | ||
| 46 | - "productRowID": "1-1HFW-680", | ||
| 47 | - "productCategory": "External", | ||
| 48 | - "productName": "13413525-BUA3GS58", | ||
| 49 | - "productType": "SOC/OFFER", | ||
| 50 | - "productLine": "True Mobile", | ||
| 51 | - "effectiveDate": "2020-03-26T14:05:25.000+0700", | ||
| 52 | - "expiryDate": "2021-04-09T23:59:59.000+0700", | ||
| 53 | - "status": "Inactive" | ||
| 54 | - }, | ||
| 55 | - { | ||
| 56 | - "assetRowID": "1-7KISY7X", | ||
| 57 | - "parAssetRowID": "1-6XIP5UU", | ||
| 58 | - "rootAssetRowID": "1-6XIP5UU", | ||
| 59 | - "assetNo": "COC1392733162240291488289", | ||
| 60 | - "partNum": "CO_16224029", | ||
| 61 | - "offerCode": "RMV000000010410", | ||
| 62 | - "offerName": "RMV000000010410-PRP_Proactive Voluntary Contract 12 months", | ||
| 63 | - "productRowID": "1-1UPI-49", | ||
| 64 | - "productCategory": "External", | ||
| 65 | - "productName": "16224029-RMV000000010410", | ||
| 66 | - "productType": "SOC/OFFER", | ||
| 67 | - "productLine": "True Mobile", | ||
| 68 | - "effectiveDate": "2020-03-26T14:05:15.000+0700", | ||
| 69 | - "expiryDate": "2021-03-26T14:05:10.000+0700", | ||
| 70 | - "status": "Inactive" | ||
| 71 | - }, | ||
| 72 | - { | ||
| 73 | - "assetRowID": "1-7KHPX3D", | ||
| 74 | - "parAssetRowID": "1-6XIP5UU", | ||
| 75 | - "rootAssetRowID": "1-6XIP5UU", | ||
| 76 | - "assetNo": "COC1392733136578271487938", | ||
| 77 | - "partNum": "CO_13657827", | ||
| 78 | - "offerCode": "BUNV1S41", | ||
| 79 | - "offerName": "BUNV1S41-Free Voice all-net100mins/12M-Free Voice call100mins for 12months", | ||
| 80 | - "productRowID": "1-1HG8-34", | ||
| 81 | - "productCategory": "External", | ||
| 82 | - "productName": "13657827-BUNV1S41", | ||
| 83 | - "productType": "SOC/OFFER", | ||
| 84 | - "productLine": "True Mobile", | ||
| 85 | - "effectiveDate": "2020-03-26T11:04:29.000+0700", | ||
| 86 | - "expiryDate": "2021-04-26T00:00:00.000+0700", | ||
| 87 | - "status": "Inactive" | ||
| 88 | - }, | ||
| 89 | - { | ||
| 90 | - "assetRowID": "1-75Y4CQP", | ||
| 91 | - "parAssetRowID": "1-6XIP5UU", | ||
| 92 | - "rootAssetRowID": "1-6XIP5UU", | ||
| 93 | - "assetNo": "COC1392733125180251452980", | ||
| 94 | - "partNum": "CO_12518025", | ||
| 95 | - "offerCode": "RETENS83", | ||
| 96 | - "offerName": "RETENS83-RET_Free Voice all-net550mins 6Months-Free Voice all-net550mins 6Months", | ||
| 97 | - "productRowID": "1-177N-136", | ||
| 98 | - "productCategory": "External", | ||
| 99 | - "productName": "12518025-RETENS83", | ||
| 100 | - "productType": "SOC/OFFER", | ||
| 101 | - "productLine": "True Mobile", | ||
| 102 | - "effectiveDate": "2020-02-06T17:25:44.000+0700", | ||
| 103 | - "expiryDate": "2020-08-06T00:00:00.000+0700", | ||
| 104 | - "status": "Inactive" | ||
| 105 | - }, | ||
| 106 | - { | ||
| 107 | - "assetRowID": "1-75N9HNZ", | ||
| 108 | - "parAssetRowID": "1-6XIP5UU", | ||
| 109 | - "rootAssetRowID": "1-6XIP5UU", | ||
| 110 | - "assetNo": "COC1392733415811440976", | ||
| 111 | - "partNum": "CO_41581", | ||
| 112 | - "offerCode": "PROINTL1", | ||
| 113 | - "offerName": "PROINTL1-International Call Enabling-International Call Enabling", | ||
| 114 | - "productRowID": "1-1TH-1866", | ||
| 115 | - "productCategory": "External", | ||
| 116 | - "productName": "41581-PROINTL1", | ||
| 117 | - "productType": "SOC/OFFER", | ||
| 118 | - "productLine": "True Mobile", | ||
| 119 | - "effectiveDate": "2020-01-21T16:00:27.000+0700", | ||
| 120 | - "status": "Active" | ||
| 121 | - }, | ||
| 122 | - { | ||
| 123 | - "assetRowID": "1-75N9HNN", | ||
| 124 | - "parAssetRowID": "1-6XIP5UU", | ||
| 125 | - "rootAssetRowID": "1-6XIP5UU", | ||
| 126 | - "assetNo": "COC13927331056451440977", | ||
| 127 | - "partNum": "CO_105645", | ||
| 128 | - "offerCode": "PROROAM2S", | ||
| 129 | - "offerName": "PROROAM2S-Postpaid Roaming Limited Data Coverage-Provision - Postpay Roaming Limited Data Coverage", | ||
| 130 | - "productRowID": "1-1TH-1608", | ||
| 131 | - "productCategory": "External", | ||
| 132 | - "productName": "105645-PROROAM2S", | ||
| 133 | - "productType": "SOC/OFFER", | ||
| 134 | - "productLine": "True Mobile", | ||
| 135 | - "effectiveDate": "2020-01-21T16:00:27.000+0700", | ||
| 136 | - "expiryDate": "2020-01-30T18:42:42.000+0700", | ||
| 137 | - "status": "Inactive" | ||
| 138 | - }, | ||
| 139 | - { | ||
| 140 | - "assetRowID": "1-7P3ONX4", | ||
| 141 | - "parAssetRowID": "1-6XIP5UU", | ||
| 142 | - "rootAssetRowID": "1-6XIP5UU", | ||
| 143 | - "assetNo": "COC1392733161593291439753", | ||
| 144 | - "partNum": "CO_16159329", | ||
| 145 | - "offerCode": "NOAHTS08", | ||
| 146 | - "offerName": "NOAHTS08-TrueID TV box Service fee 50 Baht recurring-TrueID TV Box Service fee", | ||
| 147 | - "productRowID": "1-1UQ9-103", | ||
| 148 | - "productCategory": "External", | ||
| 149 | - "productName": "16159329-NOAHTS08", | ||
| 150 | - "productType": "SOC/OFFER", | ||
| 151 | - "productLine": "True Mobile", | ||
| 152 | - "effectiveDate": "2020-01-17T15:52:53.000+0700", | ||
| 153 | - "expiryDate": "2020-01-21T15:48:30.000+0700", | ||
| 154 | - "status": "Inactive" | ||
| 155 | - }, | ||
| 156 | - { | ||
| 157 | - "assetRowID": "1-7P3ONX8", | ||
| 158 | - "parAssetRowID": "1-6XIP5UU", | ||
| 159 | - "rootAssetRowID": "1-6XIP5UU", | ||
| 160 | - "assetNo": "COC1392733161593291438729", | ||
| 161 | - "partNum": "CO_16159329", | ||
| 162 | - "offerCode": "NOAHTS08", | ||
| 163 | - "offerName": "NOAHTS08-TrueID TV box Service fee 50 Baht recurring-TrueID TV Box Service fee", | ||
| 164 | - "productRowID": "1-1UQ9-103", | ||
| 165 | - "productCategory": "External", | ||
| 166 | - "productName": "16159329-NOAHTS08", | ||
| 167 | - "productType": "SOC/OFFER", | ||
| 168 | - "productLine": "True Mobile", | ||
| 169 | - "effectiveDate": "2020-01-16T12:09:26.000+0700", | ||
| 170 | - "expiryDate": "2020-01-17T15:48:49.000+0700", | ||
| 171 | - "status": "Inactive" | ||
| 172 | - }, | ||
| 173 | - { | ||
| 174 | - "assetRowID": "1-75N9HNR", | ||
| 175 | - "parAssetRowID": "1-6XIP5UU", | ||
| 176 | - "rootAssetRowID": "1-6XIP5UU", | ||
| 177 | - "assetNo": "COC1392733161009291438589", | ||
| 178 | - "partNum": "CO_16100929", | ||
| 179 | - "offerCode": "RMVC00000001901", | ||
| 180 | - "offerName": "RMVC00000001901-SH_Smart Employee_iPhone 7 32GB lock sim_Disc10510_NoAdv_c12", | ||
| 181 | - "productRowID": "1-1U2D-31", | ||
| 182 | - "productCategory": "External", | ||
| 183 | - "productName": "16100929-RMVC00000001901", | ||
| 184 | - "productType": "SOC/OFFER", | ||
| 185 | - "productLine": "True Mobile", | ||
| 186 | - "effectiveDate": "2020-01-16T11:05:13.000+0700", | ||
| 187 | - "expiryDate": "2020-02-05T17:33:23.000+0700", | ||
| 188 | - "status": "Inactive" | ||
| 189 | - }, | ||
| 190 | - { | ||
| 191 | - "assetRowID": "1-75N9HNJ", | ||
| 192 | - "parAssetRowID": "1-6XIP5UU", | ||
| 193 | - "rootAssetRowID": "1-6XIP5UU", | ||
| 194 | - "assetNo": "KNOX1392733201195782", | ||
| 195 | - "serialNo": "359440080055649", | ||
| 196 | - "productCode": "Product", | ||
| 197 | - "partNum": "KNOX", | ||
| 198 | - "offerName": "KNOX IMEI", | ||
| 199 | - "productRowID": "1-75L97ZY", | ||
| 200 | - "productCategory": "External", | ||
| 201 | - "productName": "KNOX IMEI", | ||
| 202 | - "productLine": "True Mobile", | ||
| 203 | - "effectiveDate": "2020-01-15T15:31:53.000+0700", | ||
| 204 | - "expiryDate": "2020-02-05T17:33:23.000+0700", | ||
| 205 | - "status": "Inactive", | ||
| 206 | - "installDate": "2020-01-15T07:00:00.000+0700" | ||
| 207 | - }, | ||
| 208 | - { | ||
| 209 | - "assetRowID": "1-7P3ONXC", | ||
| 210 | - "parAssetRowID": "1-6XIP5UU", | ||
| 211 | - "rootAssetRowID": "1-6XIP5UU", | ||
| 212 | - "assetNo": "COC1392733161593291437581", | ||
| 213 | - "partNum": "CO_16159329", | ||
| 214 | - "offerCode": "NOAHTS08", | ||
| 215 | - "offerName": "NOAHTS08-TrueID TV box Service fee 50 Baht recurring-TrueID TV Box Service fee", | ||
| 216 | - "productRowID": "1-1UQ9-103", | ||
| 217 | - "productCategory": "External", | ||
| 218 | - "productName": "16159329-NOAHTS08", | ||
| 219 | - "productType": "SOC/OFFER", | ||
| 220 | - "productLine": "True Mobile", | ||
| 221 | - "effectiveDate": "2020-01-15T14:45:14.000+0700", | ||
| 222 | - "expiryDate": "2020-01-16T12:01:08.000+0700", | ||
| 223 | - "status": "Inactive" | ||
| 224 | - }, | ||
| 225 | - { | ||
| 226 | - "assetRowID": "1-75N9HNV", | ||
| 227 | - "parAssetRowID": "1-6XIP5UU", | ||
| 228 | - "rootAssetRowID": "1-6XIP5UU", | ||
| 229 | - "assetNo": "COC1392733199911436448", | ||
| 230 | - "partNum": "CO_19991", | ||
| 231 | - "offerCode": "1331SS01", | ||
| 232 | - "offerName": "1331SS01-Free for 1331, 1242 and 1239-Free for 1331, 1242 and 1239", | ||
| 233 | - "productRowID": "1-1TH-1678", | ||
| 234 | - "productCategory": "External", | ||
| 235 | - "productName": "19991-1331SS01", | ||
| 236 | - "productType": "SOC/OFFER", | ||
| 237 | - "productLine": "True Mobile", | ||
| 238 | - "effectiveDate": "2020-01-13T15:53:40.000+0700", | ||
| 239 | - "status": "Active" | ||
| 240 | - }, | ||
| 241 | - { | ||
| 242 | - "assetRowID": "1-6XL4A3B", | ||
| 243 | - "parAssetRowID": "1-6XIP5UU", | ||
| 244 | - "rootAssetRowID": "1-6XIP5UU", | ||
| 245 | - "assetNo": "COC1392733140264271436086", | ||
| 246 | - "partNum": "CO_14026427", | ||
| 247 | - "offerCode": "RMV000000007991", | ||
| 248 | - "offerName": "RMV000000007991-SH_Galaxy KNOX_Disc3500_c12", | ||
| 249 | - "productRowID": "1-1N9O-200", | ||
| 250 | - "productCategory": "External", | ||
| 251 | - "productName": "14026427-RMV000000007991", | ||
| 252 | - "productType": "SOC/OFFER", | ||
| 253 | - "productLine": "True Mobile", | ||
| 254 | - "effectiveDate": "2020-01-09T18:19:28.000+0700", | ||
| 255 | - "expiryDate": "2020-02-05T17:33:23.000+0700", | ||
| 256 | - "status": "Inactive" | ||
| 257 | - }, | ||
| 258 | - { | ||
| 259 | - "assetRowID": "1-6XL4A3F", | ||
| 260 | - "parAssetRowID": "1-6XIP5UU", | ||
| 261 | - "rootAssetRowID": "1-6XIP5UU", | ||
| 262 | - "assetNo": "COC1392733140269271436085", | ||
| 263 | - "partNum": "CO_14026927", | ||
| 264 | - "offerCode": "RMV000000007996", | ||
| 265 | - "offerName": "RMV000000007996-NS_Galaxy KNOX_Disc4500_c12", | ||
| 266 | - "productRowID": "1-1J42-34", | ||
| 267 | - "productCategory": "External", | ||
| 268 | - "productName": "14026927-RMV000000007996", | ||
| 269 | - "productType": "SOC/OFFER", | ||
| 270 | - "productLine": "True Mobile", | ||
| 271 | - "effectiveDate": "2020-01-09T18:06:26.000+0700", | ||
| 272 | - "expiryDate": "2020-01-09T18:14:15.000+0700", | ||
| 273 | - "status": "Inactive" | ||
| 274 | - }, | ||
| 275 | - { | ||
| 276 | - "assetRowID": "1-6XIP5WN", | ||
| 277 | - "parAssetRowID": "1-6XIP5UU", | ||
| 278 | - "rootAssetRowID": "1-6XIP5UU", | ||
| 279 | - "assetNo": "COC1392733162101291436038", | ||
| 280 | - "partNum": "CO_16210129", | ||
| 281 | - "offerCode": "CUGFRS15", | ||
| 282 | - "offerName": "CUGFRS15-Close User Group (Free) - True Family Plus-CUG (Free) - True Family Plus", | ||
| 283 | - "productRowID": "1-1UPG-27", | ||
| 284 | - "productCategory": "External", | ||
| 285 | - "productName": "16210129-CUGFRS15", | ||
| 286 | - "productType": "SOC/OFFER", | ||
| 287 | - "productLine": "True Mobile", | ||
| 288 | - "effectiveDate": "2020-01-09T12:20:56.000+0700", | ||
| 289 | - "status": "Active", | ||
| 290 | - "offerType": "CUG" | ||
| 291 | - }, | ||
| 292 | - { | ||
| 293 | - "assetRowID": "1-6XIP5WJ", | ||
| 294 | - "parAssetRowID": "1-6XIP5UU", | ||
| 295 | - "rootAssetRowID": "1-6XIP5UU", | ||
| 296 | - "assetNo": "COC1392733161593291436037", | ||
| 297 | - "partNum": "CO_16159329", | ||
| 298 | - "offerCode": "NOAHTS08", | ||
| 299 | - "offerName": "NOAHTS08-TrueID TV box Service fee 50 Baht recurring-TrueID TV Box Service fee", | ||
| 300 | - "productRowID": "1-1UQ9-103", | ||
| 301 | - "productCategory": "External", | ||
| 302 | - "productName": "16159329-NOAHTS08", | ||
| 303 | - "productType": "SOC/OFFER", | ||
| 304 | - "productLine": "True Mobile", | ||
| 305 | - "effectiveDate": "2020-01-09T11:57:22.000+0700", | ||
| 306 | - "expiryDate": "2020-01-10T11:28:35.000+0700", | ||
| 307 | - "status": "Inactive" | ||
| 308 | - }, | ||
| 309 | - { | ||
| 310 | - "assetRowID": "1-6XIP5VZ", | ||
| 311 | - "parAssetRowID": "1-6XIP5UU", | ||
| 312 | - "rootAssetRowID": "1-6XIP5UU", | ||
| 313 | - "assetNo": "trueIDTV1392733201192647", | ||
| 314 | - "serialNo": "trueIDTV-108628999", | ||
| 315 | - "productCode": "Product", | ||
| 316 | - "partNum": "trueIDTV", | ||
| 317 | - "offerName": "True ID TV", | ||
| 318 | - "productRowID": "1-3W58I9A", | ||
| 319 | - "productCategory": "External", | ||
| 320 | - "productName": "True ID TV", | ||
| 321 | - "productType": "TVG", | ||
| 322 | - "productLine": "True Mobile", | ||
| 323 | - "effectiveDate": "2020-01-09T11:57:22.000+0700", | ||
| 324 | - "status": "Active", | ||
| 325 | - "installDate": "2020-01-09T07:00:00.000+0700" | ||
| 326 | - }, | ||
| 327 | - { | ||
| 328 | - "assetRowID": "1-6XIP5WV", | ||
| 329 | - "parAssetRowID": "1-6XIP5UU", | ||
| 330 | - "rootAssetRowID": "1-6XIP5UU", | ||
| 331 | - "assetNo": "COC1392733312621434698", | ||
| 332 | - "partNum": "CO_31262", | ||
| 333 | - "offerCode": "BALANCELIMIT", | ||
| 334 | - "offerName": "BALANCELIMIT-Spending limit offer", | ||
| 335 | - "productRowID": "1-1TH-1838", | ||
| 336 | - "productCategory": "External", | ||
| 337 | - "productName": "31262-BALANCELIMIT", | ||
| 338 | - "productType": "SOC/OFFER", | ||
| 339 | - "productLine": "True Mobile", | ||
| 340 | - "effectiveDate": "2020-01-07T17:41:47.000+0700", | ||
| 341 | - "status": "Active", | ||
| 342 | - "offerType": "BALANCELIMIT" | ||
| 343 | - }, | ||
| 344 | - { | ||
| 345 | - "assetRowID": "1-6XIP5WB", | ||
| 346 | - "parAssetRowID": "1-6XIP5UU", | ||
| 347 | - "rootAssetRowID": "1-6XIP5UU", | ||
| 348 | - "assetNo": "COC1392733131024251425627", | ||
| 349 | - "partNum": "CO_13102425", | ||
| 350 | - "offerCode": "ITMBLS02", | ||
| 351 | - "offerName": "ITMBLS02-Itemized e-Bill Service-Itemized e-Bill Service", | ||
| 352 | - "productRowID": "1-1EKZ-20", | ||
| 353 | - "productCategory": "External", | ||
| 354 | - "productName": "13102425-ITMBLS02", | ||
| 355 | - "productType": "SOC/OFFER", | ||
| 356 | - "productLine": "True Mobile", | ||
| 357 | - "effectiveDate": "2019-12-23T18:22:24.000+0700", | ||
| 358 | - "status": "Active" | ||
| 359 | - }, | ||
| 360 | - { | ||
| 361 | - "assetRowID": "1-6XIP5WF", | ||
| 362 | - "parAssetRowID": "1-6XIP5UU", | ||
| 363 | - "rootAssetRowID": "1-6XIP5UU", | ||
| 364 | - "assetNo": "COC1392733155109271425625", | ||
| 365 | - "partNum": "CO_15510927", | ||
| 366 | - "offerCode": "PROFCVBAR", | ||
| 367 | - "offerName": "PROFCVBAR-First Call Verification, Barring - Additional-First Call Verification, Barring", | ||
| 368 | - "productRowID": "1-1KFG-151", | ||
| 369 | - "productCategory": "External", | ||
| 370 | - "productName": "15510927-PROFCVBAR", | ||
| 371 | - "productType": "SOC/OFFER", | ||
| 372 | - "productLine": "True Mobile", | ||
| 373 | - "effectiveDate": "2019-12-23T18:22:16.000+0700", | ||
| 374 | - "status": "Active" | ||
| 375 | - }, | ||
| 376 | - { | ||
| 377 | - "assetRowID": "1-6XIP5W3", | ||
| 378 | - "parAssetRowID": "1-6XIP5UU", | ||
| 379 | - "rootAssetRowID": "1-6XIP5UU", | ||
| 380 | - "assetNo": "CPC13927332630381425619", | ||
| 381 | - "partNum": "CP_263038", | ||
| 382 | - "offerCode": "BUSTBP11", | ||
| 383 | - "offerName": "BUSTBP11-Biz ThuukJai RC 599 Get 1,100 min-Biz ThuukJai RC 599", | ||
| 384 | - "productRowID": "1-4WK-5763", | ||
| 385 | - "productCategory": "External", | ||
| 386 | - "productName": "263038-BUSTBP11", | ||
| 387 | - "productType": "Price Plan", | ||
| 388 | - "productLine": "True Mobile", | ||
| 389 | - "effectiveDate": "2019-12-23T18:10:57.000+0700", | ||
| 390 | - "expiryDate": "2020-02-06T00:00:00.000+0700", | ||
| 391 | - "status": "Inactive", | ||
| 392 | - "offerType": "Price Plan" | ||
| 393 | - }, | ||
| 394 | - { | ||
| 395 | - "assetRowID": "1-6XIP5VN", | ||
| 396 | - "parAssetRowID": "1-6XIP5UU", | ||
| 397 | - "rootAssetRowID": "1-6XIP5UU", | ||
| 398 | - "assetNo": "CSC1392733201186614", | ||
| 399 | - "serialNo": "896600401500004362", | ||
| 400 | - "partNum": "Mobile SIM Card", | ||
| 401 | - "offerName": "Mobile SIM Card", | ||
| 402 | - "productRowID": "1-1U5-1570", | ||
| 403 | - "productCategory": "External", | ||
| 404 | - "productName": "Mobile SIM Card", | ||
| 405 | - "productType": "SIM Card", | ||
| 406 | - "productLine": "True Mobile", | ||
| 407 | - "effectiveDate": "2019-12-23T18:10:57.000+0700", | ||
| 408 | - "status": "Active", | ||
| 409 | - "installDate": "2019-12-23T07:00:00.000+0700" | ||
| 410 | - }, | ||
| 411 | - { | ||
| 412 | - "assetRowID": "1-6XIP5VR", | ||
| 413 | - "parAssetRowID": "1-6XIP5UU", | ||
| 414 | - "rootAssetRowID": "1-6XIP5UU", | ||
| 415 | - "assetNo": "CIC1392733201186615", | ||
| 416 | - "serialNo": "520002000004362", | ||
| 417 | - "partNum": "Mobile IMSI", | ||
| 418 | - "offerName": "Mobile IMSI", | ||
| 419 | - "productRowID": "1-1U5-1954", | ||
| 420 | - "productCategory": "External", | ||
| 421 | - "productName": "Mobile IMSI", | ||
| 422 | - "productType": "IMSI", | ||
| 423 | - "productLine": "True Mobile", | ||
| 424 | - "effectiveDate": "2019-12-23T18:10:57.000+0700", | ||
| 425 | - "status": "Active", | ||
| 426 | - "installDate": "2019-12-23T07:00:00.000+0700" | ||
| 427 | - }, | ||
| 428 | - { | ||
| 429 | - "assetRowID": "1-6XIP5XB", | ||
| 430 | - "parAssetRowID": "1-6XIP5UU", | ||
| 431 | - "rootAssetRowID": "1-6XIP5UU", | ||
| 432 | - "assetNo": "COC1392733793331425623", | ||
| 433 | - "partNum": "CO_79333", | ||
| 434 | - "offerCode": "RMGPSS51", | ||
| 435 | - "offerName": "RMGPSS51-GPRS SpecialRate(PP)0.002 bt/KB,Cap1500-GPRS SpRate-PP 0.002 bt/KB,Cap1500", | ||
| 436 | - "productRowID": "1-1TH-2516", | ||
| 437 | - "productCategory": "External", | ||
| 438 | - "productName": "79333-RMGPSS51", | ||
| 439 | - "productType": "SOC/OFFER", | ||
| 440 | - "productLine": "True Mobile", | ||
| 441 | - "effectiveDate": "2019-12-23T18:10:57.000+0700", | ||
| 442 | - "status": "Active" | ||
| 443 | - }, | ||
| 444 | - { | ||
| 445 | - "assetRowID": "1-6XIP5X7", | ||
| 446 | - "parAssetRowID": "1-6XIP5UU", | ||
| 447 | - "rootAssetRowID": "1-6XIP5UU", | ||
| 448 | - "assetNo": "COC1392733417011425622", | ||
| 449 | - "partNum": "CO_41701", | ||
| 450 | - "offerCode": "RMPGPS01", | ||
| 451 | - "offerName": "RMPGPS01-GPRS Provisioning SOC - RMV (HMMS,HINTERNET)-GPRS Provisioning - HMMS,HINTERNET", | ||
| 452 | - "productRowID": "1-1TH-1872", | ||
| 453 | - "productCategory": "External", | ||
| 454 | - "productName": "41701-RMPGPS01", | ||
| 455 | - "productType": "SOC/OFFER", | ||
| 456 | - "productLine": "True Mobile", | ||
| 457 | - "effectiveDate": "2019-12-23T18:10:57.000+0700", | ||
| 458 | - "expiryDate": "2020-01-13T15:58:33.000+0700", | ||
| 459 | - "status": "Inactive" | ||
| 460 | - }, | ||
| 461 | - { | ||
| 462 | - "assetRowID": "1-6XIP5X3", | ||
| 463 | - "parAssetRowID": "1-6XIP5UU", | ||
| 464 | - "rootAssetRowID": "1-6XIP5UU", | ||
| 465 | - "assetNo": "COC1392733416411425621", | ||
| 466 | - "partNum": "CO_41641", | ||
| 467 | - "offerCode": "RMHSPS02", | ||
| 468 | - "offerName": "RMHSPS02-Hi-Speed 3G/EDGE/GPRS 21.5 Mbps - PostPay (rev 42)-3G/EDGE/GPRS 21.5Mbps(rev to42Mbps)", | ||
| 469 | - "productRowID": "1-1TH-1869", | ||
| 470 | - "productCategory": "External", | ||
| 471 | - "productName": "41641-RMHSPS02", | ||
| 472 | - "productType": "SOC/OFFER", | ||
| 473 | - "productLine": "True Mobile", | ||
| 474 | - "effectiveDate": "2019-12-23T18:10:57.000+0700", | ||
| 475 | - "status": "Active" | ||
| 476 | - }, | ||
| 477 | - { | ||
| 478 | - "assetRowID": "1-6XIP5WZ", | ||
| 479 | - "parAssetRowID": "1-6XIP5UU", | ||
| 480 | - "rootAssetRowID": "1-6XIP5UU", | ||
| 481 | - "assetNo": "COC1392733409411425620", | ||
| 482 | - "partNum": "CO_40941", | ||
| 483 | - "offerCode": "PROSTDA1", | ||
| 484 | - "offerName": "PROSTDA1-Standard Provisioning Services for Post Pay # 1-Standard Provisioning for Post Pay", | ||
| 485 | - "productRowID": "1-1TH-1860", | ||
| 486 | - "productCategory": "External", | ||
| 487 | - "productName": "40941-PROSTDA1", | ||
| 488 | - "productType": "SOC/OFFER", | ||
| 489 | - "productLine": "True Mobile", | ||
| 490 | - "effectiveDate": "2019-12-23T18:10:57.000+0700", | ||
| 491 | - "status": "Active" | ||
| 492 | - }, | ||
| 493 | - { | ||
| 494 | - "assetRowID": "1-6XIP5WR", | ||
| 495 | - "parAssetRowID": "1-6XIP5UU", | ||
| 496 | - "rootAssetRowID": "1-6XIP5UU", | ||
| 497 | - "assetNo": "COC1392733200611425624", | ||
| 498 | - "partNum": "CO_20061", | ||
| 499 | - "offerCode": "CREDITLIMIT", | ||
| 500 | - "offerName": "CREDITLIMIT-Credit Limit offer", | ||
| 501 | - "productRowID": "1-1TH-1682", | ||
| 502 | - "productCategory": "External", | ||
| 503 | - "productName": "20061-CREDITLIMIT", | ||
| 504 | - "productType": "SOC/OFFER", | ||
| 505 | - "productLine": "True Mobile", | ||
| 506 | - "effectiveDate": "2019-12-23T18:10:57.000+0700", | ||
| 507 | - "status": "Active" | ||
| 508 | - }, | ||
| 509 | - { | ||
| 510 | - "assetRowID": "1-6XIP5VV", | ||
| 511 | - "parAssetRowID": "1-6XIP5UU", | ||
| 512 | - "rootAssetRowID": "1-6XIP5UU", | ||
| 513 | - "assetNo": "CMC1392733201186616", | ||
| 514 | - "serialNo": "MSISDN-0968730341", | ||
| 515 | - "productCode": "Product", | ||
| 516 | - "partNum": "MSISDN", | ||
| 517 | - "offerName": "MSISDN", | ||
| 518 | - "productRowID": "1-1UK76M", | ||
| 519 | - "productCategory": "External", | ||
| 520 | - "productName": "MSISDN", | ||
| 521 | - "productType": "MSISDN", | ||
| 522 | - "productLine": "True Mobile", | ||
| 523 | - "effectiveDate": "2019-12-23T18:10:57.000+0700", | ||
| 524 | - "status": "Active", | ||
| 525 | - "installDate": "2019-12-23T07:00:00.000+0700" | ||
| 526 | - }, | ||
| 527 | - { | ||
| 528 | - "assetRowID": "1-6XIP5W7", | ||
| 529 | - "parAssetRowID": "1-6XIP5UU", | ||
| 530 | - "rootAssetRowID": "1-6XIP5UU", | ||
| 531 | - "assetNo": "COC1392733114044121425618", | ||
| 532 | - "partNum": "CO_11404412", | ||
| 533 | - "offerCode": "RMV000000001641", | ||
| 534 | - "offerName": "RMV000000001641-Change ownership", | ||
| 535 | - "productRowID": "1-E87-1413", | ||
| 536 | - "productCategory": "External", | ||
| 537 | - "productName": "11404412-RMV000000001641", | ||
| 538 | - "productType": "SOC/OFFER", | ||
| 539 | - "productLine": "True Mobile", | ||
| 540 | - "effectiveDate": "2019-12-23T18:10:57.000+0700", | ||
| 541 | - "status": "Active" | ||
| 542 | - } | ||
| 543 | - ] | ||
| 544 | -} | 14 | + let response = { |
| 15 | + "code": "0", | ||
| 16 | + "msg": "Success", | ||
| 17 | + "transID": "610d300c-f33c-4aa7-b640-bcddff7d7ddf", | ||
| 18 | + "assetComponentList": [ | ||
| 19 | + { | ||
| 20 | + "assetRowID": "1-7STT9PJ", | ||
| 21 | + "parAssetRowID": "1-6XIP5UU", | ||
| 22 | + "rootAssetRowID": "1-6XIP5UU", | ||
| 23 | + "assetNo": "CDC1392733125643171516804", | ||
| 24 | + "partNum": "CD_12564317", | ||
| 25 | + "offerCode": "BSP014", | ||
| 26 | + "offerName": "BSP014-Advance payment-Advance payment", | ||
| 27 | + "productRowID": "1-H2Y-65", | ||
| 28 | + "productCategory": "External", | ||
| 29 | + "productName": "12564317-BSP014", | ||
| 30 | + "productType": "Discount", | ||
| 31 | + "productLine": "True Mobile", | ||
| 32 | + "effectiveDate": "2020-04-21T18:40:55.000+0700", | ||
| 33 | + "expiryDate": "2020-09-06T00:00:00.000+0700", | ||
| 34 | + "status": "Inactive", | ||
| 35 | + "offerType": "Discount", | ||
| 36 | + "chargePeriod": "Monthly" | ||
| 37 | + }, | ||
| 38 | + { | ||
| 39 | + "assetRowID": "1-7KISY7T", | ||
| 40 | + "parAssetRowID": "1-6XIP5UU", | ||
| 41 | + "rootAssetRowID": "1-6XIP5UU", | ||
| 42 | + "assetNo": "COC1392733134135251488290", | ||
| 43 | + "partNum": "CO_13413525", | ||
| 44 | + "offerCode": "BUA3GS58", | ||
| 45 | + "offerName": "BUA3GS58-Free Net 12GB/month for 12 months-Free Net 12GB/month for 12 months", | ||
| 46 | + "productRowID": "1-1HFW-680", | ||
| 47 | + "productCategory": "External", | ||
| 48 | + "productName": "13413525-BUA3GS58", | ||
| 49 | + "productType": "SOC/OFFER", | ||
| 50 | + "productLine": "True Mobile", | ||
| 51 | + "effectiveDate": "2020-03-26T14:05:25.000+0700", | ||
| 52 | + "expiryDate": "2021-04-09T23:59:59.000+0700", | ||
| 53 | + "status": "Inactive" | ||
| 54 | + }, | ||
| 55 | + { | ||
| 56 | + "assetRowID": "1-7KISY7X", | ||
| 57 | + "parAssetRowID": "1-6XIP5UU", | ||
| 58 | + "rootAssetRowID": "1-6XIP5UU", | ||
| 59 | + "assetNo": "COC1392733162240291488289", | ||
| 60 | + "partNum": "CO_16224029", | ||
| 61 | + "offerCode": "RMV000000010410", | ||
| 62 | + "offerName": "RMV000000010410-PRP_Proactive Voluntary Contract 12 months", | ||
| 63 | + "productRowID": "1-1UPI-49", | ||
| 64 | + "productCategory": "External", | ||
| 65 | + "productName": "16224029-RMV000000010410", | ||
| 66 | + "productType": "SOC/OFFER", | ||
| 67 | + "productLine": "True Mobile", | ||
| 68 | + "effectiveDate": "2020-03-26T14:05:15.000+0700", | ||
| 69 | + "expiryDate": "2021-03-26T14:05:10.000+0700", | ||
| 70 | + "status": "Inactive" | ||
| 71 | + }, | ||
| 72 | + { | ||
| 73 | + "assetRowID": "1-7KHPX3D", | ||
| 74 | + "parAssetRowID": "1-6XIP5UU", | ||
| 75 | + "rootAssetRowID": "1-6XIP5UU", | ||
| 76 | + "assetNo": "COC1392733136578271487938", | ||
| 77 | + "partNum": "CO_13657827", | ||
| 78 | + "offerCode": "BUNV1S41", | ||
| 79 | + "offerName": "BUNV1S41-Free Voice all-net100mins/12M-Free Voice call100mins for 12months", | ||
| 80 | + "productRowID": "1-1HG8-34", | ||
| 81 | + "productCategory": "External", | ||
| 82 | + "productName": "13657827-BUNV1S41", | ||
| 83 | + "productType": "SOC/OFFER", | ||
| 84 | + "productLine": "True Mobile", | ||
| 85 | + "effectiveDate": "2020-03-26T11:04:29.000+0700", | ||
| 86 | + "expiryDate": "2021-04-26T00:00:00.000+0700", | ||
| 87 | + "status": "Inactive" | ||
| 88 | + }, | ||
| 89 | + { | ||
| 90 | + "assetRowID": "1-75Y4CQP", | ||
| 91 | + "parAssetRowID": "1-6XIP5UU", | ||
| 92 | + "rootAssetRowID": "1-6XIP5UU", | ||
| 93 | + "assetNo": "COC1392733125180251452980", | ||
| 94 | + "partNum": "CO_12518025", | ||
| 95 | + "offerCode": "RETENS83", | ||
| 96 | + "offerName": "RETENS83-RET_Free Voice all-net550mins 6Months-Free Voice all-net550mins 6Months", | ||
| 97 | + "productRowID": "1-177N-136", | ||
| 98 | + "productCategory": "External", | ||
| 99 | + "productName": "12518025-RETENS83", | ||
| 100 | + "productType": "SOC/OFFER", | ||
| 101 | + "productLine": "True Mobile", | ||
| 102 | + "effectiveDate": "2020-02-06T17:25:44.000+0700", | ||
| 103 | + "expiryDate": "2020-08-06T00:00:00.000+0700", | ||
| 104 | + "status": "Inactive" | ||
| 105 | + }, | ||
| 106 | + { | ||
| 107 | + "assetRowID": "1-75N9HNZ", | ||
| 108 | + "parAssetRowID": "1-6XIP5UU", | ||
| 109 | + "rootAssetRowID": "1-6XIP5UU", | ||
| 110 | + "assetNo": "COC1392733415811440976", | ||
| 111 | + "partNum": "CO_41581", | ||
| 112 | + "offerCode": "PROINTL1", | ||
| 113 | + "offerName": "PROINTL1-International Call Enabling-International Call Enabling", | ||
| 114 | + "productRowID": "1-1TH-1866", | ||
| 115 | + "productCategory": "External", | ||
| 116 | + "productName": "41581-PROINTL1", | ||
| 117 | + "productType": "SOC/OFFER", | ||
| 118 | + "productLine": "True Mobile", | ||
| 119 | + "effectiveDate": "2020-01-21T16:00:27.000+0700", | ||
| 120 | + "status": "Active" | ||
| 121 | + }, | ||
| 122 | + { | ||
| 123 | + "assetRowID": "1-75N9HNN", | ||
| 124 | + "parAssetRowID": "1-6XIP5UU", | ||
| 125 | + "rootAssetRowID": "1-6XIP5UU", | ||
| 126 | + "assetNo": "COC13927331056451440977", | ||
| 127 | + "partNum": "CO_105645", | ||
| 128 | + "offerCode": "PROROAM2S", | ||
| 129 | + "offerName": "PROROAM2S-Postpaid Roaming Limited Data Coverage-Provision - Postpay Roaming Limited Data Coverage", | ||
| 130 | + "productRowID": "1-1TH-1608", | ||
| 131 | + "productCategory": "External", | ||
| 132 | + "productName": "105645-PROROAM2S", | ||
| 133 | + "productType": "SOC/OFFER", | ||
| 134 | + "productLine": "True Mobile", | ||
| 135 | + "effectiveDate": "2020-01-21T16:00:27.000+0700", | ||
| 136 | + "expiryDate": "2020-01-30T18:42:42.000+0700", | ||
| 137 | + "status": "Inactive" | ||
| 138 | + }, | ||
| 139 | + { | ||
| 140 | + "assetRowID": "1-7P3ONX4", | ||
| 141 | + "parAssetRowID": "1-6XIP5UU", | ||
| 142 | + "rootAssetRowID": "1-6XIP5UU", | ||
| 143 | + "assetNo": "COC1392733161593291439753", | ||
| 144 | + "partNum": "CO_16159329", | ||
| 145 | + "offerCode": "NOAHTS08", | ||
| 146 | + "offerName": "NOAHTS08-TrueID TV box Service fee 50 Baht recurring-TrueID TV Box Service fee", | ||
| 147 | + "productRowID": "1-1UQ9-103", | ||
| 148 | + "productCategory": "External", | ||
| 149 | + "productName": "16159329-NOAHTS08", | ||
| 150 | + "productType": "SOC/OFFER", | ||
| 151 | + "productLine": "True Mobile", | ||
| 152 | + "effectiveDate": "2020-01-17T15:52:53.000+0700", | ||
| 153 | + "expiryDate": "2020-01-21T15:48:30.000+0700", | ||
| 154 | + "status": "Inactive" | ||
| 155 | + }, | ||
| 156 | + { | ||
| 157 | + "assetRowID": "1-7P3ONX8", | ||
| 158 | + "parAssetRowID": "1-6XIP5UU", | ||
| 159 | + "rootAssetRowID": "1-6XIP5UU", | ||
| 160 | + "assetNo": "COC1392733161593291438729", | ||
| 161 | + "partNum": "CO_16159329", | ||
| 162 | + "offerCode": "NOAHTS08", | ||
| 163 | + "offerName": "NOAHTS08-TrueID TV box Service fee 50 Baht recurring-TrueID TV Box Service fee", | ||
| 164 | + "productRowID": "1-1UQ9-103", | ||
| 165 | + "productCategory": "External", | ||
| 166 | + "productName": "16159329-NOAHTS08", | ||
| 167 | + "productType": "SOC/OFFER", | ||
| 168 | + "productLine": "True Mobile", | ||
| 169 | + "effectiveDate": "2020-01-16T12:09:26.000+0700", | ||
| 170 | + "expiryDate": "2020-01-17T15:48:49.000+0700", | ||
| 171 | + "status": "Inactive" | ||
| 172 | + }, | ||
| 173 | + { | ||
| 174 | + "assetRowID": "1-75N9HNR", | ||
| 175 | + "parAssetRowID": "1-6XIP5UU", | ||
| 176 | + "rootAssetRowID": "1-6XIP5UU", | ||
| 177 | + "assetNo": "COC1392733161009291438589", | ||
| 178 | + "partNum": "CO_16100929", | ||
| 179 | + "offerCode": "RMVC00000001901", | ||
| 180 | + "offerName": "RMVC00000001901-SH_Smart Employee_iPhone 7 32GB lock sim_Disc10510_NoAdv_c12", | ||
| 181 | + "productRowID": "1-1U2D-31", | ||
| 182 | + "productCategory": "External", | ||
| 183 | + "productName": "16100929-RMVC00000001901", | ||
| 184 | + "productType": "SOC/OFFER", | ||
| 185 | + "productLine": "True Mobile", | ||
| 186 | + "effectiveDate": "2020-01-16T11:05:13.000+0700", | ||
| 187 | + "expiryDate": "2020-02-05T17:33:23.000+0700", | ||
| 188 | + "status": "Inactive" | ||
| 189 | + }, | ||
| 190 | + { | ||
| 191 | + "assetRowID": "1-75N9HNJ", | ||
| 192 | + "parAssetRowID": "1-6XIP5UU", | ||
| 193 | + "rootAssetRowID": "1-6XIP5UU", | ||
| 194 | + "assetNo": "KNOX1392733201195782", | ||
| 195 | + "serialNo": "359440080055649", | ||
| 196 | + "productCode": "Product", | ||
| 197 | + "partNum": "KNOX", | ||
| 198 | + "offerName": "KNOX IMEI", | ||
| 199 | + "productRowID": "1-75L97ZY", | ||
| 200 | + "productCategory": "External", | ||
| 201 | + "productName": "KNOX IMEI", | ||
| 202 | + "productLine": "True Mobile", | ||
| 203 | + "effectiveDate": "2020-01-15T15:31:53.000+0700", | ||
| 204 | + "expiryDate": "2020-02-05T17:33:23.000+0700", | ||
| 205 | + "status": "Inactive", | ||
| 206 | + "installDate": "2020-01-15T07:00:00.000+0700" | ||
| 207 | + }, | ||
| 208 | + { | ||
| 209 | + "assetRowID": "1-7P3ONXC", | ||
| 210 | + "parAssetRowID": "1-6XIP5UU", | ||
| 211 | + "rootAssetRowID": "1-6XIP5UU", | ||
| 212 | + "assetNo": "COC1392733161593291437581", | ||
| 213 | + "partNum": "CO_16159329", | ||
| 214 | + "offerCode": "NOAHTS08", | ||
| 215 | + "offerName": "NOAHTS08-TrueID TV box Service fee 50 Baht recurring-TrueID TV Box Service fee", | ||
| 216 | + "productRowID": "1-1UQ9-103", | ||
| 217 | + "productCategory": "External", | ||
| 218 | + "productName": "16159329-NOAHTS08", | ||
| 219 | + "productType": "SOC/OFFER", | ||
| 220 | + "productLine": "True Mobile", | ||
| 221 | + "effectiveDate": "2020-01-15T14:45:14.000+0700", | ||
| 222 | + "expiryDate": "2020-01-16T12:01:08.000+0700", | ||
| 223 | + "status": "Inactive" | ||
| 224 | + }, | ||
| 225 | + { | ||
| 226 | + "assetRowID": "1-75N9HNV", | ||
| 227 | + "parAssetRowID": "1-6XIP5UU", | ||
| 228 | + "rootAssetRowID": "1-6XIP5UU", | ||
| 229 | + "assetNo": "COC1392733199911436448", | ||
| 230 | + "partNum": "CO_19991", | ||
| 231 | + "offerCode": "1331SS01", | ||
| 232 | + "offerName": "1331SS01-Free for 1331, 1242 and 1239-Free for 1331, 1242 and 1239", | ||
| 233 | + "productRowID": "1-1TH-1678", | ||
| 234 | + "productCategory": "External", | ||
| 235 | + "productName": "19991-1331SS01", | ||
| 236 | + "productType": "SOC/OFFER", | ||
| 237 | + "productLine": "True Mobile", | ||
| 238 | + "effectiveDate": "2020-01-13T15:53:40.000+0700", | ||
| 239 | + "status": "Active" | ||
| 240 | + }, | ||
| 241 | + { | ||
| 242 | + "assetRowID": "1-6XL4A3B", | ||
| 243 | + "parAssetRowID": "1-6XIP5UU", | ||
| 244 | + "rootAssetRowID": "1-6XIP5UU", | ||
| 245 | + "assetNo": "COC1392733140264271436086", | ||
| 246 | + "partNum": "CO_14026427", | ||
| 247 | + "offerCode": "RMV000000007991", | ||
| 248 | + "offerName": "RMV000000007991-SH_Galaxy KNOX_Disc3500_c12", | ||
| 249 | + "productRowID": "1-1N9O-200", | ||
| 250 | + "productCategory": "External", | ||
| 251 | + "productName": "14026427-RMV000000007991", | ||
| 252 | + "productType": "SOC/OFFER", | ||
| 253 | + "productLine": "True Mobile", | ||
| 254 | + "effectiveDate": "2020-01-09T18:19:28.000+0700", | ||
| 255 | + "expiryDate": "2020-02-05T17:33:23.000+0700", | ||
| 256 | + "status": "Inactive" | ||
| 257 | + }, | ||
| 258 | + { | ||
| 259 | + "assetRowID": "1-6XL4A3F", | ||
| 260 | + "parAssetRowID": "1-6XIP5UU", | ||
| 261 | + "rootAssetRowID": "1-6XIP5UU", | ||
| 262 | + "assetNo": "COC1392733140269271436085", | ||
| 263 | + "partNum": "CO_14026927", | ||
| 264 | + "offerCode": "RMV000000007996", | ||
| 265 | + "offerName": "RMV000000007996-NS_Galaxy KNOX_Disc4500_c12", | ||
| 266 | + "productRowID": "1-1J42-34", | ||
| 267 | + "productCategory": "External", | ||
| 268 | + "productName": "14026927-RMV000000007996", | ||
| 269 | + "productType": "SOC/OFFER", | ||
| 270 | + "productLine": "True Mobile", | ||
| 271 | + "effectiveDate": "2020-01-09T18:06:26.000+0700", | ||
| 272 | + "expiryDate": "2020-01-09T18:14:15.000+0700", | ||
| 273 | + "status": "Inactive" | ||
| 274 | + }, | ||
| 275 | + { | ||
| 276 | + "assetRowID": "1-6XIP5WN", | ||
| 277 | + "parAssetRowID": "1-6XIP5UU", | ||
| 278 | + "rootAssetRowID": "1-6XIP5UU", | ||
| 279 | + "assetNo": "COC1392733162101291436038", | ||
| 280 | + "partNum": "CO_16210129", | ||
| 281 | + "offerCode": "CUGFRS15", | ||
| 282 | + "offerName": "CUGFRS15-Close User Group (Free) - True Family Plus-CUG (Free) - True Family Plus", | ||
| 283 | + "productRowID": "1-1UPG-27", | ||
| 284 | + "productCategory": "External", | ||
| 285 | + "productName": "16210129-CUGFRS15", | ||
| 286 | + "productType": "SOC/OFFER", | ||
| 287 | + "productLine": "True Mobile", | ||
| 288 | + "effectiveDate": "2020-01-09T12:20:56.000+0700", | ||
| 289 | + "status": "Active", | ||
| 290 | + "offerType": "CUG" | ||
| 291 | + }, | ||
| 292 | + { | ||
| 293 | + "assetRowID": "1-6XIP5WJ", | ||
| 294 | + "parAssetRowID": "1-6XIP5UU", | ||
| 295 | + "rootAssetRowID": "1-6XIP5UU", | ||
| 296 | + "assetNo": "COC1392733161593291436037", | ||
| 297 | + "partNum": "CO_16159329", | ||
| 298 | + "offerCode": "NOAHTS08", | ||
| 299 | + "offerName": "NOAHTS08-TrueID TV box Service fee 50 Baht recurring-TrueID TV Box Service fee", | ||
| 300 | + "productRowID": "1-1UQ9-103", | ||
| 301 | + "productCategory": "External", | ||
| 302 | + "productName": "16159329-NOAHTS08", | ||
| 303 | + "productType": "SOC/OFFER", | ||
| 304 | + "productLine": "True Mobile", | ||
| 305 | + "effectiveDate": "2020-01-09T11:57:22.000+0700", | ||
| 306 | + "expiryDate": "2020-01-10T11:28:35.000+0700", | ||
| 307 | + "status": "Inactive" | ||
| 308 | + }, | ||
| 309 | + { | ||
| 310 | + "assetRowID": "1-6XIP5VZ", | ||
| 311 | + "parAssetRowID": "1-6XIP5UU", | ||
| 312 | + "rootAssetRowID": "1-6XIP5UU", | ||
| 313 | + "assetNo": "trueIDTV1392733201192647", | ||
| 314 | + "serialNo": "trueIDTV-108628999", | ||
| 315 | + "productCode": "Product", | ||
| 316 | + "partNum": "trueIDTV", | ||
| 317 | + "offerName": "True ID TV", | ||
| 318 | + "productRowID": "1-3W58I9A", | ||
| 319 | + "productCategory": "External", | ||
| 320 | + "productName": "True ID TV", | ||
| 321 | + "productType": "TVG", | ||
| 322 | + "productLine": "True Mobile", | ||
| 323 | + "effectiveDate": "2020-01-09T11:57:22.000+0700", | ||
| 324 | + "status": "Active", | ||
| 325 | + "installDate": "2020-01-09T07:00:00.000+0700" | ||
| 326 | + }, | ||
| 327 | + { | ||
| 328 | + "assetRowID": "1-6XIP5WV", | ||
| 329 | + "parAssetRowID": "1-6XIP5UU", | ||
| 330 | + "rootAssetRowID": "1-6XIP5UU", | ||
| 331 | + "assetNo": "COC1392733312621434698", | ||
| 332 | + "partNum": "CO_31262", | ||
| 333 | + "offerCode": "BALANCELIMIT", | ||
| 334 | + "offerName": "BALANCELIMIT-Spending limit offer", | ||
| 335 | + "productRowID": "1-1TH-1838", | ||
| 336 | + "productCategory": "External", | ||
| 337 | + "productName": "31262-BALANCELIMIT", | ||
| 338 | + "productType": "SOC/OFFER", | ||
| 339 | + "productLine": "True Mobile", | ||
| 340 | + "effectiveDate": "2020-01-07T17:41:47.000+0700", | ||
| 341 | + "status": "Active", | ||
| 342 | + "offerType": "BALANCELIMIT" | ||
| 343 | + }, | ||
| 344 | + { | ||
| 345 | + "assetRowID": "1-6XIP5WB", | ||
| 346 | + "parAssetRowID": "1-6XIP5UU", | ||
| 347 | + "rootAssetRowID": "1-6XIP5UU", | ||
| 348 | + "assetNo": "COC1392733131024251425627", | ||
| 349 | + "partNum": "CO_13102425", | ||
| 350 | + "offerCode": "ITMBLS02", | ||
| 351 | + "offerName": "ITMBLS02-Itemized e-Bill Service-Itemized e-Bill Service", | ||
| 352 | + "productRowID": "1-1EKZ-20", | ||
| 353 | + "productCategory": "External", | ||
| 354 | + "productName": "13102425-ITMBLS02", | ||
| 355 | + "productType": "SOC/OFFER", | ||
| 356 | + "productLine": "True Mobile", | ||
| 357 | + "effectiveDate": "2019-12-23T18:22:24.000+0700", | ||
| 358 | + "status": "Active" | ||
| 359 | + }, | ||
| 360 | + { | ||
| 361 | + "assetRowID": "1-6XIP5WF", | ||
| 362 | + "parAssetRowID": "1-6XIP5UU", | ||
| 363 | + "rootAssetRowID": "1-6XIP5UU", | ||
| 364 | + "assetNo": "COC1392733155109271425625", | ||
| 365 | + "partNum": "CO_15510927", | ||
| 366 | + "offerCode": "PROFCVBAR", | ||
| 367 | + "offerName": "PROFCVBAR-First Call Verification, Barring - Additional-First Call Verification, Barring", | ||
| 368 | + "productRowID": "1-1KFG-151", | ||
| 369 | + "productCategory": "External", | ||
| 370 | + "productName": "15510927-PROFCVBAR", | ||
| 371 | + "productType": "SOC/OFFER", | ||
| 372 | + "productLine": "True Mobile", | ||
| 373 | + "effectiveDate": "2019-12-23T18:22:16.000+0700", | ||
| 374 | + "status": "Active" | ||
| 375 | + }, | ||
| 376 | + { | ||
| 377 | + "assetRowID": "1-6XIP5W3", | ||
| 378 | + "parAssetRowID": "1-6XIP5UU", | ||
| 379 | + "rootAssetRowID": "1-6XIP5UU", | ||
| 380 | + "assetNo": "CPC13927332630381425619", | ||
| 381 | + "partNum": "CP_263038", | ||
| 382 | + "offerCode": "BUSTBP11", | ||
| 383 | + "offerName": "BUSTBP11-Biz ThuukJai RC 599 Get 1,100 min-Biz ThuukJai RC 599", | ||
| 384 | + "productRowID": "1-4WK-5763", | ||
| 385 | + "productCategory": "External", | ||
| 386 | + "productName": "263038-BUSTBP11", | ||
| 387 | + "productType": "Price Plan", | ||
| 388 | + "productLine": "True Mobile", | ||
| 389 | + "effectiveDate": "2019-12-23T18:10:57.000+0700", | ||
| 390 | + "expiryDate": "2020-02-06T00:00:00.000+0700", | ||
| 391 | + "status": "Inactive", | ||
| 392 | + "offerType": "Price Plan" | ||
| 393 | + }, | ||
| 394 | + { | ||
| 395 | + "assetRowID": "1-6XIP5VN", | ||
| 396 | + "parAssetRowID": "1-6XIP5UU", | ||
| 397 | + "rootAssetRowID": "1-6XIP5UU", | ||
| 398 | + "assetNo": "CSC1392733201186614", | ||
| 399 | + "serialNo": "896600401500004362", | ||
| 400 | + "partNum": "Mobile SIM Card", | ||
| 401 | + "offerName": "Mobile SIM Card", | ||
| 402 | + "productRowID": "1-1U5-1570", | ||
| 403 | + "productCategory": "External", | ||
| 404 | + "productName": "Mobile SIM Card", | ||
| 405 | + "productType": "SIM Card", | ||
| 406 | + "productLine": "True Mobile", | ||
| 407 | + "effectiveDate": "2019-12-23T18:10:57.000+0700", | ||
| 408 | + "status": "Active", | ||
| 409 | + "installDate": "2019-12-23T07:00:00.000+0700" | ||
| 410 | + }, | ||
| 411 | + { | ||
| 412 | + "assetRowID": "1-6XIP5VR", | ||
| 413 | + "parAssetRowID": "1-6XIP5UU", | ||
| 414 | + "rootAssetRowID": "1-6XIP5UU", | ||
| 415 | + "assetNo": "CIC1392733201186615", | ||
| 416 | + "serialNo": "520002000004362", | ||
| 417 | + "partNum": "Mobile IMSI", | ||
| 418 | + "offerName": "Mobile IMSI", | ||
| 419 | + "productRowID": "1-1U5-1954", | ||
| 420 | + "productCategory": "External", | ||
| 421 | + "productName": "Mobile IMSI", | ||
| 422 | + "productType": "IMSI", | ||
| 423 | + "productLine": "True Mobile", | ||
| 424 | + "effectiveDate": "2019-12-23T18:10:57.000+0700", | ||
| 425 | + "status": "Active", | ||
| 426 | + "installDate": "2019-12-23T07:00:00.000+0700" | ||
| 427 | + }, | ||
| 428 | + { | ||
| 429 | + "assetRowID": "1-6XIP5XB", | ||
| 430 | + "parAssetRowID": "1-6XIP5UU", | ||
| 431 | + "rootAssetRowID": "1-6XIP5UU", | ||
| 432 | + "assetNo": "COC1392733793331425623", | ||
| 433 | + "partNum": "CO_79333", | ||
| 434 | + "offerCode": "RMGPSS51", | ||
| 435 | + "offerName": "RMGPSS51-GPRS SpecialRate(PP)0.002 bt/KB,Cap1500-GPRS SpRate-PP 0.002 bt/KB,Cap1500", | ||
| 436 | + "productRowID": "1-1TH-2516", | ||
| 437 | + "productCategory": "External", | ||
| 438 | + "productName": "79333-RMGPSS51", | ||
| 439 | + "productType": "SOC/OFFER", | ||
| 440 | + "productLine": "True Mobile", | ||
| 441 | + "effectiveDate": "2019-12-23T18:10:57.000+0700", | ||
| 442 | + "status": "Active" | ||
| 443 | + }, | ||
| 444 | + { | ||
| 445 | + "assetRowID": "1-6XIP5X7", | ||
| 446 | + "parAssetRowID": "1-6XIP5UU", | ||
| 447 | + "rootAssetRowID": "1-6XIP5UU", | ||
| 448 | + "assetNo": "COC1392733417011425622", | ||
| 449 | + "partNum": "CO_41701", | ||
| 450 | + "offerCode": "RMPGPS01", | ||
| 451 | + "offerName": "RMPGPS01-GPRS Provisioning SOC - RMV (HMMS,HINTERNET)-GPRS Provisioning - HMMS,HINTERNET", | ||
| 452 | + "productRowID": "1-1TH-1872", | ||
| 453 | + "productCategory": "External", | ||
| 454 | + "productName": "41701-RMPGPS01", | ||
| 455 | + "productType": "SOC/OFFER", | ||
| 456 | + "productLine": "True Mobile", | ||
| 457 | + "effectiveDate": "2019-12-23T18:10:57.000+0700", | ||
| 458 | + "expiryDate": "2020-01-13T15:58:33.000+0700", | ||
| 459 | + "status": "Inactive" | ||
| 460 | + }, | ||
| 461 | + { | ||
| 462 | + "assetRowID": "1-6XIP5X3", | ||
| 463 | + "parAssetRowID": "1-6XIP5UU", | ||
| 464 | + "rootAssetRowID": "1-6XIP5UU", | ||
| 465 | + "assetNo": "COC1392733416411425621", | ||
| 466 | + "partNum": "CO_41641", | ||
| 467 | + "offerCode": "RMHSPS02", | ||
| 468 | + "offerName": "RMHSPS02-Hi-Speed 3G/EDGE/GPRS 21.5 Mbps - PostPay (rev 42)-3G/EDGE/GPRS 21.5Mbps(rev to42Mbps)", | ||
| 469 | + "productRowID": "1-1TH-1869", | ||
| 470 | + "productCategory": "External", | ||
| 471 | + "productName": "41641-RMHSPS02", | ||
| 472 | + "productType": "SOC/OFFER", | ||
| 473 | + "productLine": "True Mobile", | ||
| 474 | + "effectiveDate": "2019-12-23T18:10:57.000+0700", | ||
| 475 | + "status": "Active" | ||
| 476 | + }, | ||
| 477 | + { | ||
| 478 | + "assetRowID": "1-6XIP5WZ", | ||
| 479 | + "parAssetRowID": "1-6XIP5UU", | ||
| 480 | + "rootAssetRowID": "1-6XIP5UU", | ||
| 481 | + "assetNo": "COC1392733409411425620", | ||
| 482 | + "partNum": "CO_40941", | ||
| 483 | + "offerCode": "PROSTDA1", | ||
| 484 | + "offerName": "PROSTDA1-Standard Provisioning Services for Post Pay # 1-Standard Provisioning for Post Pay", | ||
| 485 | + "productRowID": "1-1TH-1860", | ||
| 486 | + "productCategory": "External", | ||
| 487 | + "productName": "40941-PROSTDA1", | ||
| 488 | + "productType": "SOC/OFFER", | ||
| 489 | + "productLine": "True Mobile", | ||
| 490 | + "effectiveDate": "2019-12-23T18:10:57.000+0700", | ||
| 491 | + "status": "Active" | ||
| 492 | + }, | ||
| 493 | + { | ||
| 494 | + "assetRowID": "1-6XIP5WR", | ||
| 495 | + "parAssetRowID": "1-6XIP5UU", | ||
| 496 | + "rootAssetRowID": "1-6XIP5UU", | ||
| 497 | + "assetNo": "COC1392733200611425624", | ||
| 498 | + "partNum": "CO_20061", | ||
| 499 | + "offerCode": "CREDITLIMIT", | ||
| 500 | + "offerName": "CREDITLIMIT-Credit Limit offer", | ||
| 501 | + "productRowID": "1-1TH-1682", | ||
| 502 | + "productCategory": "External", | ||
| 503 | + "productName": "20061-CREDITLIMIT", | ||
| 504 | + "productType": "SOC/OFFER", | ||
| 505 | + "productLine": "True Mobile", | ||
| 506 | + "effectiveDate": "2019-12-23T18:10:57.000+0700", | ||
| 507 | + "status": "Active" | ||
| 508 | + }, | ||
| 509 | + { | ||
| 510 | + "assetRowID": "1-6XIP5VV", | ||
| 511 | + "parAssetRowID": "1-6XIP5UU", | ||
| 512 | + "rootAssetRowID": "1-6XIP5UU", | ||
| 513 | + "assetNo": "CMC1392733201186616", | ||
| 514 | + "serialNo": "MSISDN-0968730341", | ||
| 515 | + "productCode": "Product", | ||
| 516 | + "partNum": "MSISDN", | ||
| 517 | + "offerName": "MSISDN", | ||
| 518 | + "productRowID": "1-1UK76M", | ||
| 519 | + "productCategory": "External", | ||
| 520 | + "productName": "MSISDN", | ||
| 521 | + "productType": "MSISDN", | ||
| 522 | + "productLine": "True Mobile", | ||
| 523 | + "effectiveDate": "2019-12-23T18:10:57.000+0700", | ||
| 524 | + "status": "Active", | ||
| 525 | + "installDate": "2019-12-23T07:00:00.000+0700" | ||
| 526 | + }, | ||
| 527 | + { | ||
| 528 | + "assetRowID": "1-6XIP5W7", | ||
| 529 | + "parAssetRowID": "1-6XIP5UU", | ||
| 530 | + "rootAssetRowID": "1-6XIP5UU", | ||
| 531 | + "assetNo": "COC1392733114044121425618", | ||
| 532 | + "partNum": "CO_11404412", | ||
| 533 | + "offerCode": "RMV000000001641", | ||
| 534 | + "offerName": "RMV000000001641-Change ownership", | ||
| 535 | + "productRowID": "1-E87-1413", | ||
| 536 | + "productCategory": "External", | ||
| 537 | + "productName": "11404412-RMV000000001641", | ||
| 538 | + "productType": "SOC/OFFER", | ||
| 539 | + "productLine": "True Mobile", | ||
| 540 | + "effectiveDate": "2019-12-23T18:10:57.000+0700", | ||
| 541 | + "status": "Active" | ||
| 542 | + } | ||
| 543 | + ] | ||
| 544 | + } | ||
| 545 | 545 | ||
| 546 | - res.status(200).send(response) | 546 | + res.status(200).send(response) |
| 547 | } | 547 | } |
| 548 | \ No newline at end of file | 548 | \ No newline at end of file |
int.js
| @@ -77,6 +77,16 @@ module.exports.getFuturePromotionList = async (req, res) => { | @@ -77,6 +77,16 @@ module.exports.getFuturePromotionList = async (req, res) => { | ||
| 77 | } | 77 | } |
| 78 | } | 78 | } |
| 79 | 79 | ||
| 80 | + let responseErr1 = `{1 | ||
| 81 | + "getFuturePromotionListResponse": { | ||
| 82 | + "return": { | ||
| 83 | + "uuid": "ed41f948-565c-4900-a94d-ee63100e2fa4", | ||
| 84 | + "errorCode": "OSBbllngA10001", | ||
| 85 | + "message": "error." | ||
| 86 | + } | ||
| 87 | + } | ||
| 88 | + }` | ||
| 89 | + | ||
| 80 | let response = { | 90 | let response = { |
| 81 | "getFuturePromotionListResponse": { | 91 | "getFuturePromotionListResponse": { |
| 82 | "return": { | 92 | "return": { |
| @@ -0,0 +1,1078 @@ | @@ -0,0 +1,1078 @@ | ||
| 1 | +module.exports.getCheckBalance_SBMWSREALCCP = async (req, res) => { | ||
| 2 | + console.log('===== POST getCheckBalance =====') | ||
| 3 | + console.log('url', req.originalUrl); | ||
| 4 | + console.log('headers', req.headers); | ||
| 5 | + console.log('query', req.query); | ||
| 6 | + console.log('params', req.params); | ||
| 7 | + console.log('body', req.body); | ||
| 8 | + | ||
| 9 | + let responseErr = `<?xml version="1.0" encoding="UTF-8"?> | ||
| 10 | + <response result_namespace="SBM" | ||
| 11 | + result_code="70077779" | ||
| 12 | + result_desc="CRM_ESB" | ||
| 13 | + req_transaction_id="CCBS_TEST_SBM_001" | ||
| 14 | + transaction_id="2021070815531103900009" | ||
| 15 | + response_message="CRM_ESB"/>` | ||
| 16 | + | ||
| 17 | + let response = `<?xml version="1.0" encoding="UTF-8"?> | ||
| 18 | + <response result_namespace="SBM" result_code="0" result_desc="NO_STEP_PCRF" req_transaction_id="CCBS_TEST_SBM_001" transaction_id="20210627173451003000701" response_message="NO_STEP_PCRF"> | ||
| 19 | + <extra_xml> | ||
| 20 | + <chkbalance_response> | ||
| 21 | + <priceplan>R19NBPNE2</priceplan> | ||
| 22 | + <GPRSChargeFlag>V</GPRSChargeFlag> | ||
| 23 | + <steady_charge_type>V</steady_charge_type> | ||
| 24 | + <steady_speed>42.0Mbps</steady_speed> | ||
| 25 | + <language>TH</language> | ||
| 26 | + <billcycle/> | ||
| 27 | + <bundle>N</bundle> | ||
| 28 | + <packages size="3"> | ||
| 29 | + <package cancel_oc_imm="N" cancel_rc_imm="N" cancelable="N" code="IPK_DS_OC_ULMWIFI_FREE_365D" desc="เธเธฃเธต WiFi เนเธกเนเธญเธฑเนเธ เธเธฒเธ 12 เนเธเธทเธญเธ" end_date="2021-12-15 23:59:59" rcoc="OC" start_date="2020-12-16 14:20:14"/> | ||
| 30 | + <package cancel_oc_imm="N" cancel_rc_imm="N" cancelable="N" code="IPK_DS_OC_TRUEIDULM_FREE_365D" desc="เธเธฃเธต TrueID HD เนเธกเนเธเธณเธเธฑเธ เธเธฒเธ 12 เนเธเธทเธญเธ" end_date="2021-12-15 23:59:59" rcoc="OC" start_date="2020-12-16 14:20:08"/> | ||
| 31 | + <package cancel_oc_imm="N" cancel_rc_imm="N" cancelable="N" code="IPK_DS_OC_ULMFIX10M_FREE_365D" desc="เนเธเนเธเนเธกเนเธญเธฑเนเธ 10Mbps เธเธฒเธ 1เธเธต" end_date="2021-12-15 23:59:59" rcoc="OC" start_date="2020-12-16 14:20:14"/> | ||
| 32 | + </packages> | ||
| 33 | + <pool_services size="0"/> | ||
| 34 | + <pp_services size="0"/> | ||
| 35 | + <package_services size="3"> | ||
| 36 | + <package_service> | ||
| 37 | + <package_rcoc>OC</package_rcoc> | ||
| 38 | + <package_start_date>2020-12-16 14:20:08</package_start_date> | ||
| 39 | + <package_end_date>2021-12-15 23:59:59</package_end_date> | ||
| 40 | + <package_service_type>INSTM3GEG</package_service_type> | ||
| 41 | + <package_bundle_amount>Unlimited</package_bundle_amount> | ||
| 42 | + <package_bundle_unit>*</package_bundle_unit> | ||
| 43 | + <package_remain_amount>0</package_remain_amount> | ||
| 44 | + <package_code>IPK_DS_OC_TRUEIDULM_FREE_365D</package_code> | ||
| 45 | + <package_name>เธเธฃเธต TrueID HD เนเธกเนเธเธณเธเธฑเธ เธเธฒเธ 12 เนเธเธทเธญเธ</package_name> | ||
| 46 | + </package_service> | ||
| 47 | + <package_service> | ||
| 48 | + <package_rcoc>OC</package_rcoc> | ||
| 49 | + <package_start_date>2020-12-16 14:20:14</package_start_date> | ||
| 50 | + <package_end_date>2021-12-15 23:59:59</package_end_date> | ||
| 51 | + <package_service_type>WIFI</package_service_type> | ||
| 52 | + <package_bundle_amount>Unlimited</package_bundle_amount> | ||
| 53 | + <package_bundle_unit>*</package_bundle_unit> | ||
| 54 | + <package_remain_amount>0</package_remain_amount> | ||
| 55 | + <package_code>IPK_DS_OC_ULMWIFI_FREE_365D</package_code> | ||
| 56 | + <package_name>เธเธฃเธต WiFi เนเธกเนเธญเธฑเนเธ เธเธฒเธ 12 เนเธเธทเธญเธ</package_name> | ||
| 57 | + </package_service> | ||
| 58 | + <package_service> | ||
| 59 | + <package_rcoc>OC</package_rcoc> | ||
| 60 | + <package_start_date>2020-12-16 14:20:14</package_start_date> | ||
| 61 | + <package_end_date>2021-12-15 23:59:59</package_end_date> | ||
| 62 | + <package_service_type>STD3GEG</package_service_type> | ||
| 63 | + <package_bundle_amount>Unlimited</package_bundle_amount> | ||
| 64 | + <package_bundle_unit>*</package_bundle_unit> | ||
| 65 | + <package_remain_amount>0</package_remain_amount> | ||
| 66 | + <package_code>IPK_DS_OC_ULMFIX10M_FREE_365D</package_code> | ||
| 67 | + <package_name>เนเธเนเธเนเธกเนเธญเธฑเนเธ 10Mbps เธเธฒเธ 1เธเธต</package_name> | ||
| 68 | + </package_service> | ||
| 69 | + </package_services> | ||
| 70 | + <fair_use/> | ||
| 71 | + </chkbalance_response> | ||
| 72 | + </extra_xml> | ||
| 73 | + </response>` | ||
| 74 | + | ||
| 75 | + let response1 = `<response result_namespace="SBM" | ||
| 76 | + result_code="0" | ||
| 77 | + transaction_id="10222232221" | ||
| 78 | + req_transaction_id="111" | ||
| 79 | + response_message="see extra_xml" | ||
| 80 | + result_desc=""> | ||
| 81 | + <extra_xml> | ||
| 82 | + <chkbalance_response> | ||
| 83 | + <priceplan>IPK_DS_OC_XXXX</priceplan> | ||
| 84 | + <GPRSChargeFlag>T</GPRSChargeFlag> | ||
| 85 | + <steady_charge_type>T</steady_charge_type> | ||
| 86 | + <steady_speed>512Kbps</steady_speed> | ||
| 87 | + <language>EN</language> | ||
| 88 | + <billcycle/> | ||
| 89 | + <bundle>Y</bundle> | ||
| 90 | + <packages size="3"> | ||
| 91 | + <package code="GPAC3S02" | ||
| 92 | + rcoc="OC" | ||
| 93 | + desc="Buy this pack for free! Unlimited monthly" | ||
| 94 | + cancelable="N" | ||
| 95 | + cancel_rc_imm="Y" | ||
| 96 | + cancel_oc_imm="Y" | ||
| 97 | + start_date="2010-09-06 23:59:59" | ||
| 98 | + end_date="2010-09-06 23:59:59"/> | ||
| 99 | + <package code="GPAC3S02" | ||
| 100 | + rcoc="OC" | ||
| 101 | + desc="Buy this pack for free! Unlimited monthly" | ||
| 102 | + cancelable="N" | ||
| 103 | + cancel_rc_imm="Y" | ||
| 104 | + cancel_oc_imm="Y" | ||
| 105 | + start_date="2010-09-06 23:59:59" | ||
| 106 | + end_date="2010-09-06 23:59:59"/> | ||
| 107 | + <package code="GPAC3S02" | ||
| 108 | + rcoc="OC" | ||
| 109 | + desc="Buy this pack for free! Unlimited monthly" | ||
| 110 | + cancelable="N" | ||
| 111 | + cancel_rc_imm="Y" | ||
| 112 | + cancel_oc_imm="Y" | ||
| 113 | + start_date="2010-09-06 23:59:59" | ||
| 114 | + end_date="2010-09-06 23:59:59"/> | ||
| 115 | + </packages> | ||
| 116 | + <pool_services size="2"> | ||
| 117 | + <pool_service> | ||
| 118 | + <pool_rcoc>OC</pool_rcoc> | ||
| 119 | + <pool_service_type>WEG</pool_service_type> | ||
| 120 | + <pool_start_date>2009-09-06 00:00:00</pool_start_date> | ||
| 121 | + <pool_end_date>2010-09-06 23:59:59</pool_end_date> | ||
| 122 | + <pool_bundle_amount>1200</pool_bundle_amount> | ||
| 123 | + <pool_bundle_unit>T</pool_bundle_unit> | ||
| 124 | + <pool_bundle_remain>100</pool_bundle_remain> | ||
| 125 | + </pool_service> | ||
| 126 | + <pool_service> | ||
| 127 | + <pool_rcoc>OC</pool_rcoc> | ||
| 128 | + <pool_service_type>3GEG</pool_service_type> | ||
| 129 | + <pool_start_date>2009-09-06 00:00:00</pool_start_date> | ||
| 130 | + <pool_end_date>2010-09-06 23:59:59</pool_end_date> | ||
| 131 | + <pool_bundle_amount>1200</pool_bundle_amount> | ||
| 132 | + <pool_bundle_unit>T</pool_bundle_unit> | ||
| 133 | + <pool_bundle_remain>100</pool_bundle_remain> | ||
| 134 | + </pool_service> | ||
| 135 | + </pool_services> | ||
| 136 | + <pp_services size="5"> | ||
| 137 | + <pp_service> | ||
| 138 | + <pp_rcoc>RCQWEQW</pp_rcoc> | ||
| 139 | + <pp_start_date>2009-09-06 00:00:00</pp_start_date> | ||
| 140 | + <pp_end_date>-</pp_end_date> | ||
| 141 | + <pp_service_type>Voice</pp_service_type> | ||
| 142 | + <pp_bundle_amount>12000</pp_bundle_amount> | ||
| 143 | + <pp_bundle_unit>T</pp_bundle_unit> | ||
| 144 | + <pp_remain_amount>9300</pp_remain_amount> | ||
| 145 | + </pp_service> | ||
| 146 | + <pp_service> | ||
| 147 | + <pp_rcoc>OCQWEQWE</pp_rcoc> | ||
| 148 | + <pp_start_date>2009-09-06 00:00:00</pp_start_date> | ||
| 149 | + <pp_end_date>2010-09-06 23:59:59</pp_end_date> | ||
| 150 | + <pp_service_type>Voice</pp_service_type> | ||
| 151 | + <pp_bundle_amount>2048</pp_bundle_amount> | ||
| 152 | + <pp_bundle_unit>V</pp_bundle_unit> | ||
| 153 | + <pp_remain_amount>700</pp_remain_amount> | ||
| 154 | + </pp_service> | ||
| 155 | + <pp_service> | ||
| 156 | + <pp_rcoc>OC</pp_rcoc> | ||
| 157 | + <pp_start_date>-</pp_start_date> | ||
| 158 | + <pp_end_date>-</pp_end_date> | ||
| 159 | + <pp_service_type>Voice</pp_service_type> | ||
| 160 | + <pp_bundle_amount>Unlimited</pp_bundle_amount> | ||
| 161 | + <pp_bundle_unit>T</pp_bundle_unit> | ||
| 162 | + <pp_remain_amount>0</pp_remain_amount> | ||
| 163 | + </pp_service> | ||
| 164 | + <pp_service> | ||
| 165 | + <pp_rcoc>RC</pp_rcoc> | ||
| 166 | + <pp_service_type>Voice</pp_service_type> | ||
| 167 | + <pp_start_date>2009-09-06 00:00:00</pp_start_date> | ||
| 168 | + <pp_end_date>2010-09-06 23:59:59</pp_end_date> | ||
| 169 | + <pp_bundle_amount>SHARED</pp_bundle_amount> | ||
| 170 | + <pp_bundle_unit>T</pp_bundle_unit> | ||
| 171 | + <pp_remain_amount>100</pp_remain_amount> | ||
| 172 | + </pp_service> | ||
| 173 | + <pp_service> | ||
| 174 | + <pp_rcoc>OC</pp_rcoc> | ||
| 175 | + <pp_service_type>EG</pp_service_type> | ||
| 176 | + <pp_start_date>2009-09-06 00:00:00</pp_start_date> | ||
| 177 | + <pp_end_date>2010-09-06 23:59:59</pp_end_date> | ||
| 178 | + <pp_bundle_amount>1200</pp_bundle_amount> | ||
| 179 | + <pp_bundle_unit>T</pp_bundle_unit> | ||
| 180 | + <pp_remain_amount>100</pp_remain_amount> | ||
| 181 | + </pp_service> | ||
| 182 | + <pp_service> | ||
| 183 | + <pp_rcoc>OC</pp_rcoc> | ||
| 184 | + <pp_start_date>2009-09-06 00:00:00</pp_start_date> | ||
| 185 | + <pp_end_date>2010-09-06 23:59:59</pp_end_date> | ||
| 186 | + <pp_service_type>EG</pp_service_type> | ||
| 187 | + <pp_bundle_amount>1200</pp_bundle_amount> | ||
| 188 | + <pp_bundle_unit>V</pp_bundle_unit> | ||
| 189 | + <pp_remain_amount>0</pp_remain_amount> | ||
| 190 | + </pp_service> | ||
| 191 | + <pp_service> | ||
| 192 | + <pp_rcoc>RC</pp_rcoc> | ||
| 193 | + <pp_start_date>2009-09-06 00:00:00</pp_start_date> | ||
| 194 | + <pp_end_date>2010-09-06 23:59:59</pp_end_date> | ||
| 195 | + <pp_service_type>EG</pp_service_type> | ||
| 196 | + <pp_bundle_amount>Unlimited</pp_bundle_amount> | ||
| 197 | + <pp_bundle_unit>V</pp_bundle_unit> | ||
| 198 | + <pp_remain_amount>0</pp_remain_amount> | ||
| 199 | + </pp_service> | ||
| 200 | + <pp_service> | ||
| 201 | + <pp_rcoc>RC</pp_rcoc> | ||
| 202 | + <pp_start_date>2009-09-06 00:00:00</pp_start_date> | ||
| 203 | + <pp_end_date>2010-09-06 23:59:59</pp_end_date> | ||
| 204 | + <pp_service_type>EG</pp_service_type> | ||
| 205 | + <pp_bundle_amount>SHARED</pp_bundle_amount> | ||
| 206 | + <pp_bundle_unit>V</pp_bundle_unit> | ||
| 207 | + <pp_remain_amount>10</pp_remain_amount> | ||
| 208 | + </pp_service> | ||
| 209 | + </pp_services> | ||
| 210 | + <package_services size="7"> | ||
| 211 | + <package_service> | ||
| 212 | + <package_rcoc>OC</package_rcoc> | ||
| 213 | + <package_start_date>2009-09-06 00:00:00</package_start_date> | ||
| 214 | + <package_end_date>2010-09-06 23:59:59</package_end_date> | ||
| 215 | + <package_service_type>EG</package_service_type> | ||
| 216 | + <package_bundle_amount>12000</package_bundle_amount> | ||
| 217 | + <package_bundle_unit>T</package_bundle_unit> | ||
| 218 | + <package_remain_amount>0</package_remain_amount> | ||
| 219 | + <package_code>GPAC3S07</package_code> | ||
| 220 | + </package_service> | ||
| 221 | + <package_service> | ||
| 222 | + <package_rcoc>RC</package_rcoc> | ||
| 223 | + <package_start_date>2009-09-06 00:00:00</package_start_date> | ||
| 224 | + <package_end_date>-</package_end_date> | ||
| 225 | + <package_service_type>EG</package_service_type> | ||
| 226 | + <package_bundle_amount>13500</package_bundle_amount> | ||
| 227 | + <package_bundle_unit>T</package_bundle_unit> | ||
| 228 | + <package_remain_amount>0</package_remain_amount> | ||
| 229 | + <package_code>GPAC3S07</package_code> | ||
| 230 | + </package_service> | ||
| 231 | + <package_service> | ||
| 232 | + <package_rcoc>RC</package_rcoc> | ||
| 233 | + <package_start_date>2009-09-06 00:00:00</package_start_date> | ||
| 234 | + <package_end_date>-</package_end_date> | ||
| 235 | + <package_service_type>EG</package_service_type> | ||
| 236 | + <package_bundle_amount>8600</package_bundle_amount> | ||
| 237 | + <package_bundle_unit>T</package_bundle_unit> | ||
| 238 | + <package_remain_amount>0</package_remain_amount> | ||
| 239 | + <package_code>GPAC3S07</package_code> | ||
| 240 | + </package_service> | ||
| 241 | + <package_service> | ||
| 242 | + <package_rcoc>OC</package_rcoc> | ||
| 243 | + <package_start_date>2009-09-06 00:00:00</package_start_date> | ||
| 244 | + <package_end_date>2010-09-06 23:59:59</package_end_date> | ||
| 245 | + <package_service_type>EG</package_service_type> | ||
| 246 | + <package_bundle_amount>8600</package_bundle_amount> | ||
| 247 | + <package_bundle_unit>T</package_bundle_unit> | ||
| 248 | + <package_remain_amount>0</package_remain_amount> | ||
| 249 | + <package_code>GPAC3S07</package_code> | ||
| 250 | + </package_service> | ||
| 251 | + <package_service> | ||
| 252 | + <package_rcoc>RC</package_rcoc> | ||
| 253 | + <package_service_type>EG</package_service_type> | ||
| 254 | + <package_start_date>2009-09-06 00:00:00</package_start_date> | ||
| 255 | + <package_end_date>2010-09-06 23:59:59</package_end_date> | ||
| 256 | + <package_bundle_amount>100</package_bundle_amount> | ||
| 257 | + <package_bundle_unit>T</package_bundle_unit> | ||
| 258 | + <package_remain_amount>100</package_remain_amount> | ||
| 259 | + <package_code>GPAC3S05</package_code> | ||
| 260 | + </package_service> | ||
| 261 | + <package_service> | ||
| 262 | + <package_rcoc>OC</package_rcoc> | ||
| 263 | + <package_service_type>EG</package_service_type> | ||
| 264 | + <package_start_date>2009-09-06 00:00:00</package_start_date> | ||
| 265 | + <package_end_date>2010-09-06 23:59:59</package_end_date> | ||
| 266 | + <package_bundle_amount>SHARED</package_bundle_amount> | ||
| 267 | + <package_bundle_unit>T</package_bundle_unit> | ||
| 268 | + <package_remain_amount>0</package_remain_amount> | ||
| 269 | + <package_code>GPAC3S05</package_code> | ||
| 270 | + </package_service> | ||
| 271 | + <package_service> | ||
| 272 | + <package_rcoc>OC</package_rcoc> | ||
| 273 | + <package_service_type>EG</package_service_type> | ||
| 274 | + <package_start_date>2009-09-06 00:00:00</package_start_date> | ||
| 275 | + <package_end_date>2010-09-06 23:59:59</package_end_date> | ||
| 276 | + <package_bundle_amount>SHARED</package_bundle_amount> | ||
| 277 | + <package_bundle_unit>T</package_bundle_unit> | ||
| 278 | + <package_remain_amount>0</package_remain_amount> | ||
| 279 | + <package_code>GPAC3S05</package_code> | ||
| 280 | + </package_service> | ||
| 281 | + <package_service> | ||
| 282 | + <package_rcoc>RC</package_rcoc> | ||
| 283 | + <package_service_type>EG</package_service_type> | ||
| 284 | + <package_start_date>2009-09-06 00:00:00</package_start_date> | ||
| 285 | + <package_end_date>2010-09-06 23:59:59</package_end_date> | ||
| 286 | + <package_bundle_amount>100</package_bundle_amount> | ||
| 287 | + <package_bundle_unit>T</package_bundle_unit> | ||
| 288 | + <package_remain_amount>50</package_remain_amount> | ||
| 289 | + <package_code>GPAC3S05</package_code> | ||
| 290 | + </package_service> | ||
| 291 | + <package_service> | ||
| 292 | + <package_rcoc>OC</package_rcoc> | ||
| 293 | + <package_start_date>2009-09-06 00:00:00</package_start_date> | ||
| 294 | + <package_end_date>2010-09-06 23:59:59</package_end_date> | ||
| 295 | + <package_service_type>EG</package_service_type> | ||
| 296 | + <package_bundle_amount>Unlimited</package_bundle_amount> | ||
| 297 | + <package_bundle_unit>T</package_bundle_unit> | ||
| 298 | + <package_remain_amount>0</package_remain_amount> | ||
| 299 | + <package_code>GPAC3S061</package_code> | ||
| 300 | + </package_service> | ||
| 301 | + <package_service> | ||
| 302 | + <package_rcoc>RC</package_rcoc> | ||
| 303 | + <package_start_date>2009-09-06 00:00:00</package_start_date> | ||
| 304 | + <package_end_date>-</package_end_date> | ||
| 305 | + <package_service_type>EG</package_service_type> | ||
| 306 | + <package_bundle_amount>Unlimited</package_bundle_amount> | ||
| 307 | + <package_bundle_unit>T</package_bundle_unit> | ||
| 308 | + <package_remain_amount>0</package_remain_amount> | ||
| 309 | + <package_code>GPAC3S06</package_code> | ||
| 310 | + </package_service> | ||
| 311 | + </package_services> | ||
| 312 | + <fair_use> | ||
| 313 | + <qos_size>1</qos_size> | ||
| 314 | + <qos_detail type="STEP"> | ||
| 315 | + <qos_pack_type>IPK</qos_pack_type> | ||
| 316 | + <qos_package>IPK_DS_OC_XXXX</qos_package> | ||
| 317 | + <qos_service_type>3GEG</qos_service_type> | ||
| 318 | + <qos_status>A</qos_status> | ||
| 319 | + <qos_start_date>2010-10-04 12:30:20</qos_start_date> | ||
| 320 | + <qos_end_date>2010-11-03 23:59:59</qos_end_date> | ||
| 321 | + <qos_unit>V</qos_unit> | ||
| 322 | + <qos_remain_amount>500</qos_remain_amount> | ||
| 323 | + <qos_use_amount>5500</qos_use_amount> | ||
| 324 | + <qos_ava>6000</qos_ava> | ||
| 325 | + <qos_shape_speed>512Kbps</qos_shape_speed> | ||
| 326 | + <qos_max_speed>42Mbps</qos_max_speed> | ||
| 327 | + </qos_detail> | ||
| 328 | + <qos_detail type="CAP_MAX"> | ||
| 329 | + <qos_start_date>2010-10-04 12:30:20</qos_start_date> | ||
| 330 | + <qos_end_date>2010-11-03 23:59:59</qos_end_date> | ||
| 331 | + <qos_max_speed>42Mbps</qos_max_speed> | ||
| 332 | + </qos_detail> | ||
| 333 | + <qos_detail type="BLACKLIST"> | ||
| 334 | + <qos_start_date>2010-10-04 12:30:20</qos_start_date> | ||
| 335 | + <qos_end_date/> | ||
| 336 | + <qos_max_speed>42Mbps</qos_max_speed> | ||
| 337 | + </qos_detail> | ||
| 338 | + </fair_use> | ||
| 339 | + </chkbalance_response> | ||
| 340 | + </extra_xml> | ||
| 341 | + </response>` | ||
| 342 | + | ||
| 343 | + res.status(200).send(response1) | ||
| 344 | +} | ||
| 345 | + | ||
| 346 | +module.exports.getCheckBalance_SBMWSREAL = async (req, res) => { | ||
| 347 | + console.log('===== POST getCheckBalance =====') | ||
| 348 | + console.log('url', req.originalUrl); | ||
| 349 | + console.log('headers', req.headers); | ||
| 350 | + console.log('query', req.query); | ||
| 351 | + console.log('params', req.params); | ||
| 352 | + console.log('body', req.body); | ||
| 353 | + | ||
| 354 | + let responseErr = `<?xml version="1.0" encoding="UTF-8"?> | ||
| 355 | + <response result_namespace="SBM" | ||
| 356 | + result_code="70077779" | ||
| 357 | + result_desc="CRM_ESB" | ||
| 358 | + req_transaction_id="CCBS_TEST_SBM_001" | ||
| 359 | + transaction_id="2021070815531103900009" | ||
| 360 | + response_message="CRM_ESB"/>` | ||
| 361 | + | ||
| 362 | + let response = `<?xml version="1.0" encoding="UTF-8"?> | ||
| 363 | + <response result_namespace="SBM" | ||
| 364 | + result_code="0" | ||
| 365 | + transaction_id="10222232221" | ||
| 366 | + req_transaction_id="111" | ||
| 367 | + response_message="see extra_xml" | ||
| 368 | + result_desc=""> | ||
| 369 | + <extra_xml> | ||
| 370 | + <dmc_response> | ||
| 371 | + <transaction_id>00001</transaction_id> | ||
| 372 | + <result_code>1</result_code> | ||
| 373 | + <result_description>SUCCESS</result_description> | ||
| 374 | + <account_type>POS</account_type> | ||
| 375 | + <priceplan>FV1B1M</priceplan> | ||
| 376 | + <charge_type>T</charge_type> | ||
| 377 | + <status>A</status> | ||
| 378 | + <language>EN</language> | ||
| 379 | + <bundle>Y</bundle> | ||
| 380 | + <speed>512KB</speed> | ||
| 381 | + <gprs_cap>2500</gprs_cap> | ||
| 382 | + <pay_per_use_charge>9</pay_per_use_charge> | ||
| 383 | + <pay_per_use_amount>9</pay_per_use_amount> | ||
| 384 | + <pay_per_use_unit>V</pay_per_use_unit> | ||
| 385 | + <parent_msisdn>66891288123</parent_msisdn> | ||
| 386 | + <number_of_child>2</number_of_child> | ||
| 387 | + <list_of_child>66866716795</list_of_child> | ||
| 388 | + <pp_wallet_share>N</pp_wallet_share> | ||
| 389 | + <pp_service_size>2</pp_service_size> | ||
| 390 | + <package_size>2</package_size> | ||
| 391 | + <pp_services> | ||
| 392 | + <pp_service> | ||
| 393 | + <pp_id>1234</pp_id> | ||
| 394 | + <pp_type>Recurring</pp_type> | ||
| 395 | + <pp_start_date>2009-09-06 00:00:00</pp_start_date> | ||
| 396 | + <pp_end_date>2010-09-06 23:59:59</pp_end_date> | ||
| 397 | + <pp_service_type>EG</pp_service_type> | ||
| 398 | + <pp_bundle_amount>1200</pp_bundle_amount> | ||
| 399 | + <pp_bundle_unit>T</pp_bundle_unit> | ||
| 400 | + <pp_remain_amount>100</pp_remain_amount> | ||
| 401 | + </pp_service> | ||
| 402 | + <pp_service> | ||
| 403 | + <pp_id>1235</pp_id> | ||
| 404 | + <pp_type>Recurring</pp_type> | ||
| 405 | + <pp_start_date>2009-09-06 00:00:00</pp_start_date> | ||
| 406 | + <pp_end_date>2010-09-06 23:59:59</pp_end_date> | ||
| 407 | + <pp_service_type>WIFI</pp_service_type> | ||
| 408 | + <pp_bundle_amount>1200</pp_bundle_amount> | ||
| 409 | + <pp_bundle_unit>T</pp_bundle_unit> | ||
| 410 | + <pp_remain_amount>900</pp_remain_amount> | ||
| 411 | + </pp_service> | ||
| 412 | + </pp_services> | ||
| 413 | + <packages> | ||
| 414 | + <package> | ||
| 415 | + <pack_code>GPAC3S05</pack_code> | ||
| 416 | + <pack_description>Buy this pack for free! Unlimited monthly</pack_description> | ||
| 417 | + <cancelable>Y</cancelable> | ||
| 418 | + <speed>512KB</speed> | ||
| 419 | + <service_size>1</service_size> | ||
| 420 | + <services> | ||
| 421 | + <service> | ||
| 422 | + <pack_id>2973</pack_id> | ||
| 423 | + <pack_type>Recurring</pack_type> | ||
| 424 | + <start_date>2009-09-06 00:00:00</start_date> | ||
| 425 | + <end_date>2009-10-06 23:59:59</end_date> | ||
| 426 | + <service_type>EG</service_type> | ||
| 427 | + <bundle_amount>1200</bundle_amount> | ||
| 428 | + <bundle_unit>T</bundle_unit> | ||
| 429 | + <remain_amount>1200</remain_amount> | ||
| 430 | + </service> | ||
| 431 | + </services> | ||
| 432 | + </package> | ||
| 433 | + <package> | ||
| 434 | + <pack_code>GPAC3S05</pack_code> | ||
| 435 | + <pack_description>Buy this pack for free! Unlimited monthly</pack_description> | ||
| 436 | + <cancelable>N</cancelable> | ||
| 437 | + <speed>512KB</speed> | ||
| 438 | + <service_size>1</service_size> | ||
| 439 | + <services> | ||
| 440 | + <service> | ||
| 441 | + <pack_id>2974</pack_id> | ||
| 442 | + <pack_type>NextRC</pack_type> | ||
| 443 | + <start_date>2009-10-07 00:00:00</start_date> | ||
| 444 | + <end_date>2009-11-07 00:00:00</end_date> | ||
| 445 | + <service_type>EG</service_type> | ||
| 446 | + <bundle_amount>1200</bundle_amount> | ||
| 447 | + <bundle_unit>T</bundle_unit> | ||
| 448 | + <remain_amount>1200</remain_amount> | ||
| 449 | + </service> | ||
| 450 | + </services> | ||
| 451 | + </package> | ||
| 452 | + </packages> | ||
| 453 | + <fair_use> | ||
| 454 | + <qos_size>2</qos_size> | ||
| 455 | + <qos_details> | ||
| 456 | + <qos_detail> | ||
| 457 | + <qos_pack_type>Package</qos_pack_type> | ||
| 458 | + <qos_package>FV1B1M</qos_package> | ||
| 459 | + <qos_service_type>3G</qos_service_type> | ||
| 460 | + <qos_status>A</qos_status> | ||
| 461 | + <qos_start_date>2010-10-04 12:30:20</qos_start_date> | ||
| 462 | + <qos_end_date>2010-11-03 23:59:59</qos_end_date> | ||
| 463 | + <qos_unit>V</qos_unit> | ||
| 464 | + <qos_remain_amount>0</qos_remain_amount> | ||
| 465 | + <qos_use_amount>5120</qos_use_amount> | ||
| 466 | + <qos_cap_max>5120</qos_cap_max> | ||
| 467 | + <qos_cap_speed>256KB</qos_cap_speed> | ||
| 468 | + </qos_detail> | ||
| 469 | + <qos_detail> | ||
| 470 | + <qos_pack_type>priceplan</qos_pack_type> | ||
| 471 | + <qos_package>IPACKP04</qos_package> | ||
| 472 | + <qos_service_type>3G</qos_service_type> | ||
| 473 | + <qos_status>E</qos_status> | ||
| 474 | + <qos_start_date>2010-10-04 12:30:20</qos_start_date> | ||
| 475 | + <qos_end_date>2010-11-03 23:59:59</qos_end_date> | ||
| 476 | + <qos_unit>V</qos_unit> | ||
| 477 | + <qos_remain_amount>5120</qos_remain_amount> | ||
| 478 | + <qos_use_amount>0</qos_use_amount> | ||
| 479 | + <qos_cap_max>5120</qos_cap_max> | ||
| 480 | + <qos_cap_speed>256KB</qos_cap_speed> | ||
| 481 | + </qos_detail> | ||
| 482 | + </qos_details> | ||
| 483 | + </fair_use> | ||
| 484 | + </dmc_response> | ||
| 485 | + </extra_xml> | ||
| 486 | +</response>` | ||
| 487 | + | ||
| 488 | + let response1 = `<?xml version="1.0" encoding="UTF-8"?> | ||
| 489 | +<response result_namespace="SBM" result_code="0" transaction_id="10222232221" req_transaction_id="111" response_message="see extra_xml" result_desc=""> | ||
| 490 | + <extra_xml> | ||
| 491 | + <dmc_response> | ||
| 492 | + <transaction_id>00001</transaction_id> | ||
| 493 | + <result_code>1</result_code> | ||
| 494 | + <result_description>SUCCESS</result_description> | ||
| 495 | + <account_type>POS</account_type> | ||
| 496 | + <priceplan>FV1B1M</priceplan> | ||
| 497 | + <charge_type>T</charge_type> | ||
| 498 | + <status>A</status> | ||
| 499 | + <language>EN</language> | ||
| 500 | + <bundle>Y</bundle> | ||
| 501 | + <speed>512KB</speed> | ||
| 502 | + <gprs_cap>2500</gprs_cap> | ||
| 503 | + <pay_per_use_charge>9</pay_per_use_charge> | ||
| 504 | + <pay_per_use_amount>9</pay_per_use_amount> | ||
| 505 | + <pay_per_use_unit>V</pay_per_use_unit> | ||
| 506 | + <parent_msisdn>66891288123</parent_msisdn> | ||
| 507 | + <number_of_child>2</number_of_child> | ||
| 508 | + <list_of_child>66866716795</list_of_child> | ||
| 509 | + <pp_wallet_share>N</pp_wallet_share> | ||
| 510 | + <pp_service_size>2</pp_service_size> | ||
| 511 | + <package_size>2</package_size> | ||
| 512 | + <pp_services> | ||
| 513 | + <pp_service> | ||
| 514 | + <pp_id>1234</pp_id> | ||
| 515 | + <pp_type>Recurring</pp_type> | ||
| 516 | + <pp_start_date>2009-09-06 00:00:00</pp_start_date> | ||
| 517 | + <pp_end_date>2010-09-06 23:59:59</pp_end_date> | ||
| 518 | + <pp_service_type>EG</pp_service_type> | ||
| 519 | + <pp_bundle_amount>1200</pp_bundle_amount> | ||
| 520 | + <pp_bundle_unit>T</pp_bundle_unit> | ||
| 521 | + <pp_remain_amount>100</pp_remain_amount> | ||
| 522 | + </pp_service> | ||
| 523 | + <pp_service> | ||
| 524 | + <pp_id>1235</pp_id> | ||
| 525 | + <pp_type>Recurring</pp_type> | ||
| 526 | + <pp_start_date>2009-09-06 00:00:00</pp_start_date> | ||
| 527 | + <pp_end_date>2010-09-06 23:59:59</pp_end_date> | ||
| 528 | + <pp_service_type>WIFI</pp_service_type> | ||
| 529 | + <pp_bundle_amount>1200</pp_bundle_amount> | ||
| 530 | + <pp_bundle_unit>T</pp_bundle_unit> | ||
| 531 | + <pp_remain_amount>900</pp_remain_amount> | ||
| 532 | + </pp_service> | ||
| 533 | + </pp_services> | ||
| 534 | + <packages> | ||
| 535 | + <package> | ||
| 536 | + <pack_code>GPAC3S05</pack_code> | ||
| 537 | + <pack_description>Buy this pack for free! Unlimited monthly</pack_description> | ||
| 538 | + <cancelable>Y</cancelable> | ||
| 539 | + <speed>512KB</speed> | ||
| 540 | + <service_size>1</service_size> | ||
| 541 | + <services> | ||
| 542 | + <service> | ||
| 543 | + <pack_id>2973</pack_id> | ||
| 544 | + <pack_type>Recurring</pack_type> | ||
| 545 | + <start_date>2009-09-06 00:00:00</start_date> | ||
| 546 | + <end_date>2009-10-06 23:59:59</end_date> | ||
| 547 | + <service_type>EG</service_type> | ||
| 548 | + <bundle_amount>1200</bundle_amount> | ||
| 549 | + <bundle_unit>T</bundle_unit> | ||
| 550 | + <remain_amount>1200</remain_amount> | ||
| 551 | + </service> | ||
| 552 | + </services> | ||
| 553 | + </package> | ||
| 554 | + <package> | ||
| 555 | + <pack_code>GPAC3S05</pack_code> | ||
| 556 | + <pack_description>Buy this pack for free! Unlimited monthly</pack_description> | ||
| 557 | + <cancelable>N</cancelable> | ||
| 558 | + <speed>512KB</speed> | ||
| 559 | + <service_size>1</service_size> | ||
| 560 | + <services> | ||
| 561 | + <service> | ||
| 562 | + <pack_id>2974</pack_id> | ||
| 563 | + <pack_type>NextRC</pack_type> | ||
| 564 | + <start_date>2009-10-07 00:00:00</start_date> | ||
| 565 | + <end_date>2009-11-07 00:00:00</end_date> | ||
| 566 | + <service_type>EG</service_type> | ||
| 567 | + <bundle_amount>1200</bundle_amount> | ||
| 568 | + <bundle_unit>T</bundle_unit> | ||
| 569 | + <remain_amount>1200</remain_amount> | ||
| 570 | + </service> | ||
| 571 | + </services> | ||
| 572 | + </package> | ||
| 573 | + </packages> | ||
| 574 | + <fair_use> | ||
| 575 | + <qos_size>2</qos_size> | ||
| 576 | + <qos_details> | ||
| 577 | + <qos_detail> | ||
| 578 | + <qos_pack_type>Package</qos_pack_type> | ||
| 579 | + <qos_package>IPHONE4</qos_package> | ||
| 580 | + <qos_service_type>3G</qos_service_type> | ||
| 581 | + <qos_status>A</qos_status> | ||
| 582 | + <qos_start_date>2010-10-04 12:30:20</qos_start_date> | ||
| 583 | + <qos_end_date>2010-11-03 23:59:59</qos_end_date> | ||
| 584 | + <qos_unit>V</qos_unit> | ||
| 585 | + <qos_remain_amount>0</qos_remain_amount> | ||
| 586 | + <qos_use_amount>5120</qos_use_amount> | ||
| 587 | + <qos_cap_max>5120</qos_cap_max> | ||
| 588 | + <qos_cap_speed>256KB</qos_cap_speed> | ||
| 589 | + </qos_detail> | ||
| 590 | + <qos_detail> | ||
| 591 | + <qos_pack_type>priceplan</qos_pack_type> | ||
| 592 | + <qos_package>IPACKP04</qos_package> | ||
| 593 | + <qos_service_type>3G</qos_service_type> | ||
| 594 | + <qos_status>E</qos_status> | ||
| 595 | + <qos_start_date>2010-10-04 12:30:20</qos_start_date> | ||
| 596 | + <qos_end_date>2010-11-03 23:59:59</qos_end_date> | ||
| 597 | + <qos_unit>V</qos_unit> | ||
| 598 | + <qos_remain_amount>5120</qos_remain_amount> | ||
| 599 | + <qos_use_amount>0</qos_use_amount> | ||
| 600 | + <qos_cap_max>5120</qos_cap_max> | ||
| 601 | + <qos_cap_speed>256KB</qos_cap_speed> | ||
| 602 | + </qos_detail> | ||
| 603 | + </qos_details> | ||
| 604 | + </fair_use> | ||
| 605 | + </dmc_response> | ||
| 606 | + </extra_xml> | ||
| 607 | +</response>` | ||
| 608 | + | ||
| 609 | + res.status(200).send(response1) | ||
| 610 | +} | ||
| 611 | + | ||
| 612 | +module.exports.getCheckBalanceIR = async (req, res) => { | ||
| 613 | + console.log('===== POST getCheckBalanceIR =====') | ||
| 614 | + console.log('url', req.originalUrl); | ||
| 615 | + console.log('headers', req.headers); | ||
| 616 | + console.log('query', req.query); | ||
| 617 | + console.log('params', req.params); | ||
| 618 | + console.log('body', req.body); | ||
| 619 | + | ||
| 620 | + let responseErr = `<?xml version="1.0" encoding="UTF-8"?> | ||
| 621 | + <response result_namespace="SBM" result_code="500" result_desc="Error" req_transaction_id="CCBS_CCBS_SMB-002" transaction_id="2021062720320308801249" response_message="Success"/>` | ||
| 622 | + | ||
| 623 | + let response = `<?xml version="1.0" encoding="UTF-8"?> | ||
| 624 | + <response result_namespace="SBM" result_code="0" result_desc="Success" req_transaction_id="CCBS_CCBS_SMB-002" transaction_id="2021062720320308801249" response_message="Success"> | ||
| 625 | + <extra_xml> | ||
| 626 | + <dmc_response> | ||
| 627 | + <transaction_id>00001</transaction_id> | ||
| 628 | + <result_code>1</result_code> | ||
| 629 | + <result_description>success</result_description> | ||
| 630 | + <account_type>POS</account_type> | ||
| 631 | + <priceplan>FV1B1M</priceplan> | ||
| 632 | + <priceplan_desc>priceplan roaming unlimited</priceplan_desc> | ||
| 633 | + <charge_type>T</charge_type> | ||
| 634 | + <status>A</status> | ||
| 635 | + <lang>TH</lang> | ||
| 636 | + <pay_per_use_amount>550</pay_per_use_amount> | ||
| 637 | + <bill_shock_step>500</bill_shock_step> | ||
| 638 | + <bill_shock_status>N</bill_shock_status> | ||
| 639 | + <current_package>EOAZONE</current_package> | ||
| 640 | + <current_speed>512KB</current_speed> | ||
| 641 | + <current_country>Australia</current_country> | ||
| 642 | + <current_operator>T-Mobile</current_operator> | ||
| 643 | + <parent_msisdn>66891288123</parent_msisdn> | ||
| 644 | + <number_of_child>1</number_of_child> | ||
| 645 | + <list_of_child>66866716795</list_of_child> | ||
| 646 | + <pp_wallet_share>N</pp_wallet_share> | ||
| 647 | + <pp_service_size>1</pp_service_size> | ||
| 648 | + <package_size>4</package_size> | ||
| 649 | + <pp_services> | ||
| 650 | + <pp_service> | ||
| 651 | + <pp_id>1234</pp_id> | ||
| 652 | + <pp_type>Recurring</pp_type> | ||
| 653 | + <pp_start_date>2009-09-06 00:00:00</pp_start_date> | ||
| 654 | + <pp_end_date>2010-09-06 23:59:59</pp_end_date> | ||
| 655 | + <pp_service_type>DataRoam</pp_service_type> | ||
| 656 | + <pp_bundle_amount>10240</pp_bundle_amount> | ||
| 657 | + <pp_bundle_unit>V</pp_bundle_unit> | ||
| 658 | + <pp_remain_amount>10240</pp_remain_amount> | ||
| 659 | + <pp_used_amount>10240</pp_used_amount> | ||
| 660 | + </pp_service> | ||
| 661 | + <pp_service> | ||
| 662 | + <pp_id>1234</pp_id> | ||
| 663 | + <pp_type>Recurring</pp_type> | ||
| 664 | + <pp_start_date>2009-09-06 00:00:00</pp_start_date> | ||
| 665 | + <pp_end_date>2010-09-06 23:59:59</pp_end_date> | ||
| 666 | + <pp_service_type>DataRoam</pp_service_type> | ||
| 667 | + <pp_bundle_amount>10240</pp_bundle_amount> | ||
| 668 | + <pp_bundle_unit>V</pp_bundle_unit> | ||
| 669 | + <pp_remain_amount>10240</pp_remain_amount> | ||
| 670 | + <pp_used_amount>10240</pp_used_amount> | ||
| 671 | + </pp_service> | ||
| 672 | + </pp_services> | ||
| 673 | + <packages> | ||
| 674 | + <package> | ||
| 675 | + <pack_code>TEST_IRDATAS11</pack_code> | ||
| 676 | + <pack_description>RC 4GB per mounth, 2500 Bath</pack_description> | ||
| 677 | + <cancelable>Y</cancelable> | ||
| 678 | + <service_size>2</service_size> | ||
| 679 | + <services> | ||
| 680 | + <service> | ||
| 681 | + <pack_id>238</pack_id> | ||
| 682 | + <pack_type>Recurring</pack_type> | ||
| 683 | + <benefit_type>LIMITED</benefit_type> | ||
| 684 | + <buy_date>2017-12-01 14:02:10</buy_date> | ||
| 685 | + <buy_channel>IRUSSD</buy_channel> | ||
| 686 | + <offer_instance_id>xxxxxx</offer_instance_id> | ||
| 687 | + <dmc_transaction_id>601</dmc_transaction_id> | ||
| 688 | + <start_date_th>2017-12-01 17:00:00</start_date_th> | ||
| 689 | + <end_date_th>2017-12-12 23:59:59</end_date_th> | ||
| 690 | + <start_date_visit>2017-12-01 19:00:00</start_date_visit> | ||
| 691 | + <end_date_visit>2017-12-13 01:59:59</end_date_visit> | ||
| 692 | + <service_type>DataRoam</service_type> | ||
| 693 | + <bundle_amount>1677722</bundle_amount> | ||
| 694 | + <bundle_unit>V</bundle_unit> | ||
| 695 | + <remain_amount>1677722</remain_amount> | ||
| 696 | + <use_amount>0</use_amount> | ||
| 697 | + <max_speed>Max speed</max_speed> | ||
| 698 | + <shape_status>N</shape_status> | ||
| 699 | + <shape_speed>Max speed</shape_speed> | ||
| 700 | + <quota_fup/> | ||
| 701 | + <remain_fup/> | ||
| 702 | + <used_fup/> | ||
| 703 | + </service> | ||
| 704 | + <service> | ||
| 705 | + <pack_id>1201</pack_id> | ||
| 706 | + <pack_type>Recurring</pack_type> | ||
| 707 | + <benefit_type>LIMITED</benefit_type> | ||
| 708 | + <buy_date>2017-12-11 00:00:00</buy_date> | ||
| 709 | + <buy_channel>IRUSSD</buy_channel> | ||
| 710 | + <offer_instance_id>xxxxxx</offer_instance_id> | ||
| 711 | + <dmc_transaction_id>622</dmc_transaction_id> | ||
| 712 | + <start_date_th>2017-12-13 00:00:00</start_date_th> | ||
| 713 | + <end_date_th>2018-01-12 23:59:59</end_date_th> | ||
| 714 | + <start_date_visit/> | ||
| 715 | + <end_date_visit/> | ||
| 716 | + <service_type>DataRoam</service_type> | ||
| 717 | + <bundle_amount>4194304</bundle_amount> | ||
| 718 | + <bundle_unit>V</bundle_unit> | ||
| 719 | + <remain_amount>4194304</remain_amount> | ||
| 720 | + <use_amount>0</use_amount> | ||
| 721 | + <max_speed>Max speed</max_speed> | ||
| 722 | + <shape_status>N</shape_status> | ||
| 723 | + <shape_speed>Max speed</shape_speed> | ||
| 724 | + <quota_fup/> | ||
| 725 | + <remain_fup/> | ||
| 726 | + <used_fup/> | ||
| 727 | + </service> | ||
| 728 | + </services> | ||
| 729 | + </package> | ||
| 730 | + <package> | ||
| 731 | + <pack_code>TEST_IRDATAS05</pack_code> | ||
| 732 | + <pack_description>Package special rate (cap max per day) per group of operator ie south korea</pack_description> | ||
| 733 | + <cancelable>Y</cancelable> | ||
| 734 | + <service_size>2</service_size> | ||
| 735 | + <services> | ||
| 736 | + <service> | ||
| 737 | + <pack_id>0</pack_id> | ||
| 738 | + <pack_type>Onetime</pack_type> | ||
| 739 | + <benefit_type>PPU_W_CAP</benefit_type> | ||
| 740 | + <buy_date>2017-12-12 11:16:12</buy_date> | ||
| 741 | + <buy_channel>IRUSSD</buy_channel> | ||
| 742 | + <offer_instance_id>xxxxxx</offer_instance_id> | ||
| 743 | + <dmc_transaction_id>623</dmc_transaction_id> | ||
| 744 | + <start_date_th>2017-12-12 11:16:12</start_date_th> | ||
| 745 | + <end_date_th>2017-12-13 21:59:59</end_date_th> | ||
| 746 | + <start_date_visit>2017-12-12 13:16:12</start_date_visit> | ||
| 747 | + <end_date_visit>2017-12-13 23:59:59</end_date_visit> | ||
| 748 | + <service_type>DataRoam</service_type> | ||
| 749 | + <bundle_amount/> | ||
| 750 | + <bundle_unit/> | ||
| 751 | + <remain_amount/> | ||
| 752 | + <use_amount/> | ||
| 753 | + <max_speed/> | ||
| 754 | + <shape_status/> | ||
| 755 | + <shape_speed/> | ||
| 756 | + <quota_fup/> | ||
| 757 | + <remain_fup/> | ||
| 758 | + <used_fup/> | ||
| 759 | + </service> | ||
| 760 | + <service> | ||
| 761 | + <pack_id>1202</pack_id> | ||
| 762 | + <pack_type>Onetime</pack_type> | ||
| 763 | + <benefit_type>LIMITED</benefit_type> | ||
| 764 | + <buy_date>2017-12-12 11:16:12</buy_date> | ||
| 765 | + <buy_channel>IRAPP</buy_channel> | ||
| 766 | + <offer_instance_id>xxxxxx</offer_instance_id> | ||
| 767 | + <dmc_transaction_id>624</dmc_transaction_id> | ||
| 768 | + <start_date_th>2017-12-12 11:16:12</start_date_th> | ||
| 769 | + <end_date_th>2017-12-15 11:16:12</end_date_th> | ||
| 770 | + <start_date_visit>2017-12-12 13:16:12</start_date_visit> | ||
| 771 | + <end_date_visit>2017-12-15 13:16:12</end_date_visit> | ||
| 772 | + <service_type>DataRoam</service_type> | ||
| 773 | + <bundle_amount>102400</bundle_amount> | ||
| 774 | + <bundle_unit>V</bundle_unit> | ||
| 775 | + <remain_amount>102400</remain_amount> | ||
| 776 | + <use_amount>0</use_amount> | ||
| 777 | + <max_speed>10Mbp</max_speed> | ||
| 778 | + <shape_status>N</shape_status> | ||
| 779 | + <shape_speed>10Mbp</shape_speed> | ||
| 780 | + <quota_fup/> | ||
| 781 | + <remain_fup/> | ||
| 782 | + <used_fup/> | ||
| 783 | + </service> | ||
| 784 | + </services> | ||
| 785 | + </package> | ||
| 786 | + <package> | ||
| 787 | + <pack_code>TEST_IRDATAS07</pack_code> | ||
| 788 | + <pack_description>Package special rate without CAP MAX</pack_description> | ||
| 789 | + <cancelable>Y</cancelable> | ||
| 790 | + <service_size>1</service_size> | ||
| 791 | + <services> | ||
| 792 | + <service> | ||
| 793 | + <pack_id>0</pack_id> | ||
| 794 | + <pack_type>Onetime</pack_type> | ||
| 795 | + <benefit_type>PPU_WO_CAP</benefit_type> | ||
| 796 | + <buy_date>2017-12-12 11:16:35</buy_date> | ||
| 797 | + <buy_channel>IRAPP</buy_channel> | ||
| 798 | + <offer_instance_id>xxxxxx</offer_instance_id> | ||
| 799 | + <dmc_transaction_id>626</dmc_transaction_id> | ||
| 800 | + <start_date_th>2017-12-12 11:16:35</start_date_th> | ||
| 801 | + <end_date_th>2017-12-15 11:16:35</end_date_th> | ||
| 802 | + <start_date_visit>2017-12-12 11:16:35</start_date_visit> | ||
| 803 | + <end_date_visit>2017-12-15 11:16:35</end_date_visit> | ||
| 804 | + <service_type>DataRoam</service_type> | ||
| 805 | + <bundle_amount/> | ||
| 806 | + <bundle_unit/> | ||
| 807 | + <remain_amount/> | ||
| 808 | + <use_amount/> | ||
| 809 | + <max_speed>2Mbps</max_speed> | ||
| 810 | + <shape_status>N</shape_status> | ||
| 811 | + <shape_speed>2Mbps</shape_speed> | ||
| 812 | + <quota_fup/> | ||
| 813 | + <remain_fup/> | ||
| 814 | + <used_fup/> | ||
| 815 | + </service> | ||
| 816 | + </services> | ||
| 817 | + </package> | ||
| 818 | + <package> | ||
| 819 | + <pack_code>TEST_IRDATAS01</pack_code> | ||
| 820 | + <pack_description>Package data unlimit 1 days 99 Bath</pack_description> | ||
| 821 | + <cancelable>Y</cancelable> | ||
| 822 | + <service_size>1</service_size> | ||
| 823 | + <services> | ||
| 824 | + <service> | ||
| 825 | + <pack_id>0</pack_id> | ||
| 826 | + <pack_type>Onetime</pack_type> | ||
| 827 | + <benefit_type>UNLIMITED</benefit_type> | ||
| 828 | + <buy_date>2017-12-12 11:16:46</buy_date> | ||
| 829 | + <buy_channel>IRAPP</buy_channel> | ||
| 830 | + <offer_instance_id>xxxxxx</offer_instance_id> | ||
| 831 | + <dmc_transaction_id>627</dmc_transaction_id> | ||
| 832 | + <start_date_th>2017-12-12 11:16:46</start_date_th> | ||
| 833 | + <end_date_th>2017-12-13 11:16:46</end_date_th> | ||
| 834 | + <start_date_visit>2017-12-12 12:16:46</start_date_visit> | ||
| 835 | + <end_date_visit>2017-12-13 12:16:46</end_date_visit> | ||
| 836 | + <service_type>DataRoam</service_type> | ||
| 837 | + <bundle_amount>Unlimited</bundle_amount> | ||
| 838 | + <bundle_unit>V</bundle_unit> | ||
| 839 | + <remain_amount>Unlimited</remain_amount> | ||
| 840 | + <use_amount>Unlimited</use_amount> | ||
| 841 | + <max_speed>Max speed</max_speed> | ||
| 842 | + <shape_status>N</shape_status> | ||
| 843 | + <shape_speed>512Kbps</shape_speed> | ||
| 844 | + <quota_fup>512000</quota_fup> | ||
| 845 | + <remain_fup>512000</remain_fup> | ||
| 846 | + <used_fup>0</used_fup> | ||
| 847 | + </service> | ||
| 848 | + </services> | ||
| 849 | + </package> | ||
| 850 | + </packages> | ||
| 851 | + </dmc_response> | ||
| 852 | + </extra_xml> | ||
| 853 | + </response>` | ||
| 854 | + | ||
| 855 | + let response1 = `<?xml version="1.0" encoding="UTF-8"?> | ||
| 856 | + <response result_namespace="SBM" result_code="0" result_desc="Success" req_transaction_id="CCBS_CCBS_SMB-002" transaction_id="2021062720320308801249" response_message="Success"> | ||
| 857 | + <extra_xml> | ||
| 858 | + <dmc_response> | ||
| 859 | + <transaction_id>00001</transaction_id> | ||
| 860 | + <result_code>1</result_code> | ||
| 861 | + <result_description>success</result_description> | ||
| 862 | + <account_type>POS</account_type> | ||
| 863 | + <priceplan>FV1B1M</priceplan> | ||
| 864 | + <priceplan_desc>priceplan roaming unlimited</priceplan_desc> | ||
| 865 | + <charge_type>T</charge_type> | ||
| 866 | + <status>A</status> | ||
| 867 | + <lang>TH</lang> | ||
| 868 | + <pay_per_use_amount>550</pay_per_use_amount> | ||
| 869 | + <bill_shock_step>500</bill_shock_step> | ||
| 870 | + <bill_shock_status>N</bill_shock_status> | ||
| 871 | + <current_package>EOAZONE</current_package> | ||
| 872 | + <current_speed>512KB</current_speed> | ||
| 873 | + <current_country>Australia</current_country> | ||
| 874 | + <current_operator>T-Mobile</current_operator> | ||
| 875 | + <parent_msisdn>66891288123</parent_msisdn> | ||
| 876 | + <number_of_child>1</number_of_child> | ||
| 877 | + <list_of_child>66866716795</list_of_child> | ||
| 878 | + <pp_wallet_share>N</pp_wallet_share> | ||
| 879 | + <pp_service_size>1</pp_service_size> | ||
| 880 | + <package_size>4</package_size> | ||
| 881 | + <pp_services> | ||
| 882 | + <pp_service> | ||
| 883 | + <pp_id>1234</pp_id> | ||
| 884 | + <pp_type>Recurring</pp_type> | ||
| 885 | + <pp_start_date>2009-09-06 00:00:00</pp_start_date> | ||
| 886 | + <pp_end_date>2010-09-06 23:59:59</pp_end_date> | ||
| 887 | + <pp_service_type>DataRoam</pp_service_type> | ||
| 888 | + <pp_bundle_amount>10240</pp_bundle_amount> | ||
| 889 | + <pp_bundle_unit>V</pp_bundle_unit> | ||
| 890 | + <pp_remain_amount>10240</pp_remain_amount> | ||
| 891 | + <pp_used_amount>10240</pp_used_amount> | ||
| 892 | + </pp_service> | ||
| 893 | + </pp_services> | ||
| 894 | + <packages> | ||
| 895 | + <package> | ||
| 896 | + <pack_code>TEST_IRDATAS11</pack_code> | ||
| 897 | + <pack_description>RC 4GB per mounth, 2500 Bath</pack_description> | ||
| 898 | + <cancelable>Y</cancelable> | ||
| 899 | + <service_size>2</service_size> | ||
| 900 | + <services> | ||
| 901 | + <service> | ||
| 902 | + <pack_id>238</pack_id> | ||
| 903 | + <pack_type>Recurring</pack_type> | ||
| 904 | + <benefit_type>LIMITED</benefit_type> | ||
| 905 | + <buy_date>2017-12-01 14:02:10</buy_date> | ||
| 906 | + <buy_channel>IRUSSD</buy_channel> | ||
| 907 | + <offer_instance_id>xxxxxx</offer_instance_id> | ||
| 908 | + <dmc_transaction_id>601</dmc_transaction_id> | ||
| 909 | + <start_date_th>2017-12-01 17:00:00</start_date_th> | ||
| 910 | + <end_date_th>2017-12-12 23:59:59</end_date_th> | ||
| 911 | + <start_date_visit>2017-12-01 19:00:00</start_date_visit> | ||
| 912 | + <end_date_visit>2017-12-13 01:59:59</end_date_visit> | ||
| 913 | + <service_type>DataRoam</service_type> | ||
| 914 | + <bundle_amount>1677722</bundle_amount> | ||
| 915 | + <bundle_unit>V</bundle_unit> | ||
| 916 | + <remain_amount>1677722</remain_amount> | ||
| 917 | + <use_amount>0</use_amount> | ||
| 918 | + <max_speed>Max speed</max_speed> | ||
| 919 | + <shape_status>N</shape_status> | ||
| 920 | + <shape_speed>Max speed</shape_speed> | ||
| 921 | + <quota_fup /> | ||
| 922 | + <remain_fup /> | ||
| 923 | + <used_fup /> | ||
| 924 | + </service> | ||
| 925 | + <service> | ||
| 926 | + <pack_id>1201</pack_id> | ||
| 927 | + <pack_type>Recurring</pack_type> | ||
| 928 | + <benefit_type>LIMITED</benefit_type> | ||
| 929 | + <buy_date>2017-12-11 00:00:00</buy_date> | ||
| 930 | + <buy_channel>IRUSSD</buy_channel> | ||
| 931 | + <offer_instance_id>xxxxxx</offer_instance_id> | ||
| 932 | + <dmc_transaction_id>622</dmc_transaction_id> | ||
| 933 | + <start_date_th>2017-12-13 00:00:00</start_date_th> | ||
| 934 | + <end_date_th>2018-01-12 23:59:59</end_date_th> | ||
| 935 | + <start_date_visit /> | ||
| 936 | + <end_date_visit /> | ||
| 937 | + <service_type>DataRoam</service_type> | ||
| 938 | + <bundle_amount>4194304</bundle_amount> | ||
| 939 | + <bundle_unit>V</bundle_unit> | ||
| 940 | + <remain_amount>4194304</remain_amount> | ||
| 941 | + <use_amount>0</use_amount> | ||
| 942 | + <max_speed>Max speed</max_speed> | ||
| 943 | + <shape_status>N</shape_status> | ||
| 944 | + <shape_speed>Max speed</shape_speed> | ||
| 945 | + <quota_fup /> | ||
| 946 | + <remain_fup /> | ||
| 947 | + <used_fup /> | ||
| 948 | + </service> | ||
| 949 | + </services> | ||
| 950 | + </package> | ||
| 951 | + <package> | ||
| 952 | + <pack_code>TEST_IRDATAS05</pack_code> | ||
| 953 | + <pack_description>Package special rate (cap max per day) per group of operator ie south korea | ||
| 954 | + </pack_description> | ||
| 955 | + <cancelable>Y</cancelable> | ||
| 956 | + <service_size>2</service_size> | ||
| 957 | + <services> | ||
| 958 | + <service> | ||
| 959 | + <pack_id>0</pack_id> | ||
| 960 | + <pack_type>Onetime</pack_type> | ||
| 961 | + <benefit_type>PPU_W_CAP</benefit_type> | ||
| 962 | + <buy_date>2017-12-12 11:16:12</buy_date> | ||
| 963 | + <buy_channel>IRUSSD</buy_channel> | ||
| 964 | + <offer_instance_id>xxxxxx</offer_instance_id> | ||
| 965 | + <dmc_transaction_id>623</dmc_transaction_id> | ||
| 966 | + <start_date_th>2017-12-12 11:16:12</start_date_th> | ||
| 967 | + <end_date_th>2017-12-13 21:59:59</end_date_th> | ||
| 968 | + <start_date_visit>2017-12-12 13:16:12</start_date_visit> | ||
| 969 | + <end_date_visit>2017-12-13 23:59:59</end_date_visit> | ||
| 970 | + <service_type>DataRoam</service_type> | ||
| 971 | + <bundle_amount /> | ||
| 972 | + <bundle_unit /> | ||
| 973 | + <remain_amount /> | ||
| 974 | + <use_amount /> | ||
| 975 | + <max_speed /> | ||
| 976 | + <shape_status /> | ||
| 977 | + <shape_speed /> | ||
| 978 | + <quota_fup /> | ||
| 979 | + <remain_fup /> | ||
| 980 | + <used_fup /> | ||
| 981 | + </service> | ||
| 982 | + <service> | ||
| 983 | + <pack_id>1202</pack_id> | ||
| 984 | + <pack_type>Onetime</pack_type> | ||
| 985 | + <benefit_type>LIMITED</benefit_type> | ||
| 986 | + <buy_date>2017-12-12 11:16:12</buy_date> | ||
| 987 | + <buy_channel>IRAPP</buy_channel> | ||
| 988 | + <offer_instance_id>xxxxxx</offer_instance_id> | ||
| 989 | + <dmc_transaction_id>624</dmc_transaction_id> | ||
| 990 | + <start_date_th>2017-12-12 11:16:12</start_date_th> | ||
| 991 | + <end_date_th>2017-12-15 11:16:12</end_date_th> | ||
| 992 | + <start_date_visit>2017-12-12 13:16:12</start_date_visit> | ||
| 993 | + <end_date_visit>2017-12-15 13:16:12</end_date_visit> | ||
| 994 | + <service_type>DataRoam</service_type> | ||
| 995 | + <bundle_amount>102400</bundle_amount> | ||
| 996 | + <bundle_unit>V</bundle_unit> | ||
| 997 | + <remain_amount>102400</remain_amount> | ||
| 998 | + <use_amount>0</use_amount> | ||
| 999 | + <max_speed>10Mbp</max_speed> | ||
| 1000 | + <shape_status>N</shape_status> | ||
| 1001 | + <shape_speed>10Mbp</shape_speed> | ||
| 1002 | + <quota_fup /> | ||
| 1003 | + <remain_fup /> | ||
| 1004 | + <used_fup /> | ||
| 1005 | + </service> | ||
| 1006 | + </services> | ||
| 1007 | + </package> | ||
| 1008 | + <package> | ||
| 1009 | + <pack_code>TEST_IRDATAS07</pack_code> | ||
| 1010 | + <pack_description>Package special rate without CAP MAX</pack_description> | ||
| 1011 | + <cancelable>Y</cancelable> | ||
| 1012 | + <service_size>1</service_size> | ||
| 1013 | + <services> | ||
| 1014 | + <service> | ||
| 1015 | + <pack_id>0</pack_id> | ||
| 1016 | + <pack_type>Onetime</pack_type> | ||
| 1017 | + <benefit_type>PPU_WO_CAP</benefit_type> | ||
| 1018 | + <buy_date>2017-12-12 11:16:35</buy_date> | ||
| 1019 | + <buy_channel>IRAPP</buy_channel> | ||
| 1020 | + <offer_instance_id>xxxxxx</offer_instance_id> | ||
| 1021 | + <dmc_transaction_id>626</dmc_transaction_id> | ||
| 1022 | + <start_date_th>2017-12-12 11:16:35</start_date_th> | ||
| 1023 | + <end_date_th>2017-12-15 11:16:35</end_date_th> | ||
| 1024 | + <start_date_visit>2017-12-12 11:16:35</start_date_visit> | ||
| 1025 | + <end_date_visit>2017-12-15 11:16:35</end_date_visit> | ||
| 1026 | + <service_type>DataRoam</service_type> | ||
| 1027 | + <bundle_amount /> | ||
| 1028 | + <bundle_unit /> | ||
| 1029 | + <remain_amount /> | ||
| 1030 | + <use_amount /> | ||
| 1031 | + <max_speed>2Mbps</max_speed> | ||
| 1032 | + <shape_status>N</shape_status> | ||
| 1033 | + <shape_speed>2Mbps</shape_speed> | ||
| 1034 | + <quota_fup /> | ||
| 1035 | + <remain_fup /> | ||
| 1036 | + <used_fup /> | ||
| 1037 | + </service> | ||
| 1038 | + </services> | ||
| 1039 | + </package> | ||
| 1040 | + <package> | ||
| 1041 | + <pack_code>TEST_IRDATAS01</pack_code> | ||
| 1042 | + <pack_description>Package data unlimit 1 days 99 Bath</pack_description> | ||
| 1043 | + <cancelable>Y</cancelable> | ||
| 1044 | + <service_size>1</service_size> | ||
| 1045 | + <services> | ||
| 1046 | + <service> | ||
| 1047 | + <pack_id>0</pack_id> | ||
| 1048 | + <pack_type>Onetime</pack_type> | ||
| 1049 | + <benefit_type>UNLIMITED</benefit_type> | ||
| 1050 | + <buy_date>2017-12-12 11:16:46</buy_date> | ||
| 1051 | + <buy_channel>IRAPP</buy_channel> | ||
| 1052 | + <offer_instance_id>xxxxxx</offer_instance_id> | ||
| 1053 | + <dmc_transaction_id>627</dmc_transaction_id> | ||
| 1054 | + <start_date_th>2017-12-12 11:16:46</start_date_th> | ||
| 1055 | + <end_date_th>2017-12-13 11:16:46</end_date_th> | ||
| 1056 | + <start_date_visit>2017-12-12 12:16:46</start_date_visit> | ||
| 1057 | + <end_date_visit>2017-12-13 12:16:46</end_date_visit> | ||
| 1058 | + <service_type>DataRoam</service_type> | ||
| 1059 | + <bundle_amount>Unlimited</bundle_amount> | ||
| 1060 | + <bundle_unit>V</bundle_unit> | ||
| 1061 | + <remain_amount>Unlimited</remain_amount> | ||
| 1062 | + <use_amount>Unlimited</use_amount> | ||
| 1063 | + <max_speed>Max speed</max_speed> | ||
| 1064 | + <shape_status>N</shape_status> | ||
| 1065 | + <shape_speed>512Kbps</shape_speed> | ||
| 1066 | + <quota_fup>512000</quota_fup> | ||
| 1067 | + <remain_fup>512000</remain_fup> | ||
| 1068 | + <used_fup>0</used_fup> | ||
| 1069 | + </service> | ||
| 1070 | + </services> | ||
| 1071 | + </package> | ||
| 1072 | + </packages> | ||
| 1073 | + </dmc_response> | ||
| 1074 | + </extra_xml> | ||
| 1075 | + </response>` | ||
| 1076 | + | ||
| 1077 | + res.status(200).send(response1) | ||
| 1078 | +} | ||
| 0 | \ No newline at end of file | 1079 | \ No newline at end of file |