Skip to content

@sourceloop/ctrl-plane-subscription-service / Exports / PlanRepository

Class: PlanRepository<T>

Type parameters

Name Type
T extends Plan = Plan

Hierarchy

  • DefaultUserModifyCrudRepository<T, typeof id, PlanRelations>

    PlanRepository

Table of contents

Constructors

Properties

Constructors

constructor

new PlanRepository<T>(dataSource, getCurrentUser, billingCycleRepositoryGetter, currencyRepositoryGetter, plan)

Type parameters

Name Type
T extends Plan<T> = Plan

Parameters

Name Type
dataSource DataSource
getCurrentUser Getter<IAuthUserWithPermissions<string, string, string>>
billingCycleRepositoryGetter Getter<BillingCycleRepository<BillingCycle>>
currencyRepositoryGetter Getter<CurrencyRepository<Currency>>
plan typeof Entity & { prototype: T }

Overrides

DefaultUserModifyCrudRepository< T, typeof Plan.prototype.id, PlanRelations \>.constructor

Defined in

services/subscription-service/src/repositories/plan.repository.ts:35

Properties

billingCycle

Readonly billingCycle: BelongsToAccessor<BillingCycle, string>

Defined in

services/subscription-service/src/repositories/plan.repository.ts:25


billingCycleRepositoryGetter

Protected billingCycleRepositoryGetter: Getter<BillingCycleRepository<BillingCycle>>

Defined in

services/subscription-service/src/repositories/plan.repository.ts:41


currency

Readonly currency: BelongsToAccessor<Currency, string>

Defined in

services/subscription-service/src/repositories/plan.repository.ts:30


currencyRepositoryGetter

Protected currencyRepositoryGetter: Getter<CurrencyRepository<Currency>>

Defined in

services/subscription-service/src/repositories/plan.repository.ts:43


getCurrentUser

Readonly getCurrentUser: Getter<IAuthUserWithPermissions<string, string, string>>

Inherited from

DefaultUserModifyCrudRepository.getCurrentUser

Defined in

services/subscription-service/src/repositories/plan.repository.ts:39


plan

Private Readonly plan: typeof Entity & { prototype: T }

Defined in

services/subscription-service/src/repositories/plan.repository.ts:45