Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/Requests/CreditnoteRequestBuilder.php
  • Loading branch information
LasseRafn committed Dec 11, 2017
2 parents 769eee4 + ee9f43c commit ae0369a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
11 changes: 1 addition & 10 deletions src/Models/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,6 @@ class Payment extends Model
{
protected $entity = 'payments';
protected $primaryKey = 'Guid';
protected $fillable = [
'Guid',
'DepositAccountNumber',
'ExternalReference',
'PaymentDate',
'Description',
'Amount',
'AmountInForeignCurrency'
];

public $Guid;
public $DepositAccountNumber;
Expand All @@ -23,4 +14,4 @@ class Payment extends Model
public $Description;
public $Amount;
public $AmountInForeignCurrency;
}
}
2 changes: 1 addition & 1 deletion src/Requests/InvoiceRequestBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class InvoiceRequestBuilder extends RequestBuilder
{
public function __construct( Builder $builder ) {
$this->parameters['fields'] = 'CreatedAt,UpdatedAt,DeletedAt,Guid,Date,Status,TotalInclVat,Description,ContactName,Number,Currency,PaymentDate,Type,TotalExclVat,TotalInclVatInDkk,TotalExclVatInDkk,MailOutStatus';
$this->parameters['fields'] = 'TimeStamp,CreatedAt,UpdatedAt,DeletedAt,Guid,Date,Status,TotalInclVat,Description,ContactName,Number,Currency,PaymentDate,Type,TotalExclVat,TotalInclVatInDkk,TotalExclVatInDkk,MailOutStatus';

parent::__construct( $builder );
}
Expand Down
1 change: 0 additions & 1 deletion src/Utils/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ class Model
protected $entity;
protected $primaryKey;
protected $modelClass = self::class;
protected $fillable = [];
protected $request;

public function __construct(Request $request, $data = [])
Expand Down

0 comments on commit ae0369a

Please sign in to comment.