@forklaunch/implementation-billing-stripe 0.0.2 → 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 +349 -269
- package/lib/{schemas → domain/schemas}/index.mjs +222 -217
- 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/schemas/checkoutSession.schema.ts +3 -2
- 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 +15 -15
- package/lib/enum/index.d.mts +0 -189
- package/lib/enum/index.d.ts +0 -189
- package/lib/enum/index.js +0 -231
- package/lib/enum/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
- /package/lib/eject/{types → domain/types}/stripe.dto.types.ts +0 -0
- /package/lib/eject/{types → domain/types}/stripe.entity.types.ts +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
// schemas/billingPortal.schema.ts
|
|
2
|
-
import { serviceSchemaResolver } from
|
|
1
|
+
// domain/schemas/billingPortal.schema.ts
|
|
2
|
+
import { serviceSchemaResolver } from '@forklaunch/internal';
|
|
3
3
|
|
|
4
|
-
// schemas/typebox/billingPortal.schema.ts
|
|
5
|
-
import { date, optional, string, type } from
|
|
4
|
+
// domain/schemas/typebox/billingPortal.schema.ts
|
|
5
|
+
import { date, optional, string, type } from '@forklaunch/validator/typebox';
|
|
6
6
|
var CreateBillingPortalSchema = {
|
|
7
7
|
id: optional(string),
|
|
8
8
|
customerId: string,
|
|
@@ -31,8 +31,13 @@ var StripeBillingPortalServiceSchemas = {
|
|
|
31
31
|
BillingPortalSchema
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
-
// schemas/zod/billingPortal.schema.ts
|
|
35
|
-
import {
|
|
34
|
+
// domain/schemas/zod/billingPortal.schema.ts
|
|
35
|
+
import {
|
|
36
|
+
date as date2,
|
|
37
|
+
optional as optional2,
|
|
38
|
+
string as string2,
|
|
39
|
+
type as type2
|
|
40
|
+
} from '@forklaunch/validator/zod';
|
|
36
41
|
var CreateBillingPortalSchema2 = {
|
|
37
42
|
id: optional2(string2),
|
|
38
43
|
customerId: string2,
|
|
@@ -61,16 +66,16 @@ var StripeBillingPortalServiceSchemas2 = {
|
|
|
61
66
|
BillingPortalSchema: BillingPortalSchema2
|
|
62
67
|
};
|
|
63
68
|
|
|
64
|
-
// schemas/billingPortal.schema.ts
|
|
69
|
+
// domain/schemas/billingPortal.schema.ts
|
|
65
70
|
var StripeBillingPortalServiceSchemas3 = serviceSchemaResolver(
|
|
66
71
|
() => StripeBillingPortalServiceSchemas,
|
|
67
72
|
() => StripeBillingPortalServiceSchemas2
|
|
68
73
|
);
|
|
69
74
|
|
|
70
|
-
// schemas/checkoutSession.schema.ts
|
|
71
|
-
import { serviceSchemaResolver as serviceSchemaResolver2 } from
|
|
75
|
+
// domain/schemas/checkoutSession.schema.ts
|
|
76
|
+
import { serviceSchemaResolver as serviceSchemaResolver2 } from '@forklaunch/internal';
|
|
72
77
|
|
|
73
|
-
// schemas/typebox/checkoutSession.schema.ts
|
|
78
|
+
// domain/schemas/typebox/checkoutSession.schema.ts
|
|
74
79
|
import {
|
|
75
80
|
array,
|
|
76
81
|
date as date3,
|
|
@@ -79,191 +84,191 @@ import {
|
|
|
79
84
|
string as string3,
|
|
80
85
|
type as type3,
|
|
81
86
|
unknown
|
|
82
|
-
} from
|
|
87
|
+
} from '@forklaunch/validator/typebox';
|
|
83
88
|
|
|
84
|
-
// enum/currency.enum.ts
|
|
89
|
+
// domain/enum/currency.enum.ts
|
|
85
90
|
var CurrencyEnum = /* @__PURE__ */ ((CurrencyEnum2) => {
|
|
86
|
-
CurrencyEnum2[
|
|
87
|
-
CurrencyEnum2[
|
|
88
|
-
CurrencyEnum2[
|
|
89
|
-
CurrencyEnum2[
|
|
90
|
-
CurrencyEnum2[
|
|
91
|
-
CurrencyEnum2[
|
|
92
|
-
CurrencyEnum2[
|
|
93
|
-
CurrencyEnum2[
|
|
94
|
-
CurrencyEnum2[
|
|
95
|
-
CurrencyEnum2[
|
|
96
|
-
CurrencyEnum2[
|
|
97
|
-
CurrencyEnum2[
|
|
98
|
-
CurrencyEnum2[
|
|
99
|
-
CurrencyEnum2[
|
|
100
|
-
CurrencyEnum2[
|
|
101
|
-
CurrencyEnum2[
|
|
102
|
-
CurrencyEnum2[
|
|
103
|
-
CurrencyEnum2[
|
|
104
|
-
CurrencyEnum2[
|
|
105
|
-
CurrencyEnum2[
|
|
106
|
-
CurrencyEnum2[
|
|
107
|
-
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[
|
|
91
|
+
CurrencyEnum2['USD'] = 'USD';
|
|
92
|
+
CurrencyEnum2['AED'] = 'AED';
|
|
93
|
+
CurrencyEnum2['AFN'] = 'AFN';
|
|
94
|
+
CurrencyEnum2['ALL'] = 'ALL';
|
|
95
|
+
CurrencyEnum2['AMD'] = 'AMD';
|
|
96
|
+
CurrencyEnum2['ANG'] = 'ANG';
|
|
97
|
+
CurrencyEnum2['AOA'] = 'AOA';
|
|
98
|
+
CurrencyEnum2['ARS'] = 'ARS';
|
|
99
|
+
CurrencyEnum2['AUD'] = 'AUD';
|
|
100
|
+
CurrencyEnum2['AWG'] = 'AWG';
|
|
101
|
+
CurrencyEnum2['AZN'] = 'AZN';
|
|
102
|
+
CurrencyEnum2['BAM'] = 'BAM';
|
|
103
|
+
CurrencyEnum2['BBD'] = 'BBD';
|
|
104
|
+
CurrencyEnum2['BDT'] = 'BDT';
|
|
105
|
+
CurrencyEnum2['BGN'] = 'BGN';
|
|
106
|
+
CurrencyEnum2['BIF'] = 'BIF';
|
|
107
|
+
CurrencyEnum2['BMD'] = 'BMD';
|
|
108
|
+
CurrencyEnum2['BND'] = 'BND';
|
|
109
|
+
CurrencyEnum2['BOB'] = 'BOB';
|
|
110
|
+
CurrencyEnum2['BRL'] = 'BRL';
|
|
111
|
+
CurrencyEnum2['BSD'] = 'BSD';
|
|
112
|
+
CurrencyEnum2['BWP'] = 'BWP';
|
|
113
|
+
CurrencyEnum2['BYN'] = 'BYN';
|
|
114
|
+
CurrencyEnum2['BZD'] = 'BZD';
|
|
115
|
+
CurrencyEnum2['CAD'] = 'CAD';
|
|
116
|
+
CurrencyEnum2['CDF'] = 'CDF';
|
|
117
|
+
CurrencyEnum2['CHF'] = 'CHF';
|
|
118
|
+
CurrencyEnum2['CLP'] = 'CLP';
|
|
119
|
+
CurrencyEnum2['CNY'] = 'CNY';
|
|
120
|
+
CurrencyEnum2['COP'] = 'COP';
|
|
121
|
+
CurrencyEnum2['CRC'] = 'CRC';
|
|
122
|
+
CurrencyEnum2['CVE'] = 'CVE';
|
|
123
|
+
CurrencyEnum2['CZK'] = 'CZK';
|
|
124
|
+
CurrencyEnum2['DJF'] = 'DJF';
|
|
125
|
+
CurrencyEnum2['DKK'] = 'DKK';
|
|
126
|
+
CurrencyEnum2['DOP'] = 'DOP';
|
|
127
|
+
CurrencyEnum2['DZD'] = 'DZD';
|
|
128
|
+
CurrencyEnum2['EGP'] = 'EGP';
|
|
129
|
+
CurrencyEnum2['ETB'] = 'ETB';
|
|
130
|
+
CurrencyEnum2['EUR'] = 'EUR';
|
|
131
|
+
CurrencyEnum2['FJD'] = 'FJD';
|
|
132
|
+
CurrencyEnum2['FKP'] = 'FKP';
|
|
133
|
+
CurrencyEnum2['GBP'] = 'GBP';
|
|
134
|
+
CurrencyEnum2['GEL'] = 'GEL';
|
|
135
|
+
CurrencyEnum2['GIP'] = 'GIP';
|
|
136
|
+
CurrencyEnum2['GMD'] = 'GMD';
|
|
137
|
+
CurrencyEnum2['GNF'] = 'GNF';
|
|
138
|
+
CurrencyEnum2['GTQ'] = 'GTQ';
|
|
139
|
+
CurrencyEnum2['GYD'] = 'GYD';
|
|
140
|
+
CurrencyEnum2['HKD'] = 'HKD';
|
|
141
|
+
CurrencyEnum2['HNL'] = 'HNL';
|
|
142
|
+
CurrencyEnum2['HTG'] = 'HTG';
|
|
143
|
+
CurrencyEnum2['HUF'] = 'HUF';
|
|
144
|
+
CurrencyEnum2['IDR'] = 'IDR';
|
|
145
|
+
CurrencyEnum2['ILS'] = 'ILS';
|
|
146
|
+
CurrencyEnum2['INR'] = 'INR';
|
|
147
|
+
CurrencyEnum2['ISK'] = 'ISK';
|
|
148
|
+
CurrencyEnum2['JMD'] = 'JMD';
|
|
149
|
+
CurrencyEnum2['JPY'] = 'JPY';
|
|
150
|
+
CurrencyEnum2['KES'] = 'KES';
|
|
151
|
+
CurrencyEnum2['KGS'] = 'KGS';
|
|
152
|
+
CurrencyEnum2['KHR'] = 'KHR';
|
|
153
|
+
CurrencyEnum2['KMF'] = 'KMF';
|
|
154
|
+
CurrencyEnum2['KRW'] = 'KRW';
|
|
155
|
+
CurrencyEnum2['KYD'] = 'KYD';
|
|
156
|
+
CurrencyEnum2['KZT'] = 'KZT';
|
|
157
|
+
CurrencyEnum2['LAK'] = 'LAK';
|
|
158
|
+
CurrencyEnum2['LBP'] = 'LBP';
|
|
159
|
+
CurrencyEnum2['LKR'] = 'LKR';
|
|
160
|
+
CurrencyEnum2['LRD'] = 'LRD';
|
|
161
|
+
CurrencyEnum2['LSL'] = 'LSL';
|
|
162
|
+
CurrencyEnum2['MAD'] = 'MAD';
|
|
163
|
+
CurrencyEnum2['MDL'] = 'MDL';
|
|
164
|
+
CurrencyEnum2['MGA'] = 'MGA';
|
|
165
|
+
CurrencyEnum2['MKD'] = 'MKD';
|
|
166
|
+
CurrencyEnum2['MMK'] = 'MMK';
|
|
167
|
+
CurrencyEnum2['MNT'] = 'MNT';
|
|
168
|
+
CurrencyEnum2['MOP'] = 'MOP';
|
|
169
|
+
CurrencyEnum2['MUR'] = 'MUR';
|
|
170
|
+
CurrencyEnum2['MVR'] = 'MVR';
|
|
171
|
+
CurrencyEnum2['MWK'] = 'MWK';
|
|
172
|
+
CurrencyEnum2['MXN'] = 'MXN';
|
|
173
|
+
CurrencyEnum2['MYR'] = 'MYR';
|
|
174
|
+
CurrencyEnum2['MZN'] = 'MZN';
|
|
175
|
+
CurrencyEnum2['NAD'] = 'NAD';
|
|
176
|
+
CurrencyEnum2['NGN'] = 'NGN';
|
|
177
|
+
CurrencyEnum2['NIO'] = 'NIO';
|
|
178
|
+
CurrencyEnum2['NOK'] = 'NOK';
|
|
179
|
+
CurrencyEnum2['NPR'] = 'NPR';
|
|
180
|
+
CurrencyEnum2['NZD'] = 'NZD';
|
|
181
|
+
CurrencyEnum2['PAB'] = 'PAB';
|
|
182
|
+
CurrencyEnum2['PEN'] = 'PEN';
|
|
183
|
+
CurrencyEnum2['PGK'] = 'PGK';
|
|
184
|
+
CurrencyEnum2['PHP'] = 'PHP';
|
|
185
|
+
CurrencyEnum2['PKR'] = 'PKR';
|
|
186
|
+
CurrencyEnum2['PLN'] = 'PLN';
|
|
187
|
+
CurrencyEnum2['PYG'] = 'PYG';
|
|
188
|
+
CurrencyEnum2['QAR'] = 'QAR';
|
|
189
|
+
CurrencyEnum2['RON'] = 'RON';
|
|
190
|
+
CurrencyEnum2['RSD'] = 'RSD';
|
|
191
|
+
CurrencyEnum2['RUB'] = 'RUB';
|
|
192
|
+
CurrencyEnum2['RWF'] = 'RWF';
|
|
193
|
+
CurrencyEnum2['SAR'] = 'SAR';
|
|
194
|
+
CurrencyEnum2['SBD'] = 'SBD';
|
|
195
|
+
CurrencyEnum2['SCR'] = 'SCR';
|
|
196
|
+
CurrencyEnum2['SEK'] = 'SEK';
|
|
197
|
+
CurrencyEnum2['SGD'] = 'SGD';
|
|
198
|
+
CurrencyEnum2['SHP'] = 'SHP';
|
|
199
|
+
CurrencyEnum2['SLE'] = 'SLE';
|
|
200
|
+
CurrencyEnum2['SOS'] = 'SOS';
|
|
201
|
+
CurrencyEnum2['SRD'] = 'SRD';
|
|
202
|
+
CurrencyEnum2['STD'] = 'STD';
|
|
203
|
+
CurrencyEnum2['SZL'] = 'SZL';
|
|
204
|
+
CurrencyEnum2['THB'] = 'THB';
|
|
205
|
+
CurrencyEnum2['TJS'] = 'TJS';
|
|
206
|
+
CurrencyEnum2['TOP'] = 'TOP';
|
|
207
|
+
CurrencyEnum2['TRY'] = 'TRY';
|
|
208
|
+
CurrencyEnum2['TTD'] = 'TTD';
|
|
209
|
+
CurrencyEnum2['TWD'] = 'TWD';
|
|
210
|
+
CurrencyEnum2['TZS'] = 'TZS';
|
|
211
|
+
CurrencyEnum2['UAH'] = 'UAH';
|
|
212
|
+
CurrencyEnum2['UGX'] = 'UGX';
|
|
213
|
+
CurrencyEnum2['UYU'] = 'UYU';
|
|
214
|
+
CurrencyEnum2['UZS'] = 'UZS';
|
|
215
|
+
CurrencyEnum2['VND'] = 'VND';
|
|
216
|
+
CurrencyEnum2['VUV'] = 'VUV';
|
|
217
|
+
CurrencyEnum2['WST'] = 'WST';
|
|
218
|
+
CurrencyEnum2['XAF'] = 'XAF';
|
|
219
|
+
CurrencyEnum2['XCD'] = 'XCD';
|
|
220
|
+
CurrencyEnum2['XCG'] = 'XCG';
|
|
221
|
+
CurrencyEnum2['XOF'] = 'XOF';
|
|
222
|
+
CurrencyEnum2['XPF'] = 'XPF';
|
|
223
|
+
CurrencyEnum2['YER'] = 'YER';
|
|
224
|
+
CurrencyEnum2['ZAR'] = 'ZAR';
|
|
225
|
+
CurrencyEnum2['ZMW'] = 'ZMW';
|
|
221
226
|
return CurrencyEnum2;
|
|
222
227
|
})(CurrencyEnum || {});
|
|
223
228
|
|
|
224
|
-
// enum/paymentMethod.enum.ts
|
|
229
|
+
// domain/enum/paymentMethod.enum.ts
|
|
225
230
|
var PaymentMethodEnum = /* @__PURE__ */ ((PaymentMethodEnum2) => {
|
|
226
|
-
PaymentMethodEnum2[
|
|
227
|
-
PaymentMethodEnum2[
|
|
228
|
-
PaymentMethodEnum2[
|
|
229
|
-
PaymentMethodEnum2[
|
|
230
|
-
PaymentMethodEnum2[
|
|
231
|
-
PaymentMethodEnum2[
|
|
232
|
-
PaymentMethodEnum2[
|
|
233
|
-
PaymentMethodEnum2[
|
|
234
|
-
PaymentMethodEnum2[
|
|
235
|
-
PaymentMethodEnum2[
|
|
236
|
-
PaymentMethodEnum2[
|
|
237
|
-
PaymentMethodEnum2[
|
|
238
|
-
PaymentMethodEnum2[
|
|
239
|
-
PaymentMethodEnum2[
|
|
240
|
-
PaymentMethodEnum2[
|
|
241
|
-
PaymentMethodEnum2[
|
|
242
|
-
PaymentMethodEnum2[
|
|
243
|
-
PaymentMethodEnum2[
|
|
244
|
-
PaymentMethodEnum2[
|
|
245
|
-
PaymentMethodEnum2[
|
|
246
|
-
PaymentMethodEnum2[
|
|
247
|
-
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[
|
|
231
|
+
PaymentMethodEnum2['AFFIRM'] = 'affirm';
|
|
232
|
+
PaymentMethodEnum2['AFTERPAY_CLEARPAY'] = 'afterpay_clearpay';
|
|
233
|
+
PaymentMethodEnum2['ALIPAY'] = 'alipay';
|
|
234
|
+
PaymentMethodEnum2['ALMA'] = 'alma';
|
|
235
|
+
PaymentMethodEnum2['AU_BECS_DEBIT'] = 'au_becs_debit';
|
|
236
|
+
PaymentMethodEnum2['BACS_DEBIT'] = 'bacs_debit';
|
|
237
|
+
PaymentMethodEnum2['BANCONTACT'] = 'bancontact';
|
|
238
|
+
PaymentMethodEnum2['BILLIE'] = 'billie';
|
|
239
|
+
PaymentMethodEnum2['BLIK'] = 'blik';
|
|
240
|
+
PaymentMethodEnum2['BOLETO'] = 'boleto';
|
|
241
|
+
PaymentMethodEnum2['CARD'] = 'card';
|
|
242
|
+
PaymentMethodEnum2['CASHAPP'] = 'cashapp';
|
|
243
|
+
PaymentMethodEnum2['EPS'] = 'eps';
|
|
244
|
+
PaymentMethodEnum2['FPX'] = 'fpx';
|
|
245
|
+
PaymentMethodEnum2['GIROPAY'] = 'giropay';
|
|
246
|
+
PaymentMethodEnum2['GRABPAY'] = 'grabpay';
|
|
247
|
+
PaymentMethodEnum2['IDEAL'] = 'ideal';
|
|
248
|
+
PaymentMethodEnum2['KLARNA'] = 'klarna';
|
|
249
|
+
PaymentMethodEnum2['KONBINI'] = 'konbini';
|
|
250
|
+
PaymentMethodEnum2['LINK'] = 'link';
|
|
251
|
+
PaymentMethodEnum2['MOBILEPAY'] = 'mobilepay';
|
|
252
|
+
PaymentMethodEnum2['MULTIBANCO'] = 'multibanco';
|
|
253
|
+
PaymentMethodEnum2['OXXO'] = 'oxxo';
|
|
254
|
+
PaymentMethodEnum2['P24'] = 'p24';
|
|
255
|
+
PaymentMethodEnum2['PAY_BY_BANK'] = 'pay_by_bank';
|
|
256
|
+
PaymentMethodEnum2['PAYNOW'] = 'paynow';
|
|
257
|
+
PaymentMethodEnum2['PAYPAL'] = 'paypal';
|
|
258
|
+
PaymentMethodEnum2['PIX'] = 'pix';
|
|
259
|
+
PaymentMethodEnum2['PROMPTPAY'] = 'promptpay';
|
|
260
|
+
PaymentMethodEnum2['SATISPAY'] = 'satispay';
|
|
261
|
+
PaymentMethodEnum2['SEPA_DEBIT'] = 'sepa_debit';
|
|
262
|
+
PaymentMethodEnum2['SOFORT'] = 'sofort';
|
|
263
|
+
PaymentMethodEnum2['SWISH'] = 'swish';
|
|
264
|
+
PaymentMethodEnum2['TWINT'] = 'twint';
|
|
265
|
+
PaymentMethodEnum2['US_BANK_ACCOUNT'] = 'us_bank_account';
|
|
266
|
+
PaymentMethodEnum2['WECHAT_PAY'] = 'wechat_pay';
|
|
267
|
+
PaymentMethodEnum2['ZIP'] = 'zip';
|
|
263
268
|
return PaymentMethodEnum2;
|
|
264
269
|
})(PaymentMethodEnum || {});
|
|
265
270
|
|
|
266
|
-
// schemas/typebox/checkoutSession.schema.ts
|
|
271
|
+
// domain/schemas/typebox/checkoutSession.schema.ts
|
|
267
272
|
var CreateCheckoutSessionSchema = (StatusEnum) => ({
|
|
268
273
|
id: optional3(string3),
|
|
269
274
|
customerId: string3,
|
|
@@ -306,7 +311,7 @@ var StripeCheckoutSessionServiceSchemas = {
|
|
|
306
311
|
CheckoutSessionSchema
|
|
307
312
|
};
|
|
308
313
|
|
|
309
|
-
// schemas/zod/checkoutSession.schema.ts
|
|
314
|
+
// domain/schemas/zod/checkoutSession.schema.ts
|
|
310
315
|
import {
|
|
311
316
|
array as array2,
|
|
312
317
|
date as date4,
|
|
@@ -315,7 +320,7 @@ import {
|
|
|
315
320
|
string as string4,
|
|
316
321
|
type as type4,
|
|
317
322
|
unknown as unknown2
|
|
318
|
-
} from
|
|
323
|
+
} from '@forklaunch/validator/zod';
|
|
319
324
|
var CreateCheckoutSessionSchema2 = (StatusEnum) => ({
|
|
320
325
|
id: optional4(string4),
|
|
321
326
|
customerId: string4,
|
|
@@ -358,16 +363,16 @@ var StripeCheckoutSessionServiceSchemas2 = {
|
|
|
358
363
|
CheckoutSessionSchema: CheckoutSessionSchema2
|
|
359
364
|
};
|
|
360
365
|
|
|
361
|
-
// schemas/checkoutSession.schema.ts
|
|
366
|
+
// domain/schemas/checkoutSession.schema.ts
|
|
362
367
|
var StripeCheckoutSessionServiceSchemas3 = serviceSchemaResolver2(
|
|
363
368
|
() => StripeCheckoutSessionServiceSchemas,
|
|
364
369
|
() => StripeCheckoutSessionServiceSchemas2
|
|
365
370
|
);
|
|
366
371
|
|
|
367
|
-
// schemas/paymentLink.schema.ts
|
|
368
|
-
import { serviceSchemaResolver as serviceSchemaResolver3 } from
|
|
372
|
+
// domain/schemas/paymentLink.schema.ts
|
|
373
|
+
import { serviceSchemaResolver as serviceSchemaResolver3 } from '@forklaunch/internal';
|
|
369
374
|
|
|
370
|
-
// schemas/typebox/paymentLink.schema.ts
|
|
375
|
+
// domain/schemas/typebox/paymentLink.schema.ts
|
|
371
376
|
import {
|
|
372
377
|
array as array3,
|
|
373
378
|
date as date5,
|
|
@@ -376,7 +381,7 @@ import {
|
|
|
376
381
|
optional as optional5,
|
|
377
382
|
string as string5,
|
|
378
383
|
type as type5
|
|
379
|
-
} from
|
|
384
|
+
} from '@forklaunch/validator/typebox';
|
|
380
385
|
var CreatePaymentLinkSchema = (StatusEnum) => ({
|
|
381
386
|
id: optional5(string5),
|
|
382
387
|
amount: number,
|
|
@@ -409,7 +414,7 @@ var StripePaymentLinkServiceSchemas = {
|
|
|
409
414
|
PaymentLinkSchema
|
|
410
415
|
};
|
|
411
416
|
|
|
412
|
-
// schemas/zod/paymentLink.schema.ts
|
|
417
|
+
// domain/schemas/zod/paymentLink.schema.ts
|
|
413
418
|
import {
|
|
414
419
|
array as array4,
|
|
415
420
|
date as date6,
|
|
@@ -418,7 +423,7 @@ import {
|
|
|
418
423
|
optional as optional6,
|
|
419
424
|
string as string6,
|
|
420
425
|
type as type6
|
|
421
|
-
} from
|
|
426
|
+
} from '@forklaunch/validator/zod';
|
|
422
427
|
var CreatePaymentLinkSchema2 = (StatusEnum) => ({
|
|
423
428
|
id: optional6(string6),
|
|
424
429
|
amount: number2,
|
|
@@ -451,16 +456,16 @@ var StripePaymentLinkServiceSchemas2 = {
|
|
|
451
456
|
PaymentLinkSchema: PaymentLinkSchema2
|
|
452
457
|
};
|
|
453
458
|
|
|
454
|
-
// schemas/paymentLink.schema.ts
|
|
459
|
+
// domain/schemas/paymentLink.schema.ts
|
|
455
460
|
var StripePaymentLinkServiceSchemas3 = serviceSchemaResolver3(
|
|
456
461
|
() => StripePaymentLinkServiceSchemas,
|
|
457
462
|
() => StripePaymentLinkServiceSchemas2
|
|
458
463
|
);
|
|
459
464
|
|
|
460
|
-
// schemas/plan.schema.ts
|
|
461
|
-
import { serviceSchemaResolver as serviceSchemaResolver4 } from
|
|
465
|
+
// domain/schemas/plan.schema.ts
|
|
466
|
+
import { serviceSchemaResolver as serviceSchemaResolver4 } from '@forklaunch/internal';
|
|
462
467
|
|
|
463
|
-
// schemas/typebox/plan.schema.ts
|
|
468
|
+
// domain/schemas/typebox/plan.schema.ts
|
|
464
469
|
import {
|
|
465
470
|
array as array5,
|
|
466
471
|
boolean,
|
|
@@ -470,23 +475,23 @@ import {
|
|
|
470
475
|
optional as optional7,
|
|
471
476
|
string as string7,
|
|
472
477
|
type as type7
|
|
473
|
-
} from
|
|
478
|
+
} from '@forklaunch/validator/typebox';
|
|
474
479
|
|
|
475
|
-
// enum/billingProvider.enum.ts
|
|
480
|
+
// domain/enum/billingProvider.enum.ts
|
|
476
481
|
var BillingProviderEnum = /* @__PURE__ */ ((BillingProviderEnum2) => {
|
|
477
|
-
BillingProviderEnum2[
|
|
482
|
+
BillingProviderEnum2['STRIPE'] = 'stripe';
|
|
478
483
|
return BillingProviderEnum2;
|
|
479
484
|
})(BillingProviderEnum || {});
|
|
480
485
|
|
|
481
|
-
// enum/planCadence.enum.ts
|
|
486
|
+
// domain/enum/planCadence.enum.ts
|
|
482
487
|
var PlanCadenceEnum = /* @__PURE__ */ ((PlanCadenceEnum2) => {
|
|
483
|
-
PlanCadenceEnum2[
|
|
484
|
-
PlanCadenceEnum2[
|
|
485
|
-
PlanCadenceEnum2[
|
|
488
|
+
PlanCadenceEnum2['WEEKLY'] = 'week';
|
|
489
|
+
PlanCadenceEnum2['MONTHLY'] = 'month';
|
|
490
|
+
PlanCadenceEnum2['ANNUALLY'] = 'year';
|
|
486
491
|
return PlanCadenceEnum2;
|
|
487
492
|
})(PlanCadenceEnum || {});
|
|
488
493
|
|
|
489
|
-
// schemas/typebox/plan.schema.ts
|
|
494
|
+
// domain/schemas/typebox/plan.schema.ts
|
|
490
495
|
var CreatePlanSchema = {
|
|
491
496
|
id: optional7(string7),
|
|
492
497
|
name: string7,
|
|
@@ -534,7 +539,7 @@ var StripePlanServiceSchemas = {
|
|
|
534
539
|
PlanSchema
|
|
535
540
|
};
|
|
536
541
|
|
|
537
|
-
// schemas/zod/plan.schema.ts
|
|
542
|
+
// domain/schemas/zod/plan.schema.ts
|
|
538
543
|
import {
|
|
539
544
|
array as array6,
|
|
540
545
|
boolean as boolean2,
|
|
@@ -544,7 +549,7 @@ import {
|
|
|
544
549
|
optional as optional8,
|
|
545
550
|
string as string8,
|
|
546
551
|
type as type8
|
|
547
|
-
} from
|
|
552
|
+
} from '@forklaunch/validator/zod';
|
|
548
553
|
var CreatePlanSchema2 = {
|
|
549
554
|
id: optional8(string8),
|
|
550
555
|
name: string8,
|
|
@@ -592,16 +597,16 @@ var StripePlanServiceSchemas2 = {
|
|
|
592
597
|
PlanSchema: PlanSchema2
|
|
593
598
|
};
|
|
594
599
|
|
|
595
|
-
// schemas/plan.schema.ts
|
|
600
|
+
// domain/schemas/plan.schema.ts
|
|
596
601
|
var StripePlanServiceSchemas3 = serviceSchemaResolver4(
|
|
597
602
|
() => StripePlanServiceSchemas,
|
|
598
603
|
() => StripePlanServiceSchemas2
|
|
599
604
|
);
|
|
600
605
|
|
|
601
|
-
// schemas/subscription.schema.ts
|
|
602
|
-
import { serviceSchemaResolver as serviceSchemaResolver5 } from
|
|
606
|
+
// domain/schemas/subscription.schema.ts
|
|
607
|
+
import { serviceSchemaResolver as serviceSchemaResolver5 } from '@forklaunch/internal';
|
|
603
608
|
|
|
604
|
-
// schemas/typebox/subscription.schema.ts
|
|
609
|
+
// domain/schemas/typebox/subscription.schema.ts
|
|
605
610
|
import {
|
|
606
611
|
boolean as boolean3,
|
|
607
612
|
date as date9,
|
|
@@ -609,7 +614,7 @@ import {
|
|
|
609
614
|
optional as optional9,
|
|
610
615
|
string as string9,
|
|
611
616
|
type as type9
|
|
612
|
-
} from
|
|
617
|
+
} from '@forklaunch/validator/typebox';
|
|
613
618
|
var CreateSubscriptionSchema = (PartyEnum) => ({
|
|
614
619
|
id: optional9(string9),
|
|
615
620
|
partyId: string9,
|
|
@@ -660,7 +665,7 @@ var StripeSubscriptionServiceSchemas = {
|
|
|
660
665
|
SubscriptionSchema
|
|
661
666
|
};
|
|
662
667
|
|
|
663
|
-
// schemas/zod/subscription.schema.ts
|
|
668
|
+
// domain/schemas/zod/subscription.schema.ts
|
|
664
669
|
import {
|
|
665
670
|
boolean as boolean4,
|
|
666
671
|
date as date10,
|
|
@@ -668,7 +673,7 @@ import {
|
|
|
668
673
|
optional as optional10,
|
|
669
674
|
string as string10,
|
|
670
675
|
type as type10
|
|
671
|
-
} from
|
|
676
|
+
} from '@forklaunch/validator/zod';
|
|
672
677
|
var CreateSubscriptionSchema2 = (PartyEnum) => ({
|
|
673
678
|
id: optional10(string10),
|
|
674
679
|
partyId: string10,
|
|
@@ -719,7 +724,7 @@ var StripeSubscriptionServiceSchemas2 = {
|
|
|
719
724
|
SubscriptionSchema: SubscriptionSchema2
|
|
720
725
|
};
|
|
721
726
|
|
|
722
|
-
// schemas/subscription.schema.ts
|
|
727
|
+
// domain/schemas/subscription.schema.ts
|
|
723
728
|
var StripeSubscriptionServiceSchemas3 = serviceSchemaResolver5(
|
|
724
729
|
() => StripeSubscriptionServiceSchemas,
|
|
725
730
|
() => StripeSubscriptionServiceSchemas2
|