Get custom required parameters with values per transaction
@param string $type
@return array|bool
510335
public static function getCustomRequiredParameters($type)
    {
        $method = 'for' . Common::snakeCaseToCamelCase($type);

        if (!method_exists(CustomRequiredParameters::class, $method)) {
            return false;
        }

        return CustomRequiredParameters::$method();
    }
779059
public function getValue($type)
    {
        if (!isset($this->valuesByType[$type]) || ($this->valuesByType[$type] === null)) {
            return new Shopgate_Model_Redirect_DeeplinkSuffixValueUnset();
        }

        if ($this->valuesByType[$type] === false) {
            return new Shopgate_Model_Redirect_DeeplinkSuffixValueDisabled();
        }

        return $this->valuesByType[$type];
    }
877597
public static function canRefund($type)
    {
        $transactionTypesList = [
            self::CAPTURE,
            self::CASHU,
            self::INIT_RECURRING_SALE,
            self::INIT_RECURRING_SALE_3D,
            self::INPAY,
            self::P24,
            self::PAYPAL_EXPRESS,
            self::PPRO,
            self::SALE,
            self::SALE_3D,
            self::SOFORT,
            self::TRUSTLY_SALE,
            self::FASHIONCHEQUE,
            self::KLARNA_CAPTURE,
            self::ZIMPLER,
            self::ENTERCASH,
            self::INSTANT_TRANSFER,
            self::PAYU,
            self::BITPAY_SALE,
            self::NEOSURF,
            self::SAFETYPAY
        ];

        return in_array(strtolower($type), $transactionTypesList);
    }
1055617
public function getExampleByType($type)
    {
        return isset($this->bodyList[$type]['example']) ? $this->bodyList[$type]['example'] : null;
    }
427275
private function getExpiring($type, $subtype)
    {
        if (!isset($this->expiring[$type][$subtype])) {
            throw new \InvalidArgumentException("Invalid type or parameter given.");
        }

        return $this->expiring[$type][$subtype];
    }
1192257
public static function isValidTransactionType($type)
    {
        $transactionTypes = \Genesis\Utils\Common::getClassConstants(__CLASS__);

        return in_array(strtolower($type), $transactionTypes);
    }
67843
public static function getInstance($type = 'default') {
		static $aclm = [];
		if (!isset($aclm[ $type ])) {
			$manager = new AclResourceManager();
			@fire('rbac\init' . ucfirst($type) . 'Manager', $manager);
			$aclm[ $type ] = $manager;
		}

		return $aclm[ $type ];
	}
1002222
protected function validateNativeCustomParameters($transactionType, $txnCustomRequiredParams)
    {
        foreach ($txnCustomRequiredParams as $customRequiredParam => $customRequiredParamValues) {
            if (property_exists($this, $customRequiredParam)) {
                $this->validateRequiredParameter(
                    $transactionType,
                    $customRequiredParam,
                    $customRequiredParamValues,
                    [ $customRequiredParam => $this->{$customRequiredParam} ]
                );

                unset($txnCustomRequiredParams[$customRequiredParam]);
            }
        }

        return $txnCustomRequiredParams;
    }
773918
public function getCert(string $type): array
    {
        $type = mb_strtolower($type);
        $this->throwIfNotInArray($type, self::CERTS);
        return $this->_certs[$type] ?? [];
    }
1148398
private function getFormat(Type $type): string
    {
        return $type->hasParam(0) ? $type->getParam(0) : $this->defaultFormat;
    }
293958
public static function isRefund($type)
    {
        $transactionTypesList = [
            self::REFUND,
            self::SDD_REFUND,
            self::KLARNA_REFUND,
            self::BITPAY_REFUND
        ];

        return in_array(strtolower($type), $transactionTypesList);
    }
996465
public static function getInstance($type)
    {
        self::checkType($type);

        if (!isset(self::$instances[$type])) {
            self::$instances[$type] = new \Tx_Oelib_Session($type);
        }

        return self::$instances[$type];
    }
297300
public function get(string $type): array
    {
        if (!isset($this->values[$type])) {
            return [];
        }

        return $this->values[$type];
    }
844478
public function loadItemType($type)
    {
        $signature = md5($type);
        if (isset($this->_buttons[$signature])) {
            return $this->_buttons[$signature];
        }

        list($plugin, $name) = pluginSplit($type);
        $alias = Slug::filter($name, '_');
        $aliasClass = Inflector::classify($alias);

        $className = $this->_getItemClassName($plugin, $aliasClass);

        if (!$className) {
            return false;
        }

        $this->_buttons[$signature] = new $className($this);
        return $this->_buttons[$signature];
    }
564294
private function getAlias( $type ) {
		if ($this->fetchType) {
			$type = $this->fetchType;
			$this->fetchType = null;
		}
		return $type;
	}
651344
public function getMessages($type)
    {
        return $this->hasMessages($type)
            ? $_SESSION[$this->alias][$type]
            : null;
    }
241038
public function &get($type) {
        $list = array();

        foreach ($this->args as &$d) {
            if ($this->_isType($d, $type)) {
                $list[] = $d;
            }
        }

        return $list;
    }