Ejemplo n.º 1
0
 /**
  * Class constructor
  *
  * @param \Magento\Tax\Model\Config $taxConfig
  * @param \Magento\Tax\Api\TaxCalculationInterface $taxCalculationService
  * @param \Magento\Tax\Api\Data\QuoteDetailsInterfaceFactory $quoteDetailsDataObjectFactory
  * @param \Magento\Tax\Api\Data\QuoteDetailsItemInterfaceFactory $quoteDetailsItemDataObjectFactory
  * @param \Magento\Tax\Api\Data\TaxClassKeyInterfaceFactory $taxClassKeyDataObjectFactory
  * @param CustomerAddressFactory $customerAddressFactory
  * @param CustomerAddressRegionFactory $customerAddressRegionFactory
  * @param \Magento\Tax\Helper\Data $taxData
  */
 public function __construct(\Magento\Tax\Model\Config $taxConfig, \Magento\Tax\Api\TaxCalculationInterface $taxCalculationService, \Magento\Tax\Api\Data\QuoteDetailsInterfaceFactory $quoteDetailsDataObjectFactory, \Magento\Tax\Api\Data\QuoteDetailsItemInterfaceFactory $quoteDetailsItemDataObjectFactory, \Magento\Tax\Api\Data\TaxClassKeyInterfaceFactory $taxClassKeyDataObjectFactory, CustomerAddressFactory $customerAddressFactory, CustomerAddressRegionFactory $customerAddressRegionFactory, \Magento\Tax\Helper\Data $taxData)
 {
     $this->setCode('tax');
     $this->_taxData = $taxData;
     parent::__construct($taxConfig, $taxCalculationService, $quoteDetailsDataObjectFactory, $quoteDetailsItemDataObjectFactory, $taxClassKeyDataObjectFactory, $customerAddressFactory, $customerAddressRegionFactory);
 }
Ejemplo n.º 2
0
 /**
  * Class constructor
  *
  * @param \Magento\Tax\Model\Config $taxConfig
  * @param \Magento\Tax\Service\V1\TaxCalculationService $taxCalculationService
  * @param \Magento\Tax\Service\V1\Data\QuoteDetailsBuilder $quoteDetailsBuilder
  * @param \Magento\Tax\Helper\Data $taxData
  */
 public function __construct(\Magento\Tax\Model\Config $taxConfig, \Magento\Tax\Service\V1\TaxCalculationService $taxCalculationService, \Magento\Tax\Service\V1\Data\QuoteDetailsBuilder $quoteDetailsBuilder, \Magento\Tax\Helper\Data $taxData)
 {
     $this->setCode('tax');
     $this->_taxData = $taxData;
     parent::__construct($taxConfig, $taxCalculationService, $quoteDetailsBuilder);
 }