From f502c3a57aca4b1f0f1f07aee91996f39ff2ea2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Oliveira?= Date: Tue, 10 Aug 2021 01:46:56 +0100 Subject: [PATCH] feat: sms receipt route --- lib/routes/customerRoutes.js | 6 ++++++ lib/routes/pollingRoutes.js | 1 + 2 files changed, 7 insertions(+) diff --git a/lib/routes/customerRoutes.js b/lib/routes/customerRoutes.js index 714a29cd..41acb14e 100644 --- a/lib/routes/customerRoutes.js +++ b/lib/routes/customerRoutes.js @@ -116,11 +116,17 @@ function updateTxCustomerPhoto (req, res, next) { .catch(next) } +function sendSmsReceipt (req, res, next) { + console.log(req.body) + return respond(req, res, {}) +} + router.patch('/:id', updateCustomer) router.patch('/:id/sanctions', triggerSanctions) router.patch('/:id/block', triggerBlock) router.patch('/:id/suspend', triggerSuspend) router.patch('/:id/photos/idcarddata', updateIdCardData) router.patch('/:id/:txId/photos/customerphoto', updateTxCustomerPhoto) +router.patch('/:id/smsreceipt', sendSmsReceipt) module.exports = router diff --git a/lib/routes/pollingRoutes.js b/lib/routes/pollingRoutes.js index cd64f6b5..af732e69 100644 --- a/lib/routes/pollingRoutes.js +++ b/lib/routes/pollingRoutes.js @@ -73,6 +73,7 @@ function poll (req, res, next) { locale, version, receiptPrintingActive: receipt.active, + smsReceiptActive: receipt.sms, cassettes, twoWayMode: cashOutConfig.active, zeroConfLimits,