Exemplo n.º 1
0
 /**
  * Initialize dependencies.
  *
  * @param \Magento\Framework\Service\Data\ObjectFactory $objectFactory
  * @param AttributeValueBuilder $valueBuilder
  * @param MetadataServiceInterface $metadataService
  * @param \Magento\Tax\Service\V1\Data\QuoteDetails\ItemBuilder $itemBuilder
  * @param \Magento\Tax\Service\V1\Data\TaxClassKeyBuilder $taxClassKeyBuilder
  * @param \Magento\Customer\Service\V1\Data\AddressBuilder $addressBuilder
  */
 public function __construct(\Magento\Framework\Service\Data\ObjectFactory $objectFactory, AttributeValueBuilder $valueBuilder, MetadataServiceInterface $metadataService, \Magento\Tax\Service\V1\Data\QuoteDetails\ItemBuilder $itemBuilder, \Magento\Tax\Service\V1\Data\TaxClassKeyBuilder $taxClassKeyBuilder, \Magento\Customer\Service\V1\Data\AddressBuilder $addressBuilder)
 {
     parent::__construct($objectFactory, $valueBuilder, $metadataService);
     $this->itemBuilder = $itemBuilder;
     $this->taxClassKeyBuilder = $taxClassKeyBuilder;
     $this->addressBuilder = $addressBuilder;
 }
Exemplo n.º 2
0
 /**
  * @param \Magento\Framework\Service\Data\ObjectFactory $objectFactory
  * @param AttributeValueBuilder $valueBuilder
  * @param MetadataServiceInterface $metadataService
  * @param OptionBuilder $optionBuilder
  * @param ValidationRuleBuilder $validationRuleBuilder
  */
 public function __construct(\Magento\Framework\Service\Data\ObjectFactory $objectFactory, AttributeValueBuilder $valueBuilder, MetadataServiceInterface $metadataService, \Magento\Customer\Service\V1\Data\Eav\OptionBuilder $optionBuilder, \Magento\Customer\Service\V1\Data\Eav\ValidationRuleBuilder $validationRuleBuilder)
 {
     parent::__construct($objectFactory, $valueBuilder, $metadataService);
     $this->_optionBuilder = $optionBuilder;
     $this->_validationRuleBuilder = $validationRuleBuilder;
     $this->_data[AttributeMetadata::OPTIONS] = array();
     $this->_data[AttributeMetadata::VALIDATION_RULES] = array();
 }
Exemplo n.º 3
0
 /**
  * Initializes builder.
  *
  * @param \Magento\Framework\Service\Data\ObjectFactory $objectFactory
  * @param AttributeValueBuilder $valueBuilder
  * @param MetadataServiceInterface $metadataService
  * @param OptionBuilder $optionBuilder
  * @param ValidationRuleBuilder $validationRuleBuilder
  * @param Product\Attribute\FrontendLabelBuilder $frontendLabelBuilder
  */
 public function __construct(\Magento\Framework\Service\Data\ObjectFactory $objectFactory, AttributeValueBuilder $valueBuilder, MetadataServiceInterface $metadataService, OptionBuilder $optionBuilder, ValidationRuleBuilder $validationRuleBuilder, Product\Attribute\FrontendLabelBuilder $frontendLabelBuilder)
 {
     parent::__construct($objectFactory, $valueBuilder, $metadataService);
     $this->optionBuilder = $optionBuilder;
     $this->validationRuleBuilder = $validationRuleBuilder;
     $this->frontendLabelBuilder = $frontendLabelBuilder;
     $this->_data[AttributeMetadata::OPTIONS] = array();
     $this->_data[AttributeMetadata::VALIDATION_RULES] = array();
     $this->_data[AttributeMetadata::FRONTEND_LABEL] = array();
 }
Exemplo n.º 4
0
 /**
  * @param \Magento\Framework\Service\Data\ObjectFactory $objectFactory
  * @param AttributeValueBuilder $valueBuilder
  * @param AddressMetadataServiceInterface $metadataService
  * @param RegionBuilder $regionBuilder
  */
 public function __construct(\Magento\Framework\Service\Data\ObjectFactory $objectFactory, AttributeValueBuilder $valueBuilder, AddressMetadataServiceInterface $metadataService, RegionBuilder $regionBuilder)
 {
     parent::__construct($objectFactory, $valueBuilder, $metadataService);
     $this->_regionBuilder = $regionBuilder;
     $this->_data[Address::KEY_REGION] = $regionBuilder->create();
 }
Exemplo n.º 5
0
 /**
  * @param \Magento\Framework\Service\Data\ObjectFactory $objectFactory
  * @param AttributeValueBuilder $valueBuilder
  * @param \Magento\Catalog\Service\V1\Product\MetadataServiceInterface $metadataService
  */
 public function __construct(\Magento\Framework\Service\Data\ObjectFactory $objectFactory, AttributeValueBuilder $valueBuilder, \Magento\Catalog\Service\V1\Product\MetadataServiceInterface $metadataService)
 {
     parent::__construct($objectFactory, $valueBuilder, $metadataService);
 }
Exemplo n.º 6
0
 /**
  * @param \Magento\Framework\Service\Data\ObjectFactory $objectFactory
  * @param AttributeValueBuilder $valueBuilder
  * @param \Magento\Framework\Service\Config\MetadataConfig $metadataService
  * @param array $customAttributesCodes
  */
 public function __construct(\Magento\Framework\Service\Data\ObjectFactory $objectFactory, AttributeValueBuilder $valueBuilder, \Magento\Framework\Service\Config\MetadataConfig $metadataService, array $customAttributesCodes = array())
 {
     $this->customAttributes = $customAttributesCodes;
     parent::__construct($objectFactory, $valueBuilder, $metadataService);
 }
