Commit Graph

5 Commits

Author SHA1 Message Date
Urvish Prajapati 70a1b99c42 feat: add multi-currency EUR support to coupons and cart pricing 2026-11-23 14:44:19 +05:30
Amit Salunke 6115b8e240 Merge pull request 'fix(coupons): record coupon redemptions and increment usage count on purchase' (#27) from fix/coupon-redemption-count into main
Reviewed-on: https://git.zedobject.local/AcuPedia/acupedia-api/pulls/27
Reviewed-by: Amit Salunke <amit@noreply.localhost>
2026-11-04 04:47:53 +00:00
Urvish Prajapati 52356da055 fix(coupons): record coupon redemptions and increment usage count on purchase 2026-11-03 16:04:24 +05:30
Urvish Prajapati 126b06a1bb fix(coupons): validate coupon date range before database commit 2026-11-03 15:35:01 +05:30
Urvish Prajapati 7afa8e1913 feat(api): modularize admin services, add storefront plans, and support country in profile update
- Auth:
  - Add `country` field to `ProfileUpdateRequest` schema
  - Update `AuthService.update_profile` and `AuthRepository.update_profile` to persist country changes to `auth.app_users`

- Storefront Parity:
  - Add public `GET /api/plans` endpoint in `app/features/plans.py` with dual-currency pricing (INR/USD), feature badges, and module slugs
  - Mount plans router and add `GET /` root health status endpoint in `app/main.py`
  - Update CORS allowed origins for backoffice port 3001

- Admin Architecture & Endpoints:
  - Refactor monolithic admin service into domain-driven sub-services under `app/features/admin/services/` (modules, plans, coupons, customers, payments, database, reports)
  - Retain backwards-compatible `AdminService` facade in `services/__init__.py`
  - Add full endpoint parity in `app/features/admin/api.py` for customer 360 drawer, streaming CSV reports, live DB stats, dump downloads, and HTML invoice preview
  - Add `created_at` timestamp to `AdminUserListResponse` and validation schemas in `app/features/admin/schema.py`
2026-09-11 14:51:15 +05:30