Skip to content

Commit 1b17768

Browse files
committed
feat: update to latest details from documentation; Resolve type issues from phpstan baseline
1 parent 218bb1b commit 1b17768

34 files changed

+311
-185
lines changed

phpstan-baseline.neon

Lines changed: 0 additions & 145 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
parameters:
22
ignoreErrors:
3-
-
4-
message: '#^PHPDoc tag @property for property Picqer\\Financials\\Exact\\AssemblyOrder\:\:\$PartItems contains unknown class Picqer\\Financials\\Exact\\PartItem\.$#'
5-
identifier: class.notFound
6-
count: 1
7-
path: src/Picqer/Financials/Exact/AssemblyOrder.php
8-
93
-
104
message: '#^PHPDoc tag @property for property Picqer\\Financials\\Exact\\BulkGoodsDelivery\:\:\$GoodsDeliveryLines contains unknown class Picqer\\Financials\\Exact\\goodsdeliverylines\.$#'
115
identifier: class.notFound
@@ -23,157 +17,18 @@ parameters:
2317
identifier: class.notFound
2418
count: 1
2519
path: src/Picqer/Financials/Exact/BulkGoodsDeliveryLine.php
26-
27-
-
28-
message: '#^PHPDoc tag @property for property Picqer\\Financials\\Exact\\DigitalOrderPickingLine\:\:\$PickingLocations contains unknown class Picqer\\Financials\\Exact\\PickingLocation\.$#'
29-
identifier: class.notFound
30-
count: 1
31-
path: src/Picqer/Financials/Exact/DigitalOrderPickingLine.php
32-
33-
-
34-
message: '#^PHPDoc tag @property for property Picqer\\Financials\\Exact\\Division\:\:\$Class_01 contains unknown class Picqer\\Financials\\Exact\\divisionclasses\.$#'
35-
identifier: class.notFound
36-
count: 1
37-
path: src/Picqer/Financials/Exact/Division.php
38-
39-
-
40-
message: '#^PHPDoc tag @property for property Picqer\\Financials\\Exact\\Division\:\:\$Class_02 contains unknown class Picqer\\Financials\\Exact\\divisionclasses\.$#'
41-
identifier: class.notFound
42-
count: 1
43-
path: src/Picqer/Financials/Exact/Division.php
44-
45-
-
46-
message: '#^PHPDoc tag @property for property Picqer\\Financials\\Exact\\Division\:\:\$Class_03 contains unknown class Picqer\\Financials\\Exact\\divisionclasses\.$#'
47-
identifier: class.notFound
48-
count: 1
49-
path: src/Picqer/Financials/Exact/Division.php
50-
51-
-
52-
message: '#^PHPDoc tag @property for property Picqer\\Financials\\Exact\\Division\:\:\$Class_04 contains unknown class Picqer\\Financials\\Exact\\divisionclasses\.$#'
53-
identifier: class.notFound
54-
count: 1
55-
path: src/Picqer/Financials/Exact/Division.php
56-
57-
-
58-
message: '#^PHPDoc tag @property for property Picqer\\Financials\\Exact\\Division\:\:\$Class_05 contains unknown class Picqer\\Financials\\Exact\\divisionclasses\.$#'
59-
identifier: class.notFound
60-
count: 1
61-
path: src/Picqer/Financials/Exact/Division.php
62-
63-
-
64-
message: '#^PHPDoc tag @property for property Picqer\\Financials\\Exact\\Division\:\:\$HID contains unknown class Picqer\\Financials\\Exact\\int64\.$#'
65-
identifier: class.notFound
66-
count: 1
67-
path: src/Picqer/Financials/Exact/Division.php
68-
69-
-
70-
message: '#^PHPDoc tag @property for property Picqer\\Financials\\Exact\\ItemAssortment\:\:\$Properties contains unknown class Picqer\\Financials\\Exact\\Property\.$#'
71-
identifier: class.notFound
72-
count: 1
73-
path: src/Picqer/Financials/Exact/ItemAssortment.php
74-
75-
-
76-
message: '#^PHPDoc tag @property for property Picqer\\Financials\\Exact\\LogisticsReasonsCodes\:\:\$Types contains unknown class Picqer\\Financials\\Exact\\Type\.$#'
77-
identifier: class.notFound
78-
count: 1
79-
path: src/Picqer/Financials/Exact/LogisticsReasonsCodes.php
80-
81-
-
82-
message: '#^PHPDoc tag @property for property Picqer\\Financials\\Exact\\PayablesList\:\:\$Notes contains unknown class Picqer\\Financials\\Exact\\Note\.$#'
83-
identifier: class.notFound
84-
count: 1
85-
path: src/Picqer/Financials/Exact/PayablesList.php
86-
87-
-
88-
message: '#^PHPDoc tag @property for property Picqer\\Financials\\Exact\\PayablesListByAccount\:\:\$Notes contains unknown class Picqer\\Financials\\Exact\\Note\.$#'
89-
identifier: class.notFound
90-
count: 1
91-
path: src/Picqer/Financials/Exact/PayablesListByAccount.php
92-
93-
-
94-
message: '#^PHPDoc tag @property for property Picqer\\Financials\\Exact\\PayablesListByAccountAndAgeGroup\:\:\$Notes contains unknown class Picqer\\Financials\\Exact\\Note\.$#'
95-
identifier: class.notFound
96-
count: 1
97-
path: src/Picqer/Financials/Exact/PayablesListByAccountAndAgeGroup.php
98-
99-
-
100-
message: '#^PHPDoc tag @property for property Picqer\\Financials\\Exact\\PayablesListByAgeGroup\:\:\$Notes contains unknown class Picqer\\Financials\\Exact\\Note\.$#'
101-
identifier: class.notFound
102-
count: 1
103-
path: src/Picqer/Financials/Exact/PayablesListByAgeGroup.php
104-
105-
-
106-
message: '#^PHPDoc tag @property for property Picqer\\Financials\\Exact\\ProcessPayment\:\:\$PaymentIDs contains unknown class Picqer\\Financials\\Exact\\PaymentID\.$#'
107-
identifier: class.notFound
108-
count: 1
109-
path: src/Picqer/Financials/Exact/ProcessPayment.php
110-
111-
-
112-
message: '#^PHPDoc tag @property for property Picqer\\Financials\\Exact\\Project\:\:\$BudgetedHoursPerHourType contains unknown class Picqer\\Financials\\Exact\\BudgetedHoursPerHourType\.$#'
113-
identifier: class.notFound
114-
count: 1
115-
path: src/Picqer/Financials/Exact/Project.php
116-
11720
-
11821
message: '#^PHPDoc tag @property for property Picqer\\Financials\\Exact\\ReasonForLogistic\:\:\$Types contains unknown class Picqer\\Financials\\Exact\\Type\.$#'
11922
identifier: class.notFound
12023
count: 1
12124
path: src/Picqer/Financials/Exact/ReasonForLogistic.php
12225

