The Prepaid Wallet Engine
TiffinManager operates on an upfront prepaid wallet system.
Billing Mechanism
- Customers fund their prepaid wallet via online Razorpay gateway or cash/UPI offline deposits.
- At the category cutoff time (
delivery_start_time - cutoff_minutes), the system validates:customer.wallet_balance >= customer.min_wallet_balance. - If sufficient, an order record is created, and the plan's daily rate is debited from the customer's wallet automatically.
- An immutable
WalletTransactionrecord is logged with timestamp, amount, transaction type (credit/debit), and updated closing balance.