diff --git a/app.js b/app.js index 3b0bdd6..a4e74d3 100644 --- a/app.js +++ b/app.js @@ -378,6 +378,8 @@ app.post('/privilege/v1/history/delete', require('./privilege').deleteCustomer); app.post('/v1/MVP/enq/getMobileOfferInventory/', require('./true').getMobileOfferInventory); app.post('/v1/get_AccountStatusHistoryList/', require('./true').getAccountStatusHistoryList); +app.post('/MGContractInfo/MGContractInfo/getContractHistoryList', require('./true').getContractHistoryList); +app.post('/v1/get_ProductInfo/', require('./true').getProductInfo); app.post('/api/v1/LG-API/notifySubscription', require('./lg').notifySubscription); diff --git a/app2.js b/app2.js index ce7c6d6..5d5028d 100644 --- a/app2.js +++ b/app2.js @@ -101,4 +101,10 @@ app.post('/api/v2/aaf/eligibleService.json', function (req, res) { }) }) +let data_role = [{"roleId":"61850951eb57d8001cb9b604","childId":["61c193d4dea429001d3c3a5a","61c193f1dea429001d3c3a79","61c1978adea429001d3c3ae7","61c2d63fdea429001d3c4403"],"roleName":"admin","permission":[{"_id":"61c42ff4dea429001d3c96da","name":"Generate : 1 by 1","value":"oneByone","view":"","create":"true","edit":"","delete":""},{"_id":"61c42ff4dea429001d3c96db","name":"Generate : Upload File","value":"UploadFile","view":"","create":"true","edit":"","delete":""},{"_id":"61c42ff4dea429001d3c96dc","name":"Generate History","value":"GenerateHistory","view":"true","create":"","edit":"","delete":""},{"_id":"61c42ff4dea429001d3c96dd","name":"Product Type","value":"Setting","view":"true","create":"true","edit":"true","delete":""},{"_id":"61c42ff4dea429001d3c96de","name":"Sticker Size","value":"Setting","view":"true","create":"true","edit":"","delete":"true"},{"_id":"61c42ff4dea429001d3c96df","name":"Application","value":"Setting","view":"true","create":"true","edit":"true","delete":""},{"_id":"61c42ff4dea429001d3c96e0","name":"Quantity","value":"Setting","view":"true","create":"","edit":"true","delete":""},{"_id":"61c42ff4dea429001d3c96e1","name":"User Management","value":"UserManagement","view":"true","create":"true","edit":"true","delete":"true"},{"_id":"61c42ff4dea429001d3c96e2","name":"Role Management","value":"RoleManagement","view":"true","create":"true","edit":"true","delete":"true"},{"_id":"61c42ff4dea429001d3c96e3","name":"Group Management","value":"GroupManagement","view":"true","create":"true","edit":"true","delete":"true"}],"groupId":"61b1d5448dce51001ce8cc51","createdDate":"2021-11-05T10:37:05.270Z","createdBy":"sctest","updatedDate":"2021-12-23T08:17:34.548Z","updatedBy":"superadmin"},{"roleId":"61c193d4dea429001d3c3a5a","childId":["61c193d4dea429001d3c3a62"],"roleName":"WH_User","permission":[{"_id":"61c193d4dea429001d3c3a5b","name":"Generate : 1 by 1","value":"oneByone","view":"","create":"true","edit":"","delete":""},{"_id":"61c193d4dea429001d3c3a5c","name":"Generate : Upload File","value":"UploadFile","view":"","create":"true","edit":"","delete":""},{"_id":"61c193d4dea429001d3c3a5d","name":"Generate History","value":"GenerateHistory","view":"true","create":"","edit":"","delete":""},{"_id":"61c193d4dea429001d3c3a5e","name":"User Management","value":"UserManagement","view":"true","create":"false","edit":"false","delete":"false"},{"_id":"61c193d4dea429001d3c3a5f","name":"Role Management","value":"RoleManagement","view":"true","create":"false","edit":"false","delete":"false"}],"groupId":"61b1d5448dce51001ce8cc51","parentId":"61850951eb57d8001cb9b604","createdDate":"2021-12-21T08:44:04.780Z","createdBy":"nated571","updatedDate":"2021-12-21T08:44:04.780Z","updatedBy":"nated571"},{"roleId":"61c193d4dea429001d3c3a62","childId":[],"roleName":"WH_User_e00764","permission":[{"_id":"61c193d4dea429001d3c3a63","name":"Generate : 1 by 1","value":"oneByone","create":"true","view":"","edit":"","delete":""},{"_id":"61c193d4dea429001d3c3a64","name":"Generate : Upload File","value":"UploadFile","create":"true","view":"","edit":"","delete":""},{"_id":"61c193d4dea429001d3c3a65","name":"Generate History","value":"GenerateHistory","create":"","view":"true","edit":"","delete":""},{"_id":"61c193d4dea429001d3c3a66","name":"User Management","value":"UserManagement","view":"false","create":"false","edit":"false","delete":"false"},{"_id":"61c193d4dea429001d3c3a67","name":"Role Management","value":"RoleManagement","view":"false","create":"false","edit":"false","delete":"false"}],"groupId":"61b1d5448dce51001ce8cc51","parentId":"61c193d4dea429001d3c3a5a","createdDate":"2021-12-21T08:44:04.780Z","createdBy":"nated571","updatedDate":"2021-12-21T08:44:04.780Z","updatedBy":"nated571"},{"roleId":"61c193f1dea429001d3c3a79","childId":[],"roleName":"WH_Sup","permission":[{"_id":"61c193f1dea429001d3c3a7a","name":"Generate : 1 by 1","value":"oneByone","view":"","create":"true","edit":"","delete":""},{"_id":"61c193f1dea429001d3c3a7b","name":"Generate : Upload File","value":"UploadFile","view":"","create":"true","edit":"","delete":""},{"_id":"61c193f1dea429001d3c3a7c","name":"Generate History","value":"GenerateHistory","view":"true","create":"","edit":"","delete":""},{"_id":"61c193f1dea429001d3c3a7d","name":"User Management","value":"UserManagement","view":"true","create":"false","edit":"true","delete":"false"},{"_id":"61c193f1dea429001d3c3a7e","name":"Role Management","value":"RoleManagement","view":"true","create":"false","edit":"true","delete":"false"}],"groupId":"61b1d5448dce51001ce8cc51","parentId":"61850951eb57d8001cb9b604","createdDate":"2021-12-21T08:44:33.201Z","createdBy":"nated571","updatedDate":"2021-12-21T08:44:33.201Z","updatedBy":"nated571"},{"roleId":"61c1978adea429001d3c3ae7","childId":["61c1978adea429001d3c3aef"],"roleName":"Admin_WH","permission":[{"_id":"61c1978adea429001d3c3ae8","name":"Generate : 1 by 1","value":"oneByone","view":"","create":"true","edit":"","delete":""},{"_id":"61c1978adea429001d3c3ae9","name":"Generate : Upload File","value":"UploadFile","view":"","create":"true","edit":"","delete":""},{"_id":"61c1978adea429001d3c3aea","name":"Generate History","value":"GenerateHistory","view":"true","create":"","edit":"","delete":""},{"_id":"61c1978adea429001d3c3aeb","name":"User Management","value":"UserManagement","view":"true","create":"false","edit":"false","delete":"false"},{"_id":"61c1978adea429001d3c3aec","name":"Role Management","value":"RoleManagement","view":"true","create":"false","edit":"false","delete":"false"}],"groupId":"61b1d5448dce51001ce8cc51","parentId":"61850951eb57d8001cb9b604","createdDate":"2021-12-21T08:59:54.801Z","createdBy":"nated571","updatedDate":"2021-12-21T08:59:54.801Z","updatedBy":"nated571"},{"roleId":"61c1978adea429001d3c3aef","childId":[],"roleName":"Admin_WH_e455f9","permission":[{"_id":"61c1978adea429001d3c3af0","name":"Generate : 1 by 1","value":"oneByone","create":"true","view":"","edit":"","delete":""},{"_id":"61c1978adea429001d3c3af1","name":"Generate : Upload File","value":"UploadFile","create":"true","view":"","edit":"","delete":""},{"_id":"61c1978adea429001d3c3af2","name":"Generate History","value":"GenerateHistory","create":"","view":"true","edit":"","delete":""},{"_id":"61c1978adea429001d3c3af3","name":"User Management","value":"UserManagement","view":"false","create":"false","edit":"false","delete":"false"},{"_id":"61c1978adea429001d3c3af4","name":"Role Management","value":"RoleManagement","view":"false","create":"false","edit":"false","delete":"false"}],"groupId":"61b1d5448dce51001ce8cc51","parentId":"61c1978adea429001d3c3ae7","createdDate":"2021-12-21T08:59:54.801Z","createdBy":"nated571","updatedDate":"2021-12-21T08:59:54.801Z","updatedBy":"nated571"},{"roleId":"61c2d63fdea429001d3c4403","childId":["61c2d63fdea429001d3c440b"],"roleName":"WH_Generate","permission":[{"_id":"61c2d63fdea429001d3c4404","name":"Generate : 1 by 1","value":"oneByone","view":"","create":"true","edit":"","delete":""},{"_id":"61c2d63fdea429001d3c4405","name":"Generate : Upload File","value":"UploadFile","view":"","create":"true","edit":"","delete":""},{"_id":"61c2d63fdea429001d3c4406","name":"Generate History","value":"GenerateHistory","view":"false","create":"","edit":"","delete":""},{"_id":"61c2d63fdea429001d3c4407","name":"User Management","value":"UserManagement","view":"false","create":"false","edit":"false","delete":"false"},{"_id":"61c2d63fdea429001d3c4408","name":"Role Management","value":"RoleManagement","view":"false","create":"false","edit":"false","delete":"false"}],"groupId":"61b1d5448dce51001ce8cc51","parentId":"61850951eb57d8001cb9b604","createdDate":"2021-12-22T07:39:43.216Z","createdBy":"nated571","updatedDate":"2021-12-22T07:39:43.216Z","updatedBy":"nated571"},{"roleId":"61c2d63fdea429001d3c440b","childId":[],"roleName":"WH_Generate_fde92a","permission":[{"_id":"61c2d63fdea429001d3c440c","name":"Generate : 1 by 1","value":"oneByone","create":"true","view":"","edit":"","delete":""},{"_id":"61c2d63fdea429001d3c440d","name":"Generate : Upload File","value":"UploadFile","create":"true","view":"","edit":"","delete":""},{"_id":"61c2d63fdea429001d3c440e","name":"Generate History","value":"GenerateHistory","create":"","view":"true","edit":"","delete":""},{"_id":"61c2d63fdea429001d3c440f","name":"User Management","value":"UserManagement","view":"false","create":"false","edit":"false","delete":"false"},{"_id":"61c2d63fdea429001d3c4410","name":"Role Management","value":"RoleManagement","view":"false","create":"false","edit":"false","delete":"false"}],"groupId":"61b1d5448dce51001ce8cc51","parentId":"61c2d63fdea429001d3c4403","createdDate":"2021-12-22T07:39:43.216Z","createdBy":"nated571","updatedDate":"2021-12-22T07:39:43.216Z","updatedBy":"nated571"}] + +data_role.sort((a,b) => (Date.parse(a.updatedDate) > Date.parse(b.updatedDate)) ? -1 : (( Date.parse(b.updatedDate) > Date.parse(a.updatedDate)) ? 1 : 0)) + +console.log(data_role) + app.listen(3002); \ No newline at end of file diff --git a/crmasset.js b/crmasset.js index e4e0f8c..857c019 100644 --- a/crmasset.js +++ b/crmasset.js @@ -33,7 +33,8 @@ module.exports.getAssetComponentList = async (req, res) => { "expiryDate": "2020-09-06T00:00:00.000+0700", "status": "Inactive", "offerType": "Discount", - "chargePeriod": "Monthly" + "chargePeriod": "Monthly", + "billPeriod": "abc" }, { "assetRowID": "1-7KISY7T", diff --git a/intx.js b/intx.js index 88c97a2..c67eb0f 100644 --- a/intx.js +++ b/intx.js @@ -1736,131 +1736,9 @@ module.exports.getAllCCBSInvoiceList = async (req, res) => { "getAllInvoiceListResponse": { "return": { "invoiceList": { - "size": "4", + "size": "1", "invoiceInfoArray": [ { - "discountTaxAmount": "-140", - "adjustmentNetAmount": "0", - "availableAdjustmentNetAmount": "1099", - "invoiceBcBanId": "700046423", - "dueDate": "2021-06-03T00:00:00.000+07:00", - "orderIdGroup": "", - "vatRate": "0.00", - "converageEndDate1": "2021-06-09T00:00:00.000+07:00", - "discountAmount": "-2000", - "invoiceTFaxAmount": "76.93", - "invoiceAmount": "1099", - "invoiceStatusChangeDate": "2021-06-15T00:00:00.000+07:00", - "paymentAmount": "1175.93", - "baNo": "200078606", - "billTaxAmount": "307.72", - "billingDocumentType": { - "code": "BL", - "description": "Bill" - }, - "billAmount": "4703.72", - "invoiceType": "BILL", - "converageStartDate1": "2021-05-10T00:00:00.000+07:00", - "currency": "THB", - "billSequenceNo": "13522", - "invoiceNo": "070520211000425014", - "originalBalanceAmount": "1175.93", - "customerManagerBaNo": "200078606", - "invoiceCreationDate": "2021-06-02T00:00:00.000+07:00", - "unpaidNetAmount": "0", - "availableAdjustmentAmount": "1266.72", - "discountNetAmount": "-2000", - "billDate": "2021-05-11T01:00:00.000+07:00", - "disputeNetAmount": "1.0", - "creditTaxAmount": "0", - "accountId": "200078606", - "billProductType": "", - "billingDocumentStatus": { - "code": "N", - "description": "Confirmed" - }, - "unpaidAmount": "0", - "restrictionAmount": "2000", - "disputeTaxAmount": "0.00", - "invoiceCycle": { - "code": "10", - "month": "5", - "year": "2021" - }, - "convergenceInvoiceNo": "000520211000134302", - "coveredAmount": "1175.93", - "invoiceId": "1067822", - "performanceIndStatus": "", - "unpaidTaxAmount": "0", - "invoiceStatus": "C", - "adjustmentAmount": "0", - "restrictionTaxAmount": "140", - "periodCvrgStartDate": "2021-04-10T00:00:00.000+07:00", - "periodCvrgEndDate": "2021-05-09T00:00:00.000+07:00", - "invoiceChargeType": "BILL" - }, - { - "discountTaxAmount": "-140", - "adjustmentNetAmount": "0", - "availableAdjustmentNetAmount": "1099", - "invoiceBcBanId": "700046423", - "dueDate": "2021-05-03T00:00:00.000+07:00", - "orderIdGroup": "", - "vatRate": "0.00", - "converageEndDate": "2021-05-09T00:00:00.000+07:00", - "discountAmount": "-2000", - "invoiceTaxAmount": "76.93", - "invoiceAmount": "1099", - "invoiceStatusChangeDate": "2021-06-15T00:00:00.000+07:00", - "paymentAmount": "1175.93", - "baNo": "200078606", - "billTaxAmount": "307.72", - "billingDocumentType": { - "code": "BL", - "description": "Bill" - }, - "billAmount": "4703.72", - "invoiceType": "BILL", - "converageStartDate": "2021-04-10T00:00:00.000+07:00", - "currency": "THB", - "billSequenceNo": "13521", - "invoiceNo": "070420211000419181", - "originalBalanceAmount": "1175.93", - "customerManagerBaNo": "200078606", - "invoiceCreationDate": "2021-04-29T00:00:00.000+07:00", - "unpaidNetAmount": "0", - "availableAdjustmentAmount": "1266.72", - "discountNetAmount": "-2000", - "billDate": "2021-04-29T00:00:00.000+07:00", - "disputeNetAmount": "0.00", - "creditTaxAmount": "0", - "accountId": "200078606", - "billProductType": "", - "billingDocumentStatus": { - "code": "N", - "description": "Confirmed" - }, - "unpaidAmount": "0", - "restrictionAmount": "2000", - "disputeTaxAmount": "0.00", - "invoiceCycle": { - "code": "10", - "month": "4", - "year": "2021" - }, - "convergenceInvoiceNo": "000420211000131905", - "coveredAmount": "1175.93", - "invoiceId": "1039597", - "performanceIndStatus": "", - "unpaidTaxAmount": "0", - "invoiceStatus": "C", - "adjustmentAmount": "0", - "restrictionTaxAmount": "140", - "periodCvrgStartDate": "2021-03-10T00:00:00.000+07:00", - "periodCvrgEndDate": "2021-04-09T00:00:00.000+07:00", - "invoiceChargeType": "BILL" - }, - { "discountTaxAmount": "0", "adjustmentNetAmount": "0", "availableAdjustmentNetAmount": "30", @@ -1879,7 +1757,7 @@ module.exports.getAllCCBSInvoiceList = async (req, res) => { "description": "" }, "billAmount": "30", - "invoiceType": "DCB", + "invoiceType": "BILL", "currency": "THB", "billSequenceNo": "-1", "invoiceNo": "AR1008437", @@ -1913,65 +1791,8 @@ module.exports.getAllCCBSInvoiceList = async (req, res) => { "invoiceStatus": "C", "adjustmentAmount": "0", "restrictionTaxAmount": "0", - "chargeCode": "CN", + "chargeCode": "OCTVENTPEN1", "invoiceChargeType": "INTEREST" - }, - { - "discountTaxAmount": "0", - "adjustmentNetAmount": "0", - "availableAdjustmentNetAmount": "20", - "dueDate": "2021-06-30T00:00:00.000+07:00", - "orderIdGroup": "COLLECTION", - "vatRate": "0.00", - "discountAmount": "0", - "invoiceTaxAmount": "1.4", - "invoiceAmount": "20", - "invoiceStatusChangeDate": "2021-06-15T00:00:00.000+07:00", - "paymentAmount": "21.40", - "baNo": "200078606", - "billTaxAmount": "1.4", - "billingDocumentType": { - "code": null, - "description": "" - }, - "billAmount": "21.4", - "invoiceType": "IMCG", - "currency": "THB", - "billSequenceNo": "-1", - "invoiceNo": "AR1008438", - "originalBalanceAmount": "21.4", - "customerManagerBaNo": "200078606", - "invoiceCreationDate": "2021-03-25T00:00:00.000+07:00", - "unpaidNetAmount": "0", - "availableAdjustmentAmount": "21.4", - "discountNetAmount": "0", - "disputeNetAmount": "0.00", - "creditTaxAmount": "0", - "accountId": "200078606", - "billProductType": "", - "billingDocumentStatus": { - "code": null, - "description": "" - }, - "unpaidAmount": "0", - "restrictionAmount": "0", - "disputeTaxAmount": "0.00", - "invoiceCycle": { - "code": "10", - "month": "4", - "year": "2021" - }, - "convergenceInvoiceNo": "", - "coveredAmount": "21.4", - "invoiceId": "1008438", - "performanceIndStatus": "", - "unpaidTaxAmount": "0", - "invoiceStatus": "C", - "adjustmentAmount": "0", - "restrictionTaxAmount": "0", - "chargeCode": "OCOLETYPEN", - "invoiceChargeType": "COLLECTION", - "periodCvrgStartDate": "test" } ] }, @@ -2440,7 +2261,7 @@ module.exports.getAccountInfo = async (req, res) => { "creditCardType": "MasterCard", "creditCardNumber": "10-20-30-40", "creditCardName": null, - "creditCardExpirationDate": null, + "creditCardExpirationDate": "2019-03-27T00:00:00.000+07:00", "bankCode": null, "bankBranchNumber": null, "bankAccountNumber": "30-111-9933-1", diff --git a/postpay_true.js b/postpay_true.js index 94fa3fb..d540e8b 100644 --- a/postpay_true.js +++ b/postpay_true.js @@ -261,61 +261,1044 @@ module.exports.getLastInvoiceList = async (req, res) => { "getLastInvoiceListResponse": { "return": { "invoiceList": { - "size": "4", + "size": "1", + "invoiceInfoArray": [ + { + "discountTaxAmount": "0", + "adjustmentNetAmount": "0", + "availableAdjustmentNetAmount": "699", + "invoiceBcBanId": "813", + "dueDate": "2013-06-26T00:00:00.000+07:00", + "vatRate": "0.00", + "converageEndDate": "2013-06-01T00:00:00.000+07:00", + "discountAmount": "0", + "invoiceTaxAmount": "48.93", + "invoiceAmount": "699", + "invoiceStatusChangeDate": "2013-06-12T00:00:00.000+07:00", + "paymentAmount": "0", + "baNo": "10000449", + "billTaxAmount": "293.58", + "billingDocumentType": { + "code": "BL", + "description": "Bill" + }, + "billAmount": "4487.58", + "invoiceType": "BILL", + "converageStartDate": "2013-05-02T00:00:00.000+07:00", + "currency": "THB", + "billSequenceNo": "293", + "invoiceNo": "140620130200002104", + "originalBalanceAmount": "1.01", + "customerManagerBaNo": "10000449", + "invoiceCreationDate": "2013-06-12T00:00:00.000+07:00", + "unpaidNetAmount": "699", + "availableAdjustmentAmount": "992.58", + "discountNetAmount": "0", + "billDate": "2021-01-03T00:00:00.000+07:00", + "disputeNetAmount": "0.00", + "creditTaxAmount": "0", + "accountId": "10000449", + "billProductType": "", + "billingDocumentStatus": { + "code": "N", + "description": "Confirmed" + }, + "unpaidAmount": "0.00", + "restrictionAmount": "0", + "disputeTaxAmount": "0.00", + "invoiceCycle": { + "code": "2", + "month": "1", + "year": "2023" + }, + "convergenceInvoiceNo": "140620130200002104", + "coveredAmount": "0", + "invoiceId": "8627", + "performanceIndStatus": "", + "unpaidTaxAmount": "48.93", + "invoiceStatus": "O", + "adjustmentAmount": "0", + "restrictionTaxAmount": "0" + },{ + "discountTaxAmount": "0", + "adjustmentNetAmount": "0", + "availableAdjustmentNetAmount": "699", + "invoiceBcBanId": "813", + "dueDate": "2013-06-26T00:00:00.000+07:00", + "vatRate": "0.00", + "converageEndDate": "2013-06-01T00:00:00.000+07:00", + "discountAmount": "0", + "invoiceTaxAmount": "48.93", + "invoiceAmount": "699", + "invoiceStatusChangeDate": "2013-06-12T00:00:00.000+07:00", + "paymentAmount": "0", + "baNo": "10000449", + "billTaxAmount": "293.58", + "billingDocumentType": { + "code": "BL", + "description": "Bill" + }, + "billAmount": "4487.58", + "invoiceType": "BILL", + "converageStartDate": "2013-05-02T00:00:00.000+07:00", + "currency": "THB", + "billSequenceNo": "293", + "invoiceNo": "140620130200002104", + "originalBalanceAmount": "1011.00", + "customerManagerBaNo": "10000449", + "invoiceCreationDate": "2013-06-12T00:00:00.000+07:00", + "unpaidNetAmount": "699", + "availableAdjustmentAmount": "992.58", + "discountNetAmount": "0", + "billDate": "2021-11-03T00:00:00.000+07:00", + "disputeNetAmount": "0.00", + "creditTaxAmount": "0", + "accountId": "10000449", + "billProductType": "", + "billingDocumentStatus": { + "code": "N", + "description": "Confirmed" + }, + "unpaidAmount": "100.00", + "restrictionAmount": "0", + "disputeTaxAmount": "0.00", + "invoiceCycle": { + "code": "2", + "month": "9", + "year": "2021" + }, + "convergenceInvoiceNo": "140620130200002104", + "coveredAmount": "0", + "invoiceId": "8627", + "performanceIndStatus": "", + "unpaidTaxAmount": "48.93", + "invoiceStatus": "O", + "adjustmentAmount": "0", + "restrictionTaxAmount": "0" + } + ] + }, + "errorCode": "OSBbllngA00001", + "message": "Success.", + "uuid": "530dbd96-bada-4fcd-85d0-a829ba1347d7" + } + } + } + + let response1 = { + "getLastInvoiceListResponse": { + "return": { + "invoiceList": { + "size": "24", "invoiceInfoArray": [ { "discountTaxAmount": "0", "adjustmentNetAmount": "0", - "availableAdjustmentNetAmount": "699", - "invoiceBcBanId": "813", - "dueDate": "2013-06-26T00:00:00.000+07:00", + "availableAdjustmentNetAmount": "1099", + "invoiceBcBanId": "700037290", + "dueDate": "2019-07-12T00:00:00.000+07:00", + "vatRate": "0.00", + "converageEndDate": "2019-07-18T00:00:00.000+07:00", + "discountAmount": "0", + "invoiceTaxAmount": "76.93", + "invoiceAmount": "1099", + "invoiceStatusChangeDate": "2019-07-02T00:00:00.000+07:00", + "paymentAmount": "0", + "baNo": "200047386", + "billTaxAmount": "76.93", + "billingDocumentType": { + "code": "BL", + "description": "Bill" + }, + "billAmount": "1175.93", + "invoiceType": "BILL", + "converageStartDate": "2019-06-19T00:00:00.000+07:00", + "currency": "THB", + "billSequenceNo": "9356", + "invoiceNo": "070620191900128986", + "originalBalanceAmount": "1175.93", + "customerManagerBaNo": "200047386", + "invoiceCreationDate": "2019-07-02T00:00:00.000+07:00", + "unpaidNetAmount": "1099", + "availableAdjustmentAmount": "1175.93", + "discountNetAmount": "0", + "billDate": "2021-08-20T00:00:00.000+07:00", + "disputeNetAmount": "0.00", + "creditTaxAmount": "0", + "accountId": "200047386", + "billProductType": "", + "billingDocumentStatus": { + "code": "N", + "description": "Confirmed" + }, + "unpaidAmount": "1175.93", + "restrictionAmount": "0", + "disputeTaxAmount": "0.00", + "invoiceCycle": { + "code": "19", + "month": "8", + "year": "2021" + }, + "convergenceInvoiceNo": "070620191900128986", + "coveredAmount": "0", + "invoiceId": "392743", + "performanceIndStatus": "", + "unpaidTaxAmount": "76.93", + "invoiceStatus": "O", + "adjustmentAmount": "0", + "restrictionTaxAmount": "0" + }, + { + "discountTaxAmount": "0", + "adjustmentNetAmount": "0", + "availableAdjustmentNetAmount": "1099", + "invoiceBcBanId": "700037290", + "dueDate": "2019-06-12T00:00:00.000+07:00", + "vatRate": "0.00", + "converageEndDate": "2019-06-18T00:00:00.000+07:00", + "discountAmount": "0", + "invoiceTaxAmount": "76.93", + "invoiceAmount": "1099", + "invoiceStatusChangeDate": "2019-05-22T00:00:00.000+07:00", + "paymentAmount": "0", + "baNo": "200047386", + "billTaxAmount": "76.93", + "billingDocumentType": { + "code": "BL", + "description": "Bill" + }, + "billAmount": "1175.93", + "invoiceType": "BILL", + "converageStartDate": "2019-05-19T00:00:00.000+07:00", + "currency": "THB", + "billSequenceNo": "9355", + "invoiceNo": "070520191900126840", + "originalBalanceAmount": "123.93", + "customerManagerBaNo": "200047386", + "invoiceCreationDate": "2019-05-22T00:00:00.000+07:00", + "unpaidNetAmount": "1099", + "availableAdjustmentAmount": "1175.93", + "discountNetAmount": "0", + "billDate": "2022-01-22T00:00:00.000+07:00", + "disputeNetAmount": "0.00", + "creditTaxAmount": "0", + "accountId": "200047386", + "billProductType": "", + "billingDocumentStatus": { + "code": "N", + "description": "Confirmed" + }, + "unpaidAmount": "123.93", + "restrictionAmount": "0", + "disputeTaxAmount": "0.00", + "invoiceCycle": { + "code": "19", + "month": "01", + "year": "2022" + }, + "convergenceInvoiceNo": "070520191900126840", + "coveredAmount": "0", + "invoiceId": "368196", + "performanceIndStatus": "", + "unpaidTaxAmount": "76.93", + "invoiceStatus": "O", + "adjustmentAmount": "0", + "restrictionTaxAmount": "0" + }, + { + "discountTaxAmount": "0", + "adjustmentNetAmount": "0", + "availableAdjustmentNetAmount": "1099", + "invoiceBcBanId": "700037290", + "dueDate": "2019-05-12T00:00:00.000+07:00", + "vatRate": "0.00", + "converageEndDate": "2019-05-18T00:00:00.000+07:00", + "discountAmount": "0", + "invoiceTaxAmount": "76.93", + "invoiceAmount": "1099", + "invoiceStatusChangeDate": "2019-04-30T00:00:00.000+07:00", + "paymentAmount": "0", + "baNo": "200047386", + "billTaxAmount": "76.93", + "billingDocumentType": { + "code": "BL", + "description": "Bill" + }, + "billAmount": "1175.93", + "invoiceType": "BILL", + "converageStartDate": "2019-04-19T00:00:00.000+07:00", + "currency": "THB", + "billSequenceNo": "9354", + "invoiceNo": "070420191900124633", + "originalBalanceAmount": "1175.93", + "customerManagerBaNo": "200047386", + "invoiceCreationDate": "2019-04-30T00:00:00.000+07:00", + "unpaidNetAmount": "1099", + "availableAdjustmentAmount": "1175.93", + "discountNetAmount": "0", + "billDate": "2019-04-23T00:00:00.000+07:00", + "disputeNetAmount": "0.00", + "creditTaxAmount": "0", + "accountId": "200047386", + "billProductType": "", + "billingDocumentStatus": { + "code": "N", + "description": "Confirmed" + }, + "unpaidAmount": "1175.93", + "restrictionAmount": "0", + "disputeTaxAmount": "0.00", + "invoiceCycle": { + "code": "19", + "month": "4", + "year": "2019" + }, + "convergenceInvoiceNo": "070420191900124633", + "coveredAmount": "0", + "invoiceId": "357687", + "performanceIndStatus": "", + "unpaidTaxAmount": "76.93", + "invoiceStatus": "O", + "adjustmentAmount": "0", + "restrictionTaxAmount": "0" + }, + { + "discountTaxAmount": "0", + "adjustmentNetAmount": "0", + "availableAdjustmentNetAmount": "1099", + "invoiceBcBanId": "700037290", + "dueDate": "2019-04-12T00:00:00.000+07:00", + "vatRate": "0.00", + "converageEndDate": "2019-04-18T00:00:00.000+07:00", + "discountAmount": "0", + "invoiceTaxAmount": "76.93", + "invoiceAmount": "1099", + "invoiceStatusChangeDate": "2019-04-22T00:00:00.000+07:00", + "paymentAmount": "0", + "baNo": "200047386", + "billTaxAmount": "76.93", + "billingDocumentType": { + "code": "BL", + "description": "Bill" + }, + "billAmount": "1175.93", + "invoiceType": "BILL", + "converageStartDate": "2019-03-19T00:00:00.000+07:00", + "currency": "THB", + "billSequenceNo": "9353", + "invoiceNo": "070320191900122423", + "originalBalanceAmount": "1175.93", + "customerManagerBaNo": "200047386", + "invoiceCreationDate": "2019-04-22T00:00:00.000+07:00", + "unpaidNetAmount": "1099", + "availableAdjustmentAmount": "1175.93", + "discountNetAmount": "0", + "billDate": "2019-03-20T00:00:00.000+07:00", + "disputeNetAmount": "0.00", + "creditTaxAmount": "0", + "accountId": "200047386", + "billProductType": "", + "billingDocumentStatus": { + "code": "N", + "description": "Confirmed" + }, + "unpaidAmount": "1175.93", + "restrictionAmount": "0", + "disputeTaxAmount": "0.00", + "invoiceCycle": { + "code": "19", + "month": "3", + "year": "2019" + }, + "convergenceInvoiceNo": "070320191900122423", + "coveredAmount": "0", + "invoiceId": "350750", + "performanceIndStatus": "", + "unpaidTaxAmount": "76.93", + "invoiceStatus": "O", + "adjustmentAmount": "0", + "restrictionTaxAmount": "0" + }, + { + "discountTaxAmount": "0", + "adjustmentNetAmount": "0", + "availableAdjustmentNetAmount": "1099", + "invoiceBcBanId": "700037290", + "dueDate": "2019-03-16T00:00:00.000+07:00", + "vatRate": "0.00", + "converageEndDate": "2019-03-18T00:00:00.000+07:00", + "discountAmount": "0", + "invoiceTaxAmount": "76.93", + "invoiceAmount": "1099", + "invoiceStatusChangeDate": "2019-03-19T00:00:00.000+07:00", + "paymentAmount": "0", + "baNo": "200047386", + "billTaxAmount": "76.93", + "billingDocumentType": { + "code": "BL", + "description": "Bill" + }, + "billAmount": "1175.93", + "invoiceType": "BILL", + "converageStartDate": "2019-02-19T00:00:00.000+07:00", + "currency": "THB", + "billSequenceNo": "9079", + "invoiceNo": "070220191900120320", + "originalBalanceAmount": "1175.93", + "customerManagerBaNo": "200047386", + "invoiceCreationDate": "2019-03-19T00:00:00.000+07:00", + "unpaidNetAmount": "1099", + "availableAdjustmentAmount": "1175.93", + "discountNetAmount": "0", + "billDate": "2019-02-21T00:00:00.000+07:00", + "disputeNetAmount": "0.00", + "creditTaxAmount": "0", + "accountId": "200047386", + "billProductType": "", + "billingDocumentStatus": { + "code": "N", + "description": "Confirmed" + }, + "unpaidAmount": "1175.93", + "restrictionAmount": "0", + "disputeTaxAmount": "0.00", + "invoiceCycle": { + "code": "19", + "month": "2", + "year": "2019" + }, + "convergenceInvoiceNo": "070220191900120320", + "coveredAmount": "0", + "invoiceId": "334508", + "performanceIndStatus": "", + "unpaidTaxAmount": "76.93", + "invoiceStatus": "O", + "adjustmentAmount": "0", + "restrictionTaxAmount": "0" + }, + { + "discountTaxAmount": "0", + "adjustmentNetAmount": "0", + "availableAdjustmentNetAmount": "1099", + "invoiceBcBanId": "700037290", + "dueDate": "2019-02-14T00:00:00.000+07:00", + "vatRate": "0.00", + "converageEndDate": "2019-02-18T00:00:00.000+07:00", + "discountAmount": "0", + "invoiceTaxAmount": "76.93", + "invoiceAmount": "1099", + "invoiceStatusChangeDate": "2019-02-20T00:00:00.000+07:00", + "paymentAmount": "0", + "baNo": "200047386", + "billTaxAmount": "76.93", + "billingDocumentType": { + "code": "BL", + "description": "Bill" + }, + "billAmount": "1175.93", + "invoiceType": "BILL", + "converageStartDate": "2019-01-19T00:00:00.000+07:00", + "currency": "THB", + "billSequenceNo": "9078", + "invoiceNo": "070120191900117390", + "originalBalanceAmount": "1175.93", + "customerManagerBaNo": "200047386", + "invoiceCreationDate": "2019-02-20T00:00:00.000+07:00", + "unpaidNetAmount": "1099", + "availableAdjustmentAmount": "1175.93", + "discountNetAmount": "0", + "billDate": "2019-01-22T00:00:00.000+07:00", + "disputeNetAmount": "0.00", + "creditTaxAmount": "0", + "accountId": "200047386", + "billProductType": "", + "billingDocumentStatus": { + "code": "N", + "description": "Confirmed" + }, + "unpaidAmount": "1175.93", + "restrictionAmount": "0", + "disputeTaxAmount": "0.00", + "invoiceCycle": { + "code": "19", + "month": "12", + "year": "2018" + }, + "convergenceInvoiceNo": "070120191900117390", + "coveredAmount": "0", + "invoiceId": "319609", + "performanceIndStatus": "", + "unpaidTaxAmount": "76.93", + "invoiceStatus": "O", + "adjustmentAmount": "0", + "restrictionTaxAmount": "0" + }, + { + "discountTaxAmount": "0", + "adjustmentNetAmount": "0", + "availableAdjustmentNetAmount": "1099", + "invoiceBcBanId": "700037290", + "dueDate": "2018-12-13T00:00:00.000+07:00", + "vatRate": "0.00", + "converageEndDate": "2018-12-18T00:00:00.000+07:00", + "discountAmount": "0", + "invoiceTaxAmount": "76.93", + "invoiceAmount": "1099", + "invoiceStatusChangeDate": "2018-12-19T00:00:00.000+07:00", + "paymentAmount": "0", + "baNo": "200047386", + "billTaxAmount": "76.93", + "billingDocumentType": { + "code": "BL", + "description": "Bill" + }, + "billAmount": "1175.93", + "invoiceType": "BILL", + "converageStartDate": "2018-11-19T00:00:00.000+07:00", + "currency": "THB", + "billSequenceNo": "9076", + "invoiceNo": "071120181900106553", + "originalBalanceAmount": "1175.93", + "customerManagerBaNo": "200047386", + "invoiceCreationDate": "2018-12-19T00:00:00.000+07:00", + "unpaidNetAmount": "1099", + "availableAdjustmentAmount": "1175.93", + "discountNetAmount": "0", + "billDate": "2018-11-20T00:00:00.000+07:00", + "disputeNetAmount": "0.00", + "creditTaxAmount": "0", + "accountId": "200047386", + "billProductType": "", + "billingDocumentStatus": { + "code": "N", + "description": "Confirmed" + }, + "unpaidAmount": "1175.93", + "restrictionAmount": "0", + "disputeTaxAmount": "0.00", + "invoiceCycle": { + "code": "19", + "month": "11", + "year": "2018" + }, + "convergenceInvoiceNo": "071120181900106553", + "coveredAmount": "0", + "invoiceId": "303487", + "performanceIndStatus": "", + "unpaidTaxAmount": "76.93", + "invoiceStatus": "O", + "adjustmentAmount": "0", + "restrictionTaxAmount": "0" + }, + { + "discountTaxAmount": "0", + "adjustmentNetAmount": "0", + "availableAdjustmentNetAmount": "1099", + "invoiceBcBanId": "700037290", + "dueDate": "2019-01-12T00:00:00.000+07:00", + "vatRate": "0.00", + "converageEndDate": "2019-01-18T00:00:00.000+07:00", + "discountAmount": "0", + "invoiceTaxAmount": "76.93", + "invoiceAmount": "1099", + "invoiceStatusChangeDate": "2018-12-19T00:00:00.000+07:00", + "paymentAmount": "0", + "baNo": "200047386", + "billTaxAmount": "76.93", + "billingDocumentType": { + "code": "BL", + "description": "Bill" + }, + "billAmount": "1175.93", + "invoiceType": "BILL", + "converageStartDate": "2018-12-19T00:00:00.000+07:00", + "currency": "THB", + "billSequenceNo": "9077", + "invoiceNo": "071220181900112288", + "originalBalanceAmount": "1175.93", + "customerManagerBaNo": "200047386", + "invoiceCreationDate": "2018-12-19T00:00:00.000+07:00", + "unpaidNetAmount": "1099", + "availableAdjustmentAmount": "1175.93", + "discountNetAmount": "0", + "billDate": "2018-12-20T00:00:00.000+07:00", + "disputeNetAmount": "0.00", + "creditTaxAmount": "0", + "accountId": "200047386", + "billProductType": "", + "billingDocumentStatus": { + "code": "N", + "description": "Confirmed" + }, + "unpaidAmount": "1175.93", + "restrictionAmount": "0", + "disputeTaxAmount": "0.00", + "invoiceCycle": { + "code": "19", + "month": "12", + "year": "2018" + }, + "convergenceInvoiceNo": "071220181900112288", + "coveredAmount": "0", + "invoiceId": "304713", + "performanceIndStatus": "", + "unpaidTaxAmount": "76.93", + "invoiceStatus": "O", + "adjustmentAmount": "0", + "restrictionTaxAmount": "0" + }, + { + "discountTaxAmount": "0", + "adjustmentNetAmount": "0", + "availableAdjustmentNetAmount": "1099", + "invoiceBcBanId": "700037290", + "dueDate": "2018-11-12T00:00:00.000+07:00", + "vatRate": "0.00", + "converageEndDate": "2018-11-18T00:00:00.000+07:00", + "discountAmount": "0", + "invoiceTaxAmount": "76.93", + "invoiceAmount": "1099", + "invoiceStatusChangeDate": "2018-10-21T00:00:00.000+07:00", + "paymentAmount": "0", + "baNo": "200047386", + "billTaxAmount": "76.93", + "billingDocumentType": { + "code": "BL", + "description": "Bill" + }, + "billAmount": "1175.93", + "invoiceType": "BILL", + "converageStartDate": "2018-10-19T00:00:00.000+07:00", + "currency": "THB", + "billSequenceNo": "9075", + "invoiceNo": "071020181900105703", + "originalBalanceAmount": "1175.93", + "customerManagerBaNo": "200047386", + "invoiceCreationDate": "2018-10-21T00:00:00.000+07:00", + "unpaidNetAmount": "1099", + "availableAdjustmentAmount": "1175.93", + "discountNetAmount": "0", + "billDate": "2018-10-20T00:00:00.000+07:00", + "disputeNetAmount": "0.00", + "creditTaxAmount": "0", + "accountId": "200047386", + "billProductType": "", + "billingDocumentStatus": { + "code": "N", + "description": "Confirmed" + }, + "unpaidAmount": "1175.93", + "restrictionAmount": "0", + "disputeTaxAmount": "0.00", + "invoiceCycle": { + "code": "19", + "month": "10", + "year": "2018" + }, + "convergenceInvoiceNo": "071020181900105703", + "coveredAmount": "0", + "invoiceId": "290801", + "performanceIndStatus": "", + "unpaidTaxAmount": "76.93", + "invoiceStatus": "O", + "adjustmentAmount": "0", + "restrictionTaxAmount": "0" + }, + { + "discountTaxAmount": "0", + "adjustmentNetAmount": "0", + "availableAdjustmentNetAmount": "1099", + "invoiceBcBanId": "700037290", + "dueDate": "2018-10-19T00:00:00.000+07:00", + "vatRate": "0.00", + "converageEndDate": "2018-10-18T00:00:00.000+07:00", + "discountAmount": "0", + "invoiceTaxAmount": "76.93", + "invoiceAmount": "1099", + "invoiceStatusChangeDate": "2018-10-19T00:00:00.000+07:00", + "paymentAmount": "0", + "baNo": "200047386", + "billTaxAmount": "76.93", + "billingDocumentType": { + "code": "BL", + "description": "Bill" + }, + "billAmount": "1175.93", + "invoiceType": "BILL", + "converageStartDate": "2018-09-19T00:00:00.000+07:00", + "currency": "THB", + "billSequenceNo": "9074", + "invoiceNo": "070920181900104269", + "originalBalanceAmount": "1175.93", + "customerManagerBaNo": "200047386", + "invoiceCreationDate": "2018-10-19T00:00:00.000+07:00", + "unpaidNetAmount": "1099", + "availableAdjustmentAmount": "1175.93", + "discountNetAmount": "0", + "billDate": "2018-09-26T00:00:00.000+07:00", + "disputeNetAmount": "0.00", + "creditTaxAmount": "0", + "accountId": "200047386", + "billProductType": "", + "billingDocumentStatus": { + "code": "N", + "description": "Confirmed" + }, + "unpaidAmount": "1175.93", + "restrictionAmount": "0", + "disputeTaxAmount": "0.00", + "invoiceCycle": { + "code": "19", + "month": "9", + "year": "2018" + }, + "convergenceInvoiceNo": "070920181900104269", + "coveredAmount": "0", + "invoiceId": "289285", + "performanceIndStatus": "", + "unpaidTaxAmount": "76.93", + "invoiceStatus": "O", + "adjustmentAmount": "0", + "restrictionTaxAmount": "0" + }, + { + "discountTaxAmount": "0", + "adjustmentNetAmount": "0", + "availableAdjustmentNetAmount": "1099", + "invoiceBcBanId": "700037290", + "dueDate": "2018-09-13T00:00:00.000+07:00", + "vatRate": "0.00", + "converageEndDate": "2018-09-18T00:00:00.000+07:00", + "discountAmount": "0", + "invoiceTaxAmount": "76.93", + "invoiceAmount": "1099", + "invoiceStatusChangeDate": "2018-09-07T00:00:00.000+07:00", + "paymentAmount": "0", + "baNo": "200047386", + "billTaxAmount": "76.93", + "billingDocumentType": { + "code": "BL", + "description": "Bill" + }, + "billAmount": "1175.93", + "invoiceType": "BILL", + "converageStartDate": "2018-08-19T00:00:00.000+07:00", + "currency": "THB", + "billSequenceNo": "8816", + "invoiceNo": "070820181900101954", + "originalBalanceAmount": "1175.93", + "customerManagerBaNo": "200047386", + "invoiceCreationDate": "2018-09-07T00:00:00.000+07:00", + "unpaidNetAmount": "1099", + "availableAdjustmentAmount": "1175.93", + "discountNetAmount": "0", + "billDate": "2018-08-21T00:00:00.000+07:00", + "disputeNetAmount": "0.00", + "creditTaxAmount": "0", + "accountId": "200047386", + "billProductType": "", + "billingDocumentStatus": { + "code": "N", + "description": "Confirmed" + }, + "unpaidAmount": "1175.93", + "restrictionAmount": "0", + "disputeTaxAmount": "0.00", + "invoiceCycle": { + "code": "19", + "month": "8", + "year": "2018" + }, + "convergenceInvoiceNo": "070820181900101954", + "coveredAmount": "0", + "invoiceId": "285504", + "performanceIndStatus": "", + "unpaidTaxAmount": "76.93", + "invoiceStatus": "O", + "adjustmentAmount": "0", + "restrictionTaxAmount": "0" + }, + { + "discountTaxAmount": "0", + "adjustmentNetAmount": "0", + "availableAdjustmentNetAmount": "1099", + "invoiceBcBanId": "700037290", + "dueDate": "2018-08-12T00:00:00.000+07:00", + "vatRate": "0.00", + "converageEndDate": "2018-08-18T00:00:00.000+07:00", + "discountAmount": "0", + "invoiceTaxAmount": "76.93", + "invoiceAmount": "1099", + "invoiceStatusChangeDate": "2018-07-23T00:00:00.000+07:00", + "paymentAmount": "0", + "baNo": "200047386", + "billTaxAmount": "76.93", + "billingDocumentType": { + "code": "BL", + "description": "Bill" + }, + "billAmount": "1175.93", + "invoiceType": "BILL", + "converageStartDate": "2018-07-19T00:00:00.000+07:00", + "currency": "THB", + "billSequenceNo": "8605", + "invoiceNo": "070720181900100645", + "originalBalanceAmount": "1175.93", + "customerManagerBaNo": "200047386", + "invoiceCreationDate": "2018-07-23T00:00:00.000+07:00", + "unpaidNetAmount": "1099", + "availableAdjustmentAmount": "1175.93", + "discountNetAmount": "0", + "billDate": "2018-07-20T00:00:00.000+07:00", + "disputeNetAmount": "0.00", + "creditTaxAmount": "0", + "accountId": "200047386", + "billProductType": "", + "billingDocumentStatus": { + "code": "N", + "description": "Confirmed" + }, + "unpaidAmount": "1175.93", + "restrictionAmount": "0", + "disputeTaxAmount": "0.00", + "invoiceCycle": { + "code": "19", + "month": "7", + "year": "2018" + }, + "convergenceInvoiceNo": "070720181900100645", + "coveredAmount": "0", + "invoiceId": "282184", + "performanceIndStatus": "", + "unpaidTaxAmount": "76.93", + "invoiceStatus": "O", + "adjustmentAmount": "0", + "restrictionTaxAmount": "0" + }, + { + "discountTaxAmount": "0", + "adjustmentNetAmount": "0", + "availableAdjustmentNetAmount": "1099", + "invoiceBcBanId": "700037290", + "dueDate": "2018-05-18T00:00:00.000+07:00", + "vatRate": "0.00", + "converageEndDate": "2018-05-18T00:00:00.000+07:00", + "discountAmount": "0", + "invoiceTaxAmount": "76.93", + "invoiceAmount": "1099", + "invoiceStatusChangeDate": "2018-04-24T00:00:00.000+07:00", + "paymentAmount": "0", + "baNo": "200047386", + "billTaxAmount": "76.93", + "billingDocumentType": { + "code": "BL", + "description": "Bill" + }, + "billAmount": "1175.93", + "invoiceType": "BILL", + "converageStartDate": "2018-04-19T00:00:00.000+07:00", + "currency": "THB", + "billSequenceNo": "8059", + "invoiceNo": "070420181900097451", + "originalBalanceAmount": "1175.93", + "customerManagerBaNo": "200047386", + "invoiceCreationDate": "2018-04-24T00:00:00.000+07:00", + "unpaidNetAmount": "1099", + "availableAdjustmentAmount": "1175.93", + "discountNetAmount": "0", + "billDate": "2018-04-25T00:00:00.000+07:00", + "disputeNetAmount": "0.00", + "creditTaxAmount": "0", + "accountId": "200047386", + "billProductType": "", + "billingDocumentStatus": { + "code": "N", + "description": "Confirmed" + }, + "unpaidAmount": "1175.93", + "restrictionAmount": "0", + "disputeTaxAmount": "0.00", + "invoiceCycle": { + "code": "19", + "month": "4", + "year": "2018" + }, + "convergenceInvoiceNo": "070420181900097451", + "coveredAmount": "0", + "invoiceId": "274817", + "performanceIndStatus": "", + "unpaidTaxAmount": "76.93", + "invoiceStatus": "O", + "adjustmentAmount": "0", + "restrictionTaxAmount": "0" + }, + { + "discountTaxAmount": "0", + "adjustmentNetAmount": "0", + "availableAdjustmentNetAmount": "1099", + "invoiceBcBanId": "700037290", + "dueDate": "2018-04-12T00:00:00.000+07:00", + "vatRate": "0.00", + "converageEndDate": "2018-04-18T00:00:00.000+07:00", + "discountAmount": "0", + "invoiceTaxAmount": "76.93", + "invoiceAmount": "1099", + "invoiceStatusChangeDate": "2018-03-19T00:00:00.000+07:00", + "paymentAmount": "0", + "baNo": "200047386", + "billTaxAmount": "76.93", + "billingDocumentType": { + "code": "BL", + "description": "Bill" + }, + "billAmount": "1175.93", + "invoiceType": "BILL", + "converageStartDate": "2018-03-19T00:00:00.000+07:00", + "currency": "THB", + "billSequenceNo": "8058", + "invoiceNo": "070320181900095238", + "originalBalanceAmount": "1175.93", + "customerManagerBaNo": "200047386", + "invoiceCreationDate": "2018-03-19T00:00:00.000+07:00", + "unpaidNetAmount": "1099", + "availableAdjustmentAmount": "1175.93", + "discountNetAmount": "0", + "billDate": "2018-03-20T00:00:00.000+07:00", + "disputeNetAmount": "0.00", + "creditTaxAmount": "0", + "accountId": "200047386", + "billProductType": "", + "billingDocumentStatus": { + "code": "N", + "description": "Confirmed" + }, + "unpaidAmount": "1175.93", + "restrictionAmount": "0", + "disputeTaxAmount": "0.00", + "invoiceCycle": { + "code": "19", + "month": "3", + "year": "2018" + }, + "convergenceInvoiceNo": "070320181900095238", + "coveredAmount": "0", + "invoiceId": "271147", + "performanceIndStatus": "", + "unpaidTaxAmount": "76.93", + "invoiceStatus": "O", + "adjustmentAmount": "0", + "restrictionTaxAmount": "0" + }, + { + "discountTaxAmount": "0", + "adjustmentNetAmount": "0", + "availableAdjustmentNetAmount": "1099", + "invoiceBcBanId": "700037290", + "dueDate": "2018-03-15T00:00:00.000+07:00", + "vatRate": "0.00", + "converageEndDate": "2018-03-18T00:00:00.000+07:00", + "discountAmount": "0", + "invoiceTaxAmount": "76.93", + "invoiceAmount": "1099", + "invoiceStatusChangeDate": "2018-02-19T00:00:00.000+07:00", + "paymentAmount": "0", + "baNo": "200047386", + "billTaxAmount": "76.93", + "billingDocumentType": { + "code": "BL", + "description": "Bill" + }, + "billAmount": "1175.93", + "invoiceType": "BILL", + "converageStartDate": "2018-02-19T00:00:00.000+07:00", + "currency": "THB", + "billSequenceNo": "3155", + "invoiceNo": "070220181900094685", + "originalBalanceAmount": "1175.93", + "customerManagerBaNo": "200047386", + "invoiceCreationDate": "2018-02-19T00:00:00.000+07:00", + "unpaidNetAmount": "1099", + "availableAdjustmentAmount": "1175.93", + "discountNetAmount": "0", + "billDate": "2018-02-20T00:00:00.000+07:00", + "disputeNetAmount": "0.00", + "creditTaxAmount": "0", + "accountId": "200047386", + "billProductType": "", + "billingDocumentStatus": { + "code": "N", + "description": "Confirmed" + }, + "unpaidAmount": "1175.93", + "restrictionAmount": "0", + "disputeTaxAmount": "0.00", + "invoiceCycle": { + "code": "19", + "month": "2", + "year": "2018" + }, + "convergenceInvoiceNo": "070220181900094685", + "coveredAmount": "0", + "invoiceId": "269485", + "performanceIndStatus": "", + "unpaidTaxAmount": "76.93", + "invoiceStatus": "O", + "adjustmentAmount": "0", + "restrictionTaxAmount": "0" + }, + { + "discountTaxAmount": "0", + "adjustmentNetAmount": "0", + "availableAdjustmentNetAmount": "1099", + "invoiceBcBanId": "700030223", + "dueDate": "2018-02-12T00:00:00.000+07:00", "vatRate": "0.00", - "converageEndDate": "2013-06-01T00:00:00.000+07:00", + "converageEndDate": "2018-02-18T00:00:00.000+07:00", "discountAmount": "0", - "invoiceTaxAmount": "48.93", - "invoiceAmount": "699", - "invoiceStatusChangeDate": "2013-06-12T00:00:00.000+07:00", + "invoiceTaxAmount": "76.93", + "invoiceAmount": "1099", + "invoiceStatusChangeDate": "2018-01-19T00:00:00.000+07:00", "paymentAmount": "0", - "baNo": "10000449", - "billTaxAmount": "293.58", + "baNo": "200047386", + "billTaxAmount": "76.93", "billingDocumentType": { "code": "BL", "description": "Bill" }, - "billAmount": "4487.58", + "billAmount": "1175.93", "invoiceType": "BILL", - "converageStartDate": "2013-05-02T00:00:00.000+07:00", + "converageStartDate": "2018-01-19T00:00:00.000+07:00", "currency": "THB", - "billSequenceNo": "293", - "invoiceNo": "140620130200002104", - "originalBalanceAmount": "101.00", - "customerManagerBaNo": "10000449", - "invoiceCreationDate": "2013-06-12T00:00:00.000+07:00", - "unpaidNetAmount": "699", - "availableAdjustmentAmount": "992.58", + "billSequenceNo": "3154", + "invoiceNo": "070120181900093462", + "originalBalanceAmount": "1175.93", + "customerManagerBaNo": "200047386", + "invoiceCreationDate": "2018-01-19T00:00:00.000+07:00", + "unpaidNetAmount": "1099", + "availableAdjustmentAmount": "1175.93", "discountNetAmount": "0", - "billDate": "2013-06-03T00:00:00.000+07:00", + "billDate": "2018-01-20T00:00:00.000+07:00", "disputeNetAmount": "0.00", "creditTaxAmount": "0", - "accountId": "10000449", + "accountId": "200047386", "billProductType": "", "billingDocumentStatus": { "code": "N", "description": "Confirmed" }, - "unpaidAmount": "100.00", + "unpaidAmount": "1175.93", "restrictionAmount": "0", "disputeTaxAmount": "0.00", "invoiceCycle": { - "code": "2", - "month": "6", - "year": "2013" + "code": "19", + "month": "1", + "year": "2018" }, - "convergenceInvoiceNo": "140620130200002104", + "convergenceInvoiceNo": "000120181900030817", "coveredAmount": "0", - "invoiceId": "8627", + "invoiceId": "266440", "performanceIndStatus": "", - "unpaidTaxAmount": "48.93", + "unpaidTaxAmount": "76.93", "invoiceStatus": "O", "adjustmentAmount": "0", "restrictionTaxAmount": "0" @@ -323,56 +1306,56 @@ module.exports.getLastInvoiceList = async (req, res) => { { "discountTaxAmount": "0", "adjustmentNetAmount": "0", - "availableAdjustmentNetAmount": "699", - "invoiceBcBanId": "813", - "dueDate": "2013-06-05T00:00:00.000+07:00", + "availableAdjustmentNetAmount": "1099", + "invoiceBcBanId": "700030223", + "dueDate": "2017-10-13T00:00:00.000+07:00", "vatRate": "0.00", - "converageEndDate": "2013-05-01T00:00:00.000+07:00", + "converageEndDate": "2017-10-18T00:00:00.000+07:00", "discountAmount": "0", - "invoiceTaxAmount": "48.93", - "invoiceAmount": "699", - "invoiceStatusChangeDate": "2013-05-12T00:00:00.000+07:00", + "invoiceTaxAmount": "76.93", + "invoiceAmount": "1099", + "invoiceStatusChangeDate": "2017-12-21T00:00:00.000+07:00", "paymentAmount": "0", - "baNo": "10000449", - "billTaxAmount": "293.58", + "baNo": "200047386", + "billTaxAmount": "76.93", "billingDocumentType": { "code": "BL", "description": "Bill" }, - "billAmount": "4487.58", + "billAmount": "1175.93", "invoiceType": "BILL", - "converageStartDate": "2013-04-02T00:00:00.000+07:00", + "converageStartDate": "2017-09-19T00:00:00.000+07:00", "currency": "THB", - "billSequenceNo": "292", - "invoiceNo": "140520130200001097", - "originalBalanceAmount": "747.93", - "customerManagerBaNo": "10000449", - "invoiceCreationDate": "2013-05-12T00:00:00.000+07:00", - "unpaidNetAmount": "699", - "availableAdjustmentAmount": "992.58", + "billSequenceNo": "3150", + "invoiceNo": "070920171900081192", + "originalBalanceAmount": "1175.93", + "customerManagerBaNo": "200047386", + "invoiceCreationDate": "2017-12-21T00:00:00.000+07:00", + "unpaidNetAmount": "1099", + "availableAdjustmentAmount": "1175.93", "discountNetAmount": "0", - "billDate": "2013-05-13T00:00:00.000+07:00", + "billDate": "2017-09-20T00:00:00.000+07:00", "disputeNetAmount": "0.00", "creditTaxAmount": "0", - "accountId": "10000449", + "accountId": "200047386", "billProductType": "", "billingDocumentStatus": { "code": "N", "description": "Confirmed" }, - "unpaidAmount": "101.00", + "unpaidAmount": "1175.93", "restrictionAmount": "0", "disputeTaxAmount": "0.00", "invoiceCycle": { - "code": "2", - "month": "5", - "year": "2013" + "code": "19", + "month": "9", + "year": "2017" }, - "convergenceInvoiceNo": "140520130200001097", + "convergenceInvoiceNo": "000920171900028529", "coveredAmount": "0", - "invoiceId": "20448", + "invoiceId": "256298", "performanceIndStatus": "", - "unpaidTaxAmount": "48.93", + "unpaidTaxAmount": "76.93", "invoiceStatus": "O", "adjustmentAmount": "0", "restrictionTaxAmount": "0" @@ -380,293 +1363,407 @@ module.exports.getLastInvoiceList = async (req, res) => { { "discountTaxAmount": "0", "adjustmentNetAmount": "0", - "availableAdjustmentNetAmount": "0.00", - "invoiceBcBanId": "813", - "dueDate": "2013-04-26T00:00:00.000+07:00", + "availableAdjustmentNetAmount": "1099", + "invoiceBcBanId": "700030223", + "dueDate": "2018-01-14T00:00:00.000+07:00", "vatRate": "0.00", - "converageEndDate": "", + "converageEndDate": "2017-11-18T00:00:00.000+07:00", "discountAmount": "0", - "invoiceTaxAmount": "0", - "invoiceAmount": "0", - "invoiceStatusChangeDate": "2013-04-02T00:00:00.000+07:00", + "invoiceTaxAmount": "76.93", + "invoiceAmount": "1099", + "invoiceStatusChangeDate": "2017-12-21T00:00:00.000+07:00", "paymentAmount": "0", - "baNo": "10000449", - "billTaxAmount": "0", + "baNo": "200047386", + "billTaxAmount": "76.93", "billingDocumentType": { "code": "BL", "description": "Bill" }, - "billAmount": "0.00", - "invoiceType": "CN", - "converageStartDate": "", + "billAmount": "1175.93", + "invoiceType": "BILL", + "converageStartDate": "2017-10-19T00:00:00.000+07:00", "currency": "THB", - "billSequenceNo": "291", - "invoiceNo": "140420130200000419", - "originalBalanceAmount": "0", - "customerManagerBaNo": "10000449", - "invoiceCreationDate": "2013-04-02T00:00:00.000+07:00", - "unpaidNetAmount": "0", - "availableAdjustmentAmount": "0.00", + "billSequenceNo": "3151", + "invoiceNo": "071020171900091037", + "originalBalanceAmount": "1175.93", + "customerManagerBaNo": "200047386", + "invoiceCreationDate": "2017-12-21T00:00:00.000+07:00", + "unpaidNetAmount": "1099", + "availableAdjustmentAmount": "1175.93", "discountNetAmount": "0", - "billDate": "2013-04-03T00:00:00.000+07:00", + "billDate": "2017-12-22T00:00:00.000+07:00", "disputeNetAmount": "0.00", "creditTaxAmount": "0", - "accountId": "10000449", + "accountId": "200047386", "billProductType": "", "billingDocumentStatus": { "code": "N", "description": "Confirmed" }, - "unpaidAmount": "0", - "restrictionAmount": "0.00", + "unpaidAmount": "1175.93", + "restrictionAmount": "0", "disputeTaxAmount": "0.00", "invoiceCycle": { - "code": "2", - "month": "4", - "year": "2013" + "code": "19", + "month": "10", + "year": "2017" }, - "convergenceInvoiceNo": "140420130200000419", + "convergenceInvoiceNo": "001020171900030357", "coveredAmount": "0", - "invoiceId": "3145", + "invoiceId": "261211", "performanceIndStatus": "", - "unpaidTaxAmount": "0", - "invoiceStatus": "F", + "unpaidTaxAmount": "76.93", + "invoiceStatus": "O", "adjustmentAmount": "0", - "restrictionTaxAmount": "0.00" + "restrictionTaxAmount": "0" }, { "discountTaxAmount": "0", "adjustmentNetAmount": "0", - "availableAdjustmentNetAmount": "0.00", - "invoiceBcBanId": "813", - "dueDate": "2022-03-26T00:00:00.000+07:00", + "availableAdjustmentNetAmount": "1099", + "invoiceBcBanId": "700030223", + "dueDate": "2018-01-14T00:00:00.000+07:00", "vatRate": "0.00", - "converageEndDate": "", + "converageEndDate": "2017-12-18T00:00:00.000+07:00", "discountAmount": "0", - "invoiceTaxAmount": "0", - "invoiceAmount": "0", - "invoiceStatusChangeDate": "2013-03-02T00:00:00.000+07:00", + "invoiceTaxAmount": "76.93", + "invoiceAmount": "1099", + "invoiceStatusChangeDate": "2017-12-21T00:00:00.000+07:00", "paymentAmount": "0", - "baNo": "10000449", - "billTaxAmount": "0", + "baNo": "200047386", + "billTaxAmount": "76.93", "billingDocumentType": { "code": "BL", "description": "Bill" }, - "billAmount": "0.00", - "invoiceType": "CN", - "converageStartDate": "", + "billAmount": "1175.93", + "invoiceType": "BILL", + "converageStartDate": "2017-11-19T00:00:00.000+07:00", "currency": "THB", - "billSequenceNo": "290", - "invoiceNo": "140320130200000071", - "originalBalanceAmount": "0", - "customerManagerBaNo": "10000449", - "invoiceCreationDate": "2013-03-02T00:00:00.000+07:00", - "unpaidNetAmount": "0", - "availableAdjustmentAmount": "0.00", + "billSequenceNo": "3152", + "invoiceNo": "071120171900091603", + "originalBalanceAmount": "1175.93", + "customerManagerBaNo": "200047386", + "invoiceCreationDate": "2017-12-21T00:00:00.000+07:00", + "unpaidNetAmount": "1099", + "availableAdjustmentAmount": "1175.93", "discountNetAmount": "0", - "billDate": "2013-03-03T00:00:00.000+07:00", + "billDate": "2017-12-22T00:00:00.000+07:00", "disputeNetAmount": "0.00", "creditTaxAmount": "0", - "accountId": "10000449", + "accountId": "200047386", "billProductType": "", "billingDocumentStatus": { "code": "N", "description": "Confirmed" }, - "unpaidAmount": "102.00", - "restrictionAmount": "0.00", + "unpaidAmount": "1175.93", + "restrictionAmount": "0", "disputeTaxAmount": "0.00", "invoiceCycle": { - "code": "2", - "month": "3", - "year": "2013" + "code": "19", + "month": "11", + "year": "2017" }, - "convergenceInvoiceNo": "140320130200000071", + "convergenceInvoiceNo": "001120171900030470", "coveredAmount": "0", - "invoiceId": "629", + "invoiceId": "262372", "performanceIndStatus": "", - "unpaidTaxAmount": "0", - "invoiceStatus": "F", + "unpaidTaxAmount": "76.93", + "invoiceStatus": "O", "adjustmentAmount": "0", - "restrictionTaxAmount": "0.00" + "restrictionTaxAmount": "0" }, { "discountTaxAmount": "0", "adjustmentNetAmount": "0", - "availableAdjustmentNetAmount": "0.00", - "invoiceBcBanId": "813", - "dueDate": "2022-03-26T00:00:00.000+07:00", + "availableAdjustmentNetAmount": "1099", + "invoiceBcBanId": "700030223", + "dueDate": "2018-01-14T00:00:00.000+07:00", "vatRate": "0.00", - "converageEndDate": "", + "converageEndDate": "2018-01-18T00:00:00.000+07:00", "discountAmount": "0", - "invoiceTaxAmount": "0", - "invoiceAmount": "0", - "invoiceStatusChangeDate": "2013-03-02T00:00:00.000+07:00", + "invoiceTaxAmount": "76.93", + "invoiceAmount": "1099", + "invoiceStatusChangeDate": "2017-12-21T00:00:00.000+07:00", "paymentAmount": "0", - "baNo": "10000449", - "billTaxAmount": "0", + "baNo": "200047386", + "billTaxAmount": "76.93", "billingDocumentType": { "code": "BL", "description": "Bill" }, - "billAmount": "0.00", - "invoiceType": "CN", - "converageStartDate": "", + "billAmount": "1175.93", + "invoiceType": "BILL", + "converageStartDate": "2017-12-19T00:00:00.000+07:00", "currency": "THB", - "billSequenceNo": "290", - "invoiceNo": "140320130200000071", - "originalBalanceAmount": "0", - "customerManagerBaNo": "10000449", - "invoiceCreationDate": "2013-03-02T00:00:00.000+07:00", - "unpaidNetAmount": "0", - "availableAdjustmentAmount": "0.00", + "billSequenceNo": "3153", + "invoiceNo": "071220171900092260", + "originalBalanceAmount": "1175.93", + "customerManagerBaNo": "200047386", + "invoiceCreationDate": "2017-12-21T00:00:00.000+07:00", + "unpaidNetAmount": "1099", + "availableAdjustmentAmount": "1175.93", "discountNetAmount": "0", - "billDate": "2013-02-03T00:00:00.000+07:00", + "billDate": "2017-12-22T00:00:00.000+07:00", "disputeNetAmount": "0.00", "creditTaxAmount": "0", - "accountId": "10000449", + "accountId": "200047386", "billProductType": "", "billingDocumentStatus": { "code": "N", "description": "Confirmed" }, - "unpaidAmount": "1", - "restrictionAmount": "0.00", + "unpaidAmount": "1175.93", + "restrictionAmount": "0", "disputeTaxAmount": "0.00", "invoiceCycle": { - "code": "2", - "month": "3", - "year": "2013" + "code": "19", + "month": "12", + "year": "2017" }, - "convergenceInvoiceNo": "140320130200000071", + "convergenceInvoiceNo": "001220171900030574", "coveredAmount": "0", - "invoiceId": "629", + "invoiceId": "263218", "performanceIndStatus": "", - "unpaidTaxAmount": "0", - "invoiceStatus": "F", + "unpaidTaxAmount": "76.93", + "invoiceStatus": "O", "adjustmentAmount": "0", - "restrictionTaxAmount": "0.00" + "restrictionTaxAmount": "0" }, { "discountTaxAmount": "0", "adjustmentNetAmount": "0", - "availableAdjustmentNetAmount": "0.00", - "invoiceBcBanId": "813", - "dueDate": "2022-03-26T00:00:00.000+07:00", + "availableAdjustmentNetAmount": "1099", + "invoiceBcBanId": "700030223", + "dueDate": "2017-09-15T00:00:00.000+07:00", "vatRate": "0.00", - "converageEndDate": "", + "converageEndDate": "2017-09-18T00:00:00.000+07:00", "discountAmount": "0", - "invoiceTaxAmount": "0", - "invoiceAmount": "0", - "invoiceStatusChangeDate": "2013-03-02T00:00:00.000+07:00", + "invoiceTaxAmount": "76.93", + "invoiceAmount": "1099", + "invoiceStatusChangeDate": "2017-09-19T00:00:00.000+07:00", "paymentAmount": "0", - "baNo": "10000449", - "billTaxAmount": "0", + "baNo": "200047386", + "billTaxAmount": "76.93", "billingDocumentType": { "code": "BL", "description": "Bill" }, - "billAmount": "0.00", - "invoiceType": "CN", - "converageStartDate": "", + "billAmount": "1175.93", + "invoiceType": "BILL", + "converageStartDate": "2017-08-19T00:00:00.000+07:00", "currency": "THB", - "billSequenceNo": "290", - "invoiceNo": "140320130200000071", - "originalBalanceAmount": "2", - "customerManagerBaNo": "10000449", - "invoiceCreationDate": "2013-03-02T00:00:00.000+07:00", - "unpaidNetAmount": "0", - "availableAdjustmentAmount": "0.00", + "billSequenceNo": "3149", + "invoiceNo": "070820171900071984", + "originalBalanceAmount": "1175.93", + "customerManagerBaNo": "200047386", + "invoiceCreationDate": "2017-09-19T00:00:00.000+07:00", + "unpaidNetAmount": "1099", + "availableAdjustmentAmount": "1175.93", "discountNetAmount": "0", - "billDate": "2013-01-03T00:00:00.000+07:00", + "billDate": "2017-08-23T00:00:00.000+07:00", "disputeNetAmount": "0.00", "creditTaxAmount": "0", - "accountId": "10000449", + "accountId": "200047386", "billProductType": "", "billingDocumentStatus": { "code": "N", "description": "Confirmed" }, - "unpaidAmount": "1", - "restrictionAmount": "0.00", + "unpaidAmount": "1175.93", + "restrictionAmount": "0", "disputeTaxAmount": "0.00", "invoiceCycle": { - "code": "2", - "month": "3", - "year": "2013" + "code": "19", + "month": "8", + "year": "2017" }, - "convergenceInvoiceNo": "140320130200000071", + "convergenceInvoiceNo": "000820171900026671", "coveredAmount": "0", - "invoiceId": "629", + "invoiceId": "248967", "performanceIndStatus": "", - "unpaidTaxAmount": "0", - "invoiceStatus": "F", + "unpaidTaxAmount": "76.93", + "invoiceStatus": "O", "adjustmentAmount": "0", - "restrictionTaxAmount": "0.00" + "restrictionTaxAmount": "0" }, { "discountTaxAmount": "0", "adjustmentNetAmount": "0", - "availableAdjustmentNetAmount": "0.00", - "invoiceBcBanId": "813", - "dueDate": "2022-03-26T00:00:00.000+07:00", + "availableAdjustmentNetAmount": "1099", + "invoiceBcBanId": "700030223", + "dueDate": "2017-08-12T00:00:00.000+07:00", "vatRate": "0.00", - "converageEndDate": "", + "converageEndDate": "2017-08-18T00:00:00.000+07:00", "discountAmount": "0", - "invoiceTaxAmount": "0", - "invoiceAmount": "0", - "invoiceStatusChangeDate": "2013-03-02T00:00:00.000+07:00", + "invoiceTaxAmount": "76.93", + "invoiceAmount": "1099", + "invoiceStatusChangeDate": "2017-08-22T00:00:00.000+07:00", "paymentAmount": "0", - "baNo": "10000449", - "billTaxAmount": "0", + "baNo": "200047386", + "billTaxAmount": "76.93", "billingDocumentType": { "code": "BL", "description": "Bill" }, - "billAmount": "0.00", - "invoiceType": "CN", - "converageStartDate": "", + "billAmount": "1175.93", + "invoiceType": "BILL", + "converageStartDate": "2017-07-19T00:00:00.000+07:00", "currency": "THB", - "billSequenceNo": "290", - "invoiceNo": "140320130200000071", - "originalBalanceAmount": "1", - "customerManagerBaNo": "10000449", - "invoiceCreationDate": "2013-03-02T00:00:00.000+07:00", - "unpaidNetAmount": "0", - "availableAdjustmentAmount": "0.00", + "billSequenceNo": "2383", + "invoiceNo": "070720171900068649", + "originalBalanceAmount": "1175.93", + "customerManagerBaNo": "200047386", + "invoiceCreationDate": "2017-08-22T00:00:00.000+07:00", + "unpaidNetAmount": "1099", + "availableAdjustmentAmount": "1175.93", "discountNetAmount": "0", - "billDate": "2012-12-03T00:00:00.000+07:00", + "billDate": "2017-07-20T00:00:00.000+07:00", "disputeNetAmount": "0.00", "creditTaxAmount": "0", - "accountId": "10000449", + "accountId": "200047386", "billProductType": "", "billingDocumentStatus": { "code": "N", "description": "Confirmed" }, - "unpaidAmount": "1", - "restrictionAmount": "0.00", + "unpaidAmount": "1175.93", + "restrictionAmount": "0", "disputeTaxAmount": "0.00", "invoiceCycle": { - "code": "2", - "month": "3", - "year": "2013" + "code": "19", + "month": "7", + "year": "2017" }, - "convergenceInvoiceNo": "140320130200000071", + "convergenceInvoiceNo": "000720171900026153", "coveredAmount": "0", - "invoiceId": "629", + "invoiceId": "246558", "performanceIndStatus": "", - "unpaidTaxAmount": "0", - "invoiceStatus": "F", + "unpaidTaxAmount": "76.93", + "invoiceStatus": "O", "adjustmentAmount": "0", - "restrictionTaxAmount": "0.00" + "restrictionTaxAmount": "0" + }, + { + "discountTaxAmount": "0", + "adjustmentNetAmount": "0", + "availableAdjustmentNetAmount": "1099", + "invoiceBcBanId": "700030223", + "dueDate": "2017-07-14T00:00:00.000+07:00", + "vatRate": "0.00", + "converageEndDate": "2017-07-18T00:00:00.000+07:00", + "discountAmount": "0", + "invoiceTaxAmount": "76.93", + "invoiceAmount": "1099", + "invoiceStatusChangeDate": "2017-06-27T00:00:00.000+07:00", + "paymentAmount": "0", + "baNo": "200047386", + "billTaxAmount": "76.93", + "billingDocumentType": { + "code": "BL", + "description": "Bill" + }, + "billAmount": "1175.93", + "invoiceType": "BILL", + "converageStartDate": "2017-06-19T00:00:00.000+07:00", + "currency": "THB", + "billSequenceNo": "2382", + "invoiceNo": "070620171900065703", + "originalBalanceAmount": "1175.93", + "customerManagerBaNo": "200047386", + "invoiceCreationDate": "2017-06-27T00:00:00.000+07:00", + "unpaidNetAmount": "1099", + "availableAdjustmentAmount": "1175.93", + "discountNetAmount": "0", + "billDate": "2017-06-21T00:00:00.000+07:00", + "disputeNetAmount": "0.00", + "creditTaxAmount": "0", + "accountId": "200047386", + "billProductType": "", + "billingDocumentStatus": { + "code": "N", + "description": "Confirmed" + }, + "unpaidAmount": "1175.93", + "restrictionAmount": "0", + "disputeTaxAmount": "0.00", + "invoiceCycle": { + "code": "19", + "month": "6", + "year": "2017" + }, + "convergenceInvoiceNo": "000620171900025631", + "coveredAmount": "0", + "invoiceId": "238311", + "performanceIndStatus": "", + "unpaidTaxAmount": "76.93", + "invoiceStatus": "O", + "adjustmentAmount": "0", + "restrictionTaxAmount": "0" + }, + { + "discountTaxAmount": "0", + "adjustmentNetAmount": "0", + "availableAdjustmentNetAmount": "1099", + "invoiceBcBanId": "700030223", + "dueDate": "2017-06-12T00:00:00.000+07:00", + "vatRate": "0.00", + "converageEndDate": "2017-06-18T00:00:00.000+07:00", + "discountAmount": "0", + "invoiceTaxAmount": "76.93", + "invoiceAmount": "1099", + "invoiceStatusChangeDate": "2017-05-29T00:00:00.000+07:00", + "paymentAmount": "0", + "baNo": "200047386", + "billTaxAmount": "76.93", + "billingDocumentType": { + "code": "BL", + "description": "Bill" + }, + "billAmount": "1175.93", + "invoiceType": "BILL", + "converageStartDate": "2017-05-19T00:00:00.000+07:00", + "currency": "THB", + "billSequenceNo": "2381", + "invoiceNo": "070520171900060156", + "originalBalanceAmount": "1175.93", + "customerManagerBaNo": "200047386", + "invoiceCreationDate": "2017-05-29T00:00:00.000+07:00", + "unpaidNetAmount": "1099", + "availableAdjustmentAmount": "1175.93", + "discountNetAmount": "0", + "billDate": "2017-05-20T00:00:00.000+07:00", + "disputeNetAmount": "0.00", + "creditTaxAmount": "0", + "accountId": "200047386", + "billProductType": "", + "billingDocumentStatus": { + "code": "N", + "description": "Confirmed" + }, + "unpaidAmount": "1175.93", + "restrictionAmount": "0", + "disputeTaxAmount": "0.00", + "invoiceCycle": { + "code": "19", + "month": "5", + "year": "2017" + }, + "convergenceInvoiceNo": "000520171900024631", + "coveredAmount": "0", + "invoiceId": "233503", + "performanceIndStatus": "", + "unpaidTaxAmount": "76.93", + "invoiceStatus": "O", + "adjustmentAmount": "0", + "restrictionTaxAmount": "0" } ] }, "errorCode": "OSBbllngA00001", "message": "Success.", - "uuid": "530dbd96-bada-4fcd-85d0-a829ba1347d7" + "uuid": "0b273353-454b-4de4-bb04-f1a9b543583e" } } } @@ -686,7 +1783,7 @@ module.exports.getLastDocumentList = async (req, res) => { "getLastDocumentListResponse": { "return": { "invoiceList": { - "size": "1", + "size": "2", "invoiceInfoArray": [ { "discountTaxAmount": "0.00", @@ -728,7 +1825,64 @@ module.exports.getLastDocumentList = async (req, res) => { "code": "C", "description": "Calculated" }, - "unpaidAmount": "0.00", + "unpaidAmount": "1.00", + "restrictionAmount": "0.00", + "disputeTaxAmount": "0.00", + "invoiceCycle": { + "code": "", + "month": "", + "year": "" + }, + "convergenceInvoiceNo": "010720212800390921", + "coveredAmount": "0.00", + "invoiceId": "", + "performanceIndStatus": "CH", + "unpaidTaxAmount": "0", + "invoiceStatus": "", + "adjustmentAmount": "0", + "restrictionTaxAmount": "0.00" + }, + { + "discountTaxAmount": "0.00", + "adjustmentNetAmount": "0.00", + "availableAdjustmentNetAmount": "0.00", + "invoiceBcBanId": "", + "dueDate": "", + "vatRate": "0.00", + "converageEndDate": "", + "discountAmount": "0.00", + "invoiceTaxAmount": "0.00", + "invoiceAmount": "0.00", + "invoiceStatusChangeDate": "", + "paymentAmount": "0", + "baNo": "", + "billTaxAmount": "0.00", + "billingDocumentType": { + "code": "BL", + "description": "Bill" + }, + "billAmount": "0.00", + "invoiceType": "", + "converageStartDate": "", + "currency": "THB", + "billSequenceNo": "", + "invoiceNo": "", + "originalBalanceAmount": "0.00", + "customerManagerBaNo": "", + "invoiceCreationDate": "", + "unpaidNetAmount": "0.00", + "availableAdjustmentAmount": "0.00", + "discountNetAmount": "0.00", + "billDate": "2021-07-30T00:00:00.000+07:00", + "disputeNetAmount": "0.00", + "creditTaxAmount": "0.00", + "accountId": "200112081", + "billProductType": "DR", + "billingDocumentStatus": { + "code": "C", + "description": "Calculated" + }, + "unpaidAmount": "4.00", "restrictionAmount": "0.00", "disputeTaxAmount": "0.00", "invoiceCycle": { diff --git a/ssb.js b/ssb.js index 6b0df98..02e9501 100644 --- a/ssb.js +++ b/ssb.js @@ -189,31 +189,189 @@ module.exports.createNewRegistration = async (req, res) => { console.log('params', req.params); console.log('body', JSON.stringify(req.body)); - let response = { - "resultCode": "20000", - "developerMessage": "Success", - "data": { - "ExecuteServiceResponse": { - "return": { - "ParameterList": { + let response + if(req.body.ExecuteService.sffRequest.Event == 'evESQueryPersonalInformation') { + response = { + "resultCode": "20000", + "developerMessage": "Success", + "data": { + "ExecuteServiceResponse": { + "return": { + "ErrorMessage": "", + "ParameterList": { + "ParameterType": "", "Parameter": [ - { - "Name": "returnMessage", - "Value": "Success" + { + "Name": "remainCounterMain", + "Value": 0 + }, + { + "Name": "remainCounterOntop", + "Value": 0 }, - { - "Name": "orderNo", - "Value": "R201600321324" + { + "Name": "maxCounterMain", + "Value": 1 }, - { - "Name": "orderDate", - "Value": "11/01/2016" + { + "Name": "maxCounterOntop", + "Value": 1 } - ] + ], + "ParameterList": { + "ParameterType": "", + "Parameter": [ + { + "Name": "paymentMode", + "Value": "Pre-paid" + }, + { + "Name": "productPkg", + "Value": "Pre Voice Main" + }, + { + "Name": "descEng", + "Value": "You will get the rate 49 satang per minute from 5 AM to 5 PM. For other period, you will get the rate of 99 satang per minute for all networks. SMS is 2 baht per message MMS is 6 baht per message. Internet is 1.50 baht per megabyte. All rates exclude VAT." + }, + { + "Name": "crmFlg", + "Value": "N" + }, + { + "Name": "priceExclVat", + "Value": "" + }, + { + "Name": "productClass", + "Value": "Main" + }, + { + "Name": "integrationName", + "Value": "[BOS]โปรติดลม [05-17: 0.52B, 17-05: 1.06B] Inc.VAT" + }, + { + "Name": "productCd", + "Value": "P13080053" + }, + { + "Name": "shortNameEng", + "Value": "5AM-5PM 49st. Other 99st. Other Pro *777 in 30days" + }, + { + "Name": "promotionName", + "Value": "[BOS]โปรติดลม [05-17: 0.52B, 17-05: 1.06B] Inc.VAT" + }, + { + "Name": "startDt", + "Value": "27/11/2017 17:55:45" + }, + { + "Name": "inStatementEng", + "Value": "" + }, + { + "Name": "descThai", + "Value": "อัตราค่าโทรตี 5 ถึง 5 โมงเย็น นาทีละ 49 สต. นอกช่วงเวลา นาทีละ 99 สต. ทุกเครือข่าย SMS ข้อความละ 2 บาท MMS ข้อความละ 6 บาท Internet เมกะไบท์ละ 1.50 บาท\nอัตราค่าโทรและค่าบริการเสริมยังไม่รวมภาษีมูลค่าเพิ่ม" + }, + { + "Name": "shortNameThai", + "Value": "5-17น.49สต/นาที นอกเวลา99สต/นาทีโปรอื่น*777ใน30วัน" + }, + { + "Name": "productSeq", + "Value": 300000028391 + }, + { + "Name": "inStatementThai", + "Value": "" + }, + { + "Name": "endDt", + "Value": "16/02/20361 00:00:00" + }, + { + "Name": "bosId", + "Value": 150319 + }, + { + "Name": "nextBillCycle", + "Value": "" + }, + { + "Name": "priceType", + "Value": "Usage" + }, + { + "Name": "monthlyFee", + "Value": "" + }, + { + "Name": "produuctGroup", + "Value": "Mass Promotion" + }, + { + "Name": "bvPoint", + "Value": "" + }, + { + "Name": "billCycle", + "Value": "" + }, + { + "Name": "bvDescription", + "Value": "" + }, + { + "Name": "deviceContractFlg", + "Value": "N" + }, + { + "Name": "netFlexiFlg", + "Value": "Y" + }, + { + "Name": "pro5gFlg", + "Value": "Y" + }, + { + "Name": "prorateFlg", + "Value": "Y" + }, + { + "Name": "phxProductId", + "Value": "O2005P13080053" + } + ] + } + } } - } + } + } } - } + } else if(req.body.ExecuteService.sffRequest.Event == 'evOMCreateNewRegistration') { + response = { + "resultCode": "20000", + "developerMessage": "Success", + "data": { + "ExecuteServiceResponse": { + "return": { + "ParameterList": { + "Parameter": [ + { + "Name": "returnMessage", + "Value": "Error Order Creation: EB0183 : SIM Serial No. : 2014143597539 status can not register" + } + ] + } + } + } + } + } + } else { + response = { + "resultCode": "50000", + "developerMessage": "System error" + } } res.status(200).send(response) diff --git a/true.js b/true.js index ac4c597..a2d95db 100644 --- a/true.js +++ b/true.js @@ -137,6 +137,54 @@ module.exports.getAccountStatusHistoryList = async (req, res) => { "status": "NONE" }, "openDate": "2019-12-23T18:10:42.000+07:00" + }, + { + "statusDescription": "Active", + "collectionStatus": { + "reasonDescription": "XXX", + "lastActivityDate": "2020-12-30T00:00:00.000+07:00", + "reasonCode": "ABC", + "status": "NONE" + }, + "creditStatus": { + "reasonDescription": "BBB", + "lastActivityDate": "", + "reasonCode": "AA", + "status": "NONE" + }, + "openDate": "2019-12-23T18:10:42.000+07:00" + }, + { + "statusDescription": "Active", + "collectionStatus": { + "reasonDescription": "XXX", + "lastActivityDate": "2018-12-29T00:00:00.000+07:00", + "reasonCode": "ABC", + "status": "CAN" + }, + "creditStatus": { + "reasonDescription": "BBB", + "lastActivityDate": "", + "reasonCode": "AA", + "status": "" + }, + "openDate": "2019-12-23T18:10:42.000+07:00" + }, + { + "statusDescription": "Active", + "collectionStatus": { + "reasonDescription": "XXX", + "lastActivityDate": "2018-12-30T00:00:00.000+07:00", + "reasonCode": "ABC", + "status": "NONE" + }, + "creditStatus": { + "reasonDescription": "BBB", + "lastActivityDate": "", + "reasonCode": "AA", + "status": "NONE" + }, + "openDate": "2019-12-23T18:10:42.000+07:00" } ] }, @@ -148,4 +196,348 @@ module.exports.getAccountStatusHistoryList = async (req, res) => { } res.status(200).send(response) +} + +module.exports.getContractHistoryList = async (req, res) => { + console.log('===== GET getContractHistoryList =====') + console.log('url', req.originalUrl); + console.log('headers', req.headers); + console.log('query', req.query); + console.log('params', req.params); + console.log('body', JSON.stringify(req.body)); + + let response = { + "getContractHistoryListResponse": { + "return": { + "uuid": "a51aae25-d40e-4788-85f9-97bbd01f9b45", + "errorCode": "OSBbllngA00001", + "message": "Success.", + "totalSize": "7", + "contractList": { + "contractInfoArray": [{ + "contractStartDate": "2020-11-18T00:00:00.000+07:00", + "fee": "3000", + "contractNumber": "0972105656", + "remark": "TEST TDS", + "generateChargeYesNo": "N", + "terminationDate": "2021-11-18T00:00:00.000+07:00", + "offerServiceLevel": "C", + "contractExpirationDate": "2021-11-18T00:00:00.000+07:00", + "offerInstanceId": "1674286", + "offerCode": "14060327", + "proposition": { + "code": "RMVC00000001586", + "description": "SH_Campus_iPad Air 3 64GB 256GB_d3000_a1605_c12" + }, + "contractGroupCode": null, + "contractGroupDescriptionThai": null, + "contractGroupDescriptionEng": null, + "term": "12", + "effectiveDate": "2020-11-18T18:24:30.000+07:00", + "agreementSocSequence": "1674286", + "parentSocSequence": null + }, { + "contractStartDate": "2020-10-29T00:00:00.000+07:00", + "fee": "7000", + "contractNumber": "0972105656", + "remark": "QA", + "generateChargeYesNo": "N", + "terminationDate": "2022-01-29T00:00:00.000+07:00", + "offerServiceLevel": "C", + "contractExpirationDate": "2022-01-29T00:00:00.000+07:00", + "offerInstanceId": "1659085", + "offerCode": "16932729", + "proposition": { + "code": "RMV000000012125", + "description": "SH_S_CP Emp_Intb_disc7000_NoAdv_C15" + }, + "contractGroupCode": "CT_DEV", + "contractGroupDescriptionThai": "/", + "contractGroupDescriptionEng": "Special Campaign for Device Bundling Handset Discount/Others device", + "term": "15", + "effectiveDate": "2020-10-29T18:06:22.000+07:00", + "agreementSocSequence": "1659085", + "parentSocSequence": null + }, { + "contractStartDate": "2020-10-28T00:00:00.000+07:00", + "fee": "10000", + "contractNumber": "0972105656", + "remark": "QA", + "generateChargeYesNo": "N", + "terminationDate": "2021-10-28T00:00:00.000+07:00", + "offerServiceLevel": "C", + "contractExpirationDate": "2021-10-28T00:00:00.000+07:00", + "offerInstanceId": "1658437", + "offerCode": "15041217", + "proposition": { + "code": "CVG000000000069", + "description": "NS_Gold_TSC_Hole in One_c12" + }, + "contractGroupCode": "CT_CVG", + "contractGroupDescriptionThai": "/", + "contractGroupDescriptionEng": "Special Campaign for TrueMove H Postpay service with True Online/True Visions", + "term": "12", + "effectiveDate": "2020-10-29T12:54:42.000+07:00", + "agreementSocSequence": "1658437", + "parentSocSequence": null + }, { + "contractStartDate": "2020-08-06T00:00:00.000+07:00", + "fee": "100", + "contractNumber": "-", + "remark": "-", + "generateChargeYesNo": "N", + "terminationDate": "2021-02-06T10:58:42.000+07:00", + "offerServiceLevel": "C", + "contractExpirationDate": "2021-02-06T10:58:42.000+07:00", + "offerInstanceId": "1598847", + "offerCode": "93346", + "proposition": { + "code": "BRM000000000013", + "description": "OTS Business MNP O2R_ SIM Only" + }, + "contractGroupCode": "CT_SIM", + "contractGroupDescriptionThai": " ", + "contractGroupDescriptionEng": "Special Campaign for TrueMove H Postpay New Subscription", + "term": "6", + "effectiveDate": "2020-08-06T10:58:53.000+07:00", + "agreementSocSequence": "1598847", + "parentSocSequence": null + }, { + "contractStartDate": "2020-10-29T00:00:00.000+07:00", + "fee": "7000", + "contractNumber": "0972105656", + "remark": "QA", + "generateChargeYesNo": "N", + "terminationDate": "2020-10-29T18:03:16.000+07:00", + "offerServiceLevel": "C", + "contractExpirationDate": "2022-01-29T00:00:00.000+07:00", + "offerInstanceId": "1659018", + "offerCode": "16932729", + "proposition": { + "code": "RMV000000012125", + "description": "SH_S_CP Emp_Intb_disc7000_NoAdv_C15" + }, + "contractGroupCode": "CT_DEV", + "contractGroupDescriptionThai": "/", + "contractGroupDescriptionEng": "Special Campaign for Device Bundling Handset Discount/Others device", + "term": "15", + "effectiveDate": "2020-10-29T17:42:54.000+07:00", + "agreementSocSequence": "1659018", + "parentSocSequence": null + }, { + "contractStartDate": "2020-10-28T00:00:00.000+07:00", + "fee": "10000", + "contractNumber": "0972105656", + "remark": "QA", + "generateChargeYesNo": "N", + "terminationDate": "2020-10-29T12:52:59.000+07:00", + "offerServiceLevel": "C", + "contractExpirationDate": "2021-10-28T00:00:00.000+07:00", + "offerInstanceId": "1658386", + "offerCode": "15041217", + "proposition": { + "code": "CVG000000000069", + "description": "NS_Gold_TSC_Hole in One_c12" + }, + "contractGroupCode": "CT_CVG", + "contractGroupDescriptionThai": "/", + "contractGroupDescriptionEng": "Special Campaign for TrueMove H Postpay service with True Online/True Visions", + "term": "12", + "effectiveDate": "2020-10-29T11:24:13.000+07:00", + "agreementSocSequence": "1658386", + "parentSocSequence": null + }, { + "contractStartDate": "2020-10-28T00:00:00.000+07:00", + "fee": "10000", + "contractNumber": "0972105656", + "remark": "QA", + "generateChargeYesNo": "N", + "terminationDate": "2020-10-29T11:22:34.000+07:00", + "offerServiceLevel": "C", + "contractExpirationDate": "2021-10-28T00:00:00.000+07:00", + "offerInstanceId": "1657365", + "offerCode": "15041217", + "proposition": { + "code": "CVG000000000069", + "description": "NS_Gold_TSC_Hole in One_c12" + }, + "contractGroupCode": "CT_CVG", + "contractGroupDescriptionThai": "/", + "contractGroupDescriptionEng": "Special Campaign for TrueMove H Postpay service with True Online/True Visions", + "term": "12", + "effectiveDate": "2020-10-28T18:00:31.000+07:00", + "agreementSocSequence": "1657365", + "parentSocSequence": null + } + ], + "size": "7" + }, + "calculatedPageSize": "1500" + } + } + } + + res.status(200).send(response) +} + +module.exports.getProductInfo = async (req, res) => { + console.log('===== GET getProductInfo =====') + console.log('url', req.originalUrl); + console.log('headers', req.headers); + console.log('query', req.query); + console.log('params', req.params); + console.log('body', JSON.stringify(req.body)); + + let response = { + "getProductInfoResponse": { + "return": { + "subscriber": { + "trueLifeId": "", + "chNodeId": "98248293", + "primResourceType": "C", + "barringByRequestIndicator": "", + "splitPeriod": "NONE", + "rmvMigration": { + "accountId": "", + "activationDate": "", + "serviceLevel": "" + }, + "tmvMigration": { + "accountId": "", + "activationDate": "", + "serviceLevel": "" + }, + "exernalId": "0954678627", + "subscriberPassword": "", + "primResourceValue": "0954678627_getProductInfo", + "barringByRequestActivityDate": "", + "contact": { + "preferredContactNo": "", + "officePhone": "", + "homePhone": "0917152244", + "language": "TH", + "privatePhone": "", + "fax": "", + "email": "-" + }, + "customerId": "30744995", + "subscriberTypeDescription": "TMH-Real Move", + "barringByRequestReasonDescription": "", + "proof": { + "proofDate": "2018-02-24T00:00:00.000+07:00", + "proofDocument": "I", + "dealerApp": "" + }, + "smsIndicator": "Y", + "createDate": "2018-02-25T00:00:00.000+07:00", + "expirationDate": "", + "porting": { + "donorZone": { + "code": "", + "description": "" + }, + "portIndicator": { + "code": "" + }, + "recipientZone": { + "code": "", + "description": "" + }, + "donorOperator": { + "code": "", + "description": "" + }, + "recipientOperator": { + "code": "", + "description": "" + } + }, + "address": { + "country": "", + "zipCode": "10240", + "roomNo": "R195", + "city": "กรุงเทพมหานคร", + "addressType": "I", + "moo": "-", + "soi": "-", + "building": "DCONDO RAMKHAMHAENG TOWER A", + "street": "ถ.รามคำแหง", + "district": "บางกะปิ", + "addressLine1": "15/195 * - * - *", + "houseNo": "15/195", + "addressLine2": "* DCONDO RAMKHAMHAENG TOWER A * F8 * R195 * ถ.รามคำแหง", + "addressLine3": "* หัวหมาก * บางกะปิ", + "addressLine4": "กรุงเทพมหานคร 10240", + "floor": "F8", + "subDistrict": "หัวหมาก" + }, + "relatedSubscriberId": "", + "multiSIMIndicator": "", + "subscriberType": "RM", + "barringByRequestReasonCode": "", + "imsiAliasName": "", + "subscriberId": "75390563", + "creditStatus": { + "reasonDescription": "", + "lastActivityDate": "", + "reasonCode": "", + "status": "NONE" + }, + "convergenceCode": "", + "installationType": "", + "collectionStatus": { + "reasonDescription": "", + "lastActivityDate": "", + "reasonCode": "", + "status": "NONE" + }, + "creditLimitAtSubStatus": { + "reasonDescription": "", + "lastActivityDate": "", + "reasonCode": "", + "status": "NONE" + }, + "dealer": { + "code": "80000131", + "description": "บริษัท ทรู ดิสทริบิวชั่น แอนด์ เซลส์ จำกัด (สาขาอาคารธญาณ (เทเลออเดอริ่ง))" + }, + "name": { + "branchCode": "", + "nameType": "I", + "firstName": "แก้วทับทิม", + "lastName": "ป๊อกแสวง", + "organizationName": "", + "branchName": "", + "middleName": "", + "storeId": "", + "tilte": "นางสาว" + }, + "rfMigration": { + "accountId": "", + "activationDate": "", + "serviceLevel": "" + }, + "multiSIMLevel": "", + "smsLanguage": "TH", + "effectiveDate": "2018-02-25T00:00:00.000+07:00", + "startDate": "2018-02-25T00:00:00.000+07:00", + "status": { + "statusDate": "2018-02-25T00:00:00.000+07:00", + "statusLastActivity": "14", + "statusDescription": "Active", + "statusReasonDescription": "Add Additional SOC for Migrate Customer from Ensemble to CCBS for Activate Subscriber by RD", + "statusReasonCode": "RD03", + "lastActivityPathId": "78", + "statusCode": "A" + } + }, + "errorCode": "OSBbllngA00001", + "message": "Success.", + "uuid": "c6a17fbb-a014-4f76-b65f-0eb8fb809077" + } + } + } + + + res.status(200).send(response) } \ No newline at end of file diff --git a/vcom.js b/vcom.js index 0230815..8772af1 100644 --- a/vcom.js +++ b/vcom.js @@ -6,13 +6,16 @@ module.exports.userRegisterAndRegisterDevice = async (req, res) => { console.log('params', req.params); console.log('body', JSON.stringify(req.body)); + //This email address has been registered. + //Please check email you have registered and click validation link attached in the email. + let response, response1, responseErr if(req.body.action == 'registerAisUser') { response = { - "message": "Please check email you have registered and click validation link attached in the email.", + "message": "This email address has been registered.", "code": "1", "data": { - "userId": 10002912 + "userId1": 10002912 } } -- libgit2 0.21.2