@forklaunch/implementation-billing-base 0.1.7 → 0.1.9
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/eject/services/billingPortal.service.ts +10 -13
- package/lib/eject/services/checkoutSession.service.ts +8 -11
- package/lib/eject/services/paymentLink.service.ts +11 -14
- package/lib/eject/services/plan.service.ts +11 -14
- package/lib/eject/services/subscription.service.ts +15 -15
- package/lib/schemas/billingPortal.schema.d.ts +1 -1
- package/lib/schemas/billingPortal.schema.js +1 -1
- package/lib/schemas/checkoutSession.schema.d.ts +1 -1
- package/lib/schemas/checkoutSession.schema.js +1 -1
- package/lib/schemas/paymentLink.schema.d.ts +1 -1
- package/lib/schemas/paymentLink.schema.js +1 -1
- package/lib/schemas/plan.schema.d.ts +1 -1
- package/lib/schemas/plan.schema.js +1 -1
- package/lib/schemas/subscription.schema.d.ts +1 -1
- package/lib/schemas/subscription.schema.js +1 -1
- package/lib/services/billingPortal.service.d.ts +3 -3
- package/lib/services/billingPortal.service.d.ts.map +1 -1
- package/lib/services/billingPortal.service.js +11 -11
- package/lib/services/checkoutSession.service.d.ts +3 -3
- package/lib/services/checkoutSession.service.d.ts.map +1 -1
- package/lib/services/checkoutSession.service.js +9 -9
- package/lib/services/paymentLink.service.d.ts +3 -3
- package/lib/services/paymentLink.service.d.ts.map +1 -1
- package/lib/services/paymentLink.service.js +12 -12
- package/lib/services/plan.service.d.ts +3 -3
- package/lib/services/plan.service.d.ts.map +1 -1
- package/lib/services/plan.service.js +12 -12
- package/lib/services/subscription.service.d.ts +3 -3
- package/lib/services/subscription.service.d.ts.map +1 -1
- package/lib/services/subscription.service.js +14 -14
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
- /package/lib/eject/{schemas → domain/schemas}/billingPortal.schema.ts +0 -0
- /package/lib/eject/{schemas → domain/schemas}/checkoutSession.schema.ts +0 -0
- /package/lib/eject/{schemas → domain/schemas}/index.ts +0 -0
- /package/lib/eject/{schemas → domain/schemas}/paymentLink.schema.ts +0 -0
- /package/lib/eject/{schemas → domain/schemas}/plan.schema.ts +0 -0
- /package/lib/eject/{schemas → domain/schemas}/subscription.schema.ts +0 -0
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
RequestDtoMapperConstructor,
|
|
6
6
|
ResponseDtoMapperConstructor,
|
|
7
7
|
transformIntoInternalDtoMapper
|
|
8
|
-
} from '@forklaunch/core/
|
|
8
|
+
} from '@forklaunch/core/mappers';
|
|
9
9
|
import {
|
|
10
10
|
MetricsDefinition,
|
|
11
11
|
OpenTelemetryCollector
|
|
@@ -41,8 +41,8 @@ export class BaseBillingPortalService<
|
|
|
41
41
|
}
|
|
42
42
|
> implements BillingPortalService
|
|
43
43
|
{
|
|
44
|
-
#
|
|
45
|
-
InstanceTypeRecord<typeof this.
|
|
44
|
+
#mapperss: InternalDtoMapper<
|
|
45
|
+
InstanceTypeRecord<typeof this.mapperss>,
|
|
46
46
|
Entities,
|
|
47
47
|
Dto
|
|
48
48
|
>;
|
|
@@ -51,7 +51,7 @@ export class BaseBillingPortalService<
|
|
|
51
51
|
protected cache: TtlCache,
|
|
52
52
|
protected openTelemetryCollector: OpenTelemetryCollector<Metrics>,
|
|
53
53
|
protected schemaValidator: SchemaValidator,
|
|
54
|
-
protected
|
|
54
|
+
protected mapperss: {
|
|
55
55
|
BillingPortalDtoMapper: ResponseDtoMapperConstructor<
|
|
56
56
|
SchemaValidator,
|
|
57
57
|
Dto['BillingPortalDtoMapper'],
|
|
@@ -69,10 +69,7 @@ export class BaseBillingPortalService<
|
|
|
69
69
|
>;
|
|
70
70
|
}
|
|
71
71
|
) {
|
|
72
|
-
this.#
|
|
73
|
-
dtoMappers,
|
|
74
|
-
schemaValidator
|
|
75
|
-
);
|
|
72
|
+
this.#mapperss = transformIntoInternalDtoMapper(mapperss, schemaValidator);
|
|
76
73
|
}
|
|
77
74
|
|
|
78
75
|
protected createCacheKey = createCacheKey('billing_portal_session');
|
|
@@ -81,7 +78,7 @@ export class BaseBillingPortalService<
|
|
|
81
78
|
billingPortalDto: Dto['CreateBillingPortalDtoMapper']
|
|
82
79
|
): Promise<Dto['BillingPortalDtoMapper']> {
|
|
83
80
|
const billingPortalSession =
|
|
84
|
-
this.#
|
|
81
|
+
this.#mapperss.CreateBillingPortalDtoMapper.deserializeDtoToEntity(
|
|
85
82
|
billingPortalDto
|
|
86
83
|
);
|
|
87
84
|
|
|
@@ -96,7 +93,7 @@ export class BaseBillingPortalService<
|
|
|
96
93
|
ttlMilliseconds: this.cache.getTtlMilliseconds()
|
|
97
94
|
});
|
|
98
95
|
|
|
99
|
-
return this.#
|
|
96
|
+
return this.#mapperss.BillingPortalDtoMapper.serializeEntityToDto(
|
|
100
97
|
billingPortalSession
|
|
101
98
|
);
|
|
102
99
|
}
|
|
@@ -111,7 +108,7 @@ export class BaseBillingPortalService<
|
|
|
111
108
|
throw new Error('Session not found');
|
|
112
109
|
}
|
|
113
110
|
|
|
114
|
-
return this.#
|
|
111
|
+
return this.#mapperss.BillingPortalDtoMapper.serializeEntityToDto(
|
|
115
112
|
billingPortalSessionDetails.value
|
|
116
113
|
);
|
|
117
114
|
}
|
|
@@ -120,7 +117,7 @@ export class BaseBillingPortalService<
|
|
|
120
117
|
billingPortalDto: UpdateBillingPortalDto
|
|
121
118
|
): Promise<Dto['BillingPortalDtoMapper']> {
|
|
122
119
|
const billingPortalSession =
|
|
123
|
-
this.#
|
|
120
|
+
this.#mapperss.UpdateBillingPortalDtoMapper.deserializeDtoToEntity(
|
|
124
121
|
billingPortalDto
|
|
125
122
|
);
|
|
126
123
|
// Save the updated session to your database or external service
|
|
@@ -130,7 +127,7 @@ export class BaseBillingPortalService<
|
|
|
130
127
|
ttlMilliseconds: this.cache.getTtlMilliseconds()
|
|
131
128
|
});
|
|
132
129
|
|
|
133
|
-
return this.#
|
|
130
|
+
return this.#mapperss.BillingPortalDtoMapper.serializeEntityToDto(
|
|
134
131
|
billingPortalSession
|
|
135
132
|
);
|
|
136
133
|
}
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
RequestDtoMapperConstructor,
|
|
6
6
|
ResponseDtoMapperConstructor,
|
|
7
7
|
transformIntoInternalDtoMapper
|
|
8
|
-
} from '@forklaunch/core/
|
|
8
|
+
} from '@forklaunch/core/mappers';
|
|
9
9
|
import {
|
|
10
10
|
MetricsDefinition,
|
|
11
11
|
OpenTelemetryCollector
|
|
@@ -42,8 +42,8 @@ export class BaseCheckoutSessionService<
|
|
|
42
42
|
}
|
|
43
43
|
> implements CheckoutSessionService<PaymentMethodEnum>
|
|
44
44
|
{
|
|
45
|
-
#
|
|
46
|
-
InstanceTypeRecord<typeof this.
|
|
45
|
+
#mapperss: InternalDtoMapper<
|
|
46
|
+
InstanceTypeRecord<typeof this.mapperss>,
|
|
47
47
|
Entities,
|
|
48
48
|
Dto
|
|
49
49
|
>;
|
|
@@ -52,7 +52,7 @@ export class BaseCheckoutSessionService<
|
|
|
52
52
|
protected readonly cache: TtlCache,
|
|
53
53
|
protected readonly openTelemetryCollector: OpenTelemetryCollector<Metrics>,
|
|
54
54
|
protected readonly schemaValidator: SchemaValidator,
|
|
55
|
-
protected readonly
|
|
55
|
+
protected readonly mapperss: {
|
|
56
56
|
CheckoutSessionDtoMapper: ResponseDtoMapperConstructor<
|
|
57
57
|
SchemaValidator,
|
|
58
58
|
Dto['CheckoutSessionDtoMapper'],
|
|
@@ -70,10 +70,7 @@ export class BaseCheckoutSessionService<
|
|
|
70
70
|
>;
|
|
71
71
|
}
|
|
72
72
|
) {
|
|
73
|
-
this.#
|
|
74
|
-
dtoMappers,
|
|
75
|
-
schemaValidator
|
|
76
|
-
);
|
|
73
|
+
this.#mapperss = transformIntoInternalDtoMapper(mapperss, schemaValidator);
|
|
77
74
|
}
|
|
78
75
|
|
|
79
76
|
protected createCacheKey = createCacheKey('checkout_session');
|
|
@@ -82,7 +79,7 @@ export class BaseCheckoutSessionService<
|
|
|
82
79
|
checkoutSessionDto: Dto['CreateCheckoutSessionDtoMapper']
|
|
83
80
|
): Promise<Dto['CheckoutSessionDtoMapper']> {
|
|
84
81
|
const checkoutSession =
|
|
85
|
-
this.#
|
|
82
|
+
this.#mapperss.CreateCheckoutSessionDtoMapper.deserializeDtoToEntity(
|
|
86
83
|
checkoutSessionDto
|
|
87
84
|
);
|
|
88
85
|
|
|
@@ -93,7 +90,7 @@ export class BaseCheckoutSessionService<
|
|
|
93
90
|
ttlMilliseconds: this.cache.getTtlMilliseconds()
|
|
94
91
|
});
|
|
95
92
|
|
|
96
|
-
return this.#
|
|
93
|
+
return this.#mapperss.CheckoutSessionDtoMapper.serializeEntityToDto(
|
|
97
94
|
checkoutSession
|
|
98
95
|
);
|
|
99
96
|
}
|
|
@@ -108,7 +105,7 @@ export class BaseCheckoutSessionService<
|
|
|
108
105
|
throw new Error('Session not found');
|
|
109
106
|
}
|
|
110
107
|
|
|
111
|
-
return this.#
|
|
108
|
+
return this.#mapperss.CheckoutSessionDtoMapper.serializeEntityToDto(
|
|
112
109
|
checkoutSessionDetails.value
|
|
113
110
|
);
|
|
114
111
|
}
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
RequestDtoMapperConstructor,
|
|
6
6
|
ResponseDtoMapperConstructor,
|
|
7
7
|
transformIntoInternalDtoMapper
|
|
8
|
-
} from '@forklaunch/core/
|
|
8
|
+
} from '@forklaunch/core/mappers';
|
|
9
9
|
import {
|
|
10
10
|
MetricsDefinition,
|
|
11
11
|
OpenTelemetryCollector
|
|
@@ -42,8 +42,8 @@ export class BasePaymentLinkService<
|
|
|
42
42
|
}
|
|
43
43
|
> implements PaymentLinkService<CurrencyEnum>
|
|
44
44
|
{
|
|
45
|
-
#
|
|
46
|
-
InstanceTypeRecord<typeof this.
|
|
45
|
+
#mapperss: InternalDtoMapper<
|
|
46
|
+
InstanceTypeRecord<typeof this.mapperss>,
|
|
47
47
|
Entities,
|
|
48
48
|
Dto
|
|
49
49
|
>;
|
|
@@ -52,7 +52,7 @@ export class BasePaymentLinkService<
|
|
|
52
52
|
protected readonly cache: TtlCache,
|
|
53
53
|
protected readonly openTelemetryCollector: OpenTelemetryCollector<Metrics>,
|
|
54
54
|
protected readonly schemaValidator: SchemaValidator,
|
|
55
|
-
protected readonly
|
|
55
|
+
protected readonly mapperss: {
|
|
56
56
|
PaymentLinkDtoMapper: ResponseDtoMapperConstructor<
|
|
57
57
|
SchemaValidator,
|
|
58
58
|
Dto['PaymentLinkDtoMapper'],
|
|
@@ -70,10 +70,7 @@ export class BasePaymentLinkService<
|
|
|
70
70
|
>;
|
|
71
71
|
}
|
|
72
72
|
) {
|
|
73
|
-
this.#
|
|
74
|
-
dtoMappers,
|
|
75
|
-
schemaValidator
|
|
76
|
-
);
|
|
73
|
+
this.#mapperss = transformIntoInternalDtoMapper(mapperss, schemaValidator);
|
|
77
74
|
}
|
|
78
75
|
|
|
79
76
|
protected cacheKeyPrefix = 'payment_link';
|
|
@@ -84,7 +81,7 @@ export class BasePaymentLinkService<
|
|
|
84
81
|
): Promise<Dto['PaymentLinkDtoMapper']> {
|
|
85
82
|
// TODO: Perform permission checks here
|
|
86
83
|
const paymentLink =
|
|
87
|
-
this.#
|
|
84
|
+
this.#mapperss.CreatePaymentLinkDtoMapper.deserializeDtoToEntity(
|
|
88
85
|
paymentLinkDto
|
|
89
86
|
);
|
|
90
87
|
await this.cache.putRecord({
|
|
@@ -93,7 +90,7 @@ export class BasePaymentLinkService<
|
|
|
93
90
|
ttlMilliseconds: this.cache.getTtlMilliseconds()
|
|
94
91
|
});
|
|
95
92
|
|
|
96
|
-
return this.#
|
|
93
|
+
return this.#mapperss.PaymentLinkDtoMapper.serializeEntityToDto(
|
|
97
94
|
paymentLink
|
|
98
95
|
);
|
|
99
96
|
}
|
|
@@ -108,7 +105,7 @@ export class BasePaymentLinkService<
|
|
|
108
105
|
throw new Error('Payment link not found');
|
|
109
106
|
}
|
|
110
107
|
const paymentLink =
|
|
111
|
-
this.#
|
|
108
|
+
this.#mapperss.UpdatePaymentLinkDtoMapper.deserializeDtoToEntity(
|
|
112
109
|
paymentLinkDto
|
|
113
110
|
);
|
|
114
111
|
const updatedLink = { ...existingLink, ...paymentLink };
|
|
@@ -118,7 +115,7 @@ export class BasePaymentLinkService<
|
|
|
118
115
|
ttlMilliseconds: this.cache.getTtlMilliseconds()
|
|
119
116
|
});
|
|
120
117
|
|
|
121
|
-
return this.#
|
|
118
|
+
return this.#mapperss.PaymentLinkDtoMapper.serializeEntityToDto(
|
|
122
119
|
updatedLink
|
|
123
120
|
);
|
|
124
121
|
}
|
|
@@ -131,7 +128,7 @@ export class BasePaymentLinkService<
|
|
|
131
128
|
throw new Error('Payment link not found');
|
|
132
129
|
}
|
|
133
130
|
|
|
134
|
-
return this.#
|
|
131
|
+
return this.#mapperss.PaymentLinkDtoMapper.serializeEntityToDto(
|
|
135
132
|
paymentLink.value
|
|
136
133
|
);
|
|
137
134
|
}
|
|
@@ -163,7 +160,7 @@ export class BasePaymentLinkService<
|
|
|
163
160
|
const paymentLink =
|
|
164
161
|
await this.cache.readRecord<Entities['PaymentLinkDtoMapper']>(key);
|
|
165
162
|
const paymentLinkDto =
|
|
166
|
-
this.#
|
|
163
|
+
this.#mapperss.PaymentLinkDtoMapper.serializeEntityToDto(
|
|
167
164
|
paymentLink.value
|
|
168
165
|
);
|
|
169
166
|
return paymentLinkDto;
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
RequestDtoMapperConstructor,
|
|
5
5
|
ResponseDtoMapperConstructor,
|
|
6
6
|
transformIntoInternalDtoMapper
|
|
7
|
-
} from '@forklaunch/core/
|
|
7
|
+
} from '@forklaunch/core/mappers';
|
|
8
8
|
import {
|
|
9
9
|
MetricsDefinition,
|
|
10
10
|
OpenTelemetryCollector
|
|
@@ -43,8 +43,8 @@ export class BasePlanService<
|
|
|
43
43
|
}
|
|
44
44
|
> implements PlanService<PlanCadenceEnum, BillingProviderEnum>
|
|
45
45
|
{
|
|
46
|
-
#
|
|
47
|
-
InstanceTypeRecord<typeof this.
|
|
46
|
+
#mapperss: InternalDtoMapper<
|
|
47
|
+
InstanceTypeRecord<typeof this.mapperss>,
|
|
48
48
|
Entities,
|
|
49
49
|
Dto
|
|
50
50
|
>;
|
|
@@ -53,7 +53,7 @@ export class BasePlanService<
|
|
|
53
53
|
private em: EntityManager,
|
|
54
54
|
private readonly openTelemetryCollector: OpenTelemetryCollector<Metrics>,
|
|
55
55
|
private readonly schemaValidator: SchemaValidator,
|
|
56
|
-
private readonly
|
|
56
|
+
private readonly mapperss: {
|
|
57
57
|
PlanDtoMapper: ResponseDtoMapperConstructor<
|
|
58
58
|
SchemaValidator,
|
|
59
59
|
Dto['PlanDtoMapper'],
|
|
@@ -71,10 +71,7 @@ export class BasePlanService<
|
|
|
71
71
|
>;
|
|
72
72
|
}
|
|
73
73
|
) {
|
|
74
|
-
this.#
|
|
75
|
-
dtoMappers,
|
|
76
|
-
schemaValidator
|
|
77
|
-
);
|
|
74
|
+
this.#mapperss = transformIntoInternalDtoMapper(mapperss, schemaValidator);
|
|
78
75
|
}
|
|
79
76
|
|
|
80
77
|
async listPlans(
|
|
@@ -86,7 +83,7 @@ export class BasePlanService<
|
|
|
86
83
|
filters: idsDto?.ids ? { id: { $in: idsDto.ids } } : undefined
|
|
87
84
|
})
|
|
88
85
|
).map((plan) =>
|
|
89
|
-
this.#
|
|
86
|
+
this.#mapperss.PlanDtoMapper.serializeEntityToDto(
|
|
90
87
|
plan as Entities['PlanDtoMapper']
|
|
91
88
|
)
|
|
92
89
|
);
|
|
@@ -97,11 +94,11 @@ export class BasePlanService<
|
|
|
97
94
|
em?: EntityManager
|
|
98
95
|
): Promise<Dto['PlanDtoMapper']> {
|
|
99
96
|
const plan =
|
|
100
|
-
this.#
|
|
97
|
+
this.#mapperss.CreatePlanDtoMapper.deserializeDtoToEntity(planDto);
|
|
101
98
|
await (em ?? this.em).transactional(async (innerEm) => {
|
|
102
99
|
await innerEm.persist(plan);
|
|
103
100
|
});
|
|
104
|
-
return this.#
|
|
101
|
+
return this.#mapperss.PlanDtoMapper.serializeEntityToDto(plan);
|
|
105
102
|
}
|
|
106
103
|
|
|
107
104
|
async getPlan(
|
|
@@ -109,7 +106,7 @@ export class BasePlanService<
|
|
|
109
106
|
em?: EntityManager
|
|
110
107
|
): Promise<Dto['PlanDtoMapper']> {
|
|
111
108
|
const plan = await (em ?? this.em).findOneOrFail('Plan', idDto);
|
|
112
|
-
return this.#
|
|
109
|
+
return this.#mapperss.PlanDtoMapper.serializeEntityToDto(
|
|
113
110
|
plan as Entities['PlanDtoMapper']
|
|
114
111
|
);
|
|
115
112
|
}
|
|
@@ -119,13 +116,13 @@ export class BasePlanService<
|
|
|
119
116
|
em?: EntityManager
|
|
120
117
|
): Promise<Dto['PlanDtoMapper']> {
|
|
121
118
|
const plan =
|
|
122
|
-
this.#
|
|
119
|
+
this.#mapperss.UpdatePlanDtoMapper.deserializeDtoToEntity(planDto);
|
|
123
120
|
const updatedPlan = await (em ?? this.em).upsert(plan);
|
|
124
121
|
await (em ?? this.em).transactional(async (innerEm) => {
|
|
125
122
|
await innerEm.persist(plan);
|
|
126
123
|
});
|
|
127
124
|
const updatedPlanDto =
|
|
128
|
-
this.#
|
|
125
|
+
this.#mapperss.PlanDtoMapper.serializeEntityToDto(updatedPlan);
|
|
129
126
|
return updatedPlanDto;
|
|
130
127
|
}
|
|
131
128
|
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
RequestDtoMapperConstructor,
|
|
5
5
|
ResponseDtoMapperConstructor,
|
|
6
6
|
transformIntoInternalDtoMapper
|
|
7
|
-
} from '@forklaunch/core/
|
|
7
|
+
} from '@forklaunch/core/mappers';
|
|
8
8
|
import {
|
|
9
9
|
MetricsDefinition,
|
|
10
10
|
OpenTelemetryCollector
|
|
@@ -67,8 +67,8 @@ export class BaseSubscriptionService<
|
|
|
67
67
|
}
|
|
68
68
|
> implements SubscriptionService<PartyType, BillingProviderType>
|
|
69
69
|
{
|
|
70
|
-
#
|
|
71
|
-
InstanceTypeRecord<typeof this.
|
|
70
|
+
#mapperss: InternalDtoMapper<
|
|
71
|
+
InstanceTypeRecord<typeof this.mapperss>,
|
|
72
72
|
Entities,
|
|
73
73
|
Dto
|
|
74
74
|
>;
|
|
@@ -77,7 +77,7 @@ export class BaseSubscriptionService<
|
|
|
77
77
|
protected em: EntityManager,
|
|
78
78
|
protected readonly openTelemetryCollector: OpenTelemetryCollector<Metrics>,
|
|
79
79
|
protected readonly schemaValidator: SchemaValidator,
|
|
80
|
-
protected readonly
|
|
80
|
+
protected readonly mapperss: {
|
|
81
81
|
SubscriptionDtoMapper: ResponseDtoMapperConstructor<
|
|
82
82
|
SchemaValidator,
|
|
83
83
|
Dto['SubscriptionDtoMapper'],
|
|
@@ -95,12 +95,12 @@ export class BaseSubscriptionService<
|
|
|
95
95
|
>;
|
|
96
96
|
}
|
|
97
97
|
) {
|
|
98
|
-
this.#
|
|
98
|
+
this.#mapperss = transformIntoInternalDtoMapper<
|
|
99
99
|
SchemaValidator,
|
|
100
|
-
typeof this.
|
|
100
|
+
typeof this.mapperss,
|
|
101
101
|
Entities,
|
|
102
102
|
Dto
|
|
103
|
-
>(
|
|
103
|
+
>(mapperss, this.schemaValidator);
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
async createSubscription(
|
|
@@ -108,14 +108,14 @@ export class BaseSubscriptionService<
|
|
|
108
108
|
em?: EntityManager
|
|
109
109
|
): Promise<Dto['SubscriptionDtoMapper']> {
|
|
110
110
|
const subscription =
|
|
111
|
-
this.#
|
|
111
|
+
this.#mapperss.CreateSubscriptionDtoMapper.deserializeDtoToEntity(
|
|
112
112
|
subscriptionDto
|
|
113
113
|
);
|
|
114
114
|
await (em ?? this.em).transactional(async (innerEm) => {
|
|
115
115
|
await innerEm.persist(subscription);
|
|
116
116
|
});
|
|
117
117
|
const createdSubscriptionDto =
|
|
118
|
-
this.#
|
|
118
|
+
this.#mapperss.SubscriptionDtoMapper.serializeEntityToDto(subscription);
|
|
119
119
|
return createdSubscriptionDto;
|
|
120
120
|
}
|
|
121
121
|
|
|
@@ -127,7 +127,7 @@ export class BaseSubscriptionService<
|
|
|
127
127
|
'Subscription',
|
|
128
128
|
idDto
|
|
129
129
|
);
|
|
130
|
-
return this.#
|
|
130
|
+
return this.#mapperss.SubscriptionDtoMapper.serializeEntityToDto(
|
|
131
131
|
subscription as Entities['SubscriptionDtoMapper']
|
|
132
132
|
);
|
|
133
133
|
}
|
|
@@ -142,7 +142,7 @@ export class BaseSubscriptionService<
|
|
|
142
142
|
active: true
|
|
143
143
|
});
|
|
144
144
|
|
|
145
|
-
return this.#
|
|
145
|
+
return this.#mapperss.SubscriptionDtoMapper.serializeEntityToDto(
|
|
146
146
|
subscription as Entities['SubscriptionDtoMapper']
|
|
147
147
|
);
|
|
148
148
|
}
|
|
@@ -156,7 +156,7 @@ export class BaseSubscriptionService<
|
|
|
156
156
|
partyType: 'ORGANIZATION',
|
|
157
157
|
active: true
|
|
158
158
|
});
|
|
159
|
-
return this.#
|
|
159
|
+
return this.#mapperss.SubscriptionDtoMapper.serializeEntityToDto(
|
|
160
160
|
subscription as Entities['SubscriptionDtoMapper']
|
|
161
161
|
);
|
|
162
162
|
}
|
|
@@ -166,7 +166,7 @@ export class BaseSubscriptionService<
|
|
|
166
166
|
em?: EntityManager
|
|
167
167
|
): Promise<Dto['SubscriptionDtoMapper']> {
|
|
168
168
|
const subscription =
|
|
169
|
-
this.#
|
|
169
|
+
this.#mapperss.UpdateSubscriptionDtoMapper.deserializeDtoToEntity(
|
|
170
170
|
subscriptionDto
|
|
171
171
|
);
|
|
172
172
|
const updatedSubscription = await (em ?? this.em).upsert(subscription);
|
|
@@ -174,7 +174,7 @@ export class BaseSubscriptionService<
|
|
|
174
174
|
await innerEm.persist(updatedSubscription);
|
|
175
175
|
});
|
|
176
176
|
const updatedSubscriptionDto =
|
|
177
|
-
this.#
|
|
177
|
+
this.#mapperss.SubscriptionDtoMapper.serializeEntityToDto(
|
|
178
178
|
updatedSubscription
|
|
179
179
|
);
|
|
180
180
|
|
|
@@ -208,7 +208,7 @@ export class BaseSubscriptionService<
|
|
|
208
208
|
|
|
209
209
|
return subscriptions.map((subscription) => {
|
|
210
210
|
const subscriptionDto =
|
|
211
|
-
this.#
|
|
211
|
+
this.#mapperss.SubscriptionDtoMapper.serializeEntityToDto(
|
|
212
212
|
subscription as Entities['SubscriptionDtoMapper']
|
|
213
213
|
);
|
|
214
214
|
return subscriptionDto;
|
|
@@ -2,7 +2,7 @@ export declare const BaseBillingPortalServiceSchemas: <SchemaValidator extends i
|
|
|
2
2
|
uuidId: boolean;
|
|
3
3
|
} & {
|
|
4
4
|
validator: SchemaValidator;
|
|
5
|
-
}) => import("@forklaunch/core/
|
|
5
|
+
}) => import("@forklaunch/core/mappers").SchemasByValidator<SchemaValidator, (options: {
|
|
6
6
|
uuidId: boolean;
|
|
7
7
|
}) => {
|
|
8
8
|
CreateBillingPortalSchema: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { serviceSchemaResolver } from '@forklaunch/core/
|
|
1
|
+
import { serviceSchemaResolver } from '@forklaunch/core/mappers';
|
|
2
2
|
import { BaseBillingPortalServiceSchemas as TypeBoxSchemas } from './typebox/billingPortal.schema';
|
|
3
3
|
import { BaseBillingPortalServiceSchemas as ZodSchemas } from './zod/billingPortal.schema';
|
|
4
4
|
export const BaseBillingPortalServiceSchemas = serviceSchemaResolver(TypeBoxSchemas, ZodSchemas);
|
|
@@ -2,7 +2,7 @@ export declare const BaseCheckoutSessionServiceSchemas: <SchemaValidator extends
|
|
|
2
2
|
uuidId: boolean;
|
|
3
3
|
} & {
|
|
4
4
|
validator: SchemaValidator;
|
|
5
|
-
}) => import("@forklaunch/core/
|
|
5
|
+
}) => import("@forklaunch/core/mappers").SchemasByValidator<SchemaValidator, (options: {
|
|
6
6
|
uuidId: boolean;
|
|
7
7
|
}) => {
|
|
8
8
|
CreateCheckoutSessionSchema: <T extends Record<string, import("@forklaunch/validator").LiteralSchema>>(PaymentMethodEnum: T) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { serviceSchemaResolver } from '@forklaunch/core/
|
|
1
|
+
import { serviceSchemaResolver } from '@forklaunch/core/mappers';
|
|
2
2
|
import { BaseCheckoutSessionServiceSchemas as TypeBoxSchemas } from './typebox/checkoutSession.schema';
|
|
3
3
|
import { BaseCheckoutSessionServiceSchemas as ZodSchemas } from './zod/checkoutSession.schema';
|
|
4
4
|
export const BaseCheckoutSessionServiceSchemas = serviceSchemaResolver(TypeBoxSchemas, ZodSchemas);
|
|
@@ -2,7 +2,7 @@ export declare const BasePaymentLinkServiceSchemas: <SchemaValidator extends imp
|
|
|
2
2
|
uuidId: boolean;
|
|
3
3
|
} & {
|
|
4
4
|
validator: SchemaValidator;
|
|
5
|
-
}) => import("@forklaunch/core/
|
|
5
|
+
}) => import("@forklaunch/core/mappers").SchemasByValidator<SchemaValidator, (options: {
|
|
6
6
|
uuidId: boolean;
|
|
7
7
|
}) => {
|
|
8
8
|
CreatePaymentLinkSchema: <T extends Record<string, import("@forklaunch/validator").LiteralSchema>>(CurrencyEnum: T) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { serviceSchemaResolver } from '@forklaunch/core/
|
|
1
|
+
import { serviceSchemaResolver } from '@forklaunch/core/mappers';
|
|
2
2
|
import { BasePaymentLinkServiceSchemas as TypeBoxSchemas } from './typebox/paymentLink.schema';
|
|
3
3
|
import { BasePaymentLinkServiceSchemas as ZodSchemas } from './zod/paymentLink.schema';
|
|
4
4
|
export const BasePaymentLinkServiceSchemas = serviceSchemaResolver(TypeBoxSchemas, ZodSchemas);
|
|
@@ -2,7 +2,7 @@ export declare const BasePlanServiceSchemas: <SchemaValidator extends import("@f
|
|
|
2
2
|
uuidId: boolean;
|
|
3
3
|
} & {
|
|
4
4
|
validator: SchemaValidator;
|
|
5
|
-
}) => import("@forklaunch/core/
|
|
5
|
+
}) => import("@forklaunch/core/mappers").SchemasByValidator<SchemaValidator, (options: {
|
|
6
6
|
uuidId: boolean;
|
|
7
7
|
}) => {
|
|
8
8
|
CreatePlanSchema: <T extends Record<string, import("@forklaunch/validator").LiteralSchema>, U extends Record<string, import("@forklaunch/validator").LiteralSchema>>(PlanCadenceEnum: T, BillingProviderEnum: U) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { serviceSchemaResolver } from '@forklaunch/core/
|
|
1
|
+
import { serviceSchemaResolver } from '@forklaunch/core/mappers';
|
|
2
2
|
import { BasePlanServiceSchemas as TypeBoxSchemas } from './typebox/plan.schema';
|
|
3
3
|
import { BasePlanServiceSchemas as ZodSchemas } from './zod/plan.schema';
|
|
4
4
|
export const BasePlanServiceSchemas = serviceSchemaResolver(TypeBoxSchemas, ZodSchemas);
|
|
@@ -2,7 +2,7 @@ export declare const BaseSubscriptionServiceSchemas: <SchemaValidator extends im
|
|
|
2
2
|
uuidId: boolean;
|
|
3
3
|
} & {
|
|
4
4
|
validator: SchemaValidator;
|
|
5
|
-
}) => import("@forklaunch/core/
|
|
5
|
+
}) => import("@forklaunch/core/mappers").SchemasByValidator<SchemaValidator, (options: {
|
|
6
6
|
uuidId: boolean;
|
|
7
7
|
}) => {
|
|
8
8
|
CreateSubscriptionSchema: <T extends Record<string, import("@forklaunch/validator").LiteralSchema>, U extends Record<string, import("@forklaunch/validator").LiteralSchema>>(PartyEnum: T, BillingProviderEnum: U) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { serviceSchemaResolver } from '@forklaunch/core/
|
|
1
|
+
import { serviceSchemaResolver } from '@forklaunch/core/mappers';
|
|
2
2
|
import { BaseSubscriptionServiceSchemas as TypeBoxSchemas } from './typebox/subscription.schema';
|
|
3
3
|
import { BaseSubscriptionServiceSchemas as ZodSchemas } from './zod/subscription.schema';
|
|
4
4
|
export const BaseSubscriptionServiceSchemas = serviceSchemaResolver(TypeBoxSchemas, ZodSchemas);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IdDto } from '@forklaunch/common';
|
|
2
2
|
import { TtlCache } from '@forklaunch/core/cache';
|
|
3
|
-
import { RequestDtoMapperConstructor, ResponseDtoMapperConstructor } from '@forklaunch/core/
|
|
3
|
+
import { RequestDtoMapperConstructor, ResponseDtoMapperConstructor } from '@forklaunch/core/mappers';
|
|
4
4
|
import { MetricsDefinition, OpenTelemetryCollector } from '@forklaunch/core/http';
|
|
5
5
|
import { BillingPortalService } from '@forklaunch/interfaces-billing/interfaces';
|
|
6
6
|
import { BillingPortalDto, CreateBillingPortalDto, UpdateBillingPortalDto } from '@forklaunch/interfaces-billing/types';
|
|
@@ -26,12 +26,12 @@ export declare class BaseBillingPortalService<SchemaValidator extends AnySchemaV
|
|
|
26
26
|
protected cache: TtlCache;
|
|
27
27
|
protected openTelemetryCollector: OpenTelemetryCollector<Metrics>;
|
|
28
28
|
protected schemaValidator: SchemaValidator;
|
|
29
|
-
protected
|
|
29
|
+
protected mapperss: {
|
|
30
30
|
BillingPortalDtoMapper: ResponseDtoMapperConstructor<SchemaValidator, Dto['BillingPortalDtoMapper'], Entities['BillingPortalDtoMapper']>;
|
|
31
31
|
CreateBillingPortalDtoMapper: RequestDtoMapperConstructor<SchemaValidator, Dto['CreateBillingPortalDtoMapper'], Entities['CreateBillingPortalDtoMapper']>;
|
|
32
32
|
UpdateBillingPortalDtoMapper: RequestDtoMapperConstructor<SchemaValidator, Dto['UpdateBillingPortalDtoMapper'], Entities['UpdateBillingPortalDtoMapper']>;
|
|
33
33
|
};
|
|
34
|
-
constructor(cache: TtlCache, openTelemetryCollector: OpenTelemetryCollector<Metrics>, schemaValidator: SchemaValidator,
|
|
34
|
+
constructor(cache: TtlCache, openTelemetryCollector: OpenTelemetryCollector<Metrics>, schemaValidator: SchemaValidator, mapperss: {
|
|
35
35
|
BillingPortalDtoMapper: ResponseDtoMapperConstructor<SchemaValidator, Dto['BillingPortalDtoMapper'], Entities['BillingPortalDtoMapper']>;
|
|
36
36
|
CreateBillingPortalDtoMapper: RequestDtoMapperConstructor<SchemaValidator, Dto['CreateBillingPortalDtoMapper'], Entities['CreateBillingPortalDtoMapper']>;
|
|
37
37
|
UpdateBillingPortalDtoMapper: RequestDtoMapperConstructor<SchemaValidator, Dto['UpdateBillingPortalDtoMapper'], Entities['UpdateBillingPortalDtoMapper']>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billingPortal.service.d.ts","sourceRoot":"","sources":["../../services/billingPortal.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAsB,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAkB,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAEL,2BAA2B,EAC3B,4BAA4B,EAE7B,MAAM,
|
|
1
|
+
{"version":3,"file":"billingPortal.service.d.ts","sourceRoot":"","sources":["../../services/billingPortal.service.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import { createCacheKey } from '@forklaunch/core/cache';
|
|
2
|
-
import { transformIntoInternalDtoMapper } from '@forklaunch/core/
|
|
2
|
+
import { transformIntoInternalDtoMapper } from '@forklaunch/core/mappers';
|
|
3
3
|
export class BaseBillingPortalService {
|
|
4
4
|
cache;
|
|
5
5
|
openTelemetryCollector;
|
|
6
6
|
schemaValidator;
|
|
7
|
-
|
|
8
|
-
#
|
|
9
|
-
constructor(cache, openTelemetryCollector, schemaValidator,
|
|
7
|
+
mapperss;
|
|
8
|
+
#mapperss;
|
|
9
|
+
constructor(cache, openTelemetryCollector, schemaValidator, mapperss) {
|
|
10
10
|
this.cache = cache;
|
|
11
11
|
this.openTelemetryCollector = openTelemetryCollector;
|
|
12
12
|
this.schemaValidator = schemaValidator;
|
|
13
|
-
this.
|
|
14
|
-
this.#
|
|
13
|
+
this.mapperss = mapperss;
|
|
14
|
+
this.#mapperss = transformIntoInternalDtoMapper(mapperss, schemaValidator);
|
|
15
15
|
}
|
|
16
16
|
createCacheKey = createCacheKey('billing_portal_session');
|
|
17
17
|
async createBillingPortalSession(billingPortalDto) {
|
|
18
|
-
const billingPortalSession = this.#
|
|
18
|
+
const billingPortalSession = this.#mapperss.CreateBillingPortalDtoMapper.deserializeDtoToEntity(billingPortalDto);
|
|
19
19
|
this.openTelemetryCollector.debug('Create billing portal session', billingPortalSession);
|
|
20
20
|
await this.cache.putRecord({
|
|
21
21
|
key: this.createCacheKey(billingPortalSession.id),
|
|
22
22
|
value: billingPortalSession,
|
|
23
23
|
ttlMilliseconds: this.cache.getTtlMilliseconds()
|
|
24
24
|
});
|
|
25
|
-
return this.#
|
|
25
|
+
return this.#mapperss.BillingPortalDtoMapper.serializeEntityToDto(billingPortalSession);
|
|
26
26
|
}
|
|
27
27
|
async getBillingPortalSession(idDto) {
|
|
28
28
|
const billingPortalSessionDetails = await this.cache.readRecord(this.createCacheKey(idDto.id));
|
|
29
29
|
if (!billingPortalSessionDetails) {
|
|
30
30
|
throw new Error('Session not found');
|
|
31
31
|
}
|
|
32
|
-
return this.#
|
|
32
|
+
return this.#mapperss.BillingPortalDtoMapper.serializeEntityToDto(billingPortalSessionDetails.value);
|
|
33
33
|
}
|
|
34
34
|
async updateBillingPortalSession(billingPortalDto) {
|
|
35
|
-
const billingPortalSession = this.#
|
|
35
|
+
const billingPortalSession = this.#mapperss.UpdateBillingPortalDtoMapper.deserializeDtoToEntity(billingPortalDto);
|
|
36
36
|
// Save the updated session to your database or external service
|
|
37
37
|
await this.cache.putRecord({
|
|
38
38
|
key: this.createCacheKey(billingPortalSession.id),
|
|
39
39
|
value: billingPortalSession,
|
|
40
40
|
ttlMilliseconds: this.cache.getTtlMilliseconds()
|
|
41
41
|
});
|
|
42
|
-
return this.#
|
|
42
|
+
return this.#mapperss.BillingPortalDtoMapper.serializeEntityToDto(billingPortalSession);
|
|
43
43
|
}
|
|
44
44
|
async expireBillingPortalSession(idDto) {
|
|
45
45
|
const sessionExists = await this.cache.readRecord(this.createCacheKey(idDto.id));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IdDto } from '@forklaunch/common';
|
|
2
2
|
import { TtlCache } from '@forklaunch/core/cache';
|
|
3
|
-
import { RequestDtoMapperConstructor, ResponseDtoMapperConstructor } from '@forklaunch/core/
|
|
3
|
+
import { RequestDtoMapperConstructor, ResponseDtoMapperConstructor } from '@forklaunch/core/mappers';
|
|
4
4
|
import { MetricsDefinition, OpenTelemetryCollector } from '@forklaunch/core/http';
|
|
5
5
|
import { CheckoutSessionService } from '@forklaunch/interfaces-billing/interfaces';
|
|
6
6
|
import { CheckoutSessionDto, CreateCheckoutSessionDto, UpdateCheckoutSessionDto } from '@forklaunch/interfaces-billing/types';
|
|
@@ -26,12 +26,12 @@ export declare class BaseCheckoutSessionService<SchemaValidator extends AnySchem
|
|
|
26
26
|
protected readonly cache: TtlCache;
|
|
27
27
|
protected readonly openTelemetryCollector: OpenTelemetryCollector<Metrics>;
|
|
28
28
|
protected readonly schemaValidator: SchemaValidator;
|
|
29
|
-
protected readonly
|
|
29
|
+
protected readonly mapperss: {
|
|
30
30
|
CheckoutSessionDtoMapper: ResponseDtoMapperConstructor<SchemaValidator, Dto['CheckoutSessionDtoMapper'], Entities['CheckoutSessionDtoMapper']>;
|
|
31
31
|
CreateCheckoutSessionDtoMapper: RequestDtoMapperConstructor<SchemaValidator, Dto['CreateCheckoutSessionDtoMapper'], Entities['CreateCheckoutSessionDtoMapper']>;
|
|
32
32
|
UpdateCheckoutSessionDtoMapper: RequestDtoMapperConstructor<SchemaValidator, Dto['UpdateCheckoutSessionDtoMapper'], Entities['UpdateCheckoutSessionDtoMapper']>;
|
|
33
33
|
};
|
|
34
|
-
constructor(cache: TtlCache, openTelemetryCollector: OpenTelemetryCollector<Metrics>, schemaValidator: SchemaValidator,
|
|
34
|
+
constructor(cache: TtlCache, openTelemetryCollector: OpenTelemetryCollector<Metrics>, schemaValidator: SchemaValidator, mapperss: {
|
|
35
35
|
CheckoutSessionDtoMapper: ResponseDtoMapperConstructor<SchemaValidator, Dto['CheckoutSessionDtoMapper'], Entities['CheckoutSessionDtoMapper']>;
|
|
36
36
|
CreateCheckoutSessionDtoMapper: RequestDtoMapperConstructor<SchemaValidator, Dto['CreateCheckoutSessionDtoMapper'], Entities['CreateCheckoutSessionDtoMapper']>;
|
|
37
37
|
UpdateCheckoutSessionDtoMapper: RequestDtoMapperConstructor<SchemaValidator, Dto['UpdateCheckoutSessionDtoMapper'], Entities['UpdateCheckoutSessionDtoMapper']>;
|