@param \Generated\Shared\Transfer\AdyenApiRequestTransfer $adyenApiRequestTransfer

@return array
483462
public function buildRequestArray(AdyenApiRequestTransfer $adyenApiRequestTransfer): array
    {
        $this->validateRequestTransfer($adyenApiRequestTransfer);

        $requestDataArray = $adyenApiRequestTransfer->getRefundRequest()->toArray(true, true);

        return $this->removeRedundantParams($requestDataArray);
    }
222191
public function getRequestTransformations($api, $endpoint)
    {
        if (isset($this->requestTransformations[$api])) {
            $patterns = array_keys($this->requestTransformations[$api]);

            foreach ($patterns as $pattern) {
                preg_match($pattern, $endpoint, $matches);

                if (!empty($matches[1])) {
                    return $this->requestTransformations[$api][$pattern];
                }
            }
        }

        return [];
    }
1037978
public function ListTransferConfigs(\Google\Cloud\BigQuery\DataTransfer\V1\ListTransferConfigsRequest $argument,
      $metadata = [], $options = []) {
        return $this->_simpleRequest('/google.cloud.bigquery.datatransfer.v1.DataTransferService/ListTransferConfigs',
        $argument,
        ['\Google\Cloud\BigQuery\DataTransfer\V1\ListTransferConfigsResponse', 'decode'],
        $metadata, $options);
    }
378589
protected function transfer($objectOrArray): array
	{
		$data = [];
		$errors = [];
		if (\is_object($objectOrArray))
		{
			$errors = $this->dtService->transfer($objectOrArray, $data, $this->mapper);
		}
		elseif (\is_array($objectOrArray))
		{
			foreach ($objectOrArray as $index => $itemObjectOrArray)
			{
				[$data[$index], $itemErrors] = $this->transfer($itemObjectOrArray);
				if (!empty($itemErrors))
				{
					$errors[$index] = $itemErrors;
				}
			}
		}
		else
		{
			$data = $objectOrArray;
		}
		return [$data, $errors];
	}
1180522
protected function updateResponseTransfer(AdyenApiResponseTransfer $responseTransfer, array $response): AdyenApiResponseTransfer
    {
        $apiResponseTransfer = (new AdyenApiCancelResponseTransfer())->fromArray($response, true);

        return $responseTransfer->setCancelResponse($apiResponseTransfer);
    }
262088
public function getModuleTransfersByModuleNames(array $moduleNames, ClassNodeTransfer $classNodeTransfer): array
    {
        return $this->moduleFinder->findModulesByNames(
            $moduleNames,
            $classNodeTransfer->getPathTransfer()
        );
    }
194812
public function getDataSubArray(ComputopApiRequestTransfer $computopApiRequestTransfer): array
    {
        $dataSubArray[ComputopApiConfig::PAY_ID] = $computopApiRequestTransfer->getPayId();
        $dataSubArray[ComputopApiConfig::TRANS_ID] = $computopApiRequestTransfer->getTransId();
        $dataSubArray[ComputopApiConfig::REQ_ID] = $computopApiRequestTransfer->getReqId();
        $dataSubArray[ComputopApiConfig::REF_NR] = $computopApiRequestTransfer->getRefNr();
        $dataSubArray[ComputopApiConfig::MAC] = $computopApiRequestTransfer->getMac();

        return $dataSubArray;
    }
235694
protected function validateRequestTransfer(AdyenApiRequestTransfer $adyenApiRequestTransfer): void
    {
        $adyenApiRequestTransfer->requireRefundRequest();

        $adyenApiRequestTransfer
            ->getRefundRequest()
            ->requireModificationAmount()
            ->requireMerchantAccount()
            ->requireOriginalReference();

        $adyenApiRequestTransfer
            ->getRefundRequest()
            ->getModificationAmount()
            ->requireCurrency()
            ->requireValue();
    }
702629
protected function encryptRequestData(
        QuoteTransfer $quoteTransfer,
        ComputopApiRequestTransfer $requestTransfer
    ): array {
        return $this->computopApiService->getEncryptedArray(
            $this->getDataSubArray($quoteTransfer, $requestTransfer),
            $this->config->getBlowfishPass()
        );
    }
