. */ declare(strict_types=1); namespace FireflyIII\Services\Ynab\Request; use Log; /** * Class GetTransactionsRequest * @codeCoverageIgnore */ class GetTransactionsRequest extends YnabRequest { /** @var string */ public $accountId; /** @var array */ public $accounts; /** @var string */ public $budgetId; /** @var array */ public $transactions; /** * */ public function call(): void { Log::debug('Now in GetTransactionsRequest::call()'); $uri = $this->api . sprintf('/budgets/%s/accounts/%s/transactions', $this->budgetId, $this->accountId); Log::debug(sprintf('URI is %s', $uri)); $result = $this->authenticatedGetRequest($uri, []); //Log::debug('Raw GetTransactionsRequest result', $result); // expect data in [data][transactions] $this->transactions = $result['data']['transactions'] ?? []; } }