Commit 16ea296b3571ed2d90b6d81ccb1106957c8283d9
1 parent
07502cdd
Exists in
master
and in
1 other branch
update mockup true
Showing
4 changed files
with
1104 additions
and
2 deletions
Show diff stats
app.js
... | ... | @@ -400,6 +400,17 @@ app.get('/goapi/profile/external/customer/usageInfo/:type/:number', require('./c |
400 | 400 | app.post('/v1/OSBCOM/BillingProfileInfo/UsageProfileInfoREST/getAccumulationUOMGroupList/', require('./ccbs').accumulationUOMGroupList); |
401 | 401 | app.post('/CCBSCommonInfo/MGCommonInfo/getPrimaryKeyListWithoutResourceType', require('./ccbs').getPrimaryKeyListWithoutResourceType); |
402 | 402 | |
403 | +app.post('/CRMIAsset/getAssetComponentList', require('./crmasset').getAssetComponentList); | |
404 | + | |
405 | +app.post('/MGOfferInfo/MGOfferInfo/getAllDiscountList', require('./int').getAllDiscountList); | |
406 | +app.post('/MGOfferInfo/MGOfferInfo/getFuturePromotionList', require('./int').getFuturePromotionList); | |
407 | +app.post('/MGOfferInfo/NativeOfferInfo/getCurrentCUGList', require('./int').getCurrentCUGList); | |
408 | +app.post('/MGOfferInfo/NativeOfferInfo/getCurrentFriendFamilyList', require('./int').getCurrentFriendFamilyList); | |
409 | +app.post('/MGOfferInfo/NativeOfferInfo/getCurrentSpendingLimitList', require('./int').getCurrentSpendingLimitList); | |
410 | +app.post('/MGOfferInfo/NativeOfferInfo/getCurrentCreditLimitAtSubList', require('./int').getCurrentCreditLimitAtSubList); | |
411 | +app.post('/MGOfferInfo/NativeOfferInfo/getCurrentSplitChargeInfo', require('./int').getCurrentSplitChargeInfo); | |
412 | + | |
413 | + | |
403 | 414 | app.get('/api/callback', require('./line').callback); |
404 | 415 | |
405 | 416 | app.get('/api/random/leader', function (req, res) { | ... | ... |
ccbs.js
... | ... | @@ -101,10 +101,12 @@ module.exports.churnScoreOfferList = async (req, res) => { |
101 | 101 | |
102 | 102 | let responseErr = { |
103 | 103 | "code": "404", |
104 | - "message": "Not found" | |
104 | + "msg": "Not found" | |
105 | 105 | } |
106 | 106 | |
107 | 107 | let response = { |
108 | + "code": "0", | |
109 | + "msg": "Success", | |
108 | 110 | "campTransID": "5c0a746b-ae69-447d-84b0-b0bdaa4b6add", |
109 | 111 | "campID": "0007", |
110 | 112 | "campCode": "PRPTOL000001", |
... | ... | @@ -139,10 +141,12 @@ module.exports.usageInfo = async (req, res) => { |
139 | 141 | |
140 | 142 | let responseErr = { |
141 | 143 | "code": "404", |
142 | - "message": "Not found" | |
144 | + "msg": "Not found" | |
143 | 145 | } |
144 | 146 | |
145 | 147 | let response = { |
148 | + "code": "0", | |
149 | + "msg": "Success", | |
146 | 150 | "trueId": { |
147 | 151 | "device": "WEB", |
148 | 152 | "lastAccess": "27/12/2018 04:51:12" | ... | ... |
... | ... | @@ -0,0 +1,547 @@ |
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); | |
8 | + | |
9 | + let responseErr = { | |
10 | + "code": "5000", | |
11 | + "msg": "Error bind json to model" | |
12 | + } | |
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 | +} | |
545 | + | |
546 | + res.status(200).send(response) | |
547 | +} | |
0 | 548 | \ No newline at end of file | ... | ... |
... | ... | @@ -0,0 +1,540 @@ |
1 | +module.exports.getAllDiscountList = async (req, res) => { | |
2 | + console.log('===== POST getAllDiscountList =====') | |
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 | + "getAllDiscountListResponse": { | |
11 | + "return": { | |
12 | + "uuid": "ed41f948-565c-4900-a94d-ee63100e2fa4", | |
13 | + "errorCode": "OSBbllngA10001", | |
14 | + "message": "error." | |
15 | + } | |
16 | + } | |
17 | + } | |
18 | + | |
19 | + let response = { | |
20 | + "getAllDiscountListResponse": { | |
21 | + "return": { | |
22 | + "uuid": "ed41f948-565c-4900-a94d-ee63100e2fa4", | |
23 | + "errorCode": "OSBbllngA00001", | |
24 | + "message": "Success.", | |
25 | + "totalSize": 1, | |
26 | + "calculatedPageSize": 50, | |
27 | + "agreementBasicOfferList": { | |
28 | + "size": 1, | |
29 | + "agreementBasicOfferInfo": [ | |
30 | + { | |
31 | + "serviceAgreement": { | |
32 | + "agreementSocSequence": "1516667", | |
33 | + "agreementId": "1516667", | |
34 | + "expirationIssueDate": null, | |
35 | + "parentSocSequence": null, | |
36 | + "effectiveDate": "2021-06-08T10:11:51.000+07:00", | |
37 | + "effectiveIssueDate": "2021-06-08T10:11:51.000+07:00", | |
38 | + "socSequence": "1814357", | |
39 | + "expirationDate": null, | |
40 | + "status": "C" | |
41 | + }, | |
42 | + "offerInfo": { | |
43 | + "socType": "D", | |
44 | + "code": "BSP014", | |
45 | + "name": "CVG012", | |
46 | + "description": "True Smart Choice Discount 499", | |
47 | + "serviceLevel": { | |
48 | + "code": "C", | |
49 | + "description": "Subscriber" | |
50 | + } | |
51 | + } | |
52 | + } | |
53 | + ] | |
54 | + } | |
55 | + } | |
56 | + } | |
57 | + } | |
58 | + | |
59 | + res.status(200).send(response) | |
60 | +} | |
61 | + | |
62 | +module.exports.getFuturePromotionList = async (req, res) => { | |
63 | + console.log('===== POST getFuturePromotionList =====') | |
64 | + console.log('url', req.originalUrl); | |
65 | + console.log('headers', req.headers); | |
66 | + console.log('query', req.query); | |
67 | + console.log('params', req.params); | |
68 | + console.log('body', req.body); | |
69 | + | |
70 | + let responseErr = { | |
71 | + "getFuturePromotionListResponse": { | |
72 | + "return": { | |
73 | + "uuid": "ed41f948-565c-4900-a94d-ee63100e2fa4", | |
74 | + "errorCode": "OSBbllngA10001", | |
75 | + "message": "error." | |
76 | + } | |
77 | + } | |
78 | + } | |
79 | + | |
80 | + let response = { | |
81 | + "getFuturePromotionListResponse": { | |
82 | + "return": { | |
83 | + "uuid": "df9f1de2-9d11-43e5-b836-7b589fb8e084", | |
84 | + "errorCode": "OSBbllngA00001", | |
85 | + "message": "Success.", | |
86 | + "futureOfferList": { | |
87 | + "size": 4, | |
88 | + "futureOfferArray": [ | |
89 | + { | |
90 | + "offer": { | |
91 | + "socType": "D", | |
92 | + "iddIndicator": "N", | |
93 | + "code": "14284917", | |
94 | + "rcRate": "0.0", | |
95 | + "irIndicator": "N", | |
96 | + "name": "VGSHFYYD228", | |
97 | + "description": "Disc. Subscription Fee for 6 Months Sub.", | |
98 | + "ffIndicator": "N", | |
99 | + "serviceLevel": { | |
100 | + "code": "C", | |
101 | + "description": "Subscriber" | |
102 | + }, | |
103 | + "cugIndicator": "N" | |
104 | + }, | |
105 | + "future": { | |
106 | + "orderType": null, | |
107 | + "activityReason": "CREQ", | |
108 | + "futureSource": "ADDSERVICES", | |
109 | + "futureSocParentId": null, | |
110 | + "futureId": null, | |
111 | + "futureType": "REQUEST", | |
112 | + "remark": null, | |
113 | + "futureSocId": "927420", | |
114 | + "createDate": "2018-02-27T23:59:59.000+07:00", | |
115 | + "status": { | |
116 | + "code": "B", | |
117 | + "description": "PROCESSING" | |
118 | + } | |
119 | + }, | |
120 | + "serviceAgreement": { | |
121 | + "agreementSocSequence": null, | |
122 | + "agreementId": "1062554", | |
123 | + "expirationIssueDate": null, | |
124 | + "parentSocSequence": null, | |
125 | + "effectiveDate": "2018-02-28T00:00:00.000+07:00", | |
126 | + "effectiveIssueDate": "2018-02-27T23:59:59.000+07:00", | |
127 | + "socSequence": "927420", | |
128 | + "expirationDate": null, | |
129 | + "status": "F" | |
130 | + } | |
131 | + }, | |
132 | + { | |
133 | + "offer": { | |
134 | + "socType": "U", | |
135 | + "iddIndicator": "N", | |
136 | + "code": "14053717", | |
137 | + "rcRate": "145.0", | |
138 | + "irIndicator": "N", | |
139 | + "name": "VGRET06S085", | |
140 | + "description": "#1 IRD/STD Happy Family HD", | |
141 | + "ffIndicator": "N", | |
142 | + "serviceLevel": { | |
143 | + "code": "C", | |
144 | + "description": "Subscriber" | |
145 | + }, | |
146 | + "cugIndicator": "N" | |
147 | + }, | |
148 | + "future": { | |
149 | + "orderType": null, | |
150 | + "activityReason": "CREQ", | |
151 | + "futureSource": "ADDSERVICES", | |
152 | + "futureSocParentId": null, | |
153 | + "futureId": null, | |
154 | + "futureType": "REQUEST", | |
155 | + "remark": null, | |
156 | + "futureSocId": "927421", | |
157 | + "createDate": "2018-02-27T23:59:59.000+07:00", | |
158 | + "status": { | |
159 | + "code": "B", | |
160 | + "description": "PROCESSING" | |
161 | + } | |
162 | + }, | |
163 | + "serviceAgreement": { | |
164 | + "agreementSocSequence": null, | |
165 | + "agreementId": "1062554", | |
166 | + "expirationIssueDate": null, | |
167 | + "parentSocSequence": null, | |
168 | + "effectiveDate": "2018-02-28T00:00:00.000+07:00", | |
169 | + "effectiveIssueDate": "2018-02-27T23:59:59.000+07:00", | |
170 | + "socSequence": "927421", | |
171 | + "expirationDate": null, | |
172 | + "status": "F" | |
173 | + } | |
174 | + }, | |
175 | + { | |
176 | + "offer": { | |
177 | + "socType": "D", | |
178 | + "iddIndicator": "N", | |
179 | + "code": "14297617", | |
180 | + "rcRate": "0.0", | |
181 | + "irIndicator": "N", | |
182 | + "name": "VGSHFYYD355", | |
183 | + "description": "Disc.Decoder Service Fee -6 Months Sub", | |
184 | + "ffIndicator": "N", | |
185 | + "serviceLevel": { | |
186 | + "code": "C", | |
187 | + "description": "Subscriber" | |
188 | + }, | |
189 | + "cugIndicator": "N" | |
190 | + }, | |
191 | + "future": { | |
192 | + "orderType": null, | |
193 | + "activityReason": "CREQ", | |
194 | + "futureSource": "ADDSERVICES", | |
195 | + "futureSocParentId": null, | |
196 | + "futureId": null, | |
197 | + "futureType": "FUTPP", | |
198 | + "remark": null, | |
199 | + "futureSocId": "927422", | |
200 | + "createDate": "2018-02-27T23:59:59.000+07:00", | |
201 | + "status": { | |
202 | + "code": "B", | |
203 | + "description": "PROCESSING" | |
204 | + } | |
205 | + }, | |
206 | + "serviceAgreement": { | |
207 | + "agreementSocSequence": null, | |
208 | + "agreementId": "1062554", | |
209 | + "expirationIssueDate": null, | |
210 | + "parentSocSequence": null, | |
211 | + "effectiveDate": "2018-02-28T00:00:00.000+07:00", | |
212 | + "effectiveIssueDate": "2018-02-27T23:59:59.000+07:00", | |
213 | + "socSequence": "927422", | |
214 | + "expirationDate": null, | |
215 | + "status": "F" | |
216 | + } | |
217 | + }, | |
218 | + { | |
219 | + "offer": { | |
220 | + "socType": "U", | |
221 | + "iddIndicator": "N", | |
222 | + "code": "11209513", | |
223 | + "rcRate": "145.0", | |
224 | + "irIndicator": "N", | |
225 | + "name": "VGRET01S001", | |
226 | + "description": "#1 IRD/STD", | |
227 | + "ffIndicator": "N", | |
228 | + "serviceLevel": { | |
229 | + "code": "C", | |
230 | + "description": "Subscriber" | |
231 | + }, | |
232 | + "cugIndicator": "N" | |
233 | + }, | |
234 | + "future": { | |
235 | + "orderType": null, | |
236 | + "activityReason": "CREQ", | |
237 | + "futureSource": "REQUEST", | |
238 | + "futureSocParentId": null, | |
239 | + "futureId": null, | |
240 | + "futureType": "UPDATESERVICES", | |
241 | + "remark": null, | |
242 | + "futureSocId": "265649", | |
243 | + "createDate": "2018-02-27T23:59:59.000+07:00", | |
244 | + "status": { | |
245 | + "code": "B", | |
246 | + "description": "PROCESSING" | |
247 | + } | |
248 | + }, | |
249 | + "serviceAgreement": { | |
250 | + "agreementSocSequence": null, | |
251 | + "agreementId": "1062554", | |
252 | + "expirationIssueDate": null, | |
253 | + "parentSocSequence": null, | |
254 | + "effectiveDate": "2016-01-19T23:59:59.000+07:00", | |
255 | + "effectiveIssueDate": "2018-02-27T23:59:59.000+07:00", | |
256 | + "socSequence": "265649", | |
257 | + "expirationDate": "2018-02-28T00:00:00.000+07:00", | |
258 | + "status": "F" | |
259 | + } | |
260 | + } | |
261 | + ] | |
262 | + } | |
263 | + } | |
264 | + } | |
265 | + } | |
266 | + | |
267 | + res.status(200).send(response) | |
268 | +} | |
269 | + | |
270 | +module.exports.getCurrentCUGList = async (req, res) => { | |
271 | + console.log('===== POST getCurrentCUGList =====') | |
272 | + console.log('url', req.originalUrl); | |
273 | + console.log('headers', req.headers); | |
274 | + console.log('query', req.query); | |
275 | + console.log('params', req.params); | |
276 | + console.log('body', req.body); | |
277 | + | |
278 | + let responseErr = { | |
279 | + "errorCode": "INT10001", | |
280 | + "message": "error." | |
281 | + } | |
282 | + | |
283 | + let response = { | |
284 | + "uuid": "efa38396-ea5a-4b55-8a07-bed5cb998d4a", | |
285 | + "errorCode": "INT00001", | |
286 | + "message": "Success.", | |
287 | + "cugOfferList": { | |
288 | + "cugOfferArray": [ | |
289 | + { | |
290 | + "cug": { | |
291 | + "groupDescription": "HR 001", | |
292 | + "groupId": "623", | |
293 | + "groupIdentifier": "Test", | |
294 | + "groupName": "HR 001", | |
295 | + "groupType": "GAS" | |
296 | + }, | |
297 | + "offerInfo": { | |
298 | + "code": "55092", | |
299 | + "description": "CUG On/Off Net (Package level)", | |
300 | + "name": "CCUGAS01", | |
301 | + "serviceLevel": { | |
302 | + "code": "C", | |
303 | + "description": "Subscriber" | |
304 | + }, | |
305 | + "socType": "U" | |
306 | + }, | |
307 | + "serviceAgreement": { | |
308 | + "agreementSocSequence": "58796", | |
309 | + "agreementId": "1052", | |
310 | + "expirationIssueDate": null, | |
311 | + "parentSocSequence": "58796", | |
312 | + "effectiveDate": "2013-05-12T16:46:04.000+07:00", | |
313 | + "effectiveIssueDate": "2013-05-12T16:46:04.000+07:00", | |
314 | + "socSequence": "58796", | |
315 | + "expirationDate": null, | |
316 | + "status": "A" | |
317 | + } | |
318 | + } | |
319 | + ], | |
320 | + "size": 1 | |
321 | + } | |
322 | + } | |
323 | + | |
324 | + res.status(200).send(response) | |
325 | +} | |
326 | + | |
327 | +module.exports.getCurrentFriendFamilyList = async (req, res) => { | |
328 | + console.log('===== POST getCurrentFriendFamilyList =====') | |
329 | + console.log('url', req.originalUrl); | |
330 | + console.log('headers', req.headers); | |
331 | + console.log('query', req.query); | |
332 | + console.log('params', req.params); | |
333 | + console.log('body', req.body); | |
334 | + | |
335 | + let responseErr = { | |
336 | + "errorCode": "INT10001", | |
337 | + "message": "error." | |
338 | + } | |
339 | + | |
340 | + let response = { | |
341 | + "uuid": "431db28c-851c-4185-9256-18d4f012d563", | |
342 | + "errorCode": "INT00001", | |
343 | + "message": "Success.", | |
344 | + "ffOfferList": { | |
345 | + "ffOfferArray": [ | |
346 | + { | |
347 | + "ffNumberArray": "0937965195;0870300146", | |
348 | + "ffNumberEffectiveDate": "2013-11-05T11:09:45.000+07:00", | |
349 | + "offerInfo": { | |
350 | + "code": "10197910", | |
351 | + "description": "Free call and Free SMS for same Family(F&F)", | |
352 | + "name": "FFVSMS01", | |
353 | + "serviceLevel": { | |
354 | + "code": "C", | |
355 | + "description": "Subscriber" | |
356 | + }, | |
357 | + "socType": "U" | |
358 | + }, | |
359 | + "serviceAgreement": { | |
360 | + "agreementSocSequence": 158407, | |
361 | + "agreementId": 4665, | |
362 | + "expirationIssueDate": null, | |
363 | + "parentSocSequence": null, | |
364 | + "effectiveDate": "2013-11-05T11:06:27.000+07:00", | |
365 | + "effectiveIssueDate": "2013-11-05T11:06:27.000+07:00", | |
366 | + "socSequence": 158407, | |
367 | + "expirationDate": null, | |
368 | + "status": "A" | |
369 | + } | |
370 | + } | |
371 | + ], | |
372 | + "size": 1 | |
373 | + } | |
374 | + } | |
375 | + | |
376 | + res.status(200).send(response) | |
377 | +} | |
378 | + | |
379 | +module.exports.getCurrentSpendingLimitList = async (req, res) => { | |
380 | + console.log('===== POST getCurrentSpendingLimitList =====') | |
381 | + console.log('url', req.originalUrl); | |
382 | + console.log('headers', req.headers); | |
383 | + console.log('query', req.query); | |
384 | + console.log('params', req.params); | |
385 | + console.log('body', req.body); | |
386 | + | |
387 | + let responseErr = { | |
388 | + "errorCode": "INT10001", | |
389 | + "message": "error." | |
390 | + } | |
391 | + | |
392 | + let response = { | |
393 | + "uuid": "e1aa3505-c7d4-4e2f-83b7-a4d0dacdcf2d", | |
394 | + "errorCode": "INT00001", | |
395 | + "message": "Success.", | |
396 | + "spendingLimitList": { | |
397 | + "size": 1, | |
398 | + "spendingLimitArray": [ | |
399 | + { | |
400 | + "offerInfo": { | |
401 | + "code": "31262", | |
402 | + "description": "Spending limit offer", | |
403 | + "name": "BALANCELIMIT", | |
404 | + "serviceLevel": { | |
405 | + "code": "C", | |
406 | + "description": "Subscriber" | |
407 | + }, | |
408 | + "socType": "U" | |
409 | + }, | |
410 | + "serviceAgreement": { | |
411 | + "agreementSocSequence": 10064, | |
412 | + "agreementId": 1052, | |
413 | + "expirationIssueDate": null, | |
414 | + "parentSocSequence": null, | |
415 | + "effectiveDate": "2013-03-02T10:53:45.000+07:00", | |
416 | + "effectiveIssueDate": "2013-03-02T10:53:45.000+07:00", | |
417 | + "socSequence": 10064, | |
418 | + "expirationDate": null, | |
419 | + "status": "A" | |
420 | + }, | |
421 | + "spendingLimitInfo": { | |
422 | + "firstTriggerPercentage": 0, | |
423 | + "incrementTriggerPercentage": 0, | |
424 | + "thresholdAmount": 0 | |
425 | + } | |
426 | + } | |
427 | + ] | |
428 | + } | |
429 | + } | |
430 | + | |
431 | + res.status(200).send(response) | |
432 | +} | |
433 | + | |
434 | +module.exports.getCurrentCreditLimitAtSubList = async (req, res) => { | |
435 | + console.log('===== POST getCurrentCreditLimitAtSubList =====') | |
436 | + console.log('url', req.originalUrl); | |
437 | + console.log('headers', req.headers); | |
438 | + console.log('query', req.query); | |
439 | + console.log('params', req.params); | |
440 | + console.log('body', req.body); | |
441 | + | |
442 | + let responseErr = { | |
443 | + "errorCode": "INT10001", | |
444 | + "message": "error.", | |
445 | + } | |
446 | + | |
447 | + let response = { | |
448 | + "uuid": "09dc5cf6-6cfb-4732-baed-b29dba320069", | |
449 | + "errorCode": "INT00001", | |
450 | + "message": "Success.", | |
451 | + "creditLimitAtSubList": { | |
452 | + "creditLimitAtSubArray": [ | |
453 | + { | |
454 | + "creditLimitAtSubInfo": { | |
455 | + "firstTriggerPercent": 0, | |
456 | + "incrementTriggerPercent": 0, | |
457 | + "permanentThreshold": 5000, | |
458 | + "temporaryThreshold": 4454 | |
459 | + }, | |
460 | + "offerInfo": { | |
461 | + "code": "212158", | |
462 | + "description": "Credit_Limit_at_Sub for Enterprise", | |
463 | + "name": "Credit_Limit_at_Sub", | |
464 | + "serviceLevel": { | |
465 | + "code": "C", | |
466 | + "description": "Subscriber" | |
467 | + }, | |
468 | + "socType": "U" | |
469 | + }, | |
470 | + "serviceAgreement": { | |
471 | + "agreementSocSequence": null, | |
472 | + "agreementId": 1025625, | |
473 | + "expirationIssueDate": null, | |
474 | + "parentSocSequence": null, | |
475 | + "effectiveDate": "2014-02-23T23:59:59.000+07:00", | |
476 | + "effectiveIssueDate": "2014-02-23T23:59:59.000+07:00", | |
477 | + "socSequence": 152147, | |
478 | + "expirationDate": null, | |
479 | + "status": "A" | |
480 | + } | |
481 | + } | |
482 | + ], | |
483 | + "size": 1 | |
484 | + } | |
485 | + } | |
486 | + | |
487 | + res.status(200).send(response) | |
488 | +} | |
489 | + | |
490 | +module.exports.getCurrentSplitChargeInfo = async (req, res) => { | |
491 | + console.log('===== POST getCurrentSplitChargeInfo =====') | |
492 | + console.log('url', req.originalUrl); | |
493 | + console.log('headers', req.headers); | |
494 | + console.log('query', req.query); | |
495 | + console.log('params', req.params); | |
496 | + console.log('body', req.body); | |
497 | + | |
498 | + let responseErr = { | |
499 | + "errorCode": "INT10001", | |
500 | + "message": "error.", | |
501 | + } | |
502 | + | |
503 | + let response = { | |
504 | + "uuid": "a4a2ff41-cfd4-407a-9729-f6636ccc0e24", | |
505 | + "errorCode": "INT00001", | |
506 | + "message": "Success.", | |
507 | + "splitChargeParameterInfo": { | |
508 | + "basicOfferInfo": { | |
509 | + "code": "493178", | |
510 | + "description": "SPLITS01", | |
511 | + "name": "Split Charge Offer", | |
512 | + "serviceLevel": { | |
513 | + "code": "C", | |
514 | + "description": "Subscriber" | |
515 | + }, | |
516 | + "socType": "U" | |
517 | + }, | |
518 | + "serviceAgreementInfo": { | |
519 | + "agreementSocSequence": 1147381, | |
520 | + "agreementId": 1078490, | |
521 | + "expirationIssueDate": null, | |
522 | + "parentSocSequence": null, | |
523 | + "effectiveDate": "2018-12-06T14:48:16.000+07:00", | |
524 | + "effectiveIssueDate": "2018-12-06T14:48:16.000+07:00", | |
525 | + "socSequence": 1147381, | |
526 | + "expirationDate": null, | |
527 | + "status": "A" | |
528 | + }, | |
529 | + "splitChargeParameterInfo": { | |
530 | + "splitCode": "UTC_URU015", | |
531 | + "splitDescription": "UTC 2500", | |
532 | + "splitPeriod": "NONE", | |
533 | + "targetAccountNo": 11029510, | |
534 | + "targetPCN": 11029510 | |
535 | + } | |
536 | + } | |
537 | + } | |
538 | + | |
539 | + res.status(200).send(response) | |
540 | +} | |
0 | 541 | \ No newline at end of file | ... | ... |