feat(F-203): completed feature

This commit is contained in:
chattie
2026-08-23 23:21:30 +02:00
parent 725a02527a
commit cd2a8ab54d
2 changed files with 148 additions and 146 deletions

View File

@@ -372,6 +372,7 @@ export async function registerPosRoutes(app: FastifyInstance, deps: PosRouteDeps
properties: {
selfpayMode: { type: 'boolean' },
closeSessionRequiresPin: { type: 'boolean' },
closeSessionPin: { type: 'string', maxLength: 6 },
},
additionalProperties: true,
},
@@ -391,6 +392,7 @@ export async function registerPosRoutes(app: FastifyInstance, deps: PosRouteDeps
settings: z.object({
selfpayMode: z.boolean().optional(),
closeSessionRequiresPin: z.boolean().optional(),
closeSessionPin: z.string().max(6).optional(),
}).passthrough().optional(),
}),
request.body ?? {},