Class TaxCodeMappingService
- Namespace
- Integrations.Application.Tax
- Assembly
- Integrations.Application.dll
Maintains the work type → tax code mapping (Avalara Tax Research is the authority on the codes).
public sealed class TaxCodeMappingService
- Inheritance
-
TaxCodeMappingService
- Inherited Members
Constructors
TaxCodeMappingService(IAppDbContext, TaxCodeResolver, BusinessClock, AdminAuditLog)
Maintains the work type → tax code mapping (Avalara Tax Research is the authority on the codes).
public TaxCodeMappingService(IAppDbContext db, TaxCodeResolver resolver, BusinessClock clock, AdminAuditLog audit)
Parameters
dbIAppDbContextresolverTaxCodeResolverclockBusinessClockauditAdminAuditLog
Methods
CreateAsync(UpsertTaxCodeMappingRequest, CancellationToken)
Adds a mapping and clears the resolver cache.
public Task<TaxCodeMappingDto> CreateAsync(UpsertTaxCodeMappingRequest request, CancellationToken ct)
Parameters
requestUpsertTaxCodeMappingRequestctCancellationToken
Returns
ListAsync(bool, CancellationToken)
Mappings, most specific first.
public Task<IReadOnlyList<TaxCodeMappingDto>> ListAsync(bool includeInactive, CancellationToken ct)
Parameters
includeInactiveboolctCancellationToken
Returns
UpdateAsync(Guid, UpsertTaxCodeMappingRequest, CancellationToken)
Changes a mapping and clears the resolver cache.
public Task<TaxCodeMappingDto> UpdateAsync(Guid id, UpsertTaxCodeMappingRequest request, CancellationToken ct)
Parameters
idGuidrequestUpsertTaxCodeMappingRequestctCancellationToken