Skip to content

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

Class: SubscriptionRepository

Hierarchy

Table of contents

Constructors

Properties

Constructors

constructor

new SubscriptionRepository(dataSource, getCurrentUser, planRepositoryGetter)

Parameters

Name Type
dataSource DataSource
getCurrentUser Getter<IAuthUserWithPermissions<string, string, string>>
planRepositoryGetter Getter<PlanRepository>

Overrides

DefaultUserModifyCrudRepository< Subscription, typeof Subscription.prototype.id, SubscriptionRelations \>.constructor

Defined in

services/subscription-service/src/repositories/subscription.repository.ts:22

Properties

getCurrentUser

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

Inherited from

DefaultUserModifyCrudRepository.getCurrentUser

Defined in

services/subscription-service/src/repositories/subscription.repository.ts:26


plan

Readonly plan: BelongsToAccessor<Plan, string>

Defined in

services/subscription-service/src/repositories/subscription.repository.ts:17


planRepositoryGetter

Protected planRepositoryGetter: Getter<PlanRepository>

Defined in

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