Receipt Store
Component Detail
Data Layer
low complexity
mobile
0
Dependencies
0
Dependents
1
Entities
0
Integrations
Description
Local data layer managing receipt metadata and upload state on the device. Caches receipt references linked to their parent expense records and tracks upload status for each attachment. Supports offline queueing so receipts captured without connectivity are uploaded when the network becomes available.
receipt-store
Responsibilities
- Store receipt metadata and references locally
- Track upload status per receipt (pending, uploading, complete, failed)
- Queue receipts for upload when offline
- Link receipts to parent expense records
Interfaces
saveReceiptMetadata(receipt)
getReceiptsForExpense(expenseId)
updateUploadStatus(receiptId, status)
getPendingUploads()
deleteReceipt(receiptId)
getReceiptById(receiptId)
clearCompletedUploads()