module.exports.getCheckBalance_SBMWSREALCCP = async (req, res) => {
console.log('===== POST getCheckBalance =====')
console.log('url', req.originalUrl);
console.log('headers', req.headers);
console.log('query', req.query);
console.log('params', req.params);
console.log('body', req.body);
let responseErr = `
`
let response = `
R19NBPNE2
V
V
42.0Mbps
TH
N
OC
2020-12-16 14:20:08
2021-12-15 23:59:59
INSTM3GEG
Unlimited
*
0
IPK_DS_OC_TRUEIDULM_FREE_365D
ฟรี TrueID HD ไม่จำกัด นาน 12 เดือน
OC
2020-12-16 14:20:14
2021-12-15 23:59:59
WIFI
Unlimited
*
0
IPK_DS_OC_ULMWIFI_FREE_365D
ฟรี WiFi ไม่อั้น นาน 12 เดือน
OC
2020-12-16 14:20:14
2021-12-15 23:59:59
STD3GEG
Unlimited
*
0
IPK_DS_OC_ULMFIX10M_FREE_365D
เน็ตไม่อั้น 10Mbps นาน 1ปี
`
let response1 = `
IPK_DS_OC_XXXX
T
T
512Kbps
EN
Y
OC
WEG
2009-09-06 00:00:00
2010-09-06 23:59:59
1200
T
100
OC
3GEG
2009-09-06 00:00:00
2010-09-06 23:59:59
1200
T
100
RCQWEQW
2009-09-06 00:00:00
-
Voice
12000
T
9300
OCQWEQWE
2009-09-06 00:00:00
2010-09-06 23:59:59
Voice
2048
V
700
OC
-
-
Voice
Unlimited
T
0
RC
Voice
2009-09-06 00:00:00
2010-09-06 23:59:59
SHARED
T
100
OC
EG
2009-09-06 00:00:00
2010-09-06 23:59:59
1200
T
100
OC
2009-09-06 00:00:00
2010-09-06 23:59:59
EG
1200
V
0
RC
2009-09-06 00:00:00
2010-09-06 23:59:59
EG
Unlimited
V
0
RC
2009-09-06 00:00:00
2010-09-06 23:59:59
EG
SHARED
V
10
OC
2009-09-06 00:00:00
2010-09-06 23:59:59
EG
12000
T
0
GPAC3S07
RC
2009-09-06 00:00:00
-
EG
13500
T
0
GPAC3S07
RC
2009-09-06 00:00:00
-
EG
8600
T
0
GPAC3S07
OC
2009-09-06 00:00:00
2010-09-06 23:59:59
EG
8600
T
0
GPAC3S07
RC
EG
2009-09-06 00:00:00
2010-09-06 23:59:59
100
T
100
GPAC3S05
OC
EG
2009-09-06 00:00:00
2010-09-06 23:59:59
SHARED
T
0
GPAC3S05
OC
EG
2009-09-06 00:00:00
2010-09-06 23:59:59
SHARED
T
0
GPAC3S05
RC
EG
2009-09-06 00:00:00
2010-09-06 23:59:59
100
T
50
GPAC3S05
OC
2009-09-06 00:00:00
2010-09-06 23:59:59
EG
Unlimited
T
0
GPAC3S061
RC
2009-09-06 00:00:00
-
EG
Unlimited
T
0
GPAC3S06
1
IPK
IPK_DS_OC_XXXX
3GEG
A
2010-10-04 12:30:20
2010-11-03 23:59:59
V
500
5500
6000
512Kbps
42Mbps
2010-10-04 12:30:20
2010-11-03 23:59:59
42Mbps
2010-10-04 12:30:20
42Mbps
`
res.status(200).send(response1)
}
module.exports.getCheckBalance_SBMWSREAL = async (req, res) => {
console.log('===== POST getCheckBalance =====')
console.log('url', req.originalUrl);
console.log('headers', req.headers);
console.log('query', req.query);
console.log('params', req.params);
console.log('body', req.body);
let responseErr = `
`
let response = `
00001
1
SUCCESS
POS
FV1B1M
T
A
EN
Y
512KB
2500
9
9
V
66891288123
2
66866716795
N
2
2
1234
Recurring
2009-09-06 00:00:00
2010-09-06 23:59:59
EG
1200
T
100
1235
Recurring
2009-09-06 00:00:00
2010-09-06 23:59:59
WIFI
1200
T
900
GPAC3S05
Buy this pack for free! Unlimited monthly
Y
512KB
1
2973
Recurring
2009-09-06 00:00:00
2009-10-06 23:59:59
EG
1200
T
1200
GPAC3S05
Buy this pack for free! Unlimited monthly
N
512KB
1
2974
NextRC
2009-10-07 00:00:00
2009-11-07 00:00:00
EG
1200
T
1200
2
Package
FV1B1M
3G
A
2010-10-04 12:30:20
2010-11-03 23:59:59
V
0
5120
5120
256KB
priceplan
IPACKP04
3G
E
2010-10-04 12:30:20
2010-11-03 23:59:59
V
5120
0
5120
256KB
`
let response1 = `
00001
1
SUCCESS
POS
FV1B1M
T
A
EN
Y
512KB
2500
9
9
V
66891288123
2
66866716795
N
2
2
1234
Recurring
2009-09-06 00:00:00
2010-09-06 23:59:59
EG
1200
T
100
1235
Recurring
2009-09-06 00:00:00
2010-09-06 23:59:59
WIFI
1200
T
900
GPAC3S05
Buy this pack for free! Unlimited monthly
Y
512KB
1
2973
Recurring
2009-09-06 00:00:00
2009-10-06 23:59:59
EG
1200
T
1200
GPAC3S05
Buy this pack for free! Unlimited monthly
N
512KB
1
2974
NextRC
2009-10-07 00:00:00
2009-11-07 00:00:00
EG
1200
T
1200
2
Package
IPHONE4
3G
A
2010-10-04 12:30:20
2010-11-03 23:59:59
V
0
5120
5120
256KB
priceplan
IPACKP04
3G
E
2010-10-04 12:30:20
2010-11-03 23:59:59
V
5120
0
5120
256KB
`
res.status(200).send(response)
}
module.exports.getCheckBalanceIR = async (req, res) => {
console.log('===== POST getCheckBalanceIR =====')
console.log('url', req.originalUrl);
console.log('headers', req.headers);
console.log('query', req.query);
console.log('params', req.params);
console.log('body', req.body);
let responseErr = `
`
let response = `
00001
1
success
POS
FV1B1M
priceplan roaming unlimited
T
A
TH
550
500
N
EOAZONE
512KB
Australia
T-Mobile
66891288123
1
66866716795
N
1
4
1234
Recurring
2009-09-06 00:00:00
2010-09-06 23:59:59
DataRoam
10240
V
10240
10240
1234
Recurring
2009-09-06 00:00:00
2010-09-06 23:59:59
DataRoam
10240
V
10240
10240
TEST_IRDATAS11
RC 4GB per mounth, 2500 Bath
Y
2
238
Recurring
LIMITED
2017-12-01 14:02:10
IRUSSD
xxxxxx
601
2017-12-01 17:00:00
2017-12-12 23:59:59
2017-12-01 19:00:00
2017-12-13 01:59:59
DataRoam
1677722
V
1677722
0
Max speed
N
Max speed
1201
Recurring
LIMITED
2017-12-11 00:00:00
IRUSSD
xxxxxx
622
2017-12-13 00:00:00
2018-01-12 23:59:59
DataRoam
4194304
V
4194304
0
Max speed
N
Max speed
TEST_IRDATAS05
Package special rate (cap max per day) per group of operator ie south korea
Y
2
0
Onetime
PPU_W_CAP
2017-12-12 11:16:12
IRUSSD
xxxxxx
623
2017-12-12 11:16:12
2017-12-13 21:59:59
2017-12-12 13:16:12
2017-12-13 23:59:59
DataRoam
1202
Onetime
LIMITED
2017-12-12 11:16:12
IRAPP
xxxxxx
624
2017-12-12 11:16:12
2017-12-15 11:16:12
2017-12-12 13:16:12
2017-12-15 13:16:12
DataRoam
102400
V
102400
0
10Mbp
N
10Mbp
TEST_IRDATAS07
Package special rate without CAP MAX
Y
1
0
Onetime
PPU_WO_CAP
2017-12-12 11:16:35
IRAPP
xxxxxx
626
2017-12-12 11:16:35
2017-12-15 11:16:35
2017-12-12 11:16:35
2017-12-15 11:16:35
DataRoam
2Mbps
N
2Mbps
TEST_IRDATAS01
Package data unlimit 1 days 99 Bath
Y
1
0
Onetime
UNLIMITED
2017-12-12 11:16:46
IRAPP
xxxxxx
627
2017-12-12 11:16:46
2017-12-13 11:16:46
2017-12-12 12:16:46
2017-12-13 12:16:46
DataRoam
Unlimited
V
Unlimited
Unlimited
Max speed
N
512Kbps
512000
512000
0
`
let response1 = `
00001
1
success
POS
FV1B1M
priceplan roaming unlimited
T
A
TH
550
500
N
EOAZONE
512KB
Australia
T-Mobile
66891288123
1
66866716795
N
1
4
1234
Recurring
2009-09-06 00:00:00
2010-09-06 23:59:59
DataRoam
10240
V
10240
10240
TEST_IRDATAS11
RC 4GB per mounth, 2500 Bath
Y
2
238
Recurring
LIMITED
2017-12-01 14:02:10
IRUSSD
xxxxxx
601
2017-12-01 17:00:00
2017-12-12 23:59:59
2017-12-01 19:00:00
2017-12-13 01:59:59
DataRoam
1677722
V
1677722
0
Max speed
N
Max speed
1201
Recurring
LIMITED
2017-12-11 00:00:00
IRUSSD
xxxxxx
622
2017-12-13 00:00:00
2018-01-12 23:59:59
DataRoam
4194304
V
4194304
0
Max speed
N
Max speed
TEST_IRDATAS05
Package special rate (cap max per day) per group of operator ie south korea
Y
2
0
Onetime
PPU_W_CAP
2017-12-12 11:16:12
IRUSSD
xxxxxx
623
2017-12-12 11:16:12
2017-12-13 21:59:59
2017-12-12 13:16:12
2017-12-13 23:59:59
DataRoam
1202
Onetime
LIMITED
2017-12-12 11:16:12
IRAPP
xxxxxx
624
2017-12-12 11:16:12
2017-12-15 11:16:12
2017-12-12 13:16:12
2017-12-15 13:16:12
DataRoam
102400
V
102400
0
10Mbp
N
10Mbp
TEST_IRDATAS07
Package special rate without CAP MAX
Y
1
0
Onetime
PPU_WO_CAP
2017-12-12 11:16:35
IRAPP
xxxxxx
626
2017-12-12 11:16:35
2017-12-15 11:16:35
2017-12-12 11:16:35
2017-12-15 11:16:35
DataRoam
2Mbps
N
2Mbps
TEST_IRDATAS01
Package data unlimit 1 days 99 Bath
Y
1
0
Onetime
UNLIMITED
2017-12-12 11:16:46
IRAPP
xxxxxx
627
2017-12-12 11:16:46
2017-12-13 11:16:46
2017-12-12 12:16:46
2017-12-13 12:16:46
DataRoam
Unlimited
V
Unlimited
Unlimited
Max speed
N
512Kbps
512000
512000
0
`
res.status(200).send(response1)
}