@forklaunch/implementation-billing-stripe 0.5.20 → 0.6.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 +39 -39
- package/lib/domain/schemas/index.d.ts +39 -39
- package/lib/domain/schemas/index.js +8 -8
- package/lib/domain/schemas/index.mjs +8 -8
- package/lib/domain/types/index.d.mts +294 -65
- package/lib/domain/types/index.d.ts +294 -65
- 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/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 +9 -4
- package/lib/eject/domain/types/stripe.entity.types.ts +103 -63
- package/lib/eject/domain/types/stripeWebhookEvent.types.ts +16 -0
- package/lib/eject/domain/types/subscription.mapper.types.ts +10 -7
- package/lib/eject/services/checkoutSession.service.ts +17 -19
- package/lib/eject/services/paymentLink.service.ts +28 -28
- package/lib/eject/services/webhook.service.ts +11 -10
- package/lib/services/index.d.mts +17 -17
- package/lib/services/index.d.ts +17 -17
- package/lib/services/index.js +65970 -533
- package/lib/services/index.mjs +66070 -507
- package/package.json +9 -9
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import * as _mikro_orm_core from '@mikro-orm/core';
|
|
2
|
+
import { InferEntity, EntityManager } from '@mikro-orm/core';
|
|
3
|
+
import Stripe__default from 'stripe';
|
|
3
4
|
import { BillingPortalDto, CreateBillingPortalDto, UpdateBillingPortalDto, CheckoutSessionDto, CreateCheckoutSessionDto, UpdateCheckoutSessionDto, PaymentLinkDto, CreatePaymentLinkDto, UpdatePaymentLinkDto, PlanDto, CreatePlanDto, UpdatePlanDto, SubscriptionDto, CreateSubscriptionDto, UpdateSubscriptionDto } from '@forklaunch/interfaces-billing/types';
|
|
4
5
|
import { PaymentMethodEnum, CurrencyEnum, PlanCadenceEnum, BillingProviderEnum } from '../enum/index.js';
|
|
5
6
|
|
|
6
7
|
type BillingPortalOmissions = 'customer';
|
|
7
8
|
type StripeCreateBillingPortalDto = Omit<CreateBillingPortalDto, 'providerFields'> & {
|
|
8
|
-
stripeFields: Omit<
|
|
9
|
+
stripeFields: Omit<Stripe__default.BillingPortal.SessionCreateParams, BillingPortalOmissions>;
|
|
9
10
|
};
|
|
10
11
|
type StripeUpdateBillingPortalDto = Omit<UpdateBillingPortalDto, 'providerFields'> & {
|
|
11
|
-
stripeFields?: Omit<
|
|
12
|
+
stripeFields?: Omit<Stripe__default.BillingPortal.SessionCreateParams, BillingPortalOmissions>;
|
|
12
13
|
};
|
|
13
14
|
type StripeBillingPortalDto = Omit<BillingPortalDto, 'providerFields'> & {
|
|
14
|
-
stripeFields:
|
|
15
|
+
stripeFields: Stripe__default.BillingPortal.Session;
|
|
15
16
|
};
|
|
16
17
|
type StripeBillingPortalDtos = {
|
|
17
18
|
BillingPortalMapper: StripeBillingPortalDto;
|
|
@@ -21,14 +22,14 @@ type StripeBillingPortalDtos = {
|
|
|
21
22
|
type CheckoutSessionOmissions = 'payment_method_types' | 'currency' | 'success_url' | 'cancel_url';
|
|
22
23
|
type StripeCreateCheckoutSessionDto<StatusEnum> = Omit<CreateCheckoutSessionDto<typeof PaymentMethodEnum, typeof CurrencyEnum, StatusEnum>, 'providerFields' | 'uri'> & {
|
|
23
24
|
uri: string;
|
|
24
|
-
stripeFields: Omit<
|
|
25
|
+
stripeFields: Omit<Stripe__default.Checkout.SessionCreateParams, CheckoutSessionOmissions>;
|
|
25
26
|
};
|
|
26
27
|
type StripeUpdateCheckoutSessionDto<StatusEnum> = Omit<UpdateCheckoutSessionDto<typeof PaymentMethodEnum, typeof CurrencyEnum, StatusEnum>, 'providerFields'> & {
|
|
27
|
-
stripeFields?: Omit<
|
|
28
|
+
stripeFields?: Omit<Stripe__default.Checkout.SessionCreateParams, CheckoutSessionOmissions>;
|
|
28
29
|
};
|
|
29
30
|
type StripeCheckoutSessionDto<StatusEnum> = Omit<CheckoutSessionDto<typeof PaymentMethodEnum, typeof CurrencyEnum, StatusEnum>, 'providerFields' | 'uri'> & {
|
|
30
31
|
uri: string;
|
|
31
|
-
stripeFields:
|
|
32
|
+
stripeFields: Stripe__default.Checkout.Session;
|
|
32
33
|
};
|
|
33
34
|
type StripeCheckoutSessionDtos<StatusEnum> = {
|
|
34
35
|
CheckoutSessionMapper: StripeCheckoutSessionDto<StatusEnum>;
|
|
@@ -36,13 +37,13 @@ type StripeCheckoutSessionDtos<StatusEnum> = {
|
|
|
36
37
|
UpdateCheckoutSessionMapper: StripeUpdateCheckoutSessionDto<StatusEnum>;
|
|
37
38
|
};
|
|
38
39
|
type StripeCreatePaymentLinkDto<StatusEnum> = Omit<CreatePaymentLinkDto<typeof PaymentMethodEnum, typeof CurrencyEnum, StatusEnum>, 'providerFields'> & {
|
|
39
|
-
stripeFields:
|
|
40
|
+
stripeFields: Stripe__default.PaymentLinkCreateParams;
|
|
40
41
|
};
|
|
41
42
|
type StripeUpdatePaymentLinkDto<StatusEnum> = Omit<UpdatePaymentLinkDto<typeof PaymentMethodEnum, typeof CurrencyEnum, StatusEnum>, 'providerFields'> & {
|
|
42
|
-
stripeFields?:
|
|
43
|
+
stripeFields?: Stripe__default.PaymentLinkUpdateParams;
|
|
43
44
|
};
|
|
44
45
|
type StripePaymentLinkDto<StatusEnum> = Omit<PaymentLinkDto<typeof PaymentMethodEnum, typeof CurrencyEnum, StatusEnum>, 'providerFields'> & {
|
|
45
|
-
stripeFields:
|
|
46
|
+
stripeFields: Stripe__default.PaymentLink;
|
|
46
47
|
};
|
|
47
48
|
type StripePaymentLinkDtos<StatusEnum> = {
|
|
48
49
|
PaymentLinkMapper: StripePaymentLinkDto<StatusEnum>;
|
|
@@ -51,13 +52,13 @@ type StripePaymentLinkDtos<StatusEnum> = {
|
|
|
51
52
|
};
|
|
52
53
|
type PlanOmissions = 'product' | 'interval' | 'currency';
|
|
53
54
|
type StripeCreatePlanDto = Omit<CreatePlanDto<typeof PlanCadenceEnum, typeof CurrencyEnum, typeof BillingProviderEnum>, 'providerFields'> & {
|
|
54
|
-
stripeFields: Omit<
|
|
55
|
+
stripeFields: Omit<Stripe__default.PlanCreateParams, PlanOmissions>;
|
|
55
56
|
};
|
|
56
57
|
type StripeUpdatePlanDto = Omit<UpdatePlanDto<typeof PlanCadenceEnum, typeof CurrencyEnum, typeof BillingProviderEnum>, 'providerFields'> & {
|
|
57
|
-
stripeFields?: Omit<
|
|
58
|
+
stripeFields?: Omit<Stripe__default.PlanUpdateParams, PlanOmissions>;
|
|
58
59
|
};
|
|
59
60
|
type StripePlanDto = Omit<PlanDto<typeof PlanCadenceEnum, typeof CurrencyEnum, typeof BillingProviderEnum>, 'providerFields'> & {
|
|
60
|
-
stripeFields:
|
|
61
|
+
stripeFields: Stripe__default.Product;
|
|
61
62
|
};
|
|
62
63
|
type StripePlanDtos = {
|
|
63
64
|
PlanMapper: StripePlanDto;
|
|
@@ -66,13 +67,13 @@ type StripePlanDtos = {
|
|
|
66
67
|
};
|
|
67
68
|
type SubscriptionOmissions = 'items' | 'customer';
|
|
68
69
|
type StripeCreateSubscriptionDto<PartyType> = Omit<CreateSubscriptionDto<PartyType, typeof BillingProviderEnum>, 'providerFields'> & {
|
|
69
|
-
stripeFields: Omit<
|
|
70
|
+
stripeFields: Omit<Stripe__default.SubscriptionCreateParams, SubscriptionOmissions>;
|
|
70
71
|
};
|
|
71
72
|
type StripeUpdateSubscriptionDto<PartyType> = Omit<UpdateSubscriptionDto<PartyType, typeof BillingProviderEnum>, 'providerFields'> & {
|
|
72
|
-
stripeFields?: Omit<
|
|
73
|
+
stripeFields?: Omit<Stripe__default.SubscriptionUpdateParams, SubscriptionOmissions>;
|
|
73
74
|
};
|
|
74
75
|
type StripeSubscriptionDto<PartyType> = Omit<SubscriptionDto<PartyType, typeof BillingProviderEnum>, 'providerFields'> & {
|
|
75
|
-
stripeFields:
|
|
76
|
+
stripeFields: Stripe__default.Subscription;
|
|
76
77
|
};
|
|
77
78
|
type StripeSubscriptionDtos<PartyType> = {
|
|
78
79
|
SubscriptionMapper: StripeSubscriptionDto<PartyType>;
|
|
@@ -80,105 +81,333 @@ type StripeSubscriptionDtos<PartyType> = {
|
|
|
80
81
|
UpdateSubscriptionMapper: StripeUpdateSubscriptionDto<PartyType>;
|
|
81
82
|
};
|
|
82
83
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
declare const BillingPortal: _mikro_orm_core.EntitySchemaWithMeta<"BillingPortal", string, _mikro_orm_core.InferEntityFromProperties<{
|
|
85
|
+
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
86
|
+
primary: true;
|
|
87
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
88
|
+
readonly customerId: _mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
89
|
+
readonly providerFields: _mikro_orm_core.UniversalPropertyOptionsBuilder<Stripe__default.BillingPortal.Session, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
90
|
+
}, undefined, never, never, false>, never, {
|
|
91
|
+
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
92
|
+
primary: true;
|
|
93
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
94
|
+
readonly customerId: _mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
95
|
+
readonly providerFields: _mikro_orm_core.UniversalPropertyOptionsBuilder<Stripe__default.BillingPortal.Session, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
96
|
+
}, _mikro_orm_core.EntityCtor<_mikro_orm_core.InferEntityFromProperties<{
|
|
97
|
+
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
98
|
+
primary: true;
|
|
99
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
100
|
+
readonly customerId: _mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
101
|
+
readonly providerFields: _mikro_orm_core.UniversalPropertyOptionsBuilder<Stripe__default.BillingPortal.Session, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
102
|
+
}, undefined, never, never, false>>>;
|
|
103
|
+
declare const CheckoutSession: _mikro_orm_core.EntitySchemaWithMeta<"CheckoutSession", string, _mikro_orm_core.InferEntityFromProperties<{
|
|
104
|
+
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
105
|
+
primary: true;
|
|
106
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
107
|
+
readonly customerId: _mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
108
|
+
readonly paymentMethods: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<any, Omit<_mikro_orm_core.EmptyOptions, "array"> & {
|
|
109
|
+
array: true;
|
|
110
|
+
}, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
|
|
111
|
+
readonly currency: _mikro_orm_core.UniversalPropertyOptionsBuilder<any, _mikro_orm_core.EmptyOptions, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
|
|
112
|
+
readonly status: _mikro_orm_core.UniversalPropertyOptionsBuilder<any, _mikro_orm_core.EmptyOptions, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
|
|
113
|
+
readonly providerFields: _mikro_orm_core.UniversalPropertyOptionsBuilder<Stripe__default.Checkout.Session, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
114
|
+
}, undefined, never, never, false>, never, {
|
|
115
|
+
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
116
|
+
primary: true;
|
|
117
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
118
|
+
readonly customerId: _mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
119
|
+
readonly paymentMethods: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<any, Omit<_mikro_orm_core.EmptyOptions, "array"> & {
|
|
120
|
+
array: true;
|
|
121
|
+
}, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
|
|
122
|
+
readonly currency: _mikro_orm_core.UniversalPropertyOptionsBuilder<any, _mikro_orm_core.EmptyOptions, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
|
|
123
|
+
readonly status: _mikro_orm_core.UniversalPropertyOptionsBuilder<any, _mikro_orm_core.EmptyOptions, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
|
|
124
|
+
readonly providerFields: _mikro_orm_core.UniversalPropertyOptionsBuilder<Stripe__default.Checkout.Session, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
125
|
+
}, _mikro_orm_core.EntityCtor<_mikro_orm_core.InferEntityFromProperties<{
|
|
126
|
+
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
127
|
+
primary: true;
|
|
128
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
129
|
+
readonly customerId: _mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
130
|
+
readonly paymentMethods: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<any, Omit<_mikro_orm_core.EmptyOptions, "array"> & {
|
|
131
|
+
array: true;
|
|
132
|
+
}, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
|
|
133
|
+
readonly currency: _mikro_orm_core.UniversalPropertyOptionsBuilder<any, _mikro_orm_core.EmptyOptions, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
|
|
134
|
+
readonly status: _mikro_orm_core.UniversalPropertyOptionsBuilder<any, _mikro_orm_core.EmptyOptions, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
|
|
135
|
+
readonly providerFields: _mikro_orm_core.UniversalPropertyOptionsBuilder<Stripe__default.Checkout.Session, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
136
|
+
}, undefined, never, never, false>>>;
|
|
137
|
+
declare const PaymentLink: _mikro_orm_core.EntitySchemaWithMeta<"PaymentLink", string, _mikro_orm_core.InferEntityFromProperties<{
|
|
138
|
+
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
139
|
+
primary: true;
|
|
140
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
141
|
+
readonly amount: _mikro_orm_core.UniversalPropertyOptionsBuilder<NonNullable<string | number>, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
142
|
+
readonly paymentMethods: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<any, Omit<_mikro_orm_core.EmptyOptions, "array"> & {
|
|
143
|
+
array: true;
|
|
144
|
+
}, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
|
|
145
|
+
readonly currency: _mikro_orm_core.UniversalPropertyOptionsBuilder<any, _mikro_orm_core.EmptyOptions, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
|
|
146
|
+
readonly status: _mikro_orm_core.UniversalPropertyOptionsBuilder<any, _mikro_orm_core.EmptyOptions, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
|
|
147
|
+
readonly providerFields: _mikro_orm_core.UniversalPropertyOptionsBuilder<Stripe__default.PaymentLink, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
148
|
+
}, undefined, never, never, false>, never, {
|
|
149
|
+
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
150
|
+
primary: true;
|
|
151
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
152
|
+
readonly amount: _mikro_orm_core.UniversalPropertyOptionsBuilder<NonNullable<string | number>, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
153
|
+
readonly paymentMethods: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<any, Omit<_mikro_orm_core.EmptyOptions, "array"> & {
|
|
154
|
+
array: true;
|
|
155
|
+
}, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
|
|
156
|
+
readonly currency: _mikro_orm_core.UniversalPropertyOptionsBuilder<any, _mikro_orm_core.EmptyOptions, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
|
|
157
|
+
readonly status: _mikro_orm_core.UniversalPropertyOptionsBuilder<any, _mikro_orm_core.EmptyOptions, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
|
|
158
|
+
readonly providerFields: _mikro_orm_core.UniversalPropertyOptionsBuilder<Stripe__default.PaymentLink, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
159
|
+
}, _mikro_orm_core.EntityCtor<_mikro_orm_core.InferEntityFromProperties<{
|
|
160
|
+
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
161
|
+
primary: true;
|
|
162
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
163
|
+
readonly amount: _mikro_orm_core.UniversalPropertyOptionsBuilder<NonNullable<string | number>, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
164
|
+
readonly paymentMethods: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<any, Omit<_mikro_orm_core.EmptyOptions, "array"> & {
|
|
165
|
+
array: true;
|
|
166
|
+
}, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
|
|
167
|
+
readonly currency: _mikro_orm_core.UniversalPropertyOptionsBuilder<any, _mikro_orm_core.EmptyOptions, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
|
|
168
|
+
readonly status: _mikro_orm_core.UniversalPropertyOptionsBuilder<any, _mikro_orm_core.EmptyOptions, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
|
|
169
|
+
readonly providerFields: _mikro_orm_core.UniversalPropertyOptionsBuilder<Stripe__default.PaymentLink, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
170
|
+
}, undefined, never, never, false>>>;
|
|
171
|
+
declare const Plan: _mikro_orm_core.EntitySchemaWithMeta<"Plan", string, _mikro_orm_core.InferEntityFromProperties<{
|
|
172
|
+
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
173
|
+
primary: true;
|
|
174
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
175
|
+
readonly name: _mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
176
|
+
readonly price: _mikro_orm_core.UniversalPropertyOptionsBuilder<NonNullable<string | number>, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
177
|
+
readonly externalId: _mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
178
|
+
readonly cadence: _mikro_orm_core.UniversalPropertyOptionsBuilder<any, _mikro_orm_core.EmptyOptions, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
|
|
179
|
+
readonly currency: _mikro_orm_core.UniversalPropertyOptionsBuilder<any, _mikro_orm_core.EmptyOptions, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
|
|
180
|
+
readonly billingProvider: _mikro_orm_core.UniversalPropertyOptionsBuilder<any, _mikro_orm_core.EmptyOptions, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
|
|
181
|
+
readonly providerFields: _mikro_orm_core.UniversalPropertyOptionsBuilder<Stripe__default.Product, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
182
|
+
}, undefined, never, never, false>, never, {
|
|
183
|
+
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
184
|
+
primary: true;
|
|
185
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
186
|
+
readonly name: _mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
187
|
+
readonly price: _mikro_orm_core.UniversalPropertyOptionsBuilder<NonNullable<string | number>, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
188
|
+
readonly externalId: _mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
189
|
+
readonly cadence: _mikro_orm_core.UniversalPropertyOptionsBuilder<any, _mikro_orm_core.EmptyOptions, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
|
|
190
|
+
readonly currency: _mikro_orm_core.UniversalPropertyOptionsBuilder<any, _mikro_orm_core.EmptyOptions, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
|
|
191
|
+
readonly billingProvider: _mikro_orm_core.UniversalPropertyOptionsBuilder<any, _mikro_orm_core.EmptyOptions, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
|
|
192
|
+
readonly providerFields: _mikro_orm_core.UniversalPropertyOptionsBuilder<Stripe__default.Product, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
193
|
+
}, _mikro_orm_core.EntityCtor<_mikro_orm_core.InferEntityFromProperties<{
|
|
194
|
+
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
195
|
+
primary: true;
|
|
196
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
197
|
+
readonly name: _mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
198
|
+
readonly price: _mikro_orm_core.UniversalPropertyOptionsBuilder<NonNullable<string | number>, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
199
|
+
readonly externalId: _mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
200
|
+
readonly cadence: _mikro_orm_core.UniversalPropertyOptionsBuilder<any, _mikro_orm_core.EmptyOptions, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
|
|
201
|
+
readonly currency: _mikro_orm_core.UniversalPropertyOptionsBuilder<any, _mikro_orm_core.EmptyOptions, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
|
|
202
|
+
readonly billingProvider: _mikro_orm_core.UniversalPropertyOptionsBuilder<any, _mikro_orm_core.EmptyOptions, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
|
|
203
|
+
readonly providerFields: _mikro_orm_core.UniversalPropertyOptionsBuilder<Stripe__default.Product, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
204
|
+
}, undefined, never, never, false>>>;
|
|
205
|
+
declare const Subscription: _mikro_orm_core.EntitySchemaWithMeta<"Subscription", string, _mikro_orm_core.InferEntityFromProperties<{
|
|
206
|
+
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
207
|
+
primary: true;
|
|
208
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
209
|
+
readonly partyId: _mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
210
|
+
readonly externalId: _mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
211
|
+
readonly partyType: _mikro_orm_core.UniversalPropertyOptionsBuilder<any, _mikro_orm_core.EmptyOptions, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
|
|
212
|
+
readonly billingProvider: _mikro_orm_core.UniversalPropertyOptionsBuilder<any, _mikro_orm_core.EmptyOptions, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
|
|
213
|
+
readonly active: _mikro_orm_core.UniversalPropertyOptionsBuilder<NonNullable<boolean | null | undefined>, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
214
|
+
readonly providerFields: _mikro_orm_core.UniversalPropertyOptionsBuilder<Stripe__default.Subscription, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
215
|
+
}, undefined, never, never, false>, never, {
|
|
216
|
+
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
217
|
+
primary: true;
|
|
218
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
219
|
+
readonly partyId: _mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
220
|
+
readonly externalId: _mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
221
|
+
readonly partyType: _mikro_orm_core.UniversalPropertyOptionsBuilder<any, _mikro_orm_core.EmptyOptions, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
|
|
222
|
+
readonly billingProvider: _mikro_orm_core.UniversalPropertyOptionsBuilder<any, _mikro_orm_core.EmptyOptions, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
|
|
223
|
+
readonly active: _mikro_orm_core.UniversalPropertyOptionsBuilder<NonNullable<boolean | null | undefined>, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
224
|
+
readonly providerFields: _mikro_orm_core.UniversalPropertyOptionsBuilder<Stripe__default.Subscription, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
225
|
+
}, _mikro_orm_core.EntityCtor<_mikro_orm_core.InferEntityFromProperties<{
|
|
226
|
+
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
227
|
+
primary: true;
|
|
228
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
229
|
+
readonly partyId: _mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
230
|
+
readonly externalId: _mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
231
|
+
readonly partyType: _mikro_orm_core.UniversalPropertyOptionsBuilder<any, _mikro_orm_core.EmptyOptions, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
|
|
232
|
+
readonly billingProvider: _mikro_orm_core.UniversalPropertyOptionsBuilder<any, _mikro_orm_core.EmptyOptions, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
|
|
233
|
+
readonly active: _mikro_orm_core.UniversalPropertyOptionsBuilder<NonNullable<boolean | null | undefined>, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
234
|
+
readonly providerFields: _mikro_orm_core.UniversalPropertyOptionsBuilder<Stripe__default.Subscription, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
235
|
+
}, undefined, never, never, false>>>;
|
|
236
|
+
|
|
86
237
|
type StripeBillingPortalEntities = {
|
|
87
|
-
BillingPortalMapper:
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
238
|
+
BillingPortalMapper: {
|
|
239
|
+
'~entity': (typeof BillingPortal)['~entity'];
|
|
240
|
+
};
|
|
241
|
+
CreateBillingPortalMapper: {
|
|
242
|
+
'~entity': (typeof BillingPortal)['~entity'];
|
|
243
|
+
};
|
|
244
|
+
UpdateBillingPortalMapper: {
|
|
245
|
+
'~entity': (typeof BillingPortal)['~entity'];
|
|
246
|
+
};
|
|
93
247
|
};
|
|
94
248
|
type StripeCheckoutSessionEntities<StatusEnum> = {
|
|
95
|
-
CheckoutSessionMapper:
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
249
|
+
CheckoutSessionMapper: {
|
|
250
|
+
'~entity': (typeof CheckoutSession)['~entity'] & {
|
|
251
|
+
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
252
|
+
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
253
|
+
status: StatusEnum[keyof StatusEnum];
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
CreateCheckoutSessionMapper: {
|
|
257
|
+
'~entity': (typeof CheckoutSession)['~entity'] & {
|
|
258
|
+
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
259
|
+
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
260
|
+
status: StatusEnum[keyof StatusEnum];
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
UpdateCheckoutSessionMapper: {
|
|
264
|
+
'~entity': (typeof CheckoutSession)['~entity'] & {
|
|
265
|
+
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
266
|
+
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
267
|
+
status: StatusEnum[keyof StatusEnum];
|
|
268
|
+
};
|
|
269
|
+
};
|
|
101
270
|
};
|
|
102
271
|
type StripePaymentLinkEntities<StatusEnum> = {
|
|
103
|
-
PaymentLinkMapper:
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
272
|
+
PaymentLinkMapper: {
|
|
273
|
+
'~entity': (typeof PaymentLink)['~entity'] & {
|
|
274
|
+
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
275
|
+
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
276
|
+
status: StatusEnum[keyof StatusEnum];
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
CreatePaymentLinkMapper: {
|
|
280
|
+
'~entity': (typeof PaymentLink)['~entity'] & {
|
|
281
|
+
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
282
|
+
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
283
|
+
status: StatusEnum[keyof StatusEnum];
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
UpdatePaymentLinkMapper: {
|
|
287
|
+
'~entity': (typeof PaymentLink)['~entity'] & {
|
|
288
|
+
paymentMethods: PaymentMethodEnum[keyof PaymentMethodEnum][];
|
|
289
|
+
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
290
|
+
status: StatusEnum[keyof StatusEnum];
|
|
291
|
+
};
|
|
292
|
+
};
|
|
109
293
|
};
|
|
110
294
|
type StripePlanEntities = {
|
|
111
|
-
PlanMapper:
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
295
|
+
PlanMapper: {
|
|
296
|
+
'~entity': (typeof Plan)['~entity'] & {
|
|
297
|
+
cadence: PlanCadenceEnum[keyof PlanCadenceEnum];
|
|
298
|
+
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
299
|
+
billingProvider: BillingProviderEnum[keyof BillingProviderEnum] | null;
|
|
300
|
+
};
|
|
301
|
+
};
|
|
302
|
+
CreatePlanMapper: {
|
|
303
|
+
'~entity': (typeof Plan)['~entity'] & {
|
|
304
|
+
cadence: PlanCadenceEnum[keyof PlanCadenceEnum];
|
|
305
|
+
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
306
|
+
billingProvider: BillingProviderEnum[keyof BillingProviderEnum] | null;
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
UpdatePlanMapper: {
|
|
310
|
+
'~entity': (typeof Plan)['~entity'] & {
|
|
311
|
+
cadence: PlanCadenceEnum[keyof PlanCadenceEnum];
|
|
312
|
+
currency: CurrencyEnum[keyof CurrencyEnum];
|
|
313
|
+
billingProvider: BillingProviderEnum[keyof BillingProviderEnum] | null;
|
|
314
|
+
};
|
|
315
|
+
};
|
|
117
316
|
};
|
|
118
|
-
type StripeSubscriptionEntities<
|
|
119
|
-
SubscriptionMapper:
|
|
120
|
-
|
|
121
|
-
|
|
317
|
+
type StripeSubscriptionEntities<PartyTypeEnum> = {
|
|
318
|
+
SubscriptionMapper: {
|
|
319
|
+
'~entity': (typeof Subscription)['~entity'] & {
|
|
320
|
+
partyType: PartyTypeEnum[keyof PartyTypeEnum];
|
|
321
|
+
billingProvider: BillingProviderEnum[keyof BillingProviderEnum] | null;
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
CreateSubscriptionMapper: {
|
|
325
|
+
'~entity': (typeof Subscription)['~entity'] & {
|
|
326
|
+
partyType: PartyTypeEnum[keyof PartyTypeEnum];
|
|
327
|
+
billingProvider: BillingProviderEnum[keyof BillingProviderEnum] | null;
|
|
328
|
+
};
|
|
329
|
+
};
|
|
330
|
+
UpdateSubscriptionMapper: {
|
|
331
|
+
'~entity': (typeof Subscription)['~entity'] & {
|
|
332
|
+
partyType: PartyTypeEnum[keyof PartyTypeEnum];
|
|
333
|
+
billingProvider: BillingProviderEnum[keyof BillingProviderEnum] | null;
|
|
334
|
+
};
|
|
335
|
+
};
|
|
122
336
|
};
|
|
123
337
|
|
|
124
338
|
type StripeBillingPortalMappers<Entities extends StripeBillingPortalEntities, Dto extends StripeBillingPortalDtos> = {
|
|
125
339
|
BillingPortalMapper: {
|
|
126
|
-
|
|
340
|
+
entity: Entities['BillingPortalMapper'];
|
|
341
|
+
toDto: (entity: InferEntity<Entities['BillingPortalMapper']>) => Promise<Dto['BillingPortalMapper']>;
|
|
127
342
|
};
|
|
128
343
|
CreateBillingPortalMapper: {
|
|
129
|
-
|
|
344
|
+
entity: Entities['CreateBillingPortalMapper'];
|
|
345
|
+
toEntity: (dto: Dto['CreateBillingPortalMapper'], em: EntityManager, stripeSession: Stripe__default.BillingPortal.Session, ...args: unknown[]) => Promise<InferEntity<Entities['CreateBillingPortalMapper']>>;
|
|
130
346
|
};
|
|
131
347
|
UpdateBillingPortalMapper: {
|
|
132
|
-
|
|
348
|
+
entity: Entities['UpdateBillingPortalMapper'];
|
|
349
|
+
toEntity: (dto: Dto['UpdateBillingPortalMapper'], em: EntityManager, stripeSession: Stripe__default.BillingPortal.Session, ...args: unknown[]) => Promise<InferEntity<Entities['UpdateBillingPortalMapper']>>;
|
|
133
350
|
};
|
|
134
351
|
};
|
|
135
352
|
|
|
136
353
|
type StripeCheckoutSessionMappers<StatusEnum, Entities extends StripeCheckoutSessionEntities<StatusEnum>, Dto extends StripeCheckoutSessionDtos<StatusEnum>> = {
|
|
137
354
|
CheckoutSessionMapper: {
|
|
138
|
-
|
|
355
|
+
entity: Entities['CheckoutSessionMapper'];
|
|
356
|
+
toDto: (entity: InferEntity<Entities['CheckoutSessionMapper']>) => Promise<Dto['CheckoutSessionMapper']>;
|
|
139
357
|
};
|
|
140
358
|
CreateCheckoutSessionMapper: {
|
|
141
|
-
|
|
359
|
+
entity: Entities['CreateCheckoutSessionMapper'];
|
|
360
|
+
toEntity: (dto: Dto['CreateCheckoutSessionMapper'], em: EntityManager, stripeSession: Stripe__default.Checkout.Session, ...args: unknown[]) => Promise<InferEntity<Entities['CreateCheckoutSessionMapper']>>;
|
|
142
361
|
};
|
|
143
362
|
UpdateCheckoutSessionMapper: {
|
|
144
|
-
|
|
363
|
+
entity: Entities['UpdateCheckoutSessionMapper'];
|
|
364
|
+
toEntity: (dto: Dto['UpdateCheckoutSessionMapper'], em: EntityManager, stripeSession: Stripe__default.Checkout.Session, ...args: unknown[]) => Promise<InferEntity<Entities['UpdateCheckoutSessionMapper']>>;
|
|
145
365
|
};
|
|
146
366
|
};
|
|
147
367
|
|
|
148
368
|
type StripePaymentLinkMappers<StatusEnum, Entities extends StripePaymentLinkEntities<StatusEnum>, Dto extends StripePaymentLinkDtos<StatusEnum>> = {
|
|
149
369
|
PaymentLinkMapper: {
|
|
150
|
-
|
|
370
|
+
entity: Entities['PaymentLinkMapper'];
|
|
371
|
+
toDto: (entity: InferEntity<Entities['PaymentLinkMapper']>) => Promise<Dto['PaymentLinkMapper']>;
|
|
151
372
|
};
|
|
152
373
|
CreatePaymentLinkMapper: {
|
|
153
|
-
|
|
374
|
+
entity: Entities['CreatePaymentLinkMapper'];
|
|
375
|
+
toEntity: (dto: Dto['CreatePaymentLinkMapper'], em: EntityManager, stripePaymentLink: Stripe__default.PaymentLink, ...args: unknown[]) => Promise<InferEntity<Entities['CreatePaymentLinkMapper']>>;
|
|
154
376
|
};
|
|
155
377
|
UpdatePaymentLinkMapper: {
|
|
156
|
-
|
|
378
|
+
entity: Entities['UpdatePaymentLinkMapper'];
|
|
379
|
+
toEntity: (dto: Dto['UpdatePaymentLinkMapper'], em: EntityManager, stripePaymentLink: Stripe__default.PaymentLink, ...args: unknown[]) => Promise<InferEntity<Entities['UpdatePaymentLinkMapper']>>;
|
|
157
380
|
};
|
|
158
381
|
};
|
|
159
382
|
|
|
160
383
|
type StripePlanMappers<Entities extends StripePlanEntities, Dto extends StripePlanDtos> = {
|
|
161
384
|
PlanMapper: {
|
|
162
|
-
|
|
385
|
+
entity: Entities['PlanMapper'];
|
|
386
|
+
toDto: (entity: InferEntity<Entities['PlanMapper']>) => Promise<Dto['PlanMapper']>;
|
|
163
387
|
};
|
|
164
388
|
CreatePlanMapper: {
|
|
165
|
-
|
|
389
|
+
entity: Entities['CreatePlanMapper'];
|
|
390
|
+
toEntity: (dto: Dto['CreatePlanMapper'], em: EntityManager, stripePlan: Stripe__default.Product, ...args: unknown[]) => Promise<InferEntity<Entities['CreatePlanMapper']>>;
|
|
166
391
|
};
|
|
167
392
|
UpdatePlanMapper: {
|
|
168
|
-
|
|
393
|
+
entity: Entities['UpdatePlanMapper'];
|
|
394
|
+
toEntity: (dto: Dto['UpdatePlanMapper'], em: EntityManager, stripePlan: Stripe__default.Product, ...args: unknown[]) => Promise<InferEntity<Entities['UpdatePlanMapper']>>;
|
|
169
395
|
};
|
|
170
396
|
};
|
|
171
397
|
|
|
172
|
-
type StripeSubscriptionMappers<
|
|
398
|
+
type StripeSubscriptionMappers<PartyTypeEnum, Entities extends StripeSubscriptionEntities<PartyTypeEnum>, Dto extends StripeSubscriptionDtos<PartyTypeEnum>> = {
|
|
173
399
|
SubscriptionMapper: {
|
|
174
|
-
|
|
400
|
+
entity: Entities['SubscriptionMapper'];
|
|
401
|
+
toDto: (entity: InferEntity<Entities['SubscriptionMapper']>) => Promise<Dto['SubscriptionMapper']>;
|
|
175
402
|
};
|
|
176
403
|
CreateSubscriptionMapper: {
|
|
177
|
-
|
|
404
|
+
entity: Entities['CreateSubscriptionMapper'];
|
|
405
|
+
toEntity: (dto: Dto['CreateSubscriptionMapper'], em: EntityManager, stripeSubscription: Stripe__default.Subscription, ...args: unknown[]) => Promise<InferEntity<Entities['CreateSubscriptionMapper']>>;
|
|
178
406
|
};
|
|
179
407
|
UpdateSubscriptionMapper: {
|
|
180
|
-
|
|
408
|
+
entity: Entities['UpdateSubscriptionMapper'];
|
|
409
|
+
toEntity: (dto: Dto['UpdateSubscriptionMapper'], em: EntityManager, stripeSubscription: Stripe__default.Subscription, ...args: unknown[]) => Promise<InferEntity<Entities['UpdateSubscriptionMapper']>>;
|
|
181
410
|
};
|
|
182
411
|
};
|
|
183
412
|
|
|
184
|
-
export type { StripeBillingPortalDto, StripeBillingPortalDtos, StripeBillingPortalEntities,
|
|
413
|
+
export type { StripeBillingPortalDto, StripeBillingPortalDtos, StripeBillingPortalEntities, StripeBillingPortalMappers, StripeCheckoutSessionDto, StripeCheckoutSessionDtos, StripeCheckoutSessionEntities, StripeCheckoutSessionMappers, StripeCreateBillingPortalDto, StripeCreateCheckoutSessionDto, StripeCreatePaymentLinkDto, StripeCreatePlanDto, StripeCreateSubscriptionDto, StripePaymentLinkDto, StripePaymentLinkDtos, StripePaymentLinkEntities, StripePaymentLinkMappers, StripePlanDto, StripePlanDtos, StripePlanEntities, StripePlanMappers, StripeSubscriptionDto, StripeSubscriptionDtos, StripeSubscriptionEntities, StripeSubscriptionMappers, StripeUpdateBillingPortalDto, StripeUpdateCheckoutSessionDto, StripeUpdatePaymentLinkDto, StripeUpdatePlanDto, StripeUpdateSubscriptionDto };
|
|
@@ -27,7 +27,7 @@ export const CreatePlanSchema = {
|
|
|
27
27
|
features: optional(array(string)),
|
|
28
28
|
stripeFields: type<StripeCreatePlanDto['stripeFields']>(),
|
|
29
29
|
externalId: string,
|
|
30
|
-
billingProvider:
|
|
30
|
+
billingProvider: enum_(BillingProviderEnum),
|
|
31
31
|
active: boolean
|
|
32
32
|
};
|
|
33
33
|
|
|
@@ -55,7 +55,7 @@ export const PlanSchema = {
|
|
|
55
55
|
features: optional(array(string)),
|
|
56
56
|
stripeFields: type<StripePlanDto['stripeFields']>(),
|
|
57
57
|
externalId: string,
|
|
58
|
-
billingProvider:
|
|
58
|
+
billingProvider: enum_(BillingProviderEnum),
|
|
59
59
|
active: boolean,
|
|
60
60
|
createdAt: optional(date),
|
|
61
61
|
updatedAt: optional(date)
|