template-saas/apps/backend/dist/modules/billing/controllers/stripe.controller.d.ts
rckrdmrd 50a821a415
Some checks failed
CI / Backend CI (push) Has been cancelled
CI / Frontend CI (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / CI Summary (push) Has been cancelled
[SIMCO-V38] feat: Actualizar a SIMCO v3.8.0
- HERENCIA-SIMCO.md actualizado con directivas v3.7 y v3.8
- Actualizaciones de configuracion

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 08:53:08 -06:00

75 lines
2.2 KiB
TypeScript

import { StripeService } from '../services/stripe.service';
import { CreateCheckoutSessionDto, CreateBillingPortalSessionDto } from '../dto/stripe-webhook.dto';
import { RequestUser } from '../../auth/strategies/jwt.strategy';
export declare class StripeController {
private readonly stripeService;
constructor(stripeService: StripeService);
createCheckoutSession(dto: CreateCheckoutSessionDto, user: RequestUser): Promise<{
session_id: string;
url: string | null;
}>;
createBillingPortalSession(dto: CreateBillingPortalSessionDto, user: RequestUser): Promise<{
url: string;
}>;
createSetupIntent(user: RequestUser): Promise<{
error: string;
client_secret: null;
} | {
client_secret: string | null;
error?: undefined;
}>;
listPrices(productId?: string): Promise<{
id: string;
product: any;
currency: string;
unit_amount: number | null;
interval: import("stripe").Stripe.Price.Recurring.Interval | undefined;
interval_count: number | undefined;
}[]>;
getCustomer(user: RequestUser): Promise<{
exists: boolean;
customer: null;
} | {
exists: boolean;
customer: {
id: string;
email: string | null;
name: string | null | undefined;
created: number;
};
}>;
createCustomer(user: RequestUser, body: {
email: string;
name?: string;
}): Promise<{
created: boolean;
customer: {
id: string;
email: string | null;
name: string | null | undefined;
};
message: string;
} | {
created: boolean;
customer: {
id: string;
email: string | null;
name: string | null | undefined;
};
message?: undefined;
}>;
listPaymentMethods(user: RequestUser): Promise<{
payment_methods: {
id: string;
type: import("stripe").Stripe.PaymentMethod.Type;
card: {
brand: string;
last4: string;
exp_month: number;
exp_year: number;
} | null;
created: number;
}[];
}>;
}