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;
    }
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;
    }
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 ; }
Get unmatched payments within given days and direction

@param int    $daysBack Maximum age of payment
@param string $direction Incoming or outcoming payents in|out

@return array
Get unmatched payments within given days and direction