1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58:
<?php
/**
* FlexiPeeHP - Bank Class.
* Objekt Banky.
*
* @author Vítězslav Dvořák <vitex@arachne.cz>
* @copyright (C) 2015-2017 Spoje.Net
*/
namespace FlexiPeeHP;
/**
* Banka
*
* @link https://demo.flexibee.eu/c/demo/banka/properties Vlastnosti evidence
*/
class Banka extends FlexiBeeRW
{
use Stitky;
use Firma;
/**
* Evidence užitá objektem.
*
* @var string
*/
public $evidence = 'banka';
/**
* Stáhne bankovní výpisy ( trvá delší dobu )
*
* @return boolean
*/
public function stahnoutVypisyOnline()
{
$this->performRequest('nacteni-vypisu-online.json', 'PUT', 'txt');
return $this->lastResponseCode == 200;
}
/**
* Start invoice automatic matching process ( it takes longer time )
* Spustí proces automatického párování plateb. ( trvá delší dobu )
*
* @link https://demo.flexibee.eu/devdoc/parovani-plateb Interní dokumentace
*
* @param boolean $advanced Use Advanced matching method ?
* @param string $filter Filter bank records before pairing ?
*
* @return boolean
*/
public function automatickeParovani($advanced = false, $filter = null)
{
$filterUrl = $filter === null ? "" : rtrim($filter, '/') . '/';
$this->performRequest($filterUrl . 'automaticke-parovani'.($advanced ? '-pokrocile' : '' ), 'PUT');
return $this->lastResponseCode == 200;
}
}