@tsed/stripe 6.95.6 → 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 +13 -13
- package/lib/cjs/constants/index.d.ts +0 -2
- package/lib/cjs/decorators/webhookEvent.d.ts +0 -9
- package/lib/cjs/domain/StripSettings.d.ts +0 -28
- package/lib/cjs/domain/index.d.ts +0 -1
- package/lib/cjs/index.d.ts +0 -5
- package/lib/cjs/middlewares/WebhookEventMiddleware.d.ts +0 -13
- package/lib/cjs/services/StripeFactory.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/stripe",
|
|
3
|
-
"version": "6.95.
|
|
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.
|
|
35
|
-
"@tsed/core": "6.95.
|
|
36
|
-
"@tsed/di": "6.95.
|
|
37
|
-
"@tsed/json-mapper": "6.95.
|
|
38
|
-
"@tsed/openspec": "6.95.
|
|
39
|
-
"@tsed/schema": "6.95.
|
|
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.
|
|
44
|
-
"@tsed/core": "^6.95.
|
|
45
|
-
"@tsed/di": "^6.95.
|
|
46
|
-
"@tsed/json-mapper": "^6.95.
|
|
47
|
-
"@tsed/openspec": "^6.95.
|
|
48
|
-
"@tsed/schema": "^6.95.
|
|
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,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";
|
package/lib/cjs/index.d.ts
DELETED
|
@@ -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 {};
|