-
Your Name authored
- Add upgrade_subscription() method to SubscriptionManager - Calculate prorated charge based on unused time in billing period - Formula: new_price - (old_price × unused_fraction) - Update subscription tier immediately while keeping same period end date - Charge prorated amount via existing payment method - Add comprehensive tests for proration calculations - Test edge cases: no subscription, invalid tier, accurate proration math
00c73c80