public function getPaymentsToProcess($daysBack = 1, $direction = 'in')
    {
        $result                                  = [];
        $this->banker->defaultUrlParams['order'] = 'datVyst@A';
        $payments                                = $this->banker->getColumnsFromFlexibee([
            'id',
            'kod',
            'varSym',
            'specSym',
            'sumCelkem',
            'buc',
            'smerKod',
            'mena',
            'datVyst'],
            ["sparovano eq false AND typPohybuK eq '".(($direction == 'out') ? 'typPohybu.vydej'
                : 'typPohybu.prijem' )."' AND storno eq false ".
            (is_null($daysBack) ? '' :
            "AND datVyst eq '".\FlexiPeeHP\FlexiBeeRW::timestampToFlexiDate(mktime(0,
                    0, 0, date("m"), date("d") - $daysBack, date("Y")))."' ")
            ], 'id');

        if ($this->banker->lastResponseCode == 200) {
            if (empty($payments)) {
                $result = [];
            } else {
                $result = $payments;
            }
        }
        return $result;
    }