unlock
unlock copied to clipboard
Bulk export receipts
Currently, receipts have to be downloaded one by one. This is a bit cumbersome for lock managers. Let's add the ability to download all receipts as an async job. A background job should be triggered when the user clicks the button to download all receipts. the background job will generate every single receipt as a PDF and combine them in a large zip file.
Once completed, the user should be able to download the file.
Since the export can take a while, we should probably create a specific model in the database that will keep track of all the "exports". The table will keep track of the status of the job (pending, completed). The Settings UI should list any "recent" export (last 30 days) and allow users to download the ones that are completed.
I'm interested in this bounty
Thanks @0xRowdy ! Please feel free to ask any question that arises here or on Discord!
The backend was done. There is an API endpoint if you look into the openapi spec. The only change needed is to create a button which makes a request to that endpoint on the frontend.
The backend was done. There is an API endpoint if you look into the openapi spec. The only change needed is to create a button which makes a request to that endpoint on the frontend.
Great to hear. Thanks for the update.
The backend was done. There is an API endpoint if you look into the openapi spec. The only change needed is to create a button which makes a request to that endpoint on the frontend.
@searchableguy Can you confirm this is the correct API for this issue? https://docs.unlock-protocol.com/api/locksmith/get-receipts
Yes @0xRowdy
@0xRowdy still working on this? 👀
@iMac7 It's yours if you want it!
yup!
0x88751a1a1fCC8ae52a9eE596e9B6B5b26409e562