@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.
Files changed (43) hide show
  1. package/lib/domain/enum/index.d.mts +194 -0
  2. package/lib/domain/enum/index.d.ts +194 -0
  3. package/lib/domain/enum/index.js +236 -0
  4. package/lib/domain/enum/index.mjs +201 -0
  5. package/lib/domain/schemas/index.d.mts +4142 -0
  6. package/lib/domain/schemas/index.d.ts +4142 -0
  7. package/lib/{schemas → domain/schemas}/index.js +351 -275
  8. package/lib/{schemas → domain/schemas}/index.mjs +224 -223
  9. package/lib/domain/types/index.d.mts +280 -0
  10. package/lib/domain/types/index.d.ts +280 -0
  11. package/lib/{types → domain/types}/index.js +9 -5
  12. package/lib/eject/domain/enum/billingProvider.enum.ts +3 -0
  13. package/lib/eject/domain/enum/currency.enum.ts +137 -0
  14. package/lib/eject/domain/enum/index.ts +4 -0
  15. package/lib/eject/domain/enum/paymentMethod.enum.ts +39 -0
  16. package/lib/eject/domain/enum/planCadence.enum.ts +5 -0
  17. package/lib/eject/domain/schemas/checkoutSession.schema.ts +2 -2
  18. package/lib/eject/domain/schemas/paymentLink.schema.ts +2 -2
  19. package/lib/eject/domain/schemas/plan.schema.ts +3 -3
  20. package/lib/eject/domain/schemas/subscription.schema.ts +1 -1
  21. package/lib/eject/{types → domain/types}/stripe.dto.types.ts +4 -4
  22. package/lib/eject/{types → domain/types}/stripe.entity.types.ts +4 -4
  23. package/lib/eject/services/billingPortal.service.ts +2 -2
  24. package/lib/eject/services/checkoutSession.service.ts +4 -4
  25. package/lib/eject/services/paymentLink.service.ts +4 -4
  26. package/lib/eject/services/plan.service.ts +5 -5
  27. package/lib/eject/services/subscription.service.ts +3 -3
  28. package/lib/eject/services/webhook.service.ts +5 -5
  29. package/lib/services/index.d.mts +709 -194
  30. package/lib/services/index.d.ts +709 -194
  31. package/lib/services/index.js +359 -244
  32. package/lib/services/index.mjs +298 -205
  33. package/package.json +16 -16
  34. package/lib/domain/index.d.mts +0 -189
  35. package/lib/domain/index.d.ts +0 -189
  36. package/lib/domain/index.js +0 -231
  37. package/lib/domain/index.mjs +0 -201
  38. package/lib/schemas/index.d.mts +0 -376
  39. package/lib/schemas/index.d.ts +0 -376
  40. package/lib/types/index.d.mts +0 -121
  41. package/lib/types/index.d.ts +0 -121
  42. /package/lib/{types → domain/types}/index.mjs +0 -0
  43. /package/lib/eject/{types → domain/types}/index.ts +0 -0
@@ -1,8 +1,8 @@
1
- // schemas/billingPortal.schema.ts
2
- import { serviceSchemaResolver } from "@forklaunch/internal";
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 "@forklaunch/validator/typebox";
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 { date as date2, optional as optional2, string as string2, type as type2 } from "@forklaunch/validator/zod";
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 "@forklaunch/internal";
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 "@forklaunch/validator/typebox";
87
+ } from '@forklaunch/validator/typebox';
83
88
 
84
- // domain/enums/currency.enum.ts
89
+ // domain/enum/currency.enum.ts
85
90
  var CurrencyEnum = /* @__PURE__ */ ((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";
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/enums/paymentMethod.enum.ts
229
+ // domain/enum/paymentMethod.enum.ts
225
230
  var PaymentMethodEnum = /* @__PURE__ */ ((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";
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 "@forklaunch/validator/zod";
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 "@forklaunch/internal";
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 "@forklaunch/validator/typebox";
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 "@forklaunch/validator/zod";
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 "@forklaunch/internal";
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 "@forklaunch/validator/typebox";
478
+ } from '@forklaunch/validator/typebox';
478
479
 
479
- // domain/enums/billingProvider.enum.ts
480
+ // domain/enum/billingProvider.enum.ts
480
481
  var BillingProviderEnum = /* @__PURE__ */ ((BillingProviderEnum2) => {
481
- BillingProviderEnum2["STRIPE"] = "stripe";
482
+ BillingProviderEnum2['STRIPE'] = 'stripe';
482
483
  return BillingProviderEnum2;
483
484
  })(BillingProviderEnum || {});
484
485
 
485
- // domain/enums/planCadence.enum.ts
486
+ // domain/enum/planCadence.enum.ts
486
487
  var PlanCadenceEnum = /* @__PURE__ */ ((PlanCadenceEnum2) => {
487
- PlanCadenceEnum2["WEEKLY"] = "week";
488
- PlanCadenceEnum2["MONTHLY"] = "month";
489
- PlanCadenceEnum2["ANNUALLY"] = "year";
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 "@forklaunch/validator/zod";
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 "@forklaunch/internal";
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 "@forklaunch/validator/typebox";
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 "@forklaunch/validator/zod";
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