Skip to content

Expose assigned users on Discount - #793

Merged
s3341458 merged 1 commit into
mainfrom
feat/discount-assigned-users
Aug 30, 2026
Merged

s3341458 merged 1 commit into
mainfrom
feat/discount-assigned-users

Conversation

@Amtron

@Amtron Amtron commented Aug 30, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add assigned_users on the Discount entity so promo codes can be limited to specific buyers.
  • Add DISCOUNT_CODE_USER_NOT_ALLOWED (233) for redemption failures.

Test plan

  • Confirm Discount JSON includes assignedUsers when embedded
  • Confirm existing discounts without assigned users still serialize as before

Made with Cursor


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

…ecific buyers.

Co-authored-by: Cursor <cursoragent@cursor.com>
@s3341458
s3341458 merged commit 1e03f94 into main Aug 30, 2026
3 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.

2 participants