Skip to content

Commit

Permalink
Merge pull request #620 from DannyvdSluijs/Update-2023-09-19
Browse files Browse the repository at this point in the history
feat: Update api using documentation d.d. 2023-09-19
  • Loading branch information
stephangroen committed Sep 20, 2023
2 parents 97cd265 + 29711bb commit 6aad2b2
Show file tree
Hide file tree
Showing 14 changed files with 27 additions and 19 deletions.
4 changes: 4 additions & 0 deletions src/Picqer/Financials/Exact/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* @property string $AddressLine1 Visit address first line
* @property string $AddressLine2 Visit address second line
* @property string $AddressLine3 Visit address third line
* @property int $AutomaticProcessProposedEntry Automatically create entries for complete entry proposals
* @property BankAccount[] $BankAccounts Collection of Bank accounts
* @property bool $Blocked Indicates if the account is blocked
* @property string $BSN Citizen Service Number for the Netherlands
Expand Down Expand Up @@ -51,6 +52,7 @@
* @property float $DiscountSales Default discount percentage for sales. This is stored as a fraction. ie 5.5% is stored as .055
* @property int $Division Division code
* @property string $Email E-Mail address of the account
* @property bool $EnableSalesPaymentLink Indicates whether payment link is activated for sales
* @property string $EndDate Determines in combination with the start date if the account is active. If the current date is > end date the account is inactive
* @property string $EORINumber EORI number
* @property string $EstablishedDate RegistrationDate
Expand Down Expand Up @@ -163,6 +165,7 @@ class Account extends Model
'AddressLine1',
'AddressLine2',
'AddressLine3',
'AutomaticProcessProposedEntry',
'BankAccounts',
'Blocked',
'BSN',
Expand Down Expand Up @@ -197,6 +200,7 @@ class Account extends Model
'DiscountSales',
'Division',
'Email',
'EnableSalesPaymentLink',
'EndDate',
'EORINumber',
'EstablishedDate',
Expand Down
2 changes: 2 additions & 0 deletions src/Picqer/Financials/Exact/AssemblyOrder.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
* @property string $StorageLocationCode Storage location code
* @property string $StorageLocationDescription Storage location description
* @property int $StorageLocationSequenceNumber Sequence number for assembly order (Premium Only)
* @property int $Type Assembly order type: 8060 = Assembly, 8061 = Disassemble
* @property string $Unit The standard unit of the assembled item
* @property string $UnitCode Code of Unit
* @property string $UnitDescription Description of Unit
Expand Down Expand Up @@ -57,6 +58,7 @@ class AssemblyOrder extends Model
'StorageLocationCode',
'StorageLocationDescription',
'StorageLocationSequenceNumber',
'Type',
'Unit',
'UnitCode',
'UnitDescription',
Expand Down
2 changes: 2 additions & 0 deletions src/Picqer/Financials/Exact/BillOfMaterialMaterial.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
* @property string $PartItemDescription Part item description
* @property float $Quantity Quantity of the material that ends up in the produced item
* @property float $QuantityBatch Quantity of the material needed to produce the batch including the waste
* @property string $RoutingStepID ID of the routing step
* @property string $syscreated Creation date
* @property string $syscreator User ID of creator
* @property string $sysmodified Modified date
Expand Down Expand Up @@ -68,6 +69,7 @@ class BillOfMaterialMaterial extends Model
'PartItemDescription',
'Quantity',
'QuantityBatch',
'RoutingStepID',
'syscreated',
'syscreator',
'sysmodified',
Expand Down
2 changes: 0 additions & 2 deletions src/Picqer/Financials/Exact/Costcenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
* @see https://start.exactonline.nl/docs/HlpRestAPIResourcesDetails.aspx?name=HRMCostcenters
*
* @property string $ID Primary key
* @property bool $Active Indicates if the cost center is active: 0 = inactive 1 = active
* @property string $Code Code (user-defined ID)
* @property string $Created Creation date
* @property string $Creator User ID of creator
Expand All @@ -28,7 +27,6 @@ class Costcenter extends Model

