Commit d3d1849a8c2a498fc744b4d4328af987eb9487ac

Authored by Nattapon W
1 parent 72c8eedf
Exists in develop

update mockup

app.js
... ... @@ -378,6 +378,8 @@ app.post('/privilege/v1/history/delete', require('./privilege').deleteCustomer);
378 378  
379 379 app.post('/v1/MVP/enq/getMobileOfferInventory/', require('./true').getMobileOfferInventory);
380 380 app.post('/v1/get_AccountStatusHistoryList/', require('./true').getAccountStatusHistoryList);
  381 +app.post('/MGContractInfo/MGContractInfo/getContractHistoryList', require('./true').getContractHistoryList);
  382 +app.post('/v1/get_ProductInfo/', require('./true').getProductInfo);
381 383  
382 384 app.post('/api/v1/LG-API/notifySubscription', require('./lg').notifySubscription);
383 385  
... ...
app2.js
... ... @@ -101,4 +101,10 @@ app.post('/api/v2/aaf/eligibleService.json', function (req, res) {
101 101 })
102 102 })
103 103  
  104 +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"}]
  105 +
  106 +data_role.sort((a,b) => (Date.parse(a.updatedDate) > Date.parse(b.updatedDate)) ? -1 : (( Date.parse(b.updatedDate) > Date.parse(a.updatedDate)) ? 1 : 0))
  107 +
  108 +console.log(data_role)
  109 +
