Skip to content

feat: add settlement Controller Settlement Management APIs#112

Merged
Xaxxoo merged 2 commits intosongifi:mainfrom
Olowodarey:Management
Jan 31, 2026
Merged

feat: add settlement Controller Settlement Management APIs#112
Xaxxoo merged 2 commits intosongifi:mainfrom
Olowodarey:Management

Conversation

@Olowodarey
Copy link
Contributor

This PR implements the SettlementController and related services to manage and track fiat settlements to merchants, addressing issue #34.

Changes

  • Settlement Module:
    • Implemented SettlementController with endpoints:
      • GET /api/v1/settlements: List settlements with filtering.
      • GET /api/v1/settlements/:id: Get settlement details.
      • GET /api/v1/settlements/pending: Get pending settlements.
      • GET /api/v1/settlements/statistics: Get settlement statistics.
      • GET /api/v1/settlements/:id/receipt: Generate settlement receipt.
      • POST /api/v1/settlements/batch: Manual batch settlement.
      • GET /api/v1/settlements/schedule: Get settlement schedule.
      • PUT /api/v1/settlements/preferences: Update settlement preferences.
      • GET /api/v1/settlements/history: Get settlement history.
    • Updated SettlementService with business logic for all endpoints.
    • Added findByIds method to SettlementRepository for batch processing.
    • Implemented DTOs: SettlementGenericFilterDto, SettlementPreferencesDto, BatchSettlementDto, SettlementResponseDto.
  • Tests:
    • Added test/settlement.e2e-spec.ts for integration testing.
  • Dependencies:
    • Downgraded uuid to v9 to resolve Jest ESM compatibility issues.
  • Configuration:
    • Updated .env with CHAIN_ID and JWT_SECRET for testing purposes.

Closes #34

@Olowodarey Olowodarey changed the title feat: ettlement Controller - Settlement Management APIs feat: add settlement Controller Settlement Management APIs Jan 30, 2026
@Xaxxoo Xaxxoo merged commit 1971357 into songifi:main Jan 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Settlement Controller - Settlement Management APIs

2 participants