Skip to content

Conversation

@RandomProgramm3r
Copy link
Owner

feat: Implement promo creation endpoint with validations and company association.

  • Add Promo and PromoCode models to handle COMMON/UNIQUE promo modes
  • Create PromoCreateSerializer with nested TargetSerializer for validation
    • Validate age ranges, country codes, promo mode consistency, and date logic
    • Handle company association via authenticated user (Company model)
  • Add PromoCreateView with POST method and IsAuthenticated and IsCompanyUser permissions

…association.

- Add Promo and PromoCode models to handle COMMON/UNIQUE promo modes
- Create PromoCreateSerializer with nested TargetSerializer for validation
  - Validate age ranges, country codes, promo mode consistency, and date logic
  - Handle company association via authenticated user (Company model)
- Add PromoCreateView with POST method and IsAuthenticated and IsCompanyUser permissions
@RandomProgramm3r RandomProgramm3r merged commit 4e08396 into main Mar 28, 2025
2 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.

1 participant