@forklaunch/implementation-billing-stripe 0.0.1 → 0.0.3
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/lib/domain/enum/index.d.mts +194 -0
- package/lib/domain/enum/index.d.ts +194 -0
- package/lib/domain/enum/index.js +236 -0
- package/lib/domain/enum/index.mjs +201 -0
- package/lib/domain/schemas/index.d.mts +4142 -0
- package/lib/domain/schemas/index.d.ts +4142 -0
- package/lib/{schemas → domain/schemas}/index.js +351 -275
- package/lib/{schemas → domain/schemas}/index.mjs +224 -223
- package/lib/domain/types/index.d.mts +280 -0
- package/lib/domain/types/index.d.ts +280 -0
- package/lib/{types → domain/types}/index.js +9 -5
- package/lib/eject/domain/enum/billingProvider.enum.ts +3 -0
- package/lib/eject/domain/enum/currency.enum.ts +137 -0
- package/lib/eject/domain/enum/index.ts +4 -0
- package/lib/eject/domain/enum/paymentMethod.enum.ts +39 -0
- package/lib/eject/domain/enum/planCadence.enum.ts +5 -0
- package/lib/eject/domain/schemas/checkoutSession.schema.ts +2 -2
- package/lib/eject/domain/schemas/paymentLink.schema.ts +2 -2
- package/lib/eject/domain/schemas/plan.schema.ts +3 -3
- package/lib/eject/domain/schemas/subscription.schema.ts +1 -1
- package/lib/eject/{types → domain/types}/stripe.dto.types.ts +4 -4
- package/lib/eject/{types → domain/types}/stripe.entity.types.ts +4 -4
- package/lib/eject/services/billingPortal.service.ts +2 -2
- package/lib/eject/services/checkoutSession.service.ts +4 -4
- package/lib/eject/services/paymentLink.service.ts +4 -4
- package/lib/eject/services/plan.service.ts +5 -5
- package/lib/eject/services/subscription.service.ts +3 -3
- package/lib/eject/services/webhook.service.ts +5 -5
- package/lib/services/index.d.mts +709 -194
- package/lib/services/index.d.ts +709 -194
- package/lib/services/index.js +359 -244
- package/lib/services/index.mjs +298 -205
- package/package.json +16 -16
- package/lib/domain/index.d.mts +0 -189
- package/lib/domain/index.d.ts +0 -189
- package/lib/domain/index.js +0 -231
- package/lib/domain/index.mjs +0 -201
- package/lib/schemas/index.d.mts +0 -376
- package/lib/schemas/index.d.ts +0 -376
- package/lib/types/index.d.mts +0 -121
- package/lib/types/index.d.ts +0 -121
- /package/lib/{types → domain/types}/index.mjs +0 -0
- /package/lib/eject/{types → domain/types}/index.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -8,31 +8,36 @@ var __export = (target, all) => {
|
|
|
8
8
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
9
|
};
|
|
10
10
|
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from ===
|
|
11
|
+
if ((from && typeof from === 'object') || typeof from === 'function') {
|
|
12
12
|
for (let key of __getOwnPropNames(from))
|
|
13
13
|
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, {
|
|
14
|
+
__defProp(to, key, {
|
|
15
|
+
get: () => from[key],
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
15
18
|
}
|
|
16
19
|
return to;
|
|
17
20
|
};
|
|
18
|
-
var __toCommonJS = (mod) =>
|
|
21
|
+
var __toCommonJS = (mod) =>
|
|
22
|
+
__copyProps(__defProp({}, '__esModule', { value: true }), mod);
|
|
19
23
|
|
|
20
|
-
// schemas/index.ts
|
|
24
|
+
// domain/schemas/index.ts
|
|
21
25
|
var schemas_exports = {};
|
|
22
26
|
__export(schemas_exports, {
|
|
23
27
|
StripeBillingPortalServiceSchemas: () => StripeBillingPortalServiceSchemas3,
|
|
24
|
-
StripeCheckoutSessionServiceSchemas: () =>
|
|
28
|
+
StripeCheckoutSessionServiceSchemas: () =>
|
|
29
|
+
StripeCheckoutSessionServiceSchemas3,
|
|
25
30
|
StripePaymentLinkServiceSchemas: () => StripePaymentLinkServiceSchemas3,
|
|
26
31
|
StripePlanServiceSchemas: () => StripePlanServiceSchemas3,
|
|
27
32
|
StripeSubscriptionServiceSchemas: () => StripeSubscriptionServiceSchemas3
|
|
28
33
|
});
|
|
29
34
|
module.exports = __toCommonJS(schemas_exports);
|
|
30
35
|
|
|
31
|
-
// schemas/billingPortal.schema.ts
|
|
32
|
-
var import_internal = require(
|
|
36
|
+
// domain/schemas/billingPortal.schema.ts
|
|
37
|
+
var import_internal = require('@forklaunch/internal');
|
|
33
38
|
|
|
34
|
-
// schemas/typebox/billingPortal.schema.ts
|
|
35
|
-
var import_typebox = require(
|
|
39
|
+
// domain/schemas/typebox/billingPortal.schema.ts
|
|
40
|
+
var import_typebox = require('@forklaunch/validator/typebox');
|
|
36
41
|
var CreateBillingPortalSchema = {
|
|
37
42
|
id: (0, import_typebox.optional)(import_typebox.string),
|
|
38
43
|
customerId: import_typebox.string,
|
|
@@ -61,8 +66,8 @@ var StripeBillingPortalServiceSchemas = {
|
|
|
61
66
|
BillingPortalSchema
|
|
62
67
|
};
|
|
63
68
|
|
|
64
|
-
// schemas/zod/billingPortal.schema.ts
|
|
65
|
-
var import_zod = require(
|
|
69
|
+
// domain/schemas/zod/billingPortal.schema.ts
|
|
70
|
+
var import_zod = require('@forklaunch/validator/zod');
|
|
66
71
|
var CreateBillingPortalSchema2 = {
|
|
67
72
|
id: (0, import_zod.optional)(import_zod.string),
|
|
68
73
|
customerId: import_zod.string,
|
|
@@ -91,206 +96,209 @@ var StripeBillingPortalServiceSchemas2 = {
|
|
|
91
96
|
BillingPortalSchema: BillingPortalSchema2
|
|
92
97
|
};
|
|
93
98
|
|
|
94
|
-
// schemas/billingPortal.schema.ts
|
|
95
|
-
var StripeBillingPortalServiceSchemas3 = (0,
|
|
99
|
+
// domain/schemas/billingPortal.schema.ts
|
|
100
|
+
var StripeBillingPortalServiceSchemas3 = (0,
|
|
101
|
+
import_internal.serviceSchemaResolver)(
|
|
96
102
|
() => StripeBillingPortalServiceSchemas,
|
|
97
103
|
() => StripeBillingPortalServiceSchemas2
|
|
98
104
|
);
|
|
99
105
|
|
|
100
|
-
// schemas/checkoutSession.schema.ts
|
|
101
|
-
var import_internal2 = require(
|
|
106
|
+
// domain/schemas/checkoutSession.schema.ts
|
|
107
|
+
var import_internal2 = require('@forklaunch/internal');
|
|
102
108
|
|
|
103
|
-
// schemas/typebox/checkoutSession.schema.ts
|
|
104
|
-
var import_typebox2 = require(
|
|
109
|
+
// domain/schemas/typebox/checkoutSession.schema.ts
|
|
110
|
+
var import_typebox2 = require('@forklaunch/validator/typebox');
|
|
105
111
|
|
|
106
|
-
// domain/
|
|
112
|
+
// domain/enum/currency.enum.ts
|
|
107
113
|
var CurrencyEnum = /* @__PURE__ */ ((CurrencyEnum2) => {
|
|
108
|
-
CurrencyEnum2[
|
|
109
|
-
CurrencyEnum2[
|
|
110
|
-
CurrencyEnum2[
|
|
111
|
-
CurrencyEnum2[
|
|
112
|
-
CurrencyEnum2[
|
|
113
|
-
CurrencyEnum2[
|
|
114
|
-
CurrencyEnum2[
|
|
115
|
-
CurrencyEnum2[
|
|
116
|
-
CurrencyEnum2[
|
|
117
|
-
CurrencyEnum2[
|
|
118
|
-
CurrencyEnum2[
|
|
119
|
-
CurrencyEnum2[
|
|
120
|
-
CurrencyEnum2[
|
|
121
|
-
CurrencyEnum2[
|
|
122
|
-
CurrencyEnum2[
|
|
123
|
-
CurrencyEnum2[
|
|
124
|
-
CurrencyEnum2[
|
|
125
|
-
CurrencyEnum2[
|
|
126
|
-
CurrencyEnum2[
|
|
127
|
-
CurrencyEnum2[
|
|
128
|
-
CurrencyEnum2[
|
|
129
|
-
CurrencyEnum2[
|
|
130
|
-
CurrencyEnum2[
|
|
131
|
-
CurrencyEnum2[
|
|
132
|
-
CurrencyEnum2[
|
|
133
|
-
CurrencyEnum2[
|
|
134
|
-
CurrencyEnum2[
|
|
135
|
-
CurrencyEnum2[
|
|
136
|
-
CurrencyEnum2[
|
|
137
|
-
CurrencyEnum2[
|
|
138
|
-
CurrencyEnum2[
|
|
139
|
-
CurrencyEnum2[
|
|
140
|
-
CurrencyEnum2[
|
|
141
|
-
CurrencyEnum2[
|
|
142
|
-
CurrencyEnum2[
|
|
143
|
-
CurrencyEnum2[
|
|
144
|
-
CurrencyEnum2[
|
|
145
|
-
CurrencyEnum2[
|
|
146
|
-
CurrencyEnum2[
|
|
147
|
-
CurrencyEnum2[
|
|
148
|
-
CurrencyEnum2[
|
|
149
|
-
CurrencyEnum2[
|
|
150
|
-
CurrencyEnum2[
|
|
151
|
-
CurrencyEnum2[
|
|
152
|
-
CurrencyEnum2[
|
|
153
|
-
CurrencyEnum2[
|
|
154
|
-
CurrencyEnum2[
|
|
155
|
-
CurrencyEnum2[
|
|
156
|
-
CurrencyEnum2[
|
|
157
|
-
CurrencyEnum2[
|
|
158
|
-
CurrencyEnum2[
|
|
159
|
-
CurrencyEnum2[
|
|
160
|
-
CurrencyEnum2[
|
|
161
|
-
CurrencyEnum2[
|
|
162
|
-
CurrencyEnum2[
|
|
163
|
-
CurrencyEnum2[
|
|
164
|
-
CurrencyEnum2[
|
|
165
|
-
CurrencyEnum2[
|
|
166
|
-
CurrencyEnum2[
|
|
167
|
-
CurrencyEnum2[
|
|
168
|
-
CurrencyEnum2[
|
|
169
|
-
CurrencyEnum2[
|
|
170
|
-
CurrencyEnum2[
|
|
171
|
-
CurrencyEnum2[
|
|
172
|
-
CurrencyEnum2[
|
|
173
|
-
CurrencyEnum2[
|
|
174
|
-
CurrencyEnum2[
|
|
175
|
-
CurrencyEnum2[
|
|
176
|
-
CurrencyEnum2[
|
|
177
|
-
CurrencyEnum2[
|
|
178
|
-
CurrencyEnum2[
|
|
179
|
-
CurrencyEnum2[
|
|
180
|
-
CurrencyEnum2[
|
|
181
|
-
CurrencyEnum2[
|
|
182
|
-
CurrencyEnum2[
|
|
183
|
-
CurrencyEnum2[
|
|
184
|
-
CurrencyEnum2[
|
|
185
|
-
CurrencyEnum2[
|
|
186
|
-
CurrencyEnum2[
|
|
187
|
-
CurrencyEnum2[
|
|
188
|
-
CurrencyEnum2[
|
|
189
|
-
CurrencyEnum2[
|
|
190
|
-
CurrencyEnum2[
|
|
191
|
-
CurrencyEnum2[
|
|
192
|
-
CurrencyEnum2[
|
|
193
|
-
CurrencyEnum2[
|
|
194
|
-
CurrencyEnum2[
|
|
195
|
-
CurrencyEnum2[
|
|
196
|
-
CurrencyEnum2[
|
|
197
|
-
CurrencyEnum2[
|
|
198
|
-
CurrencyEnum2[
|
|
199
|
-
CurrencyEnum2[
|
|
200
|
-
CurrencyEnum2[
|
|
201
|
-
CurrencyEnum2[
|
|
202
|
-
CurrencyEnum2[
|
|
203
|
-
CurrencyEnum2[
|
|
204
|
-
CurrencyEnum2[
|
|
205
|
-
CurrencyEnum2[
|
|
206
|
-
CurrencyEnum2[
|
|
207
|
-
CurrencyEnum2[
|
|
208
|
-
CurrencyEnum2[
|
|
209
|
-
CurrencyEnum2[
|
|
210
|
-
CurrencyEnum2[
|
|
211
|
-
CurrencyEnum2[
|
|
212
|
-
CurrencyEnum2[
|
|
213
|
-
CurrencyEnum2[
|
|
214
|
-
CurrencyEnum2[
|
|
215
|
-
CurrencyEnum2[
|
|
216
|
-
CurrencyEnum2[
|
|
217
|
-
CurrencyEnum2[
|
|
218
|
-
CurrencyEnum2[
|
|
219
|
-
CurrencyEnum2[
|
|
220
|
-
CurrencyEnum2[
|
|
221
|
-
CurrencyEnum2[
|
|
222
|
-
CurrencyEnum2[
|
|
223
|
-
CurrencyEnum2[
|
|
224
|
-
CurrencyEnum2[
|
|
225
|
-
CurrencyEnum2[
|
|
226
|
-
CurrencyEnum2[
|
|
227
|
-
CurrencyEnum2[
|
|
228
|
-
CurrencyEnum2[
|
|
229
|
-
CurrencyEnum2[
|
|
230
|
-
CurrencyEnum2[
|
|
231
|
-
CurrencyEnum2[
|
|
232
|
-
CurrencyEnum2[
|
|
233
|
-
CurrencyEnum2[
|
|
234
|
-
CurrencyEnum2[
|
|
235
|
-
CurrencyEnum2[
|
|
236
|
-
CurrencyEnum2[
|
|
237
|
-
CurrencyEnum2[
|
|
238
|
-
CurrencyEnum2[
|
|
239
|
-
CurrencyEnum2[
|
|
240
|
-
CurrencyEnum2[
|
|
241
|
-
CurrencyEnum2[
|
|
242
|
-
CurrencyEnum2[
|
|
114
|
+
CurrencyEnum2['USD'] = 'USD';
|
|
115
|
+
CurrencyEnum2['AED'] = 'AED';
|
|
116
|
+
CurrencyEnum2['AFN'] = 'AFN';
|
|
117
|
+
CurrencyEnum2['ALL'] = 'ALL';
|
|
118
|
+
CurrencyEnum2['AMD'] = 'AMD';
|
|
119
|
+
CurrencyEnum2['ANG'] = 'ANG';
|
|
120
|
+
CurrencyEnum2['AOA'] = 'AOA';
|
|
121
|
+
CurrencyEnum2['ARS'] = 'ARS';
|
|
122
|
+
CurrencyEnum2['AUD'] = 'AUD';
|
|
123
|
+
CurrencyEnum2['AWG'] = 'AWG';
|
|
124
|
+
CurrencyEnum2['AZN'] = 'AZN';
|
|
125
|
+
CurrencyEnum2['BAM'] = 'BAM';
|
|
126
|
+
CurrencyEnum2['BBD'] = 'BBD';
|
|
127
|
+
CurrencyEnum2['BDT'] = 'BDT';
|
|
128
|
+
CurrencyEnum2['BGN'] = 'BGN';
|
|
129
|
+
CurrencyEnum2['BIF'] = 'BIF';
|
|
130
|
+
CurrencyEnum2['BMD'] = 'BMD';
|
|
131
|
+
CurrencyEnum2['BND'] = 'BND';
|
|
132
|
+
CurrencyEnum2['BOB'] = 'BOB';
|
|
133
|
+
CurrencyEnum2['BRL'] = 'BRL';
|
|
134
|
+
CurrencyEnum2['BSD'] = 'BSD';
|
|
135
|
+
CurrencyEnum2['BWP'] = 'BWP';
|
|
136
|
+
CurrencyEnum2['BYN'] = 'BYN';
|
|
137
|
+
CurrencyEnum2['BZD'] = 'BZD';
|
|
138
|
+
CurrencyEnum2['CAD'] = 'CAD';
|
|
139
|
+
CurrencyEnum2['CDF'] = 'CDF';
|
|
140
|
+
CurrencyEnum2['CHF'] = 'CHF';
|
|
141
|
+
CurrencyEnum2['CLP'] = 'CLP';
|
|
142
|
+
CurrencyEnum2['CNY'] = 'CNY';
|
|
143
|
+
CurrencyEnum2['COP'] = 'COP';
|
|
144
|
+
CurrencyEnum2['CRC'] = 'CRC';
|
|
145
|
+
CurrencyEnum2['CVE'] = 'CVE';
|
|
146
|
+
CurrencyEnum2['CZK'] = 'CZK';
|
|
147
|
+
CurrencyEnum2['DJF'] = 'DJF';
|
|
148
|
+
CurrencyEnum2['DKK'] = 'DKK';
|
|
149
|
+
CurrencyEnum2['DOP'] = 'DOP';
|
|
150
|
+
CurrencyEnum2['DZD'] = 'DZD';
|
|
151
|
+
CurrencyEnum2['EGP'] = 'EGP';
|
|
152
|
+
CurrencyEnum2['ETB'] = 'ETB';
|
|
153
|
+
CurrencyEnum2['EUR'] = 'EUR';
|
|
154
|
+
CurrencyEnum2['FJD'] = 'FJD';
|
|
155
|
+
CurrencyEnum2['FKP'] = 'FKP';
|
|
156
|
+
CurrencyEnum2['GBP'] = 'GBP';
|
|
157
|
+
CurrencyEnum2['GEL'] = 'GEL';
|
|
158
|
+
CurrencyEnum2['GIP'] = 'GIP';
|
|
159
|
+
CurrencyEnum2['GMD'] = 'GMD';
|
|
160
|
+
CurrencyEnum2['GNF'] = 'GNF';
|
|
161
|
+
CurrencyEnum2['GTQ'] = 'GTQ';
|
|
162
|
+
CurrencyEnum2['GYD'] = 'GYD';
|
|
163
|
+
CurrencyEnum2['HKD'] = 'HKD';
|
|
164
|
+
CurrencyEnum2['HNL'] = 'HNL';
|
|
165
|
+
CurrencyEnum2['HTG'] = 'HTG';
|
|
166
|
+
CurrencyEnum2['HUF'] = 'HUF';
|
|
167
|
+
CurrencyEnum2['IDR'] = 'IDR';
|
|
168
|
+
CurrencyEnum2['ILS'] = 'ILS';
|
|
169
|
+
CurrencyEnum2['INR'] = 'INR';
|
|
170
|
+
CurrencyEnum2['ISK'] = 'ISK';
|
|
171
|
+
CurrencyEnum2['JMD'] = 'JMD';
|
|
172
|
+
CurrencyEnum2['JPY'] = 'JPY';
|
|
173
|
+
CurrencyEnum2['KES'] = 'KES';
|
|
174
|
+
CurrencyEnum2['KGS'] = 'KGS';
|
|
175
|
+
CurrencyEnum2['KHR'] = 'KHR';
|
|
176
|
+
CurrencyEnum2['KMF'] = 'KMF';
|
|
177
|
+
CurrencyEnum2['KRW'] = 'KRW';
|
|
178
|
+
CurrencyEnum2['KYD'] = 'KYD';
|
|
179
|
+
CurrencyEnum2['KZT'] = 'KZT';
|
|
180
|
+
CurrencyEnum2['LAK'] = 'LAK';
|
|
181
|
+
CurrencyEnum2['LBP'] = 'LBP';
|
|
182
|
+
CurrencyEnum2['LKR'] = 'LKR';
|
|
183
|
+
CurrencyEnum2['LRD'] = 'LRD';
|
|
184
|
+
CurrencyEnum2['LSL'] = 'LSL';
|
|
185
|
+
CurrencyEnum2['MAD'] = 'MAD';
|
|
186
|
+
CurrencyEnum2['MDL'] = 'MDL';
|
|
187
|
+
CurrencyEnum2['MGA'] = 'MGA';
|
|
188
|
+
CurrencyEnum2['MKD'] = 'MKD';
|
|
189
|
+
CurrencyEnum2['MMK'] = 'MMK';
|
|
190
|
+
CurrencyEnum2['MNT'] = 'MNT';
|
|
191
|
+
CurrencyEnum2['MOP'] = 'MOP';
|
|
192
|
+
CurrencyEnum2['MUR'] = 'MUR';
|
|
193
|
+
CurrencyEnum2['MVR'] = 'MVR';
|
|
194
|
+
CurrencyEnum2['MWK'] = 'MWK';
|
|
195
|
+
CurrencyEnum2['MXN'] = 'MXN';
|
|
196
|
+
CurrencyEnum2['MYR'] = 'MYR';
|
|
197
|
+
CurrencyEnum2['MZN'] = 'MZN';
|
|
198
|
+
CurrencyEnum2['NAD'] = 'NAD';
|
|
199
|
+
CurrencyEnum2['NGN'] = 'NGN';
|
|
200
|
+
CurrencyEnum2['NIO'] = 'NIO';
|
|
201
|
+
CurrencyEnum2['NOK'] = 'NOK';
|
|
202
|
+
CurrencyEnum2['NPR'] = 'NPR';
|
|
203
|
+
CurrencyEnum2['NZD'] = 'NZD';
|
|
204
|
+
CurrencyEnum2['PAB'] = 'PAB';
|
|
205
|
+
CurrencyEnum2['PEN'] = 'PEN';
|
|
206
|
+
CurrencyEnum2['PGK'] = 'PGK';
|
|
207
|
+
CurrencyEnum2['PHP'] = 'PHP';
|
|
208
|
+
CurrencyEnum2['PKR'] = 'PKR';
|
|
209
|
+
CurrencyEnum2['PLN'] = 'PLN';
|
|
210
|
+
CurrencyEnum2['PYG'] = 'PYG';
|
|
211
|
+
CurrencyEnum2['QAR'] = 'QAR';
|
|
212
|
+
CurrencyEnum2['RON'] = 'RON';
|
|
213
|
+
CurrencyEnum2['RSD'] = 'RSD';
|
|
214
|
+
CurrencyEnum2['RUB'] = 'RUB';
|
|
215
|
+
CurrencyEnum2['RWF'] = 'RWF';
|
|
216
|
+
CurrencyEnum2['SAR'] = 'SAR';
|
|
217
|
+
CurrencyEnum2['SBD'] = 'SBD';
|
|
218
|
+
CurrencyEnum2['SCR'] = 'SCR';
|
|
219
|
+
CurrencyEnum2['SEK'] = 'SEK';
|
|
220
|
+
CurrencyEnum2['SGD'] = 'SGD';
|
|
221
|
+
CurrencyEnum2['SHP'] = 'SHP';
|
|
222
|
+
CurrencyEnum2['SLE'] = 'SLE';
|
|
223
|
+
CurrencyEnum2['SOS'] = 'SOS';
|
|
224
|
+
CurrencyEnum2['SRD'] = 'SRD';
|
|
225
|
+
CurrencyEnum2['STD'] = 'STD';
|
|
226
|
+
CurrencyEnum2['SZL'] = 'SZL';
|
|
227
|
+
CurrencyEnum2['THB'] = 'THB';
|
|
228
|
+
CurrencyEnum2['TJS'] = 'TJS';
|
|
229
|
+
CurrencyEnum2['TOP'] = 'TOP';
|
|
230
|
+
CurrencyEnum2['TRY'] = 'TRY';
|
|
231
|
+
CurrencyEnum2['TTD'] = 'TTD';
|
|
232
|
+
CurrencyEnum2['TWD'] = 'TWD';
|
|
233
|
+
CurrencyEnum2['TZS'] = 'TZS';
|
|
234
|
+
CurrencyEnum2['UAH'] = 'UAH';
|
|
235
|
+
CurrencyEnum2['UGX'] = 'UGX';
|
|
236
|
+
CurrencyEnum2['UYU'] = 'UYU';
|
|
237
|
+
CurrencyEnum2['UZS'] = 'UZS';
|
|
238
|
+
CurrencyEnum2['VND'] = 'VND';
|
|
239
|
+
CurrencyEnum2['VUV'] = 'VUV';
|
|
240
|
+
CurrencyEnum2['WST'] = 'WST';
|
|
241
|
+
CurrencyEnum2['XAF'] = 'XAF';
|
|
242
|
+
CurrencyEnum2['XCD'] = 'XCD';
|
|
243
|
+
CurrencyEnum2['XCG'] = 'XCG';
|
|
244
|
+
CurrencyEnum2['XOF'] = 'XOF';
|
|
245
|
+
CurrencyEnum2['XPF'] = 'XPF';
|
|
246
|
+
CurrencyEnum2['YER'] = 'YER';
|
|
247
|
+
CurrencyEnum2['ZAR'] = 'ZAR';
|
|
248
|
+
CurrencyEnum2['ZMW'] = 'ZMW';
|
|
243
249
|
return CurrencyEnum2;
|
|
244
250
|
})(CurrencyEnum || {});
|
|
245
251
|
|
|
246
|
-
// domain/
|
|
252
|
+
// domain/enum/paymentMethod.enum.ts
|
|
247
253
|
var PaymentMethodEnum = /* @__PURE__ */ ((PaymentMethodEnum2) => {
|
|
248
|
-
PaymentMethodEnum2[
|
|
249
|
-
PaymentMethodEnum2[
|
|
250
|
-
PaymentMethodEnum2[
|
|
251
|
-
PaymentMethodEnum2[
|
|
252
|
-
PaymentMethodEnum2[
|
|
253
|
-
PaymentMethodEnum2[
|
|
254
|
-
PaymentMethodEnum2[
|
|
255
|
-
PaymentMethodEnum2[
|
|
256
|
-
PaymentMethodEnum2[
|
|
257
|
-
PaymentMethodEnum2[
|
|
258
|
-
PaymentMethodEnum2[
|
|
259
|
-
PaymentMethodEnum2[
|
|
260
|
-
PaymentMethodEnum2[
|
|
261
|
-
PaymentMethodEnum2[
|
|
262
|
-
PaymentMethodEnum2[
|
|
263
|
-
PaymentMethodEnum2[
|
|
264
|
-
PaymentMethodEnum2[
|
|
265
|
-
PaymentMethodEnum2[
|
|
266
|
-
PaymentMethodEnum2[
|
|
267
|
-
PaymentMethodEnum2[
|
|
268
|
-
PaymentMethodEnum2[
|
|
269
|
-
PaymentMethodEnum2[
|
|
270
|
-
PaymentMethodEnum2[
|
|
271
|
-
PaymentMethodEnum2[
|
|
272
|
-
PaymentMethodEnum2[
|
|
273
|
-
PaymentMethodEnum2[
|
|
274
|
-
PaymentMethodEnum2[
|
|
275
|
-
PaymentMethodEnum2[
|
|
276
|
-
PaymentMethodEnum2[
|
|
277
|
-
PaymentMethodEnum2[
|
|
278
|
-
PaymentMethodEnum2[
|
|
279
|
-
PaymentMethodEnum2[
|
|
280
|
-
PaymentMethodEnum2[
|
|
281
|
-
PaymentMethodEnum2[
|
|
282
|
-
PaymentMethodEnum2[
|
|
283
|
-
PaymentMethodEnum2[
|
|
284
|
-
PaymentMethodEnum2[
|
|
254
|
+
PaymentMethodEnum2['AFFIRM'] = 'affirm';
|
|
255
|
+
PaymentMethodEnum2['AFTERPAY_CLEARPAY'] = 'afterpay_clearpay';
|
|
256
|
+
PaymentMethodEnum2['ALIPAY'] = 'alipay';
|
|
257
|
+
PaymentMethodEnum2['ALMA'] = 'alma';
|
|
258
|
+
PaymentMethodEnum2['AU_BECS_DEBIT'] = 'au_becs_debit';
|
|
259
|
+
PaymentMethodEnum2['BACS_DEBIT'] = 'bacs_debit';
|
|
260
|
+
PaymentMethodEnum2['BANCONTACT'] = 'bancontact';
|
|
261
|
+
PaymentMethodEnum2['BILLIE'] = 'billie';
|
|
262
|
+
PaymentMethodEnum2['BLIK'] = 'blik';
|
|
263
|
+
PaymentMethodEnum2['BOLETO'] = 'boleto';
|
|
264
|
+
PaymentMethodEnum2['CARD'] = 'card';
|
|
265
|
+
PaymentMethodEnum2['CASHAPP'] = 'cashapp';
|
|
266
|
+
PaymentMethodEnum2['EPS'] = 'eps';
|
|
267
|
+
PaymentMethodEnum2['FPX'] = 'fpx';
|
|
268
|
+
PaymentMethodEnum2['GIROPAY'] = 'giropay';
|
|
269
|
+
PaymentMethodEnum2['GRABPAY'] = 'grabpay';
|
|
270
|
+
PaymentMethodEnum2['IDEAL'] = 'ideal';
|
|
271
|
+
PaymentMethodEnum2['KLARNA'] = 'klarna';
|
|
272
|
+
PaymentMethodEnum2['KONBINI'] = 'konbini';
|
|
273
|
+
PaymentMethodEnum2['LINK'] = 'link';
|
|
274
|
+
PaymentMethodEnum2['MOBILEPAY'] = 'mobilepay';
|
|
275
|
+
PaymentMethodEnum2['MULTIBANCO'] = 'multibanco';
|
|
276
|
+
PaymentMethodEnum2['OXXO'] = 'oxxo';
|
|
277
|
+
PaymentMethodEnum2['P24'] = 'p24';
|
|
278
|
+
PaymentMethodEnum2['PAY_BY_BANK'] = 'pay_by_bank';
|
|
279
|
+
PaymentMethodEnum2['PAYNOW'] = 'paynow';
|
|
280
|
+
PaymentMethodEnum2['PAYPAL'] = 'paypal';
|
|
281
|
+
PaymentMethodEnum2['PIX'] = 'pix';
|
|
282
|
+
PaymentMethodEnum2['PROMPTPAY'] = 'promptpay';
|
|
283
|
+
PaymentMethodEnum2['SATISPAY'] = 'satispay';
|
|
284
|
+
PaymentMethodEnum2['SEPA_DEBIT'] = 'sepa_debit';
|
|
285
|
+
PaymentMethodEnum2['SOFORT'] = 'sofort';
|
|
286
|
+
PaymentMethodEnum2['SWISH'] = 'swish';
|
|
287
|
+
PaymentMethodEnum2['TWINT'] = 'twint';
|
|
288
|
+
PaymentMethodEnum2['US_BANK_ACCOUNT'] = 'us_bank_account';
|
|
289
|
+
PaymentMethodEnum2['WECHAT_PAY'] = 'wechat_pay';
|
|
290
|
+
PaymentMethodEnum2['ZIP'] = 'zip';
|
|
285
291
|
return PaymentMethodEnum2;
|
|
286
292
|
})(PaymentMethodEnum || {});
|
|
287
293
|
|
|
288
|
-
// schemas/typebox/checkoutSession.schema.ts
|
|
294
|
+
// domain/schemas/typebox/checkoutSession.schema.ts
|
|
289
295
|
var CreateCheckoutSessionSchema = (StatusEnum) => ({
|
|
290
296
|
id: (0, import_typebox2.optional)(import_typebox2.string),
|
|
291
297
|
customerId: import_typebox2.string,
|
|
292
298
|
currency: (0, import_typebox2.enum_)(CurrencyEnum),
|
|
293
|
-
paymentMethods: (0, import_typebox2.array)(
|
|
299
|
+
paymentMethods: (0, import_typebox2.array)(
|
|
300
|
+
(0, import_typebox2.enum_)(PaymentMethodEnum)
|
|
301
|
+
),
|
|
294
302
|
successRedirectUri: (0, import_typebox2.optional)(import_typebox2.string),
|
|
295
303
|
cancelRedirectUri: (0, import_typebox2.optional)(import_typebox2.string),
|
|
296
304
|
expiresAt: import_typebox2.date,
|
|
@@ -300,22 +308,26 @@ var CreateCheckoutSessionSchema = (StatusEnum) => ({
|
|
|
300
308
|
var UpdateCheckoutSessionSchema = (StatusEnum) => ({
|
|
301
309
|
id: import_typebox2.string,
|
|
302
310
|
customerId: (0, import_typebox2.optional)(import_typebox2.string),
|
|
303
|
-
currency: (0, import_typebox2.optional)(
|
|
304
|
-
|
|
311
|
+
currency: (0, import_typebox2.optional)(
|
|
312
|
+
(0, import_typebox2.enum_)(CurrencyEnum)
|
|
313
|
+
),
|
|
314
|
+
paymentMethods: (0, import_typebox2.optional)(
|
|
315
|
+
(0, import_typebox2.array)((0, import_typebox2.enum_)(PaymentMethodEnum))
|
|
316
|
+
),
|
|
305
317
|
successRedirectUri: (0, import_typebox2.optional)(import_typebox2.string),
|
|
306
318
|
cancelRedirectUri: (0, import_typebox2.optional)(import_typebox2.string),
|
|
307
319
|
expiresAt: (0, import_typebox2.optional)(import_typebox2.date),
|
|
308
320
|
status: (0, import_typebox2.optional)((0, import_typebox2.enum_)(StatusEnum)),
|
|
309
|
-
stripeFields: (0, import_typebox2.optional)(
|
|
310
|
-
(0, import_typebox2.type)()
|
|
311
|
-
)
|
|
321
|
+
stripeFields: (0, import_typebox2.optional)((0, import_typebox2.type)())
|
|
312
322
|
});
|
|
313
323
|
var CheckoutSessionSchema = (StatusEnum) => ({
|
|
314
324
|
id: import_typebox2.string,
|
|
315
325
|
customerId: import_typebox2.string,
|
|
316
326
|
metadata: (0, import_typebox2.optional)(import_typebox2.unknown),
|
|
317
327
|
currency: (0, import_typebox2.enum_)(CurrencyEnum),
|
|
318
|
-
paymentMethods: (0, import_typebox2.array)(
|
|
328
|
+
paymentMethods: (0, import_typebox2.array)(
|
|
329
|
+
(0, import_typebox2.enum_)(PaymentMethodEnum)
|
|
330
|
+
),
|
|
319
331
|
successRedirectUri: (0, import_typebox2.optional)(import_typebox2.string),
|
|
320
332
|
cancelRedirectUri: (0, import_typebox2.optional)(import_typebox2.string),
|
|
321
333
|
expiresAt: import_typebox2.date,
|
|
@@ -330,13 +342,15 @@ var StripeCheckoutSessionServiceSchemas = {
|
|
|
330
342
|
CheckoutSessionSchema
|
|
331
343
|
};
|
|
332
344
|
|
|
333
|
-
// schemas/zod/checkoutSession.schema.ts
|
|
334
|
-
var import_zod2 = require(
|
|
345
|
+
// domain/schemas/zod/checkoutSession.schema.ts
|
|
346
|
+
var import_zod2 = require('@forklaunch/validator/zod');
|
|
335
347
|
var CreateCheckoutSessionSchema2 = (StatusEnum) => ({
|
|
336
348
|
id: (0, import_zod2.optional)(import_zod2.string),
|
|
337
349
|
customerId: import_zod2.string,
|
|
338
350
|
currency: (0, import_zod2.enum_)(CurrencyEnum),
|
|
339
|
-
paymentMethods: (0, import_zod2.array)(
|
|
351
|
+
paymentMethods: (0, import_zod2.array)(
|
|
352
|
+
(0, import_zod2.enum_)(PaymentMethodEnum)
|
|
353
|
+
),
|
|
340
354
|
successRedirectUri: (0, import_zod2.optional)(import_zod2.string),
|
|
341
355
|
cancelRedirectUri: (0, import_zod2.optional)(import_zod2.string),
|
|
342
356
|
expiresAt: import_zod2.date,
|
|
@@ -347,21 +361,23 @@ var UpdateCheckoutSessionSchema2 = (StatusEnum) => ({
|
|
|
347
361
|
id: import_zod2.string,
|
|
348
362
|
customerId: (0, import_zod2.optional)(import_zod2.string),
|
|
349
363
|
currency: (0, import_zod2.optional)((0, import_zod2.enum_)(CurrencyEnum)),
|
|
350
|
-
paymentMethods: (0, import_zod2.optional)(
|
|
364
|
+
paymentMethods: (0, import_zod2.optional)(
|
|
365
|
+
(0, import_zod2.array)((0, import_zod2.enum_)(PaymentMethodEnum))
|
|
366
|
+
),
|
|
351
367
|
successRedirectUri: (0, import_zod2.optional)(import_zod2.string),
|
|
352
368
|
cancelRedirectUri: (0, import_zod2.optional)(import_zod2.string),
|
|
353
369
|
expiresAt: (0, import_zod2.optional)(import_zod2.date),
|
|
354
370
|
status: (0, import_zod2.optional)((0, import_zod2.enum_)(StatusEnum)),
|
|
355
|
-
stripeFields: (0, import_zod2.optional)(
|
|
356
|
-
(0, import_zod2.type)()
|
|
357
|
-
)
|
|
371
|
+
stripeFields: (0, import_zod2.optional)((0, import_zod2.type)())
|
|
358
372
|
});
|
|
359
373
|
var CheckoutSessionSchema2 = (StatusEnum) => ({
|
|
360
374
|
id: import_zod2.string,
|
|
361
375
|
customerId: import_zod2.string,
|
|
362
376
|
currency: (0, import_zod2.enum_)(CurrencyEnum),
|
|
363
377
|
metadata: (0, import_zod2.optional)(import_zod2.unknown),
|
|
364
|
-
paymentMethods: (0, import_zod2.array)(
|
|
378
|
+
paymentMethods: (0, import_zod2.array)(
|
|
379
|
+
(0, import_zod2.enum_)(PaymentMethodEnum)
|
|
380
|
+
),
|
|
365
381
|
successRedirectUri: (0, import_zod2.optional)(import_zod2.string),
|
|
366
382
|
cancelRedirectUri: (0, import_zod2.optional)(import_zod2.string),
|
|
367
383
|
expiresAt: import_zod2.date,
|
|
@@ -376,30 +392,37 @@ var StripeCheckoutSessionServiceSchemas2 = {
|
|
|
376
392
|
CheckoutSessionSchema: CheckoutSessionSchema2
|
|
377
393
|
};
|
|
378
394
|
|
|
379
|
-
// schemas/checkoutSession.schema.ts
|
|
380
|
-
var StripeCheckoutSessionServiceSchemas3 = (0,
|
|
395
|
+
// domain/schemas/checkoutSession.schema.ts
|
|
396
|
+
var StripeCheckoutSessionServiceSchemas3 = (0,
|
|
397
|
+
import_internal2.serviceSchemaResolver)(
|
|
381
398
|
() => StripeCheckoutSessionServiceSchemas,
|
|
382
399
|
() => StripeCheckoutSessionServiceSchemas2
|
|
383
400
|
);
|
|
384
401
|
|
|
385
|
-
// schemas/paymentLink.schema.ts
|
|
386
|
-
var import_internal3 = require(
|
|
402
|
+
// domain/schemas/paymentLink.schema.ts
|
|
403
|
+
var import_internal3 = require('@forklaunch/internal');
|
|
387
404
|
|
|
388
|
-
// schemas/typebox/paymentLink.schema.ts
|
|
389
|
-
var import_typebox3 = require(
|
|
405
|
+
// domain/schemas/typebox/paymentLink.schema.ts
|
|
406
|
+
var import_typebox3 = require('@forklaunch/validator/typebox');
|
|
390
407
|
var CreatePaymentLinkSchema = (StatusEnum) => ({
|
|
391
408
|
id: (0, import_typebox3.optional)(import_typebox3.string),
|
|
392
409
|
amount: import_typebox3.number,
|
|
393
410
|
currency: (0, import_typebox3.enum_)(CurrencyEnum),
|
|
394
|
-
paymentMethods: (0, import_typebox3.array)(
|
|
411
|
+
paymentMethods: (0, import_typebox3.array)(
|
|
412
|
+
(0, import_typebox3.enum_)(PaymentMethodEnum)
|
|
413
|
+
),
|
|
395
414
|
status: (0, import_typebox3.enum_)(StatusEnum),
|
|
396
415
|
stripeFields: (0, import_typebox3.type)()
|
|
397
416
|
});
|
|
398
417
|
var UpdatePaymentLinkSchema = (StatusEnum) => ({
|
|
399
418
|
id: import_typebox3.string,
|
|
400
419
|
amount: (0, import_typebox3.optional)(import_typebox3.number),
|
|
401
|
-
currency: (0, import_typebox3.optional)(
|
|
402
|
-
|
|
420
|
+
currency: (0, import_typebox3.optional)(
|
|
421
|
+
(0, import_typebox3.enum_)(CurrencyEnum)
|
|
422
|
+
),
|
|
423
|
+
paymentMethods: (0, import_typebox3.optional)(
|
|
424
|
+
(0, import_typebox3.array)((0, import_typebox3.enum_)(PaymentMethodEnum))
|
|
425
|
+
),
|
|
403
426
|
status: (0, import_typebox3.optional)((0, import_typebox3.enum_)(StatusEnum)),
|
|
404
427
|
stripeFields: (0, import_typebox3.optional)((0, import_typebox3.type)())
|
|
405
428
|
});
|
|
@@ -407,7 +430,9 @@ var PaymentLinkSchema = (StatusEnum) => ({
|
|
|
407
430
|
id: import_typebox3.string,
|
|
408
431
|
amount: import_typebox3.number,
|
|
409
432
|
currency: (0, import_typebox3.enum_)(CurrencyEnum),
|
|
410
|
-
paymentMethods: (0, import_typebox3.array)(
|
|
433
|
+
paymentMethods: (0, import_typebox3.array)(
|
|
434
|
+
(0, import_typebox3.enum_)(PaymentMethodEnum)
|
|
435
|
+
),
|
|
411
436
|
status: (0, import_typebox3.enum_)(StatusEnum),
|
|
412
437
|
stripeFields: (0, import_typebox3.type)(),
|
|
413
438
|
createdAt: (0, import_typebox3.optional)(import_typebox3.date),
|
|
@@ -419,13 +444,15 @@ var StripePaymentLinkServiceSchemas = {
|
|
|
419
444
|
PaymentLinkSchema
|
|
420
445
|
};
|
|
421
446
|
|
|
422
|
-
// schemas/zod/paymentLink.schema.ts
|
|
423
|
-
var import_zod3 = require(
|
|
447
|
+
// domain/schemas/zod/paymentLink.schema.ts
|
|
448
|
+
var import_zod3 = require('@forklaunch/validator/zod');
|
|
424
449
|
var CreatePaymentLinkSchema2 = (StatusEnum) => ({
|
|
425
450
|
id: (0, import_zod3.optional)(import_zod3.string),
|
|
426
451
|
amount: import_zod3.number,
|
|
427
452
|
currency: (0, import_zod3.enum_)(CurrencyEnum),
|
|
428
|
-
paymentMethods: (0, import_zod3.array)(
|
|
453
|
+
paymentMethods: (0, import_zod3.array)(
|
|
454
|
+
(0, import_zod3.enum_)(PaymentMethodEnum)
|
|
455
|
+
),
|
|
429
456
|
status: (0, import_zod3.enum_)(StatusEnum),
|
|
430
457
|
stripeFields: (0, import_zod3.type)()
|
|
431
458
|
});
|
|
@@ -433,7 +460,9 @@ var UpdatePaymentLinkSchema2 = (StatusEnum) => ({
|
|
|
433
460
|
id: import_zod3.string,
|
|
434
461
|
amount: (0, import_zod3.optional)(import_zod3.number),
|
|
435
462
|
currency: (0, import_zod3.optional)((0, import_zod3.enum_)(CurrencyEnum)),
|
|
436
|
-
paymentMethods: (0, import_zod3.optional)(
|
|
463
|
+
paymentMethods: (0, import_zod3.optional)(
|
|
464
|
+
(0, import_zod3.array)((0, import_zod3.enum_)(PaymentMethodEnum))
|
|
465
|
+
),
|
|
437
466
|
status: (0, import_zod3.optional)((0, import_zod3.enum_)(StatusEnum)),
|
|
438
467
|
stripeFields: (0, import_zod3.optional)((0, import_zod3.type)())
|
|
439
468
|
});
|
|
@@ -441,7 +470,9 @@ var PaymentLinkSchema2 = (StatusEnum) => ({
|
|
|
441
470
|
id: import_zod3.string,
|
|
442
471
|
amount: import_zod3.number,
|
|
443
472
|
currency: (0, import_zod3.enum_)(CurrencyEnum),
|
|
444
|
-
paymentMethods: (0, import_zod3.array)(
|
|
473
|
+
paymentMethods: (0, import_zod3.array)(
|
|
474
|
+
(0, import_zod3.enum_)(PaymentMethodEnum)
|
|
475
|
+
),
|
|
445
476
|
status: (0, import_zod3.enum_)(StatusEnum),
|
|
446
477
|
stripeFields: (0, import_zod3.type)(),
|
|
447
478
|
createdAt: (0, import_zod3.optional)(import_zod3.date),
|
|
@@ -453,33 +484,34 @@ var StripePaymentLinkServiceSchemas2 = {
|
|
|
453
484
|
PaymentLinkSchema: PaymentLinkSchema2
|
|
454
485
|
};
|
|
455
486
|
|
|
456
|
-
// schemas/paymentLink.schema.ts
|
|
457
|
-
var StripePaymentLinkServiceSchemas3 = (0,
|
|
487
|
+
// domain/schemas/paymentLink.schema.ts
|
|
488
|
+
var StripePaymentLinkServiceSchemas3 = (0,
|
|
489
|
+
import_internal3.serviceSchemaResolver)(
|
|
458
490
|
() => StripePaymentLinkServiceSchemas,
|
|
459
491
|
() => StripePaymentLinkServiceSchemas2
|
|
460
492
|
);
|
|
461
493
|
|
|
462
|
-
// schemas/plan.schema.ts
|
|
463
|
-
var import_internal4 = require(
|
|
494
|
+
// domain/schemas/plan.schema.ts
|
|
495
|
+
var import_internal4 = require('@forklaunch/internal');
|
|
464
496
|
|
|
465
|
-
// schemas/typebox/plan.schema.ts
|
|
466
|
-
var import_typebox4 = require(
|
|
497
|
+
// domain/schemas/typebox/plan.schema.ts
|
|
498
|
+
var import_typebox4 = require('@forklaunch/validator/typebox');
|
|
467
499
|
|
|
468
|
-
// domain/
|
|
500
|
+
// domain/enum/billingProvider.enum.ts
|
|
469
501
|
var BillingProviderEnum = /* @__PURE__ */ ((BillingProviderEnum2) => {
|
|
470
|
-
BillingProviderEnum2[
|
|
502
|
+
BillingProviderEnum2['STRIPE'] = 'stripe';
|
|
471
503
|
return BillingProviderEnum2;
|
|
472
504
|
})(BillingProviderEnum || {});
|
|
473
505
|
|
|
474
|
-
// domain/
|
|
506
|
+
// domain/enum/planCadence.enum.ts
|
|
475
507
|
var PlanCadenceEnum = /* @__PURE__ */ ((PlanCadenceEnum2) => {
|
|
476
|
-
PlanCadenceEnum2[
|
|
477
|
-
PlanCadenceEnum2[
|
|
478
|
-
PlanCadenceEnum2[
|
|
508
|
+
PlanCadenceEnum2['WEEKLY'] = 'week';
|
|
509
|
+
PlanCadenceEnum2['MONTHLY'] = 'month';
|
|
510
|
+
PlanCadenceEnum2['ANNUALLY'] = 'year';
|
|
479
511
|
return PlanCadenceEnum2;
|
|
480
512
|
})(PlanCadenceEnum || {});
|
|
481
513
|
|
|
482
|
-
// schemas/typebox/plan.schema.ts
|
|
514
|
+
// domain/schemas/typebox/plan.schema.ts
|
|
483
515
|
var CreatePlanSchema = {
|
|
484
516
|
id: (0, import_typebox4.optional)(import_typebox4.string),
|
|
485
517
|
name: import_typebox4.string,
|
|
@@ -487,10 +519,14 @@ var CreatePlanSchema = {
|
|
|
487
519
|
price: import_typebox4.number,
|
|
488
520
|
cadence: (0, import_typebox4.enum_)(PlanCadenceEnum),
|
|
489
521
|
currency: (0, import_typebox4.enum_)(CurrencyEnum),
|
|
490
|
-
features: (0, import_typebox4.optional)(
|
|
522
|
+
features: (0, import_typebox4.optional)(
|
|
523
|
+
(0, import_typebox4.array)(import_typebox4.string)
|
|
524
|
+
),
|
|
491
525
|
stripeFields: (0, import_typebox4.type)(),
|
|
492
526
|
externalId: import_typebox4.string,
|
|
493
|
-
billingProvider: (0, import_typebox4.optional)(
|
|
527
|
+
billingProvider: (0, import_typebox4.optional)(
|
|
528
|
+
(0, import_typebox4.enum_)(BillingProviderEnum)
|
|
529
|
+
),
|
|
494
530
|
active: import_typebox4.boolean
|
|
495
531
|
};
|
|
496
532
|
var UpdatePlanSchema = {
|
|
@@ -498,12 +534,20 @@ var UpdatePlanSchema = {
|
|
|
498
534
|
name: (0, import_typebox4.optional)(import_typebox4.string),
|
|
499
535
|
description: (0, import_typebox4.optional)(import_typebox4.string),
|
|
500
536
|
price: (0, import_typebox4.optional)(import_typebox4.number),
|
|
501
|
-
cadence: (0, import_typebox4.optional)(
|
|
502
|
-
|
|
503
|
-
|
|
537
|
+
cadence: (0, import_typebox4.optional)(
|
|
538
|
+
(0, import_typebox4.enum_)(PlanCadenceEnum)
|
|
539
|
+
),
|
|
540
|
+
currency: (0, import_typebox4.optional)(
|
|
541
|
+
(0, import_typebox4.enum_)(CurrencyEnum)
|
|
542
|
+
),
|
|
543
|
+
features: (0, import_typebox4.optional)(
|
|
544
|
+
(0, import_typebox4.array)(import_typebox4.string)
|
|
545
|
+
),
|
|
504
546
|
stripeFields: (0, import_typebox4.optional)((0, import_typebox4.type)()),
|
|
505
547
|
externalId: (0, import_typebox4.optional)(import_typebox4.string),
|
|
506
|
-
billingProvider: (0, import_typebox4.optional)(
|
|
548
|
+
billingProvider: (0, import_typebox4.optional)(
|
|
549
|
+
(0, import_typebox4.enum_)(BillingProviderEnum)
|
|
550
|
+
),
|
|
507
551
|
active: (0, import_typebox4.optional)(import_typebox4.boolean)
|
|
508
552
|
};
|
|
509
553
|
var PlanSchema = {
|
|
@@ -513,10 +557,14 @@ var PlanSchema = {
|
|
|
513
557
|
price: import_typebox4.number,
|
|
514
558
|
cadence: (0, import_typebox4.enum_)(PlanCadenceEnum),
|
|
515
559
|
currency: (0, import_typebox4.enum_)(CurrencyEnum),
|
|
516
|
-
features: (0, import_typebox4.optional)(
|
|
560
|
+
features: (0, import_typebox4.optional)(
|
|
561
|
+
(0, import_typebox4.array)(import_typebox4.string)
|
|
562
|
+
),
|
|
517
563
|
stripeFields: (0, import_typebox4.type)(),
|
|
518
564
|
externalId: import_typebox4.string,
|
|
519
|
-
billingProvider: (0, import_typebox4.optional)(
|
|
565
|
+
billingProvider: (0, import_typebox4.optional)(
|
|
566
|
+
(0, import_typebox4.enum_)(BillingProviderEnum)
|
|
567
|
+
),
|
|
520
568
|
active: import_typebox4.boolean,
|
|
521
569
|
createdAt: (0, import_typebox4.optional)(import_typebox4.date),
|
|
522
570
|
updatedAt: (0, import_typebox4.optional)(import_typebox4.date)
|
|
@@ -527,8 +575,8 @@ var StripePlanServiceSchemas = {
|
|
|
527
575
|
PlanSchema
|
|
528
576
|
};
|
|
529
577
|
|
|
530
|
-
// schemas/zod/plan.schema.ts
|
|
531
|
-
var import_zod4 = require(
|
|
578
|
+
// domain/schemas/zod/plan.schema.ts
|
|
579
|
+
var import_zod4 = require('@forklaunch/validator/zod');
|
|
532
580
|
var CreatePlanSchema2 = {
|
|
533
581
|
id: (0, import_zod4.optional)(import_zod4.string),
|
|
534
582
|
name: import_zod4.string,
|
|
@@ -536,10 +584,14 @@ var CreatePlanSchema2 = {
|
|
|
536
584
|
price: import_zod4.number,
|
|
537
585
|
cadence: (0, import_zod4.enum_)(PlanCadenceEnum),
|
|
538
586
|
currency: (0, import_zod4.enum_)(CurrencyEnum),
|
|
539
|
-
features: (0, import_zod4.optional)(
|
|
587
|
+
features: (0, import_zod4.optional)(
|
|
588
|
+
(0, import_zod4.array)(import_zod4.string)
|
|
589
|
+
),
|
|
540
590
|
stripeFields: (0, import_zod4.type)(),
|
|
541
591
|
externalId: import_zod4.string,
|
|
542
|
-
billingProvider: (0, import_zod4.optional)(
|
|
592
|
+
billingProvider: (0, import_zod4.optional)(
|
|
593
|
+
(0, import_zod4.enum_)(BillingProviderEnum)
|
|
594
|
+
),
|
|
543
595
|
active: import_zod4.boolean
|
|
544
596
|
};
|
|
545
597
|
var UpdatePlanSchema2 = {
|
|
@@ -549,10 +601,14 @@ var UpdatePlanSchema2 = {
|
|
|
549
601
|
price: (0, import_zod4.optional)(import_zod4.number),
|
|
550
602
|
cadence: (0, import_zod4.optional)((0, import_zod4.enum_)(PlanCadenceEnum)),
|
|
551
603
|
currency: (0, import_zod4.optional)((0, import_zod4.enum_)(CurrencyEnum)),
|
|
552
|
-
features: (0, import_zod4.optional)(
|
|
604
|
+
features: (0, import_zod4.optional)(
|
|
605
|
+
(0, import_zod4.array)(import_zod4.string)
|
|
606
|
+
),
|
|
553
607
|
stripeFields: (0, import_zod4.optional)((0, import_zod4.type)()),
|
|
554
608
|
externalId: (0, import_zod4.optional)(import_zod4.string),
|
|
555
|
-
billingProvider: (0, import_zod4.optional)(
|
|
609
|
+
billingProvider: (0, import_zod4.optional)(
|
|
610
|
+
(0, import_zod4.enum_)(BillingProviderEnum)
|
|
611
|
+
),
|
|
556
612
|
active: (0, import_zod4.optional)(import_zod4.boolean)
|
|
557
613
|
};
|
|
558
614
|
var PlanSchema2 = {
|
|
@@ -562,10 +618,14 @@ var PlanSchema2 = {
|
|
|
562
618
|
price: import_zod4.number,
|
|
563
619
|
cadence: (0, import_zod4.enum_)(PlanCadenceEnum),
|
|
564
620
|
currency: (0, import_zod4.enum_)(CurrencyEnum),
|
|
565
|
-
features: (0, import_zod4.optional)(
|
|
621
|
+
features: (0, import_zod4.optional)(
|
|
622
|
+
(0, import_zod4.array)(import_zod4.string)
|
|
623
|
+
),
|
|
566
624
|
stripeFields: (0, import_zod4.type)(),
|
|
567
625
|
externalId: import_zod4.string,
|
|
568
|
-
billingProvider: (0, import_zod4.optional)(
|
|
626
|
+
billingProvider: (0, import_zod4.optional)(
|
|
627
|
+
(0, import_zod4.enum_)(BillingProviderEnum)
|
|
628
|
+
),
|
|
569
629
|
active: import_zod4.boolean,
|
|
570
630
|
createdAt: (0, import_zod4.optional)(import_zod4.date),
|
|
571
631
|
updatedAt: (0, import_zod4.optional)(import_zod4.date)
|
|
@@ -576,17 +636,17 @@ var StripePlanServiceSchemas2 = {
|
|
|
576
636
|
PlanSchema: PlanSchema2
|
|
577
637
|
};
|
|
578
638
|
|
|
579
|
-
// schemas/plan.schema.ts
|
|
639
|
+
// domain/schemas/plan.schema.ts
|
|
580
640
|
var StripePlanServiceSchemas3 = (0, import_internal4.serviceSchemaResolver)(
|
|
581
641
|
() => StripePlanServiceSchemas,
|
|
582
642
|
() => StripePlanServiceSchemas2
|
|
583
643
|
);
|
|
584
644
|
|
|
585
|
-
// schemas/subscription.schema.ts
|
|
586
|
-
var import_internal5 = require(
|
|
645
|
+
// domain/schemas/subscription.schema.ts
|
|
646
|
+
var import_internal5 = require('@forklaunch/internal');
|
|
587
647
|
|
|
588
|
-
// schemas/typebox/subscription.schema.ts
|
|
589
|
-
var import_typebox5 = require(
|
|
648
|
+
// domain/schemas/typebox/subscription.schema.ts
|
|
649
|
+
var import_typebox5 = require('@forklaunch/validator/typebox');
|
|
590
650
|
var CreateSubscriptionSchema = (PartyEnum) => ({
|
|
591
651
|
id: (0, import_typebox5.optional)(import_typebox5.string),
|
|
592
652
|
partyId: import_typebox5.string,
|
|
@@ -598,13 +658,17 @@ var CreateSubscriptionSchema = (PartyEnum) => ({
|
|
|
598
658
|
startDate: import_typebox5.date,
|
|
599
659
|
endDate: (0, import_typebox5.optional)(import_typebox5.date),
|
|
600
660
|
status: import_typebox5.string,
|
|
601
|
-
billingProvider: (0, import_typebox5.optional)(
|
|
661
|
+
billingProvider: (0, import_typebox5.optional)(
|
|
662
|
+
(0, import_typebox5.enum_)(BillingProviderEnum)
|
|
663
|
+
),
|
|
602
664
|
stripeFields: (0, import_typebox5.type)()
|
|
603
665
|
});
|
|
604
666
|
var UpdateSubscriptionSchema = (PartyEnum) => ({
|
|
605
667
|
id: import_typebox5.string,
|
|
606
668
|
partyId: (0, import_typebox5.optional)(import_typebox5.string),
|
|
607
|
-
partyType: (0, import_typebox5.optional)(
|
|
669
|
+
partyType: (0, import_typebox5.optional)(
|
|
670
|
+
(0, import_typebox5.enum_)(PartyEnum)
|
|
671
|
+
),
|
|
608
672
|
productId: (0, import_typebox5.optional)(import_typebox5.string),
|
|
609
673
|
description: (0, import_typebox5.optional)(import_typebox5.string),
|
|
610
674
|
active: (0, import_typebox5.optional)(import_typebox5.boolean),
|
|
@@ -612,7 +676,9 @@ var UpdateSubscriptionSchema = (PartyEnum) => ({
|
|
|
612
676
|
startDate: (0, import_typebox5.optional)(import_typebox5.date),
|
|
613
677
|
endDate: (0, import_typebox5.optional)(import_typebox5.date),
|
|
614
678
|
status: (0, import_typebox5.optional)(import_typebox5.string),
|
|
615
|
-
billingProvider: (0, import_typebox5.optional)(
|
|
679
|
+
billingProvider: (0, import_typebox5.optional)(
|
|
680
|
+
(0, import_typebox5.enum_)(BillingProviderEnum)
|
|
681
|
+
),
|
|
616
682
|
stripeFields: (0, import_typebox5.optional)((0, import_typebox5.type)())
|
|
617
683
|
});
|
|
618
684
|
var SubscriptionSchema = (PartyEnum) => ({
|
|
@@ -626,7 +692,9 @@ var SubscriptionSchema = (PartyEnum) => ({
|
|
|
626
692
|
startDate: import_typebox5.date,
|
|
627
693
|
endDate: (0, import_typebox5.optional)(import_typebox5.date),
|
|
628
694
|
status: import_typebox5.string,
|
|
629
|
-
billingProvider: (0, import_typebox5.optional)(
|
|
695
|
+
billingProvider: (0, import_typebox5.optional)(
|
|
696
|
+
(0, import_typebox5.enum_)(BillingProviderEnum)
|
|
697
|
+
),
|
|
630
698
|
stripeFields: (0, import_typebox5.type)(),
|
|
631
699
|
createdAt: (0, import_typebox5.optional)(import_typebox5.date),
|
|
632
700
|
updatedAt: (0, import_typebox5.optional)(import_typebox5.date)
|
|
@@ -637,8 +705,8 @@ var StripeSubscriptionServiceSchemas = {
|
|
|
637
705
|
SubscriptionSchema
|
|
638
706
|
};
|
|
639
707
|
|
|
640
|
-
// schemas/zod/subscription.schema.ts
|
|
641
|
-
var import_zod5 = require(
|
|
708
|
+
// domain/schemas/zod/subscription.schema.ts
|
|
709
|
+
var import_zod5 = require('@forklaunch/validator/zod');
|
|
642
710
|
var CreateSubscriptionSchema2 = (PartyEnum) => ({
|
|
643
711
|
id: (0, import_zod5.optional)(import_zod5.string),
|
|
644
712
|
partyId: import_zod5.string,
|
|
@@ -650,7 +718,9 @@ var CreateSubscriptionSchema2 = (PartyEnum) => ({
|
|
|
650
718
|
startDate: import_zod5.date,
|
|
651
719
|
endDate: (0, import_zod5.optional)(import_zod5.date),
|
|
652
720
|
status: import_zod5.string,
|
|
653
|
-
billingProvider: (0, import_zod5.optional)(
|
|
721
|
+
billingProvider: (0, import_zod5.optional)(
|
|
722
|
+
(0, import_zod5.enum_)(BillingProviderEnum)
|
|
723
|
+
),
|
|
654
724
|
stripeFields: (0, import_zod5.type)()
|
|
655
725
|
});
|
|
656
726
|
var UpdateSubscriptionSchema2 = (PartyEnum) => ({
|
|
@@ -664,7 +734,9 @@ var UpdateSubscriptionSchema2 = (PartyEnum) => ({
|
|
|
664
734
|
startDate: (0, import_zod5.optional)(import_zod5.date),
|
|
665
735
|
endDate: (0, import_zod5.optional)(import_zod5.date),
|
|
666
736
|
status: (0, import_zod5.optional)(import_zod5.string),
|
|
667
|
-
billingProvider: (0, import_zod5.optional)(
|
|
737
|
+
billingProvider: (0, import_zod5.optional)(
|
|
738
|
+
(0, import_zod5.enum_)(BillingProviderEnum)
|
|
739
|
+
),
|
|
668
740
|
stripeFields: (0, import_zod5.optional)((0, import_zod5.type)())
|
|
669
741
|
});
|
|
670
742
|
var SubscriptionSchema2 = (PartyEnum) => ({
|
|
@@ -678,7 +750,9 @@ var SubscriptionSchema2 = (PartyEnum) => ({
|
|
|
678
750
|
startDate: import_zod5.date,
|
|
679
751
|
endDate: (0, import_zod5.optional)(import_zod5.date),
|
|
680
752
|
status: import_zod5.string,
|
|
681
|
-
billingProvider: (0, import_zod5.optional)(
|
|
753
|
+
billingProvider: (0, import_zod5.optional)(
|
|
754
|
+
(0, import_zod5.enum_)(BillingProviderEnum)
|
|
755
|
+
),
|
|
682
756
|
stripeFields: (0, import_zod5.type)(),
|
|
683
757
|
createdAt: (0, import_zod5.optional)(import_zod5.date),
|
|
684
758
|
updatedAt: (0, import_zod5.optional)(import_zod5.date)
|
|
@@ -689,16 +763,18 @@ var StripeSubscriptionServiceSchemas2 = {
|
|
|
689
763
|
SubscriptionSchema: SubscriptionSchema2
|
|
690
764
|
};
|
|
691
765
|
|
|
692
|
-
// schemas/subscription.schema.ts
|
|
693
|
-
var StripeSubscriptionServiceSchemas3 = (0,
|
|
766
|
+
// domain/schemas/subscription.schema.ts
|
|
767
|
+
var StripeSubscriptionServiceSchemas3 = (0,
|
|
768
|
+
import_internal5.serviceSchemaResolver)(
|
|
694
769
|
() => StripeSubscriptionServiceSchemas,
|
|
695
770
|
() => StripeSubscriptionServiceSchemas2
|
|
696
771
|
);
|
|
697
772
|
// Annotate the CommonJS export names for ESM import in node:
|
|
698
|
-
0 &&
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
773
|
+
0 &&
|
|
774
|
+
(module.exports = {
|
|
775
|
+
StripeBillingPortalServiceSchemas,
|
|
776
|
+
StripeCheckoutSessionServiceSchemas,
|
|
777
|
+
StripePaymentLinkServiceSchemas,
|
|
778
|
+
StripePlanServiceSchemas,
|
|
779
|
+
StripeSubscriptionServiceSchemas
|
|
780
|
+
});
|