@param \Generated\Shared\Transfer\ComputopApiRequestTransfer $computopApiRequestTransfer

@return array
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;
    }
1117045
public function performReverseRequest(
        OrderTransfer $orderTransfer,
        ComputopApiHeaderPaymentTransfer $computopApiHeaderPayment
    ): ComputopApiReverseResponseTransfer {
        return $this
            ->getFactory()
            ->createReversePaymentRequest()
            ->request($orderTransfer, $computopApiHeaderPayment);
    }
994717
public function getOptions(AbstractTransfer $quoteTransfer)
    {
        return [
            CreditCardSubForm::OPTION_CARD_EXPIRES_CHOICES_MONTH => $this->getMonthChoices(),
            CreditCardSubForm::OPTION_CARD_EXPIRES_CHOICES_YEAR => $this->getYearChoices(),
            CreditCardSubForm::OPTION_CARD_TYPES => $this->getCardTypes(),
        ];
    }
53665
public function request(
        OrderTransfer $orderTransfer,
        ComputopApiHeaderPaymentTransfer $computopApiHeaderPayment
    ): TransferInterface {
        $requestData = $this
            ->getMethodMapper($this->getPaymentMethodFromOrder($orderTransfer))
            ->buildRequest($orderTransfer, $computopApiHeaderPayment);

        return $this->sendRequest($requestData);
    }
47225
public function queryTransfers($partner_trade_no)
    {
        $pay = new Transfers($this->config->get());
        return $pay->query($partner_trade_no);
    }
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)];
    }
540124
public function performRefundRequest(
        OrderTransfer $orderTransfer,
        ComputopApiHeaderPaymentTransfer $computopApiHeaderPayment
    ): ComputopApiRefundResponseTransfer {
        return $this
            ->getFactory()
            ->createRefundPaymentRequest()
            ->request($orderTransfer, $computopApiHeaderPayment);
    }
1119098
protected function getPaymentTransactionStructure()
    {
        return [
            'usage'        => $this->usage,
            'remote_ip'    => $this->remote_ip,
            'amount'       => $this->transformAmount($this->amount, $this->currency),
            'currency'     => $this->currency,
            'reference_id' => $this->reference_id
        ];
    }
960057
public function request(
        QuoteTransfer $quoteTransfer,
        ComputopApiHeaderPaymentTransfer $computopApiHeaderPayment
    ): TransferInterface {
        $requestData = $this
            ->mapper
            ->buildRequest($quoteTransfer, $computopApiHeaderPayment);

        return $this->sendRequest($requestData);
    }
63558
protected function getModuleNames(array $methodTransferCollection, ClassNodeTransfer $classNodeTransfer): array
    {
        $moduleNames = [];

        $parentModuleName = $classNodeTransfer->getClassModuleName();

        $queryModuleNames = $this->getQueryNames($methodTransferCollection, $classNodeTransfer);

        foreach ($methodTransferCollection as $methodTransfer) {
            $moduleNames[] = $methodTransfer->getRelationNames();
            $moduleNames[] = $methodTransfer->getDeclaredDependentModuleNames();

            $moduleNames[] = str_replace(
                ['get', 'create', 'Spy', 'Pyz', 'Query'],
                '',
                $methodTransfer->getQueryNames()
            );
        }

        $moduleNames = array_merge($queryModuleNames, ...$moduleNames);
        $moduleNames[] = $parentModuleName;

        $moduleNames = array_unique($moduleNames);

        return array_filter($moduleNames);
    }
884386
protected function getBrandIds(BrandCollectionTransfer $brandCollectionTransfer): array
    {
        $ids = [];
        foreach ($brandCollectionTransfer->getBrands() as $brandTransfer) {
            $ids[] = $brandTransfer->getIdBrand();
        }
        return $ids;
    }
217094
public function getList(Pagination $pagination = null, Filters $filters = null, $qParam = '')
    {
        $transfersList = new TransfersList($this->moip);

        return $transfersList->get($pagination, $filters, $qParam);
    }
343455
public function addResourceRelationships(array $resources, RestRequestInterface $restRequest): array
    {
        foreach ($resources as $resource) {
            /**
             * @var \Generated\Shared\Transfer\CompanyUserTransfer|null $payload
             */
            $payload = $resource->getPayload();

            if ($payload === null || !($payload instanceof CompanyUserTransfer)) {
                continue;
            }

            $companyTransfer = $payload->getCompany();

            if ($companyTransfer === null) {
                continue;
            }

            $restCompanyAttributesTransfer = $this->companiesMapper
                ->mapCompanyTransferToRestCompaniesResponseAttributesTransfer(
                    $companyTransfer,
                    new RestCompaniesResponseAttributesTransfer()
                );

            $companyResource = $this->restResourceBuilder->createRestResource(
                CompaniesRestApiConfig::RESOURCE_COMPANIES,
                $companyTransfer->getUuid(),
                $restCompanyAttributesTransfer
            );

            $resource->addRelationship($companyResource);
        }
        return $resources;
    }
1334723
protected function saveProductListCompanyRelation(
        ProductListTransfer $productListTransfer,
        ProductListCompanyRelationTransfer $productListCompanyRelationTransfer
    ): ProductListTransfer {
        $productListCompanyRelationTransfer->setIdProductList($productListTransfer->getIdProductList());

        $productListCompanyRelationTransfer = $this->getFacade()
            ->saveProductListCompanyRelation($productListCompanyRelationTransfer);

        $productListTransfer->setProductListCompanyRelation($productListCompanyRelationTransfer);

        return $productListTransfer;
    }
147942
public function filter(RabbitMqExchangeCollectionTransfer $rabbitMqExchangeCollectionTransfer)
    {
        $filteredRabbitMqExchangeCollectionTransfer = new RabbitMqExchangeCollectionTransfer();

        foreach ($rabbitMqExchangeCollectionTransfer->getRabbitMqExchanges() as $rabbitMqExchangeTransfer) {
            if (!$this->isBlacklisted($rabbitMqExchangeTransfer)) {
                $filteredRabbitMqExchangeCollectionTransfer->addRabbitMqExchange($rabbitMqExchangeTransfer);
            }
        }

        return $filteredRabbitMqExchangeCollectionTransfer;
    }
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];
	}
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);
    }