@param \Generated\Shared\Transfer\RestCompanyBusinessUnitsRequestTransfer $restCompanyBusinessUnitsRequestTransfer

@return \Generated\Shared\Transfer\RestCompanyBusinessUnitsResponseTransfer
6399
public function update(RestCompanyBusinessUnitsRequestTransfer $restCompanyBusinessUnitsRequestTransfer
    ): RestCompanyBusinessUnitsResponseTransfer
    {
        /** @var \Generated\Shared\Transfer\RestCompanyBusinessUnitsResponseTransfer $restCompanyBusinessUnitsResponseTransfer */
        $restCompanyBusinessUnitsResponseTransfer = $this->zedRequestClient->call(
            '/company-business-units-rest-api/gateway/update',
            $restCompanyBusinessUnitsRequestTransfer
        );

        return $restCompanyBusinessUnitsResponseTransfer;
    }
781359
protected function createLoadCompanyFailedErrorResponse(
        RestCompaniesResponseTransfer $restCompaniesResponseTransfer
    ): RestResponseInterface {
        $restResponse = $this->restResourceBuilder->createRestResponse();

        foreach ($restCompaniesResponseTransfer->getErrors() as $restCompaniesErrorTransfer) {
            $restResponse->addError((new RestErrorMessageTransfer())
                ->setCode($restCompaniesErrorTransfer->getCode())
                ->setStatus($restCompaniesErrorTransfer->getStatus())
                ->setDetail($restCompaniesErrorTransfer->getDetail()));
        }

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

        return $this->brandProductRepository->getBrandCollectionByAbstractIdProduct($productAbstractTransfer->getIdProductAbstract());
    }
1260408
public function importCompanyRoles(?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer = null): DataImporterReportTransfer
    {
        return $this->getFactory()->createCompanyRoleDataImport()->import($dataImporterConfigurationTransfer);
    }
1134088
public function saveCompanyBusinessUnitStore(CompanyBusinessUnitStoreTransfer $companyBusinessUnitStoreTransfer): CompanyBusinessUnitStoreTransfer
    {
        return $this->getTransactionHandler()->handleTransaction(function () use ($companyBusinessUnitStoreTransfer) {
            return $this->executeSaveCompanyBusinessUnitStoreTransaction($companyBusinessUnitStoreTransfer);
        });
    }
1164950
protected function executeSaveProductListCompanyRelationTransaction(
        ProductListCompanyRelationTransfer $productListCompanyRelationTransfer
    ): ProductListCompanyRelationTransfer {
        $productListCompanyRelationTransfer->requireIdProductList();
        $idProductList = $productListCompanyRelationTransfer->getIdProductList();

        $requestedCompanyIds = $this->getRequestedCompanyIds($productListCompanyRelationTransfer);
        $relatedCompanyIds = $this->getRelatedCompanyIds($productListCompanyRelationTransfer);

        $saveCompanyIds = array_diff($requestedCompanyIds, $relatedCompanyIds);
        $deleteCompanyIds = array_diff($relatedCompanyIds, $requestedCompanyIds);

        $this->productListCompanyEntityManager->addCompanyRelations($idProductList, $saveCompanyIds);
        $this->productListCompanyEntityManager->removeCompanyRelations($idProductList, $deleteCompanyIds);

        return $productListCompanyRelationTransfer->setCompanyIds(
            $this->getRelatedCompanyIds($productListCompanyRelationTransfer)
        );
    }
1371561
public function importShoppingListItems(?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer = null): DataImporterReportTransfer
    {
        return $this->getFactory()
            ->getShoppingListItemDataImporter()
            ->import($dataImporterConfigurationTransfer);
    }
1133233
public function performCaptureRequest(
        OrderTransfer $orderTransfer,
        ComputopApiHeaderPaymentTransfer $computopApiHeaderPayment
    ): ComputopApiCaptureResponseTransfer {
        return $this
            ->getFactory()
            ->createCapturePaymentRequest()
            ->request($orderTransfer, $computopApiHeaderPayment);
    }
853185
public function import(?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer = null): DataImporterReportTransfer
    {
        return $this->getFactory()
            ->createPriceProductDataImport()
            ->import($dataImporterConfigurationTransfer);
    }
