Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
TaxCalculationInterface.php
Go to the documentation of this file.
1 <?php
7 namespace Magento\Tax\Api;
8 
15 {
19  const CALC_UNIT_BASE = 'UNIT_BASE_CALCULATION';
20  const CALC_ROW_BASE = 'ROW_BASE_CALCULATION';
21  const CALC_TOTAL_BASE = 'TOTAL_BASE_CALCULATION';
32  public function calculateTax(
33  \Magento\Tax\Api\Data\QuoteDetailsInterface $quoteDetails,
34  $storeId = null,
35  $round = true
36  );
37 
46  public function getDefaultCalculatedRate($productTaxClassID, $customerId = null, $storeId = null);
47 
56  public function getCalculatedRate($productTaxClassID, $customerId = null, $storeId = null);
57 }
getDefaultCalculatedRate($productTaxClassID, $customerId=null, $storeId=null)
calculateTax(\Magento\Tax\Api\Data\QuoteDetailsInterface $quoteDetails, $storeId=null, $round=true)
getCalculatedRate($productTaxClassID, $customerId=null, $storeId=null)