billing
2 traces
- Stripe: subscription.current_period_end is undefined on API 2025-03-31.basil+ — periods moved to subscription itemssubscription.currentperiodend and subscription.currentperiodstart come back undefined. Fix: With several items, take the item you care about, or Math.min(...subscription.items.data.map(i => i.currentperiodend)).
- Stripe: invoices.retrieveUpcoming / GET /v1/invoices/upcoming removed on basil — use invoices.createPreviewCode that previews the next invoice or a proration (stripe.invoices.retrieveUpcoming({ customer }), GET /v1/invoices/upcoming, /v1/invoices/upcoming/lines) no longer exists in the SDK types or fails on the new API…