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

@return array
160386
public function getDataSubArray(ComputopApiRequestTransfer $computopApiRequestTransfer): array
    {
        $dataSubArray = parent::getDataSubArray($computopApiRequestTransfer);
        $dataSubArray[ComputopApiConfig::DATE] = $computopApiRequestTransfer->getDate();

        $dataSubArray[ComputopApiConfig::REASON] = ComputopApiConfig::REASON_FULL_CANCELL;

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

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

        $adyenApiRequestTransfer
            ->getCaptureRequest()
            ->getModificationAmount()
            ->requireCurrency()
            ->requireValue();
    }
154492
private function input(ServerRequestInterface $request): array
    {
        if (! is_null($this->parser)) {

            $input = ($this->parser)($request);

            if (is_array($input)) {

                return $input;

            }

            throw new InputTypeException($input);

        }

        return array_merge(
            $request->getAttributes(),
            $request->getQueryParams(),
            $request->getParsedBody(),
            $request->getUploadedFiles()
        );
    }
483462
public function buildRequestArray(AdyenApiRequestTransfer $adyenApiRequestTransfer): array
    {
        $this->validateRequestTransfer($adyenApiRequestTransfer);

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

        return $this->removeRedundantParams($requestDataArray);
    }
382646
public static function get(
        int $transferwiseQuoteId,
        int $transferwiseTransferId,
        array $customHeaders = []
    ): BunqResponseTransferwiseTransfer {
        $apiClient = new ApiClient(static::getApiContext());
        $responseRaw = $apiClient->get(
            vsprintf(
                self::ENDPOINT_URL_READ,
                [static::determineUserId(), $transferwiseQuoteId, $transferwiseTransferId]
            ),
            [],
            $customHeaders
        );

        return BunqResponseTransferwiseTransfer::castFromBunqResponse(
            static::fromJson($responseRaw, self::OBJECT_TYPE_GET)
        );
    }
516983
protected function getComputopPaymentTransfer(QuoteTransfer $quoteTransfer, ComputopApiHeaderPaymentTransfer $computopApiHeaderPayment)
    {
        $computopApiPaymentTransfer = $this->createPaymentTransfer();
        $computopApiPaymentTransfer->fromArray($computopApiHeaderPayment->toArray(), true);
        $computopApiPaymentTransfer->setMerchantId($this->config->getMerchantId());
        $computopApiPaymentTransfer->setCurrency($this->storeFacade->getCurrentStore()->getSelectedCurrencyIsoCode());

        $computopApiPaymentTransfer->setMac(
            $this->computopApiService->generateEncryptedMac($computopApiPaymentTransfer)
        );

        $computopApiPaymentTransfer->setReqId($this->computopApiService->generateReqIdFromQuoteTransfer($quoteTransfer));
        $computopApiPaymentTransfer->setRefNr($quoteTransfer->getOrderReference());

        return $computopApiPaymentTransfer;
    }
564396
private function fromFlattenedSerializationRecipientToSerialization($input)
    {
        $recipient = [];
        foreach (['header', 'encrypted_key'] as $key) {
            if (array_key_exists($key, $input)) {
                $recipient[$key] = $input[$key];
            }
        }
        $recipients = [
            'ciphertext' => $input['ciphertext'],
            'recipients' => [$recipient],
        ];
        foreach (['protected', 'unprotected', 'iv', 'aad', 'tag'] as $key) {
            if (array_key_exists($key, $input)) {
                $recipients[$key] = $input[$key];
            }
        }

        return $recipients;
    }
90157
protected function isCredLast(ComputopApiInquireResponseTransfer $computopApiResponseTransfer): bool
    {
        return $computopApiResponseTransfer->getAmountAuth() !== static::EMPTY_AMOUNT &&
            $computopApiResponseTransfer->getAmountCap() !== static::EMPTY_AMOUNT &&
            $computopApiResponseTransfer->getAmountCred() !== static::EMPTY_AMOUNT;
    }
885738
protected function findRelationTableTransfer(string $relationTableName, array $tableTransfers): ?PropelSchemaTableTransfer
    {
        if ($tableTransfers === []) {
            return null;
        }

        foreach ($tableTransfers as $tableTransfer) {
            $phpName = $tableTransfer->getPhpName();

            if ($relationTableName === $phpName) {
                return $tableTransfer;
            }

            $relations = $tableTransfer->getRelations();

            foreach ($relations as $relation) {
                $relationPhpName = $relation->getPhpName();
                $referencePhpName = $relation->getRefPhpName();

                if ($relationPhpName === $relationTableName) {
                    return $tableTransfers[$relation->getTableName()];
                }

                if ($referencePhpName === $relationTableName) {
                    return $tableTransfer;
                }
            }
        }

        return null;
    }
379504
public function getOptions(AbstractTransfer $quoteTransfer)
    {
        return [
            IdealOnlineTransferSubForm::OPTION_BANK_COUNTRIES => $this->getBankCountries(),
            IdealOnlineTransferSubForm::OPTION_BANK_GROUP_TYPES => $this->getBankGroupTypes(),
        ];
    }
1371561
public function importShoppingListItems(?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer = null): DataImporterReportTransfer
    {
        return $this->getFactory()
            ->getShoppingListItemDataImporter()
            ->import($dataImporterConfigurationTransfer);
    }
626491
public function getDataSubArray(ComputopApiRequestTransfer $computopApiRequestTransfer): array
    {
        $dataSubArray[ComputopApiConstants::PAY_ID] = $computopApiRequestTransfer->getPayId();
        $dataSubArray[ComputopApiConstants::TRANS_ID] = $computopApiRequestTransfer->getTransId();
        $dataSubArray[ComputopApiConstants::REQ_ID] = $computopApiRequestTransfer->getReqId();
        $dataSubArray[ComputopApiConstants::REF_NR] = $computopApiRequestTransfer->getRefNr();
        $dataSubArray[ComputopApiConstants::AMOUNT] = $computopApiRequestTransfer->getAmount();
        $dataSubArray[ComputopApiConstants::CURRENCY] = $computopApiRequestTransfer->getCurrency();
        $dataSubArray[ComputopApiConstants::MAC] = $computopApiRequestTransfer->getMac();

        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);
    }
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(),
        ];
    }
155353
public function getOptions(AbstractTransfer $quoteTransfer)
    {
        return [
            DirectDebitSubForm::OPTION_BANK_COUNTRIES => $this->getBankCountries(),
            DirectDebitSubForm::OPTION_BANK_ACCOUNT_MODE => $this->getBankAccountModes(),
        ];
    }
774060
protected function getResponseTransfer(array $decryptedArray): ComputopApiEasyCreditStatusResponseTransfer
    {
        $computopApiResponseTransfer = new ComputopApiEasyCreditStatusResponseTransfer();
        $computopApiResponseTransfer->setHeader(
            $this->computopApiService->extractResponseHeader($decryptedArray, $this->config->getReverseMethodName())
        );
        $computopApiResponseTransfer->fromArray($decryptedArray, true);

        //easy credit index mistake will be fixed in future
        if (isset($decryptedArray[static::DECISION_INDEX])) {
            $computopApiResponseTransfer->setDecision($decryptedArray[static::DECISION_INDEX]);
        }

        return $computopApiResponseTransfer;
    }
1151082
protected function validateRequestTransfer(AdyenApiRequestTransfer $adyenApiRequestTransfer): void
    {
        $adyenApiRequestTransfer->requireTechnicalCancelRequest();

        $adyenApiRequestTransfer
            ->getTechnicalCancelRequest()
            ->requireMerchantAccount()
            ->requireOriginalReference();
    }