updateTaxRates - Tax Module Reference
This documentation provides a reference to the updateTaxRates
method. This belongs to the Tax Module.
Note: You should only use this methods when implementing complex customizations. For common cases, check out
available workflows instead.
updateTaxRates(taxRateId, data, sharedContext?): Promise<TaxRateDTO>#
This method updates an existing tax rate.
Example#
1const taxRate = await taxModuleService.updateTaxRates("txr_123", {2 rate: 10,3})
Parameters#
The tax rate's ID.
The attributes to update in the tax rate.
A context used to share resources, such as transaction manager, between the application and the module.
Returns#
updateTaxRates(taxRateIds, data, sharedContext?): Promise<TaxRateDTO[]>#
This method updates existing tax rates.
Example#
1const taxRates = await taxModuleService.updateTaxRates(2 ["txr_123", "txr_321"],3 {4 rate: 10,5 }6)
Parameters#
The IDs of tax rates to update.
The attributes to update in the tax rate.
A context used to share resources, such as transaction manager, between the application and the module.
Returns#
updateTaxRates(selector, data, sharedContext?): Promise<TaxRateDTO[]>#
This method updates existing tax rates matching the specified filters.
Example#
1const taxRates = await taxModuleService.updateTaxRates(2 {3 id: ["txr_123", "txr_321"],4 },5 {6 rate: 10,7 }8)
Parameters#
The filters specifying which tax rates to update.
The attributes to update in the tax rate.
A context used to share resources, such as transaction manager, between the application and the module.
Returns#