public function getCurrencyCode() { if ($this->currency) { return $this->currency->code; } if (!$this->account) { $this->load('account'); } return $this->account->currency ? $this->account->currency->code : 'USD'; }