Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
taxFor (product, groupId) {
return calculateProductTax({
product,
taxClasses: this._taxClasses,
taxCountry: this._taxCountry,
taxRegion: this._taxRegion,
sourcePriceInclTax: this._sourcePriceInclTax,
deprecatedPriceFieldsSupport: this._deprecatedPriceFieldsSupport,
finalPriceInclTax: this._finalPriceInclTax,
userGroupId: groupId,
isTaxWithUserGroupIsActive: checkIfTaxWithUserGroupIsActive(this._storeConfigTax) && typeof groupId === 'number'
})
}
taxFor (product, groupId) {
return calculateProductTax({
product,
taxClasses: this._taxClasses,
taxCountry: this._taxCountry,
taxRegion: this._taxRegion,
sourcePriceInclTax: this._sourcePriceInclTax,
deprecatedPriceFieldsSupport: this._deprecatedPriceFieldsSupport,
finalPriceInclTax: this._finalPriceInclTax,
userGroupId: groupId,
isTaxWithUserGroupIsActive: checkIfTaxWithUserGroupIsActive(this._storeConfigTax) && typeof groupId === 'number'
})
}