Commit 7fe25040dd6b5488db73e10e3fb7dbbad0114485
1 parent
f6530acd
Exists in
master
and in
1 other branch
update mockup true
Showing
4 changed files
with
64 additions
and
4 deletions
Show diff stats
app.js
@@ -384,6 +384,8 @@ app.post('/v1/OSBCOM/BillingProfileInfo/UsageProfileInfoREST/getAccumulationUOMG | @@ -384,6 +384,8 @@ app.post('/v1/OSBCOM/BillingProfileInfo/UsageProfileInfoREST/getAccumulationUOMG | ||
384 | 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); | 385 | app.post('/v1/get_bundle_profile_list/', require('./ccbs').getBundleProfileList); |
386 | 386 | ||
387 | +app.post('/v1/CCCSOA/OrganizationInfoWS/OrganizationInfoSI/getAgreementBundleUsageInfo', require('./cccsoa').getAgreementBundleUsageInfo); | ||
388 | + | ||
387 | app.post('/CRMIAsset/getAssetComponentList', require('./crmasset').getAssetComponentList); | 389 | app.post('/CRMIAsset/getAssetComponentList', require('./crmasset').getAssetComponentList); |
388 | 390 | ||
389 | app.post('/MGOfferInfo/MGOfferInfo/getAllDiscountList', require('./int').getAllDiscountList); | 391 | app.post('/MGOfferInfo/MGOfferInfo/getAllDiscountList', require('./int').getAllDiscountList); |
ccbs.js
@@ -12,7 +12,7 @@ module.exports.assetDetail = async (req, res) => { | @@ -12,7 +12,7 @@ module.exports.assetDetail = async (req, res) => { | ||
12 | } | 12 | } |
13 | 13 | ||
14 | let response = { | 14 | let response = { |
15 | - "code": "500", | 15 | + "code": "0", |
16 | "msg": "success.", | 16 | "msg": "success.", |
17 | "outstandingBalance": 0, | 17 | "outstandingBalance": 0, |
18 | "currentBillBalance": 1.61, | 18 | "currentBillBalance": 1.61, |
@@ -64,7 +64,7 @@ module.exports.assetDetail = async (req, res) => { | @@ -64,7 +64,7 @@ module.exports.assetDetail = async (req, res) => { | ||
64 | "term": "12", | 64 | "term": "12", |
65 | "fee": 0, | 65 | "fee": 0, |
66 | "startDate": "04/10/2019", | 66 | "startDate": "04/10/2019", |
67 | - "expireDate": "05/10/2019", | 67 | + "expireDate": "10/08/2021", |
68 | "contractIndicator": "No", | 68 | "contractIndicator": "No", |
69 | "offerCode": "12534317", | 69 | "offerCode": "12534317", |
70 | "contractNumber": "-", | 70 | "contractNumber": "-", |
@@ -76,7 +76,7 @@ module.exports.assetDetail = async (req, res) => { | @@ -76,7 +76,7 @@ module.exports.assetDetail = async (req, res) => { | ||
76 | "term": "12", | 76 | "term": "12", |
77 | "fee": 0, | 77 | "fee": 0, |
78 | "startDate": "04/10/2019", | 78 | "startDate": "04/10/2019", |
79 | - "expireDate": "05/10/2019", | 79 | + "expireDate": "05/10/2022", |
80 | "contractIndicator": "No", | 80 | "contractIndicator": "No", |
81 | "offerCode": "12534317", | 81 | "offerCode": "12534317", |
82 | "contractNumber": "-", | 82 | "contractNumber": "-", |
@@ -0,0 +1,58 @@ | @@ -0,0 +1,58 @@ | ||
1 | +module.exports.getAgreementBundleUsageInfo = async (req, res) => { | ||
2 | + console.log('===== POST getAgreementBundleUsageInfo =====') | ||
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 = { | ||
10 | + "code": "5000", | ||
11 | + "msg": "Error bind json to model" | ||
12 | + } | ||
13 | + | ||
14 | + let response = { | ||
15 | + "getAgreementBundleUsageInfoResponse": { | ||
16 | + "bundleUsageMEPB": { | ||
17 | + "bundleUsageList": [{ | ||
18 | + "serviceType": "Voice", | ||
19 | + "uomCode": "M", | ||
20 | + "remainAmt": "0.00", | ||
21 | + "utilizedQuotaFormat": "00:00:00", | ||
22 | + "uomDescription": "Minutes", | ||
23 | + "allowAmt": "-1.00", | ||
24 | + "initialQuotaFormat": "00:0-1:00", | ||
25 | + "usageAmt": "0.00", | ||
26 | + "feature": "Voice", | ||
27 | + "service": "V000US01C", | ||
28 | + "remainingQuotaFormat": "00:00:00", | ||
29 | + "effectiveDate": "2019-09-22 17:01:51", | ||
30 | + "expirationDate": "2049-12-31 00:00:00" | ||
31 | + }, | ||
32 | + { | ||
33 | + "serviceType": "Voice", | ||
34 | + "uomCode": "M", | ||
35 | + "remainAmt": "626.00", | ||
36 | + "utilizedQuotaFormat": "06:14:00", | ||
37 | + "uomDescription": "Minutes", | ||
38 | + "allowAmt": "1000.00", | ||
39 | + "initialQuotaFormat": "16:40:00", | ||
40 | + "lastCall": "2021-07-29 15:47:03", | ||
41 | + "usageAmt": "374.00", | ||
42 | + "feature": "Voice", | ||
43 | + "service": "NETSFS21", | ||
44 | + "remainingQuotaFormat": "10:26:00", | ||
45 | + "effectiveDate": "2019-09-22 17:01:51", | ||
46 | + "expirationDate": "2049-12-31 00:00:00" | ||
47 | + }], | ||
48 | + "errorMessage": { | ||
49 | + "errorMessage": "Success.", | ||
50 | + "errorCode": "ACAHblG00001" | ||
51 | + }, | ||
52 | + "totalRecord": "2" | ||
53 | + } | ||
54 | + } | ||
55 | + } | ||
56 | + | ||
57 | + res.status(200).send(response) | ||
58 | +} | ||
0 | \ No newline at end of file | 59 | \ No newline at end of file |
sbm.js
@@ -606,7 +606,7 @@ module.exports.getCheckBalance_SBMWSREAL = async (req, res) => { | @@ -606,7 +606,7 @@ module.exports.getCheckBalance_SBMWSREAL = async (req, res) => { | ||
606 | </extra_xml> | 606 | </extra_xml> |
607 | </response>` | 607 | </response>` |
608 | 608 | ||
609 | - res.status(200).send(response1) | 609 | + res.status(200).send(response) |
610 | } | 610 | } |
611 | 611 | ||
612 | module.exports.getCheckBalanceIR = async (req, res) => { | 612 | module.exports.getCheckBalanceIR = async (req, res) => { |