protected $fillable = [
'ID',
'Active',
'Code',
'Created',
'Creator',
Expand Down
2 changes: 2 additions & 0 deletions src/Picqer/Financials/Exact/Project.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* @property string $AccountContact Contact person of Account
* @property string $AccountName Name of Account
* @property bool $AllowAdditionalInvoicing Indicates if additional invoice is allowed for project
* @property bool $AllowMemberEntryOnly Allow only member to create time or cost entry
* @property bool $BlockEntry Block time and cost entries
* @property bool $BlockPlanning Block planning and reservations
* @property bool $BlockPurchasing Block purchasing
Expand Down Expand Up @@ -81,6 +82,7 @@ class Project extends Model
'AccountContact',
'AccountName',
'AllowAdditionalInvoicing',
'AllowMemberEntryOnly',
'BlockEntry',
'BlockPlanning',
'BlockPurchasing',
Expand Down
12 changes: 0 additions & 12 deletions src/Picqer/Financials/Exact/PurchaseOrderLine.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,7 @@
* @property string $SalesOrderLine Sales order line of the sales order that Is linked to a back to back sales order in purchase order. Show NULL if more than one sales order is linked to the purchase order line.
* @property int $SalesOrderLineNumber Number of the sales order line. Show NULL if more than one sales order is linked to the purchase order line.
* @property int $SalesOrderNumber Number of the sales order. Show NULL if more than one sales order is linked to the purchase order line.
* @property string $ShopOrder Shop order that is linked to the purchase order line. Show NULL if the purchase order line is not linked to any shop order.
* @property string $ShopOrderMaterialPlan Shop order material plan that is linked to the purchase order line. Show NULL if the purchase order line is for purchase subcontract.
* @property int $ShopOrderMaterialPlanLineNumber Number of the shop order material plan line that is linked to the purchase order line. Show NULL if the purchase order line is for purchase subcontract.
* @property ShopOrderMaterialPlan[] $ShopOrderMaterialPlans Collection of Shop order Material plans
* @property int $ShopOrderNumber Number of the shop order that is linked to the purchase order line. Show NULL if the purchase order line is not linked to any shop order.
* @property string $ShopOrderRoutingStepPlan Shop order routing step plan that is linked to the purchase order line. Show NULL if the purchase order line is for purchase material.
* @property int $ShopOrderRoutingStepPlanLineNumber Number of the shop order routing step plan line that is linked to the purchase order line. Show NULL if the purchase order line is for purchase material.
* @property ShopOrderRoutingStepPlan[] $ShopOrderRoutingStepPlans Collection of Shop order Routing step plans
* @property string $SupplierItemCode Code the supplier uses for this item
* @property int $SupplierItemCopyRemarks Indicate if the notes content should be copied from SupplierItem's remarks. The default follows the CopyRemarks value from SupplierItem. Values: 0 = Do not copy remark, 1 = Copy remark
Expand Down Expand Up @@ -123,13 +117,7 @@ class PurchaseOrderLine extends Model
'SalesOrderLine',
'SalesOrderLineNumber',
'SalesOrderNumber',
'ShopOrder',
'ShopOrderMaterialPlan',
'ShopOrderMaterialPlanLineNumber',
'ShopOrderMaterialPlans',
'ShopOrderNumber',
'ShopOrderRoutingStepPlan',
'ShopOrderRoutingStepPlanLineNumber',
'ShopOrderRoutingStepPlans',
'SupplierItemCode',
'SupplierItemCopyRemarks',
Expand Down
2 changes: 2 additions & 0 deletions src/Picqer/Financials/Exact/ShopOrderMaterialPlan.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
* @property float $PlannedPriceFC Planned price of the material
* @property float $PlannedQuantity Intended total planned quantity of the material including waste
* @property float $PlannedQuantityFactor Intended quantity of the material per unit excluding waste
* @property string $RoutingStepID ID of the routing step.
* @property string $ShopOrder Reference to ShopOrders table
* @property int $Status Line status
* @property string $StatusDescription Description of Status
Expand Down Expand Up @@ -67,6 +68,7 @@ class ShopOrderMaterialPlan extends Model
'PlannedPriceFC',
'PlannedQuantity',
'PlannedQuantityFactor',
'RoutingStepID',
'ShopOrder',
'Status',
'StatusDescription',
Expand Down
2 changes: 2 additions & 0 deletions src/Picqer/Financials/Exact/ShopOrderMaterialPlanDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
* @property float $PlannedQuantity Intended total planned quantity of the material including waste
* @property float $PlannedQuantityFactor Intended quantity of the material per unit excluding waste
* @property float $RemainingQuantity Material plan remaining quantity
* @property string $RoutingStepID ID of the routing step.
* @property string $ShopOrder Reference to ShopOrders table
* @property int $ShopOrderNumber Shop order number
* @property int $Status Line status
Expand Down Expand Up @@ -88,6 +89,7 @@ class ShopOrderMaterialPlanDetail extends Model
'PlannedQuantity',
'PlannedQuantityFactor',
'RemainingQuantity',
'RoutingStepID',
'ShopOrder',
'ShopOrderNumber',
'Status',
Expand Down
4 changes: 2 additions & 2 deletions src/Picqer/Financials/Exact/StockBatchNumber.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
* @property string $Modified Last modified date
* @property string $Modifier User ID of modifier
* @property string $ModifierFullName Name of modifier
* @property string $ParentID ID to link part item to assembled item (assembly order only)
* @property string $PickOrderLine ID of pick order entry in which this serial or batch number was used
* @property string $ParentID ID to link part item to assembled item (assembly order and pick order only)
* @property string $PickOrderLine ID of pick order entry in which this serial or batch number was used.
* @property float $Quantity Quantity of this batch number entering or leaving inventory
* @property string $Remarks Remarks
* @property string $SalesOrderLine ID of sales order line
Expand Down
4 changes: 2 additions & 2 deletions src/Picqer/Financials/Exact/StockSerialNumber.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
* @property string $Modified Last modified date
* @property string $Modifier User ID of modifier
* @property string $ModifierFullName Name of modifier
* @property string $ParentID ID to link part item to assembled item (assembly order only)
* @property string $PickOrderLine ID of pick order entry in which this serial or batch number was used
* @property string $ParentID ID to link part item to assembled item (assembly order and pick order only)
* @property string $PickOrderLine ID of pick order entry in which this serial or batch number was used.
* @property string $Remarks Remarks
* @property string $SalesOrderLine ID of sales order line
* @property string $SalesReturnLine ID of sales return entry in which this serial or batch number was used
Expand Down
4 changes: 4 additions & 0 deletions src/Picqer/Financials/Exact/SyncAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* @property string $AddressLine1 Visit address first line
* @property string $AddressLine2 Visit address second line
* @property string $AddressLine3 Visit address third line
* @property int $AutomaticProcessProposedEntry Automatically create entries for complete entry proposals
* @property BankAccount[] $BankAccounts Collection of Bank accounts
* @property bool $Blocked Indicates if the account is blocked
* @property string $BSN Citizen Service Number for the Netherlands
Expand Down Expand Up @@ -51,6 +52,7 @@
* @property float $DiscountSales Default discount percentage for sales. This is stored as a fraction. ie 5.5% is stored as .055
* @property int $Division Division code
* @property string $Email E-Mail address of the account
* @property bool $EnableSalesPaymentLink Indicates whether payment link is activated for sales
* @property string $EndDate Determines in combination with the start date if the account is active. If the current date is > end date the account is inactive
* @property string $EORINumber EORI number
* @property string $EstablishedDate RegistrationDate
Expand Down Expand Up @@ -165,6 +167,7 @@ class SyncAccount extends Model
'AddressLine1',
'AddressLine2',
'AddressLine3',
'AutomaticProcessProposedEntry',
'BankAccounts',
'Blocked',
'BSN',
Expand Down Expand Up @@ -199,6 +202,7 @@ class SyncAccount extends Model
'DiscountSales',
'Division',
'Email',
'EnableSalesPaymentLink',
'EndDate',
'EORINumber',
'EstablishedDate',
Expand Down
2 changes: 1 addition & 1 deletion src/Picqer/Financials/Exact/SyncDeleted.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* @property string $DeletedDate Deleted date
* @property int $Division Division code
* @property string $EntityKey Entity key
* @property int $EntityType Entity Types: 1= TransactionLines 2= Accounts 3= Addresses 4= Attachments 5= Contacts 6= Documents 7= GLAccounts 8= ItemPrices 9= Items 10= PaymentTerms 11= Quotations (This entity is going to be removed. Please refer to the new entity QuotationHeaders, QuotationLines.) 12= SalesOrders (This entity is going to be removed. Please refer to the new entity SalesOrderHeaders, SalesOrderLines.) 13= SalesInvoices 14= TimeCostTransactions 15= StockPositions 16= GoodsDeliveries 17= GoodsDeliveryLines 18= GLClassifications 19= ItemWarehouses 20= StorageLocationStockPositions 21= Projects 22= PurchaseOrders 23= Subscriptions 24= SubscriptionLines 25= ProjectWBS 26= ProjectPlanning 27= LeaveAbsenceHoursByDay 28= SerialBatchNumbers 29= StockSerialBatchNumbers 30= ItemAccounts 31= DiscountTables 32= SalesOrderHeaders 33= SalesOrderLines 34= QuotationHeaders 35= QuotationLines 36= ShopOrders 37= ShopOrderMaterialPlans 38= ShopOrderRoutingStepPlans 39= Schedules 40= ScheduleEntries 41= ItemStorageLocations
* @property int $EntityType Entity Types: 1= TransactionLines 2= Accounts 3= Addresses 4= Attachments 5= Contacts 6= Documents 7= GLAccounts 8= ItemPrices 9= Items 10= PaymentTerms 12= SalesOrders (This entity is going to be removed. Please refer to the new entity SalesOrderHeaders, SalesOrderLines.) 13= SalesInvoices 14= TimeCostTransactions 15= StockPositions 16= GoodsDeliveries 17= GoodsDeliveryLines 18= GLClassifications 19= ItemWarehouses 20= StorageLocationStockPositions 21= Projects 22= PurchaseOrders 23= Subscriptions 24= SubscriptionLines 25= ProjectWBS 26= ProjectPlanning 27= LeaveAbsenceHoursByDay 28= SerialBatchNumbers 29= StockSerialBatchNumbers 30= ItemAccounts 31= DiscountTables 32= SalesOrderHeaders 33= SalesOrderLines 34= QuotationHeaders 35= QuotationLines 36= ShopOrders 37= ShopOrderMaterialPlans 38= ShopOrderRoutingStepPlans 39= Schedules 40= ScheduleEntries 41= ItemStorageLocations
* @property string $ID Primary key
*/
class SyncDeleted extends Model
Expand Down
2 changes: 2 additions & 0 deletions src/Picqer/Financials/Exact/SyncProject.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* @property string $AccountContact Contact person of Account
* @property string $AccountName Name of Account
* @property bool $AllowAdditionalInvoicing Indicates if additional invoice is allowed for project
* @property bool $AllowMemberEntryOnly Allow only member to create time or cost entry
* @property bool $BlockEntry Block time and cost entries
* @property bool $BlockPlanning Block planning and reservations
* @property bool $BlockPurchasing Block purchasing
Expand Down Expand Up @@ -78,6 +79,7 @@ class SyncProject extends Model
'AccountContact',
'AccountName',
'AllowAdditionalInvoicing',
'AllowMemberEntryOnly',
'BlockEntry',
'BlockPlanning',
'BlockPurchasing',
Expand Down
2 changes: 2 additions & 0 deletions src/Picqer/Financials/Exact/SyncShopOrderMaterialPlan.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
* @property float $PlannedPriceFC Planned price of the material
* @property float $PlannedQuantity Intended total planned quantity of the material including waste
* @property float $PlannedQuantityFactor Intended quantity of the material per unit excluding waste
* @property string $RoutingStepID ID of the routing step.
* @property string $ShopOrder Reference to ShopOrders table
* @property int $Status Line status
* @property string $StatusDescription Description of Status
Expand Down Expand Up @@ -70,6 +71,7 @@ class SyncShopOrderMaterialPlan extends Model
'PlannedPriceFC',
'PlannedQuantity',
'PlannedQuantityFactor',
'RoutingStepID',
'ShopOrder',
'Status',
'StatusDescription',
Expand Down

0 comments on commit 6aad2b2

Please sign in to comment.