@param \Generated\Shared\Transfer\ProductListCustomerRelationTransfer $productListCustomerRelationTransfer

@return \Generated\Shared\Transfer\ProductListCustomerRelationTransfer
358573
protected function executeSaveProductListCustomerRelationTransaction(
        ProductListCustomerRelationTransfer $productListCustomerRelationTransfer
    ): ProductListCustomerRelationTransfer {
        $productListCustomerRelationTransfer->requireIdProductList();
        $idProductList = $productListCustomerRelationTransfer->getIdProductList();

        $requestedCustomerIds = $this->getRequestedCustomerIds($productListCustomerRelationTransfer);
        $relatedCustomerIds = $this->getRelatedCustomerIds($productListCustomerRelationTransfer);

        $saveCustomerIds = array_diff($requestedCustomerIds, $relatedCustomerIds);
        $deleteCustomerIds = array_diff($relatedCustomerIds, $requestedCustomerIds);

        $this->productListCustomerEntityManager->addCustomerRelations($idProductList, $saveCustomerIds);
        $this->productListCustomerEntityManager->removeCustomerRelations($idProductList, $deleteCustomerIds);

        return $productListCustomerRelationTransfer->setCustomerIds(
            $this->getRelatedCustomerIds($productListCustomerRelationTransfer)
        );
    }
957333
public function getProductListCollectionByIdCompany(int $idCompany): ProductListCollectionTransfer
    {
        /** @var \Orm\Zed\ProductList\Persistence\SpyProductList[] $productListEntities */
        $productListEntities = $this->getFactory()
            ->getProductListQuery()
            ->useSpyProductListCompanyQuery()
                ->filterByFkCompany($idCompany)
            ->endUse()
            ->find();

        $productListCollectionTransfer = new ProductListCollectionTransfer();
        $productListCompanyMapper = $this->getFactory()->createProductListCompanyMapper();

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

        return $productListCollectionTransfer;
    }
637633
protected function createPaymentTransfer(OrderTransfer $orderTransfer): ComputopApiRequestTransfer
    {
        $computopApiRequestTransfer = parent::createPaymentTransfer($orderTransfer);
        $computopApiRequestTransfer->setCapture(
            $this->getCaptureType(ComputopApiConfig::PAYMENT_METHOD_PAY_NOW)
        );
        $computopApiRequestTransfer->setOrderDesc($this->getOrderDesc($this->computopApiService, $orderTransfer));

        return $computopApiRequestTransfer;
    }
1258596
public function importProductListProductConcrete(?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer = null): DataImporterReportTransfer
    {
        return $this->getFactory()
            ->createProductListProductConcreteDataImport()
            ->import($dataImporterConfigurationTransfer);
    }
815374
public function getProductAbstractCollectionByBrand(BrandTransfer $brandTransfer): BrandProductAbstractRelationTransfer
    {
        $brandTransfer->requireIdBrand();

        return $this->brandProductRepository->getProductAbstractCollectionByBrandId($brandTransfer->getIdBrand());
    }
229447
public function importProductPackagingUnitTypes(?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer = null): DataImporterReportTransfer
    {
        return $this->getFactory()->createProductPackagingUnitTypeDataImport()->import($dataImporterConfigurationTransfer);
    }
771832
public function expandCustomerTransferWithProductListIds(CustomerTransfer $customerTransfer): CustomerTransfer
    {
        $customerTransfer->setCustomerProductListCollection(new CustomerProductListCollectionTransfer());

        $productListCollectionTransfer = $this->productListReader->getProductListCollectionByIdCustomerId(
            $customerTransfer
        );

        $this->addProductListsToCustomerTransfer($customerTransfer, $productListCollectionTransfer);

        return $customerTransfer;
    }
678659
public function getBrandCollectionByIdProductAbstractId(ProductAbstractTransfer $productAbstractTransfer): BrandCollectionTransfer
    {
        $productAbstractTransfer->requireIdProductAbstract();

        return $this->brandProductRepository->getBrandCollectionByAbstractIdProduct($productAbstractTransfer->getIdProductAbstract());
    }
