Merge pull request #835 from josepfo/feat/move-paper-wallet-only-to-admin

feat: move paper wallet only to admin
This commit is contained in:
Rafael Taranto 2022-02-14 16:08:17 +00:00 committed by GitHub
commit 079905efef
4 changed files with 114 additions and 4 deletions

View file

@ -81,6 +81,7 @@ function poll (req, res, next) {
const cashOutConfig = configManager.getCashOut(deviceId, settings.config)
const receipt = configManager.getReceipt(settings.config)
const terms = configManager.getTermsConditions(settings.config)
const enablePaperWalletOnly = configManager.getCompliance(settings.config).enablePaperWalletOnly
state.pids[operatorId] = { [deviceId]: { pid, ts: Date.now() } }
@ -108,6 +109,7 @@ function poll (req, res, next) {
version,
receiptPrintingActive: receipt.active,
smsReceiptActive: receipt.sms,
enablePaperWalletOnly,
cassettes,
twoWayMode: cashOutConfig.active,
zeroConfLimits,