@reeboot/strapi-payment-plugin 0.0.8 → 0.0.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/dist/_chunks/{Analytics-CncK5kn-.mjs → Analytics-CPXtqS6s.mjs} +1 -1
- package/dist/_chunks/{Analytics-c8KBuG3k.js → Analytics-ZpHHWBQt.js} +1 -1
- package/dist/_chunks/{App-B5AB8Omu.mjs → App-CZNZ1JKf.mjs} +13 -7
- package/dist/_chunks/{App-Cih9sWu1.js → App-CsbyykNC.js} +13 -7
- package/dist/_chunks/{Customers-CZWOnN26.js → Customers-D4RVSZ_m.js} +1 -1
- package/dist/_chunks/{Customers-BVk2gx7w.mjs → Customers-DMDEBpH9.mjs} +1 -1
- package/dist/_chunks/{Dashboard-DAjD8Q_6.mjs → Dashboard-D-ckyWDO.mjs} +1 -1
- package/dist/_chunks/{Dashboard-CEif4jQn.js → Dashboard-NNqGJmYw.js} +1 -1
- package/dist/_chunks/{Orders-DZXb54VO.js → Orders-BELfgToU.js} +1 -1
- package/dist/_chunks/{Orders-DdJqI1HB.mjs → Orders-BIkRttRZ.mjs} +1 -1
- package/dist/_chunks/{Payments-VzDGbK4W.js → Payments-CIEb4f07.js} +1 -1
- package/dist/_chunks/{Payments-DFL-Cwgy.mjs → Payments-CKlL-PCV.mjs} +1 -1
- package/dist/_chunks/{Settings-SALxClBu.mjs → Settings-BQXkYm-c.mjs} +6 -5
- package/dist/_chunks/{Settings-B1tR3WOm.js → Settings-CcY98Hyw.js} +6 -5
- package/dist/_chunks/Subscriptions--cI3HC2x.js +178 -0
- package/dist/_chunks/Subscriptions-Dq8Uk7sK.mjs +178 -0
- package/dist/_chunks/{index-CB6TMitx.mjs → index-BBarHYyt.mjs} +1 -1
- package/dist/_chunks/{index-D-fFikb8.js → index-DBZ4rcUW.js} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/index.d.ts +22 -1
- package/dist/admin/src/pages/Subscriptions.d.ts +2 -0
- package/dist/admin/src/types/index.d.ts +20 -0
- package/dist/server/index.js +619 -47
- package/dist/server/index.mjs +619 -47
- package/dist/server/src/content-types/customer/index.d.ts +6 -0
- package/dist/server/src/content-types/index.d.ts +89 -0
- package/dist/server/src/content-types/subscription/index.d.ts +84 -0
- package/dist/server/src/controllers/index.d.ts +7 -0
- package/dist/server/src/controllers/stripe.d.ts +34 -2
- package/dist/server/src/index.d.ts +99 -6
- package/dist/server/src/middlewares/index.d.ts +3 -3
- package/dist/server/src/services/stripe.d.ts +97 -13
- package/dist/server/src/services/types/api.d.ts +24 -5
- package/dist/server/src/types/plugin-config.d.ts +360 -0
- package/package.json +2 -2
|
@@ -37,7 +37,7 @@ const index = {
|
|
|
37
37
|
defaultMessage: "Payment Management"
|
|
38
38
|
},
|
|
39
39
|
Component: async () => {
|
|
40
|
-
const { App } = await Promise.resolve().then(() => require("./App-
|
|
40
|
+
const { App } = await Promise.resolve().then(() => require("./App-CsbyykNC.js"));
|
|
41
41
|
return App;
|
|
42
42
|
}
|
|
43
43
|
});
|
package/dist/admin/index.js
CHANGED
package/dist/admin/index.mjs
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
interface AdminApp {
|
|
3
|
+
addMenuLink: (config: {
|
|
4
|
+
to: string;
|
|
5
|
+
icon: React.ComponentType;
|
|
6
|
+
intlLabel: {
|
|
7
|
+
id: string;
|
|
8
|
+
defaultMessage: string;
|
|
9
|
+
};
|
|
10
|
+
Component: () => Promise<React.ComponentType>;
|
|
11
|
+
}) => void;
|
|
12
|
+
registerPlugin: (config: {
|
|
13
|
+
id: string;
|
|
14
|
+
initializer: React.ComponentType<{
|
|
15
|
+
setPlugin: (id: string) => void;
|
|
16
|
+
}>;
|
|
17
|
+
isReady: boolean;
|
|
18
|
+
name: string;
|
|
19
|
+
dependencies?: string[];
|
|
20
|
+
}) => void;
|
|
21
|
+
}
|
|
1
22
|
declare const _default: {
|
|
2
|
-
register(app:
|
|
23
|
+
register(app: AdminApp): void;
|
|
3
24
|
registerTrads({ locales }: {
|
|
4
25
|
locales: string[];
|
|
5
26
|
}): Promise<{
|
|
@@ -42,6 +42,26 @@ export type Payment = Modules.Documents.Document<'plugin::payment-plugin.payment
|
|
|
42
42
|
customerName: string;
|
|
43
43
|
orderId?: string;
|
|
44
44
|
};
|
|
45
|
+
export type SubscriptionStatus = 'active' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'paused' | 'trialing' | 'unpaid';
|
|
46
|
+
export type Subscription = Modules.Documents.Document<'plugin::payment-plugin.subscription'> & {
|
|
47
|
+
id: string | number;
|
|
48
|
+
documentId: string;
|
|
49
|
+
stripe_subscription_id: string;
|
|
50
|
+
stripe_customer_id: string;
|
|
51
|
+
stripe_price_id: string;
|
|
52
|
+
stripe_product_id?: string;
|
|
53
|
+
status: SubscriptionStatus;
|
|
54
|
+
current_period_start?: string;
|
|
55
|
+
current_period_end?: string;
|
|
56
|
+
cancel_at_period_end: boolean;
|
|
57
|
+
canceled_at?: string;
|
|
58
|
+
trial_start?: string;
|
|
59
|
+
trial_end?: string;
|
|
60
|
+
latest_invoice_id?: string;
|
|
61
|
+
metadata?: Record<string, string>;
|
|
62
|
+
customerEmail?: string;
|
|
63
|
+
customerName?: string;
|
|
64
|
+
};
|
|
45
65
|
export type CustomerInput = Omit<Customer, 'id' | 'documentId' | 'createdAt' | 'updatedAt' | 'publishedAt'>;
|
|
46
66
|
export type OrderInput = Omit<Order, 'id' | 'documentId' | 'createdAt' | 'updatedAt' | 'publishedAt'>;
|
|
47
67
|
export type PaymentInput = Omit<Payment, 'id' | 'documentId' | 'createdAt' | 'updatedAt' | 'publishedAt'>;
|