Skip to content

feat: apply affiliate rebate to subscription payments#3371

Open
cugxuan wants to merge 1 commit into
Wei-Shaw:mainfrom
cugxuan:feat/subscription-affiliate-rebate
Open

feat: apply affiliate rebate to subscription payments#3371
cugxuan wants to merge 1 commit into
Wei-Shaw:mainfrom
cugxuan:feat/subscription-affiliate-rebate

Conversation

@cugxuan

@cugxuan cugxuan commented Jun 19, 2026

Copy link
Copy Markdown

订阅付款的时候仍然走返利

Summary

  • apply affiliate rebate accrual to paid subscription order fulfillment, using the subscription order amount as the rebate base
  • add a subscription assignment audit marker so fulfillment retries can skip duplicate subscription extension while still running rebate idempotency
  • keep existing balance recharge rebate behavior unchanged and make rebate audit claim SQL work in unit-test SQLite as well as PostgreSQL

Tests

  • go test -tags unit ./internal/service
  • go test ./internal/service -run '^$'
  • git diff --check

@github-actions

github-actions Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA. ✅
Posted by the CLA Assistant Lite bot.

@cugxuan

cugxuan commented Jun 19, 2026

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request Jun 19, 2026
@cugxuan

cugxuan commented Jun 19, 2026

Copy link
Copy Markdown
Author

issue #3370

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