@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,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
|
-
// domain/
|
|
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
|
-
// domain/
|
|
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,
|
|
@@ -284,9 +289,7 @@ var UpdateCheckoutSessionSchema = (StatusEnum) => ({
|
|
|
284
289
|
cancelRedirectUri: optional3(string3),
|
|
285
290
|
expiresAt: optional3(date3),
|
|
286
291
|
status: optional3(enum_(StatusEnum)),
|
|
287
|
-
stripeFields: optional3(
|
|
288
|
-
type3()
|
|
289
|
-
)
|
|
292
|
+
stripeFields: optional3(type3())
|
|
290
293
|
});
|
|
291
294
|
var CheckoutSessionSchema = (StatusEnum) => ({
|
|
292
295
|
id: string3,
|
|
@@ -308,7 +311,7 @@ var StripeCheckoutSessionServiceSchemas = {
|
|
|
308
311
|
CheckoutSessionSchema
|
|
309
312
|
};
|
|
310
313
|
|
|
311
|
-
// schemas/zod/checkoutSession.schema.ts
|
|
314
|
+
// domain/schemas/zod/checkoutSession.schema.ts
|
|
312
315
|
import {
|
|
313
316
|
array as array2,
|
|
314
317
|
date as date4,
|
|
@@ -317,7 +320,7 @@ import {
|
|
|
317
320
|
string as string4,
|
|
318
321
|
type as type4,
|
|
319
322
|
unknown as unknown2
|
|
320
|
-
} from
|
|
323
|
+
} from '@forklaunch/validator/zod';
|
|
321
324
|
var CreateCheckoutSessionSchema2 = (StatusEnum) => ({
|
|
322
325
|
id: optional4(string4),
|
|
323
326
|
customerId: string4,
|
|
@@ -338,9 +341,7 @@ var UpdateCheckoutSessionSchema2 = (StatusEnum) => ({
|
|
|
338
341
|
cancelRedirectUri: optional4(string4),
|
|
339
342
|
expiresAt: optional4(date4),
|
|
340
343
|
status: optional4(enum_2(StatusEnum)),
|
|
341
|
-
stripeFields: optional4(
|
|
342
|
-
type4()
|
|
343
|
-
)
|
|
344
|
+
stripeFields: optional4(type4())
|
|
344
345
|
});
|
|
345
346
|
var CheckoutSessionSchema2 = (StatusEnum) => ({
|
|
346
347
|
id: string4,
|
|
@@ -362,16 +363,16 @@ var StripeCheckoutSessionServiceSchemas2 = {
|
|
|
362
363
|
CheckoutSessionSchema: CheckoutSessionSchema2
|
|
363
364
|
};
|
|
364
365
|
|
|
365
|
-
// schemas/checkoutSession.schema.ts
|
|
366
|
+
// domain/schemas/checkoutSession.schema.ts
|
|
366
367
|
var StripeCheckoutSessionServiceSchemas3 = serviceSchemaResolver2(
|
|
367
368
|
() => StripeCheckoutSessionServiceSchemas,
|
|
368
369
|
() => StripeCheckoutSessionServiceSchemas2
|
|
369
370
|
);
|
|
370
371
|
|
|
371
|
-
// schemas/paymentLink.schema.ts
|
|
372
|
-
import { serviceSchemaResolver as serviceSchemaResolver3 } from
|
|
372
|
+
// domain/schemas/paymentLink.schema.ts
|
|
373
|
+
import { serviceSchemaResolver as serviceSchemaResolver3 } from '@forklaunch/internal';
|
|
373
374
|
|
|
374
|
-
// schemas/typebox/paymentLink.schema.ts
|
|
375
|
+
// domain/schemas/typebox/paymentLink.schema.ts
|
|
375
376
|
import {
|
|
376
377
|
array as array3,
|
|
377
378
|
date as date5,
|
|
@@ -380,7 +381,7 @@ import {
|
|
|
380
381
|
optional as optional5,
|
|
381
382
|
string as string5,
|
|
382
383
|
type as type5
|
|
383
|
-
} from
|
|
384
|
+
} from '@forklaunch/validator/typebox';
|
|
384
385
|
var CreatePaymentLinkSchema = (StatusEnum) => ({
|
|
385
386
|
id: optional5(string5),
|
|
386
387
|
amount: number,
|
|
@@ -413,7 +414,7 @@ var StripePaymentLinkServiceSchemas = {
|
|
|
413
414
|
PaymentLinkSchema
|
|
414
415
|
};
|
|
415
416
|
|
|
416
|
-
// schemas/zod/paymentLink.schema.ts
|
|
417
|
+
// domain/schemas/zod/paymentLink.schema.ts
|
|
417
418
|
import {
|
|
418
419
|
array as array4,
|
|
419
420
|
date as date6,
|
|
@@ -422,7 +423,7 @@ import {
|
|
|
422
423
|
optional as optional6,
|
|
423
424
|
string as string6,
|
|
424
425
|
type as type6
|
|
425
|
-
} from
|
|
426
|
+
} from '@forklaunch/validator/zod';
|
|
426
427
|
var CreatePaymentLinkSchema2 = (StatusEnum) => ({
|
|
427
428
|
id: optional6(string6),
|
|
428
429
|
amount: number2,
|
|
@@ -455,16 +456,16 @@ var StripePaymentLinkServiceSchemas2 = {
|
|
|
455
456
|
PaymentLinkSchema: PaymentLinkSchema2
|
|
456
457
|
};
|
|
457
458
|
|
|
458
|
-
// schemas/paymentLink.schema.ts
|
|
459
|
+
// domain/schemas/paymentLink.schema.ts
|
|
459
460
|
var StripePaymentLinkServiceSchemas3 = serviceSchemaResolver3(
|
|
460
461
|
() => StripePaymentLinkServiceSchemas,
|
|
461
462
|
() => StripePaymentLinkServiceSchemas2
|
|
462
463
|
);
|
|
463
464
|
|
|
464
|
-
// schemas/plan.schema.ts
|
|
465
|
-
import { serviceSchemaResolver as serviceSchemaResolver4 } from
|
|
465
|
+
// domain/schemas/plan.schema.ts
|
|
466
|
+
import { serviceSchemaResolver as serviceSchemaResolver4 } from '@forklaunch/internal';
|
|
466
467
|
|
|
467
|
-
// schemas/typebox/plan.schema.ts
|
|
468
|
+
// domain/schemas/typebox/plan.schema.ts
|
|
468
469
|
import {
|
|
469
470
|
array as array5,
|
|
470
471
|
boolean,
|
|
@@ -474,23 +475,23 @@ import {
|
|
|
474
475
|
optional as optional7,
|
|
475
476
|
string as string7,
|
|
476
477
|
type as type7
|
|
477
|
-
} from
|
|
478
|
+
} from '@forklaunch/validator/typebox';
|
|
478
479
|
|
|
479
|
-
// domain/
|
|
480
|
+
// domain/enum/billingProvider.enum.ts
|
|
480
481
|
var BillingProviderEnum = /* @__PURE__ */ ((BillingProviderEnum2) => {
|
|
481
|
-
BillingProviderEnum2[
|
|
482
|
+
BillingProviderEnum2['STRIPE'] = 'stripe';
|
|
482
483
|
return BillingProviderEnum2;
|
|
483
484
|
})(BillingProviderEnum || {});
|
|
484
485
|
|
|
485
|
-
// domain/
|
|
486
|
+
// domain/enum/planCadence.enum.ts
|
|
486
487
|
var PlanCadenceEnum = /* @__PURE__ */ ((PlanCadenceEnum2) => {
|
|
487
|
-
PlanCadenceEnum2[
|
|
488
|
-
PlanCadenceEnum2[
|
|
489
|
-
PlanCadenceEnum2[
|
|
488
|
+
PlanCadenceEnum2['WEEKLY'] = 'week';
|
|
489
|
+
PlanCadenceEnum2['MONTHLY'] = 'month';
|
|
490
|
+
PlanCadenceEnum2['ANNUALLY'] = 'year';
|
|
490
491
|
return PlanCadenceEnum2;
|
|
491
492
|
})(PlanCadenceEnum || {});
|
|
492
493
|
|
|
493
|
-
// schemas/typebox/plan.schema.ts
|
|
494
|
+
// domain/schemas/typebox/plan.schema.ts
|
|
494
495
|
var CreatePlanSchema = {
|
|
495
496
|
id: optional7(string7),
|
|
496
497
|
name: string7,
|
|
@@ -538,7 +539,7 @@ var StripePlanServiceSchemas = {
|
|
|
538
539
|
PlanSchema
|
|
539
540
|
};
|
|
540
541
|
|
|
541
|
-
// schemas/zod/plan.schema.ts
|
|
542
|
+
// domain/schemas/zod/plan.schema.ts
|
|
542
543
|
import {
|
|
543
544
|
array as array6,
|
|
544
545
|
boolean as boolean2,
|
|
@@ -548,7 +549,7 @@ import {
|
|
|
548
549
|
optional as optional8,
|
|
549
550
|
string as string8,
|
|
550
551
|
type as type8
|
|
551
|
-
} from
|
|
552
|
+
} from '@forklaunch/validator/zod';
|
|
552
553
|
var CreatePlanSchema2 = {
|
|
553
554
|
id: optional8(string8),
|
|
554
555
|
name: string8,
|
|
@@ -596,16 +597,16 @@ var StripePlanServiceSchemas2 = {
|
|
|
596
597
|
PlanSchema: PlanSchema2
|
|
597
598
|
};
|
|
598
599
|
|
|
599
|
-
// schemas/plan.schema.ts
|
|
600
|
+
// domain/schemas/plan.schema.ts
|
|
600
601
|
var StripePlanServiceSchemas3 = serviceSchemaResolver4(
|
|
601
602
|
() => StripePlanServiceSchemas,
|
|
602
603
|
() => StripePlanServiceSchemas2
|
|
603
604
|
);
|
|
604
605
|
|
|
605
|
-
// schemas/subscription.schema.ts
|
|
606
|
-
import { serviceSchemaResolver as serviceSchemaResolver5 } from
|
|
606
|
+
// domain/schemas/subscription.schema.ts
|
|
607
|
+
import { serviceSchemaResolver as serviceSchemaResolver5 } from '@forklaunch/internal';
|
|
607
608
|
|
|
608
|
-
// schemas/typebox/subscription.schema.ts
|
|
609
|
+
// domain/schemas/typebox/subscription.schema.ts
|
|
609
610
|
import {
|
|
610
611
|
boolean as boolean3,
|
|
611
612
|
date as date9,
|
|
@@ -613,7 +614,7 @@ import {
|
|
|
613
614
|
optional as optional9,
|
|
614
615
|
string as string9,
|
|
615
616
|
type as type9
|
|
616
|
-
} from
|
|
617
|
+
} from '@forklaunch/validator/typebox';
|
|
617
618
|
var CreateSubscriptionSchema = (PartyEnum) => ({
|
|
618
619
|
id: optional9(string9),
|
|
619
620
|
partyId: string9,
|
|
@@ -664,7 +665,7 @@ var StripeSubscriptionServiceSchemas = {
|
|
|
664
665
|
SubscriptionSchema
|
|
665
666
|
};
|
|
666
667
|
|
|
667
|
-
// schemas/zod/subscription.schema.ts
|
|
668
|
+
// domain/schemas/zod/subscription.schema.ts
|
|
668
669
|
import {
|
|
669
670
|
boolean as boolean4,
|
|
670
671
|
date as date10,
|
|
@@ -672,7 +673,7 @@ import {
|
|
|
672
673
|
optional as optional10,
|
|
673
674
|
string as string10,
|
|
674
675
|
type as type10
|
|
675
|
-
} from
|
|
676
|
+
} from '@forklaunch/validator/zod';
|
|
676
677
|
var CreateSubscriptionSchema2 = (PartyEnum) => ({
|
|
677
678
|
id: optional10(string10),
|
|
678
679
|
partyId: string10,
|
|
@@ -723,7 +724,7 @@ var StripeSubscriptionServiceSchemas2 = {
|
|
|
723
724
|
SubscriptionSchema: SubscriptionSchema2
|
|
724
725
|
};
|
|
725
726
|
|
|
726
|
-
// schemas/subscription.schema.ts
|
|
727
|
+
// domain/schemas/subscription.schema.ts
|
|
727
728
|
var StripeSubscriptionServiceSchemas3 = serviceSchemaResolver5(
|
|
728
729
|
() => StripeSubscriptionServiceSchemas,
|
|
729
730
|
() => StripeSubscriptionServiceSchemas2
|