@sourceloop/ctrl-plane-subscription-service / Exports / PlanFeaturesService
Class: PlanFeaturesService¶
Table of contents¶
Constructors¶
Properties¶
Methods¶
Constructors¶
constructor¶
• new PlanFeaturesService(planRepository, featureValuesRepository, featureRepository)
Parameters¶
| Name | Type |
|---|---|
planRepository |
PlanRepository<Plan> |
featureValuesRepository |
FeatureValuesRepository |
featureRepository |
FeatureRepository |
Defined in¶
services/subscription-service/src/services/plan-features-helper.service.ts:12
Properties¶
featureRepository¶
• featureRepository: FeatureRepository
Defined in¶
services/subscription-service/src/services/plan-features-helper.service.ts:18
featureValuesRepository¶
• Private Readonly featureValuesRepository: FeatureValuesRepository
Defined in¶
services/subscription-service/src/services/plan-features-helper.service.ts:16
planRepository¶
• Private Readonly planRepository: PlanRepository<Plan>
Defined in¶
services/subscription-service/src/services/plan-features-helper.service.ts:14
Methods¶
planFeatures¶
▸ planFeatures(id): Promise<{ billingCycleId: string ; currencyId: string ; description?: string ; features: DataObject<Feature & { value: FeatureValues }>[] = features; id: string ; metaData?: object ; name: string ; price: number ; size?: string ; tier: string }>
Parameters¶
| Name | Type |
|---|---|
id |
string |
Returns¶
Promise<{ billingCycleId: string ; currencyId: string ; description?: string ; features: DataObject<Feature & { value: FeatureValues }>[] = features; id: string ; metaData?: object ; name: string ; price: number ; size?: string ; tier: string }>
Defined in¶
services/subscription-service/src/services/plan-features-helper.service.ts:21
updatePlanFeatures¶
▸ updatePlanFeatures(id, featureValues): Promise<FeatureValues[]>
Parameters¶
| Name | Type |
|---|---|
id |
string |
featureValues |
Partial<FeatureValues>[] |
Returns¶
Promise<FeatureValues[]>
Defined in¶
services/subscription-service/src/services/plan-features-helper.service.ts:68