Skip to content

@sourceloop/ctrl-plane-tenant-management-service / Exports / InvoiceRepository

Class: InvoiceRepository<T>

Type parameters

Name Type
T extends Invoice = Invoice

Hierarchy

  • DefaultTransactionalUserModifyRepository<T, typeof id, InvoiceRelations>

    InvoiceRepository

Table of contents

Constructors

Properties

Constructors

constructor

new InvoiceRepository<T>(dataSource, getCurrentUser, tenantRepositoryGetter, invoice)

Type parameters

Name Type
T extends Invoice<T> = Invoice

Parameters

Name Type
dataSource DataSource
getCurrentUser Getter<IAuthUserWithPermissions<string, string, string>>
tenantRepositoryGetter Getter<TenantRepository<Tenant>>
invoice typeof Entity & { prototype: T }

Overrides

DefaultTransactionalUserModifyRepository< T, typeof Invoice.prototype.id, InvoiceRelations \>.constructor

Defined in

services/tenant-management-service/src/repositories/invoice.repository.ts:30

Properties

getCurrentUser

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

Inherited from

DefaultTransactionalUserModifyRepository.getCurrentUser

Defined in

services/tenant-management-service/src/repositories/invoice.repository.ts:34


invoice

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

Defined in

services/tenant-management-service/src/repositories/invoice.repository.ts:38


tenant

Readonly tenant: BelongsToAccessor<Tenant, string>

Defined in

services/tenant-management-service/src/repositories/invoice.repository.ts:25


tenantRepositoryGetter

Protected tenantRepositoryGetter: Getter<TenantRepository<Tenant>>

Defined in

services/tenant-management-service/src/repositories/invoice.repository.ts:36