/**
  * @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 createSettlement(array $args)
 {
     // TODO passing identity field by default bc it's redudant, users shouldn't need to pass this. remove once bug is fixed
     $settlement = new Settlement(["processor" => $args['processor'], "currency" => $args['currency'], "identity" => $this->resource->getState()["id"]]);
     // TODO shouldn't this link should not be construcuted, update when identity resource is fixed
     return $settlement->create($this->resource->getLink("self")->getHref() . "/settlements");
 }
 /**
  * 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;
 }