TaxCategoryService

TaxCategoryService

Contains methods relating to TaxCategory entities.

Signature

class TaxCategoryService {
  constructor(connection: TransactionalConnection)
  findAll(ctx: RequestContext) => Promise<TaxCategory[]>;
  findOne(ctx: RequestContext, taxCategoryId: ID) => Promise<TaxCategory | undefined>;
  async create(ctx: RequestContext, input: CreateTaxCategoryInput) => Promise<TaxCategory>;
  async update(ctx: RequestContext, input: UpdateTaxCategoryInput) => Promise<TaxCategory>;
  async delete(ctx: RequestContext, id: ID) => Promise<DeletionResponse>;
}

Members

constructor

method
type:
(connection: TransactionalConnection) => TaxCategoryService

findAll

method
type:
(ctx: RequestContext) => Promise<TaxCategory[]>

findOne

method
type:
(ctx: RequestContext, taxCategoryId: ID) => Promise<TaxCategory | undefined>

create

async method
type:
(ctx: RequestContext, input: CreateTaxCategoryInput) => Promise<TaxCategory>

update

async method
type:
(ctx: RequestContext, input: UpdateTaxCategoryInput) => Promise<TaxCategory>

delete

async method
type:
(ctx: RequestContext, id: ID) => Promise<DeletionResponse>