750117
public function update(RestCompaniesRequestTransfer $restCompaniesRequestTransfer): RestCompaniesResponseTransfer
    {
        /** @var \Generated\Shared\Transfer\RestCompaniesResponseTransfer $restCompaniesResponseTransfer */
        $restCompaniesResponseTransfer = $this->zedRequestClient->call(
            '/companies-rest-api/gateway/update',
            $restCompaniesRequestTransfer
        );

        return $restCompaniesResponseTransfer;
    }
769800
public function import(?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer = null): DataImporterReportTransfer
    {
        return $this->getFactory()
            ->getProductAlternativeDataImport()
            ->import($dataImporterConfigurationTransfer);
    }
403418
public function create(RestCompanyBusinessUnitsRequestAttributesTransfer $restCompanyBusinessUnitsRequestAttributesTransfer): RestCompanyBusinessUnitsResponseTransfer
    {
        /** @var \Generated\Shared\Transfer\RestCompanyBusinessUnitsResponseTransfer $restCompanyBusinessUnitsResponseTransfer */
        $restCompanyBusinessUnitsResponseTransfer = $this->zedRequestClient->call(
            '/company-business-units-rest-api/gateway/create',
            $restCompanyBusinessUnitsRequestAttributesTransfer
        );

        return $restCompanyBusinessUnitsResponseTransfer;
    }
904696
public function create(
        RestCompanyBusinessUnitsRequestAttributesTransfer $restCompanyBusinessUnitsRequestAttributesTransfer
    ): RestCompanyBusinessUnitsResponseTransfer {
        $companyBusinessUnitTransfer = new CompanyBusinessUnitTransfer();

        foreach ($this->companyBusinessUnitMapperPlugins as $companyBusinessUnitMapperPlugin) {
            $companyBusinessUnitTransfer = $companyBusinessUnitMapperPlugin->map(
                $restCompanyBusinessUnitsRequestAttributesTransfer,
                $companyBusinessUnitTransfer
            );
        }

        try {
            $companyBusinessUnitResponseTransfer = $this->companyBusinessUnitFacade->create($companyBusinessUnitTransfer);
        } catch (PropelException $e) {
            return $this->createCompanyBusinessUnitDataInvalidErrorResponse();
        }

        if (!$companyBusinessUnitResponseTransfer->getIsSuccessful()) {
            return $this->createCompanyBusinessUnitDataInvalidErrorResponse();
        }

        return $this->createCompanyBusinessUnitResponseTransfer(
            $companyBusinessUnitResponseTransfer->getCompanyBusinessUnitTransfer()
        );
    }
53665
public function request(
        OrderTransfer $orderTransfer,
        ComputopApiHeaderPaymentTransfer $computopApiHeaderPayment
    ): TransferInterface {
        $requestData = $this
            ->getMethodMapper($this->getPaymentMethodFromOrder($orderTransfer))
            ->buildRequest($orderTransfer, $computopApiHeaderPayment);

        return $this->sendRequest($requestData);
    }
1275507
public function importShoppingLists(?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer = null): DataImporterReportTransfer
    {
        return $this->getFactory()
            ->getShoppingListDataImporter()
            ->import($dataImporterConfigurationTransfer);
    }
544847
public function getProductListCompanyRelation(
        ProductListCompanyRelationTransfer $productListCompanyRelationTransfer
    ): ProductListCompanyRelationTransfer {
        $productListCompanyRelationTransfer->requireIdProductList();

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

        $productListCompanyRelationTransfer->setCompanyIds($companyIds);

        return $productListCompanyRelationTransfer;
    }
998899
public function findCompanyByExternalReference(RestRequestInterface $restRequest): RestResponseInterface
    {
        $restResponse = $this->restResourceBuilder->createRestResponse();

        if (!$restRequest->getResource()->getId()) {
            return $this->restApiError->addExternalReferenceMissingError($restResponse);
        }

        $restCompaniesRequestAttributesTransfer = new RestCompaniesRequestAttributesTransfer();
        $restCompaniesRequestAttributesTransfer->setExternalReference($restRequest->getResource()->getId());

        $restCompaniesResponseTransfer = $this->companiesRestApiClient
            ->findCompanyByExternalReference($restCompaniesRequestAttributesTransfer);

        if (!$restCompaniesResponseTransfer->getIsSuccess()) {
            return $this->createLoadCompanyFailedErrorResponse($restCompaniesResponseTransfer);
        }

        return $this->createCompanyLoadedResponse($restCompaniesResponseTransfer);
    }