Skip to content

docs: describe redemption code stacking and REDEMPTION_STACK_LIMIT - #6

Merged
dmahacker merged 1 commit into
mainfrom
docs/redemption-stacking
Oct 19, 2026
Merged

dmahacker merged 1 commit into
mainfrom
docs/redemption-stacking

Conversation

@dmahacker

Copy link
Copy Markdown
Contributor

Summary

Docs only: describe redemption code stacking introduced by PicGo/picgo-hub#135.

  • Vouchers stack: time is consumed from the highest plan down (higher plan takes effect now and pauses lower ones; lower plans queue; same plan extends).
  • Only an active subscription, admin grant or one-time purchase still blocks (REDEMPTION_ACTIVE_MEMBERSHIP); stacked time is capped at 3660 days (REDEMPTION_STACK_LIMIT). Neither consumes the voucher.
  • getEntitlements().currentPhaseEndsAt is the end of the whole active period; plan may switch to a queued lower plan before then.

No code or type change: redeem() request/response and Entitlements are unchanged, and new error codes surface as PicGoCloudError.code.

Merge after the hub PR is deployed.

@dmahacker
dmahacker merged commit f2fed8f into main Oct 19, 2026
2 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.

1 participant