PHP Class App\services\BankAccountService

Inheritance: extends BaseService
Mostrar archivo Open project: hillelcoren/invoice-ninja

Protected Properties

Property Type Description
$bankAccountRepo App\Ninja\Repositories\BankAccountRepository
$datatableService DatatableService
$expenseRepo App\Ninja\Repositories\ExpenseRepository
$vendorRepo App\Ninja\Repositories\VendorRepository

Public Methods

Method Description
__construct ( BankAccountRepository $bankAccountRepo, ExpenseRepository $expenseRepo, VendorRepository $vendorRepo, DatatableService $datatableService ) BankAccountService constructor.
getDatatable ( $accountId )
importExpenses ( $bankId, $input )
loadBankAccounts ( $bankId, $username, $password, boolean $includeTransactions = true ) : array | boolean
parseOFX ( $data ) : mixed

Protected Methods

Method Description
getRepo ( ) : BankAccountRepository

Private Methods

Method Description
createVendorMap ( ) : array
determineInfoField ( $value )
getExpenses ( null $bankId = null ) : array
parseBankAccount ( $account, $bankAccounts, $expenses, $includeTransactions, $vendorMap ) : boolean | stdClas\stdClass
parseTransactions ( $account, $data, $expenses, $vendorMap ) : mixed
prepareValue ( $value ) : string

Method Details

__construct() public method

BankAccountService constructor.
public __construct ( BankAccountRepository $bankAccountRepo, ExpenseRepository $expenseRepo, VendorRepository $vendorRepo, DatatableService $datatableService )
$bankAccountRepo App\Ninja\Repositories\BankAccountRepository
$expenseRepo App\Ninja\Repositories\ExpenseRepository
$vendorRepo App\Ninja\Repositories\VendorRepository
$datatableService DatatableService

getDatatable() public method

public getDatatable ( $accountId )

getRepo() protected method

protected getRepo ( ) : BankAccountRepository
return App\Ninja\Repositories\BankAccountRepository

importExpenses() public method

public importExpenses ( $bankId, $input )

loadBankAccounts() public method

public loadBankAccounts ( $bankId, $username, $password, boolean $includeTransactions = true ) : array | boolean
$bankId
$username
$password
$includeTransactions boolean
return array | boolean

parseOFX() public method

public parseOFX ( $data ) : mixed
$data
return mixed

Property Details

$bankAccountRepo protected_oe property

protected BankAccountRepository,App\Ninja\Repositories $bankAccountRepo
return App\Ninja\Repositories\BankAccountRepository

$datatableService protected_oe property

protected DatatableService,App\services $datatableService
return DatatableService

$expenseRepo protected_oe property

protected ExpenseRepository,App\Ninja\Repositories $expenseRepo
return App\Ninja\Repositories\ExpenseRepository

$vendorRepo protected_oe property

protected VendorRepository,App\Ninja\Repositories $vendorRepo
return App\Ninja\Repositories\VendorRepository