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 | 384 | app.post('/CCBSCommonInfo/MGCommonInfo/getPrimaryKeyListWithoutResourceType', require('./ccbs').getPrimaryKeyListWithoutResourceType); |
385 | 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 | 389 | app.post('/CRMIAsset/getAssetComponentList', require('./crmasset').getAssetComponentList); |
388 | 390 | |
389 | 391 | app.post('/MGOfferInfo/MGOfferInfo/getAllDiscountList', require('./int').getAllDiscountList); | ... | ... |
ccbs.js
... | ... | @@ -12,7 +12,7 @@ module.exports.assetDetail = async (req, res) => { |
12 | 12 | } |
13 | 13 | |
14 | 14 | let response = { |
15 | - "code": "500", | |
15 | + "code": "0", | |
16 | 16 | "msg": "success.", |
17 | 17 | "outstandingBalance": 0, |
18 | 18 | "currentBillBalance": 1.61, |
... | ... | @@ -64,7 +64,7 @@ module.exports.assetDetail = async (req, res) => { |
64 | 64 | "term": "12", |
65 | 65 | "fee": 0, |
66 | 66 | "startDate": "04/10/2019", |
67 | - "expireDate": "05/10/2019", | |
67 | + "expireDate": "10/08/2021", | |
68 | 68 | "contractIndicator": "No", |
69 | 69 | "offerCode": "12534317", |
70 | 70 | "contractNumber": "-", |
... | ... | @@ -76,7 +76,7 @@ module.exports.assetDetail = async (req, res) => { |
76 | 76 | "term": "12", |
77 | 77 | "fee": 0, |
78 | 78 | "startDate": "04/10/2019", |
79 | - "expireDate": "05/10/2019", | |
79 | + "expireDate": "05/10/2022", | |
80 | 80 | "contractIndicator": "No", |
81 | 81 | "offerCode": "12534317", |
82 | 82 | "contractNumber": "-", | ... | ... |
... | ... | @@ -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 | 59 | \ No newline at end of file | ... | ... |
sbm.js
... | ... | @@ -606,7 +606,7 @@ module.exports.getCheckBalance_SBMWSREAL = async (req, res) => { |
606 | 606 | </extra_xml> |
607 | 607 | </response>` |
608 | 608 | |
609 | - res.status(200).send(response1) | |
609 | + res.status(200).send(response) | |
610 | 610 | } |
611 | 611 | |
612 | 612 | module.exports.getCheckBalanceIR = async (req, res) => { | ... | ... |