@forklaunch/implementation-billing-stripe 0.0.3 → 0.0.4
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 +177 -182
- package/lib/domain/enum/index.d.ts +177 -182
- package/lib/domain/enum/index.js +186 -191
- package/lib/domain/enum/index.mjs +176 -176
- package/lib/domain/schemas/index.d.mts +318 -4084
- package/lib/domain/schemas/index.d.ts +318 -4084
- package/lib/domain/schemas/index.js +248 -324
- package/lib/domain/schemas/index.mjs +197 -198
- package/lib/domain/types/index.d.mts +72 -231
- package/lib/domain/types/index.d.ts +72 -231
- package/lib/domain/types/index.js +4 -8
- package/lib/eject/domain/schemas/billingPortal.schema.ts +2 -2
- package/lib/eject/domain/schemas/checkoutSession.schema.ts +4 -4
- package/lib/eject/domain/schemas/paymentLink.schema.ts +4 -4
- package/lib/eject/domain/schemas/plan.schema.ts +5 -5
- package/lib/eject/domain/schemas/subscription.schema.ts +3 -3
- package/lib/services/index.d.mts +194 -709
- package/lib/services/index.d.ts +194 -709
- package/lib/services/index.js +244 -359
- package/lib/services/index.mjs +205 -298
- package/package.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// domain/schemas/billingPortal.schema.ts
|
|
2
|
-
import { serviceSchemaResolver } from
|
|
2
|
+
import { serviceSchemaResolver } from "@forklaunch/internal";
|
|
3
3
|
|
|
4
4
|
// domain/schemas/typebox/billingPortal.schema.ts
|
|
5
|
-
import { date, optional, string, type } from
|
|
5
|
+
import { date, optional, string, type } from "@forklaunch/validator/typebox";
|
|
6
6
|
var CreateBillingPortalSchema = {
|
|
7
7
|
id: optional(string),
|
|
8
8
|
customerId: string,
|
|
@@ -32,12 +32,7 @@ var StripeBillingPortalServiceSchemas = {
|
|
|
32
32
|
};
|
|
33
33
|
|
|
34
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';
|
|
35
|
+
import { date as date2, optional as optional2, string as string2, type as type2 } from "@forklaunch/validator/zod";
|
|
41
36
|
var CreateBillingPortalSchema2 = {
|
|
42
37
|
id: optional2(string2),
|
|
43
38
|
customerId: string2,
|
|
@@ -73,7 +68,7 @@ var StripeBillingPortalServiceSchemas3 = serviceSchemaResolver(
|
|
|
73
68
|
);
|
|
74
69
|
|
|
75
70
|
// domain/schemas/checkoutSession.schema.ts
|
|
76
|
-
import { serviceSchemaResolver as serviceSchemaResolver2 } from
|
|
71
|
+
import { serviceSchemaResolver as serviceSchemaResolver2 } from "@forklaunch/internal";
|
|
77
72
|
|
|
78
73
|
// domain/schemas/typebox/checkoutSession.schema.ts
|
|
79
74
|
import {
|
|
@@ -84,187 +79,187 @@ import {
|
|
|
84
79
|
string as string3,
|
|
85
80
|
type as type3,
|
|
86
81
|
unknown
|
|
87
|
-
} from
|
|
82
|
+
} from "@forklaunch/validator/typebox";
|
|
88
83
|
|
|
89
84
|
// domain/enum/currency.enum.ts
|
|
90
85
|
var CurrencyEnum = /* @__PURE__ */ ((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[
|
|
221
|
-
CurrencyEnum2[
|
|
222
|
-
CurrencyEnum2[
|
|
223
|
-
CurrencyEnum2[
|
|
224
|
-
CurrencyEnum2[
|
|
225
|
-
CurrencyEnum2[
|
|
86
|
+
CurrencyEnum2["USD"] = "USD";
|
|
87
|
+
CurrencyEnum2["AED"] = "AED";
|
|
88
|
+
CurrencyEnum2["AFN"] = "AFN";
|
|
89
|
+
CurrencyEnum2["ALL"] = "ALL";
|
|
90
|
+
CurrencyEnum2["AMD"] = "AMD";
|
|
91
|
+
CurrencyEnum2["ANG"] = "ANG";
|
|
92
|
+
CurrencyEnum2["AOA"] = "AOA";
|
|
93
|
+
CurrencyEnum2["ARS"] = "ARS";
|
|
94
|
+
CurrencyEnum2["AUD"] = "AUD";
|
|
95
|
+
CurrencyEnum2["AWG"] = "AWG";
|
|
96
|
+
CurrencyEnum2["AZN"] = "AZN";
|
|
97
|
+
CurrencyEnum2["BAM"] = "BAM";
|
|
98
|
+
CurrencyEnum2["BBD"] = "BBD";
|
|
99
|
+
CurrencyEnum2["BDT"] = "BDT";
|
|
100
|
+
CurrencyEnum2["BGN"] = "BGN";
|
|
101
|
+
CurrencyEnum2["BIF"] = "BIF";
|
|
102
|
+
CurrencyEnum2["BMD"] = "BMD";
|
|
103
|
+
CurrencyEnum2["BND"] = "BND";
|
|
104
|
+
CurrencyEnum2["BOB"] = "BOB";
|
|
105
|
+
CurrencyEnum2["BRL"] = "BRL";
|
|
106
|
+
CurrencyEnum2["BSD"] = "BSD";
|
|
107
|
+
CurrencyEnum2["BWP"] = "BWP";
|
|
108
|
+
CurrencyEnum2["BYN"] = "BYN";
|
|
109
|
+
CurrencyEnum2["BZD"] = "BZD";
|
|
110
|
+
CurrencyEnum2["CAD"] = "CAD";
|
|
111
|
+
CurrencyEnum2["CDF"] = "CDF";
|
|
112
|
+
CurrencyEnum2["CHF"] = "CHF";
|
|
113
|
+
CurrencyEnum2["CLP"] = "CLP";
|
|
114
|
+
CurrencyEnum2["CNY"] = "CNY";
|
|
115
|
+
CurrencyEnum2["COP"] = "COP";
|
|
116
|
+
CurrencyEnum2["CRC"] = "CRC";
|
|
117
|
+
CurrencyEnum2["CVE"] = "CVE";
|
|
118
|
+
CurrencyEnum2["CZK"] = "CZK";
|
|
119
|
+
CurrencyEnum2["DJF"] = "DJF";
|
|
120
|
+
CurrencyEnum2["DKK"] = "DKK";
|
|
121
|
+
CurrencyEnum2["DOP"] = "DOP";
|
|
122
|
+
CurrencyEnum2["DZD"] = "DZD";
|
|
123
|
+
CurrencyEnum2["EGP"] = "EGP";
|
|
124
|
+
CurrencyEnum2["ETB"] = "ETB";
|
|
125
|
+
CurrencyEnum2["EUR"] = "EUR";
|
|
126
|
+
CurrencyEnum2["FJD"] = "FJD";
|
|
127
|
+
CurrencyEnum2["FKP"] = "FKP";
|
|
128
|
+
CurrencyEnum2["GBP"] = "GBP";
|
|
129
|
+
CurrencyEnum2["GEL"] = "GEL";
|
|
130
|
+
CurrencyEnum2["GIP"] = "GIP";
|
|
131
|
+
CurrencyEnum2["GMD"] = "GMD";
|
|
132
|
+
CurrencyEnum2["GNF"] = "GNF";
|
|
133
|
+
CurrencyEnum2["GTQ"] = "GTQ";
|
|
134
|
+
CurrencyEnum2["GYD"] = "GYD";
|
|
135
|
+
CurrencyEnum2["HKD"] = "HKD";
|
|
136
|
+
CurrencyEnum2["HNL"] = "HNL";
|
|
137
|
+
CurrencyEnum2["HTG"] = "HTG";
|
|
138
|
+
CurrencyEnum2["HUF"] = "HUF";
|
|
139
|
+
CurrencyEnum2["IDR"] = "IDR";
|
|
140
|
+
CurrencyEnum2["ILS"] = "ILS";
|
|
141
|
+
CurrencyEnum2["INR"] = "INR";
|
|
142
|
+
CurrencyEnum2["ISK"] = "ISK";
|
|
143
|
+
CurrencyEnum2["JMD"] = "JMD";
|
|
144
|
+
CurrencyEnum2["JPY"] = "JPY";
|
|
145
|
+
CurrencyEnum2["KES"] = "KES";
|
|
146
|
+
CurrencyEnum2["KGS"] = "KGS";
|
|
147
|
+
CurrencyEnum2["KHR"] = "KHR";
|
|
148
|
+
CurrencyEnum2["KMF"] = "KMF";
|
|
149
|
+
CurrencyEnum2["KRW"] = "KRW";
|
|
150
|
+
CurrencyEnum2["KYD"] = "KYD";
|
|
151
|
+
CurrencyEnum2["KZT"] = "KZT";
|
|
152
|
+
CurrencyEnum2["LAK"] = "LAK";
|
|
153
|
+
CurrencyEnum2["LBP"] = "LBP";
|
|
154
|
+
CurrencyEnum2["LKR"] = "LKR";
|
|
155
|
+
CurrencyEnum2["LRD"] = "LRD";
|
|
156
|
+
CurrencyEnum2["LSL"] = "LSL";
|
|
157
|
+
CurrencyEnum2["MAD"] = "MAD";
|
|
158
|
+
CurrencyEnum2["MDL"] = "MDL";
|
|
159
|
+
CurrencyEnum2["MGA"] = "MGA";
|
|
160
|
+
CurrencyEnum2["MKD"] = "MKD";
|
|
161
|
+
CurrencyEnum2["MMK"] = "MMK";
|
|
162
|
+
CurrencyEnum2["MNT"] = "MNT";
|
|
163
|
+
CurrencyEnum2["MOP"] = "MOP";
|
|
164
|
+
CurrencyEnum2["MUR"] = "MUR";
|
|
165
|
+
CurrencyEnum2["MVR"] = "MVR";
|
|
166
|
+
CurrencyEnum2["MWK"] = "MWK";
|
|
167
|
+
CurrencyEnum2["MXN"] = "MXN";
|
|
168
|
+
CurrencyEnum2["MYR"] = "MYR";
|
|
169
|
+
CurrencyEnum2["MZN"] = "MZN";
|
|
170
|
+
CurrencyEnum2["NAD"] = "NAD";
|
|
171
|
+
CurrencyEnum2["NGN"] = "NGN";
|
|
172
|
+
CurrencyEnum2["NIO"] = "NIO";
|
|
173
|
+
CurrencyEnum2["NOK"] = "NOK";
|
|
174
|
+
CurrencyEnum2["NPR"] = "NPR";
|
|
175
|
+
CurrencyEnum2["NZD"] = "NZD";
|
|
176
|
+
CurrencyEnum2["PAB"] = "PAB";
|
|
177
|
+
CurrencyEnum2["PEN"] = "PEN";
|
|
178
|
+
CurrencyEnum2["PGK"] = "PGK";
|
|
179
|
+
CurrencyEnum2["PHP"] = "PHP";
|
|
180
|
+
CurrencyEnum2["PKR"] = "PKR";
|
|
181
|
+
CurrencyEnum2["PLN"] = "PLN";
|
|
182
|
+
CurrencyEnum2["PYG"] = "PYG";
|
|
183
|
+
CurrencyEnum2["QAR"] = "QAR";
|
|
184
|
+
CurrencyEnum2["RON"] = "RON";
|
|
185
|
+
CurrencyEnum2["RSD"] = "RSD";
|
|
186
|
+
CurrencyEnum2["RUB"] = "RUB";
|
|
187
|
+
CurrencyEnum2["RWF"] = "RWF";
|
|
188
|
+
CurrencyEnum2["SAR"] = "SAR";
|
|
189
|
+
CurrencyEnum2["SBD"] = "SBD";
|
|
190
|
+
CurrencyEnum2["SCR"] = "SCR";
|
|
191
|
+
CurrencyEnum2["SEK"] = "SEK";
|
|
192
|
+
CurrencyEnum2["SGD"] = "SGD";
|
|
193
|
+
CurrencyEnum2["SHP"] = "SHP";
|
|
194
|
+
CurrencyEnum2["SLE"] = "SLE";
|
|
195
|
+
CurrencyEnum2["SOS"] = "SOS";
|
|
196
|
+
CurrencyEnum2["SRD"] = "SRD";
|
|
197
|
+
CurrencyEnum2["STD"] = "STD";
|
|
198
|
+
CurrencyEnum2["SZL"] = "SZL";
|
|
199
|
+
CurrencyEnum2["THB"] = "THB";
|
|
200
|
+
CurrencyEnum2["TJS"] = "TJS";
|
|
201
|
+
CurrencyEnum2["TOP"] = "TOP";
|
|
202
|
+
CurrencyEnum2["TRY"] = "TRY";
|
|
203
|
+
CurrencyEnum2["TTD"] = "TTD";
|
|
204
|
+
CurrencyEnum2["TWD"] = "TWD";
|
|
205
|
+
CurrencyEnum2["TZS"] = "TZS";
|
|
206
|
+
CurrencyEnum2["UAH"] = "UAH";
|
|
207
|
+
CurrencyEnum2["UGX"] = "UGX";
|
|
208
|
+
CurrencyEnum2["UYU"] = "UYU";
|
|
209
|
+
CurrencyEnum2["UZS"] = "UZS";
|
|
210
|
+
CurrencyEnum2["VND"] = "VND";
|
|
211
|
+
CurrencyEnum2["VUV"] = "VUV";
|
|
212
|
+
CurrencyEnum2["WST"] = "WST";
|
|
213
|
+
CurrencyEnum2["XAF"] = "XAF";
|
|
214
|
+
CurrencyEnum2["XCD"] = "XCD";
|
|
215
|
+
CurrencyEnum2["XCG"] = "XCG";
|
|
216
|
+
CurrencyEnum2["XOF"] = "XOF";
|
|
217
|
+
CurrencyEnum2["XPF"] = "XPF";
|
|
218
|
+
CurrencyEnum2["YER"] = "YER";
|
|
219
|
+
CurrencyEnum2["ZAR"] = "ZAR";
|
|
220
|
+
CurrencyEnum2["ZMW"] = "ZMW";
|
|
226
221
|
return CurrencyEnum2;
|
|
227
222
|
})(CurrencyEnum || {});
|
|
228
223
|
|
|
229
224
|
// domain/enum/paymentMethod.enum.ts
|
|
230
225
|
var PaymentMethodEnum = /* @__PURE__ */ ((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[
|
|
263
|
-
PaymentMethodEnum2[
|
|
264
|
-
PaymentMethodEnum2[
|
|
265
|
-
PaymentMethodEnum2[
|
|
266
|
-
PaymentMethodEnum2[
|
|
267
|
-
PaymentMethodEnum2[
|
|
226
|
+
PaymentMethodEnum2["AFFIRM"] = "affirm";
|
|
227
|
+
PaymentMethodEnum2["AFTERPAY_CLEARPAY"] = "afterpay_clearpay";
|
|
228
|
+
PaymentMethodEnum2["ALIPAY"] = "alipay";
|
|
229
|
+
PaymentMethodEnum2["ALMA"] = "alma";
|
|
230
|
+
PaymentMethodEnum2["AU_BECS_DEBIT"] = "au_becs_debit";
|
|
231
|
+
PaymentMethodEnum2["BACS_DEBIT"] = "bacs_debit";
|
|
232
|
+
PaymentMethodEnum2["BANCONTACT"] = "bancontact";
|
|
233
|
+
PaymentMethodEnum2["BILLIE"] = "billie";
|
|
234
|
+
PaymentMethodEnum2["BLIK"] = "blik";
|
|
235
|
+
PaymentMethodEnum2["BOLETO"] = "boleto";
|
|
236
|
+
PaymentMethodEnum2["CARD"] = "card";
|
|
237
|
+
PaymentMethodEnum2["CASHAPP"] = "cashapp";
|
|
238
|
+
PaymentMethodEnum2["EPS"] = "eps";
|
|
239
|
+
PaymentMethodEnum2["FPX"] = "fpx";
|
|
240
|
+
PaymentMethodEnum2["GIROPAY"] = "giropay";
|
|
241
|
+
PaymentMethodEnum2["GRABPAY"] = "grabpay";
|
|
242
|
+
PaymentMethodEnum2["IDEAL"] = "ideal";
|
|
243
|
+
PaymentMethodEnum2["KLARNA"] = "klarna";
|
|
244
|
+
PaymentMethodEnum2["KONBINI"] = "konbini";
|
|
245
|
+
PaymentMethodEnum2["LINK"] = "link";
|
|
246
|
+
PaymentMethodEnum2["MOBILEPAY"] = "mobilepay";
|
|
247
|
+
PaymentMethodEnum2["MULTIBANCO"] = "multibanco";
|
|
248
|
+
PaymentMethodEnum2["OXXO"] = "oxxo";
|
|
249
|
+
PaymentMethodEnum2["P24"] = "p24";
|
|
250
|
+
PaymentMethodEnum2["PAY_BY_BANK"] = "pay_by_bank";
|
|
251
|
+
PaymentMethodEnum2["PAYNOW"] = "paynow";
|
|
252
|
+
PaymentMethodEnum2["PAYPAL"] = "paypal";
|
|
253
|
+
PaymentMethodEnum2["PIX"] = "pix";
|
|
254
|
+
PaymentMethodEnum2["PROMPTPAY"] = "promptpay";
|
|
255
|
+
PaymentMethodEnum2["SATISPAY"] = "satispay";
|
|
256
|
+
PaymentMethodEnum2["SEPA_DEBIT"] = "sepa_debit";
|
|
257
|
+
PaymentMethodEnum2["SOFORT"] = "sofort";
|
|
258
|
+
PaymentMethodEnum2["SWISH"] = "swish";
|
|
259
|
+
PaymentMethodEnum2["TWINT"] = "twint";
|
|
260
|
+
PaymentMethodEnum2["US_BANK_ACCOUNT"] = "us_bank_account";
|
|
261
|
+
PaymentMethodEnum2["WECHAT_PAY"] = "wechat_pay";
|
|
262
|
+
PaymentMethodEnum2["ZIP"] = "zip";
|
|
268
263
|
return PaymentMethodEnum2;
|
|
269
264
|
})(PaymentMethodEnum || {});
|
|
270
265
|
|
|
@@ -289,7 +284,9 @@ var UpdateCheckoutSessionSchema = (StatusEnum) => ({
|
|
|
289
284
|
cancelRedirectUri: optional3(string3),
|
|
290
285
|
expiresAt: optional3(date3),
|
|
291
286
|
status: optional3(enum_(StatusEnum)),
|
|
292
|
-
stripeFields: optional3(
|
|
287
|
+
stripeFields: optional3(
|
|
288
|
+
type3()
|
|
289
|
+
)
|
|
293
290
|
});
|
|
294
291
|
var CheckoutSessionSchema = (StatusEnum) => ({
|
|
295
292
|
id: string3,
|
|
@@ -320,7 +317,7 @@ import {
|
|
|
320
317
|
string as string4,
|
|
321
318
|
type as type4,
|
|
322
319
|
unknown as unknown2
|
|
323
|
-
} from
|
|
320
|
+
} from "@forklaunch/validator/zod";
|
|
324
321
|
var CreateCheckoutSessionSchema2 = (StatusEnum) => ({
|
|
325
322
|
id: optional4(string4),
|
|
326
323
|
customerId: string4,
|
|
@@ -341,7 +338,9 @@ var UpdateCheckoutSessionSchema2 = (StatusEnum) => ({
|
|
|
341
338
|
cancelRedirectUri: optional4(string4),
|
|
342
339
|
expiresAt: optional4(date4),
|
|
343
340
|
status: optional4(enum_2(StatusEnum)),
|
|
344
|
-
stripeFields: optional4(
|
|
341
|
+
stripeFields: optional4(
|
|
342
|
+
type4()
|
|
343
|
+
)
|
|
345
344
|
});
|
|
346
345
|
var CheckoutSessionSchema2 = (StatusEnum) => ({
|
|
347
346
|
id: string4,
|
|
@@ -370,7 +369,7 @@ var StripeCheckoutSessionServiceSchemas3 = serviceSchemaResolver2(
|
|
|
370
369
|
);
|
|
371
370
|
|
|
372
371
|
// domain/schemas/paymentLink.schema.ts
|
|
373
|
-
import { serviceSchemaResolver as serviceSchemaResolver3 } from
|
|
372
|
+
import { serviceSchemaResolver as serviceSchemaResolver3 } from "@forklaunch/internal";
|
|
374
373
|
|
|
375
374
|
// domain/schemas/typebox/paymentLink.schema.ts
|
|
376
375
|
import {
|
|
@@ -381,7 +380,7 @@ import {
|
|
|
381
380
|
optional as optional5,
|
|
382
381
|
string as string5,
|
|
383
382
|
type as type5
|
|
384
|
-
} from
|
|
383
|
+
} from "@forklaunch/validator/typebox";
|
|
385
384
|
var CreatePaymentLinkSchema = (StatusEnum) => ({
|
|
386
385
|
id: optional5(string5),
|
|
387
386
|
amount: number,
|
|
@@ -423,7 +422,7 @@ import {
|
|
|
423
422
|
optional as optional6,
|
|
424
423
|
string as string6,
|
|
425
424
|
type as type6
|
|
426
|
-
} from
|
|
425
|
+
} from "@forklaunch/validator/zod";
|
|
427
426
|
var CreatePaymentLinkSchema2 = (StatusEnum) => ({
|
|
428
427
|
id: optional6(string6),
|
|
429
428
|
amount: number2,
|
|
@@ -463,7 +462,7 @@ var StripePaymentLinkServiceSchemas3 = serviceSchemaResolver3(
|
|
|
463
462
|
);
|
|
464
463
|
|
|
465
464
|
// domain/schemas/plan.schema.ts
|
|
466
|
-
import { serviceSchemaResolver as serviceSchemaResolver4 } from
|
|
465
|
+
import { serviceSchemaResolver as serviceSchemaResolver4 } from "@forklaunch/internal";
|
|
467
466
|
|
|
468
467
|
// domain/schemas/typebox/plan.schema.ts
|
|
469
468
|
import {
|
|
@@ -475,19 +474,19 @@ import {
|
|
|
475
474
|
optional as optional7,
|
|
476
475
|
string as string7,
|
|
477
476
|
type as type7
|
|
478
|
-
} from
|
|
477
|
+
} from "@forklaunch/validator/typebox";
|
|
479
478
|
|
|
480
479
|
// domain/enum/billingProvider.enum.ts
|
|
481
480
|
var BillingProviderEnum = /* @__PURE__ */ ((BillingProviderEnum2) => {
|
|
482
|
-
BillingProviderEnum2[
|
|
481
|
+
BillingProviderEnum2["STRIPE"] = "stripe";
|
|
483
482
|
return BillingProviderEnum2;
|
|
484
483
|
})(BillingProviderEnum || {});
|
|
485
484
|
|
|
486
485
|
// domain/enum/planCadence.enum.ts
|
|
487
486
|
var PlanCadenceEnum = /* @__PURE__ */ ((PlanCadenceEnum2) => {
|
|
488
|
-
PlanCadenceEnum2[
|
|
489
|
-
PlanCadenceEnum2[
|
|
490
|
-
PlanCadenceEnum2[
|
|
487
|
+
PlanCadenceEnum2["WEEKLY"] = "week";
|
|
488
|
+
PlanCadenceEnum2["MONTHLY"] = "month";
|
|
489
|
+
PlanCadenceEnum2["ANNUALLY"] = "year";
|
|
491
490
|
return PlanCadenceEnum2;
|
|
492
491
|
})(PlanCadenceEnum || {});
|
|
493
492
|
|
|
@@ -549,7 +548,7 @@ import {
|
|
|
549
548
|
optional as optional8,
|
|
550
549
|
string as string8,
|
|
551
550
|
type as type8
|
|
552
|
-
} from
|
|
551
|
+
} from "@forklaunch/validator/zod";
|
|
553
552
|
var CreatePlanSchema2 = {
|
|
554
553
|
id: optional8(string8),
|
|
555
554
|
name: string8,
|
|
@@ -604,7 +603,7 @@ var StripePlanServiceSchemas3 = serviceSchemaResolver4(
|
|
|
604
603
|
);
|
|
605
604
|
|
|
606
605
|
// domain/schemas/subscription.schema.ts
|
|
607
|
-
import { serviceSchemaResolver as serviceSchemaResolver5 } from
|
|
606
|
+
import { serviceSchemaResolver as serviceSchemaResolver5 } from "@forklaunch/internal";
|
|
608
607
|
|
|
609
608
|
// domain/schemas/typebox/subscription.schema.ts
|
|
610
609
|
import {
|
|
@@ -614,7 +613,7 @@ import {
|
|
|
614
613
|
optional as optional9,
|
|
615
614
|
string as string9,
|
|
616
615
|
type as type9
|
|
617
|
-
} from
|
|
616
|
+
} from "@forklaunch/validator/typebox";
|
|
618
617
|
var CreateSubscriptionSchema = (PartyEnum) => ({
|
|
619
618
|
id: optional9(string9),
|
|
620
619
|
partyId: string9,
|
|
@@ -673,7 +672,7 @@ import {
|
|
|
673
672
|
optional as optional10,
|
|
674
673
|
string as string10,
|
|
675
674
|
type as type10
|
|
676
|
-
} from
|
|
675
|
+
} from "@forklaunch/validator/zod";
|
|
677
676
|
var CreateSubscriptionSchema2 = (PartyEnum) => ({
|
|
678
677
|
id: optional10(string10),
|
|
679
678
|
partyId: string10,
|