123-
-
124-
message: '#^PHPDoc tag @property for property Picqer\\Financials\\Exact\\ReceivablesList\:\:\$Notes contains unknown class Picqer\\Financials\\Exact\\Note\.$#'
125-
identifier: class.notFound
126-
count: 1
127-
path: src/Picqer/Financials/Exact/ReceivablesList.php
128-
129-
-
130-
message: '#^PHPDoc tag @property for property Picqer\\Financials\\Exact\\ReceivablesListByAccount\:\:\$Notes contains unknown class Picqer\\Financials\\Exact\\Note\.$#'
131-
identifier: class.notFound
132-
count: 1
133-
path: src/Picqer/Financials/Exact/ReceivablesListByAccount.php
134-
135-
-
136-
message: '#^PHPDoc tag @property for property Picqer\\Financials\\Exact\\ReceivablesListByAccountAndAgeGroup\:\:\$Notes contains unknown class Picqer\\Financials\\Exact\\Note\.$#'
137-
identifier: class.notFound
138-
count: 1
139-
path: src/Picqer/Financials/Exact/ReceivablesListByAccountAndAgeGroup.php
140-
141-
-
142-
message: '#^PHPDoc tag @property for property Picqer\\Financials\\Exact\\ReceivablesListByAgeGroup\:\:\$Notes contains unknown class Picqer\\Financials\\Exact\\Note\.$#'
143-
identifier: class.notFound
144-
count: 1
145-
path: src/Picqer/Financials/Exact/ReceivablesListByAgeGroup.php
146-
147-
-
148-
message: '#^PHPDoc tag @property for property Picqer\\Financials\\Exact\\Schedule\:\:\$ScheduleEntries contains unknown class Picqer\\Financials\\Exact\\ScheduleEntry\.$#'
149-
identifier: class.notFound
150-
count: 1
151-
path: src/Picqer/Financials/Exact/Schedule.php
152-
153-
-
154-
message: '#^Class Picqer\\Financials\\Exact\\SalesOrderLine referenced with incorrect case\: Picqer\\Financials\\Exact\\SalesOrderline\.$#'
155-
identifier: class.nameCase
156-
count: 1
157-
path: src/Picqer/Financials/Exact/ShopOrder.php
158-
159-
-
160-
message: '#^PHPDoc tag @property for property Picqer\\Financials\\Exact\\ShopOrderRoutingStepPlan\:\:\$TimeTransactions contains unknown class Picqer\\Financials\\Exact\\TimeTransaction\.$#'
161-
identifier: class.notFound
162-
count: 1
163-
path: src/Picqer/Financials/Exact/ShopOrderRoutingStepPlan.php
164-
16526
-
16627
message: '#^PHPDoc tag @property for property Picqer\\Financials\\Exact\\User\:\:\$UserRoles contains unknown class Picqer\\Financials\\Exact\\UserRoles\.$#'
16728
identifier: class.notFound
16829
count: 1
16930
path: src/Picqer/Financials/Exact/User.php
17031

