Skip to content

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

Class: PlanRepository

Hierarchy

Table of contents

Constructors

Properties

Constructors

constructor

new PlanRepository(dataSource, getCurrentUser, billingCycleRepositoryGetter, currencyRepositoryGetter)

Parameters

Name Type
dataSource DataSource
getCurrentUser Getter<IAuthUserWithPermissions<string, string, string>>
billingCycleRepositoryGetter Getter<BillingCycleRepository>
currencyRepositoryGetter Getter<CurrencyRepository>

Overrides

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

Defined in

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

Properties

billingCycle

Readonly billingCycle: BelongsToAccessor<BillingCycle, string>

Defined in

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


billingCycleRepositoryGetter

Protected billingCycleRepositoryGetter: Getter<BillingCycleRepository>

Defined in

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


currency

Readonly currency: BelongsToAccessor<Currency, string>

Defined in

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


currencyRepositoryGetter

Protected currencyRepositoryGetter: Getter<CurrencyRepository>

Defined in

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


getCurrentUser

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

Inherited from

DefaultUserModifyCrudRepository.getCurrentUser

Defined in

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