balances->getAccount((int)$this->session->getCustomerId(), (int)$this->stores->getWebsite()->getId()); } public function getTier(): array { $account = $this->getAccount(); return $this->tiers->resolveEffective((string)$account['tier_code'], (float)$account['lifetime_spend_base'], (int)$this->stores->getStore()->getId()); } public function getTransactions(): array { return $this->balances->getTransactions((int)$this->session->getCustomerId(), 100); } public function getActivityName(string $type): string { return (string)$this->config->earningRule($type, (int)$this->stores->getStore()->getId())['name']; } }