2018-10-16 13:42:43 +02:00
|
|
|
<?php
|
2019-05-11 05:32:07 +02:00
|
|
|
/**
|
2020-09-06 11:38:10 +02:00
|
|
|
* Invoice Ninja (https://invoiceninja.com).
|
2019-05-11 05:32:07 +02:00
|
|
|
*
|
|
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
|
|
*
|
2020-01-07 01:13:47 +01:00
|
|
|
* @copyright Copyright (c) 2020. Invoice Ninja LLC (https://invoiceninja.com)
|
2019-05-11 05:32:07 +02:00
|
|
|
*
|
|
|
|
* @license https://opensource.org/licenses/AAL
|
|
|
|
*/
|
2018-10-16 13:42:43 +02:00
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class Bank.
|
|
|
|
*/
|
2019-09-12 03:28:41 +02:00
|
|
|
class Bank extends StaticModel
|
2018-10-16 13:42:43 +02:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var bool
|
|
|
|
*/
|
|
|
|
public $timestamps = false;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param $finance
|
|
|
|
*
|
|
|
|
* @return \App\Libraries\Bank
|
|
|
|
*/
|
|
|
|
public function getOFXBank($finance)
|
|
|
|
{
|
|
|
|
$config = json_decode($this->config);
|
|
|
|
|
|
|
|
return new \App\Libraries\Bank($finance, $config->fid, $config->url, $config->org);
|
|
|
|
}
|
2020-05-06 13:49:42 +02:00
|
|
|
|
|
|
|
public function getEntityType()
|
|
|
|
{
|
2020-09-06 11:38:10 +02:00
|
|
|
return self::class;
|
2020-05-06 13:49:42 +02:00
|
|
|
}
|
2018-10-16 13:42:43 +02:00
|
|
|
}
|