Spaces:
Paused
Paused
Download apps/prevision-api/src/webhooks/stripe-event.decorator.ts from modventures/prevision: direct link, hf CLI and curl.
- Browser
- Download file 373 Bytes
-
https://huggingface.co/spaces/modventures/prevision/resolve/main/apps/prevision-api/src/webhooks/stripe-event.decorator.ts
- Command line
-
hf download hf://spaces/modventures/prevision/apps/prevision-api/src/webhooks/stripe-event.decorator.ts
-
curl -L -o stripe-event.decorator.ts https://huggingface.co/spaces/modventures/prevision/resolve/main/apps/prevision-api/src/webhooks/stripe-event.decorator.ts
373 Bytes
| import { createParamDecorator, ExecutionContext } from '@nestjs/common'; | |
| import type Stripe from 'stripe'; | |
| import type { StripeWebhookRequest } from './stripe-webhook-request.interface.js'; | |
| export const StripeEvent = createParamDecorator( | |
| (_: unknown, context: ExecutionContext): Stripe.Event => context.switchToHttp().getRequest<StripeWebhookRequest>().stripeEvent, | |
| ); | |