← Hub
Tickets
PDI Reference Implementation Guide Work Estimation Services
Total Tickets
17
Total Hours
206h
Timeline
3 Weeks
High Risk
4
Critical Path
LOY-001
LOY-002
LOY-003
LOY-007
LOY-008
LOY-011
LOY-014
LOY-017
Week 1 — Foundation
LOY-001
Scaffold loyalty-service NestJS microservice
P0
Backend
L
10h
P0-8
NestJS scaffold with Docker, health endpoint, DB connection
LOY-002
PDI OAuth2 token manager
P0
Integration
M
14h
P0-8
client_credentials flow, token caching with TTL
LOY-003
PDI REST adapter: GetRewards + FinalizeRewards
P0
Integration
XL
22h
P0-8P0-2
Full PDI Conexxus client with retry logic
LOY-004
StoreLoyaltyConfig DB model + CRUD API
P0
Backend
M
10h
P0-7
Per-store loyalty enable/disable with credentials
LOY-005
LoyaltySession DB model + state manager
P0
Backend
M
12h
P0-9
State machine: active→pending→finalized/failed
LOY-006
Circuit breaker + graceful degradation
P0
Backend
M
6h
P0-10
opossum circuit breaker, fallback to no-loyalty
Week 2 — API + Frontend
LOY-007
Medusa POST /loyalty/identify endpoint
P0
Backend
M
18h
P0-1
Proxy to loyalty-service, session creation
LOY-008
Medusa GET/POST /loyalty/reward endpoints
P0
Backend
XL
10h
P0-2P0-4
Reward retrieval and application
LOY-009
SKU-to-POSCode mapping service
P0
Integration
M
10h
P0-2
Map Medusa variant SKUs to PDI POSCodes
LOY-010
Frontend: phone number entry component
P0
Frontend
M
6h
P0-1
Phone input in checkout, identify call
LOY-011
Frontend: reward selector + display
P0
Frontend
XL
18h
P0-3P0-4
Show available rewards, apply to cart
LOY-012
Cart re-evaluation on reward change
P0
Frontend
M
10h
P0-5
Re-fetch cart totals after reward applied
LOY-013
Cart/Order loyalty metadata persistence
P0
Backend
M
10h
P0-6
Store loyalty data in order metadata
Week 3 — Finalization
LOY-014
Order-completed finalization flow
P0
Backend
XL
12h
P0-6
Finalize PDI session on order complete
LOY-015
Order confirmation + loyalty summary
P0
Frontend
M
14h
P0-10
Show points earned on confirmation page
LOY-016
E2E sandbox integration tests
P0
Testing
M
14h
P0-1P0-2P0-6
Full flow tests against PDI QAF
LOY-017
Full checkout flow with loyalty
P0
Frontend
M
10h
P0-10
End-to-end checkout integration