<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">

    <preference for="Magento\Tax\Model\Calculation" type="Zhik\ThresholdTaxes\Model\Calculation"/>
    <preference for="Magento\Tax\Model\ResourceModel\Calculation" type="Zhik\ThresholdTaxes\Model\ResourceModel\Calculation"/>
    <preference for="Magento\Tax\Model\TaxRateCollection" type="Zhik\ThresholdTaxes\Model\TaxRateCollection"/>

    <type name="Magento\Tax\Model\Sales\Total\Quote\Tax">
        <plugin name="Zhik_ThresholdTaxes::apply_threshold_flag" type="Zhik\ThresholdTaxes\Plugin\Model\Sales\Total\Quote\Tax" />
    </type>

</config>
