@param \Generated\Shared\Transfer\ProductAbstractTransfer $productAbstractTransfer

@return \Generated\Shared\Transfer\ProductAbstractTransfer
557492
public function expandProductAbstractTransferWithBrand(ProductAbstractTransfer $productAbstractTransfer): ProductAbstractTransfer
    {
        $productAbstractTransfer->setBrandCollection(new BrandCollectionTransfer());

        $brandCollection = $this->brandReader->getBrandCollectionByIdProductAbstractId(
            $productAbstractTransfer
        );

        if ($brandCollection->getBrands()->count() > 0) {
            $productAbstractTransfer->setBrandCollection($brandCollection);
        }

        return $productAbstractTransfer;
    }
1039521
public function authorizePayment(OrderTransfer $orderTransfer)
    {
        $paymentEntity = $this->getPaymentEntity($orderTransfer->getIdSalesOrder());
        $paymentMethodMapper = $this->getPaymentMethodMapper($paymentEntity);
        $requestContainer = $paymentMethodMapper->mapPaymentToAuthorization($paymentEntity, $orderTransfer);
        $requestContainer = $this->prepareOrderItems($orderTransfer, $requestContainer);
        $requestContainer = $this->prepareOrderShipment($orderTransfer, $requestContainer);
        $requestContainer = $this->prepareOrderDiscount($orderTransfer, $requestContainer);
        $responseContainer = $this->performAuthorizationRequest($paymentEntity, $requestContainer);

        $responseMapper = new AuthorizationResponseMapper();
        $responseTransfer = $responseMapper->getAuthorizationResponseTransfer($responseContainer);

        return $responseTransfer;
    }
757190
protected function hasCustomerTransferProductLists(CustomerTransfer $customerTransfer): bool
    {
        $customerProductListCollection = $customerTransfer->getCustomerProductListCollection();

        if ($customerProductListCollection === null) {
            $customerProductListCollection = new CustomerProductListCollectionTransfer();

            $customerTransfer->setCustomerProductListCollection($customerProductListCollection);
        }

        return count($customerProductListCollection->getBlacklistIds()) > 0
            && count($customerProductListCollection->getWhitelistIds()) > 0;
    }
462931
public function getProductListCollectionByIdCustomer(int $idCustomer): ProductListCollectionTransfer
    {
        /** @var \Orm\Zed\ProductList\Persistence\SpyProductList[] $productListEntities */
        $productListEntities = $this->getFactory()
            ->getProductListQuery()
            ->useSpyProductListCustomerQuery()
                ->filterByFkCustomer($idCustomer)
            ->endUse()
            ->find();

        $productListCollectionTransfer = new ProductListCollectionTransfer();
        $productListCustomerMapper = $this->getFactory()->createProductListCustomerMapper();

        foreach ($productListEntities as $productListEntity) {
            $productListCollectionTransfer->addProductList(
                $productListCustomerMapper->mapProductList($productListEntity, new ProductListTransfer())
            );
        }

        return $productListCollectionTransfer;
    }
720892
public function import(?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer = null): DataImporterReportTransfer
    {
        return $this->getFactory()->getCompanyBusinessUnitDataImport()->import($dataImporterConfigurationTransfer);
    }
928636
protected function getRelatedCustomerIds(
        ProductListCustomerRelationTransfer $productListCustomerRelationTransfer
    ): array {
        $currentProductListCustomerRelationTransfer = $this->productListCustomerRelationReader
            ->getProductListCustomerRelation($productListCustomerRelationTransfer);

        return $currentProductListCustomerRelationTransfer->getCustomerIds();
    }
377894
public function import(?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer = null): DataImporterReportTransfer
    {
        return $this->getFactory()
            ->getProductQuantityDataImporter()
            ->import($dataImporterConfigurationTransfer);
    }
1371561
public function importShoppingListItems(?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer = null): DataImporterReportTransfer
    {
        return $this->getFactory()
            ->getShoppingListItemDataImporter()
            ->import($dataImporterConfigurationTransfer);
    }
544847
public function getProductListCompanyRelation(
        ProductListCompanyRelationTransfer $productListCompanyRelationTransfer
    ): ProductListCompanyRelationTransfer {
        $productListCompanyRelationTransfer->requireIdProductList();

        $companyIds = $this->productListCompanyRepository->getRelatedCompanyIdsByIdProductList(
            $productListCompanyRelationTransfer->getIdProductList()
        );

        $productListCompanyRelationTransfer->setCompanyIds($companyIds);

        return $productListCompanyRelationTransfer;
    }
1258596
public function importProductListProductConcrete(?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer = null): DataImporterReportTransfer
    {
        return $this->getFactory()
            ->createProductListProductConcreteDataImport()
            ->import($dataImporterConfigurationTransfer);
    }
868281
public function expandWithProductListCustomerRelationTransfer(ProductListTransfer $productListTransfer): ProductListTransfer
    {
        $productListCustomerRelationTransfer = new ProductListCustomerRelationTransfer();

        $productListCustomerRelationTransfer->setIdProductList($productListTransfer->getIdProductList());

        $productListCustomerRelationTransfer = $this->productListCustomerRelationReader
            ->getProductListCustomerRelation($productListCustomerRelationTransfer);

        $productListTransfer->setProductListCustomerRelation($productListCustomerRelationTransfer);

        return $productListTransfer;
    }
1242764
public function mapBrandTransfer(FosBrandEntityTransfer $brandEntityTransfer): BrandTransfer
    {
        $brandTransfer = new BrandTransfer();

        $brandTransfer->fromArray($brandEntityTransfer->toArray(), true);

        return $brandTransfer;
    }
340479
public function importProductPackagingUnits(?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer = null): DataImporterReportTransfer
    {
        return $this->getFactory()->createProductPackagingUnitDataImport()->import($dataImporterConfigurationTransfer);
    }
710425
protected function saveProductListCustomerRelation(
        ProductListTransfer $productListTransfer,
        ProductListCustomerRelationTransfer $productListCustomerRelationTransfer
    ): ProductListTransfer {
        $productListCustomerRelationTransfer->setIdProductList($productListTransfer->getIdProductList());

        $productListCustomerRelationTransfer = $this->getFacade()
            ->saveProductListCustomerRelation($productListCustomerRelationTransfer);

        $productListTransfer->setProductListCustomerRelation($productListCustomerRelationTransfer);

        return $productListTransfer;
    }
166772
public function import(?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer = null): DataImporterReportTransfer
    {
        return $this->getFactory()->createProductDiscontinuedDataImport()->import($dataImporterConfigurationTransfer);
    }
1260408
public function importCompanyRoles(?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer = null): DataImporterReportTransfer
    {
        return $this->getFactory()->createCompanyRoleDataImport()->import($dataImporterConfigurationTransfer);
    }
1278193
public function getProductListCustomerRelation(
        ProductListCustomerRelationTransfer $productListCustomerRelationTransfer
    ): ProductListCustomerRelationTransfer {
        $productListCustomerRelationTransfer->requireIdProductList();

        $customerIds = $this->productListCustomerRepository->getRelatedCustomerIdsByIdProductList(
            $productListCustomerRelationTransfer->getIdProductList()
        );

        $productListCustomerRelationTransfer->setCustomerIds($customerIds);

        return $productListCustomerRelationTransfer;
    }