@forklaunch/implementation-billing-base 0.8.20 → 0.9.0
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/schemas/index.d.mts +8 -8
- package/lib/domain/schemas/index.d.ts +8 -8
- package/lib/domain/schemas/index.js +8 -8
- package/lib/domain/schemas/index.mjs +8 -8
- package/lib/domain/types/index.d.mts +272 -31
- package/lib/domain/types/index.d.ts +272 -31
- package/lib/eject/domain/schemas/plan.schema.ts +2 -2
- package/lib/eject/domain/schemas/subscription.schema.ts +2 -2
- package/lib/eject/domain/types/baseBillingEntity.types.ts +97 -46
- package/lib/eject/domain/types/billingPortal.mapper.types.ts +7 -4
- package/lib/eject/domain/types/checkoutSession.mapper.types.ts +7 -4
- package/lib/eject/domain/types/paymentLink.mapper.types.ts +7 -4
- package/lib/eject/domain/types/plan.mapper.types.ts +7 -4
- package/lib/eject/domain/types/subscription.mapper.types.ts +7 -4
- package/lib/eject/services/billingPortal.service.ts +8 -7
- package/lib/eject/services/checkoutSession.service.ts +24 -14
- package/lib/eject/services/paymentLink.service.ts +28 -19
- package/lib/eject/services/plan.service.ts +23 -10
- package/lib/eject/services/subscription.service.ts +56 -32
- package/lib/services/index.d.mts +3 -3
- package/lib/services/index.d.ts +3 -3
- package/lib/services/index.js +102 -56
- package/lib/services/index.mjs +102 -56
- package/package.json +8 -8
|
@@ -220,7 +220,7 @@ declare const BasePlanServiceSchemas: <SchemaValidator extends _forklaunch_valid
|
|
|
220
220
|
currency: _sinclair_typebox.TUnion<[{ [K_1 in keyof U]: _sinclair_typebox.TLiteral<U[K_1]>; }[keyof U]]>;
|
|
221
221
|
features: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
|
|
222
222
|
externalId: _sinclair_typebox.TString;
|
|
223
|
-
billingProvider: _sinclair_typebox.
|
|
223
|
+
billingProvider: _sinclair_typebox.TUnion<[{ [K_2 in keyof V]: _sinclair_typebox.TLiteral<V[K_2]>; }[keyof V]]>;
|
|
224
224
|
active: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TBoolean, _sinclair_typebox.TString]>, boolean>;
|
|
225
225
|
providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
226
226
|
};
|
|
@@ -246,7 +246,7 @@ declare const BasePlanServiceSchemas: <SchemaValidator extends _forklaunch_valid
|
|
|
246
246
|
currency: _sinclair_typebox.TUnion<[{ [K_1 in keyof U_2]: _sinclair_typebox.TLiteral<U_2[K_1]>; }[keyof U_2]]>;
|
|
247
247
|
features: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
|
|
248
248
|
externalId: _sinclair_typebox.TString;
|
|
249
|
-
billingProvider: _sinclair_typebox.
|
|
249
|
+
billingProvider: _sinclair_typebox.TUnion<[{ [K_2 in keyof V_2]: _sinclair_typebox.TLiteral<V_2[K_2]>; }[keyof V_2]]>;
|
|
250
250
|
active: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TBoolean, _sinclair_typebox.TString]>, boolean>;
|
|
251
251
|
providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
252
252
|
createdAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
@@ -263,7 +263,7 @@ declare const BasePlanServiceSchemas: <SchemaValidator extends _forklaunch_valid
|
|
|
263
263
|
currency: zod_v3.ZodUnion<[{ [K_1 in keyof U_3]: zod_v3.ZodLiteral<U_3[K_1]>; }[keyof U_3]]>;
|
|
264
264
|
features: zod_v3.ZodOptional<zod_v3.ZodArray<zod_v3.ZodString, "many">>;
|
|
265
265
|
externalId: zod_v3.ZodString;
|
|
266
|
-
billingProvider: zod_v3.
|
|
266
|
+
billingProvider: zod_v3.ZodUnion<[{ [K_2 in keyof V_3]: zod_v3.ZodLiteral<V_3[K_2]>; }[keyof V_3]]>;
|
|
267
267
|
active: zod_v3.ZodEffects<zod_v3.ZodBoolean, boolean, unknown>;
|
|
268
268
|
providerFields: zod_v3.ZodOptional<zod_v3.ZodUnknown>;
|
|
269
269
|
};
|
|
@@ -289,7 +289,7 @@ declare const BasePlanServiceSchemas: <SchemaValidator extends _forklaunch_valid
|
|
|
289
289
|
currency: zod_v3.ZodUnion<[{ [K_1 in keyof U_5]: zod_v3.ZodLiteral<U_5[K_1]>; }[keyof U_5]]>;
|
|
290
290
|
features: zod_v3.ZodOptional<zod_v3.ZodArray<zod_v3.ZodString, "many">>;
|
|
291
291
|
externalId: zod_v3.ZodString;
|
|
292
|
-
billingProvider: zod_v3.
|
|
292
|
+
billingProvider: zod_v3.ZodUnion<[{ [K_2 in keyof V_5]: zod_v3.ZodLiteral<V_5[K_2]>; }[keyof V_5]]>;
|
|
293
293
|
active: zod_v3.ZodEffects<zod_v3.ZodBoolean, boolean, unknown>;
|
|
294
294
|
providerFields: zod_v3.ZodOptional<zod_v3.ZodUnknown>;
|
|
295
295
|
createdAt: zod_v3.ZodOptional<zod_v3.ZodEffects<zod_v3.ZodDate, Date, unknown>>;
|
|
@@ -314,7 +314,7 @@ declare const BaseSubscriptionServiceSchemas: <SchemaValidator extends _forklaun
|
|
|
314
314
|
startDate: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>;
|
|
315
315
|
endDate: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
316
316
|
status: _sinclair_typebox.TString;
|
|
317
|
-
billingProvider: _sinclair_typebox.
|
|
317
|
+
billingProvider: _sinclair_typebox.TUnion<[{ [K_1 in keyof U]: _sinclair_typebox.TLiteral<U[K_1]>; }[keyof U]]>;
|
|
318
318
|
providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
319
319
|
};
|
|
320
320
|
UpdateSubscriptionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_1 extends Record<string, _forklaunch_validator.LiteralSchema>>(PartyEnum: T, BillingProviderEnum: U_1) => {
|
|
@@ -342,7 +342,7 @@ declare const BaseSubscriptionServiceSchemas: <SchemaValidator extends _forklaun
|
|
|
342
342
|
startDate: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>;
|
|
343
343
|
endDate: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
344
344
|
status: _sinclair_typebox.TString;
|
|
345
|
-
billingProvider: _sinclair_typebox.
|
|
345
|
+
billingProvider: _sinclair_typebox.TUnion<[{ [K_1 in keyof U_2]: _sinclair_typebox.TLiteral<U_2[K_1]>; }[keyof U_2]]>;
|
|
346
346
|
providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
347
347
|
createdAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
348
348
|
updatedAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
@@ -360,7 +360,7 @@ declare const BaseSubscriptionServiceSchemas: <SchemaValidator extends _forklaun
|
|
|
360
360
|
startDate: zod_v3.ZodEffects<zod_v3.ZodDate, Date, unknown>;
|
|
361
361
|
endDate: zod_v3.ZodOptional<zod_v3.ZodEffects<zod_v3.ZodDate, Date, unknown>>;
|
|
362
362
|
status: zod_v3.ZodString;
|
|
363
|
-
billingProvider: zod_v3.
|
|
363
|
+
billingProvider: zod_v3.ZodUnion<[{ [K_1 in keyof U_3]: zod_v3.ZodLiteral<U_3[K_1]>; }[keyof U_3]]>;
|
|
364
364
|
providerFields: zod_v3.ZodOptional<zod_v3.ZodUnknown>;
|
|
365
365
|
};
|
|
366
366
|
UpdateSubscriptionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_4 extends Record<string, _forklaunch_validator.LiteralSchema>>(PartyEnum: T, BillingProviderEnum: U_4) => {
|
|
@@ -388,7 +388,7 @@ declare const BaseSubscriptionServiceSchemas: <SchemaValidator extends _forklaun
|
|
|
388
388
|
startDate: zod_v3.ZodEffects<zod_v3.ZodDate, Date, unknown>;
|
|
389
389
|
endDate: zod_v3.ZodOptional<zod_v3.ZodEffects<zod_v3.ZodDate, Date, unknown>>;
|
|
390
390
|
status: zod_v3.ZodString;
|
|
391
|
-
billingProvider: zod_v3.
|
|
391
|
+
billingProvider: zod_v3.ZodUnion<[{ [K_1 in keyof U_5]: zod_v3.ZodLiteral<U_5[K_1]>; }[keyof U_5]]>;
|
|
392
392
|
providerFields: zod_v3.ZodOptional<zod_v3.ZodUnknown>;
|
|
393
393
|
createdAt: zod_v3.ZodOptional<zod_v3.ZodEffects<zod_v3.ZodDate, Date, unknown>>;
|
|
394
394
|
updatedAt: zod_v3.ZodOptional<zod_v3.ZodEffects<zod_v3.ZodDate, Date, unknown>>;
|
|
@@ -220,7 +220,7 @@ declare const BasePlanServiceSchemas: <SchemaValidator extends _forklaunch_valid
|
|
|
220
220
|
currency: _sinclair_typebox.TUnion<[{ [K_1 in keyof U]: _sinclair_typebox.TLiteral<U[K_1]>; }[keyof U]]>;
|
|
221
221
|
features: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
|
|
222
222
|
externalId: _sinclair_typebox.TString;
|
|
223
|
-
billingProvider: _sinclair_typebox.
|
|
223
|
+
billingProvider: _sinclair_typebox.TUnion<[{ [K_2 in keyof V]: _sinclair_typebox.TLiteral<V[K_2]>; }[keyof V]]>;
|
|
224
224
|
active: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TBoolean, _sinclair_typebox.TString]>, boolean>;
|
|
225
225
|
providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
226
226
|
};
|
|
@@ -246,7 +246,7 @@ declare const BasePlanServiceSchemas: <SchemaValidator extends _forklaunch_valid
|
|
|
246
246
|
currency: _sinclair_typebox.TUnion<[{ [K_1 in keyof U_2]: _sinclair_typebox.TLiteral<U_2[K_1]>; }[keyof U_2]]>;
|
|
247
247
|
features: _sinclair_typebox.TOptional<_sinclair_typebox.TArray<_sinclair_typebox.TString>>;
|
|
248
248
|
externalId: _sinclair_typebox.TString;
|
|
249
|
-
billingProvider: _sinclair_typebox.
|
|
249
|
+
billingProvider: _sinclair_typebox.TUnion<[{ [K_2 in keyof V_2]: _sinclair_typebox.TLiteral<V_2[K_2]>; }[keyof V_2]]>;
|
|
250
250
|
active: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TBoolean, _sinclair_typebox.TString]>, boolean>;
|
|
251
251
|
providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
252
252
|
createdAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
@@ -263,7 +263,7 @@ declare const BasePlanServiceSchemas: <SchemaValidator extends _forklaunch_valid
|
|
|
263
263
|
currency: zod_v3.ZodUnion<[{ [K_1 in keyof U_3]: zod_v3.ZodLiteral<U_3[K_1]>; }[keyof U_3]]>;
|
|
264
264
|
features: zod_v3.ZodOptional<zod_v3.ZodArray<zod_v3.ZodString, "many">>;
|
|
265
265
|
externalId: zod_v3.ZodString;
|
|
266
|
-
billingProvider: zod_v3.
|
|
266
|
+
billingProvider: zod_v3.ZodUnion<[{ [K_2 in keyof V_3]: zod_v3.ZodLiteral<V_3[K_2]>; }[keyof V_3]]>;
|
|
267
267
|
active: zod_v3.ZodEffects<zod_v3.ZodBoolean, boolean, unknown>;
|
|
268
268
|
providerFields: zod_v3.ZodOptional<zod_v3.ZodUnknown>;
|
|
269
269
|
};
|
|
@@ -289,7 +289,7 @@ declare const BasePlanServiceSchemas: <SchemaValidator extends _forklaunch_valid
|
|
|
289
289
|
currency: zod_v3.ZodUnion<[{ [K_1 in keyof U_5]: zod_v3.ZodLiteral<U_5[K_1]>; }[keyof U_5]]>;
|
|
290
290
|
features: zod_v3.ZodOptional<zod_v3.ZodArray<zod_v3.ZodString, "many">>;
|
|
291
291
|
externalId: zod_v3.ZodString;
|
|
292
|
-
billingProvider: zod_v3.
|
|
292
|
+
billingProvider: zod_v3.ZodUnion<[{ [K_2 in keyof V_5]: zod_v3.ZodLiteral<V_5[K_2]>; }[keyof V_5]]>;
|
|
293
293
|
active: zod_v3.ZodEffects<zod_v3.ZodBoolean, boolean, unknown>;
|
|
294
294
|
providerFields: zod_v3.ZodOptional<zod_v3.ZodUnknown>;
|
|
295
295
|
createdAt: zod_v3.ZodOptional<zod_v3.ZodEffects<zod_v3.ZodDate, Date, unknown>>;
|
|
@@ -314,7 +314,7 @@ declare const BaseSubscriptionServiceSchemas: <SchemaValidator extends _forklaun
|
|
|
314
314
|
startDate: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>;
|
|
315
315
|
endDate: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
316
316
|
status: _sinclair_typebox.TString;
|
|
317
|
-
billingProvider: _sinclair_typebox.
|
|
317
|
+
billingProvider: _sinclair_typebox.TUnion<[{ [K_1 in keyof U]: _sinclair_typebox.TLiteral<U[K_1]>; }[keyof U]]>;
|
|
318
318
|
providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
319
319
|
};
|
|
320
320
|
UpdateSubscriptionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_1 extends Record<string, _forklaunch_validator.LiteralSchema>>(PartyEnum: T, BillingProviderEnum: U_1) => {
|
|
@@ -342,7 +342,7 @@ declare const BaseSubscriptionServiceSchemas: <SchemaValidator extends _forklaun
|
|
|
342
342
|
startDate: _sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>;
|
|
343
343
|
endDate: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
344
344
|
status: _sinclair_typebox.TString;
|
|
345
|
-
billingProvider: _sinclair_typebox.
|
|
345
|
+
billingProvider: _sinclair_typebox.TUnion<[{ [K_1 in keyof U_2]: _sinclair_typebox.TLiteral<U_2[K_1]>; }[keyof U_2]]>;
|
|
346
346
|
providerFields: _sinclair_typebox.TOptional<_sinclair_typebox.TUnknown>;
|
|
347
347
|
createdAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
348
348
|
updatedAt: _sinclair_typebox.TOptional<_sinclair_typebox.TTransform<_sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TNumber, _sinclair_typebox.TDate]>, Date>>;
|
|
@@ -360,7 +360,7 @@ declare const BaseSubscriptionServiceSchemas: <SchemaValidator extends _forklaun
|
|
|
360
360
|
startDate: zod_v3.ZodEffects<zod_v3.ZodDate, Date, unknown>;
|
|
361
361
|
endDate: zod_v3.ZodOptional<zod_v3.ZodEffects<zod_v3.ZodDate, Date, unknown>>;
|
|
362
362
|
status: zod_v3.ZodString;
|
|
363
|
-
billingProvider: zod_v3.
|
|
363
|
+
billingProvider: zod_v3.ZodUnion<[{ [K_1 in keyof U_3]: zod_v3.ZodLiteral<U_3[K_1]>; }[keyof U_3]]>;
|
|
364
364
|
providerFields: zod_v3.ZodOptional<zod_v3.ZodUnknown>;
|
|
365
365
|
};
|
|
366
366
|
UpdateSubscriptionSchema: <T extends Record<string, _forklaunch_validator.LiteralSchema>, U_4 extends Record<string, _forklaunch_validator.LiteralSchema>>(PartyEnum: T, BillingProviderEnum: U_4) => {
|
|
@@ -388,7 +388,7 @@ declare const BaseSubscriptionServiceSchemas: <SchemaValidator extends _forklaun
|
|
|
388
388
|
startDate: zod_v3.ZodEffects<zod_v3.ZodDate, Date, unknown>;
|
|
389
389
|
endDate: zod_v3.ZodOptional<zod_v3.ZodEffects<zod_v3.ZodDate, Date, unknown>>;
|
|
390
390
|
status: zod_v3.ZodString;
|
|
391
|
-
billingProvider: zod_v3.
|
|
391
|
+
billingProvider: zod_v3.ZodUnion<[{ [K_1 in keyof U_5]: zod_v3.ZodLiteral<U_5[K_1]>; }[keyof U_5]]>;
|
|
392
392
|
providerFields: zod_v3.ZodOptional<zod_v3.ZodUnknown>;
|
|
393
393
|
createdAt: zod_v3.ZodOptional<zod_v3.ZodEffects<zod_v3.ZodDate, Date, unknown>>;
|
|
394
394
|
updatedAt: zod_v3.ZodOptional<zod_v3.ZodEffects<zod_v3.ZodDate, Date, unknown>>;
|
|
@@ -282,7 +282,7 @@ var CreatePlanSchema = (PlanCadenceEnum, CurrencyEnum, BillingProviderEnum) => (
|
|
|
282
282
|
currency: (0, import_typebox4.enum_)(CurrencyEnum),
|
|
283
283
|
features: (0, import_typebox4.optional)((0, import_typebox4.array)(import_typebox4.string)),
|
|
284
284
|
externalId: import_typebox4.string,
|
|
285
|
-
billingProvider: (0, import_typebox4.
|
|
285
|
+
billingProvider: (0, import_typebox4.enum_)(BillingProviderEnum),
|
|
286
286
|
active: import_typebox4.boolean,
|
|
287
287
|
providerFields: (0, import_typebox4.optional)(import_typebox4.unknown)
|
|
288
288
|
});
|
|
@@ -308,7 +308,7 @@ var PlanSchema = ({ uuidId }) => (PlanCadenceEnum, CurrencyEnum, BillingProvider
|
|
|
308
308
|
currency: (0, import_typebox4.enum_)(CurrencyEnum),
|
|
309
309
|
features: (0, import_typebox4.optional)((0, import_typebox4.array)(import_typebox4.string)),
|
|
310
310
|
externalId: import_typebox4.string,
|
|
311
|
-
billingProvider: (0, import_typebox4.
|
|
311
|
+
billingProvider: (0, import_typebox4.enum_)(BillingProviderEnum),
|
|
312
312
|
active: import_typebox4.boolean,
|
|
313
313
|
providerFields: (0, import_typebox4.optional)(import_typebox4.unknown),
|
|
314
314
|
createdAt: (0, import_typebox4.optional)(import_typebox4.date),
|
|
@@ -330,7 +330,7 @@ var CreatePlanSchema2 = (PlanCadenceEnum, CurrencyEnum, BillingProviderEnum) =>
|
|
|
330
330
|
currency: (0, import_zod4.enum_)(CurrencyEnum),
|
|
331
331
|
features: (0, import_zod4.optional)((0, import_zod4.array)(import_zod4.string)),
|
|
332
332
|
externalId: import_zod4.string,
|
|
333
|
-
billingProvider: (0, import_zod4.
|
|
333
|
+
billingProvider: (0, import_zod4.enum_)(BillingProviderEnum),
|
|
334
334
|
active: import_zod4.boolean,
|
|
335
335
|
providerFields: (0, import_zod4.optional)(import_zod4.unknown)
|
|
336
336
|
});
|
|
@@ -356,7 +356,7 @@ var PlanSchema2 = ({ uuidId }) => (PlanCadenceEnum, CurrencyEnum, BillingProvide
|
|
|
356
356
|
currency: (0, import_zod4.enum_)(CurrencyEnum),
|
|
357
357
|
features: (0, import_zod4.optional)((0, import_zod4.array)(import_zod4.string)),
|
|
358
358
|
externalId: import_zod4.string,
|
|
359
|
-
billingProvider: (0, import_zod4.
|
|
359
|
+
billingProvider: (0, import_zod4.enum_)(BillingProviderEnum),
|
|
360
360
|
active: import_zod4.boolean,
|
|
361
361
|
providerFields: (0, import_zod4.optional)(import_zod4.unknown),
|
|
362
362
|
createdAt: (0, import_zod4.optional)(import_zod4.date),
|
|
@@ -389,7 +389,7 @@ var CreateSubscriptionSchema = (PartyEnum, BillingProviderEnum) => ({
|
|
|
389
389
|
startDate: import_typebox5.date,
|
|
390
390
|
endDate: (0, import_typebox5.optional)(import_typebox5.date),
|
|
391
391
|
status: import_typebox5.string,
|
|
392
|
-
billingProvider: (0, import_typebox5.
|
|
392
|
+
billingProvider: (0, import_typebox5.enum_)(BillingProviderEnum),
|
|
393
393
|
providerFields: (0, import_typebox5.optional)(import_typebox5.unknown)
|
|
394
394
|
});
|
|
395
395
|
var UpdateSubscriptionSchema = ({ uuidId }) => (PartyEnum, BillingProviderEnum) => ({
|
|
@@ -417,7 +417,7 @@ var SubscriptionSchema = ({ uuidId }) => (PartyEnum, BillingProviderEnum) => ({
|
|
|
417
417
|
startDate: import_typebox5.date,
|
|
418
418
|
endDate: (0, import_typebox5.optional)(import_typebox5.date),
|
|
419
419
|
status: import_typebox5.string,
|
|
420
|
-
billingProvider: (0, import_typebox5.
|
|
420
|
+
billingProvider: (0, import_typebox5.enum_)(BillingProviderEnum),
|
|
421
421
|
providerFields: (0, import_typebox5.optional)(import_typebox5.unknown),
|
|
422
422
|
createdAt: (0, import_typebox5.optional)(import_typebox5.date),
|
|
423
423
|
updatedAt: (0, import_typebox5.optional)(import_typebox5.date)
|
|
@@ -440,7 +440,7 @@ var CreateSubscriptionSchema2 = (PartyEnum, BillingProviderEnum) => ({
|
|
|
440
440
|
startDate: import_zod5.date,
|
|
441
441
|
endDate: (0, import_zod5.optional)(import_zod5.date),
|
|
442
442
|
status: import_zod5.string,
|
|
443
|
-
billingProvider: (0, import_zod5.
|
|
443
|
+
billingProvider: (0, import_zod5.enum_)(BillingProviderEnum),
|
|
444
444
|
providerFields: (0, import_zod5.optional)(import_zod5.unknown)
|
|
445
445
|
});
|
|
446
446
|
var UpdateSubscriptionSchema2 = ({ uuidId }) => (PartyEnum, BillingProviderEnum) => ({
|
|
@@ -468,7 +468,7 @@ var SubscriptionSchema2 = ({ uuidId }) => (PartyEnum, BillingProviderEnum) => ({
|
|
|
468
468
|
startDate: import_zod5.date,
|
|
469
469
|
endDate: (0, import_zod5.optional)(import_zod5.date),
|
|
470
470
|
status: import_zod5.string,
|
|
471
|
-
billingProvider: (0, import_zod5.
|
|
471
|
+
billingProvider: (0, import_zod5.enum_)(BillingProviderEnum),
|
|
472
472
|
providerFields: (0, import_zod5.optional)(import_zod5.unknown),
|
|
473
473
|
createdAt: (0, import_zod5.optional)(import_zod5.date),
|
|
474
474
|
updatedAt: (0, import_zod5.optional)(import_zod5.date)
|
|
@@ -308,7 +308,7 @@ var CreatePlanSchema = (PlanCadenceEnum, CurrencyEnum, BillingProviderEnum) => (
|
|
|
308
308
|
currency: enum_5(CurrencyEnum),
|
|
309
309
|
features: optional7(array5(string7)),
|
|
310
310
|
externalId: string7,
|
|
311
|
-
billingProvider:
|
|
311
|
+
billingProvider: enum_5(BillingProviderEnum),
|
|
312
312
|
active: boolean,
|
|
313
313
|
providerFields: optional7(unknown7)
|
|
314
314
|
});
|
|
@@ -334,7 +334,7 @@ var PlanSchema = ({ uuidId }) => (PlanCadenceEnum, CurrencyEnum, BillingProvider
|
|
|
334
334
|
currency: enum_5(CurrencyEnum),
|
|
335
335
|
features: optional7(array5(string7)),
|
|
336
336
|
externalId: string7,
|
|
337
|
-
billingProvider:
|
|
337
|
+
billingProvider: enum_5(BillingProviderEnum),
|
|
338
338
|
active: boolean,
|
|
339
339
|
providerFields: optional7(unknown7),
|
|
340
340
|
createdAt: optional7(date7),
|
|
@@ -366,7 +366,7 @@ var CreatePlanSchema2 = (PlanCadenceEnum, CurrencyEnum, BillingProviderEnum) =>
|
|
|
366
366
|
currency: enum_6(CurrencyEnum),
|
|
367
367
|
features: optional8(array6(string8)),
|
|
368
368
|
externalId: string8,
|
|
369
|
-
billingProvider:
|
|
369
|
+
billingProvider: enum_6(BillingProviderEnum),
|
|
370
370
|
active: boolean2,
|
|
371
371
|
providerFields: optional8(unknown8)
|
|
372
372
|
});
|
|
@@ -392,7 +392,7 @@ var PlanSchema2 = ({ uuidId }) => (PlanCadenceEnum, CurrencyEnum, BillingProvide
|
|
|
392
392
|
currency: enum_6(CurrencyEnum),
|
|
393
393
|
features: optional8(array6(string8)),
|
|
394
394
|
externalId: string8,
|
|
395
|
-
billingProvider:
|
|
395
|
+
billingProvider: enum_6(BillingProviderEnum),
|
|
396
396
|
active: boolean2,
|
|
397
397
|
providerFields: optional8(unknown8),
|
|
398
398
|
createdAt: optional8(date8),
|
|
@@ -433,7 +433,7 @@ var CreateSubscriptionSchema = (PartyEnum, BillingProviderEnum) => ({
|
|
|
433
433
|
startDate: date9,
|
|
434
434
|
endDate: optional9(date9),
|
|
435
435
|
status: string9,
|
|
436
|
-
billingProvider:
|
|
436
|
+
billingProvider: enum_7(BillingProviderEnum),
|
|
437
437
|
providerFields: optional9(unknown9)
|
|
438
438
|
});
|
|
439
439
|
var UpdateSubscriptionSchema = ({ uuidId }) => (PartyEnum, BillingProviderEnum) => ({
|
|
@@ -461,7 +461,7 @@ var SubscriptionSchema = ({ uuidId }) => (PartyEnum, BillingProviderEnum) => ({
|
|
|
461
461
|
startDate: date9,
|
|
462
462
|
endDate: optional9(date9),
|
|
463
463
|
status: string9,
|
|
464
|
-
billingProvider:
|
|
464
|
+
billingProvider: enum_7(BillingProviderEnum),
|
|
465
465
|
providerFields: optional9(unknown9),
|
|
466
466
|
createdAt: optional9(date9),
|
|
467
467
|
updatedAt: optional9(date9)
|
|
@@ -492,7 +492,7 @@ var CreateSubscriptionSchema2 = (PartyEnum, BillingProviderEnum) => ({
|
|
|
492
492
|
startDate: date10,
|
|
493
493
|
endDate: optional10(date10),
|
|
494
494
|
status: string10,
|
|
495
|
-
billingProvider:
|
|
495
|
+
billingProvider: enum_8(BillingProviderEnum),
|
|
496
496
|
providerFields: optional10(unknown10)
|
|
497
497
|
});
|
|
498
498
|
var UpdateSubscriptionSchema2 = ({ uuidId }) => (PartyEnum, BillingProviderEnum) => ({
|
|
@@ -520,7 +520,7 @@ var SubscriptionSchema2 = ({ uuidId }) => (PartyEnum, BillingProviderEnum) => ({
|
|
|
520
520
|
startDate: date10,
|
|
521
521
|
endDate: optional10(date10),
|
|
522
522
|
status: string10,
|
|
523
|
-
billingProvider:
|
|
523
|
+
billingProvider: enum_8(BillingProviderEnum),
|
|
524
524
|
providerFields: optional10(unknown10),
|
|
525
525
|
createdAt: optional10(date10),
|
|
526
526
|
updatedAt: optional10(date10)
|