TaxRateService
Contains methods relating to TaxRate entities.
constructor
method
(connection: TransactionalConnection, eventBus: EventBus, listQueryBuilder: ListQueryBuilder, configService: ConfigService, customFieldRelationService: CustomFieldRelationService) => TaxRateServicefindAll
method
(ctx: RequestContext, options?: ListQueryOptions<TaxRate>, relations?: RelationPaths<TaxRate>) => Promise<PaginatedList<TaxRate>>findOne
method
(ctx: RequestContext, taxRateId: ID, relations?: RelationPaths<TaxRate>) => Promise<TaxRate | undefined>create
method
(ctx: RequestContext, input: CreateTaxRateInput) => Promise<TaxRate>update
method
(ctx: RequestContext, input: UpdateTaxRateInput) => Promise<TaxRate>delete
method
(ctx: RequestContext, id: ID) => Promise<DeletionResponse>getApplicableTaxRate
method
(ctx: RequestContext, zone: Zone | ID, taxCategory: TaxCategory | ID) => Promise<TaxRate>Returns the applicable TaxRate based on the specified Zone and TaxCategory. Used when calculating Order prices.
Was this chapter helpful?