Exemplo n.º 7
0
 /**
  * Initialize dependencies.
  *
  * @param \Magento\Framework\Service\Data\ObjectFactory $objectFactory
  * @param AttributeValueBuilder $valueBuilder
  * @param MetadataServiceInterface $metadataService
  * @param AppliedTaxRateBuilder $appliedTaxRateBuilder
  */
 public function __construct(\Magento\Framework\Service\Data\ObjectFactory $objectFactory, AttributeValueBuilder $valueBuilder, MetadataServiceInterface $metadataService, AppliedTaxRateBuilder $appliedTaxRateBuilder)
 {
     parent::__construct($objectFactory, $valueBuilder, $metadataService);
     $this->appliedTaxRateBuilder = $appliedTaxRateBuilder;
 }
Exemplo n.º 8
0
 /**
  * Initialize dependencies
  *
  * @param \Magento\Framework\Service\Data\ObjectFactory $objectFactory
  * @param AttributeValueBuilder $valueBuilder
  * @param MetadataServiceInterface $metadataService
  * @param \Magento\Tax\Service\V1\Data\TaxClassKeyBuilder $taxClassKeyBuilder
  */
 public function __construct(\Magento\Framework\Service\Data\ObjectFactory $objectFactory, AttributeValueBuilder $valueBuilder, MetadataServiceInterface $metadataService, \Magento\Tax\Service\V1\Data\TaxClassKeyBuilder $taxClassKeyBuilder)
 {
     parent::__construct($objectFactory, $valueBuilder, $metadataService);
     $this->taxClassKeyBuilder = $taxClassKeyBuilder;
 }
Exemplo n.º 9
0
 /**
  * Initialize dependencies.
  *
  * @param ObjectFactory $objectFactory
  * @param AttributeValueBuilder $valueBuilder
  * @param MetadataServiceInterface $metadataService
  * @param TaxRateBuilder $taxRateBuilder
  */
 public function __construct(ObjectFactory $objectFactory, AttributeValueBuilder $valueBuilder, MetadataServiceInterface $metadataService, TaxRateBuilder $taxRateBuilder)
 {
     parent::__construct($objectFactory, $valueBuilder, $metadataService);
     $this->taxRateBuilder = $taxRateBuilder;
 }
Exemplo n.º 10
0
 /**
  * Constructor
  *
  * @param ObjectFactory $objectFactory
  * @param AttributeValueBuilder $valueBuilder
  * @param MetadataServiceInterface $metadataService
  * @param SearchCriteriaBuilder $searchCriteriaBuilder
  * @param AbstractExtensibleObjectBuilder $itemObjectBuilder
  */
 public function __construct(ObjectFactory $objectFactory, AttributeValueBuilder $valueBuilder, MetadataServiceInterface $metadataService, SearchCriteriaBuilder $searchCriteriaBuilder, AbstractExtensibleObjectBuilder $itemObjectBuilder)
 {
     parent::__construct($objectFactory, $valueBuilder, $metadataService);
     $this->searchCriteriaBuilder = $searchCriteriaBuilder;
     $this->itemObjectBuilder = $itemObjectBuilder;
 }
Exemplo n.º 11
0
 /**
  * @param \Magento\Framework\Service\Data\ObjectFactory $objectFactory
  * @param AttributeValueBuilder $valueBuilder
  * @param MetadataServiceInterface $metadataService
  * @param FilterGroupBuilder $filterGroupBuilder
  */
 public function __construct(\Magento\Framework\Service\Data\ObjectFactory $objectFactory, AttributeValueBuilder $valueBuilder, MetadataServiceInterface $metadataService, FilterGroupBuilder $filterGroupBuilder)
 {
     parent::__construct($objectFactory, $valueBuilder, $metadataService);
     $this->_filterGroupBuilder = $filterGroupBuilder;
 }
Exemplo n.º 12
0
 /**
  * @param \Magento\Framework\Service\Data\ObjectFactory $objectFactory
  * @param AttributeValueBuilder $valueBuilder
  * @param MetadataServiceInterface $metadataService
  * @param CustomerBuilder $customerBuilder
  * @param AddressBuilder $addressBuilder
  */
 public function __construct(\Magento\Framework\Service\Data\ObjectFactory $objectFactory, AttributeValueBuilder $valueBuilder, MetadataServiceInterface $metadataService, \Magento\Customer\Service\V1\Data\CustomerBuilder $customerBuilder, \Magento\Customer\Service\V1\Data\AddressBuilder $addressBuilder)
 {
     parent::__construct($objectFactory, $valueBuilder, $metadataService);
     $this->_customerBuilder = $customerBuilder;
     $this->_addressBuilder = $addressBuilder;
 }
Exemplo n.º 13
0
 /**
  * Initialize dependencies
  *
  * @param \Magento\Framework\Service\Data\ObjectFactory $objectFactory
  * @param AttributeValueBuilder $valueBuilder
  * @param MetadataServiceInterface $metadataService
  * @param TaxDetails\AppliedTaxBuilder $appliedTaxBuilder
  * @param TaxDetails\ItemBuilder $taxDetailsItemBuilder
  */
 public function __construct(\Magento\Framework\Service\Data\ObjectFactory $objectFactory, AttributeValueBuilder $valueBuilder, MetadataServiceInterface $metadataService, \Magento\Tax\Service\V1\Data\TaxDetails\AppliedTaxBuilder $appliedTaxBuilder, \Magento\Tax\Service\V1\Data\TaxDetails\ItemBuilder $taxDetailsItemBuilder)
 {
     parent::__construct($objectFactory, $valueBuilder, $metadataService);
     $this->appliedTaxBuilder = $appliedTaxBuilder;
     $this->taxDetailsItemBuilder = $taxDetailsItemBuilder;
 }