275528
public function getProductListCollectionByIdCompanyId(
        CompanyTransfer $companyTransfer
    ): ProductListCollectionTransfer {
        $companyTransfer->requireIdCompany();

        return $this->productListCompanyRepository
            ->getProductListCollectionByIdCompany($companyTransfer->getIdCompany());
    }
466082
public function createProductAbstractBrands(ProductAbstractTransfer $productAbstractTransfer): ProductAbstractTransfer
    {
        if ($productAbstractTransfer->getBrandCollection() !== null) {
            $requestedBrandIds = $this->getBrandIds($productAbstractTransfer->getBrandCollection());

            if (count($requestedBrandIds) > 0) {
                $this->brandProductEntityManager->addBrandProductRelations($productAbstractTransfer->getIdProductAbstract(), $requestedBrandIds);
            }

            $productAbstractTransfer->setBrandCollection($this->brandProductReader->getBrandCollectionByIdProductAbstractId($productAbstractTransfer));
        }

        return $productAbstractTransfer;
    }
77340
public function expandTransfer(ProductListTransfer $productListTransfer): ProductListTransfer
    {
        $productListTransfer = $this->getFacade()
            ->expandProductListTransferWithProductListCustomerRelationTransfer($productListTransfer);

        return $productListTransfer;
    }
801495
public function expandBrandTransferWithProductAbstractRelations(BrandTransfer $brandTransfer): BrandTransfer
    {
        $brandTransfer->setBrandProductAbstractRelation(new BrandProductAbstractRelationTransfer());

        $brandProductAbstractRelationTransfer = $this->brandReader->getProductAbstractCollectionByBrand(
            $brandTransfer
        );

        $this->addProductAbstractRelationsToBrandTransfer($brandTransfer, $brandProductAbstractRelationTransfer);

        return $brandTransfer;
    }
381994
public function getBasketSimilarList()
    {
        if ($this->_oSimilarList === null) {
            $this->_oSimilarList = false;

            // similar product info
            if ($oProduct = $this->getFirstBasketProduct()) {
                $this->_oSimilarList = $oProduct->getSimilarProducts();
            }
        }

        return $this->_oSimilarList;
    }
1327142
public function buildRequest(
        OrderTransfer $orderTransfer,
        ComputopApiHeaderPaymentTransfer $computopApiHeaderPayment
    ): array {
        $encryptedArray = $this->encryptRequestData($orderTransfer, $computopApiHeaderPayment);

        $data = $encryptedArray[ComputopApiConstants::DATA];
        $length = $encryptedArray[ComputopApiConstants::LENGTH];
        $merchantId = $this->config->getMerchantId();

        return $this->buildRequestData($data, $length, $merchantId);
    }
541839
public function mapToCompany(
        RestCompaniesRequestAttributesTransfer $restCompaniesRequestAttributesTransfer,
        CompanyTransfer $companyTransfer
    ): CompanyTransfer {
        if ($restCompaniesRequestAttributesTransfer->getExternalReference() !== null) {
            $companyTransfer->setExternalReference(
                $restCompaniesRequestAttributesTransfer->getExternalReference()
            );
        }

        if ($restCompaniesRequestAttributesTransfer->getName() !== null) {
            $companyTransfer->setName($restCompaniesRequestAttributesTransfer->getName());
        }

        return $companyTransfer;
    }
949635
public function mapGetInvoice(PayoneGetInvoiceTransfer $getInvoiceTransfer)
    {
        $getInvoiceContainer = new GetInvoiceContainer();
        $getInvoiceContainer->setInvoiceTitle($getInvoiceTransfer->getReference());

        return $getInvoiceContainer;
    }
1173800
public function expandProductListTransferWithProductListCompanyRelationTransfer(
        ProductListTransfer $productListTransfer
    ): ProductListTransfer {
        $productListTransfer = $this->getFactory()->createProductListTransferExpander()
            ->expandWithProductListCompanyRelationTransfer($productListTransfer);

        return $productListTransfer;
    }