/** * Initializes resources (i.e. registers them with Resource::_registry). Note * that if you add a Resource then you must initialize it here. * * @internal */ private static function initializeResources() { if (self::$initialized) { return; } Resource::init(); Resources\Application::init(); Resources\Identity::init(); Resources\Processor::init(); Resources\Merchant::init(); Resources\PaymentInstrument::init(); Resources\Authorization::init(); Resources\Transfer::init(); Resources\Reversal::init(); Resources\Dispute::init(); Resources\Webhook::init(); Resources\Settlement::init(); Resources\Verification::init(); Resources\Evidence::init(); self::$initialized = true; }
/** * @param string $processor the processor to settle the funds out to * @param string $currency the currency for the settlment * @return \Finix\Resources\Settlement * @throws \Finix\Hal\Exception\LinkNotUniqueException * @throws \Finix\Hal\Exception\RelNotFoundException */ public function verifyOn(array $args) { $verification = new Verification(["processor" => $args['processor']]); // TODO shouldn't this link should not be construcuted, update when identity resource is fixed return $verification->create($this->resource->getLink("verifications")->getHref()); }