Commit e84546ae76bc0d132c2a54bad8f1a54554a687f0
1 parent
de8f7e34
Exists in
develop
update mockup
Showing
2 changed files
with
109 additions
and
0 deletions
Show diff stats
app.js
| @@ -398,6 +398,7 @@ app.post('/MGOfferInfo/NativeOfferInfo/getCurrentSplitChargeInfo', require('./in | @@ -398,6 +398,7 @@ app.post('/MGOfferInfo/NativeOfferInfo/getCurrentSplitChargeInfo', require('./in | ||
| 398 | app.post('/v1/get_BillImage/', require('./int').getBillImage); | 398 | app.post('/v1/get_BillImage/', require('./int').getBillImage); |
| 399 | 399 | ||
| 400 | app.get('/MGCCBSInvoiceInfo/MGCCBSInvoiceInfo/getAllCCBSInvoiceList/:ban/:pageSize/:pageNo', require('./intx').getAllCCBSInvoiceList); | 400 | app.get('/MGCCBSInvoiceInfo/MGCCBSInvoiceInfo/getAllCCBSInvoiceList/:ban/:pageSize/:pageNo', require('./intx').getAllCCBSInvoiceList); |
| 401 | +app.get('/FinancialTransaction/MGPaymentInfo/getPaymentList/:ban/:pageSize/:pageNo', require('./intx').getPaymentList); | ||
| 401 | 402 | ||
| 402 | app.post('/SBMWSREALCCP3G15/DoServiceFromXML', express.text({type:"*/*"}), require('./sbm').getCheckBalance_SBMWSREALCCP); | 403 | app.post('/SBMWSREALCCP3G15/DoServiceFromXML', express.text({type:"*/*"}), require('./sbm').getCheckBalance_SBMWSREALCCP); |
| 403 | app.post('/SBMWSREAL3G15/DoServiceFromXML', express.text({type:"*/*"}), require('./sbm').getCheckBalance_SBMWSREAL); | 404 | app.post('/SBMWSREAL3G15/DoServiceFromXML', express.text({type:"*/*"}), require('./sbm').getCheckBalance_SBMWSREAL); |
intx.js
| @@ -1733,4 +1733,112 @@ module.exports.getAllCCBSInvoiceList = async (req, res) => { | @@ -1733,4 +1733,112 @@ module.exports.getAllCCBSInvoiceList = async (req, res) => { | ||
| 1733 | } | 1733 | } |
| 1734 | 1734 | ||
| 1735 | res.status(200).send(response) | 1735 | res.status(200).send(response) |
| 1736 | +} | ||
| 1737 | + | ||
| 1738 | +module.exports.getPaymentList = async (req, res) => { | ||
| 1739 | + console.log('===== GET getPaymentList =====') | ||
| 1740 | + console.log('url', req.originalUrl); | ||
| 1741 | + console.log('headers', req.headers); | ||
| 1742 | + console.log('query', req.query); | ||
| 1743 | + console.log('params', req.params); | ||
| 1744 | + console.log('body', req.body); | ||
| 1745 | + | ||
| 1746 | + let responseErr = { | ||
| 1747 | + "getPaymentListResponse": { | ||
| 1748 | + "return": { | ||
| 1749 | + "uuid": "ed41f948-565c-4900-a94d-ee63100e2fa4", | ||
| 1750 | + "errorCode": "OSBbllngA10001", | ||
| 1751 | + "message": "error." | ||
| 1752 | + } | ||
| 1753 | + } | ||
| 1754 | + } | ||
| 1755 | + | ||
| 1756 | + let response = { | ||
| 1757 | + "getPaymentListResponse": { | ||
| 1758 | + "return": { | ||
| 1759 | + "uuid": "d90dc28a-4117-492e-9424-e238c51bf0b2", | ||
| 1760 | + "errorCode": "OSBbllngA00001", | ||
| 1761 | + "message": "Success.", | ||
| 1762 | + "paymentList": { | ||
| 1763 | + "paymentInfoArray": [ | ||
| 1764 | + { | ||
| 1765 | + "accountTimestamp": "2021042911444017738", | ||
| 1766 | + "activityIndicator": "P", | ||
| 1767 | + "activityType": "", | ||
| 1768 | + "actualAmt": "908.79", | ||
| 1769 | + "authorizationId": "", | ||
| 1770 | + "bankAccountNumber": "", | ||
| 1771 | + "bankCode": "", | ||
| 1772 | + "be": "0", | ||
| 1773 | + "billSeqNo": "11361", | ||
| 1774 | + "checkNo": "", | ||
| 1775 | + "companyCode": "TI", | ||
| 1776 | + "convInvNumber": "", | ||
| 1777 | + "creditAllocationList": { | ||
| 1778 | + "creditAllocationInfoArray": [ | ||
| 1779 | + { | ||
| 1780 | + "invoiceId": "615220", | ||
| 1781 | + "invoiceNo": "070420191000263712" | ||
| 1782 | + } | ||
| 1783 | + ], | ||
| 1784 | + "size": "1" | ||
| 1785 | + }, | ||
| 1786 | + "creditCardExpDate": "", | ||
| 1787 | + "creditCardNumber": "", | ||
| 1788 | + "creditCardType": "", | ||
| 1789 | + "creditId": "304365", | ||
| 1790 | + "currency": "THB", | ||
| 1791 | + "defaultWhtAmount": "", | ||
| 1792 | + "defaultWhtRate": "", | ||
| 1793 | + "designation": { | ||
| 1794 | + "code": "", | ||
| 1795 | + "description": "" | ||
| 1796 | + }, | ||
| 1797 | + "directDebitVoucher": "", | ||
| 1798 | + "lastActStatusDate": "2021-04-29T00:00:00.000+07:00", | ||
| 1799 | + "memoText": "", | ||
| 1800 | + "ocWhtAmount": "", | ||
| 1801 | + "ocWhtRate": "", | ||
| 1802 | + "operatorId": "107", | ||
| 1803 | + "originalAccount": "200078606", | ||
| 1804 | + "originalAmount": "908.79", | ||
| 1805 | + "originalConvertedAmount": "908.79", | ||
| 1806 | + "partitionId": "6", | ||
| 1807 | + "paymentId": "183851", | ||
| 1808 | + "paymentMethod": "CA", | ||
| 1809 | + "paymentSourceDesc": "True Money - Post Office", | ||
| 1810 | + "paymentSourceId": "TPOSTOB", | ||
| 1811 | + "paymentSourceRTIndicator": "E", | ||
| 1812 | + "paymentSourceType": "P", | ||
| 1813 | + "paymentSubMethod": "CA", | ||
| 1814 | + "periodKey": "2", | ||
| 1815 | + "postingDate": "2019-10-04T00:00:00.000+07:00", | ||
| 1816 | + "printRtIndicator": "E", | ||
| 1817 | + "rcWhtAmount": "", | ||
| 1818 | + "rcWhtRate": "", | ||
| 1819 | + "rctExtractInd": "", | ||
| 1820 | + "reasonCode": "", | ||
| 1821 | + "receiptTaxId": "TITPOSTOB27092019000000001", | ||
| 1822 | + "reversalTransId": "", | ||
| 1823 | + "transactionId": "1504063", | ||
| 1824 | + "ucWhtAmount": "", | ||
| 1825 | + "ucWhtRate": "", | ||
| 1826 | + "userId": "190927307564", | ||
| 1827 | + "valueDate": "2019-09-27T00:00:00.000+07:00", | ||
| 1828 | + "vatAmount": "59.45", | ||
| 1829 | + "whtAmount": "0.00", | ||
| 1830 | + "whtRate": "0.00", | ||
| 1831 | + "noneVatReceiptTaxId": "", | ||
| 1832 | + "noneVatAmount": "0.00" | ||
| 1833 | + } | ||
| 1834 | + ], | ||
| 1835 | + "size": "1" | ||
| 1836 | + }, | ||
| 1837 | + "totalSize": "1", | ||
| 1838 | + "calculatedPageSize": "24" | ||
| 1839 | + } | ||
| 1840 | + } | ||
| 1841 | + } | ||
| 1842 | + | ||
| 1843 | + res.status(200).send(response) | ||
| 1736 | } | 1844 | } |
| 1737 | \ No newline at end of file | 1845 | \ No newline at end of file |