Commit 65776ef
fix: drop chat_plan_upgrade from refundable types
The mid-cycle chat upgrade path inserts chat_plan_upgrade without a
Stripe invoice or payment intent id, so a refunded upgrade charge could
never be resolved back to it. Keep only the flows that persist an
invoice id (chat_plan_start, chat_plan_renewal) refundable.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 150d82e commit 65776ef
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2669 | 2669 | | |
2670 | 2670 | | |
2671 | 2671 | | |
| 2672 | + | |
| 2673 | + | |
| 2674 | + | |
| 2675 | + | |
2672 | 2676 | | |
2673 | 2677 | | |
2674 | 2678 | | |
2675 | 2679 | | |
2676 | 2680 | | |
2677 | 2681 | | |
2678 | 2682 | | |
2679 | | - | |
2680 | 2683 | | |
2681 | 2684 | | |
2682 | 2685 | | |
| |||
2685 | 2688 | | |
2686 | 2689 | | |
2687 | 2690 | | |
2688 | | - | |
2689 | 2691 | | |
2690 | 2692 | | |
2691 | 2693 | | |
| |||
0 commit comments