/**
  * 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 underwrite the merchant on
  * @return \Finix\Resources\Merchant
  * @throws \Finix\Hal\Exception\LinkNotUniqueException
  * @throws \Finix\Hal\Exception\RelNotFoundException
  */
 public function provisionMerchantOn(array $args)
 {
     $merchant = new Merchant(["processor" => $args['processor']]);
     return $merchant->create($this->resource->getLink("underwriting")->getHref());
 }