/**
  * 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;
     }
     \Balanced\Resource::init();
     \Balanced\APIKey::init();
     \Balanced\Marketplace::init();
     \Balanced\Credit::init();
     \Balanced\Debit::init();
     \Balanced\Refund::init();
     \Balanced\Reversal::init();
     \Balanced\Card::init();
     \Balanced\BankAccount::init();
     \Balanced\BankAccountVerification::init();
     \Balanced\CardHold::init();
     \Balanced\Callback::init();
     \Balanced\Event::init();
     \Balanced\Customer::init();
     \Balanced\Order::init();
     \Balanced\Dispute::init();
     self::$initialized = true;
 }
 /**
  * @param $uri
  * @return \Balanced\Order
  */
 public function getOrder($uri)
 {
     return \Balanced\Order::get($uri);
 }
 function testOrderUpdate()
 {
     $merchant = self::_createPersonMerchant();
     $order = $merchant->orders->create();
     $this->assertNotNull($order->href);
     $order->meta = array('test' => '123');
     $order->description = 'hello world';
     $order->save();
     $order2 = \Balanced\Order::get($order->href);
     $this->assertEquals($order2->meta->test, '123');
     $this->assertEquals($order2->description, 'hello world');
 }