public function getPlanRecords(PlanRecordQuery $query = null)
    {
        $url = $this->accountsEndpoint . 'records/plan';
        $options = [];

        if ($query) {
            $options['query'] = $query->getParams();
        }

        return PlanRecord::getCollection($url, 0, $options, $this->connector->getClient());
    }