Improve billing plan lookup (#270)

Retrieve plan from Stripe/LS if not found in billing configuration. Useful for legacy plans.
This commit is contained in:
Giancarlo Buomprisco
2025-06-13 16:45:55 +07:00
committed by GitHub
parent 2b21b7bed4
commit 856e9612c4
11 changed files with 183 additions and 38 deletions

View File

@@ -63,8 +63,11 @@ export abstract class BillingStrategyProviderService {
abstract getPlanById(planId: string): Promise<{
id: string;
name: string;
description?: string;
interval: string;
amount: number;
type: 'recurring' | 'one_time';
intervalCount?: number;
}>;
abstract getSubscription(subscriptionId: string): Promise<