558813
public function getDataSubArray(ComputopApiRequestTransfer $computopApiRequestTransfer): array
    {
        $dataSubArray[ComputopApiConfig::PAY_ID] = $computopApiRequestTransfer->getPayId();
        $dataSubArray[ComputopApiConfig::TRANS_ID] = $computopApiRequestTransfer->getTransId();
        $dataSubArray[ComputopApiConfig::REQ_ID] = $computopApiRequestTransfer->getReqId();
        $dataSubArray[ComputopApiConfig::REF_NR] = $computopApiRequestTransfer->getRefNr();
        $dataSubArray[ComputopApiConfig::AMOUNT] = $computopApiRequestTransfer->getAmount();
        $dataSubArray[ComputopApiConfig::CURRENCY] = $computopApiRequestTransfer->getCurrency();
        $dataSubArray[ComputopApiConfig::CAPTURE] = $computopApiRequestTransfer->getCapture();
        $dataSubArray[ComputopApiConfig::MAC] = $computopApiRequestTransfer->getMac();
        $dataSubArray[ComputopApiConfig::ORDER_DESC] = $computopApiRequestTransfer->getOrderDesc();

        return $dataSubArray;
    }
761485
protected function getQueryNames(array $methodTransferCollection, ClassNodeTransfer $classNodeTransfer): array
    {
        $queryNames = [];

        foreach ($methodTransferCollection as $methodTransfer) {
            $queryNames[] = $methodTransfer->getQueryNames();
        }

        $queryNames = array_merge(...$queryNames);
        $queryNames = array_unique($queryNames);
        $queryNames = array_filter($queryNames);

        return $this->getModuleNamesByQueryNames($queryNames, $classNodeTransfer);
    }
1335383
public function convertToResponseTransfer(ResponseInterface $response, $isSuccess = true): AdyenApiResponseTransfer
    {
        $responseBody = $this->encodingService->decodeJson($response->getBody(), true);
        $responseTransfer = new AdyenApiResponseTransfer();
        $responseTransfer->setIsSuccess($isSuccess);

        if ($isSuccess) {
            return $this->updateResponseTransfer($responseTransfer, $responseBody);
        }

        $error = (new AdyenApiErrorResponseTransfer())->fromArray($responseBody, true);
        $responseTransfer->setError($error);

        return $responseTransfer;
    }
97444
public function GetTransferConfig(\Google\Cloud\BigQuery\DataTransfer\V1\GetTransferConfigRequest $argument,
      $metadata = [], $options = []) {
        return $this->_simpleRequest('/google.cloud.bigquery.datatransfer.v1.DataTransferService/GetTransferConfig',
        $argument,
        ['\Google\Cloud\BigQuery\DataTransfer\V1\TransferConfig', 'decode'],
        $metadata, $options);
    }
903840
public function findModulesByNames(array $moduleNames, PathTransfer $pathTransfer): array
    {
        $moduleTransferCollection = [];

        foreach ($moduleNames as $moduleName) {
            $moduleTransfer = $this->findModuleByName($moduleName, $pathTransfer);

            if (!$moduleTransfer->exists()) {
                continue;
            }

            $moduleTransferCollection[] = $moduleTransfer;
        }

        return $moduleTransferCollection;
    }
544847
public function getProductListCompanyRelation(
        ProductListCompanyRelationTransfer $productListCompanyRelationTransfer
    ): ProductListCompanyRelationTransfer {
        $productListCompanyRelationTransfer->requireIdProductList();

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

        $productListCompanyRelationTransfer->setCompanyIds($companyIds);

        return $productListCompanyRelationTransfer;
    }
775393
public function getTransfered()
    {
        $base = log($this->transfered, 1024);
        $suffixes = array(
            '',
            'K',
            'M',
            'G',
            'T',
        );
        return round(pow(1024, $base - floor($base)), 2) . ' ' . $suffixes[floor($base)];
    }
388297
protected function updateResponseTransfer(AdyenApiResponseTransfer $responseTransfer, array $response): AdyenApiResponseTransfer
    {
        $apiResponseTransfer = (new AdyenApiCaptureResponseTransfer())->fromArray($response, true);

        return $responseTransfer->setCaptureResponse($apiResponseTransfer);
    }