Skip to content

feat: create merchant management service#432

Merged
devEunicee merged 1 commit into
devEunicee:mainfrom
devSoniia:feature/273-merchant-management-service
Jun 26, 2026
Merged

feat: create merchant management service#432
devEunicee merged 1 commit into
devEunicee:mainfrom
devSoniia:feature/273-merchant-management-service

Conversation

@devSoniia

Copy link
Copy Markdown
Contributor

Summary

Implements the off-chain merchant management service layer for the Pulsar backend.

Changes

  • services/merchant/types.rs — domain types (Merchant, MerchantFilter, MerchantStats, AuditEntry, UpdateMerchantRequest)
  • services/merchant/service.rs — MerchantService with full lifecycle operations + 7 unit tests
  • services/merchant/mod.rs — module exports

Features

Feature Status
Registration with validation
Activation / deactivation workflow
Profile update (name, description, contact, category)
Whitelist enforcement
Category management
Merchant search & filtering
Stats aggregation (volume, count)
Audit trail on every change

Closes #273

- Add MerchantService with register, activate/deactivate, update_profile,
  set_whitelist, search, and get_stats operations
- MerchantRepository trait for easy DB-backend swapping
- Input validation (name length, duplicates)
- Audit log entry written on every state change
- MerchantFilter supports name_contains, category, active, whitelisted
- 7 unit tests covering all acceptance criteria
@drips-wave

drips-wave Bot commented Jun 26, 2026

Copy link
Copy Markdown

@devSoniia Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@devEunicee devEunicee merged commit 1a6baf9 into devEunicee:main Jun 26, 2026
4 of 9 checks passed
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.

#273 - Create Merchant Management Service

2 participants