feat(club-003): club POS integration: identify member and register cashback from sales

This commit is contained in:
Deploy
2026-08-26 20:16:13 +02:00
parent c263b44355
commit 66290a08ae
18 changed files with 553 additions and 99 deletions

View File

@@ -59,6 +59,8 @@ export interface PosSaleInput {
customerId?: string;
/** Optional label for pending sales without customer */
posLabel?: string;
/** Club member ID — if provided and sale completes, cashback is accumulated to the member's ledger. */
clubMemberId?: string;
}
export interface PosReceiptItem {
@@ -128,6 +130,10 @@ export interface PosSaleResult {
payments: PosPaymentResult[];
receipt: PosReceipt;
createdAt: Date;
/** Cashback accumulated to the Club member's ledger (0 if no clubMemberId or sale is PENDING). */
clubEarnedCents: number;
/** Club member code when a clubMemberId was provided. */
clubMemberCode?: string;
}
export interface PosPaymentResult extends PosReceiptPayment {