Skip to content

Expose Discount.referrer and REFERRER role - #797

Merged
Unitix merged 1 commit into
mainfrom
feat/referral-sales
Sep 14, 2026
Merged

Unitix merged 1 commit into
mainfrom
feat/referral-sales

Conversation

@Amtron

@Amtron Amtron commented Sep 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add REFERRER = 9 to Python and PHP role constants and include it in domain workers.
  • Expose referrer on the Python Discount entity so clients can assign referral credit on a code.

Test plan

  • Confirm ROLE_STRINGS[9] == "referrer" and REFERRER is in DOMAIN_WORKERS
  • Confirm Discount serialises/deserialises referrer

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.

Keep referral attribution on the discount code so Python and PHP clients can assign and read the referring user.

Co-authored-by: Cursor <cursoragent@cursor.com>

@Unitix Unitix left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Unitix
Unitix merged commit 5b5173d into main Sep 14, 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