feat: sms receipt route
This commit is contained in:
parent
938ca64131
commit
f502c3a57a
2 changed files with 7 additions and 0 deletions
|
|
@ -116,11 +116,17 @@ function updateTxCustomerPhoto (req, res, next) {
|
||||||
.catch(next)
|
.catch(next)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function sendSmsReceipt (req, res, next) {
|
||||||
|
console.log(req.body)
|
||||||
|
return respond(req, res, {})
|
||||||
|
}
|
||||||
|
|
||||||
router.patch('/:id', updateCustomer)
|
router.patch('/:id', updateCustomer)
|
||||||
router.patch('/:id/sanctions', triggerSanctions)
|
router.patch('/:id/sanctions', triggerSanctions)
|
||||||
router.patch('/:id/block', triggerBlock)
|
router.patch('/:id/block', triggerBlock)
|
||||||
router.patch('/:id/suspend', triggerSuspend)
|
router.patch('/:id/suspend', triggerSuspend)
|
||||||
router.patch('/:id/photos/idcarddata', updateIdCardData)
|
router.patch('/:id/photos/idcarddata', updateIdCardData)
|
||||||
router.patch('/:id/:txId/photos/customerphoto', updateTxCustomerPhoto)
|
router.patch('/:id/:txId/photos/customerphoto', updateTxCustomerPhoto)
|
||||||
|
router.patch('/:id/smsreceipt', sendSmsReceipt)
|
||||||
|
|
||||||
module.exports = router
|
module.exports = router
|
||||||
|
|
|
||||||
|
|
@ -73,6 +73,7 @@ function poll (req, res, next) {
|
||||||
locale,
|
locale,
|
||||||
version,
|
version,
|
||||||
receiptPrintingActive: receipt.active,
|
receiptPrintingActive: receipt.active,
|
||||||
|
smsReceiptActive: receipt.sms,
|
||||||
cassettes,
|
cassettes,
|
||||||
twoWayMode: cashOutConfig.active,
|
twoWayMode: cashOutConfig.active,
|
||||||
zeroConfLimits,
|
zeroConfLimits,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue