From 84d14d1cd2887fe46ee1e1e66b9c1f08161c7134 Mon Sep 17 00:00:00 2001 From: Lasse Rafn Date: Mon, 4 Dec 2017 15:30:22 +0100 Subject: [PATCH 1/4] Update InvoiceRequestBuilder.php Added TimeStamp --- src/Requests/InvoiceRequestBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Requests/InvoiceRequestBuilder.php b/src/Requests/InvoiceRequestBuilder.php index c761613..33a0f4b 100644 --- a/src/Requests/InvoiceRequestBuilder.php +++ b/src/Requests/InvoiceRequestBuilder.php @@ -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 ); } From ba113ada5fb1dfcacfcf67bd9577140282184946 Mon Sep 17 00:00:00 2001 From: Lasse Rafn Date: Mon, 4 Dec 2017 15:30:42 +0100 Subject: [PATCH 2/4] Update Payment.php Removed Fillable --- src/Models/Payment.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/Models/Payment.php b/src/Models/Payment.php index 0cf045c..77c8e6f 100644 --- a/src/Models/Payment.php +++ b/src/Models/Payment.php @@ -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; @@ -23,4 +14,4 @@ class Payment extends Model public $Description; public $Amount; public $AmountInForeignCurrency; -} \ No newline at end of file +} From 07fa5c7c83931220d7e8cb804cdc39212039ee9c Mon Sep 17 00:00:00 2001 From: Lasse Rafn Date: Mon, 4 Dec 2017 15:31:35 +0100 Subject: [PATCH 3/4] Update CreditnoteRequestBuilder.php Timestamps for Creditnotes --- src/Requests/CreditnoteRequestBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Requests/CreditnoteRequestBuilder.php b/src/Requests/CreditnoteRequestBuilder.php index 374eafc..825caf0 100644 --- a/src/Requests/CreditnoteRequestBuilder.php +++ b/src/Requests/CreditnoteRequestBuilder.php @@ -9,7 +9,7 @@ class CreditnoteRequestBuilder extends RequestBuilder { public function __construct(Builder $builder) { - $this->parameters['fields'] = 'Number,Guid,ContactName,Date,Description,TotalInclVat,Currency,Status'; + $this->parameters['fields'] = 'TimeStamp,CreatedAt,UpdatedAt,DeletedAt,Number,Guid,ContactName,Date,Description,TotalInclVat,Currency,Status'; parent::__construct($builder); } From ee9f43ce4106952f5a52dbc9899b6d9b140397ef Mon Sep 17 00:00:00 2001 From: Lasse Rafn Date: Mon, 4 Dec 2017 15:33:06 +0100 Subject: [PATCH 4/4] Update Model.php Removed fillable array --- src/Utils/Model.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Utils/Model.php b/src/Utils/Model.php index 4e813cb..6dacab1 100644 --- a/src/Utils/Model.php +++ b/src/Utils/Model.php @@ -7,7 +7,6 @@ class Model protected $entity; protected $primaryKey; protected $modelClass = self::class; - protected $fillable = []; protected $request; public function __construct(Request $request, $data = [])