104 110 app.listen(3002);
105 111 \ No newline at end of file
... ...
crmasset.js
... ... @@ -33,7 +33,8 @@ module.exports.getAssetComponentList = async (req, res) => {
33 33 "expiryDate": "2020-09-06T00:00:00.000+0700",
34 34 "status": "Inactive",
35 35 "offerType": "Discount",
36   - "chargePeriod": "Monthly"
  36 + "chargePeriod": "Monthly",
  37 + "billPeriod": "abc"
37 38 },
38 39 {
39 40 "assetRowID": "1-7KISY7T",
... ...
intx.js
... ... @@ -1736,131 +1736,9 @@ module.exports.getAllCCBSInvoiceList = async (req, res) => {
1736 1736 "getAllInvoiceListResponse": {
1737 1737 "return": {
1738 1738 "invoiceList": {
1739   - "size": "4",
  1739 + "size": "1",
1740 1740 "invoiceInfoArray": [
1741 1741 {
1742   - "discountTaxAmount": "-140",
1743   - "adjustmentNetAmount": "0",
1744   - "availableAdjustmentNetAmount": "1099",
1745   - "invoiceBcBanId": "700046423",
1746   - "dueDate": "2021-06-03T00:00:00.000+07:00",
1747   - "orderIdGroup": "",
1748   - "vatRate": "0.00",
1749   - "converageEndDate1": "2021-06-09T00:00:00.000+07:00",
1750   - "discountAmount": "-2000",
1751   - "invoiceTFaxAmount": "76.93",
1752   - "invoiceAmount": "1099",
1753   - "invoiceStatusChangeDate": "2021-06-15T00:00:00.000+07:00",
1754   - "paymentAmount": "1175.93",
1755   - "baNo": "200078606",
1756   - "billTaxAmount": "307.72",
1757   - "billingDocumentType": {
1758   - "code": "BL",
1759   - "description": "Bill"
1760   - },
1761   - "billAmount": "4703.72",
1762   - "invoiceType": "BILL",
1763   - "converageStartDate1": "2021-05-10T00:00:00.000+07:00",
1764   - "currency": "THB",
1765   - "billSequenceNo": "13522",
1766   - "invoiceNo": "070520211000425014",
1767   - "originalBalanceAmount": "1175.93",
1768   - "customerManagerBaNo": "200078606",
1769   - "invoiceCreationDate": "2021-06-02T00:00:00.000+07:00",
1770   - "unpaidNetAmount": "0",
1771   - "availableAdjustmentAmount": "1266.72",
1772   - "discountNetAmount": "-2000",
1773   - "billDate": "2021-05-11T01:00:00.000+07:00",
1774   - "disputeNetAmount": "1.0",
1775   - "creditTaxAmount": "0",
1776   - "accountId": "200078606",
1777   - "billProductType": "",
1778   - "billingDocumentStatus": {
1779   - "code": "N",
1780   - "description": "Confirmed"
1781   - },
1782   - "unpaidAmount": "0",
1783   - "restrictionAmount": "2000",
1784   - "disputeTaxAmount": "0.00",
1785   - "invoiceCycle": {
1786   - "code": "10",
1787   - "month": "5",
1788   - "year": "2021"
1789   - },
1790   - "convergenceInvoiceNo": "000520211000134302",
1791   - "coveredAmount": "1175.93",
1792   - "invoiceId": "1067822",
1793   - "performanceIndStatus": "",
1794   - "unpaidTaxAmount": "0",
1795   - "invoiceStatus": "C",
1796   - "adjustmentAmount": "0",
1797   - "restrictionTaxAmount": "140",
1798   - "periodCvrgStartDate": "2021-04-10T00:00:00.000+07:00",
1799   - "periodCvrgEndDate": "2021-05-09T00:00:00.000+07:00",
1800   - "invoiceChargeType": "BILL"
1801   - },
1802   - {
1803   - "discountTaxAmount": "-140",
1804   - "adjustmentNetAmount": "0",
1805   - "availableAdjustmentNetAmount": "1099",
1806   - "invoiceBcBanId": "700046423",
1807   - "dueDate": "2021-05-03T00:00:00.000+07:00",
1808   - "orderIdGroup": "",
1809   - "vatRate": "0.00",
1810   - "converageEndDate": "2021-05-09T00:00:00.000+07:00",
1811   - "discountAmount": "-2000",
1812   - "invoiceTaxAmount": "76.93",
1813   - "invoiceAmount": "1099",
1814   - "invoiceStatusChangeDate": "2021-06-15T00:00:00.000+07:00",
1815   - "paymentAmount": "1175.93",
1816   - "baNo": "200078606",
1817   - "billTaxAmount": "307.72",
1818   - "billingDocumentType": {
1819   - "code": "BL",
1820   - "description": "Bill"
1821   - },
1822   - "billAmount": "4703.72",
1823   - "invoiceType": "BILL",
1824   - "converageStartDate": "2021-04-10T00:00:00.000+07:00",
1825   - "currency": "THB",
1826   - "billSequenceNo": "13521",
1827   - "invoiceNo": "070420211000419181",
1828   - "originalBalanceAmount": "1175.93",
1829   - "customerManagerBaNo": "200078606",
1830   - "invoiceCreationDate": "2021-04-29T00:00:00.000+07:00",
1831   - "unpaidNetAmount": "0",
1832   - "availableAdjustmentAmount": "1266.72",
1833   - "discountNetAmount": "-2000",
1834   - "billDate": "2021-04-29T00:00:00.000+07:00",
1835   - "disputeNetAmount": "0.00",
1836   - "creditTaxAmount": "0",
1837   - "accountId": "200078606",
1838   - "billProductType": "",
1839   - "billingDocumentStatus": {
1840   - "code": "N",
1841   - "description": "Confirmed"
1842   - },
1843   - "unpaidAmount": "0",
1844   - "restrictionAmount": "2000",
1845   - "disputeTaxAmount": "0.00",
1846   - "invoiceCycle": {
1847   - "code": "10",
1848   - "month": "4",
1849   - "year": "2021"
1850   - },
1851   - "convergenceInvoiceNo": "000420211000131905",
1852   - "coveredAmount": "1175.93",
1853   - "invoiceId": "1039597",
1854   - "performanceIndStatus": "",
1855   - "unpaidTaxAmount": "0",
1856   - "invoiceStatus": "C",
1857   - "adjustmentAmount": "0",
1858   - "restrictionTaxAmount": "140",
1859   - "periodCvrgStartDate": "2021-03-10T00:00:00.000+07:00",
1860   - "periodCvrgEndDate": "2021-04-09T00:00:00.000+07:00",
1861   - "invoiceChargeType": "BILL"
1862   - },
1863   - {
1864 1742 "discountTaxAmount": "0",
1865 1743 "adjustmentNetAmount": "0",
1866 1744 "availableAdjustmentNetAmount": "30",
... ... @@ -1879,7 +1757,7 @@ module.exports.getAllCCBSInvoiceList = async (req, res) => {
1879 1757 "description": ""
1880 1758 },
1881 1759 "billAmount": "30",
1882   - "invoiceType": "DCB",
  1760 + "invoiceType": "BILL",
1883 1761 "currency": "THB",
1884 1762 "billSequenceNo": "-1",
1885 1763 "invoiceNo": "AR1008437",
... ... @@ -1913,65 +1791,8 @@ module.exports.getAllCCBSInvoiceList = async (req, res) => {
1913 1791 "invoiceStatus": "C",
1914 1792 "adjustmentAmount": "0",
1915 1793 "restrictionTaxAmount": "0",
1916   - "chargeCode": "CN",
  1794 + "chargeCode": "OCTVENTPEN1",
1917 1795 "invoiceChargeType": "INTEREST"
1918   - },
1919   - {
1920   - "discountTaxAmount": "0",
1921   - "adjustmentNetAmount": "0",
1922   - "availableAdjustmentNetAmount": "20",
1923   - "dueDate": "2021-06-30T00:00:00.000+07:00",
1924   - "orderIdGroup": "COLLECTION",
1925   - "vatRate": "0.00",
1926   - "discountAmount": "0",
1927   - "invoiceTaxAmount": "1.4",
1928   - "invoiceAmount": "20",
1929   - "invoiceStatusChangeDate": "2021-06-15T00:00:00.000+07:00",
1930   - "paymentAmount": "21.40",
1931   - "baNo": "200078606",
1932   - "billTaxAmount": "1.4",
1933   - "billingDocumentType": {
1934   - "code": null,
1935   - "description": ""
1936   - },
1937   - "billAmount": "21.4",
1938   - "invoiceType": "IMCG",
1939   - "currency": "THB",
1940   - "billSequenceNo": "-1",
1941   - "invoiceNo": "AR1008438",
1942   - "originalBalanceAmount": "21.4",
1943   - "customerManagerBaNo": "200078606",
1944   - "invoiceCreationDate": "2021-03-25T00:00:00.000+07:00",
1945   - "unpaidNetAmount": "0",
1946   - "availableAdjustmentAmount": "21.4",
1947   - "discountNetAmount": "0",
1948   - "disputeNetAmount": "0.00",
1949   - "creditTaxAmount": "0",
1950   - "accountId": "200078606",
1951   - "billProductType": "",
1952   - "billingDocumentStatus": {
1953   - "code": null,
1954   - "description": ""
1955   - },
1956   - "unpaidAmount": "0",
1957   - "restrictionAmount": "0",
1958   - "disputeTaxAmount": "0.00",
1959   - "invoiceCycle": {
1960   - "code": "10",
1961   - "month": "4",
1962   - "year": "2021"
1963   - },
1964   - "convergenceInvoiceNo": "",
1965   - "coveredAmount": "21.4",
1966   - "invoiceId": "1008438",
1967   - "performanceIndStatus": "",
1968   - "unpaidTaxAmount": "0",
1969   - "invoiceStatus": "C",
1970   - "adjustmentAmount": "0",
1971   - "restrictionTaxAmount": "0",
1972   - "chargeCode": "OCOLETYPEN",
1973   - "invoiceChargeType": "COLLECTION",
1974   - "periodCvrgStartDate": "test"
1975 1796 }
1976 1797 ]
1977 1798 },
... ... @@ -2440,7 +2261,7 @@ module.exports.getAccountInfo = async (req, res) => {
2440 2261 "creditCardType": "MasterCard",
2441 2262 "creditCardNumber": "10-20-30-40",
2442 2263 "creditCardName": null,
2443   - "creditCardExpirationDate": null,
  2264 + "creditCardExpirationDate": "2019-03-27T00:00:00.000+07:00",
2444 2265 "bankCode": null,
2445 2266 "bankBranchNumber": null,
2446 2267 "bankAccountNumber": "30-111-9933-1",
... ...
postpay_true.js
... ... @@ -261,61 +261,1044 @@ module.exports.getLastInvoiceList = async (req, res) => {
261 261 "getLastInvoiceListResponse": {
262 262 "return": {
263 263 "invoiceList": {
264   - "size": "4",
  264 + "size": "1",
  265 + "invoiceInfoArray": [
  266 + {
  267 + "discountTaxAmount": "0",
  268 + "adjustmentNetAmount": "0",
  269 + "availableAdjustmentNetAmount": "699",
  270 + "invoiceBcBanId": "813",
  271 + "dueDate": "2013-06-26T00:00:00.000+07:00",
  272 + "vatRate": "0.00",
  273 + "converageEndDate": "2013-06-01T00:00:00.000+07:00",
  274 + "discountAmount": "0",
  275 + "invoiceTaxAmount": "48.93",
  276 + "invoiceAmount": "699",
  277 + "invoiceStatusChangeDate": "2013-06-12T00:00:00.000+07:00",
  278 + "paymentAmount": "0",
  279 + "baNo": "10000449",
  280 + "billTaxAmount": "293.58",
  281 + "billingDocumentType": {
  282 + "code": "BL",
  283 + "description": "Bill"
  284 + },
  285 + "billAmount": "4487.58",
  286 + "invoiceType": "BILL",
  287 + "converageStartDate": "2013-05-02T00:00:00.000+07:00",
  288 + "currency": "THB",
  289 + "billSequenceNo": "293",
  290 + "invoiceNo": "140620130200002104",
  291 + "originalBalanceAmount": "1.01",
  292 + "customerManagerBaNo": "10000449",
  293 + "invoiceCreationDate": "2013-06-12T00:00:00.000+07:00",
  294 + "unpaidNetAmount": "699",
  295 + "availableAdjustmentAmount": "992.58",
  296 + "discountNetAmount": "0",
  297 + "billDate": "2021-01-03T00:00:00.000+07:00",
  298 + "disputeNetAmount": "0.00",
  299 + "creditTaxAmount": "0",
  300 + "accountId": "10000449",
  301 + "billProductType": "",
  302 + "billingDocumentStatus": {
  303 + "code": "N",
  304 + "description": "Confirmed"
  305 + },
  306 + "unpaidAmount": "0.00",
  307 + "restrictionAmount": "0",
  308 + "disputeTaxAmount": "0.00",
  309 + "invoiceCycle": {
  310 + "code": "2",
  311 + "month": "1",
  312 + "year": "2023"
  313 + },
  314 + "convergenceInvoiceNo": "140620130200002104",
  315 + "coveredAmount": "0",
  316 + "invoiceId": "8627",
  317 + "performanceIndStatus": "",
  318 + "unpaidTaxAmount": "48.93",
  319 + "invoiceStatus": "O",
  320 + "adjustmentAmount": "0",
  321 + "restrictionTaxAmount": "0"
  322 + },{
  323 + "discountTaxAmount": "0",
  324 + "adjustmentNetAmount": "0",
  325 + "availableAdjustmentNetAmount": "699",
  326 + "invoiceBcBanId": "813",
  327 + "dueDate": "2013-06-26T00:00:00.000+07:00",
  328 + "vatRate": "0.00",
  329 + "converageEndDate": "2013-06-01T00:00:00.000+07:00",
  330 + "discountAmount": "0",
  331 + "invoiceTaxAmount": "48.93",
  332 + "invoiceAmount": "699",
  333 + "invoiceStatusChangeDate": "2013-06-12T00:00:00.000+07:00",
  334 + "paymentAmount": "0",
  335 + "baNo": "10000449",
  336 + "billTaxAmount": "293.58",
  337 + "billingDocumentType": {
  338 + "code": "BL",
  339 + "description": "Bill"
  340 + },
  341 + "billAmount": "4487.58",
  342 + "invoiceType": "BILL",
  343 + "converageStartDate": "2013-05-02T00:00:00.000+07:00",
  344 + "currency": "THB",
  345 + "billSequenceNo": "293",
  346 + "invoiceNo": "140620130200002104",
  347 + "originalBalanceAmount": "1011.00",
  348 + "customerManagerBaNo": "10000449",
  349 + "invoiceCreationDate": "2013-06-12T00:00:00.000+07:00",
  350 + "unpaidNetAmount": "699",
  351 + "availableAdjustmentAmount": "992.58",
  352 + "discountNetAmount": "0",
  353 + "billDate": "2021-11-03T00:00:00.000+07:00",
  354 + "disputeNetAmount": "0.00",
  355 + "creditTaxAmount": "0",
  356 + "accountId": "10000449",
  357 + "billProductType": "",
  358 + "billingDocumentStatus": {
  359 + "code": "N",
  360 + "description": "Confirmed"
  361 + },
  362 + "unpaidAmount": "100.00",
  363 + "restrictionAmount": "0",
  364 + "disputeTaxAmount": "0.00",
  365 + "invoiceCycle": {
  366 + "code": "2",
  367 + "month": "9",
  368 + "year": "2021"
  369 + },
  370 + "convergenceInvoiceNo": "140620130200002104",
  371 + "coveredAmount": "0",
  372 + "invoiceId": "8627",
  373 + "performanceIndStatus": "",
  374 + "unpaidTaxAmount": "48.93",
  375 + "invoiceStatus": "O",
  376 + "adjustmentAmount": "0",
  377 + "restrictionTaxAmount": "0"
  378 + }
  379 + ]
  380 + },
  381 + "errorCode": "OSBbllngA00001",
  382 + "message": "Success.",
  383 + "uuid": "530dbd96-bada-4fcd-85d0-a829ba1347d7"
  384 + }
  385 + }
  386 + }
  387 +
  388 + let response1 = {
  389 + "getLastInvoiceListResponse": {
  390 + "return": {
  391 + "invoiceList": {
  392 + "size": "24",
265 393 "invoiceInfoArray": [
266 394 {
267 395 "discountTaxAmount": "0",
268 396 "adjustmentNetAmount": "0",
269   - "availableAdjustmentNetAmount": "699",
270   - "invoiceBcBanId": "813",
271   - "dueDate": "2013-06-26T00:00:00.000+07:00",
  397 + "availableAdjustmentNetAmount": "1099",
  398 + "invoiceBcBanId": "700037290",
  399 + "dueDate": "2019-07-12T00:00:00.000+07:00",
  400 + "vatRate": "0.00",
  401 + "converageEndDate": "2019-07-18T00:00:00.000+07:00",
  402 + "discountAmount": "0",
  403 + "invoiceTaxAmount": "76.93",
  404 + "invoiceAmount": "1099",
  405 + "invoiceStatusChangeDate": "2019-07-02T00:00:00.000+07:00",
  406 + "paymentAmount": "0",
  407 + "baNo": "200047386",
  408 + "billTaxAmount": "76.93",
  409 + "billingDocumentType": {
  410 + "code": "BL",
  411 + "description": "Bill"
  412 + },
  413 + "billAmount": "1175.93",
  414 + "invoiceType": "BILL",
  415 + "converageStartDate": "2019-06-19T00:00:00.000+07:00",
  416 + "currency": "THB",
  417 + "billSequenceNo": "9356",
  418 + "invoiceNo": "070620191900128986",
  419 + "originalBalanceAmount": "1175.93",
  420 + "customerManagerBaNo": "200047386",
  421 + "invoiceCreationDate": "2019-07-02T00:00:00.000+07:00",
  422 + "unpaidNetAmount": "1099",
  423 + "availableAdjustmentAmount": "1175.93",
  424 + "discountNetAmount": "0",
  425 + "billDate": "2021-08-20T00:00:00.000+07:00",
  426 + "disputeNetAmount": "0.00",
  427 + "creditTaxAmount": "0",
  428 + "accountId": "200047386",
  429 + "billProductType": "",
  430 + "billingDocumentStatus": {
  431 + "code": "N",
  432 + "description": "Confirmed"
  433 + },
  434 + "unpaidAmount": "1175.93",
  435 + "restrictionAmount": "0",
  436 + "disputeTaxAmount": "0.00",
  437 + "invoiceCycle": {
  438 + "code": "19",
  439 + "month": "8",
  440 + "year": "2021"
  441 + },
  442 + "convergenceInvoiceNo": "070620191900128986",
  443 + "coveredAmount": "0",
  444 + "invoiceId": "392743",
  445 + "performanceIndStatus": "",
  446 + "unpaidTaxAmount": "76.93",
  447 + "invoiceStatus": "O",
  448 + "adjustmentAmount": "0",
  449 + "restrictionTaxAmount": "0"
  450 + },
  451 + {
  452 + "discountTaxAmount": "0",
  453 + "adjustmentNetAmount": "0",
  454 + "availableAdjustmentNetAmount": "1099",
  455 + "invoiceBcBanId": "700037290",
  456 + "dueDate": "2019-06-12T00:00:00.000+07:00",
  457 + "vatRate": "0.00",
  458 + "converageEndDate": "2019-06-18T00:00:00.000+07:00",
  459 + "discountAmount": "0",
  460 + "invoiceTaxAmount": "76.93",
  461 + "invoiceAmount": "1099",
  462 + "invoiceStatusChangeDate": "2019-05-22T00:00:00.000+07:00",
  463 + "paymentAmount": "0",
  464 + "baNo": "200047386",
  465 + "billTaxAmount": "76.93",
  466 + "billingDocumentType": {
  467 + "code": "BL",
  468 + "description": "Bill"
  469 + },
  470 + "billAmount": "1175.93",
  471 + "invoiceType": "BILL",
  472 + "converageStartDate": "2019-05-19T00:00:00.000+07:00",
  473 + "currency": "THB",
  474 + "billSequenceNo": "9355",
  475 + "invoiceNo": "070520191900126840",
  476 + "originalBalanceAmount": "123.93",
  477 + "customerManagerBaNo": "200047386",
  478 + "invoiceCreationDate": "2019-05-22T00:00:00.000+07:00",
  479 + "unpaidNetAmount": "1099",
  480 + "availableAdjustmentAmount": "1175.93",
  481 + "discountNetAmount": "0",
  482 + "billDate": "2022-01-22T00:00:00.000+07:00",
  483 + "disputeNetAmount": "0.00",
  484 + "creditTaxAmount": "0",
  485 + "accountId": "200047386",
  486 + "billProductType": "",
  487 + "billingDocumentStatus": {
  488 + "code": "N",
  489 + "description": "Confirmed"
  490 + },
  491 + "unpaidAmount": "123.93",
  492 + "restrictionAmount": "0",
  493 + "disputeTaxAmount": "0.00",
  494 + "invoiceCycle": {
  495 + "code": "19",
  496 + "month": "01",
  497 + "year": "2022"
  498 + },
  499 + "convergenceInvoiceNo": "070520191900126840",
  500 + "coveredAmount": "0",
  501 + "invoiceId": "368196",
  502 + "performanceIndStatus": "",
  503 + "unpaidTaxAmount": "76.93",
  504 + "invoiceStatus": "O",
  505 + "adjustmentAmount": "0",
  506 + "restrictionTaxAmount": "0"
  507 + },
  508 + {
  509 + "discountTaxAmount": "0",
  510 + "adjustmentNetAmount": "0",
  511 + "availableAdjustmentNetAmount": "1099",
  512 + "invoiceBcBanId": "700037290",
  513 + "dueDate": "2019-05-12T00:00:00.000+07:00",
  514 + "vatRate": "0.00",
  515 + "converageEndDate": "2019-05-18T00:00:00.000+07:00",
  516 + "discountAmount": "0",
  517 + "invoiceTaxAmount": "76.93",
  518 + "invoiceAmount": "1099",
  519 + "invoiceStatusChangeDate": "2019-04-30T00:00:00.000+07:00",
  520 + "paymentAmount": "0",
  521 + "baNo": "200047386",
  522 + "billTaxAmount": "76.93",
  523 + "billingDocumentType": {
  524 + "code": "BL",
  525 + "description": "Bill"
  526 + },
  527 + "billAmount": "1175.93",
  528 + "invoiceType": "BILL",
  529 + "converageStartDate": "2019-04-19T00:00:00.000+07:00",
  530 + "currency": "THB",
  531 + "billSequenceNo": "9354",
  532 + "invoiceNo": "070420191900124633",
  533 + "originalBalanceAmount": "1175.93",
  534 + "customerManagerBaNo": "200047386",
  535 + "invoiceCreationDate": "2019-04-30T00:00:00.000+07:00",
  536 + "unpaidNetAmount": "1099",
  537 + "availableAdjustmentAmount": "1175.93",
  538 + "discountNetAmount": "0",
  539 + "billDate": "2019-04-23T00:00:00.000+07:00",
  540 + "disputeNetAmount": "0.00",
  541 + "creditTaxAmount": "0",
  542 + "accountId": "200047386",
  543 + "billProductType": "",
  544 + "billingDocumentStatus": {
  545 + "code": "N",
  546 + "description": "Confirmed"
  547 + },
  548 + "unpaidAmount": "1175.93",
  549 + "restrictionAmount": "0",
  550 + "disputeTaxAmount": "0.00",
  551 + "invoiceCycle": {
  552 + "code": "19",
  553 + "month": "4",
  554 + "year": "2019"
  555 + },
  556 + "convergenceInvoiceNo": "070420191900124633",
  557 + "coveredAmount": "0",
  558 + "invoiceId": "357687",
  559 + "performanceIndStatus": "",
  560 + "unpaidTaxAmount": "76.93",
  561 + "invoiceStatus": "O",
  562 + "adjustmentAmount": "0",
  563 + "restrictionTaxAmount": "0"
  564 + },
  565 + {
  566 + "discountTaxAmount": "0",
  567 + "adjustmentNetAmount": "0",
  568 + "availableAdjustmentNetAmount": "1099",
  569 + "invoiceBcBanId": "700037290",
  570 + "dueDate": "2019-04-12T00:00:00.000+07:00",
  571 + "vatRate": "0.00",
  572 + "converageEndDate": "2019-04-18T00:00:00.000+07:00",
  573 + "discountAmount": "0",
  574 + "invoiceTaxAmount": "76.93",
  575 + "invoiceAmount": "1099",
  576 + "invoiceStatusChangeDate": "2019-04-22T00:00:00.000+07:00",
  577 + "paymentAmount": "0",
  578 + "baNo": "200047386",
  579 + "billTaxAmount": "76.93",
  580 + "billingDocumentType": {
  581 + "code": "BL",
  582 + "description": "Bill"
  583 + },
  584 + "billAmount": "1175.93",
  585 + "invoiceType": "BILL",
  586 + "converageStartDate": "2019-03-19T00:00:00.000+07:00",
  587 + "currency": "THB",
  588 + "billSequenceNo": "9353",
  589 + "invoiceNo": "070320191900122423",
  590 + "originalBalanceAmount": "1175.93",
  591 + "customerManagerBaNo": "200047386",
  592 + "invoiceCreationDate": "2019-04-22T00:00:00.000+07:00",
  593 + "unpaidNetAmount": "1099",
  594 + "availableAdjustmentAmount": "1175.93",
  595 + "discountNetAmount": "0",
  596 + "billDate": "2019-03-20T00:00:00.000+07:00",
  597 + "disputeNetAmount": "0.00",
  598 + "creditTaxAmount": "0",
  599 + "accountId": "200047386",
  600 + "billProductType": "",
  601 + "billingDocumentStatus": {
  602 + "code": "N",
  603 + "description": "Confirmed"
  604 + },
  605 + "unpaidAmount": "1175.93",
  606 + "restrictionAmount": "0",
  607 + "disputeTaxAmount": "0.00",
  608 + "invoiceCycle": {
  609 + "code": "19",
  610 + "month": "3",
  611 + "year": "2019"
  612 + },
  613 + "convergenceInvoiceNo": "070320191900122423",
  614 + "coveredAmount": "0",
  615 + "invoiceId": "350750",
  616 + "performanceIndStatus": "",
  617 + "unpaidTaxAmount": "76.93",
  618 + "invoiceStatus": "O",
  619 + "adjustmentAmount": "0",
  620 + "restrictionTaxAmount": "0"
  621 + },
  622 + {
  623 + "discountTaxAmount": "0",
  624 + "adjustmentNetAmount": "0",
  625 + "availableAdjustmentNetAmount": "1099",
  626 + "invoiceBcBanId": "700037290",
  627 + "dueDate": "2019-03-16T00:00:00.000+07:00",
  628 + "vatRate": "0.00",
  629 + "converageEndDate": "2019-03-18T00:00:00.000+07:00",
  630 + "discountAmount": "0",
  631 + "invoiceTaxAmount": "76.93",
  632 + "invoiceAmount": "1099",
  633 + "invoiceStatusChangeDate": "2019-03-19T00:00:00.000+07:00",
  634 + "paymentAmount": "0",
  635 + "baNo": "200047386",
  636 + "billTaxAmount": "76.93",
  637 + "billingDocumentType": {
  638 + "code": "BL",
  639 + "description": "Bill"
  640 + },
  641 + "billAmount": "1175.93",
  642 + "invoiceType": "BILL",
  643 + "converageStartDate": "2019-02-19T00:00:00.000+07:00",
  644 + "currency": "THB",
  645 + "billSequenceNo": "9079",
  646 + "invoiceNo": "070220191900120320",
  647 + "originalBalanceAmount": "1175.93",
  648 + "customerManagerBaNo": "200047386",
  649 + "invoiceCreationDate": "2019-03-19T00:00:00.000+07:00",
  650 + "unpaidNetAmount": "1099",
  651 + "availableAdjustmentAmount": "1175.93",
  652 + "discountNetAmount": "0",
  653 + "billDate": "2019-02-21T00:00:00.000+07:00",
  654 + "disputeNetAmount": "0.00",
  655 + "creditTaxAmount": "0",
  656 + "accountId": "200047386",
  657 + "billProductType": "",
  658 + "billingDocumentStatus": {
  659 + "code": "N",
  660 + "description": "Confirmed"
  661 + },
  662 + "unpaidAmount": "1175.93",
  663 + "restrictionAmount": "0",
  664 + "disputeTaxAmount": "0.00",
  665 + "invoiceCycle": {
  666 + "code": "19",
  667 + "month": "2",
  668 + "year": "2019"
  669 + },
  670 + "convergenceInvoiceNo": "070220191900120320",
  671 + "coveredAmount": "0",
  672 + "invoiceId": "334508",
  673 + "performanceIndStatus": "",
  674 + "unpaidTaxAmount": "76.93",
  675 + "invoiceStatus": "O",
  676 + "adjustmentAmount": "0",
  677 + "restrictionTaxAmount": "0"
  678 + },
  679 + {
  680 + "discountTaxAmount": "0",
  681 + "adjustmentNetAmount": "0",
  682 + "availableAdjustmentNetAmount": "1099",
  683 + "invoiceBcBanId": "700037290",
  684 + "dueDate": "2019-02-14T00:00:00.000+07:00",
  685 + "vatRate": "0.00",
  686 + "converageEndDate": "2019-02-18T00:00:00.000+07:00",
  687 + "discountAmount": "0",
  688 + "invoiceTaxAmount": "76.93",
  689 + "invoiceAmount": "1099",
  690 + "invoiceStatusChangeDate": "2019-02-20T00:00:00.000+07:00",
  691 + "paymentAmount": "0",
  692 + "baNo": "200047386",
  693 + "billTaxAmount": "76.93",
  694 + "billingDocumentType": {
  695 + "code": "BL",
  696 + "description": "Bill"
  697 + },
  698 + "billAmount": "1175.93",
  699 + "invoiceType": "BILL",
  700 + "converageStartDate": "2019-01-19T00:00:00.000+07:00",
  701 + "currency": "THB",
  702 + "billSequenceNo": "9078",
  703 + "invoiceNo": "070120191900117390",
  704 + "originalBalanceAmount": "1175.93",
  705 + "customerManagerBaNo": "200047386",
  706 + "invoiceCreationDate": "2019-02-20T00:00:00.000+07:00",
  707 + "unpaidNetAmount": "1099",
  708 + "availableAdjustmentAmount": "1175.93",
  709 + "discountNetAmount": "0",
  710 + "billDate": "2019-01-22T00:00:00.000+07:00",
  711 + "disputeNetAmount": "0.00",
  712 + "creditTaxAmount": "0",
  713 + "accountId": "200047386",
  714 + "billProductType": "",
  715 + "billingDocumentStatus": {
  716 + "code": "N",
  717 + "description": "Confirmed"
  718 + },
  719 + "unpaidAmount": "1175.93",
  720 + "restrictionAmount": "0",
  721 + "disputeTaxAmount": "0.00",
  722 + "invoiceCycle": {
  723 + "code": "19",
  724 + "month": "12",
  725 + "year": "2018"
  726 + },
  727 + "convergenceInvoiceNo": "070120191900117390",
  728 + "coveredAmount": "0",
  729 + "invoiceId": "319609",
  730 + "performanceIndStatus": "",
  731 + "unpaidTaxAmount": "76.93",
  732 + "invoiceStatus": "O",
  733 + "adjustmentAmount": "0",
  734 + "restrictionTaxAmount": "0"
  735 + },
  736 + {
  737 + "discountTaxAmount": "0",
  738 + "adjustmentNetAmount": "0",
  739 + "availableAdjustmentNetAmount": "1099",
  740 + "invoiceBcBanId": "700037290",
  741 + "dueDate": "2018-12-13T00:00:00.000+07:00",
  742 + "vatRate": "0.00",
  743 + "converageEndDate": "2018-12-18T00:00:00.000+07:00",
  744 + "discountAmount": "0",
  745 + "invoiceTaxAmount": "76.93",
  746 + "invoiceAmount": "1099",
  747 + "invoiceStatusChangeDate": "2018-12-19T00:00:00.000+07:00",
  748 + "paymentAmount": "0",
  749 + "baNo": "200047386",
  750 + "billTaxAmount": "76.93",
  751 + "billingDocumentType": {
  752 + "code": "BL",
  753 + "description": "Bill"
  754 + },
  755 + "billAmount": "1175.93",
  756 + "invoiceType": "BILL",
  757 + "converageStartDate": "2018-11-19T00:00:00.000+07:00",
  758 + "currency": "THB",
  759 + "billSequenceNo": "9076",
  760 + "invoiceNo": "071120181900106553",
  761 + "originalBalanceAmount": "1175.93",
  762 + "customerManagerBaNo": "200047386",
  763 + "invoiceCreationDate": "2018-12-19T00:00:00.000+07:00",
  764 + "unpaidNetAmount": "1099",
  765 + "availableAdjustmentAmount": "1175.93",
  766 + "discountNetAmount": "0",
  767 + "billDate": "2018-11-20T00:00:00.000+07:00",
  768 + "disputeNetAmount": "0.00",
  769 + "creditTaxAmount": "0",
  770 + "accountId": "200047386",
  771 + "billProductType": "",
  772 + "billingDocumentStatus": {
  773 + "code": "N",
  774 + "description": "Confirmed"
  775 + },
  776 + "unpaidAmount": "1175.93",
  777 + "restrictionAmount": "0",
  778 + "disputeTaxAmount": "0.00",
  779 + "invoiceCycle": {
  780 + "code": "19",
  781 + "month": "11",
  782 + "year": "2018"
  783 + },
  784 + "convergenceInvoiceNo": "071120181900106553",
  785 + "coveredAmount": "0",
  786 + "invoiceId": "303487",
  787 + "performanceIndStatus": "",
  788 + "unpaidTaxAmount": "76.93",
  789 + "invoiceStatus": "O",
  790 + "adjustmentAmount": "0",
  791 + "restrictionTaxAmount": "0"
  792 + },
  793 + {
  794 + "discountTaxAmount": "0",
  795 + "adjustmentNetAmount": "0",
  796 + "availableAdjustmentNetAmount": "1099",
  797 + "invoiceBcBanId": "700037290",
  798 + "dueDate": "2019-01-12T00:00:00.000+07:00",
  799 + "vatRate": "0.00",
  800 + "converageEndDate": "2019-01-18T00:00:00.000+07:00",
  801 + "discountAmount": "0",
  802 + "invoiceTaxAmount": "76.93",
  803 + "invoiceAmount": "1099",
  804 + "invoiceStatusChangeDate": "2018-12-19T00:00:00.000+07:00",
  805 + "paymentAmount": "0",
  806 + "baNo": "200047386",
  807 + "billTaxAmount": "76.93",
  808 + "billingDocumentType": {
  809 + "code": "BL",
  810 + "description": "Bill"
  811 + },
  812 + "billAmount": "1175.93",
  813 + "invoiceType": "BILL",
  814 + "converageStartDate": "2018-12-19T00:00:00.000+07:00",
  815 + "currency": "THB",
  816 + "billSequenceNo": "9077",
  817 + "invoiceNo": "071220181900112288",
  818 + "originalBalanceAmount": "1175.93",
  819 + "customerManagerBaNo": "200047386",
  820 + "invoiceCreationDate": "2018-12-19T00:00:00.000+07:00",
  821 + "unpaidNetAmount": "1099",
  822 + "availableAdjustmentAmount": "1175.93",
  823 + "discountNetAmount": "0",
  824 + "billDate": "2018-12-20T00:00:00.000+07:00",
  825 + "disputeNetAmount": "0.00",
  826 + "creditTaxAmount": "0",
  827 + "accountId": "200047386",
  828 + "billProductType": "",
  829 + "billingDocumentStatus": {
  830 + "code": "N",
  831 + "description": "Confirmed"
  832 + },
  833 + "unpaidAmount": "1175.93",
  834 + "restrictionAmount": "0",
  835 + "disputeTaxAmount": "0.00",
  836 + "invoiceCycle": {
  837 + "code": "19",
  838 + "month": "12",
  839 + "year": "2018"
  840 + },
  841 + "convergenceInvoiceNo": "071220181900112288",
  842 + "coveredAmount": "0",
  843 + "invoiceId": "304713",
  844 + "performanceIndStatus": "",
  845 + "unpaidTaxAmount": "76.93",
  846 + "invoiceStatus": "O",
  847 + "adjustmentAmount": "0",
  848 + "restrictionTaxAmount": "0"
  849 + },
  850 + {
  851 + "discountTaxAmount": "0",
  852 + "adjustmentNetAmount": "0",
  853 + "availableAdjustmentNetAmount": "1099",
  854 + "invoiceBcBanId": "700037290",
  855 + "dueDate": "2018-11-12T00:00:00.000+07:00",
  856 + "vatRate": "0.00",
  857 + "converageEndDate": "2018-11-18T00:00:00.000+07:00",
  858 + "discountAmount": "0",
  859 + "invoiceTaxAmount": "76.93",
  860 + "invoiceAmount": "1099",
  861 + "invoiceStatusChangeDate": "2018-10-21T00:00:00.000+07:00",
  862 + "paymentAmount": "0",
  863 + "baNo": "200047386",
  864 + "billTaxAmount": "76.93",
  865 + "billingDocumentType": {
  866 + "code": "BL",
  867 + "description": "Bill"
  868 + },
  869 + "billAmount": "1175.93",
  870 + "invoiceType": "BILL",
  871 + "converageStartDate": "2018-10-19T00:00:00.000+07:00",
  872 + "currency": "THB",
  873 + "billSequenceNo": "9075",
  874 + "invoiceNo": "071020181900105703",
  875 + "originalBalanceAmount": "1175.93",
  876 + "customerManagerBaNo": "200047386",
  877 + "invoiceCreationDate": "2018-10-21T00:00:00.000+07:00",
  878 + "unpaidNetAmount": "1099",
  879 + "availableAdjustmentAmount": "1175.93",
  880 + "discountNetAmount": "0",
  881 + "billDate": "2018-10-20T00:00:00.000+07:00",
  882 + "disputeNetAmount": "0.00",
  883 + "creditTaxAmount": "0",
  884 + "accountId": "200047386",
  885 + "billProductType": "",
  886 + "billingDocumentStatus": {
  887 + "code": "N",
  888 + "description": "Confirmed"
  889 + },
  890 + "unpaidAmount": "1175.93",
  891 + "restrictionAmount": "0",
  892 + "disputeTaxAmount": "0.00",
  893 + "invoiceCycle": {
  894 + "code": "19",
  895 + "month": "10",
  896 + "year": "2018"
  897 + },
  898 + "convergenceInvoiceNo": "071020181900105703",
  899 + "coveredAmount": "0",
  900 + "invoiceId": "290801",
  901 + "performanceIndStatus": "",
  902 + "unpaidTaxAmount": "76.93",
  903 + "invoiceStatus": "O",
  904 + "adjustmentAmount": "0",
  905 + "restrictionTaxAmount": "0"
  906 + },
  907 + {
  908 + "discountTaxAmount": "0",
  909 + "adjustmentNetAmount": "0",
  910 + "availableAdjustmentNetAmount": "1099",
  911 + "invoiceBcBanId": "700037290",
  912 + "dueDate": "2018-10-19T00:00:00.000+07:00",
  913 + "vatRate": "0.00",
  914 + "converageEndDate": "2018-10-18T00:00:00.000+07:00",
  915 + "discountAmount": "0",
  916 + "invoiceTaxAmount": "76.93",
  917 + "invoiceAmount": "1099",
  918 + "invoiceStatusChangeDate": "2018-10-19T00:00:00.000+07:00",
  919 + "paymentAmount": "0",
  920 + "baNo": "200047386",
  921 + "billTaxAmount": "76.93",
  922 + "billingDocumentType": {
  923 + "code": "BL",
  924 + "description": "Bill"
  925 + },
  926 + "billAmount": "1175.93",
  927 + "invoiceType": "BILL",
  928 + "converageStartDate": "2018-09-19T00:00:00.000+07:00",
  929 + "currency": "THB",
  930 + "billSequenceNo": "9074",
  931 + "invoiceNo": "070920181900104269",
  932 + "originalBalanceAmount": "1175.93",
  933 + "customerManagerBaNo": "200047386",
  934 + "invoiceCreationDate": "2018-10-19T00:00:00.000+07:00",
  935 + "unpaidNetAmount": "1099",
  936 + "availableAdjustmentAmount": "1175.93",
  937 + "discountNetAmount": "0",
  938 + "billDate": "2018-09-26T00:00:00.000+07:00",
  939 + "disputeNetAmount": "0.00",
  940 + "creditTaxAmount": "0",
  941 + "accountId": "200047386",
  942 + "billProductType": "",
  943 + "billingDocumentStatus": {
  944 + "code": "N",
  945 + "description": "Confirmed"
  946 + },
  947 + "unpaidAmount": "1175.93",
  948 + "restrictionAmount": "0",
  949 + "disputeTaxAmount": "0.00",
  950 + "invoiceCycle": {
  951 + "code": "19",
  952 + "month": "9",
  953 + "year": "2018"
  954 + },
  955 + "convergenceInvoiceNo": "070920181900104269",
  956 + "coveredAmount": "0",
  957 + "invoiceId": "289285",
  958 + "performanceIndStatus": "",
  959 + "unpaidTaxAmount": "76.93",
  960 + "invoiceStatus": "O",
  961 + "adjustmentAmount": "0",
  962 + "restrictionTaxAmount": "0"
  963 + },
  964 + {
  965 + "discountTaxAmount": "0",
  966 + "adjustmentNetAmount": "0",
  967 + "availableAdjustmentNetAmount": "1099",
  968 + "invoiceBcBanId": "700037290",
  969 + "dueDate": "2018-09-13T00:00:00.000+07:00",
  970 + "vatRate": "0.00",
  971 + "converageEndDate": "2018-09-18T00:00:00.000+07:00",
  972 + "discountAmount": "0",
  973 + "invoiceTaxAmount": "76.93",
  974 + "invoiceAmount": "1099",
  975 + "invoiceStatusChangeDate": "2018-09-07T00:00:00.000+07:00",
  976 + "paymentAmount": "0",
  977 + "baNo": "200047386",
  978 + "billTaxAmount": "76.93",
  979 + "billingDocumentType": {
  980 + "code": "BL",
  981 + "description": "Bill"
  982 + },
  983 + "billAmount": "1175.93",
  984 + "invoiceType": "BILL",
  985 + "converageStartDate": "2018-08-19T00:00:00.000+07:00",
  986 + "currency": "THB",
  987 + "billSequenceNo": "8816",
  988 + "invoiceNo": "070820181900101954",
  989 + "originalBalanceAmount": "1175.93",
  990 + "customerManagerBaNo": "200047386",
  991 + "invoiceCreationDate": "2018-09-07T00:00:00.000+07:00",
  992 + "unpaidNetAmount": "1099",
  993 + "availableAdjustmentAmount": "1175.93",
  994 + "discountNetAmount": "0",
  995 + "billDate": "2018-08-21T00:00:00.000+07:00",
  996 + "disputeNetAmount": "0.00",
  997 + "creditTaxAmount": "0",
  998 + "accountId": "200047386",
  999 + "billProductType": "",
  1000 + "billingDocumentStatus": {
  1001 + "code": "N",
  1002 + "description": "Confirmed"
  1003 + },
  1004 + "unpaidAmount": "1175.93",
  1005 + "restrictionAmount": "0",
  1006 + "disputeTaxAmount": "0.00",
  1007 + "invoiceCycle": {
  1008 + "code": "19",
  1009 + "month": "8",
  1010 + "year": "2018"
  1011 + },
  1012 + "convergenceInvoiceNo": "070820181900101954",
  1013 + "coveredAmount": "0",
  1014 + "invoiceId": "285504",
  1015 + "performanceIndStatus": "",
  1016 + "unpaidTaxAmount": "76.93",
  1017 + "invoiceStatus": "O",
  1018 + "adjustmentAmount": "0",
  1019 + "restrictionTaxAmount": "0"
  1020 + },
  1021 + {
  1022 + "discountTaxAmount": "0",
  1023 + "adjustmentNetAmount": "0",
  1024 + "availableAdjustmentNetAmount": "1099",
  1025 + "invoiceBcBanId": "700037290",
  1026 + "dueDate": "2018-08-12T00:00:00.000+07:00",
  1027 + "vatRate": "0.00",
  1028 + "converageEndDate": "2018-08-18T00:00:00.000+07:00",
  1029 + "discountAmount": "0",
  1030 + "invoiceTaxAmount": "76.93",
  1031 + "invoiceAmount": "1099",
  1032 + "invoiceStatusChangeDate": "2018-07-23T00:00:00.000+07:00",
  1033 + "paymentAmount": "0",
  1034 + "baNo": "200047386",
  1035 + "billTaxAmount": "76.93",
  1036 + "billingDocumentType": {
  1037 + "code": "BL",
  1038 + "description": "Bill"
  1039 + },
  1040 + "billAmount": "1175.93",
  1041 + "invoiceType": "BILL",
  1042 + "converageStartDate": "2018-07-19T00:00:00.000+07:00",
  1043 + "currency": "THB",
  1044 + "billSequenceNo": "8605",
  1045 + "invoiceNo": "070720181900100645",
  1046 + "originalBalanceAmount": "1175.93",
  1047 + "customerManagerBaNo": "200047386",
  1048 + "invoiceCreationDate": "2018-07-23T00:00:00.000+07:00",
  1049 + "unpaidNetAmount": "1099",
  1050 + "availableAdjustmentAmount": "1175.93",
  1051 + "discountNetAmount": "0",
  1052 + "billDate": "2018-07-20T00:00:00.000+07:00",
  1053 + "disputeNetAmount": "0.00",
  1054 + "creditTaxAmount": "0",
  1055 + "accountId": "200047386",
  1056 + "billProductType": "",
  1057 + "billingDocumentStatus": {
  1058 + "code": "N",
  1059 + "description": "Confirmed"
  1060 + },
  1061 + "unpaidAmount": "1175.93",
  1062 + "restrictionAmount": "0",
  1063 + "disputeTaxAmount": "0.00",
  1064 + "invoiceCycle": {
  1065 + "code": "19",
  1066 + "month": "7",
  1067 + "year": "2018"
  1068 + },
  1069 + "convergenceInvoiceNo": "070720181900100645",
  1070 + "coveredAmount": "0",
  1071 + "invoiceId": "282184",
  1072 + "performanceIndStatus": "",
  1073 + "unpaidTaxAmount": "76.93",
  1074 + "invoiceStatus": "O",
  1075 + "adjustmentAmount": "0",
  1076 + "restrictionTaxAmount": "0"
  1077 + },
  1078 + {
  1079 + "discountTaxAmount": "0",
  1080 + "adjustmentNetAmount": "0",
  1081 + "availableAdjustmentNetAmount": "1099",
  1082 + "invoiceBcBanId": "700037290",
  1083 + "dueDate": "2018-05-18T00:00:00.000+07:00",
  1084 + "vatRate": "0.00",
  1085 + "converageEndDate": "2018-05-18T00:00:00.000+07:00",
  1086 + "discountAmount": "0",
  1087 + "invoiceTaxAmount": "76.93",
  1088 + "invoiceAmount": "1099",
  1089 + "invoiceStatusChangeDate": "2018-04-24T00:00:00.000+07:00",
  1090 + "paymentAmount": "0",
  1091 + "baNo": "200047386",
  1092 + "billTaxAmount": "76.93",
  1093 + "billingDocumentType": {
  1094 + "code": "BL",
  1095 + "description": "Bill"
  1096 + },
  1097 + "billAmount": "1175.93",
  1098 + "invoiceType": "BILL",
  1099 + "converageStartDate": "2018-04-19T00:00:00.000+07:00",
  1100 + "currency": "THB",
  1101 + "billSequenceNo": "8059",
  1102 + "invoiceNo": "070420181900097451",
  1103 + "originalBalanceAmount": "1175.93",
  1104 + "customerManagerBaNo": "200047386",
  1105 + "invoiceCreationDate": "2018-04-24T00:00:00.000+07:00",
  1106 + "unpaidNetAmount": "1099",
  1107 + "availableAdjustmentAmount": "1175.93",
  1108 + "discountNetAmount": "0",
  1109 + "billDate": "2018-04-25T00:00:00.000+07:00",
  1110 + "disputeNetAmount": "0.00",
  1111 + "creditTaxAmount": "0",
  1112 + "accountId": "200047386",
  1113 + "billProductType": "",
  1114 + "billingDocumentStatus": {
  1115 + "code": "N",
  1116 + "description": "Confirmed"
  1117 + },
  1118 + "unpaidAmount": "1175.93",
  1119 + "restrictionAmount": "0",
  1120 + "disputeTaxAmount": "0.00",
  1121 + "invoiceCycle": {
  1122 + "code": "19",
  1123 + "month": "4",
  1124 + "year": "2018"
  1125 + },
  1126 + "convergenceInvoiceNo": "070420181900097451",
  1127 + "coveredAmount": "0",
  1128 + "invoiceId": "274817",
  1129 + "performanceIndStatus": "",
  1130 + "unpaidTaxAmount": "76.93",
  1131 + "invoiceStatus": "O",
  1132 + "adjustmentAmount": "0",
  1133 + "restrictionTaxAmount": "0"
  1134 + },
  1135 + {
  1136 + "discountTaxAmount": "0",
  1137 + "adjustmentNetAmount": "0",
  1138 + "availableAdjustmentNetAmount": "1099",
  1139 + "invoiceBcBanId": "700037290",
  1140 + "dueDate": "2018-04-12T00:00:00.000+07:00",
  1141 + "vatRate": "0.00",
  1142 + "converageEndDate": "2018-04-18T00:00:00.000+07:00",
  1143 + "discountAmount": "0",
  1144 + "invoiceTaxAmount": "76.93",
  1145 + "invoiceAmount": "1099",
  1146 + "invoiceStatusChangeDate": "2018-03-19T00:00:00.000+07:00",
  1147 + "paymentAmount": "0",
  1148 + "baNo": "200047386",
  1149 + "billTaxAmount": "76.93",
  1150 + "billingDocumentType": {
  1151 + "code": "BL",
  1152 + "description": "Bill"
  1153 + },
  1154 + "billAmount": "1175.93",
  1155 + "invoiceType": "BILL",
  1156 + "converageStartDate": "2018-03-19T00:00:00.000+07:00",
  1157 + "currency": "THB",
  1158 + "billSequenceNo": "8058",
  1159 + "invoiceNo": "070320181900095238",
  1160 + "originalBalanceAmount": "1175.93",
  1161 + "customerManagerBaNo": "200047386",
  1162 + "invoiceCreationDate": "2018-03-19T00:00:00.000+07:00",
  1163 + "unpaidNetAmount": "1099",
  1164 + "availableAdjustmentAmount": "1175.93",
  1165 + "discountNetAmount": "0",
  1166 + "billDate": "2018-03-20T00:00:00.000+07:00",
  1167 + "disputeNetAmount": "0.00",
  1168 + "creditTaxAmount": "0",
  1169 + "accountId": "200047386",
  1170 + "billProductType": "",
  1171 + "billingDocumentStatus": {
  1172 + "code": "N",
  1173 + "description": "Confirmed"
  1174 + },
  1175 + "unpaidAmount": "1175.93",
  1176 + "restrictionAmount": "0",
  1177 + "disputeTaxAmount": "0.00",
  1178 + "invoiceCycle": {
  1179 + "code": "19",
  1180 + "month": "3",
  1181 + "year": "2018"
  1182 + },
  1183 + "convergenceInvoiceNo": "070320181900095238",
  1184 + "coveredAmount": "0",
  1185 + "invoiceId": "271147",
  1186 + "performanceIndStatus": "",
  1187 + "unpaidTaxAmount": "76.93",
  1188 + "invoiceStatus": "O",
  1189 + "adjustmentAmount": "0",
  1190 + "restrictionTaxAmount": "0"
  1191 + },
  1192 + {
  1193 + "discountTaxAmount": "0",
  1194 + "adjustmentNetAmount": "0",
  1195 + "availableAdjustmentNetAmount": "1099",
  1196 + "invoiceBcBanId": "700037290",
  1197 + "dueDate": "2018-03-15T00:00:00.000+07:00",
  1198 + "vatRate": "0.00",
  1199 + "converageEndDate": "2018-03-18T00:00:00.000+07:00",
  1200 + "discountAmount": "0",
  1201 + "invoiceTaxAmount": "76.93",
  1202 + "invoiceAmount": "1099",
  1203 + "invoiceStatusChangeDate": "2018-02-19T00:00:00.000+07:00",
  1204 + "paymentAmount": "0",
  1205 + "baNo": "200047386",
  1206 + "billTaxAmount": "76.93",
  1207 + "billingDocumentType": {
  1208 + "code": "BL",
  1209 + "description": "Bill"
  1210 + },
  1211 + "billAmount": "1175.93",
  1212 + "invoiceType": "BILL",
  1213 + "converageStartDate": "2018-02-19T00:00:00.000+07:00",
  1214 + "currency": "THB",
  1215 + "billSequenceNo": "3155",
  1216 + "invoiceNo": "070220181900094685",
  1217 + "originalBalanceAmount": "1175.93",
  1218 + "customerManagerBaNo": "200047386",
  1219 + "invoiceCreationDate": "2018-02-19T00:00:00.000+07:00",
  1220 + "unpaidNetAmount": "1099",
  1221 + "availableAdjustmentAmount": "1175.93",
  1222 + "discountNetAmount": "0",
  1223 + "billDate": "2018-02-20T00:00:00.000+07:00",
  1224 + "disputeNetAmount": "0.00",
  1225 + "creditTaxAmount": "0",
  1226 + "accountId": "200047386",
  1227 + "billProductType": "",
  1228 + "billingDocumentStatus": {
  1229 + "code": "N",
  1230 + "description": "Confirmed"
  1231 + },
  1232 + "unpaidAmount": "1175.93",
  1233 + "restrictionAmount": "0",
  1234 + "disputeTaxAmount": "0.00",
  1235 + "invoiceCycle": {
  1236 + "code": "19",
  1237 + "month": "2",
  1238 + "year": "2018"
  1239 + },
  1240 + "convergenceInvoiceNo": "070220181900094685",
  1241 + "coveredAmount": "0",
  1242 + "invoiceId": "269485",
  1243 + "performanceIndStatus": "",
  1244 + "unpaidTaxAmount": "76.93",
  1245 + "invoiceStatus": "O",
  1246 + "adjustmentAmount": "0",
  1247 + "restrictionTaxAmount": "0"
  1248 + },
  1249 + {
  1250 + "discountTaxAmount": "0",
  1251 + "adjustmentNetAmount": "0",
  1252 + "availableAdjustmentNetAmount": "1099",
  1253 + "invoiceBcBanId": "700030223",
  1254 + "dueDate": "2018-02-12T00:00:00.000+07:00",
272 1255 "vatRate": "0.00",
273   - "converageEndDate": "2013-06-01T00:00:00.000+07:00",
  1256 + "converageEndDate": "2018-02-18T00:00:00.000+07:00",
274 1257 "discountAmount": "0",
275   - "invoiceTaxAmount": "48.93",
276   - "invoiceAmount": "699",
277   - "invoiceStatusChangeDate": "2013-06-12T00:00:00.000+07:00",
  1258 + "invoiceTaxAmount": "76.93",
  1259 + "invoiceAmount": "1099",
  1260 + "invoiceStatusChangeDate": "2018-01-19T00:00:00.000+07:00",
278 1261 "paymentAmount": "0",
279   - "baNo": "10000449",
280   - "billTaxAmount": "293.58",
  1262 + "baNo": "200047386",
  1263 + "billTaxAmount": "76.93",
281 1264 "billingDocumentType": {
282 1265 "code": "BL",
283 1266 "description": "Bill"
284 1267 },
285   - "billAmount": "4487.58",
  1268 + "billAmount": "1175.93",
286 1269 "invoiceType": "BILL",
287   - "converageStartDate": "2013-05-02T00:00:00.000+07:00",
  1270 + "converageStartDate": "2018-01-19T00:00:00.000+07:00",
288 1271 "currency": "THB",
289   - "billSequenceNo": "293",
290   - "invoiceNo": "140620130200002104",
291   - "originalBalanceAmount": "101.00",
292   - "customerManagerBaNo": "10000449",
293   - "invoiceCreationDate": "2013-06-12T00:00:00.000+07:00",
294   - "unpaidNetAmount": "699",
295   - "availableAdjustmentAmount": "992.58",
  1272 + "billSequenceNo": "3154",
  1273 + "invoiceNo": "070120181900093462",
  1274 + "originalBalanceAmount": "1175.93",
  1275 + "customerManagerBaNo": "200047386",
  1276 + "invoiceCreationDate": "2018-01-19T00:00:00.000+07:00",
  1277 + "unpaidNetAmount": "1099",
  1278 + "availableAdjustmentAmount": "1175.93",
296 1279 "discountNetAmount": "0",
297   - "billDate": "2013-06-03T00:00:00.000+07:00",
  1280 + "billDate": "2018-01-20T00:00:00.000+07:00",
298 1281 "disputeNetAmount": "0.00",
299 1282 "creditTaxAmount": "0",
300   - "accountId": "10000449",
  1283 + "accountId": "200047386",
301 1284 "billProductType": "",
302 1285 "billingDocumentStatus": {
303 1286 "code": "N",
304 1287 "description": "Confirmed"
305 1288 },
306   - "unpaidAmount": "100.00",
  1289 + "unpaidAmount": "1175.93",
307 1290 "restrictionAmount": "0",
308 1291 "disputeTaxAmount": "0.00",
309 1292 "invoiceCycle": {
310   - "code": "2",
311   - "month": "6",
312   - "year": "2013"
  1293 + "code": "19",
  1294 + "month": "1",
  1295 + "year": "2018"
313 1296 },
314   - "convergenceInvoiceNo": "140620130200002104",
  1297 + "convergenceInvoiceNo": "000120181900030817",
315 1298 "coveredAmount": "0",
316   - "invoiceId": "8627",
  1299 + "invoiceId": "266440",
317 1300 "performanceIndStatus": "",
318   - "unpaidTaxAmount": "48.93",
  1301 + "unpaidTaxAmount": "76.93",
319 1302 "invoiceStatus": "O",
320 1303 "adjustmentAmount": "0",
321 1304 "restrictionTaxAmount": "0"
... ... @@ -323,56 +1306,56 @@ module.exports.getLastInvoiceList = async (req, res) => {
323 1306 {
324 1307 "discountTaxAmount": "0",
325 1308 "adjustmentNetAmount": "0",
326   - "availableAdjustmentNetAmount": "699",
327   - "invoiceBcBanId": "813",
328   - "dueDate": "2013-06-05T00:00:00.000+07:00",
  1309 + "availableAdjustmentNetAmount": "1099",
  1310 + "invoiceBcBanId": "700030223",
  1311 + "dueDate": "2017-10-13T00:00:00.000+07:00",
329 1312 "vatRate": "0.00",
330   - "converageEndDate": "2013-05-01T00:00:00.000+07:00",
  1313 + "converageEndDate": "2017-10-18T00:00:00.000+07:00",
331 1314 "discountAmount": "0",
332   - "invoiceTaxAmount": "48.93",
333   - "invoiceAmount": "699",
334   - "invoiceStatusChangeDate": "2013-05-12T00:00:00.000+07:00",
  1315 + "invoiceTaxAmount": "76.93",
  1316 + "invoiceAmount": "1099",
  1317 + "invoiceStatusChangeDate": "2017-12-21T00:00:00.000+07:00",
335 1318 "paymentAmount": "0",
336   - "baNo": "10000449",
337   - "billTaxAmount": "293.58",
  1319 + "baNo": "200047386",
  1320 + "billTaxAmount": "76.93",
338 1321 "billingDocumentType": {
339 1322 "code": "BL",
340 1323 "description": "Bill"
341 1324 },
342   - "billAmount": "4487.58",
  1325 + "billAmount": "1175.93",
343 1326 "invoiceType": "BILL",
344   - "converageStartDate": "2013-04-02T00:00:00.000+07:00",
  1327 + "converageStartDate": "2017-09-19T00:00:00.000+07:00",
345 1328 "currency": "THB",
346   - "billSequenceNo": "292",
347   - "invoiceNo": "140520130200001097",
348   - "originalBalanceAmount": "747.93",
349   - "customerManagerBaNo": "10000449",
350   - "invoiceCreationDate": "2013-05-12T00:00:00.000+07:00",
351   - "unpaidNetAmount": "699",
352   - "availableAdjustmentAmount": "992.58",
  1329 + "billSequenceNo": "3150",
  1330 + "invoiceNo": "070920171900081192",
  1331 + "originalBalanceAmount": "1175.93",
  1332 + "customerManagerBaNo": "200047386",
  1333 + "invoiceCreationDate": "2017-12-21T00:00:00.000+07:00",
  1334 + "unpaidNetAmount": "1099",
  1335 + "availableAdjustmentAmount": "1175.93",
353 1336 "discountNetAmount": "0",
354   - "billDate": "2013-05-13T00:00:00.000+07:00",
  1337 + "billDate": "2017-09-20T00:00:00.000+07:00",
355 1338 "disputeNetAmount": "0.00",
356 1339 "creditTaxAmount": "0",
357   - "accountId": "10000449",
  1340 + "accountId": "200047386",
358 1341 "billProductType": "",
359 1342 "billingDocumentStatus": {
360 1343 "code": "N",
361 1344 "description": "Confirmed"
362 1345 },
363   - "unpaidAmount": "101.00",
  1346 + "unpaidAmount": "1175.93",
364 1347 "restrictionAmount": "0",
365 1348 "disputeTaxAmount": "0.00",
366 1349 "invoiceCycle": {
367   - "code": "2",
368   - "month": "5",
369   - "year": "2013"
  1350 + "code": "19",
  1351 + "month": "9",
  1352 + "year": "2017"
370 1353 },
371   - "convergenceInvoiceNo": "140520130200001097",
  1354 + "convergenceInvoiceNo": "000920171900028529",
372 1355 "coveredAmount": "0",
373   - "invoiceId": "20448",
  1356 + "invoiceId": "256298",
374 1357 "performanceIndStatus": "",
375   - "unpaidTaxAmount": "48.93",
  1358 + "unpaidTaxAmount": "76.93",
376 1359 "invoiceStatus": "O",
377 1360 "adjustmentAmount": "0",
378 1361 "restrictionTaxAmount": "0"
... ... @@ -380,293 +1363,407 @@ module.exports.getLastInvoiceList = async (req, res) => {
380 1363 {
381 1364 "discountTaxAmount": "0",
382 1365 "adjustmentNetAmount": "0",
383   - "availableAdjustmentNetAmount": "0.00",
384   - "invoiceBcBanId": "813",
385   - "dueDate": "2013-04-26T00:00:00.000+07:00",
  1366 + "availableAdjustmentNetAmount": "1099",
  1367 + "invoiceBcBanId": "700030223",
  1368 + "dueDate": "2018-01-14T00:00:00.000+07:00",
386 1369 "vatRate": "0.00",
387   - "converageEndDate": "",
  1370 + "converageEndDate": "2017-11-18T00:00:00.000+07:00",
388 1371 "discountAmount": "0",
389   - "invoiceTaxAmount": "0",
390   - "invoiceAmount": "0",
391   - "invoiceStatusChangeDate": "2013-04-02T00:00:00.000+07:00",
  1372 + "invoiceTaxAmount": "76.93",
  1373 + "invoiceAmount": "1099",
  1374 + "invoiceStatusChangeDate": "2017-12-21T00:00:00.000+07:00",
392 1375 "paymentAmount": "0",
393   - "baNo": "10000449",
394   - "billTaxAmount": "0",
  1376 + "baNo": "200047386",
  1377 + "billTaxAmount": "76.93",
395 1378 "billingDocumentType": {
396 1379 "code": "BL",
397 1380 "description": "Bill"
398 1381 },
399   - "billAmount": "0.00",
400   - "invoiceType": "CN",
401   - "converageStartDate": "",
  1382 + "billAmount": "1175.93",
  1383 + "invoiceType": "BILL",
  1384 + "converageStartDate": "2017-10-19T00:00:00.000+07:00",
402 1385 "currency": "THB",
403   - "billSequenceNo": "291",
404   - "invoiceNo": "140420130200000419",
405   - "originalBalanceAmount": "0",
406   - "customerManagerBaNo": "10000449",
407   - "invoiceCreationDate": "2013-04-02T00:00:00.000+07:00",
408   - "unpaidNetAmount": "0",
409   - "availableAdjustmentAmount": "0.00",
  1386 + "billSequenceNo": "3151",
  1387 + "invoiceNo": "071020171900091037",
  1388 + "originalBalanceAmount": "1175.93",
  1389 + "customerManagerBaNo": "200047386",
  1390 + "invoiceCreationDate": "2017-12-21T00:00:00.000+07:00",
  1391 + "unpaidNetAmount": "1099",
  1392 + "availableAdjustmentAmount": "1175.93",
410 1393 "discountNetAmount": "0",
411   - "billDate": "2013-04-03T00:00:00.000+07:00",
  1394 + "billDate": "2017-12-22T00:00:00.000+07:00",
412 1395 "disputeNetAmount": "0.00",
413 1396 "creditTaxAmount": "0",
414   - "accountId": "10000449",
  1397 + "accountId": "200047386",
415 1398 "billProductType": "",
416 1399 "billingDocumentStatus": {
417 1400 "code": "N",
418 1401 "description": "Confirmed"
419 1402 },
420   - "unpaidAmount": "0",
421   - "restrictionAmount": "0.00",
  1403 + "unpaidAmount": "1175.93",
  1404 + "restrictionAmount": "0",
422 1405 "disputeTaxAmount": "0.00",
423 1406 "invoiceCycle": {
424   - "code": "2",
425   - "month": "4",
426   - "year": "2013"
  1407 + "code": "19",
  1408 + "month": "10",
  1409 + "year": "2017"
427 1410 },
428   - "convergenceInvoiceNo": "140420130200000419",
  1411 + "convergenceInvoiceNo": "001020171900030357",
429 1412 "coveredAmount": "0",
430   - "invoiceId": "3145",
  1413 + "invoiceId": "261211",
431 1414 "performanceIndStatus": "",
432   - "unpaidTaxAmount": "0",
433   - "invoiceStatus": "F",
  1415 + "unpaidTaxAmount": "76.93",
  1416 + "invoiceStatus": "O",
434 1417 "adjustmentAmount": "0",
435   - "restrictionTaxAmount": "0.00"
  1418 + "restrictionTaxAmount": "0"
436 1419 },
437 1420 {
438 1421 "discountTaxAmount": "0",
439 1422 "adjustmentNetAmount": "0",
440   - "availableAdjustmentNetAmount": "0.00",
441   - "invoiceBcBanId": "813",
442   - "dueDate": "2022-03-26T00:00:00.000+07:00",
  1423 + "availableAdjustmentNetAmount": "1099",
  1424 + "invoiceBcBanId": "700030223",
  1425 + "dueDate": "2018-01-14T00:00:00.000+07:00",
443 1426 "vatRate": "0.00",
444   - "converageEndDate": "",
  1427 + "converageEndDate": "2017-12-18T00:00:00.000+07:00",
445 1428 "discountAmount": "0",
446   - "invoiceTaxAmount": "0",
447   - "invoiceAmount": "0",
448   - "invoiceStatusChangeDate": "2013-03-02T00:00:00.000+07:00",
  1429 + "invoiceTaxAmount": "76.93",
  1430 + "invoiceAmount": "1099",
  1431 + "invoiceStatusChangeDate": "2017-12-21T00:00:00.000+07:00",
449 1432 "paymentAmount": "0",
450   - "baNo": "10000449",
451   - "billTaxAmount": "0",
  1433 + "baNo": "200047386",
  1434 + "billTaxAmount": "76.93",
452 1435 "billingDocumentType": {
453 1436 "code": "BL",
454 1437 "description": "Bill"
455 1438 },
456   - "billAmount": "0.00",
457   - "invoiceType": "CN",
458   - "converageStartDate": "",
  1439 + "billAmount": "1175.93",
  1440 + "invoiceType": "BILL",
  1441 + "converageStartDate": "2017-11-19T00:00:00.000+07:00",
459 1442 "currency": "THB",
460   - "billSequenceNo": "290",
461   - "invoiceNo": "140320130200000071",
462   - "originalBalanceAmount": "0",
463   - "customerManagerBaNo": "10000449",
464   - "invoiceCreationDate": "2013-03-02T00:00:00.000+07:00",
465   - "unpaidNetAmount": "0",
466   - "availableAdjustmentAmount": "0.00",
  1443 + "billSequenceNo": "3152",
  1444 + "invoiceNo": "071120171900091603",
  1445 + "originalBalanceAmount": "1175.93",
  1446 + "customerManagerBaNo": "200047386",
  1447 + "invoiceCreationDate": "2017-12-21T00:00:00.000+07:00",
  1448 + "unpaidNetAmount": "1099",
  1449 + "availableAdjustmentAmount": "1175.93",
467 1450 "discountNetAmount": "0",
468   - "billDate": "2013-03-03T00:00:00.000+07:00",
  1451 + "billDate": "2017-12-22T00:00:00.000+07:00",
469 1452 "disputeNetAmount": "0.00",
470 1453 "creditTaxAmount": "0",
471   - "accountId": "10000449",
  1454 + "accountId": "200047386",
472 1455 "billProductType": "",
473 1456 "billingDocumentStatus": {
474 1457 "code": "N",
475 1458 "description": "Confirmed"
476 1459 },
477   - "unpaidAmount": "102.00",
478   - "restrictionAmount": "0.00",
  1460 + "unpaidAmount": "1175.93",
  1461 + "restrictionAmount": "0",
479 1462 "disputeTaxAmount": "0.00",
480 1463 "invoiceCycle": {
481   - "code": "2",
482   - "month": "3",
483   - "year": "2013"
  1464 + "code": "19",
  1465 + "month": "11",
  1466 + "year": "2017"
484 1467 },
485   - "convergenceInvoiceNo": "140320130200000071",
  1468 + "convergenceInvoiceNo": "001120171900030470",
486 1469 "coveredAmount": "0",
487   - "invoiceId": "629",
  1470 + "invoiceId": "262372",
488 1471 "performanceIndStatus": "",
489   - "unpaidTaxAmount": "0",
490   - "invoiceStatus": "F",
  1472 + "unpaidTaxAmount": "76.93",
  1473 + "invoiceStatus": "O",
491 1474 "adjustmentAmount": "0",
492   - "restrictionTaxAmount": "0.00"
  1475 + "restrictionTaxAmount": "0"
493 1476 },
494 1477 {
495 1478 "discountTaxAmount": "0",
496 1479 "adjustmentNetAmount": "0",
497   - "availableAdjustmentNetAmount": "0.00",
498   - "invoiceBcBanId": "813",
499   - "dueDate": "2022-03-26T00:00:00.000+07:00",
  1480 + "availableAdjustmentNetAmount": "1099",
  1481 + "invoiceBcBanId": "700030223",
  1482 + "dueDate": "2018-01-14T00:00:00.000+07:00",
500 1483 "vatRate": "0.00",
501   - "converageEndDate": "",
  1484 + "converageEndDate": "2018-01-18T00:00:00.000+07:00",
502 1485 "discountAmount": "0",
503   - "invoiceTaxAmount": "0",
504   - "invoiceAmount": "0",
505   - "invoiceStatusChangeDate": "2013-03-02T00:00:00.000+07:00",
  1486 + "invoiceTaxAmount": "76.93",
  1487 + "invoiceAmount": "1099",
  1488 + "invoiceStatusChangeDate": "2017-12-21T00:00:00.000+07:00",
506 1489 "paymentAmount": "0",
507   - "baNo": "10000449",
508   - "billTaxAmount": "0",
  1490 + "baNo": "200047386",
  1491 + "billTaxAmount": "76.93",
509 1492 "billingDocumentType": {
510 1493 "code": "BL",
511 1494 "description": "Bill"
512 1495 },
513   - "billAmount": "0.00",
514   - "invoiceType": "CN",
515   - "converageStartDate": "",
  1496 + "billAmount": "1175.93",
  1497 + "invoiceType": "BILL",
  1498 + "converageStartDate": "2017-12-19T00:00:00.000+07:00",
516 1499 "currency": "THB",
517   - "billSequenceNo": "290",
518   - "invoiceNo": "140320130200000071",
519   - "originalBalanceAmount": "0",
520   - "customerManagerBaNo": "10000449",
521   - "invoiceCreationDate": "2013-03-02T00:00:00.000+07:00",
522   - "unpaidNetAmount": "0",
523   - "availableAdjustmentAmount": "0.00",
  1500 + "billSequenceNo": "3153",
  1501 + "invoiceNo": "071220171900092260",
  1502 + "originalBalanceAmount": "1175.93",
  1503 + "customerManagerBaNo": "200047386",
  1504 + "invoiceCreationDate": "2017-12-21T00:00:00.000+07:00",
  1505 + "unpaidNetAmount": "1099",
  1506 + "availableAdjustmentAmount": "1175.93",
524 1507 "discountNetAmount": "0",
525   - "billDate": "2013-02-03T00:00:00.000+07:00",
  1508 + "billDate": "2017-12-22T00:00:00.000+07:00",
526 1509 "disputeNetAmount": "0.00",
527 1510 "creditTaxAmount": "0",
528   - "accountId": "10000449",
  1511 + "accountId": "200047386",
529 1512 "billProductType": "",
530 1513 "billingDocumentStatus": {
531 1514 "code": "N",
532 1515 "description": "Confirmed"
533 1516 },
534   - "unpaidAmount": "1",
535   - "restrictionAmount": "0.00",
  1517 + "unpaidAmount": "1175.93",
  1518 + "restrictionAmount": "0",
536 1519 "disputeTaxAmount": "0.00",
537 1520 "invoiceCycle": {
538   - "code": "2",
539   - "month": "3",
540   - "year": "2013"
  1521 + "code": "19",
  1522 + "month": "12",
  1523 + "year": "2017"
541 1524 },
542   - "convergenceInvoiceNo": "140320130200000071",
  1525 + "convergenceInvoiceNo": "001220171900030574",
543 1526 "coveredAmount": "0",
544   - "invoiceId": "629",
  1527 + "invoiceId": "263218",
545 1528 "performanceIndStatus": "",
546   - "unpaidTaxAmount": "0",
547   - "invoiceStatus": "F",
  1529 + "unpaidTaxAmount": "76.93",
  1530 + "invoiceStatus": "O",
548 1531 "adjustmentAmount": "0",
549   - "restrictionTaxAmount": "0.00"
  1532 + "restrictionTaxAmount": "0"
550 1533 },
551 1534 {
552 1535 "discountTaxAmount": "0",
553 1536 "adjustmentNetAmount": "0",
554   - "availableAdjustmentNetAmount": "0.00",
555   - "invoiceBcBanId": "813",
556   - "dueDate": "2022-03-26T00:00:00.000+07:00",
  1537 + "availableAdjustmentNetAmount": "1099",
  1538 + "invoiceBcBanId": "700030223",
  1539 + "dueDate": "2017-09-15T00:00:00.000+07:00",
557 1540 "vatRate": "0.00",
558   - "converageEndDate": "",
  1541 + "converageEndDate": "2017-09-18T00:00:00.000+07:00",
559 1542 "discountAmount": "0",
560   - "invoiceTaxAmount": "0",
561   - "invoiceAmount": "0",
562   - "invoiceStatusChangeDate": "2013-03-02T00:00:00.000+07:00",
  1543 + "invoiceTaxAmount": "76.93",
  1544 + "invoiceAmount": "1099",
  1545 + "invoiceStatusChangeDate": "2017-09-19T00:00:00.000+07:00",
563 1546 "paymentAmount": "0",
564   - "baNo": "10000449",
565   - "billTaxAmount": "0",
  1547 + "baNo": "200047386",
  1548 + "billTaxAmount": "76.93",
566 1549 "billingDocumentType": {
567 1550 "code": "BL",
568 1551 "description": "Bill"
569 1552 },
570   - "billAmount": "0.00",
571   - "invoiceType": "CN",
572   - "converageStartDate": "",
  1553 + "billAmount": "1175.93",
  1554 + "invoiceType": "BILL",
  1555 + "converageStartDate": "2017-08-19T00:00:00.000+07:00",
573 1556 "currency": "THB",
574   - "billSequenceNo": "290",
575   - "invoiceNo": "140320130200000071",
576   - "originalBalanceAmount": "2",
577   - "customerManagerBaNo": "10000449",
578   - "invoiceCreationDate": "2013-03-02T00:00:00.000+07:00",
579   - "unpaidNetAmount": "0",
580   - "availableAdjustmentAmount": "0.00",
  1557 + "billSequenceNo": "3149",
  1558 + "invoiceNo": "070820171900071984",
  1559 + "originalBalanceAmount": "1175.93",
  1560 + "customerManagerBaNo": "200047386",
  1561 + "invoiceCreationDate": "2017-09-19T00:00:00.000+07:00",
  1562 + "unpaidNetAmount": "1099",
  1563 + "availableAdjustmentAmount": "1175.93",
581 1564 "discountNetAmount": "0",
582   - "billDate": "2013-01-03T00:00:00.000+07:00",
  1565 + "billDate": "2017-08-23T00:00:00.000+07:00",
583 1566 "disputeNetAmount": "0.00",
584 1567 "creditTaxAmount": "0",
585   - "accountId": "10000449",
  1568 + "accountId": "200047386",
586 1569 "billProductType": "",
587 1570 "billingDocumentStatus": {
588 1571 "code": "N",
589 1572 "description": "Confirmed"
590 1573 },
591   - "unpaidAmount": "1",
592   - "restrictionAmount": "0.00",
  1574 + "unpaidAmount": "1175.93",
  1575 + "restrictionAmount": "0",
593 1576 "disputeTaxAmount": "0.00",
594 1577 "invoiceCycle": {
595   - "code": "2",
596   - "month": "3",
597   - "year": "2013"
  1578 + "code": "19",
  1579 + "month": "8",
  1580 + "year": "2017"
598 1581 },
599   - "convergenceInvoiceNo": "140320130200000071",
  1582 + "convergenceInvoiceNo": "000820171900026671",
600 1583 "coveredAmount": "0",
601   - "invoiceId": "629",
  1584 + "invoiceId": "248967",
602 1585 "performanceIndStatus": "",
603   - "unpaidTaxAmount": "0",
604   - "invoiceStatus": "F",
  1586 + "unpaidTaxAmount": "76.93",
  1587 + "invoiceStatus": "O",
605 1588 "adjustmentAmount": "0",
606   - "restrictionTaxAmount": "0.00"
  1589 + "restrictionTaxAmount": "0"
607 1590 },
608 1591 {
609 1592 "discountTaxAmount": "0",
610 1593 "adjustmentNetAmount": "0",
611   - "availableAdjustmentNetAmount": "0.00",
612   - "invoiceBcBanId": "813",
613   - "dueDate": "2022-03-26T00:00:00.000+07:00",
  1594 + "availableAdjustmentNetAmount": "1099",
  1595 + "invoiceBcBanId": "700030223",
  1596 + "dueDate": "2017-08-12T00:00:00.000+07:00",
614 1597 "vatRate": "0.00",
615   - "converageEndDate": "",
  1598 + "converageEndDate": "2017-08-18T00:00:00.000+07:00",
616 1599 "discountAmount": "0",
617   - "invoiceTaxAmount": "0",
618   - "invoiceAmount": "0",
619   - "invoiceStatusChangeDate": "2013-03-02T00:00:00.000+07:00",
  1600 + "invoiceTaxAmount": "76.93",
  1601 + "invoiceAmount": "1099",
  1602 + "invoiceStatusChangeDate": "2017-08-22T00:00:00.000+07:00",
620 1603 "paymentAmount": "0",
621   - "baNo": "10000449",
622   - "billTaxAmount": "0",
  1604 + "baNo": "200047386",
  1605 + "billTaxAmount": "76.93",
623 1606 "billingDocumentType": {
624 1607 "code": "BL",
625 1608 "description": "Bill"
626 1609 },
627   - "billAmount": "0.00",
628   - "invoiceType": "CN",
629   - "converageStartDate": "",
  1610 + "billAmount": "1175.93",
  1611 + "invoiceType": "BILL",
  1612 + "converageStartDate": "2017-07-19T00:00:00.000+07:00",
630 1613 "currency": "THB",
631   - "billSequenceNo": "290",
632   - "invoiceNo": "140320130200000071",
633   - "originalBalanceAmount": "1",
634   - "customerManagerBaNo": "10000449",
635   - "invoiceCreationDate": "2013-03-02T00:00:00.000+07:00",
636   - "unpaidNetAmount": "0",
637   - "availableAdjustmentAmount": "0.00",
  1614 + "billSequenceNo": "2383",
  1615 + "invoiceNo": "070720171900068649",
  1616 + "originalBalanceAmount": "1175.93",
  1617 + "customerManagerBaNo": "200047386",
  1618 + "invoiceCreationDate": "2017-08-22T00:00:00.000+07:00",
  1619 + "unpaidNetAmount": "1099",
  1620 + "availableAdjustmentAmount": "1175.93",
638 1621 "discountNetAmount": "0",
639   - "billDate": "2012-12-03T00:00:00.000+07:00",
  1622 + "billDate": "2017-07-20T00:00:00.000+07:00",
640 1623 "disputeNetAmount": "0.00",
641 1624 "creditTaxAmount": "0",
642   - "accountId": "10000449",
  1625 + "accountId": "200047386",
643 1626 "billProductType": "",
644 1627 "billingDocumentStatus": {
645 1628 "code": "N",
646 1629 "description": "Confirmed"
647 1630 },
648   - "unpaidAmount": "1",
649   - "restrictionAmount": "0.00",
  1631 + "unpaidAmount": "1175.93",
  1632 + "restrictionAmount": "0",
650 1633 "disputeTaxAmount": "0.00",
651 1634 "invoiceCycle": {
652   - "code": "2",
653   - "month": "3",
654   - "year": "2013"
  1635 + "code": "19",
  1636 + "month": "7",
  1637 + "year": "2017"
655 1638 },
656   - "convergenceInvoiceNo": "140320130200000071",
  1639 + "convergenceInvoiceNo": "000720171900026153",
657 1640 "coveredAmount": "0",
658   - "invoiceId": "629",
  1641 + "invoiceId": "246558",
659 1642 "performanceIndStatus": "",
660   - "unpaidTaxAmount": "0",
661   - "invoiceStatus": "F",
  1643 + "unpaidTaxAmount": "76.93",
  1644 + "invoiceStatus": "O",
662 1645 "adjustmentAmount": "0",
663   - "restrictionTaxAmount": "0.00"
  1646 + "restrictionTaxAmount": "0"
  1647 + },
  1648 + {
  1649 + "discountTaxAmount": "0",
  1650 + "adjustmentNetAmount": "0",
  1651 + "availableAdjustmentNetAmount": "1099",
  1652 + "invoiceBcBanId": "700030223",
  1653 + "dueDate": "2017-07-14T00:00:00.000+07:00",
  1654 + "vatRate": "0.00",
  1655 + "converageEndDate": "2017-07-18T00:00:00.000+07:00",
  1656 + "discountAmount": "0",
  1657 + "invoiceTaxAmount": "76.93",
  1658 + "invoiceAmount": "1099",
  1659 + "invoiceStatusChangeDate": "2017-06-27T00:00:00.000+07:00",
  1660 + "paymentAmount": "0",
  1661 + "baNo": "200047386",
  1662 + "billTaxAmount": "76.93",
  1663 + "billingDocumentType": {
  1664 + "code": "BL",
  1665 + "description": "Bill"
  1666 + },
  1667 + "billAmount": "1175.93",
  1668 + "invoiceType": "BILL",
  1669 + "converageStartDate": "2017-06-19T00:00:00.000+07:00",
  1670 + "currency": "THB",
  1671 + "billSequenceNo": "2382",
  1672 + "invoiceNo": "070620171900065703",
  1673 + "originalBalanceAmount": "1175.93",
  1674 + "customerManagerBaNo": "200047386",
  1675 + "invoiceCreationDate": "2017-06-27T00:00:00.000+07:00",
  1676 + "unpaidNetAmount": "1099",
  1677 + "availableAdjustmentAmount": "1175.93",
  1678 + "discountNetAmount": "0",
  1679 + "billDate": "2017-06-21T00:00:00.000+07:00",
  1680 + "disputeNetAmount": "0.00",
  1681 + "creditTaxAmount": "0",
  1682 + "accountId": "200047386",
  1683 + "billProductType": "",
  1684 + "billingDocumentStatus": {
  1685 + "code": "N",
  1686 + "description": "Confirmed"
  1687 + },
  1688 + "unpaidAmount": "1175.93",
  1689 + "restrictionAmount": "0",
  1690 + "disputeTaxAmount": "0.00",
  1691 + "invoiceCycle": {
  1692 + "code": "19",
  1693 + "month": "6",
  1694 + "year": "2017"
  1695 + },
  1696 + "convergenceInvoiceNo": "000620171900025631",
  1697 + "coveredAmount": "0",
  1698 + "invoiceId": "238311",
  1699 + "performanceIndStatus": "",
  1700 + "unpaidTaxAmount": "76.93",
  1701 + "invoiceStatus": "O",
  1702 + "adjustmentAmount": "0",
  1703 + "restrictionTaxAmount": "0"
  1704 + },
  1705 + {
  1706 + "discountTaxAmount": "0",
  1707 + "adjustmentNetAmount": "0",
  1708 + "availableAdjustmentNetAmount": "1099",
  1709 + "invoiceBcBanId": "700030223",
  1710 + "dueDate": "2017-06-12T00:00:00.000+07:00",
  1711 + "vatRate": "0.00",
  1712 + "converageEndDate": "2017-06-18T00:00:00.000+07:00",
  1713 + "discountAmount": "0",
  1714 + "invoiceTaxAmount": "76.93",
  1715 + "invoiceAmount": "1099",
  1716 + "invoiceStatusChangeDate": "2017-05-29T00:00:00.000+07:00",
  1717 + "paymentAmount": "0",
  1718 + "baNo": "200047386",
  1719 + "billTaxAmount": "76.93",
  1720 + "billingDocumentType": {
  1721 + "code": "BL",
  1722 + "description": "Bill"
  1723 + },
  1724 + "billAmount": "1175.93",
  1725 + "invoiceType": "BILL",
  1726 + "converageStartDate": "2017-05-19T00:00:00.000+07:00",
  1727 + "currency": "THB",
  1728 + "billSequenceNo": "2381",
  1729 + "invoiceNo": "070520171900060156",
  1730 + "originalBalanceAmount": "1175.93",
  1731 + "customerManagerBaNo": "200047386",
  1732 + "invoiceCreationDate": "2017-05-29T00:00:00.000+07:00",
  1733 + "unpaidNetAmount": "1099",
  1734 + "availableAdjustmentAmount": "1175.93",
  1735 + "discountNetAmount": "0",
  1736 + "billDate": "2017-05-20T00:00:00.000+07:00",
  1737 + "disputeNetAmount": "0.00",
  1738 + "creditTaxAmount": "0",
  1739 + "accountId": "200047386",
  1740 + "billProductType": "",
  1741 + "billingDocumentStatus": {
  1742 + "code": "N",
  1743 + "description": "Confirmed"
  1744 + },
  1745 + "unpaidAmount": "1175.93",
  1746 + "restrictionAmount": "0",
  1747 + "disputeTaxAmount": "0.00",
  1748 + "invoiceCycle": {
  1749 + "code": "19",
  1750 + "month": "5",
  1751 + "year": "2017"
  1752 + },
  1753 + "convergenceInvoiceNo": "000520171900024631",
  1754 + "coveredAmount": "0",
  1755 + "invoiceId": "233503",
  1756 + "performanceIndStatus": "",
  1757 + "unpaidTaxAmount": "76.93",
  1758 + "invoiceStatus": "O",
  1759 + "adjustmentAmount": "0",
  1760 + "restrictionTaxAmount": "0"
664 1761 }
665 1762 ]
666 1763 },
667 1764 "errorCode": "OSBbllngA00001",
668 1765 "message": "Success.",
669   - "uuid": "530dbd96-bada-4fcd-85d0-a829ba1347d7"
  1766 + "uuid": "0b273353-454b-4de4-bb04-f1a9b543583e"
670 1767 }
671 1768 }
672 1769 }
... ... @@ -686,7 +1783,7 @@ module.exports.getLastDocumentList = async (req, res) => {
686 1783 "getLastDocumentListResponse": {
687 1784 "return": {
688 1785 "invoiceList": {
689   - "size": "1",
  1786 + "size": "2",
690 1787 "invoiceInfoArray": [
691 1788 {
692 1789 "discountTaxAmount": "0.00",
... ... @@ -728,7 +1825,64 @@ module.exports.getLastDocumentList = async (req, res) => {
728 1825 "code": "C",
729 1826 "description": "Calculated"
730 1827 },
731   - "unpaidAmount": "0.00",
  1828 + "unpaidAmount": "1.00",
  1829 + "restrictionAmount": "0.00",
  1830 + "disputeTaxAmount": "0.00",
  1831 + "invoiceCycle": {
  1832 + "code": "",
  1833 + "month": "",
  1834 + "year": ""
  1835 + },
  1836 + "convergenceInvoiceNo": "010720212800390921",
  1837 + "coveredAmount": "0.00",
  1838 + "invoiceId": "",
  1839 + "performanceIndStatus": "CH",
  1840 + "unpaidTaxAmount": "0",
  1841 + "invoiceStatus": "",
  1842 + "adjustmentAmount": "0",
  1843 + "restrictionTaxAmount": "0.00"
  1844 + },
  1845 + {
  1846 + "discountTaxAmount": "0.00",
  1847 + "adjustmentNetAmount": "0.00",
  1848 + "availableAdjustmentNetAmount": "0.00",
  1849 + "invoiceBcBanId": "",
  1850 + "dueDate": "",
  1851 + "vatRate": "0.00",
  1852 + "converageEndDate": "",
  1853 + "discountAmount": "0.00",
  1854 + "invoiceTaxAmount": "0.00",
  1855 + "invoiceAmount": "0.00",
  1856 + "invoiceStatusChangeDate": "",
  1857 + "paymentAmount": "0",
  1858 + "baNo": "",
  1859 + "billTaxAmount": "0.00",
  1860 + "billingDocumentType": {
  1861 + "code": "BL",
  1862 + "description": "Bill"
  1863 + },
  1864 + "billAmount": "0.00",
  1865 + "invoiceType": "",
  1866 + "converageStartDate": "",
  1867 + "currency": "THB",
  1868 + "billSequenceNo": "",
  1869 + "invoiceNo": "",
  1870 + "originalBalanceAmount": "0.00",
  1871 + "customerManagerBaNo": "",
  1872 + "invoiceCreationDate": "",
  1873 + "unpaidNetAmount": "0.00",
  1874 + "availableAdjustmentAmount": "0.00",
  1875 + "discountNetAmount": "0.00",
  1876 + "billDate": "2021-07-30T00:00:00.000+07:00",
  1877 + "disputeNetAmount": "0.00",
  1878 + "creditTaxAmount": "0.00",
  1879 + "accountId": "200112081",
  1880 + "billProductType": "DR",
  1881 + "billingDocumentStatus": {
  1882 + "code": "C",
  1883 + "description": "Calculated"
  1884 + },
  1885 + "unpaidAmount": "4.00",
732 1886 "restrictionAmount": "0.00",
733 1887 "disputeTaxAmount": "0.00",
734 1888 "invoiceCycle": {
... ...
ssb.js
... ... @@ -189,31 +189,189 @@ module.exports.createNewRegistration = async (req, res) => {
189 189 console.log('params', req.params);
190 190 console.log('body', JSON.stringify(req.body));
191 191  
192   - let response = {
193   - "resultCode": "20000",
194   - "developerMessage": "Success",
195   - "data": {
196   - "ExecuteServiceResponse": {
197   - "return": {
198   - "ParameterList": {
  192 + let response
  193 + if(req.body.ExecuteService.sffRequest.Event == 'evESQueryPersonalInformation') {
  194 + response = {
  195 + "resultCode": "20000",
  196 + "developerMessage": "Success",
  197 + "data": {
  198 + "ExecuteServiceResponse": {
  199 + "return": {
  200 + "ErrorMessage": "",
  201 + "ParameterList": {
  202 + "ParameterType": "",
199 203 "Parameter": [
200   - {
201   - "Name": "returnMessage",
202   - "Value": "Success"
  204 + {
  205 + "Name": "remainCounterMain",
  206 + "Value": 0
  207 + },
  208 + {
  209 + "Name": "remainCounterOntop",
  210 + "Value": 0
203 211 },
204   - {
205   - "Name": "orderNo",
206   - "Value": "R201600321324"
  212 + {
  213 + "Name": "maxCounterMain",
  214 + "Value": 1
207 215 },
208   - {
209   - "Name": "orderDate",
210   - "Value": "11/01/2016"
  216 + {
  217 + "Name": "maxCounterOntop",
  218 + "Value": 1
211 219 }
212   - ]
  220 + ],
  221 + "ParameterList": {
  222 + "ParameterType": "",
  223 + "Parameter": [
  224 + {
  225 + "Name": "paymentMode",
  226 + "Value": "Pre-paid"
  227 + },
  228 + {
  229 + "Name": "productPkg",
  230 + "Value": "Pre Voice Main"
  231 + },
  232 + {
  233 + "Name": "descEng",
  234 + "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."
  235 + },
  236 + {
  237 + "Name": "crmFlg",
  238 + "Value": "N"
  239 + },
  240 + {
  241 + "Name": "priceExclVat",
  242 + "Value": ""
  243 + },
  244 + {
  245 + "Name": "productClass",
  246 + "Value": "Main"
  247 + },
  248 + {
  249 + "Name": "integrationName",
  250 + "Value": "[BOS]โปรติดลม [05-17: 0.52B, 17-05: 1.06B] Inc.VAT"
  251 + },
  252 + {
  253 + "Name": "productCd",
  254 + "Value": "P13080053"
  255 + },
  256 + {
  257 + "Name": "shortNameEng",
  258 + "Value": "5AM-5PM 49st. Other 99st. Other Pro *777 in 30days"
  259 + },
  260 + {
  261 + "Name": "promotionName",
  262 + "Value": "[BOS]โปรติดลม [05-17: 0.52B, 17-05: 1.06B] Inc.VAT"
  263 + },
  264 + {
  265 + "Name": "startDt",
  266 + "Value": "27/11/2017 17:55:45"
  267 + },
  268 + {
  269 + "Name": "inStatementEng",
  270 + "Value": ""
  271 + },
  272 + {
  273 + "Name": "descThai",
  274 + "Value": "อัตราค่าโทรตี 5 ถึง 5 โมงเย็น นาทีละ 49 สต. นอกช่วงเวลา นาทีละ 99 สต. ทุกเครือข่าย SMS ข้อความละ 2 บาท MMS ข้อความละ 6 บาท Internet เมกะไบท์ละ 1.50 บาท\nอัตราค่าโทรและค่าบริการเสริมยังไม่รวมภาษีมูลค่าเพิ่ม"
  275 + },
  276 + {
  277 + "Name": "shortNameThai",
  278 + "Value": "5-17น.49สต/นาที นอกเวลา99สต/นาทีโปรอื่น*777ใน30วัน"
  279 + },
  280 + {
  281 + "Name": "productSeq",
  282 + "Value": 300000028391
  283 + },
  284 + {
  285 + "Name": "inStatementThai",
  286 + "Value": ""
  287 + },
  288 + {
  289 + "Name": "endDt",
  290 + "Value": "16/02/20361 00:00:00"
  291 + },
  292 + {
  293 + "Name": "bosId",
  294 + "Value": 150319
  295 + },
  296 + {
  297 + "Name": "nextBillCycle",
  298 + "Value": ""
  299 + },
  300 + {
  301 + "Name": "priceType",
  302 + "Value": "Usage"
  303 + },
  304 + {
  305 + "Name": "monthlyFee",
  306 + "Value": ""
  307 + },
  308 + {
  309 + "Name": "produuctGroup",
  310 + "Value": "Mass Promotion"
  311 + },
  312 + {
  313 + "Name": "bvPoint",
  314 + "Value": ""
  315 + },
  316 + {
  317 + "Name": "billCycle",
  318 + "Value": ""
  319 + },
  320 + {
  321 + "Name": "bvDescription",
  322 + "Value": ""
  323 + },
  324 + {
  325 + "Name": "deviceContractFlg",
  326 + "Value": "N"
  327 + },
  328 + {
  329 + "Name": "netFlexiFlg",
  330 + "Value": "Y"
  331 + },
  332 + {
  333 + "Name": "pro5gFlg",
  334 + "Value": "Y"
  335 + },
  336 + {
  337 + "Name": "prorateFlg",
  338 + "Value": "Y"
  339 + },
  340 + {
  341 + "Name": "phxProductId",
  342 + "Value": "O2005P13080053"
  343 + }
  344 + ]
  345 + }
  346 + }
213 347 }
214   - }
  348 + }
  349 + }
215 350 }
216   - }
  351 + } else if(req.body.ExecuteService.sffRequest.Event == 'evOMCreateNewRegistration') {
  352 + response = {
  353 + "resultCode": "20000",
  354 + "developerMessage": "Success",
  355 + "data": {
  356 + "ExecuteServiceResponse": {
  357 + "return": {
  358 + "ParameterList": {
  359 + "Parameter": [
  360 + {
  361 + "Name": "returnMessage",
  362 + "Value": "Error Order Creation: EB0183 : SIM Serial No. : 2014143597539 status can not register"
  363 + }
  364 + ]
  365 + }
  366 + }
  367 + }
  368 + }
  369 + }
  370 + } else {
  371 + response = {
  372 + "resultCode": "50000",
  373 + "developerMessage": "System error"
  374 + }
217 375 }
218 376  
219 377 res.status(200).send(response)
... ...
true.js
... ... @@ -137,6 +137,54 @@ module.exports.getAccountStatusHistoryList = async (req, res) => {
137 137 "status": "NONE"
138 138 },
139 139 "openDate": "2019-12-23T18:10:42.000+07:00"
  140 + },
  141 + {
  142 + "statusDescription": "Active",
  143 + "collectionStatus": {
  144 + "reasonDescription": "XXX",
  145 + "lastActivityDate": "2020-12-30T00:00:00.000+07:00",
  146 + "reasonCode": "ABC",
  147 + "status": "NONE"
  148 + },
  149 + "creditStatus": {
  150 + "reasonDescription": "BBB",
  151 + "lastActivityDate": "",
  152 + "reasonCode": "AA",
  153 + "status": "NONE"
  154 + },
  155 + "openDate": "2019-12-23T18:10:42.000+07:00"
  156 + },
  157 + {
  158 + "statusDescription": "Active",
  159 + "collectionStatus": {
  160 + "reasonDescription": "XXX",
  161 + "lastActivityDate": "2018-12-29T00:00:00.000+07:00",
  162 + "reasonCode": "ABC",
  163 + "status": "CAN"
  164 + },
  165 + "creditStatus": {
  166 + "reasonDescription": "BBB",
  167 + "lastActivityDate": "",
  168 + "reasonCode": "AA",
  169 + "status": ""
  170 + },
  171 + "openDate": "2019-12-23T18:10:42.000+07:00"
  172 + },
  173 + {
  174 + "statusDescription": "Active",
  175 + "collectionStatus": {
  176 + "reasonDescription": "XXX",
  177 + "lastActivityDate": "2018-12-30T00:00:00.000+07:00",
  178 + "reasonCode": "ABC",
  179 + "status": "NONE"
  180 + },
  181 + "creditStatus": {
  182 + "reasonDescription": "BBB",
  183 + "lastActivityDate": "",
  184 + "reasonCode": "AA",
  185 + "status": "NONE"
  186 + },
  187 + "openDate": "2019-12-23T18:10:42.000+07:00"
140 188 }
141 189 ]
142 190 },
... ... @@ -148,4 +196,348 @@ module.exports.getAccountStatusHistoryList = async (req, res) => {
148 196 }
149 197  
150 198 res.status(200).send(response)
  199 +}
  200 +
  201 +module.exports.getContractHistoryList = async (req, res) => {
  202 + console.log('===== GET getContractHistoryList =====')
  203 + console.log('url', req.originalUrl);
  204 + console.log('headers', req.headers);
  205 + console.log('query', req.query);
  206 + console.log('params', req.params);
  207 + console.log('body', JSON.stringify(req.body));
  208 +
  209 + let response = {
  210 + "getContractHistoryListResponse": {
  211 + "return": {
  212 + "uuid": "a51aae25-d40e-4788-85f9-97bbd01f9b45",
  213 + "errorCode": "OSBbllngA00001",
  214 + "message": "Success.",
  215 + "totalSize": "7",
  216 + "contractList": {
  217 + "contractInfoArray": [{
  218 + "contractStartDate": "2020-11-18T00:00:00.000+07:00",
  219 + "fee": "3000",
  220 + "contractNumber": "0972105656",
  221 + "remark": "TEST TDS",
  222 + "generateChargeYesNo": "N",
  223 + "terminationDate": "2021-11-18T00:00:00.000+07:00",
  224 + "offerServiceLevel": "C",
  225 + "contractExpirationDate": "2021-11-18T00:00:00.000+07:00",
  226 + "offerInstanceId": "1674286",
  227 + "offerCode": "14060327",
  228 + "proposition": {
  229 + "code": "RMVC00000001586",
  230 + "description": "SH_Campus_iPad Air 3 64GB 256GB_d3000_a1605_c12"
  231 + },
  232 + "contractGroupCode": null,
  233 + "contractGroupDescriptionThai": null,
  234 + "contractGroupDescriptionEng": null,
  235 + "term": "12",
  236 + "effectiveDate": "2020-11-18T18:24:30.000+07:00",
  237 + "agreementSocSequence": "1674286",
  238 + "parentSocSequence": null
  239 + }, {
  240 + "contractStartDate": "2020-10-29T00:00:00.000+07:00",
  241 + "fee": "7000",
  242 + "contractNumber": "0972105656",
  243 + "remark": "QA",
  244 + "generateChargeYesNo": "N",
  245 + "terminationDate": "2022-01-29T00:00:00.000+07:00",
  246 + "offerServiceLevel": "C",
  247 + "contractExpirationDate": "2022-01-29T00:00:00.000+07:00",
  248 + "offerInstanceId": "1659085",
  249 + "offerCode": "16932729",
  250 + "proposition": {
  251 + "code": "RMV000000012125",
  252 + "description": "SH_S_CP Emp_Intb_disc7000_NoAdv_C15"
  253 + },
  254 + "contractGroupCode": "CT_DEV",
  255 + "contractGroupDescriptionThai": "/",
  256 + "contractGroupDescriptionEng": "Special Campaign for Device Bundling Handset Discount/Others device",
  257 + "term": "15",
  258 + "effectiveDate": "2020-10-29T18:06:22.000+07:00",
  259 + "agreementSocSequence": "1659085",
  260 + "parentSocSequence": null
  261 + }, {
  262 + "contractStartDate": "2020-10-28T00:00:00.000+07:00",
  263 + "fee": "10000",
  264 + "contractNumber": "0972105656",
  265 + "remark": "QA",
  266 + "generateChargeYesNo": "N",
  267 + "terminationDate": "2021-10-28T00:00:00.000+07:00",
  268 + "offerServiceLevel": "C",
  269 + "contractExpirationDate": "2021-10-28T00:00:00.000+07:00",
  270 + "offerInstanceId": "1658437",
  271 + "offerCode": "15041217",
  272 + "proposition": {
  273 + "code": "CVG000000000069",
  274 + "description": "NS_Gold_TSC_Hole in One_c12"
  275 + },
  276 + "contractGroupCode": "CT_CVG",
  277 + "contractGroupDescriptionThai": "/",
  278 + "contractGroupDescriptionEng": "Special Campaign for TrueMove H Postpay service with True Online/True Visions",
  279 + "term": "12",
  280 + "effectiveDate": "2020-10-29T12:54:42.000+07:00",
  281 + "agreementSocSequence": "1658437",
  282 + "parentSocSequence": null
  283 + }, {
  284 + "contractStartDate": "2020-08-06T00:00:00.000+07:00",
  285 + "fee": "100",
  286 + "contractNumber": "-",
  287 + "remark": "-",
  288 + "generateChargeYesNo": "N",
  289 + "terminationDate": "2021-02-06T10:58:42.000+07:00",
  290 + "offerServiceLevel": "C",
  291 + "contractExpirationDate": "2021-02-06T10:58:42.000+07:00",
  292 + "offerInstanceId": "1598847",
  293 + "offerCode": "93346",
  294 + "proposition": {
  295 + "code": "BRM000000000013",
  296 + "description": "OTS Business MNP O2R_ SIM Only"
  297 + },
  298 + "contractGroupCode": "CT_SIM",
  299 + "contractGroupDescriptionThai": " ",
  300 + "contractGroupDescriptionEng": "Special Campaign for TrueMove H Postpay New Subscription",
  301 + "term": "6",
  302 + "effectiveDate": "2020-08-06T10:58:53.000+07:00",
  303 + "agreementSocSequence": "1598847",
  304 + "parentSocSequence": null
  305 + }, {
  306 + "contractStartDate": "2020-10-29T00:00:00.000+07:00",
  307 + "fee": "7000",
  308 + "contractNumber": "0972105656",
  309 + "remark": "QA",
  310 + "generateChargeYesNo": "N",
  311 + "terminationDate": "2020-10-29T18:03:16.000+07:00",
  312 + "offerServiceLevel": "C",
  313 + "contractExpirationDate": "2022-01-29T00:00:00.000+07:00",
  314 + "offerInstanceId": "1659018",
  315 + "offerCode": "16932729",
  316 + "proposition": {
  317 + "code": "RMV000000012125",
  318 + "description": "SH_S_CP Emp_Intb_disc7000_NoAdv_C15"
  319 + },
  320 + "contractGroupCode": "CT_DEV",
  321 + "contractGroupDescriptionThai": "/",
  322 + "contractGroupDescriptionEng": "Special Campaign for Device Bundling Handset Discount/Others device",
  323 + "term": "15",
  324 + "effectiveDate": "2020-10-29T17:42:54.000+07:00",
  325 + "agreementSocSequence": "1659018",
  326 + "parentSocSequence": null
  327 + }, {
  328 + "contractStartDate": "2020-10-28T00:00:00.000+07:00",
  329 + "fee": "10000",
  330 + "contractNumber": "0972105656",
  331 + "remark": "QA",
  332 + "generateChargeYesNo": "N",
  333 + "terminationDate": "2020-10-29T12:52:59.000+07:00",
  334 + "offerServiceLevel": "C",
  335 + "contractExpirationDate": "2021-10-28T00:00:00.000+07:00",
  336 + "offerInstanceId": "1658386",
  337 + "offerCode": "15041217",
  338 + "proposition": {
  339 + "code": "CVG000000000069",
  340 + "description": "NS_Gold_TSC_Hole in One_c12"
  341 + },
  342 + "contractGroupCode": "CT_CVG",
  343 + "contractGroupDescriptionThai": "/",
  344 + "contractGroupDescriptionEng": "Special Campaign for TrueMove H Postpay service with True Online/True Visions",
  345 + "term": "12",
  346 + "effectiveDate": "2020-10-29T11:24:13.000+07:00",
  347 + "agreementSocSequence": "1658386",
  348 + "parentSocSequence": null
  349 + }, {
  350 + "contractStartDate": "2020-10-28T00:00:00.000+07:00",
  351 + "fee": "10000",
  352 + "contractNumber": "0972105656",
  353 + "remark": "QA",
  354 + "generateChargeYesNo": "N",
  355 + "terminationDate": "2020-10-29T11:22:34.000+07:00",
  356 + "offerServiceLevel": "C",
  357 + "contractExpirationDate": "2021-10-28T00:00:00.000+07:00",
  358 + "offerInstanceId": "1657365",
  359 + "offerCode": "15041217",
  360 + "proposition": {
  361 + "code": "CVG000000000069",
  362 + "description": "NS_Gold_TSC_Hole in One_c12"
  363 + },
  364 + "contractGroupCode": "CT_CVG",
  365 + "contractGroupDescriptionThai": "/",
  366 + "contractGroupDescriptionEng": "Special Campaign for TrueMove H Postpay service with True Online/True Visions",
  367 + "term": "12",
  368 + "effectiveDate": "2020-10-28T18:00:31.000+07:00",
  369 + "agreementSocSequence": "1657365",
  370 + "parentSocSequence": null
  371 + }
  372 + ],
  373 + "size": "7"
  374 + },
  375 + "calculatedPageSize": "1500"
  376 + }
  377 + }
  378 + }
  379 +
  380 + res.status(200).send(response)
  381 +}
  382 +
  383 +module.exports.getProductInfo = async (req, res) => {
  384 + console.log('===== GET getProductInfo =====')
  385 + console.log('url', req.originalUrl);
  386 + console.log('headers', req.headers);
  387 + console.log('query', req.query);
  388 + console.log('params', req.params);
  389 + console.log('body', JSON.stringify(req.body));
  390 +
  391 + let response = {
  392 + "getProductInfoResponse": {
  393 + "return": {
  394 + "subscriber": {
  395 + "trueLifeId": "",
  396 + "chNodeId": "98248293",
  397 + "primResourceType": "C",
  398 + "barringByRequestIndicator": "",
  399 + "splitPeriod": "NONE",
  400 + "rmvMigration": {
  401 + "accountId": "",
  402 + "activationDate": "",
  403 + "serviceLevel": ""
  404 + },
  405 + "tmvMigration": {
  406 + "accountId": "",
  407 + "activationDate": "",
  408 + "serviceLevel": ""
  409 + },
  410 + "exernalId": "0954678627",
  411 + "subscriberPassword": "",
  412 + "primResourceValue": "0954678627_getProductInfo",
  413 + "barringByRequestActivityDate": "",
  414 + "contact": {
  415 + "preferredContactNo": "",
  416 + "officePhone": "",
  417 + "homePhone": "0917152244",
  418 + "language": "TH",
  419 + "privatePhone": "",
  420 + "fax": "",
  421 + "email": "-"
  422 + },
  423 + "customerId": "30744995",
  424 + "subscriberTypeDescription": "TMH-Real Move",
  425 + "barringByRequestReasonDescription": "",
  426 + "proof": {
  427 + "proofDate": "2018-02-24T00:00:00.000+07:00",
  428 + "proofDocument": "I",
  429 + "dealerApp": ""
  430 + },
  431 + "smsIndicator": "Y",
  432 + "createDate": "2018-02-25T00:00:00.000+07:00",
  433 + "expirationDate": "",
  434 + "porting": {
  435 + "donorZone": {
  436 + "code": "",
  437 + "description": ""
  438 + },
  439 + "portIndicator": {
  440 + "code": ""
  441 + },
  442 + "recipientZone": {
  443 + "code": "",
  444 + "description": ""
  445 + },
  446 + "donorOperator": {
  447 + "code": "",
  448 + "description": ""
  449 + },
  450 + "recipientOperator": {
  451 + "code": "",
  452 + "description": ""
  453 + }
  454 + },
  455 + "address": {
  456 + "country": "",
  457 + "zipCode": "10240",
  458 + "roomNo": "R195",
  459 + "city": "กรุงเทพมหานคร",
  460 + "addressType": "I",
  461 + "moo": "-",
  462 + "soi": "-",
  463 + "building": "DCONDO RAMKHAMHAENG TOWER A",
  464 + "street": "ถ.รามคำแหง",
  465 + "district": "บางกะปิ",
  466 + "addressLine1": "15/195 * - * - *",
  467 + "houseNo": "15/195",
  468 + "addressLine2": "* DCONDO RAMKHAMHAENG TOWER A * F8 * R195 * ถ.รามคำแหง",
  469 + "addressLine3": "* หัวหมาก * บางกะปิ",
  470 + "addressLine4": "กรุงเทพมหานคร 10240",
  471 + "floor": "F8",
  472 + "subDistrict": "หัวหมาก"
  473 + },
  474 + "relatedSubscriberId": "",
  475 + "multiSIMIndicator": "",
  476 + "subscriberType": "RM",
  477 + "barringByRequestReasonCode": "",
  478 + "imsiAliasName": "",
  479 + "subscriberId": "75390563",
  480 + "creditStatus": {
  481 + "reasonDescription": "",
  482 + "lastActivityDate": "",
  483 + "reasonCode": "",
  484 + "status": "NONE"
  485 + },
  486 + "convergenceCode": "",
  487 + "installationType": "",
  488 + "collectionStatus": {
  489 + "reasonDescription": "",
  490 + "lastActivityDate": "",
  491 + "reasonCode": "",
  492 + "status": "NONE"
  493 + },
  494 + "creditLimitAtSubStatus": {
  495 + "reasonDescription": "",
  496 + "lastActivityDate": "",
  497 + "reasonCode": "",
  498 + "status": "NONE"
  499 + },
  500 + "dealer": {
  501 + "code": "80000131",
  502 + "description": "บริษัท ทรู ดิสทริบิวชั่น แอนด์ เซลส์ จำกัด (สาขาอาคารธญาณ (เทเลออเดอริ่ง))"
  503 + },
  504 + "name": {
  505 + "branchCode": "",
  506 + "nameType": "I",
  507 + "firstName": "แก้วทับทิม",
  508 + "lastName": "ป๊อกแสวง",
  509 + "organizationName": "",
  510 + "branchName": "",
  511 + "middleName": "",
  512 + "storeId": "",
  513 + "tilte": "นางสาว"
  514 + },
  515 + "rfMigration": {
  516 + "accountId": "",
  517 + "activationDate": "",
  518 + "serviceLevel": ""
  519 + },
  520 + "multiSIMLevel": "",
  521 + "smsLanguage": "TH",
  522 + "effectiveDate": "2018-02-25T00:00:00.000+07:00",
  523 + "startDate": "2018-02-25T00:00:00.000+07:00",
  524 + "status": {
  525 + "statusDate": "2018-02-25T00:00:00.000+07:00",
  526 + "statusLastActivity": "14",
  527 + "statusDescription": "Active",
  528 + "statusReasonDescription": "Add Additional SOC for Migrate Customer from Ensemble to CCBS for Activate Subscriber by RD",
  529 + "statusReasonCode": "RD03",
  530 + "lastActivityPathId": "78",
  531 + "statusCode": "A"
  532 + }
  533 + },
  534 + "errorCode": "OSBbllngA00001",
  535 + "message": "Success.",
  536 + "uuid": "c6a17fbb-a014-4f76-b65f-0eb8fb809077"
  537 + }
  538 + }
  539 + }
  540 +
  541 +
  542 + res.status(200).send(response)
151 543 }
152 544 \ No newline at end of file
... ...
vcom.js
... ... @@ -6,13 +6,16 @@ module.exports.userRegisterAndRegisterDevice = async (req, res) => {
6 6 console.log('params', req.params);
7 7 console.log('body', JSON.stringify(req.body));
8 8  
  9 + //This email address has been registered.
  10 + //Please check email you have registered and click validation link attached in the email.
  11 +
9 12 let response, response1, responseErr
10 13 if(req.body.action == 'registerAisUser') {
11 14 response = {
12   - "message": "Please check email you have registered and click validation link attached in the email.",
  15 + "message": "This email address has been registered.",
13 16 "code": "1",
14 17 "data": {
15   - "userId": 10002912
  18 + "userId1": 10002912
16 19 }
17 20 }
18 21  
... ...