feat(tax): soft deletes (#6486)

**What**
- Adds soft deletes
This commit is contained in:
Sebastian Rindom
2024-02-26 08:34:46 +00:00
committed by GitHub
parent 3b18f399c1
commit d983329481
6 changed files with 387 additions and 31 deletions
+18
View File
@@ -99,4 +99,22 @@ export interface ITaxModuleService extends IModuleService {
calculationContext: TaxCalculationContext,
sharedContext?: Context
): Promise<(ItemTaxLineDTO | ShippingTaxLineDTO)[]>
softDelete<TReturnableLinkableKeys extends string = string>(
taxRateIds: string[],
config?: SoftDeleteReturn<TReturnableLinkableKeys>,
sharedContext?: Context
): Promise<Record<string, string[]> | void>
softDeleteTaxRegions<TReturnableLinkableKeys extends string = string>(
taxRegionIds: string[],
config?: SoftDeleteReturn<TReturnableLinkableKeys>,
sharedContext?: Context
): Promise<Record<string, string[]> | void>
softDeleteTaxRateRules<TReturnableLinkableKeys extends string = string>(
taxRateRulePairs: { tax_rate_id: string; reference_id: string }[],
config?: SoftDeleteReturn<TReturnableLinkableKeys>,
sharedContext?: Context
): Promise<Record<string, string[]> | void>
}