feat: add the schedule and escrow functionalities - #87
Merged
Conversation
…on service - Implemented batch transfer routes in transaction.routes.ts for creating and retrieving batch transfers. - Added a new service (scheduledTransferExecutionService.ts) to handle scheduled transfers, including placing holds, executing transfers, and managing recurrence. - Enhanced model types to support scheduled transfers and batch transfers, including attributes for tracking status and failure reasons. - Introduced notification types and helpers for scheduled transfers and batch transfers, ensuring users are informed of their transfer statuses. - Created utility functions for validating transfer funds and calculating available wallet balances, ensuring robust fund management. - Added recurrence handling utilities to manage scheduled transfers effectively, including validation and next occurrence computation.
…d dispute features - Added escrowController to handle escrow operations including creating, releasing, refunding, and disputing escrows. - Created Escrow model and associated database migrations for the Escrows table and related enums. - Implemented escrowService for managing escrow funds and transactions. - Added routes for escrow operations and integrated them into the main routes index. - Introduced auto-release job for escrows with a scheduled task to release funds automatically. - Updated chatMessage model to include escrow message type. - Enhanced transaction model to link transactions with escrows.
…ted routes and database migrations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.