HOCO B2B
Team tasksAnis

SRV-48 — Referral, first-order, birthday, review and new-product bonuses

One-off bonuses with their entitlement keys and anti-fraud checks.

FieldDetails
Task codeSRV-48
PhaseP4 — V2 evolutions
Product scopeV2
StatusPlanned
StartMon 8 Mar 2027
DueSun 14 Mar 2027
ResponsibleAnis — Full-stack developer
Co-responsible—
Effort2.5 person-day(s) planned · 6 from scratch · size M
Area · appServer · server
Depends onSRV-47
UnblocksSRV-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

#SubtaskOwner
1Referral: code, referralCode at sign-up, conditions, flags, reversalAnis
2First-order bonus, one per eligible accountAnis
3ProductReview, moderation and bonusAnis
4OccasionDate, verification, occasion jobAnis
5New-product bonus payment and place releaseAnis

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

RequirementTitleRelease
LOY-12First-order bonus and bonus on accepted reviewsV2
LOY-13New-product campaign for the first N buyersV2
LOY-15Referral of new resellers with fraud controlsV2
LOY-16Birthday bonus on a verified dateV2

API surface

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.

On this page