template-saas/apps/backend/dist/modules/billing/dto/stripe-webhook.dto.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

60 lines
1.9 KiB
TypeScript

export declare enum StripeWebhookEventType {
CUSTOMER_CREATED = "customer.created",
CUSTOMER_UPDATED = "customer.updated",
CUSTOMER_DELETED = "customer.deleted",
SUBSCRIPTION_CREATED = "customer.subscription.created",
SUBSCRIPTION_UPDATED = "customer.subscription.updated",
SUBSCRIPTION_DELETED = "customer.subscription.deleted",
SUBSCRIPTION_TRIAL_WILL_END = "customer.subscription.trial_will_end",
INVOICE_CREATED = "invoice.created",
INVOICE_PAID = "invoice.paid",
INVOICE_PAYMENT_FAILED = "invoice.payment_failed",
INVOICE_FINALIZED = "invoice.finalized",
INVOICE_VOIDED = "invoice.voided",
PAYMENT_INTENT_SUCCEEDED = "payment_intent.succeeded",
PAYMENT_INTENT_FAILED = "payment_intent.payment_failed",
PAYMENT_METHOD_ATTACHED = "payment_method.attached",
PAYMENT_METHOD_DETACHED = "payment_method.detached",
CHECKOUT_SESSION_COMPLETED = "checkout.session.completed",
CHECKOUT_SESSION_EXPIRED = "checkout.session.expired"
}
export declare class StripeWebhookDto {
id: string;
type: string;
data: {
object: Record<string, any>;
previous_attributes?: Record<string, any>;
};
api_version: string;
created: number;
livemode?: boolean;
}
export declare class CreateStripeCustomerDto {
tenant_id: string;
email: string;
name?: string;
metadata?: Record<string, string>;
}
export declare class CreateStripeSubscriptionDto {
customer_id: string;
price_id: string;
trial_period_days?: number;
metadata?: Record<string, string>;
}
export declare class CreateCheckoutSessionDto {
tenant_id: string;
price_id: string;
success_url: string;
cancel_url: string;
trial_period_days?: number;
}
export declare class CreateBillingPortalSessionDto {
tenant_id: string;
return_url: string;
}
export declare class StripeWebhookResponseDto {
received: boolean;
event_type?: string;
error?: string;
}