Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into guzzle6
Browse files Browse the repository at this point in the history
  • Loading branch information
stephangroen committed Oct 27, 2015
2 parents d7fded0 + 7cf9fa0 commit b0a2705
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ PHP client library to use the Exact Online API.
Installing this Exact client for PHP can be done through Composer.

"require": {
"picqer/exact-php-client": "1.0.6"
"picqer/exact-php-client": "~1.0.7"
}

## Usage
Expand Down
36 changes: 36 additions & 0 deletions src/Picqer/Financials/Exact/BankAccount.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php namespace Picqer\Financials\Exact;

class BankAccount extends Model
{

use Query\Findable;
use Persistance\Storable;

protected $fillable = [
'ID',
'Account',
'AccountName',
'Bank',
'BankAccount',
'BankAccountHolderName',
'BankDescription',
'BankName',
'BICCode',
'Created',
'Creator',
'CreatorFullName',
'Description',
'Division',
'Format',
'IBAN',
'Main',
'Modified',
'Modifier',
'ModifierFullName',
'Type',
'TypeDescription'
];

protected $url = 'crm/BankAccounts';

}
26 changes: 26 additions & 0 deletions src/Picqer/Financials/Exact/DirectDebitMandate.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php namespace Picqer\Financials\Exact;

class DirectDebitMandate extends Model
{

use Query\Findable;
use Persistance\Storable;

protected $fillable = [
'ID',
'Account',
'BankAccount',
'CancellationDate',
'Description',
'Division',
'FirstSend',
'PaymentType',
'Reference',
'SignatureDate',
'Type'
];

protected $url = 'cashflow/DirectDebitMandates';

}

2 changes: 1 addition & 1 deletion src/Picqer/Financials/Exact/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function __set($key, $value)

public function exists()
{
if ( ! in_array($this->primaryKey, $this->attributes)) {
if ( ! array_key_exists($this->primaryKey, $this->attributes)) {
return false;
}

Expand Down

0 comments on commit b0a2705

Please sign in to comment.