171-
-
172-
message: '#^Class Picqer\\Financials\\Exact\\VatPercentage referenced with incorrect case\: Picqer\\Financials\\Exact\\VATPercentage\.$#'
173-
identifier: class.nameCase
174-
count: 1
175-
path: src/Picqer/Financials/Exact/VatCode.php
176-
17732
-
17833
message: '#^Trait Picqer\\Financials\\Exact\\Webhook\\Authenticatable is used zero times and is not analysed\.$#'
17934
identifier: trait.unused

src/Picqer/Financials/Exact/AbsenceRegistration.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
* @property string $Employee Employee linked to the absence
2020
* @property string $EmployeeFullName Employee full name
2121
* @property int $EmployeeHID Numeric ID of the employee
22-
* @property int $Kind Absence kind, only supported for the Netherland legislation
23-
* @property string $KindCode Code for the absence kind, only supported for the Netherland legislation
24-
* @property string $KindDescription Description for the absence kind, only supported for the Netherland legislation
2522
* @property string $Modified Last modified date
2623
* @property string $Modifier User ID of modifier
2724
* @property string $ModifierFullName Name of modifier
@@ -44,9 +41,6 @@ class AbsenceRegistration extends Model
4441
'Employee',
4542
'EmployeeFullName',
4643
'EmployeeHID',
47-
'Kind',
48-
'KindCode',
49-
'KindDescription',
5044
'Modified',
5145
'Modifier',
5246
'ModifierFullName',

src/Picqer/Financials/Exact/AssemblyOrder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* @property string $OrderDate Date of the assembly order is initiated
2121
* @property int $OrderNumber Assembly order number
2222
* @property int $OrderStatus Assembly order status: 20 = Open, 30 = Partial, 50 = Complete
23-
* @property PartItem[] $PartItems Collection of part items for assembly order
23+
* @property mixed[] $PartItems Collection of part items for assembly order
2424
* @property float $PlannedQuantity Planned quantity of the item to be assembled
2525
* @property string $StorageLocation Reference to storage location
2626
* @property string $StorageLocationCode Storage location code

src/Picqer/Financials/Exact/BillOfMaterialMaterial.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
* @see https://start.exactonline.nl/docs/HlpRestAPIResourcesDetails.aspx?name=ManufacturingBillOfMaterialMaterials
99
*
1010
* @property string $ID Primary key
11-
* @property float $AverageCost Item average cost available when average cost method is used
1211
* @property int $Backflush Indicates if this is a backflush item
1312
* @property int $CalculatorType Calculator type
1413
* @property float $CostBatch Cost batch
@@ -26,6 +25,7 @@
2625
* @property string $NetWeightUnit Net weight unit of measure
2726
* @property string $Notes Notes
2827
* @property string $PartItem Key of part item
28+
* @property float $PartItemAverageCost Item average cost available when average cost method is used
2929
* @property string $PartItemCode Part item code
3030
* @property float $PartItemCostPriceStandard Item standard cost available when standard cost method is used
3131
* @property string $PartItemDescription Part item description
@@ -46,7 +46,6 @@ class BillOfMaterialMaterial extends Model
4646

