Skip to content
This repository was archived by the owner on Jul 29, 2020. It is now read-only.

Commit 39443c9

Browse files
authored
Merge pull request #18 from martinvenus/master
Add the filter param to the automatickeParovani method
2 parents f602ee5 + 9506900 commit 39443c9

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/FlexiPeeHP/Banka.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,20 @@ public function stahnoutVypisyOnline()
3838
}
3939

4040
/**
41-
* Start invoice authomatic matching process ( it take longer time )
41+
* Start invoice automatic matching process ( it takes longer time )
4242
* Spustí proces automatického párování plateb. ( trvá delší dobu )
4343
*
4444
* @link https://demo.flexibee.eu/devdoc/parovani-plateb Interní dokumentace
4545
*
4646
* @param boolean $advanced Use Advanced matching method ?
47+
* @param string $filter Filter bank records before pairing ?
4748
*
4849
* @return boolean
4950
*/
50-
public function automatickeParovani($advanced = false)
51+
public function automatickeParovani($advanced = false, $filter = null)
5152
{
52-
$this->performRequest('automaticke-parovani'.($advanced ? '-pokrocile' : '' ), 'PUT');
53+
$filterUrl = $filter === null ? "" : rtrim($filter, '/') . '/';
54+
$this->performRequest($filterUrl . 'automaticke-parovani'.($advanced ? '-pokrocile' : '' ), 'PUT');
5355
return $this->lastResponseCode == 200;
5456
}
5557
}

0 commit comments

Comments
 (0)