feat(club-003): club POS integration: identify member and register cashback from sales
This commit is contained in:
@@ -1433,6 +1433,8 @@ export async function registerPosRoutes(app: FastifyInstance, deps: PosRouteDeps
|
||||
payments: { type: 'array', minItems: 0, items: { type: 'object' } },
|
||||
customerId: { type: 'string', format: 'uuid' },
|
||||
posLabel: { type: 'string', maxLength: 100 },
|
||||
/** Club member UUID — if provided and sale completes, cashback is accumulated. */
|
||||
clubMemberId: { type: 'string', format: 'uuid' },
|
||||
},
|
||||
},
|
||||
response: {
|
||||
@@ -1485,6 +1487,7 @@ export async function registerPosRoutes(app: FastifyInstance, deps: PosRouteDeps
|
||||
payments: z.array(payment).min(0),
|
||||
customerId: z.string().uuid().optional(),
|
||||
posLabel: z.string().max(100).optional(),
|
||||
clubMemberId: z.string().uuid().optional(),
|
||||
}),
|
||||
request.body ?? {},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user