4747
protected $fillable = [
4848
'ID',
49-
'AverageCost',
5049
'Backflush',
5150
'CalculatorType',
5251
'CostBatch',
@@ -64,6 +63,7 @@ class BillOfMaterialMaterial extends Model
6463
'NetWeightUnit',
6564
'Notes',
6665
'PartItem',
66+
'PartItemAverageCost',
6767
'PartItemCode',
6868
'PartItemCostPriceStandard',
6969
'PartItemDescription',

src/Picqer/Financials/Exact/DigitalOrderPickingLine.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* @property string $OrderPickerFullName Name of the order picker
3434
* @property string $PickedDate Date of order picked
3535
* @property string $PickedOrderDeliveryDate Date of goods delivery
36-
* @property PickingLocation[] $PickingLocations Collection of picking locations
36+
* @property DigitalOrderPickingLine[] $PickingLocations Collection of picking locations
3737
* @property int $PickOrderNumber Pick order number
3838
* @property float $QuantityPicked Quantity picked
3939
* @property float $QuantityToBePicked Quantity to be picked

src/Picqer/Financials/Exact/Division.php

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@
88
* @see https://start.exactonline.nl/docs/HlpRestAPIResourcesDetails.aspx?name=HRMDivisions
99
*
1010
* @property int $Code Primary key
11-
* @property int $BlockingStatus Values: 0 = Not blocked 1 = Backup 2 = Conversion busy 3 = Conversion shadow 4 = Conversion waiting 5 = Copy data waiting 6 = Copy data buzy 100 = Wait for deletion 101 = Deleted 102 = Deletion failed
12-
* @property divisionclasses $Class_01 First division classification. User should have access rights to view division classifications.
13-
* @property divisionclasses $Class_02 Second division classification. User should have access rights to view division classifications.
14-
* @property divisionclasses $Class_03 Third division classification. User should have access rights to view division classifications.
15-
* @property divisionclasses $Class_04 Fourth division classification. User should have access rights to view division classifications.
16-
* @property divisionclasses $Class_05 Fifth division classification. User should have access rights to view division classifications.
11+
* @property string $ArchiveDate Date on which the division is archived
12+
* @property int $BlockingStatus Values: 0 = Not blocked, 1 = Backup/restore, 2 = Conversion busy, 3 = Conversion shadow, 4 = Conversion waiting, 5 = Copy data waiting, 6 = Copy data busy
13+
* @property DivisionClass $Class_01 First division classification. User should have access rights to view division classifications.
14+
* @property DivisionClass $Class_02 Second division classification. User should have access rights to view division classifications.
15+
* @property DivisionClass $Class_03 Third division classification. User should have access rights to view division classifications.
16+
* @property DivisionClass $Class_04 Fourth division classification. User should have access rights to view division classifications.
17+
* @property DivisionClass $Class_05 Fifth division classification. User should have access rights to view division classifications.
1718
* @property string $Country Country of the division. Is used for determination of legislation
1819
* @property string $CountryDescription Description of Country
1920
* @property string $Created Creation date
@@ -25,28 +26,30 @@
2526
* @property string $CustomerCode Owner account code of the division
2627
* @property string $CustomerName Owner account name of the division
2728
* @property string $Description Description
28-
* @property int64 $HID Number that customers give to the division
29+
* @property int $HID Number that customers give to the division
2930
* @property bool $Main True for the main (hosting) division
3031
* @property string $Modified Last modified date
3132
* @property string $Modifier User ID of modifier
3233
* @property string $ModifierFullName Name of the last modifier
34+
* @property string $OBNumber The soletrader VAT number used for offical returns to tax authority
3335
* @property string $SiretNumber Siret Number of the division (France)
3436
* @property string $StartDate Date on which the division becomes active
35-
* @property int $Status Regular administrations will have status 0. Currently, the only other possibility is 'archived' (1), which means the administration is not actively used, but still needs to be accessible for the customer/accountant to meet legal obligations
37+
* @property int $Status Regular administrations will have status 0. Currently, the only other possibility is 'archived' (1), which means the administration is not actively used, but still needs to be accessible for the customer/accountant to meet legal obligations
3638
* @property string $TaxOfficeNumber Number of your local tax authority (Germany)
3739
* @property string $TaxReferenceNumber Local tax reference number (Germany)
40+
* @property string $TemplateCode Division template code
3841
* @property string $VATNumber VAT number
3942
* @property string $Website Customer value, hyperlink to external website
4043
*/
4144
class Division extends Model
4245
{
4346
use Query\Findable;
44-
use Persistance\Storable;
4547

4648
protected $primaryKey = 'Code';
4749

4850
protected $fillable = [
4951
'Code',
52+
'ArchiveDate',
5053
'BlockingStatus',
5154
'Class_01',
5255
'Class_02',
@@ -69,11 +72,13 @@ class Division extends Model
6972
'Modified',
7073
'Modifier',
7174
'ModifierFullName',
75+
'OBNumber',
7276
'SiretNumber',
7377
'StartDate',
7478
'Status',
7579
'TaxOfficeNumber',
7680
'TaxReferenceNumber',
81+
'TemplateCode',
7782
'VATNumber',
7883
'Website',
7984
];

src/Picqer/Financials/Exact/Document.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
* @property int $ProposedEntryStatus ProposedEntryStatus, 0 = Void, 5 = Rejected, 20 = Open, 50 = Processed
4949
* @property int $SalesInvoiceNumber 'Our reference' of the transaction that belongs to this document
5050
* @property int $SalesOrderNumber Number of the sales order
51+
* @property int $ScanServiceStatus ScanServiceStatus
5152
* @property int $SendMethod Send method
5253
* @property int $ShopOrderNumber Number of the shop order
5354
* @property string $Subject Subject of this document
@@ -102,6 +103,7 @@ class Document extends Model
102103
'ProposedEntryStatus',
103104
'SalesInvoiceNumber',
104105
'SalesOrderNumber',
106+
'ScanServiceStatus',
105107
'SendMethod',
106108
'ShopOrderNumber',
107109
'Subject',

src/Picqer/Financials/Exact/ItemAssortment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* @property int $Code Code of ItemAssortment
1212
* @property string $Description Description of ItemAssortment
1313
* @property int $Division Division
14-
* @property Property[] $Properties Properties of this ItemAssortment
14+
* @property ItemAssortmentProperty[] $Properties Properties of this ItemAssortment
1515
*/
1616
class ItemAssortment extends Model
1717
{

src/Picqer/Financials/Exact/LogisticsReasonsCodes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* @property string $Modifier User ID of modifier.
2020
* @property string $ModifierFullName Name of modifier.
2121
* @property string $Notes Extra notes.
22-
* @property Type[] $Types Collection of types
22+
* @property ReasonCodesLinkType[] $Types Collection of types
2323
*/
2424
class LogisticsReasonsCodes extends Model
2525
{

src/Picqer/Financials/Exact/MaterialReversal.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
* @see https://start.exactonline.nl/docs/HlpRestAPIResourcesDetails.aspx?name=ManufacturingMaterialReversals
99
*
1010
* @property string $ReversalStockTransactionId ID of stock transaction related to this material issue
11+
* @property StockBatchNumber[] $BatchNumbers Collection of batch numbers
1112
* @property string $CreatedBy ID of creating user
1213
* @property string $CreatedByFullName Name of the creating user
1314
* @property string $CreatedDate Date this reversal was created
@@ -20,8 +21,9 @@
2021
* @property string $ItemDescription Description of item reversed
2122
* @property string $ItemPictureUrl Picture url of item issued
2223
* @property string $Note Notes logged with this reversal
23-
* @property string $OriginalStockTransactionId ID of the original stock transaction, which was reversed
24+
* @property string $OriginalStockTransactionId ID of the original stock transaction, which was to be reverse
2425
* @property float $Quantity Quantity of this reversal
26+
* @property StockSerialNumber[] $SerialNumbers Collection of serial numbers
2527
* @property string $ShopOrder ID of shop order reversed from
2628
* @property string $ShopOrderMaterialPlan ID of shop order material plan
2729
* @property int $ShopOrderNumber Number of shop order reversed from
@@ -44,6 +46,7 @@ class MaterialReversal extends Model
4446

4547
protected $fillable = [
4648
'ReversalStockTransactionId',
49+
'BatchNumbers',
4750
'CreatedBy',
4851
'CreatedByFullName',
4952
'CreatedDate',
@@ -58,6 +61,7 @@ class MaterialReversal extends Model
5861
'Note',
5962
'OriginalStockTransactionId',
6063
'Quantity',
64+
'SerialNumbers',
6165
'ShopOrder',
6266
'ShopOrderMaterialPlan',
6367
'ShopOrderNumber',

0 commit comments

Comments
 (0)