Team tasksAnis
SRV-48 — Referral, first-order, birthday, review and new-product bonuses
One-off bonuses with their entitlement keys and anti-fraud checks.
| Field | Details |
|---|---|
| Task code | SRV-48 |
| Phase | P4 — V2 evolutions |
| Product scope | V2 |
| Status | Planned |
| Start | Mon 8 Mar 2027 |
| Due | Sun 14 Mar 2027 |
| Responsible | Anis — Full-stack developer |
| Co-responsible | — |
| Effort | 2.5 person-day(s) planned · 6 from scratch · size M |
| Area · app | Server · server |
| Depends on | SRV-47 |
| Unblocks | SRV-49 |
| Milestones | — |
Summary
One-off bonuses with their entitlement keys and anti-fraud checks.
Description
Change request 04 (client loyalty document and letter of 6 Nov 2026), not yet accepted or priced by HOCO. Builds referral (code, sign-up link, conditions, fraud flags, decisions), the first-order bonus, reviews with moderation, verified occasion dates and the birthday job, and pays new-product bonuses through the campaigns of SRV-44.
Subtasks
| # | Subtask | Owner |
|---|---|---|
| 1 | Referral: code, referralCode at sign-up, conditions, flags, reversal | Anis |
| 2 | First-order bonus, one per eligible account | Anis |
| 3 | ProductReview, moderation and bonus | Anis |
| 4 | OccasionDate, verification, occasion job | Anis |
| 5 | New-product bonus payment and place release | Anis |
Deliverables
- apps/server/src/modules/loyalty/{referral,reviews,occasions}.service.ts
Acceptance criteria
- No referral reward before its conditions (LOY-15)
- A first-order bonus is paid once (LOY-12)
- No date, no birthday bonus (LOY-16)
- A review pays only when accepted (LOY-12)
Requirements covered
| Requirement | Title | Release |
|---|---|---|
| LOY-12 | First-order bonus and bonus on accepted reviews | V2 |
| LOY-13 | New-product campaign for the first N buyers | V2 |
| LOY-15 | Referral of new resellers with fraud controls | V2 |
| LOY-16 | Birthday bonus on a verified date | V2 |
API surface
| Endpoint group | Operations |
|---|---|
| Loyalty (V2) | 23 |
| Promotions & loyalty | 41 |
| Authentication & sessions | 14 |
Test measures
- DB tests of entitlement keys
- Fake-clock test of the occasion job
Risks
- Birth dates are personal data (SEC-08, D-62)
KPI
- Delivered by Sun 14 Mar 2027 within 2.5 person-day(s).
- Every acceptance criterion above demonstrated before hand-off; linked requirements' acceptance criteria pass.
- Zero open critical defects, permission gaps or data-integrity regressions at sign-off.
Generated from content/plan/tasks.json by scripts/generate-team-tasks.mjs. Dates are computed by the scheduler (Sunday–Thursday weeks, holidays excluded) — change the plan, not this page.