• Your Name's avatar
    Implement tier downgrades and subscription cancellation · f0143b4c
    Your Name authored
    - Add downgrade_subscription() method to SubscriptionManager
      - Sets pending_tier_id for scheduled downgrade at period end
      - No immediate charge or refund
      - User keeps current tier until period end
      - Returns scheduled downgrade date
    - Add cancel_subscription() method to SubscriptionManager
      - Sets cancel_at_period_end flag
      - User retains access until period end
      - No refund issued
      - Returns cancellation date
    - Add comprehensive tests for both operations
      - Test downgrade scheduling and no-charge behavior
      - Test cancellation scheduling and no-refund behavior
      - Test error cases (no subscription, invalid tier)
    
    All 12 subscription tests passing.
    f0143b4c
Name
Last commit
Last update
aisbf Loading commit data...
config Loading commit data...
docs/superpowers Loading commit data...
static Loading commit data...
templates Loading commit data...
tests/payments Loading commit data...
.gitignore Loading commit data...
.providers.json.swp Loading commit data...
AI.PROMPT Loading commit data...
API_EXAMPLES.md Loading commit data...
CHANGELOG.md Loading commit data...
DATABASE_MIGRATION.md Loading commit data...
DEBUG_GUIDE.md Loading commit data...
DEPLOYMENT_CHECKLIST.md Loading commit data...
DOCUMENTATION.md Loading commit data...
FINAL_SUMMARY_v0.99.26.txt Loading commit data...
KILO_OAUTH2.md Loading commit data...
LICENSE.txt Loading commit data...
MANIFEST.in Loading commit data...
PAYMENT_INTEGRATION_SUMMARY.md Loading commit data...
PAYPAL_SETUP.md Loading commit data...
PAYPAL_TROUBLESHOOTING.md Loading commit data...
PYPI.md Loading commit data...
QUICK_START_PAYMENT.md Loading commit data...
README.md Loading commit data...
RELEASE_NOTES_v0.99.26.md Loading commit data...
TODO.md Loading commit data...
TORRC_SETUP.md Loading commit data...
aisbf.sh Loading commit data...
build.sh Loading commit data...
chatgpt-api-implementation-guide.md Loading commit data...
clean.sh Loading commit data...
cli.py Loading commit data...
codex-oauth-implementation-guide.md Loading commit data...
diagnose_databases.py Loading commit data...
main.py Loading commit data...
migrate_cache_to_aisbf.py Loading commit data...
pyproject.toml Loading commit data...
qwen-oauth2-analysis.md Loading commit data...
requirements.txt Loading commit data...
screenshot.png Loading commit data...
setup.py Loading commit data...
start_proxy.sh Loading commit data...
test_google.sh Loading commit data...
test_kiro_models_origin.py Loading commit data...
test_proxy.sh Loading commit data...
test_response_cache.py Loading commit data...
verify_release.sh Loading commit data...