1. 02 Apr, 2026 1 commit
    • 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
  2. 13 Mar, 2026 1 commit
    • erio's avatar
      feat(redeem): support subscription type in create-and-redeem API · 05edb551
      erio authored
      Add group_id and validity_days fields to CreateAndRedeemCodeRequest,
      enabling subscription-type redemption codes to be created and redeemed
      in a single API call.
      
      - Type defaults to "balance" when omitted for backward compatibility
      - Subscription type requires group_id (non-nil) and validity_days (>0)
      - Existing balance/concurrency callers are unaffected
      05edb551