• erio's avatar
    feat(redeem): support negative values for refund/deduction · 66fde7a2
    erio authored
    Allow redeem codes with negative values to enable refund scenarios:
    - Balance: negative value deducts balance (clamped to 0, never negative)
    - Concurrency: negative value reduces concurrency (clamped to 0)
    - Subscription: negative validity_days reduces remaining days; if
      remaining days <= 0, the subscription is canceled (set to expired)
    
    All deductions generate standard redeem code records for audit trail.
    66fde7a2
redeem_handler.go 10.8 KB