@forklaunch/implementation-billing-stripe 1.2.1 → 1.2.2
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.
|
@@ -1,33 +1,34 @@
|
|
|
1
|
+
import { ResolvedEntity } from '@forklaunch/core/persistence';
|
|
1
2
|
import { BillingPortal, CheckoutSession, PaymentLink, Plan, Subscription } from '../../persistence/entities';
|
|
2
3
|
import { BillingProviderEnum, CurrencyEnum, PaymentMethodEnum, PlanCadenceEnum } from '../enum';
|
|
3
4
|
export type StripeBillingPortalEntities = {
|
|
4
5
|
BillingPortalMapper: {
|
|
5
|
-
'~entity': (typeof BillingPortal)['~entity']
|
|
6
|
+
'~entity': ResolvedEntity<(typeof BillingPortal)['~entity']>;
|
|
6
7
|
};
|
|
7
8
|
CreateBillingPortalMapper: {
|
|
8
|
-
'~entity': (typeof BillingPortal)['~entity']
|
|
9
|
+
'~entity': ResolvedEntity<(typeof BillingPortal)['~entity']>;
|
|
9
10
|
};
|
|
10
11
|
UpdateBillingPortalMapper: {
|
|
11
|
-
'~entity': (typeof BillingPortal)['~entity']
|
|
12
|
+
'~entity': ResolvedEntity<(typeof BillingPortal)['~entity']>;
|
|
12
13
|
};
|
|
13
14
|
};
|
|
14
15
|
export type StripeCheckoutSessionEntities<StatusEnum> = {
|
|
15
16
|
CheckoutSessionMapper: {
|
|
16
|
-
'~entity': (typeof CheckoutSession)['~entity'] & {
|
|
17
|
+
'~entity': ResolvedEntity<(typeof CheckoutSession)['~entity']> & {
|
|
17
18
|
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
18
19
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
19
20
|
status: StatusEnum[keyof StatusEnum];
|
|
20
21
|
};
|
|
21
22
|
};
|
|
22
23
|
CreateCheckoutSessionMapper: {
|
|
23
|
-
'~entity': (typeof CheckoutSession)['~entity'] & {
|
|
24
|
+
'~entity': ResolvedEntity<(typeof CheckoutSession)['~entity']> & {
|
|
24
25
|
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
25
26
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
26
27
|
status: StatusEnum[keyof StatusEnum];
|
|
27
28
|
};
|
|
28
29
|
};
|
|
29
30
|
UpdateCheckoutSessionMapper: {
|
|
30
|
-
'~entity': (typeof CheckoutSession)['~entity'] & {
|
|
31
|
+
'~entity': ResolvedEntity<(typeof CheckoutSession)['~entity']> & {
|
|
31
32
|
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
32
33
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
33
34
|
status: StatusEnum[keyof StatusEnum];
|
|
@@ -36,21 +37,21 @@ export type StripeCheckoutSessionEntities<StatusEnum> = {
|
|
|
36
37
|
};
|
|
37
38
|
export type StripePaymentLinkEntities<StatusEnum> = {
|
|
38
39
|
PaymentLinkMapper: {
|
|
39
|
-
'~entity': (typeof PaymentLink)['~entity'] & {
|
|
40
|
+
'~entity': ResolvedEntity<(typeof PaymentLink)['~entity']> & {
|
|
40
41
|
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
41
42
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
42
43
|
status: StatusEnum[keyof StatusEnum];
|
|
43
44
|
};
|
|
44
45
|
};
|
|
45
46
|
CreatePaymentLinkMapper: {
|
|
46
|
-
'~entity': (typeof PaymentLink)['~entity'] & {
|
|
47
|
+
'~entity': ResolvedEntity<(typeof PaymentLink)['~entity']> & {
|
|
47
48
|
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
48
49
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
49
50
|
status: StatusEnum[keyof StatusEnum];
|
|
50
51
|
};
|
|
51
52
|
};
|
|
52
53
|
UpdatePaymentLinkMapper: {
|
|
53
|
-
'~entity': (typeof PaymentLink)['~entity'] & {
|
|
54
|
+
'~entity': ResolvedEntity<(typeof PaymentLink)['~entity']> & {
|
|
54
55
|
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
55
56
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
56
57
|
status: StatusEnum[keyof StatusEnum];
|
|
@@ -59,21 +60,21 @@ export type StripePaymentLinkEntities<StatusEnum> = {
|
|
|
59
60
|
};
|
|
60
61
|
export type StripePlanEntities = {
|
|
61
62
|
PlanMapper: {
|
|
62
|
-
'~entity': (typeof Plan)['~entity'] & {
|
|
63
|
+
'~entity': ResolvedEntity<(typeof Plan)['~entity']> & {
|
|
63
64
|
cadence: PlanCadenceEnum[keyof PlanCadenceEnum];
|
|
64
65
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
65
66
|
billingProvider: BillingProviderEnum[keyof BillingProviderEnum] | null | undefined;
|
|
66
67
|
};
|
|
67
68
|
};
|
|
68
69
|
CreatePlanMapper: {
|
|
69
|
-
'~entity': (typeof Plan)['~entity'] & {
|
|
70
|
+
'~entity': ResolvedEntity<(typeof Plan)['~entity']> & {
|
|
70
71
|
cadence: PlanCadenceEnum[keyof PlanCadenceEnum];
|
|
71
72
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
72
73
|
billingProvider: BillingProviderEnum[keyof BillingProviderEnum] | null | undefined;
|
|
73
74
|
};
|
|
74
75
|
};
|
|
75
76
|
UpdatePlanMapper: {
|
|
76
|
-
'~entity': (typeof Plan)['~entity'] & {
|
|
77
|
+
'~entity': ResolvedEntity<(typeof Plan)['~entity']> & {
|
|
77
78
|
cadence: PlanCadenceEnum[keyof PlanCadenceEnum];
|
|
78
79
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
79
80
|
billingProvider: BillingProviderEnum[keyof BillingProviderEnum] | null | undefined;
|
|
@@ -82,19 +83,19 @@ export type StripePlanEntities = {
|
|
|
82
83
|
};
|
|
83
84
|
export type StripeSubscriptionEntities<PartyTypeEnum> = {
|
|
84
85
|
SubscriptionMapper: {
|
|
85
|
-
'~entity': (typeof Subscription)['~entity'] & {
|
|
86
|
+
'~entity': ResolvedEntity<(typeof Subscription)['~entity']> & {
|
|
86
87
|
partyType: PartyTypeEnum[keyof PartyTypeEnum];
|
|
87
88
|
billingProvider: BillingProviderEnum[keyof BillingProviderEnum] | null | undefined;
|
|
88
89
|
};
|
|
89
90
|
};
|
|
90
91
|
CreateSubscriptionMapper: {
|
|
91
|
-
'~entity': (typeof Subscription)['~entity'] & {
|
|
92
|
+
'~entity': ResolvedEntity<(typeof Subscription)['~entity']> & {
|
|
92
93
|
partyType: PartyTypeEnum[keyof PartyTypeEnum];
|
|
93
94
|
billingProvider: BillingProviderEnum[keyof BillingProviderEnum] | null | undefined;
|
|
94
95
|
};
|
|
95
96
|
};
|
|
96
97
|
UpdateSubscriptionMapper: {
|
|
97
|
-
'~entity': (typeof Subscription)['~entity'] & {
|
|
98
|
+
'~entity': ResolvedEntity<(typeof Subscription)['~entity']> & {
|
|
98
99
|
partyType: PartyTypeEnum[keyof PartyTypeEnum];
|
|
99
100
|
billingProvider: BillingProviderEnum[keyof BillingProviderEnum] | null | undefined;
|
|
100
101
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripe.entity.types.d.ts","sourceRoot":"","sources":["../../../domain/types/stripe.entity.types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,eAAe,EACf,WAAW,EACX,IAAI,EACJ,YAAY,EACb,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,mBAAmB,EACnB,YAAY,EACZ,iBAAiB,EACjB,eAAe,EAChB,MAAM,SAAS,CAAC;AAGjB,MAAM,MAAM,2BAA2B,GAAG;IACxC,mBAAmB,EAAE;QACnB,SAAS,EAAE,CAAC,OAAO,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"stripe.entity.types.d.ts","sourceRoot":"","sources":["../../../domain/types/stripe.entity.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAA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,EAAE,aAAa,CAAC,MAAM,aAAa,CAAC,CAAC;YAC9C,eAAe,EACX,mBAAmB,CAAC,MAAM,mBAAmB,CAAC,GAC9C,IAAI,GACJ,SAAS,CAAC;SACf,CAAC;KACH,CAAC;IACF,wBAAwB,EAAE;QACxB,SAAS,EAAE,cAAc,CAAC,CAAC,OAAO,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,GAAG;YAC5D,SAAS,EAAE,aAAa,CAAC,MAAM,aAAa,CAAC,CAAC;YAC9C,eAAe,EACX,mBAAmB,CAAC,MAAM,mBAAmB,CAAC,GAC9C,IAAI,GACJ,SAAS,CAAC;SACf,CAAC;KACH,CAAC;IACF,wBAAwB,EAAE;QACxB,SAAS,EAAE,cAAc,CAAC,CAAC,OAAO,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,GAAG;YAC5D,SAAS,EAAE,aAAa,CAAC,MAAM,aAAa,CAAC,CAAC;YAC9C,eAAe,EACX,mBAAmB,CAAC,MAAM,mBAAmB,CAAC,GAC9C,IAAI,GACJ,SAAS,CAAC;SACf,CAAC;KACH,CAAC;CACH,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ResolvedEntity } from '@forklaunch/core/persistence';
|
|
1
2
|
import {
|
|
2
3
|
BillingPortal,
|
|
3
4
|
CheckoutSession,
|
|
@@ -15,34 +16,34 @@ import {
|
|
|
15
16
|
// Billing Portal Types
|
|
16
17
|
export type StripeBillingPortalEntities = {
|
|
17
18
|
BillingPortalMapper: {
|
|
18
|
-
'~entity': (typeof BillingPortal)['~entity']
|
|
19
|
+
'~entity': ResolvedEntity<(typeof BillingPortal)['~entity']>;
|
|
19
20
|
};
|
|
20
21
|
CreateBillingPortalMapper: {
|
|
21
|
-
'~entity': (typeof BillingPortal)['~entity']
|
|
22
|
+
'~entity': ResolvedEntity<(typeof BillingPortal)['~entity']>;
|
|
22
23
|
};
|
|
23
24
|
UpdateBillingPortalMapper: {
|
|
24
|
-
'~entity': (typeof BillingPortal)['~entity']
|
|
25
|
+
'~entity': ResolvedEntity<(typeof BillingPortal)['~entity']>;
|
|
25
26
|
};
|
|
26
27
|
};
|
|
27
28
|
|
|
28
29
|
// Checkout Session Types
|
|
29
30
|
export type StripeCheckoutSessionEntities<StatusEnum> = {
|
|
30
31
|
CheckoutSessionMapper: {
|
|
31
|
-
'~entity': (typeof CheckoutSession)['~entity'] & {
|
|
32
|
+
'~entity': ResolvedEntity<(typeof CheckoutSession)['~entity']> & {
|
|
32
33
|
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
33
34
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
34
35
|
status: StatusEnum[keyof StatusEnum];
|
|
35
36
|
};
|
|
36
37
|
};
|
|
37
38
|
CreateCheckoutSessionMapper: {
|
|
38
|
-
'~entity': (typeof CheckoutSession)['~entity'] & {
|
|
39
|
+
'~entity': ResolvedEntity<(typeof CheckoutSession)['~entity']> & {
|
|
39
40
|
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
40
41
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
41
42
|
status: StatusEnum[keyof StatusEnum];
|
|
42
43
|
};
|
|
43
44
|
};
|
|
44
45
|
UpdateCheckoutSessionMapper: {
|
|
45
|
-
'~entity': (typeof CheckoutSession)['~entity'] & {
|
|
46
|
+
'~entity': ResolvedEntity<(typeof CheckoutSession)['~entity']> & {
|
|
46
47
|
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
47
48
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
48
49
|
status: StatusEnum[keyof StatusEnum];
|
|
@@ -53,21 +54,21 @@ export type StripeCheckoutSessionEntities<StatusEnum> = {
|
|
|
53
54
|
// Payment Link Types
|
|
54
55
|
export type StripePaymentLinkEntities<StatusEnum> = {
|
|
55
56
|
PaymentLinkMapper: {
|
|
56
|
-
'~entity': (typeof PaymentLink)['~entity'] & {
|
|
57
|
+
'~entity': ResolvedEntity<(typeof PaymentLink)['~entity']> & {
|
|
57
58
|
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
58
59
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
59
60
|
status: StatusEnum[keyof StatusEnum];
|
|
60
61
|
};
|
|
61
62
|
};
|
|
62
63
|
CreatePaymentLinkMapper: {
|
|
63
|
-
'~entity': (typeof PaymentLink)['~entity'] & {
|
|
64
|
+
'~entity': ResolvedEntity<(typeof PaymentLink)['~entity']> & {
|
|
64
65
|
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
65
66
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
66
67
|
status: StatusEnum[keyof StatusEnum];
|
|
67
68
|
};
|
|
68
69
|
};
|
|
69
70
|
UpdatePaymentLinkMapper: {
|
|
70
|
-
'~entity': (typeof PaymentLink)['~entity'] & {
|
|
71
|
+
'~entity': ResolvedEntity<(typeof PaymentLink)['~entity']> & {
|
|
71
72
|
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
72
73
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
73
74
|
status: StatusEnum[keyof StatusEnum];
|
|
@@ -78,7 +79,7 @@ export type StripePaymentLinkEntities<StatusEnum> = {
|
|
|
78
79
|
// Plan Types
|
|
79
80
|
export type StripePlanEntities = {
|
|
80
81
|
PlanMapper: {
|
|
81
|
-
'~entity': (typeof Plan)['~entity'] & {
|
|
82
|
+
'~entity': ResolvedEntity<(typeof Plan)['~entity']> & {
|
|
82
83
|
cadence: PlanCadenceEnum[keyof PlanCadenceEnum];
|
|
83
84
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
84
85
|
billingProvider:
|
|
@@ -88,7 +89,7 @@ export type StripePlanEntities = {
|
|
|
88
89
|
};
|
|
89
90
|
};
|
|
90
91
|
CreatePlanMapper: {
|
|
91
|
-
'~entity': (typeof Plan)['~entity'] & {
|
|
92
|
+
'~entity': ResolvedEntity<(typeof Plan)['~entity']> & {
|
|
92
93
|
cadence: PlanCadenceEnum[keyof PlanCadenceEnum];
|
|
93
94
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
94
95
|
billingProvider:
|
|
@@ -98,7 +99,7 @@ export type StripePlanEntities = {
|
|
|
98
99
|
};
|
|
99
100
|
};
|
|
100
101
|
UpdatePlanMapper: {
|
|
101
|
-
'~entity': (typeof Plan)['~entity'] & {
|
|
102
|
+
'~entity': ResolvedEntity<(typeof Plan)['~entity']> & {
|
|
102
103
|
cadence: PlanCadenceEnum[keyof PlanCadenceEnum];
|
|
103
104
|
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
104
105
|
billingProvider:
|
|
@@ -112,7 +113,7 @@ export type StripePlanEntities = {
|
|
|
112
113
|
// Subscription Types
|
|
113
114
|
export type StripeSubscriptionEntities<PartyTypeEnum> = {
|
|
114
115
|
SubscriptionMapper: {
|
|
115
|
-
'~entity': (typeof Subscription)['~entity'] & {
|
|
116
|
+
'~entity': ResolvedEntity<(typeof Subscription)['~entity']> & {
|
|
116
117
|
partyType: PartyTypeEnum[keyof PartyTypeEnum];
|
|
117
118
|
billingProvider:
|
|
118
119
|
| BillingProviderEnum[keyof BillingProviderEnum]
|
|
@@ -121,7 +122,7 @@ export type StripeSubscriptionEntities<PartyTypeEnum> = {
|
|
|
121
122
|
};
|
|
122
123
|
};
|
|
123
124
|
CreateSubscriptionMapper: {
|
|
124
|
-
'~entity': (typeof Subscription)['~entity'] & {
|
|
125
|
+
'~entity': ResolvedEntity<(typeof Subscription)['~entity']> & {
|
|
125
126
|
partyType: PartyTypeEnum[keyof PartyTypeEnum];
|
|
126
127
|
billingProvider:
|
|
127
128
|
| BillingProviderEnum[keyof BillingProviderEnum]
|
|
@@ -130,7 +131,7 @@ export type StripeSubscriptionEntities<PartyTypeEnum> = {
|
|
|
130
131
|
};
|
|
131
132
|
};
|
|
132
133
|
UpdateSubscriptionMapper: {
|
|
133
|
-
'~entity': (typeof Subscription)['~entity'] & {
|
|
134
|
+
'~entity': ResolvedEntity<(typeof Subscription)['~entity']> & {
|
|
134
135
|
partyType: PartyTypeEnum[keyof PartyTypeEnum];
|
|
135
136
|
billingProvider:
|
|
136
137
|
| BillingProviderEnum[keyof BillingProviderEnum]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forklaunch/implementation-billing-stripe",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "Stripe implementation for forklaunch billing",
|
|
5
5
|
"homepage": "https://github.com/forklaunch/forklaunch-js#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
],
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"@forklaunch/common": "^1.2.23",
|
|
67
|
-
"@forklaunch/core": "^1.5.
|
|
67
|
+
"@forklaunch/core": "^1.5.15",
|
|
68
68
|
"@forklaunch/internal": "^1.2.24",
|
|
69
69
|
"@forklaunch/validator": "^1.2.24",
|
|
70
70
|
"@mikro-orm/core": "^7.1.11",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"ajv": "^8.20.0",
|
|
73
73
|
"stripe": "^22.4.0",
|
|
74
74
|
"zod": "^4.4.3",
|
|
75
|
-
"@forklaunch/implementation-billing-base": "^1.0.
|
|
76
|
-
"@forklaunch/interfaces-billing": "^1.0.
|
|
75
|
+
"@forklaunch/implementation-billing-base": "^1.0.32",
|
|
76
|
+
"@forklaunch/interfaces-billing": "^1.0.31"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|