@tsed/stripe 6.95.9 → 6.95.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsed/stripe",
3
- "version": "6.95.9",
3
+ "version": "6.95.10",
4
4
  "description": "Stripe package for Ts.ED framework",
5
5
  "private": false,
6
6
  "keywords": [
@@ -31,21 +31,21 @@
31
31
  "tslib": "2.2.0"
32
32
  },
33
33
  "devDependencies": {
34
- "@tsed/common": "6.95.9",
35
- "@tsed/core": "6.95.9",
36
- "@tsed/di": "6.95.9",
37
- "@tsed/json-mapper": "6.95.9",
38
- "@tsed/openspec": "6.95.9",
39
- "@tsed/schema": "6.95.9",
34
+ "@tsed/common": "6.95.10",
35
+ "@tsed/core": "6.95.10",
36
+ "@tsed/di": "6.95.10",
37
+ "@tsed/json-mapper": "6.95.10",
38
+ "@tsed/openspec": "6.95.10",
39
+ "@tsed/schema": "6.95.10",
40
40
  "stripe": "^8.129.0"
41
41
  },
42
42
  "peerDependencies": {
43
- "@tsed/common": "^6.95.9",
44
- "@tsed/core": "^6.95.9",
45
- "@tsed/di": "^6.95.9",
46
- "@tsed/json-mapper": "^6.95.9",
47
- "@tsed/openspec": "^6.95.9",
48
- "@tsed/schema": "^6.95.9",
43
+ "@tsed/common": "^6.95.10",
44
+ "@tsed/core": "^6.95.10",
45
+ "@tsed/di": "^6.95.10",
46
+ "@tsed/json-mapper": "^6.95.10",
47
+ "@tsed/openspec": "^6.95.10",
48
+ "@tsed/schema": "^6.95.10",
49
49
  "@types/body-parser": "^1.19.0",
50
50
  "body-parser": "^1.19.0",
51
51
  "stripe": "^8.129.0"
@@ -1,2 +0,0 @@
1
- export declare const STRIPE_WEBHOOK_EVENT = "strip_webhook_event";
2
- export declare const STRIPE_WEBHOOK_SIGNATURE = "strip_webhook_signature";
@@ -1,9 +0,0 @@
1
- import { WebhookEventOptions } from "../middlewares/WebhookEventMiddleware";
2
- /**
3
- * Get the stripe webhook event.
4
- *
5
- * @decorator
6
- * @operation
7
- * @input
8
- */
9
- export declare function WebhookEvent(options?: Partial<WebhookEventOptions>): any;
@@ -1,28 +0,0 @@
1
- import { Stripe } from "stripe";
2
- export interface StripeSettings extends Stripe.StripeConfig {
3
- /**
4
- * Stripe ApiKey
5
- */
6
- apiKey: string;
7
- /**
8
- * Webhooks settings
9
- */
10
- webhooks?: {
11
- /**
12
- * Your Webhook Signing Secret for this endpoint (e.g., 'whsec_...').
13
- * You can get this [in your dashboard](https://dashboard.stripe.com/webhooks).
14
- */
15
- secret: string;
16
- /**
17
- * Seconds of tolerance on timestamps.
18
- */
19
- tolerance?: number;
20
- };
21
- }
22
- declare global {
23
- namespace TsED {
24
- interface Configuration {
25
- stripe: StripeSettings;
26
- }
27
- }
28
- }
@@ -1 +0,0 @@
1
- export * from "./StripSettings";
@@ -1,5 +0,0 @@
1
- export * from "./constants";
2
- export * from "./domain/index";
3
- export * from "./decorators/webhookEvent";
4
- export * from "./middlewares/WebhookEventMiddleware";
5
- export * from "./services/StripeFactory";
@@ -1,13 +0,0 @@
1
- /// <reference types="node" />
2
- import { Context, MiddlewareMethods } from "@tsed/common";
3
- import { Stripe } from "stripe";
4
- import "../services/StripeFactory";
5
- export interface WebhookEventOptions {
6
- secret: string;
7
- tolerance: number;
8
- }
9
- export declare class WebhookEventMiddleware implements MiddlewareMethods {
10
- protected stripe: Stripe;
11
- protected webhooks: WebhookEventOptions;
12
- use(signature: string, body: Buffer, ctx: Context): any;
13
- }
@@ -1 +0,0 @@
1
- export {};