Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/FioApi/Transaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ class Transaction
/** @var string */
protected $senderBankName;

/** @var string */
protected $senderName;

/** @var int */
protected $constantSymbol;

Expand Down Expand Up @@ -62,6 +65,7 @@ protected function __construct(
$senderAccountNumber,
$senderBankCode,
$senderBankName,
$senderName,
$constantSymbol,
$variableSymbol,
$specificSymbol,
Expand All @@ -80,6 +84,7 @@ protected function __construct(
$this->senderAccountNumber = $senderAccountNumber;
$this->senderBankCode = $senderBankCode;
$this->senderBankName = $senderBankName;
$this->senderName = $senderName;
$this->constantSymbol = $constantSymbol;
$this->variableSymbol = $variableSymbol;
$this->specificSymbol = $specificSymbol;
Expand All @@ -106,6 +111,7 @@ public static function create(\stdClass $data)
!empty($data->column2) ? $data->column2->value : null, //Protiúčet
!empty($data->column3) ? $data->column3->value : null, //Kód banky
!empty($data->column12) ? $data->column12->value : null, //Název banky
!empty($data->column10) ? $data->column10->value : null, //Název protiuctu
!empty($data->column4) ? $data->column4->value : null, //KS
!empty($data->column5) ? $data->column5->value : null, //VS
!empty($data->column6) ? $data->column6->value : null, //SS
Expand Down Expand Up @@ -175,6 +181,14 @@ public function getSenderBankName()
return $this->senderBankName;
}

/**
* @return string
*/
public function getSenderName()
{
return $this->senderName;
}

/**
* @return int
*/
Expand Down
2 changes: 1 addition & 1 deletion src/FioApi/UrlBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

class UrlBuilder
{
const BASE_URL = 'https://www.fio.cz/ib_api/rest/';
const BASE_URL = 'https://fioapi.fio.cz/v1/rest/';

/**
* @var string
Expand Down
2 changes: 1 addition & 1 deletion tests/FioApi/UrlBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function testBuildPeriodsUrlReturnValidUrl()
{
$urlBuilder = new UrlBuilder('token1');
$this->assertEquals(
'https://www.fio.cz/ib_api/rest/periods/token1/2015-03-25/2015-03-31/transactions.json',
'https://fioapi.fio.cz/v1/rest/periods/token1/2015-03-25/2015-03-31/transactions.json',
$urlBuilder->buildPeriodsUrl(new \DateTime('2015-03-25'), new \DateTime('2015-03-31'))
);
}
Expand Down