@param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer

@return string[]
979924
protected function getAvailablePaymentMethods(QuoteTransfer $quoteTransfer): array
    {
        $score = $quoteTransfer->getConsumerScore();

        $method = static::CONFIG_METHOD_PART_GET .
            ucfirst($score) .
            static::CONFIG_METHOD_PART_AVAILABLE_PAYMENT_METHODS;

        if (method_exists($this->config, $method)) {
            return $this->config->$method();
        }

        return $this->config->getUScoreAvailablePaymentMethods();
    }
141150
public function getTranslations(ExportCommand $exportCommand)
    {
        $locales = $this->determineLocalesToImport($exportCommand);
        $domains = $this->determineDomainsToImport($exportCommand);

        $translations = [];
        /** @var Translation $translation */
        foreach ($this->translationRepository->getTranslationsByLocalesAndDomains($locales, $domains) as $translation) {
            // Sort by translation key.
            $translations[$translation->getKeyword()][$translation->getLocale()] = $translation;
        }

        return $translations;
    }
1251924
public function getTranslations($alias) {
		$translations = [];
		foreach ($this->_possible as $possible) {
			if ($this->translationExists($possible, $alias)) {
				$config = $this->getL10n($possible);
				$translations[$possible] = $config['title'];
			}
		}
		return $translations;
	}
306887
protected function prepareTranslations($translations) {
        $return = [];

        foreach($translations as $translation)
            $return[$translation['locale']][!is_null($translation['group']) ? $translation['group']. '.' . $translation['key'] : ''. $translation['key']] = $translation['value'];

       return $return;
    }
38874
private function getQuotePaymentInfoInstance($quote)
    {
        return $this->quotePaymentInfoInstance ?:
            $this->quotePaymentInfoInstance = $quote->getPayment()->getMethodInstance()->getInfoInstance();
    }
732018
public function addToDataClass(Request $request, AbstractTransfer $quoteTransfer): QuoteTransfer
    {
        return $this->getFactory()->createPayoneHandler()->addPaymentToQuote($request, $quoteTransfer);
    }
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);
    }
214155
public function getOptions(AbstractTransfer $quoteTransfer)
    {
        return [
            OnlineTransferSubForm::OPTION_BANK_COUNTRIES => $this->getBankCountries(),
            OnlineTransferSubForm::OPTION_BANK_GROUP_TYPES => $this->getBankGroupTypes(),
        ];
    }
1013710
public function getProductListById(ProductListTransfer $productListTransfer): ProductListTransfer
    {
        $productListTransfer = parent::getProductListById($productListTransfer);

        $productListTransfer = $this->productListTransferExpander->expand($productListTransfer);

        return $productListTransfer;
    }
333008
public function buildRequestArray(AdyenApiRequestTransfer $adyenApiRequestTransfer): array
    {
        $this->validateRequestTransfer($adyenApiRequestTransfer);

        return $adyenApiRequestTransfer->getPaymentDetailsRequest()->toArray(true, true);
    }
889347
protected function hydrateQuoteWithAddresses(
        QuoteTransfer $quoteTransfer,
        PayonePaypalExpressCheckoutGenericPaymentResponseTransfer $details
    ) {
        $address = new AddressTransfer();

        if ($this->customerClient->isLoggedIn()) {
            $address->setEmail($quoteTransfer->getCustomer()->getEmail());
        } else {
            $address->setEmail($details->getEmail());
        }

        $address->setFirstName($details->getShippingFirstName());
        $address->setLastName($details->getShippingLastName());
        $address->setCompany($details->getShippingCompany());
        $address->setAddress1($details->getShippingStreet());
        $address->setAddress2($details->getShippingAddressAdition());
        $address->setCity($details->getShippingCity());
        $address->setState($details->getShippingState());
        $address->setIso2Code($details->getShippingCountry());
        $address->setZipCode($details->getShippingZip());
        $quoteTransfer->setBillingAddress($address);
        $quoteTransfer->setShippingAddress($address);
        $quoteTransfer->setBillingSameAsShipping(true);

        return $quoteTransfer;
    }
1179024
public function newAction(StockTransfer $stockTransfer)
    {
        $stocktransferitem = new StockTransferItem();
        $stocktransferitem->setStockTransfer($stockTransfer);
        $form = $this->createForm(new StockTransferItemType(), $stocktransferitem);

        return array(
            'stocktransferitem' => $stocktransferitem,
            'form' => $form->createView(),
        );
    }
1066304
public function saveOrder(QuoteTransfer $quoteTransfer, CheckoutResponseTransfer $checkoutResponse)
    {
        Propel::getConnection()->beginTransaction();

        $paymentTransfer = $quoteTransfer->getPayment()->getPayone();
        $paymentTransfer->setFkSalesOrder($checkoutResponse->getSaveOrder()->getIdSalesOrder());
        $payment = $this->savePayment($paymentTransfer);

        $paymentDetailTransfer = $paymentTransfer->getPaymentDetail();
        $this->savePaymentDetail($payment, $paymentDetailTransfer);

        Propel::getConnection()->commit();
    }
458936
public function mapAddressCheck(QuoteTransfer $quoteTransfer): ContainerInterface
    {
        /** @var \SprykerEco\Zed\Payone\Business\Api\Request\Container\AddressCheckContainer $container */
        $container = $this->riskCheckFactory->createAddressCheckContainer();
        $container = $this->mapDefaultContainerParams($container);

        $container->setFirstName($quoteTransfer->getBillingAddress()->getFirstName());
        $container->setLastName($quoteTransfer->getBillingAddress()->getLastName());
        $container->setCompany($quoteTransfer->getBillingAddress()->getCompany());
        $container->setCountry($quoteTransfer->getBillingAddress()->getIso2Code());
        $container->setStreetName($quoteTransfer->getBillingAddress()->getAddress1());
        $container->setStreetNumber($quoteTransfer->getBillingAddress()->getAddress2());
        $container->setZip($quoteTransfer->getBillingAddress()->getZipCode());
        $container->setCity($quoteTransfer->getBillingAddress()->getCity());
        $container->setAddressCheckType($this->payoneConfig->getAddressCheckType());

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

        return $productListTransfer;
    }
1214514
public function expandCustomerTransferWithProductListIds(CustomerTransfer $customerTransfer): CustomerTransfer
    {
        if ($this->hasCustomerTransferProductLists($customerTransfer)) {
            return $customerTransfer;
        }

        $companyUserTransfer = $customerTransfer->getCompanyUserTransfer();

        if ($companyUserTransfer === null || $companyUserTransfer->getCompany() === null) {
            return $customerTransfer;
        }

        $productListCollectionTransfer = $this->productListReader->getProductListCollectionByIdCompanyId(
            $companyUserTransfer->getCompany()
        );

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

        return $customerTransfer;
    }
1139680
public function generateEncryptedMac(ComputopApiRequestTransfer $requestTransfer): string
    {
        $value = $this->getFactory()->createComputopApiMapper()->getPlaintextMac($requestTransfer);

        return $this->getHashValue($value);
    }