From 25281a262aec55ac846bf99fd3125c9960d33c4d Mon Sep 17 00:00:00 2001 From: Jeroen van Oort Date: Wed, 18 Feb 2026 21:16:20 +0100 Subject: [PATCH] Handle nullable types more accurately --- generator/Helpers.php | 6 +- src/Requests/V10/AppointmentRequest.php | 10 +- src/Requests/V10/BackOfficeRequest.php | 2 +- src/Requests/V10/BuyOrderDeliveryRequest.php | 12 +- src/Requests/V10/BuyOrderRequest.php | 40 ++--- src/Requests/V10/CRMRequest.php | 10 +- src/Requests/V10/DeliveryRequest.php | 6 +- src/Requests/V10/EmailRequest.php | 94 +++++----- src/Requests/V10/ExplodedViewRequest.php | 12 +- src/Requests/V10/FinancialRequest.php | 32 ++-- src/Requests/V10/HRMRequest.php | 12 +- src/Requests/V10/ManagementRequest.php | 178 +++++++++---------- src/Requests/V10/OrderRequest.php | 168 ++++++++--------- src/Requests/V10/PickbonsRequest.php | 18 +- src/Requests/V10/PriceListsRequest.php | 6 +- src/Requests/V10/ProductRequest.php | 72 ++++---- src/Requests/V10/ProductTemplateRequest.php | 8 +- src/Requests/V10/RelationsRequest.php | 104 +++++------ src/Requests/V10/RoundRequest.php | 32 ++-- src/Requests/V10/ShipmentRequest.php | 10 +- src/Requests/V10/StockRequest.php | 58 +++--- src/Requests/V10/WebshopRequest.php | 44 ++--- src/Requests/V11/BuyOrderDeliveryRequest.php | 6 +- src/Requests/V11/BuyOrderRequest.php | 8 +- src/Requests/V11/CRMRequest.php | 10 +- src/Requests/V11/ExplodedViewRequest.php | 12 +- src/Requests/V11/FinancialRequest.php | 20 +-- src/Requests/V11/OrderRequest.php | 134 +++++++------- src/Requests/V11/PickbonsRequest.php | 18 +- src/Requests/V11/ProductGroupsRequest.php | 4 +- src/Requests/V11/ProductRequest.php | 144 +++++++-------- src/Requests/V11/RelationsRequest.php | 28 +-- src/Requests/V11/StockRequest.php | 40 ++--- src/Requests/V11/WebshopRequest.php | 22 +-- src/Requests/V12/OrderRequest.php | 40 ++--- src/Requests/V12/ProductRequest.php | 30 ++-- src/Requests/V12/WebshopRequest.php | 12 +- src/Requests/V13/OrderRequest.php | 56 +++--- src/Requests/V13/ProductRequest.php | 20 +-- src/Requests/V13/WebshopRequest.php | 6 +- src/Requests/V14/ProductRequest.php | 20 +-- src/Requests/V20/DeliveryRequest.php | 6 +- src/Requests/V20/OrderRequest.php | 8 +- src/Requests/V20/ProductRequest.php | 10 +- src/Requests/V20/ProductTemplateRequest.php | 2 +- src/Requests/V20/StockRequest.php | 10 +- 46 files changed, 800 insertions(+), 800 deletions(-) diff --git a/generator/Helpers.php b/generator/Helpers.php index b396634..bb317c5 100644 --- a/generator/Helpers.php +++ b/generator/Helpers.php @@ -63,12 +63,12 @@ public static function resolveParameterType(Schema|Reference $property): string } elseif ('object' === $property->type) { $properties = []; foreach ($property->properties as $parameterName => $propertyValue) { - $properties[] = \sprintf('%s?: %s%s', $parameterName, self::resolveParameterType($propertyValue), $propertyValue->nullable ?? false ? '|null' : ''); + $properties[] = \sprintf('%s?: %s', $parameterName, self::resolveParameterType($propertyValue)); } $type = \sprintf('array{%s}', implode(', ', $properties)); } else { - $type = $property->type; + $type = $property->type.($property->nullable ? '|null' : ''); } return $type; @@ -88,7 +88,7 @@ public static function makePhpDoc(array $properties, string $format): array } if ($property instanceof Schema) { - $parameters[] = \sprintf($format, \sprintf('%s?: %s|null', $name, self::resolveParameterType($property))); + $parameters[] = \sprintf($format, \sprintf('%s?: %s', $name, self::resolveParameterType($property))); } } diff --git a/src/Requests/V10/AppointmentRequest.php b/src/Requests/V10/AppointmentRequest.php index 2ffd5d0..71f0e81 100644 --- a/src/Requests/V10/AppointmentRequest.php +++ b/src/Requests/V10/AppointmentRequest.php @@ -13,8 +13,8 @@ class AppointmentRequest extends Request { /** * @param array{ - * SkipRecords?: int|null, - * TakeRecords?: int|null, + * SkipRecords?: int, + * TakeRecords?: int, * } $parameters * * @return \Generator @@ -33,7 +33,7 @@ public function getAgendas(array $parameters = []): \Generator /** * @param array{ * Subject?: string|null, - * AppointmentIds?: array|null, + * AppointmentIds?: array, * HasITS?: bool|null, * ITS_Id?: int|null, * DebtorId?: int|null, @@ -43,8 +43,8 @@ public function getAgendas(array $parameters = []): \Generator * TaskForUserId?: int|null, * StartDateTimeFrom?: string|null, * StartDateTimeUntil?: string|null, - * SkipRecords?: int|null, - * TakeRecords?: int|null, + * SkipRecords?: int, + * TakeRecords?: int, * } $parameters * * @return \Generator diff --git a/src/Requests/V10/BackOfficeRequest.php b/src/Requests/V10/BackOfficeRequest.php index d3c682d..215bac0 100644 --- a/src/Requests/V10/BackOfficeRequest.php +++ b/src/Requests/V10/BackOfficeRequest.php @@ -29,7 +29,7 @@ public function getDatabaseConfiguration( * Maak een nieuwe taak aan. * * @param array{ - * Type?: string|null, + * Type?: string, * SerializedJson?: string|null, * } $parameters * diff --git a/src/Requests/V10/BuyOrderDeliveryRequest.php b/src/Requests/V10/BuyOrderDeliveryRequest.php index 65738a5..663cfea 100644 --- a/src/Requests/V10/BuyOrderDeliveryRequest.php +++ b/src/Requests/V10/BuyOrderDeliveryRequest.php @@ -18,14 +18,14 @@ class BuyOrderDeliveryRequest extends Request * Maak een nieuwe inkooplevering aan of update een bestaande. * * @param array{ - * ProcessMutationButDoNotCreatePickbon?: bool|null, - * Status?: string|null, + * ProcessMutationButDoNotCreatePickbon?: bool, + * Status?: string, * SupplierId?: int|null, * BuyOrderId?: int|null, * Remarks?: string|null, * Description?: string|null, * BranchId?: int|null, - * Rows?: array|null, + * Rows?: array, * PickingListNumber?: string|null, * } $parameters * @@ -47,14 +47,14 @@ public function createBuyOrderDelivery( * * @param array{ * OrderId?: int|null, - * ProcessMutationButDoNotCreatePickbon?: bool|null, - * Status?: string|null, + * ProcessMutationButDoNotCreatePickbon?: bool, + * Status?: string, * SupplierId?: int|null, * BuyOrderId?: int|null, * Remarks?: string|null, * Description?: string|null, * BranchId?: int|null, - * Rows?: array|null, + * Rows?: array, * PickingListNumber?: string|null, * } $parameters * diff --git a/src/Requests/V10/BuyOrderRequest.php b/src/Requests/V10/BuyOrderRequest.php index c8d4262..17df08f 100644 --- a/src/Requests/V10/BuyOrderRequest.php +++ b/src/Requests/V10/BuyOrderRequest.php @@ -18,15 +18,15 @@ class BuyOrderRequest extends Request * Voeg een nieuwe inkooporderregel aan een bestaande inkooporder. * * @param array{ - * BuyOrderId?: int|null, + * BuyOrderId?: int, * OrderId?: int|null, * ProductCode?: string|null, * ProductId?: int|null, - * Price?: number|null, + * Price?: number, * Description?: string|null, * ProductDesc2?: string|null, * ExpectedDeliveryDate?: string|null, - * QtyToOrder?: number|null, + * QtyToOrder?: number, * OrderedOnDateByDistributor?: string|null, * OrderRowId?: int|null, * InternalNote?: string|null, @@ -47,10 +47,10 @@ public function addBuyOrderRow(array $parameters = []): BooleanLogic4Response * Voeg een nieuwe inkooporderregel toe of update een bestaande regel. * * @param array{ - * BuyOrderRowId?: int|null, - * BuyOrderId?: int|null, + * BuyOrderRowId?: int, + * BuyOrderId?: int, * DebtorName?: string|null, - * QtyToDeliver?: number|null, + * QtyToDeliver?: number, * CreditorProductCode?: string|null, * ProductDesc1?: string|null, * StandardAmountQTY?: number|null, @@ -59,11 +59,11 @@ public function addBuyOrderRow(array $parameters = []): BooleanLogic4Response * OrderId?: int|null, * ProductCode?: string|null, * ProductId?: int|null, - * Price?: number|null, + * Price?: number, * Description?: string|null, * ProductDesc2?: string|null, * ExpectedDeliveryDate?: string|null, - * QtyToOrder?: number|null, + * QtyToOrder?: number, * OrderedOnDateByDistributor?: string|null, * OrderRowId?: int|null, * InternalNote?: string|null, @@ -87,10 +87,10 @@ public function addUpdateBuyOrderRow( * Maak een nieuwe inkooporder. * * @param array{ - * CreditorId?: int|null, - * DatabaseAdministrationId?: int|null, - * CreatedAt?: string|null, - * BuyOrderRows?: array|null, + * CreditorId?: int, + * DatabaseAdministrationId?: int, + * CreatedAt?: string, + * BuyOrderRows?: array, * Remarks?: string|null, * BranchId?: int|null, * OrderId?: int|null, @@ -155,7 +155,7 @@ public function getBuyOrderRowsByFilter( * Haal per artikel openstaande inkoopordersregels op o.b.v. het meegestuurde filter. * * @param array{ - * ProductIds?: array|null, + * ProductIds?: array, * Dropshipment?: bool|null, * MinimumDeliveryDate?: string|null, * } $parameters @@ -207,12 +207,12 @@ public function getBuyOrders( * Wijzig een bestaande inkooporder. * * @param array{ - * Id?: int|null, - * CreditorId?: int|null, + * Id?: int, + * CreditorId?: int, * Remarks?: string|null, * BranchId?: int|null, - * BuyOrderClosed?: bool|null, - * CreatedAt?: string|null, + * BuyOrderClosed?: bool, + * CreatedAt?: string, * } $parameters * * @throws Logic4ApiException @@ -231,15 +231,15 @@ public function updateBuyOrder( * Update een bestaande inkooporderregel. * * @param array{ - * BuyOrderRowId?: int|null, + * BuyOrderRowId?: int, * OrderId?: int|null, * ProductCode?: string|null, * ProductId?: int|null, - * Price?: number|null, + * Price?: number, * Description?: string|null, * ProductDesc2?: string|null, * ExpectedDeliveryDate?: string|null, - * QtyToOrder?: number|null, + * QtyToOrder?: number, * OrderedOnDateByDistributor?: string|null, * OrderRowId?: int|null, * InternalNote?: string|null, diff --git a/src/Requests/V10/CRMRequest.php b/src/Requests/V10/CRMRequest.php index 2a919fc..b3f1e4b 100644 --- a/src/Requests/V10/CRMRequest.php +++ b/src/Requests/V10/CRMRequest.php @@ -22,8 +22,8 @@ class CRMRequest extends Request * CrmProjectId?: int|null, * CreatedDateFrom?: string|null, * CreatedDateTo?: string|null, - * StatusIds?: array|null, - * CreatedByUserIds?: array|null, + * StatusIds?: array, + * CreatedByUserIds?: array, * CarriedOutByUserId?: int|null, * StartDateFrom?: string|null, * StartDateTo?: string|null, @@ -34,7 +34,7 @@ class CRMRequest extends Request * CrmProjectName?: string|null, * ShowOnlyOpenActivities?: bool|null, * UserIdForRights?: int|null, - * CarriedOutByUserIds?: array|null, + * CarriedOutByUserIds?: array, * } $parameters * * @throws Logic4ApiException @@ -86,8 +86,8 @@ public function getCRMActivityTypes(): CRMActivityTypeLogic4ResponseList * CrmProjectId?: int|null, * StartDate?: string|null, * EndDate?: string|null, - * StatusIds?: array|null, - * ResponsibleUserIds?: array|null, + * StatusIds?: array, + * ResponsibleUserIds?: array, * Name?: string|null, * TypeId?: int|null, * UserIdForRights?: int|null, diff --git a/src/Requests/V10/DeliveryRequest.php b/src/Requests/V10/DeliveryRequest.php index 4c8ab3f..e405a39 100644 --- a/src/Requests/V10/DeliveryRequest.php +++ b/src/Requests/V10/DeliveryRequest.php @@ -15,7 +15,7 @@ class DeliveryRequest extends Request * Maak een nieuwe uitlevering aan o.b.v. opgestuurde orderregels. Het systeem bepaalt automatisch vanaf welke voorraadlocatie de voorraad afgeboekt wordt. * * @param array{ - * DeliveryRows?: array|null, + * DeliveryRows?: array, * } $parameters * * @throws Logic4ApiException @@ -40,8 +40,8 @@ public function createDeliveryForOrderRows( * OrderStatusId?: int|null, * BranchId?: int|null, * WebsiteDomainId?: int|null, - * Skip?: int|null, - * Take?: int|null, + * Skip?: int, + * Take?: int, * } $parameters * * @return \Generator diff --git a/src/Requests/V10/EmailRequest.php b/src/Requests/V10/EmailRequest.php index 24347e0..4b85ec2 100644 --- a/src/Requests/V10/EmailRequest.php +++ b/src/Requests/V10/EmailRequest.php @@ -19,11 +19,11 @@ class EmailRequest extends Request { /** * @param array{ - * Id?: int|null, - * EmailMessageId?: int|null, + * Id?: int, + * EmailMessageId?: int, * Name?: string|null, * ContentId?: string|null, - * IsEmbeddedContent?: bool|null, + * IsEmbeddedContent?: bool, * } $parameters * * @throws Logic4ApiException @@ -40,11 +40,11 @@ public function addEmailAttachment( /** * @param array $parameters * * @throws Logic4ApiException @@ -64,14 +64,14 @@ public function addEmailAttachments( * Als het om een submap van de inbox gaat worden deze rechten overgenomen. * * @param array{ - * Id?: int|null, + * Id?: int, * Name?: string|null, * ParentId?: int|null, - * UserCanRead?: bool|null, - * UserCanDelete?: bool|null, - * SortId?: int|null, - * NewMessages?: int|null, - * HasEmails?: bool|null, + * UserCanRead?: bool, + * UserCanDelete?: bool, + * SortId?: int, + * NewMessages?: int, + * HasEmails?: bool, * } $parameters * * @throws Logic4ApiException @@ -87,22 +87,22 @@ public function addEmailBox(array $parameters = []): BooleanLogic4Response /** * @param array{ - * Id?: int|null, + * Id?: int, * Subject?: string|null, * EmailBody?: string|null, - * IsHTMLBody?: bool|null, - * BoxId?: int|null, - * DateTimeSend?: string|null, - * IsInbound?: bool|null, - * IsRead?: bool|null, + * IsHTMLBody?: bool, + * BoxId?: int, + * DateTimeSend?: string, + * IsInbound?: bool, + * IsRead?: bool, * IsReplyedOn?: string|null, * IsForwardedOn?: string|null, - * Status?: array{Id?: int, Name?: string|null, Color?: int}|null, - * ToEmailAddresses?: array|null, - * FromEmailAddress?: array{Name?: string|null, Email?: string|null}|null, - * CCEmailAddresses?: array|null, - * BCCEmailAddresses?: array|null, - * HasAttachment?: bool|null, + * Status?: array{Id?: int, Name?: string|null, Color?: int}, + * ToEmailAddresses?: array, + * FromEmailAddress?: array{Name?: string|null, Email?: string|null}, + * CCEmailAddresses?: array, + * BCCEmailAddresses?: array, + * HasAttachment?: bool, * PreviousEmailId?: int|null, * CanDelete?: bool|null, * } $parameters @@ -158,11 +158,11 @@ public function deleteEmailMessage(int $value): BooleanLogic4Response /** * @param array{ - * EmailIds?: array|null, + * EmailIds?: array, * EmailBoxId?: int|null, * EmailStatusId?: int|null, * IsRead?: bool|null, - * Action?: string|null, + * Action?: string, * } $parameters * * @throws Logic4ApiException @@ -179,7 +179,7 @@ public function emailMessagesAction( /** * @param array{ - * EmailMessageId?: int|null, + * EmailMessageId?: int, * } $parameters * * @throws Logic4ApiException @@ -233,8 +233,8 @@ public function getEmailBoxes( * GetEmailMessageBody?: bool|null, * SkipRecords?: int|null, * TakeRecords?: int|null, - * OrderByNewestFirst?: bool|null, - * LoadRights?: bool|null, + * OrderByNewestFirst?: bool, + * LoadRights?: bool, * } $parameters * * @return \Generator @@ -290,14 +290,14 @@ public function getUsedEmailAddresses(): EmailAddressLogic4ResponseList * Update een emailbox o.b.v. meegestuurde user Id. * * @param array{ - * Id?: int|null, + * Id?: int, * Name?: string|null, * ParentId?: int|null, - * UserCanRead?: bool|null, - * UserCanDelete?: bool|null, - * SortId?: int|null, - * NewMessages?: int|null, - * HasEmails?: bool|null, + * UserCanRead?: bool, + * UserCanDelete?: bool, + * SortId?: int, + * NewMessages?: int, + * HasEmails?: bool, * } $parameters * * @throws Logic4ApiException @@ -313,22 +313,22 @@ public function updateEmailBox(array $parameters = []): BooleanLogic4Response /** * @param array{ - * Id?: int|null, + * Id?: int, * Subject?: string|null, * EmailBody?: string|null, - * IsHTMLBody?: bool|null, - * BoxId?: int|null, - * DateTimeSend?: string|null, - * IsInbound?: bool|null, - * IsRead?: bool|null, + * IsHTMLBody?: bool, + * BoxId?: int, + * DateTimeSend?: string, + * IsInbound?: bool, + * IsRead?: bool, * IsReplyedOn?: string|null, * IsForwardedOn?: string|null, - * Status?: array{Id?: int, Name?: string|null, Color?: int}|null, - * ToEmailAddresses?: array|null, - * FromEmailAddress?: array{Name?: string|null, Email?: string|null}|null, - * CCEmailAddresses?: array|null, - * BCCEmailAddresses?: array|null, - * HasAttachment?: bool|null, + * Status?: array{Id?: int, Name?: string|null, Color?: int}, + * ToEmailAddresses?: array, + * FromEmailAddress?: array{Name?: string|null, Email?: string|null}, + * CCEmailAddresses?: array, + * BCCEmailAddresses?: array, + * HasAttachment?: bool, * PreviousEmailId?: int|null, * CanDelete?: bool|null, * } $parameters diff --git a/src/Requests/V10/ExplodedViewRequest.php b/src/Requests/V10/ExplodedViewRequest.php index daa72d8..4bd4401 100644 --- a/src/Requests/V10/ExplodedViewRequest.php +++ b/src/Requests/V10/ExplodedViewRequest.php @@ -14,13 +14,13 @@ class ExplodedViewRequest extends Request * Verkrijg exploded view o.b.v. het meegestuurde filter. * * @param array{ - * ExplodedViewIds?: array|null, - * ProductGroupIds?: array|null, - * ProductIds?: array|null, - * GlobalisationIds?: array|null, + * ExplodedViewIds?: array, + * ProductGroupIds?: array, + * ProductIds?: array, + * GlobalisationIds?: array, * WebsiteDomainId?: int|null, - * SkipRecords?: int|null, - * TakeRecords?: int|null, + * SkipRecords?: int, + * TakeRecords?: int, * } $parameters * * @return \Generator diff --git a/src/Requests/V10/FinancialRequest.php b/src/Requests/V10/FinancialRequest.php index 7c780f0..ff055ca 100644 --- a/src/Requests/V10/FinancialRequest.php +++ b/src/Requests/V10/FinancialRequest.php @@ -33,11 +33,11 @@ class FinancialRequest extends Request * FreeValue1?: string|null, * FreeValue2?: string|null, * FreeValue3?: string|null, - * Reference?: string|null, - * BookingDateTime?: string|null, - * FinancialBookId?: int|null, + * Reference?: string, + * BookingDateTime?: string, + * FinancialBookId?: int, * JournalStatusId?: int|null, - * Mutations?: array|null, + * Mutations?: array, * } $parameters * * @throws Logic4ApiException @@ -61,11 +61,11 @@ public function addFinancialBookingWithMutations( * FreeValue1?: string|null, * FreeValue2?: string|null, * FreeValue3?: string|null, - * Reference?: string|null, - * BookingDateTime?: string|null, - * FinancialBookId?: int|null, + * Reference?: string, + * BookingDateTime?: string, + * FinancialBookId?: int, * JournalStatusId?: int|null, - * Mutations?: array|null, + * Mutations?: array, * } $parameters * * @throws Logic4ApiException @@ -103,8 +103,8 @@ public function getBookingStatusTypes( * FinancialBookId?: int|null, * BookingDateTimeFrom?: string|null, * BookingDateTimeTo?: string|null, - * SkipRecords?: int|null, - * TakeRecords?: int|null, + * SkipRecords?: int, + * TakeRecords?: int, * Reference?: string|null, * UserId?: int|null, * BookingNumberByUser?: int|null, @@ -159,8 +159,8 @@ public function getFinancialBooks( * LedgerCode?: int|null, * DateTimeFrom?: string|null, * DateTimeTo?: string|null, - * SkipRecords?: int|null, - * TakeRecords?: int|null, + * SkipRecords?: int, + * TakeRecords?: int, * } $parameters * * @return \Generator @@ -304,8 +304,8 @@ public function getVatCodes(): VatCodeLogic4ResponseList * * @param array{ * Xml?: string|null, - * BookId?: int|null, - * StatusId?: int|null, + * BookId?: int, + * StatusId?: int, * UserId?: int|null, * CreditorId?: int|null, * } $parameters @@ -326,8 +326,8 @@ public function postUblInvoiceToBuyBooking( * Voor deze aanroep zijn extra rechten vereist. * * @param array{ - * BookingId?: int|null, - * StatusId?: int|null, + * BookingId?: int, + * StatusId?: int, * } $parameters * * @throws Logic4ApiException diff --git a/src/Requests/V10/HRMRequest.php b/src/Requests/V10/HRMRequest.php index 88bff5f..206cde8 100644 --- a/src/Requests/V10/HRMRequest.php +++ b/src/Requests/V10/HRMRequest.php @@ -14,18 +14,18 @@ class HRMRequest extends Request * Voeg urenregistraties toe in batch. * * @param array $parameters * diff --git a/src/Requests/V10/ManagementRequest.php b/src/Requests/V10/ManagementRequest.php index 18b8f26..224dc58 100644 --- a/src/Requests/V10/ManagementRequest.php +++ b/src/Requests/V10/ManagementRequest.php @@ -17,12 +17,12 @@ class ManagementRequest extends Request * Verkrijg van één of meerdere artikelen verkoop gegevens zoals verkoopaantallen, over een bepaalde periode (dag/week/maand/kwartaal/jaar). * * @param array{ - * TimeFrame?: string|null, - * HistoryPoints?: int|null, - * ProductCodes?: array|null, - * IncludingCurrentPeriod?: bool|null, - * ExcludeDebtorIds?: array|null, - * WebSiteDomainsIds?: array|null, + * TimeFrame?: string, + * HistoryPoints?: int, + * ProductCodes?: array, + * IncludingCurrentPeriod?: bool, + * ExcludeDebtorIds?: array, + * WebSiteDomainsIds?: array, * } $parameters * * @throws Logic4ApiException @@ -41,23 +41,23 @@ public function getProductCollectionSalesInformation( * Omzet van een bepaalde periode (Facturen/open orders/abonnementen). * * @param array{ - * TimeFrame?: string|null, - * IncludingCurrentPeriod?: bool|null, - * HistoryPoints?: int|null, + * TimeFrame?: string, + * IncludingCurrentPeriod?: bool, + * HistoryPoints?: int, * IncludeOffers?: bool|null, * IncludeOpenOrders?: bool|null, * IncludeOrders?: bool|null, * IncludeSubscriptions?: bool|null, * IncludeInvoices?: bool|null, * Year?: int|null, - * WebSiteDomainsIds?: array|null, - * TypeContactGroupsIds?: array|null, - * ExcludingDebtors?: array|null, - * OnlyForExcludingDebtors?: bool|null, - * NotLinkedToWebsiteDomain?: bool|null, - * EmployeeIds?: array|null, - * BranchIds?: array|null, - * ProductGroupsIds?: array|null, + * WebSiteDomainsIds?: array, + * TypeContactGroupsIds?: array, + * ExcludingDebtors?: array, + * OnlyForExcludingDebtors?: bool, + * NotLinkedToWebsiteDomain?: bool, + * EmployeeIds?: array, + * BranchIds?: array, + * ProductGroupsIds?: array, * } $parameters * * @throws Logic4ApiException @@ -76,23 +76,23 @@ public function getReportingGetSalesHistory( * Omzet o.b.v. order/factuur regels voor een bepaalde periode. * * @param array{ - * TimeFrame?: string|null, - * IncludingCurrentPeriod?: bool|null, - * HistoryPoints?: int|null, + * TimeFrame?: string, + * IncludingCurrentPeriod?: bool, + * HistoryPoints?: int, * IncludeOffers?: bool|null, * IncludeOpenOrders?: bool|null, * IncludeOrders?: bool|null, * IncludeSubscriptions?: bool|null, * IncludeInvoices?: bool|null, * Year?: int|null, - * WebSiteDomainsIds?: array|null, - * TypeContactGroupsIds?: array|null, - * ExcludingDebtors?: array|null, - * OnlyForExcludingDebtors?: bool|null, - * NotLinkedToWebsiteDomain?: bool|null, - * EmployeeIds?: array|null, - * BranchIds?: array|null, - * ProductGroupsIds?: array|null, + * WebSiteDomainsIds?: array, + * TypeContactGroupsIds?: array, + * ExcludingDebtors?: array, + * OnlyForExcludingDebtors?: bool, + * NotLinkedToWebsiteDomain?: bool, + * EmployeeIds?: array, + * BranchIds?: array, + * ProductGroupsIds?: array, * } $parameters * * @throws Logic4ApiException @@ -111,23 +111,23 @@ public function getReportingGetSalesHistoryForOrderRows( * Omzet van een bepaalde periode per type contact groep (Facturen/open orders/abonnementen). * * @param array{ - * TimeFrame?: string|null, - * IncludingCurrentPeriod?: bool|null, - * HistoryPoints?: int|null, + * TimeFrame?: string, + * IncludingCurrentPeriod?: bool, + * HistoryPoints?: int, * IncludeOffers?: bool|null, * IncludeOpenOrders?: bool|null, * IncludeOrders?: bool|null, * IncludeSubscriptions?: bool|null, * IncludeInvoices?: bool|null, * Year?: int|null, - * WebSiteDomainsIds?: array|null, - * TypeContactGroupsIds?: array|null, - * ExcludingDebtors?: array|null, - * OnlyForExcludingDebtors?: bool|null, - * NotLinkedToWebsiteDomain?: bool|null, - * EmployeeIds?: array|null, - * BranchIds?: array|null, - * ProductGroupsIds?: array|null, + * WebSiteDomainsIds?: array, + * TypeContactGroupsIds?: array, + * ExcludingDebtors?: array, + * OnlyForExcludingDebtors?: bool, + * NotLinkedToWebsiteDomain?: bool, + * EmployeeIds?: array, + * BranchIds?: array, + * ProductGroupsIds?: array, * } $parameters * * @throws Logic4ApiException @@ -146,27 +146,27 @@ public function getReportingGetSalesHistoryForTypeContactGroups( * Grootboek omzet en budgetten. * * @param array{ - * LedgerCodes?: array|null, - * GetOnlyMutationTotal?: bool|null, - * CreditCorrection?: bool|null, - * LedgerColumnTypeIds?: array|null, - * TimeFrame?: string|null, - * IncludingCurrentPeriod?: bool|null, - * HistoryPoints?: int|null, + * LedgerCodes?: array, + * GetOnlyMutationTotal?: bool, + * CreditCorrection?: bool, + * LedgerColumnTypeIds?: array, + * TimeFrame?: string, + * IncludingCurrentPeriod?: bool, + * HistoryPoints?: int, * IncludeOffers?: bool|null, * IncludeOpenOrders?: bool|null, * IncludeOrders?: bool|null, * IncludeSubscriptions?: bool|null, * IncludeInvoices?: bool|null, * Year?: int|null, - * WebSiteDomainsIds?: array|null, - * TypeContactGroupsIds?: array|null, - * ExcludingDebtors?: array|null, - * OnlyForExcludingDebtors?: bool|null, - * NotLinkedToWebsiteDomain?: bool|null, - * EmployeeIds?: array|null, - * BranchIds?: array|null, - * ProductGroupsIds?: array|null, + * WebSiteDomainsIds?: array, + * TypeContactGroupsIds?: array, + * ExcludingDebtors?: array, + * OnlyForExcludingDebtors?: bool, + * NotLinkedToWebsiteDomain?: bool, + * EmployeeIds?: array, + * BranchIds?: array, + * ProductGroupsIds?: array, * } $parameters * * @throws Logic4ApiException @@ -185,23 +185,23 @@ public function getReportingLedgerHistoryAndBudget( * Omzet van huidige jaar o.b.v. facturen (Let op! er wordt geen rekening gehouden met de geschiedenispunten). * * @param array{ - * TimeFrame?: string|null, - * IncludingCurrentPeriod?: bool|null, - * HistoryPoints?: int|null, + * TimeFrame?: string, + * IncludingCurrentPeriod?: bool, + * HistoryPoints?: int, * IncludeOffers?: bool|null, * IncludeOpenOrders?: bool|null, * IncludeOrders?: bool|null, * IncludeSubscriptions?: bool|null, * IncludeInvoices?: bool|null, * Year?: int|null, - * WebSiteDomainsIds?: array|null, - * TypeContactGroupsIds?: array|null, - * ExcludingDebtors?: array|null, - * OnlyForExcludingDebtors?: bool|null, - * NotLinkedToWebsiteDomain?: bool|null, - * EmployeeIds?: array|null, - * BranchIds?: array|null, - * ProductGroupsIds?: array|null, + * WebSiteDomainsIds?: array, + * TypeContactGroupsIds?: array, + * ExcludingDebtors?: array, + * OnlyForExcludingDebtors?: bool, + * NotLinkedToWebsiteDomain?: bool, + * EmployeeIds?: array, + * BranchIds?: array, + * ProductGroupsIds?: array, * } $parameters * * @throws Logic4ApiException @@ -220,10 +220,10 @@ public function getSalesTotalIncludingOrdersAndRepeating( * Top 10 filialen (dag/week/maand/kwartaal/jaar). * * @param array{ - * TimeFrame?: string|null, - * IncludingCurrentPeriod?: bool|null, - * ExcludeDebtorIds?: array|null, - * WebSiteDomainsIds?: array|null, + * TimeFrame?: string, + * IncludingCurrentPeriod?: bool, + * ExcludeDebtorIds?: array, + * WebSiteDomainsIds?: array, * } $parameters * * @throws Logic4ApiException @@ -242,10 +242,10 @@ public function getTop10Branches( * Top 10 klanten (dag/week/maand/kwartaal/jaar). * * @param array{ - * TimeFrame?: string|null, - * IncludingCurrentPeriod?: bool|null, - * ExcludeDebtorIds?: array|null, - * WebSiteDomainsIds?: array|null, + * TimeFrame?: string, + * IncludingCurrentPeriod?: bool, + * ExcludeDebtorIds?: array, + * WebSiteDomainsIds?: array, * } $parameters * * @throws Logic4ApiException @@ -264,10 +264,10 @@ public function getTop10Debtors( * Top 10 productgroepen (dag/week/maand/kwartaal/jaar). * * @param array{ - * TimeFrame?: string|null, - * IncludingCurrentPeriod?: bool|null, - * ExcludeDebtorIds?: array|null, - * WebSiteDomainsIds?: array|null, + * TimeFrame?: string, + * IncludingCurrentPeriod?: bool, + * ExcludeDebtorIds?: array, + * WebSiteDomainsIds?: array, * } $parameters * * @throws Logic4ApiException @@ -286,10 +286,10 @@ public function getTop10Productgroups( * Top 10 artikelen (dag/week/maand/kwartaal/jaar). * * @param array{ - * TimeFrame?: string|null, - * IncludingCurrentPeriod?: bool|null, - * ExcludeDebtorIds?: array|null, - * WebSiteDomainsIds?: array|null, + * TimeFrame?: string, + * IncludingCurrentPeriod?: bool, + * ExcludeDebtorIds?: array, + * WebSiteDomainsIds?: array, * } $parameters * * @throws Logic4ApiException @@ -308,10 +308,10 @@ public function getTop10Products( * Top 10 provincies (dag/week/maand/kwartaal/jaar). * * @param array{ - * TimeFrame?: string|null, - * IncludingCurrentPeriod?: bool|null, - * ExcludeDebtorIds?: array|null, - * WebSiteDomainsIds?: array|null, + * TimeFrame?: string, + * IncludingCurrentPeriod?: bool, + * ExcludeDebtorIds?: array, + * WebSiteDomainsIds?: array, * } $parameters * * @throws Logic4ApiException @@ -330,10 +330,10 @@ public function getTop10Provinces( * Top 10 medewerkers (dag/week/maand/kwartaal/jaar). * * @param array{ - * TimeFrame?: string|null, - * IncludingCurrentPeriod?: bool|null, - * ExcludeDebtorIds?: array|null, - * WebSiteDomainsIds?: array|null, + * TimeFrame?: string, + * IncludingCurrentPeriod?: bool, + * ExcludeDebtorIds?: array, + * WebSiteDomainsIds?: array, * } $parameters * * @throws Logic4ApiException diff --git a/src/Requests/V10/OrderRequest.php b/src/Requests/V10/OrderRequest.php index 2a0d4b7..fc664b6 100644 --- a/src/Requests/V10/OrderRequest.php +++ b/src/Requests/V10/OrderRequest.php @@ -26,8 +26,8 @@ class OrderRequest extends Request { /** * @param array{ - * SerialNumberTypeId?: int|null, - * OrderRowSerialNumbers?: array|null, + * SerialNumberTypeId?: int, + * OrderRowSerialNumbers?: array, * } $parameters * * @throws Logic4ApiException @@ -48,10 +48,10 @@ public function addOrderRowSerialNumbers( * @param array{ * OrderId?: int|null, * InvoiceId?: int|null, - * AmountIncl?: number|null, - * Description?: string|null, - * BookingId?: int|null, - * MatchingLedgerId?: int|null, + * AmountIncl?: number, + * Description?: string, + * BookingId?: int, + * MatchingLedgerId?: int, * DateTime?: string|null, * LedgerCode?: int|null, * } $parameters @@ -73,19 +73,19 @@ public function addPayment(array $parameters = []): BooleanLogic4Response * Bij het succesvol aanmaken/updaten wordt het (nieuwe) factuurnummer in de response gevuld. * * @param array{ - * CheckForOrderCostAndPaymentRegulation?: bool|null, + * CheckForOrderCostAndPaymentRegulation?: bool, * DebtorId?: int|null, - * CustomerThirdPartyExternalIdentifer?: array{DebtorId?: int|null, TypeId?: int|null, Value?: string|null}|null, + * CustomerThirdPartyExternalIdentifer?: array{DebtorId?: int|null, TypeId?: int|null, Value?: string|null}, * Id?: int|null, - * PaymentMethod?: array{Id?: int, Description?: string|null, MaxAmount?: number|null, SelectKey?: string|null}|null, - * ShippingMethod?: array{Id?: int, Name?: string|null, ExportCode?: string|null}|null, - * Totals?: array{AmountEx?: number, VATPercentage?: number, Calc_TotalPayed?: number|null, AmountIncl?: number, IsPaid?: bool, ShippingCost?: number, ShippingCostIncl?: number|null}|null, - * OrderStatus?: array{Id?: int, Value?: string|null}|null, - * OrderRows?: array|null, - * AcceptTermsAndConditions?: bool|null, - * DeliveryAddress?: array{Type?: array{Id?: int, Name?: string|null}, Province?: array{Id?: int, Name?: string|null}, Email?: string|null, ContactName?: string|null, CompanyName?: string|null, Address1?: string|null, Address2?: string|null, Id?: int|null, DebtorId?: int|null, CreditorId?: int|null, IsMainContact?: bool, IsHidden?: bool|null, OwnContactNumber?: string|null, CountryCode?: string|null, IsoCode?: string|null, City?: string|null, Zipcode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null, TelephoneNumber?: string|null, CountryId?: int, ZoneId?: int}|null, - * InvoiceAddress?: array{Type?: array{Id?: int, Name?: string|null}, Province?: array{Id?: int, Name?: string|null}, Email?: string|null, ContactName?: string|null, CompanyName?: string|null, Address1?: string|null, Address2?: string|null, Id?: int|null, DebtorId?: int|null, CreditorId?: int|null, IsMainContact?: bool, IsHidden?: bool|null, OwnContactNumber?: string|null, CountryCode?: string|null, IsoCode?: string|null, City?: string|null, Zipcode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null, TelephoneNumber?: string|null, CountryId?: int, ZoneId?: int}|null, - * CreationDate?: string|null, + * PaymentMethod?: array{Id?: int, Description?: string|null, MaxAmount?: number|null, SelectKey?: string|null}, + * ShippingMethod?: array{Id?: int, Name?: string|null, ExportCode?: string|null}, + * Totals?: array{AmountEx?: number, VATPercentage?: number, Calc_TotalPayed?: number|null, AmountIncl?: number, IsPaid?: bool, ShippingCost?: number, ShippingCostIncl?: number|null}, + * OrderStatus?: array{Id?: int, Value?: string|null}, + * OrderRows?: array, + * AcceptTermsAndConditions?: bool, + * DeliveryAddress?: array{Type?: array{Id?: int, Name?: string|null}, Province?: array{Id?: int, Name?: string|null}, Email?: string|null, ContactName?: string|null, CompanyName?: string|null, Address1?: string|null, Address2?: string|null, Id?: int|null, DebtorId?: int|null, CreditorId?: int|null, IsMainContact?: bool, IsHidden?: bool|null, OwnContactNumber?: string|null, CountryCode?: string|null, IsoCode?: string|null, City?: string|null, Zipcode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null, TelephoneNumber?: string|null, CountryId?: int, ZoneId?: int}, + * InvoiceAddress?: array{Type?: array{Id?: int, Name?: string|null}, Province?: array{Id?: int, Name?: string|null}, Email?: string|null, ContactName?: string|null, CompanyName?: string|null, Address1?: string|null, Address2?: string|null, Id?: int|null, DebtorId?: int|null, CreditorId?: int|null, IsMainContact?: bool, IsHidden?: bool|null, OwnContactNumber?: string|null, CountryCode?: string|null, IsoCode?: string|null, City?: string|null, Zipcode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null, TelephoneNumber?: string|null, CountryId?: int, ZoneId?: int}, + * CreationDate?: string, * Description?: string|null, * Reference?: string|null, * BranchId?: int|null, @@ -93,7 +93,7 @@ public function addPayment(array $parameters = []): BooleanLogic4Response * WebsiteDomainId?: int|null, * DeliveryOptionId?: int|null, * DeliveryDate?: string|null, - * OrderShipmentFreeValues?: array{ShipperTypeId?: int, Freevalue1?: string|null, Freevalue2?: string|null, Freevalue3?: string|null, Freevalue4?: string|null, Freevalue5?: string|null}|null, + * OrderShipmentFreeValues?: array{ShipperTypeId?: int, Freevalue1?: string|null, Freevalue2?: string|null, Freevalue3?: string|null, Freevalue4?: string|null, Freevalue5?: string|null}, * Notes?: string|null, * FreeValue1?: string|null, * FreeValue2?: string|null, @@ -132,19 +132,19 @@ public function addUpdateInvoice(array $parameters = []): Int32Logic4Response * Bij het succesvol aanmaken/updaten wordt het (nieuwe) ordernummer in de response gevuld. * * @param array{ - * CheckForOrderCostAndPaymentRegulation?: bool|null, + * CheckForOrderCostAndPaymentRegulation?: bool, * DebtorId?: int|null, - * CustomerThirdPartyExternalIdentifer?: array{DebtorId?: int|null, TypeId?: int|null, Value?: string|null}|null, + * CustomerThirdPartyExternalIdentifer?: array{DebtorId?: int|null, TypeId?: int|null, Value?: string|null}, * Id?: int|null, - * PaymentMethod?: array{Id?: int, Description?: string|null, MaxAmount?: number|null, SelectKey?: string|null}|null, - * ShippingMethod?: array{Id?: int, Name?: string|null, ExportCode?: string|null}|null, - * Totals?: array{AmountEx?: number, VATPercentage?: number, Calc_TotalPayed?: number|null, AmountIncl?: number, IsPaid?: bool, ShippingCost?: number, ShippingCostIncl?: number|null}|null, - * OrderStatus?: array{Id?: int, Value?: string|null}|null, - * OrderRows?: array|null, - * AcceptTermsAndConditions?: bool|null, - * DeliveryAddress?: array{Type?: array{Id?: int, Name?: string|null}, Province?: array{Id?: int, Name?: string|null}, Email?: string|null, ContactName?: string|null, CompanyName?: string|null, Address1?: string|null, Address2?: string|null, Id?: int|null, DebtorId?: int|null, CreditorId?: int|null, IsMainContact?: bool, IsHidden?: bool|null, OwnContactNumber?: string|null, CountryCode?: string|null, IsoCode?: string|null, City?: string|null, Zipcode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null, TelephoneNumber?: string|null, CountryId?: int, ZoneId?: int}|null, - * InvoiceAddress?: array{Type?: array{Id?: int, Name?: string|null}, Province?: array{Id?: int, Name?: string|null}, Email?: string|null, ContactName?: string|null, CompanyName?: string|null, Address1?: string|null, Address2?: string|null, Id?: int|null, DebtorId?: int|null, CreditorId?: int|null, IsMainContact?: bool, IsHidden?: bool|null, OwnContactNumber?: string|null, CountryCode?: string|null, IsoCode?: string|null, City?: string|null, Zipcode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null, TelephoneNumber?: string|null, CountryId?: int, ZoneId?: int}|null, - * CreationDate?: string|null, + * PaymentMethod?: array{Id?: int, Description?: string|null, MaxAmount?: number|null, SelectKey?: string|null}, + * ShippingMethod?: array{Id?: int, Name?: string|null, ExportCode?: string|null}, + * Totals?: array{AmountEx?: number, VATPercentage?: number, Calc_TotalPayed?: number|null, AmountIncl?: number, IsPaid?: bool, ShippingCost?: number, ShippingCostIncl?: number|null}, + * OrderStatus?: array{Id?: int, Value?: string|null}, + * OrderRows?: array, + * AcceptTermsAndConditions?: bool, + * DeliveryAddress?: array{Type?: array{Id?: int, Name?: string|null}, Province?: array{Id?: int, Name?: string|null}, Email?: string|null, ContactName?: string|null, CompanyName?: string|null, Address1?: string|null, Address2?: string|null, Id?: int|null, DebtorId?: int|null, CreditorId?: int|null, IsMainContact?: bool, IsHidden?: bool|null, OwnContactNumber?: string|null, CountryCode?: string|null, IsoCode?: string|null, City?: string|null, Zipcode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null, TelephoneNumber?: string|null, CountryId?: int, ZoneId?: int}, + * InvoiceAddress?: array{Type?: array{Id?: int, Name?: string|null}, Province?: array{Id?: int, Name?: string|null}, Email?: string|null, ContactName?: string|null, CompanyName?: string|null, Address1?: string|null, Address2?: string|null, Id?: int|null, DebtorId?: int|null, CreditorId?: int|null, IsMainContact?: bool, IsHidden?: bool|null, OwnContactNumber?: string|null, CountryCode?: string|null, IsoCode?: string|null, City?: string|null, Zipcode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null, TelephoneNumber?: string|null, CountryId?: int, ZoneId?: int}, + * CreationDate?: string, * Description?: string|null, * Reference?: string|null, * BranchId?: int|null, @@ -152,7 +152,7 @@ public function addUpdateInvoice(array $parameters = []): Int32Logic4Response * WebsiteDomainId?: int|null, * DeliveryOptionId?: int|null, * DeliveryDate?: string|null, - * OrderShipmentFreeValues?: array{ShipperTypeId?: int, Freevalue1?: string|null, Freevalue2?: string|null, Freevalue3?: string|null, Freevalue4?: string|null, Freevalue5?: string|null}|null, + * OrderShipmentFreeValues?: array{ShipperTypeId?: int, Freevalue1?: string|null, Freevalue2?: string|null, Freevalue3?: string|null, Freevalue4?: string|null, Freevalue5?: string|null}, * Notes?: string|null, * FreeValue1?: string|null, * FreeValue2?: string|null, @@ -189,24 +189,24 @@ public function addUpdateOrder(array $parameters = []): Int32Logic4Response * Voeg een nieuwe orderregel toe of update een bestaande. Om een bestaande te updaten dient het veld 'Id' gevuld te zijn met een bestaand orderregelnummer. * * @param array{ - * OrderRowWithProductComposition?: array{AddProductCompositionByParentProductToOrder?: bool, UseSystemPricesForProductCompositionProducts?: bool}|null, + * OrderRowWithProductComposition?: array{AddProductCompositionByParentProductToOrder?: bool, UseSystemPricesForProductCompositionProducts?: bool}, * InclPrice?: number|null, * GrossInclPrice?: number|null, * Id?: int|null, * Description?: string|null, * Description2?: string|null, * ProductId?: int|null, - * Qty?: number|null, + * Qty?: number, * BuyPrice?: number|null, * GrossPrice?: number|null, * NettPrice?: number|null, - * QtyDeliverd?: number|null, - * QtyDeliverd_NotInvoiced?: number|null, + * QtyDeliverd?: number, + * QtyDeliverd_NotInvoiced?: number, * ProductCode?: string|null, * ProductBarcode1?: string|null, * VATPercentage?: number|null, * Notes?: string|null, - * DebtorId?: int|null, + * DebtorId?: int, * OrderId?: int|null, * WarehouseId?: int|null, * Commission?: string|null, @@ -219,7 +219,7 @@ public function addUpdateOrder(array $parameters = []): Int32Logic4Response * FreeValue4?: string|null, * FreeValue5?: string|null, * ExpectedNextDelivery?: string|null, - * ExternalValue?: array{TypeId?: int, Value?: string|null}|null, + * ExternalValue?: array{TypeId?: int, Value?: string|null}, * AgreedDeliveryDate?: string|null, * Type1Id?: int|null, * Type2Id?: int|null, @@ -263,26 +263,26 @@ public function createAndProcessInvoiceForOrder( * Specificeer een negatieve waarde voor Qty in elke orderregel. Bij het succesvol aanmaken bevat de response het nummer van de retourorder. * * @param array{ - * Totals?: array{AmountEx?: number, VATPercentage?: number, Calc_TotalPayed?: number|null, AmountIncl?: number, IsPaid?: bool, ShippingCost?: number, ShippingCostIncl?: number|null}|null, - * OriginalOrderId?: int|null, - * OriginalOrderDate?: string|null, - * OriginalOrderZipCode?: string|null, - * ProblemId?: int|null, - * SolutionId?: int|null, + * Totals?: array{AmountEx?: number, VATPercentage?: number, Calc_TotalPayed?: number|null, AmountIncl?: number, IsPaid?: bool, ShippingCost?: number, ShippingCostIncl?: number|null}, + * OriginalOrderId?: int, + * OriginalOrderDate?: string, + * OriginalOrderZipCode?: string, + * ProblemId?: int, + * SolutionId?: int, * ReceivedReturnOrderDate?: string|null, * ApprovedReturnOrderDate?: string|null, * DebtorId?: int|null, - * CustomerThirdPartyExternalIdentifer?: array{DebtorId?: int|null, TypeId?: int|null, Value?: string|null}|null, + * CustomerThirdPartyExternalIdentifer?: array{DebtorId?: int|null, TypeId?: int|null, Value?: string|null}, * Id?: int|null, - * PaymentMethod?: array{Id?: int, Description?: string|null, MaxAmount?: number|null, SelectKey?: string|null}|null, - * ShippingMethod?: array{Id?: int, Name?: string|null, ExportCode?: string|null}|null, - * CheckForOrderCostAndPaymentRegulation?: bool|null, - * OrderStatus?: array{Id?: int, Value?: string|null}|null, - * OrderRows?: array|null, - * AcceptTermsAndConditions?: bool|null, - * DeliveryAddress?: array{TelephoneNumber?: string|null, Email?: string|null, Street2?: string|null, HouseNumber2?: string|null, HouseNumberAddition2?: string|null, Id?: int|null, ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null}|null, - * InvoiceAddress?: array{Id?: int|null, ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null}|null, - * CreationDate?: string|null, + * PaymentMethod?: array{Id?: int, Description?: string|null, MaxAmount?: number|null, SelectKey?: string|null}, + * ShippingMethod?: array{Id?: int, Name?: string|null, ExportCode?: string|null}, + * CheckForOrderCostAndPaymentRegulation?: bool, + * OrderStatus?: array{Id?: int, Value?: string|null}, + * OrderRows?: array, + * AcceptTermsAndConditions?: bool, + * DeliveryAddress?: array{TelephoneNumber?: string|null, Email?: string|null, Street2?: string|null, HouseNumber2?: string|null, HouseNumberAddition2?: string|null, Id?: int|null, ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null}, + * InvoiceAddress?: array{Id?: int|null, ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null}, + * CreationDate?: string, * Description?: string|null, * Reference?: string|null, * BranchId?: int|null, @@ -290,7 +290,7 @@ public function createAndProcessInvoiceForOrder( * WebsiteDomainId?: int|null, * DeliveryOptionId?: int|null, * DeliveryDate?: string|null, - * OrderShipmentFreeValues?: array{ShipperTypeId?: int, Freevalue1?: string|null, Freevalue2?: string|null, Freevalue3?: string|null, Freevalue4?: string|null, Freevalue5?: string|null}|null, + * OrderShipmentFreeValues?: array{ShipperTypeId?: int, Freevalue1?: string|null, Freevalue2?: string|null, Freevalue3?: string|null, Freevalue4?: string|null, Freevalue5?: string|null}, * Notes?: string|null, * FreeValue1?: string|null, * FreeValue2?: string|null, @@ -333,8 +333,8 @@ public function createReturnOrder(array $parameters = []): Int32Logic4Response * TypeId?: int|null, * UserId?: int|null, * Description?: string|null, - * SkipRecords?: int|null, - * TakeRecords?: int|null, + * SkipRecords?: int, + * TakeRecords?: int, * } $parameters * * @return \Generator @@ -372,7 +372,7 @@ public function getAssemblyActionsTypes(): OrderActionTypeLogic4ResponseList * @param array{ * OrderId?: int|null, * BrandName?: string|null, - * LoadNextDeliveryDate?: bool|null, + * LoadNextDeliveryDate?: bool, * ChangedAfter?: string|null, * TakeRecords?: int|null, * FromId?: int|null, @@ -415,12 +415,12 @@ public function getInvoiceRows( * LastActionFrom?: string|null, * LastActionTo?: string|null, * Reference?: string|null, - * LoadPayments?: bool|null, + * LoadPayments?: bool, * StatusId?: int|null, * Type1Id?: int|null, * Type2Id?: int|null, * Type3Id?: int|null, - * WebsiteDomainIds?: array|null, + * WebsiteDomainIds?: array, * } $parameters * * @throws Logic4ApiException @@ -464,11 +464,11 @@ public function getOpenPaymentInvoices( * @param array{ * TimeFrame?: string|null, * HistoryPoints?: int|null, - * OrderstatusIds?: array|null, - * WebsiteDomainIds?: array|null, - * NotLinkedToWebsiteDomain?: bool|null, - * EmployeeIds?: array|null, - * BranchIds?: array|null, + * OrderstatusIds?: array, + * WebsiteDomainIds?: array, + * NotLinkedToWebsiteDomain?: bool, + * EmployeeIds?: array, + * BranchIds?: array, * } $parameters * * @throws Logic4ApiException @@ -491,11 +491,11 @@ public function getOpenPaymentOrders( * @param array{ * TimeFrame?: string|null, * HistoryPoints?: int|null, - * OrderstatusIds?: array|null, - * WebsiteDomainIds?: array|null, - * NotLinkedToWebsiteDomain?: bool|null, - * EmployeeIds?: array|null, - * BranchIds?: array|null, + * OrderstatusIds?: array, + * WebsiteDomainIds?: array, + * NotLinkedToWebsiteDomain?: bool, + * EmployeeIds?: array, + * BranchIds?: array, * } $parameters * * @throws Logic4ApiException @@ -553,10 +553,10 @@ public function getOrderActionsTypes(): OrderActionTypeLogic4ResponseList * OnlyCompleteForDelivery?: bool|null, * OnlyWithCompletePayment?: bool|null, * OrderStatus?: int|null, - * Warehouses?: array|null, + * Warehouses?: array, * MustHaveQtyToDeliverNowAboveZero?: bool|null, * HasPickbon?: bool|null, - * OnlyGetOrderIdsToCreatePickbonNow?: bool|null, + * OnlyGetOrderIdsToCreatePickbonNow?: bool, * ChangedAfter?: string|null, * } $parameters * @@ -579,7 +579,7 @@ public function getOrderIds(array $parameters = []): Int32Logic4ResponseList * @param array{ * OrderId?: int|null, * BrandName?: string|null, - * LoadNextDeliveryDate?: bool|null, + * LoadNextDeliveryDate?: bool, * ChangedAfter?: string|null, * TakeRecords?: int|null, * FromId?: int|null, @@ -622,12 +622,12 @@ public function getOrderRows( * LastActionFrom?: string|null, * LastActionTo?: string|null, * Reference?: string|null, - * LoadPayments?: bool|null, + * LoadPayments?: bool, * StatusId?: int|null, * Type1Id?: int|null, * Type2Id?: int|null, * Type3Id?: int|null, - * WebsiteDomainIds?: array|null, + * WebsiteDomainIds?: array, * } $parameters * * @throws Logic4ApiException @@ -700,12 +700,12 @@ public function getReturnCategories(): ReturnCategoryLogic4ResponseList * LastActionFrom?: string|null, * LastActionTo?: string|null, * Reference?: string|null, - * LoadPayments?: bool|null, + * LoadPayments?: bool, * StatusId?: int|null, * Type1Id?: int|null, * Type2Id?: int|null, * Type3Id?: int|null, - * WebsiteDomainIds?: array|null, + * WebsiteDomainIds?: array, * } $parameters * * @throws Logic4ApiException @@ -786,9 +786,9 @@ public function processInvoice(int $value): Int32Logic4Response * Email wordt standaard niet verstuurd als de debuteur of de betaalmethode facturen via email uit heeft staan. * * @param array{ - * InvoiceId?: int|null, - * IgnoreDebtorElectronicInvoicePreference?: bool|null, - * IgnorePaymentTypeElectronicInvoicePreference?: bool|null, + * InvoiceId?: int, + * IgnoreDebtorElectronicInvoicePreference?: bool, + * IgnorePaymentTypeElectronicInvoicePreference?: bool, * } $parameters * * @throws Logic4ApiException @@ -807,7 +807,7 @@ public function sendEmailForInvoice( * Voorzie orderregels met een afgesproken afleverdatum. * * @param array $parameters * @@ -829,7 +829,7 @@ public function updateAgreedDeliveryDatesForOrderRows( * @param array{ * OrderId?: int|null, * InvoiceId?: int|null, - * ContactAddress?: array{ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, Address1?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null}|null, + * ContactAddress?: array{ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, Address1?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null}, * } $parameters * * @throws Logic4ApiException @@ -852,7 +852,7 @@ public function updateContactAddressForOrderOrInvoice( * @param array{ * OrderId?: int|null, * InvoiceId?: int|null, - * DeliveryAddress?: array{Address2?: string|null, TelephoneNumber?: string|null, Email?: string|null, ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, Address1?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null}|null, + * DeliveryAddress?: array{Address2?: string|null, TelephoneNumber?: string|null, Email?: string|null, ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, Address1?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null}, * } $parameters * * @throws Logic4ApiException @@ -875,7 +875,7 @@ public function updateDeliveryAddressForOrderOrInvoice( * @param array{ * OrderId?: int|null, * InvoiceId?: int|null, - * InvoiceAddress?: array{ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, Address1?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null}|null, + * InvoiceAddress?: array{ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, Address1?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null}, * } $parameters * * @throws Logic4ApiException @@ -896,8 +896,8 @@ public function updateInvoiceAddressForOrderOrInvoice( * Update de status van een order. * * @param array{ - * StatusId?: int|null, - * OrderId?: int|null, + * StatusId?: int, + * OrderId?: int, * } $parameters * * @throws Logic4ApiException diff --git a/src/Requests/V10/PickbonsRequest.php b/src/Requests/V10/PickbonsRequest.php index 4c24b50..d1138f8 100644 --- a/src/Requests/V10/PickbonsRequest.php +++ b/src/Requests/V10/PickbonsRequest.php @@ -98,7 +98,7 @@ public function getOrderHeadPickbonRowsForMultiplePickbons( * Verkrijg pickbonnen op basis van het meegegeven filter. * * @param array{ - * OnlyUnprocessedItems?: bool|null, + * OnlyUnprocessedItems?: bool, * OrderCreatedFrom?: string|null, * WarehouseZoneId?: int|null, * WarehouseId?: int|null, @@ -187,10 +187,10 @@ public function postSoftBlockPickbons( * Verwerk een pickbon. * * @param array{ - * AmountOfColli?: int|null, - * Corrections?: array|null, - * Mutations?: array|null, - * OrderHeadPickbonId?: int|null, + * AmountOfColli?: int, + * Corrections?: array, + * Mutations?: array, + * OrderHeadPickbonId?: int, * InterimLocationId?: int|null, * Remarks?: string|null, * } $parameters @@ -210,10 +210,10 @@ public function processPickbon(array $parameters = []): StringLogic4Response * Verwerk meerdere pickbonnen. * * @param array|null, - * Mutations?: array|null, - * OrderHeadPickbonId?: int|null, + * AmountOfColli?: int, + * Corrections?: array, + * Mutations?: array, + * OrderHeadPickbonId?: int, * InterimLocationId?: int|null, * Remarks?: string|null, * }> $parameters diff --git a/src/Requests/V10/PriceListsRequest.php b/src/Requests/V10/PriceListsRequest.php index 26b27db..fc60f66 100644 --- a/src/Requests/V10/PriceListsRequest.php +++ b/src/Requests/V10/PriceListsRequest.php @@ -17,7 +17,7 @@ class PriceListsRequest extends Request * @param array{ * PricelistId?: int|null, * DebtorId?: int|null, - * LoadContractPrices?: bool|null, + * LoadContractPrices?: bool, * } $parameters * * @throws Logic4ApiException @@ -34,8 +34,8 @@ public function getPricelists( /** * @param array{ - * PriceListId?: int|null, - * ProductStaggeredPrices?: array|null}>|null, + * PriceListId?: int, + * ProductStaggeredPrices?: array}>, * } $parameters * * @throws Logic4ApiException diff --git a/src/Requests/V10/ProductRequest.php b/src/Requests/V10/ProductRequest.php index 7a2f109..870b8cd 100644 --- a/src/Requests/V10/ProductRequest.php +++ b/src/Requests/V10/ProductRequest.php @@ -40,8 +40,8 @@ class ProductRequest extends Request * Als een webshopdomein al reeds gekoppeld is, dan wordt deze overgeslagen. * * @param array{ - * ProductIds?: array|null, - * WebsiteDomainId?: int|null, + * ProductIds?: array, + * WebsiteDomainId?: int, * } $parameters * * @throws Logic4ApiException @@ -61,8 +61,8 @@ public function addWebsiteDomainForProducts( * Enkel gevonden records worden verwijderd, er vindt geen controle plaats op ProductId en/of WebsiteDomainId. Id's die niet gevonden worden, worden overgeslagen. * * @param array{ - * ProductIds?: array|null, - * WebsiteDomainId?: int|null, + * ProductIds?: array, + * WebsiteDomainId?: int, * } $parameters * * @throws Logic4ApiException @@ -180,7 +180,7 @@ public function getPriceInformationForProduct( * @param array{ * PricelistId?: int|null, * DebtorId?: int|null, - * LoadContractPrices?: bool|null, + * LoadContractPrices?: bool, * } $parameters * * @throws Logic4ApiException @@ -216,8 +216,8 @@ public function getProductAssemblyRecipe( * Verkrijg productcodes o.b.v. leverancier productcodes (maximaal 10000). * * @param array{ - * SupplierId?: int|null, - * SupplierCodes?: array|null, + * SupplierId?: int, + * SupplierCodes?: array, * } $parameters * * @throws Logic4ApiException @@ -236,7 +236,7 @@ public function getProductCodesBySupplierProductCodes( * Verkrijg de afmetingen van een artikel. * * @param array{ - * ProductId?: int|null, + * ProductId?: int, * } $parameters * * @throws Logic4ApiException @@ -257,9 +257,9 @@ public function getProductDimensions( * Haal ID's op van voorraadlocaties voor een bepaald product in een bepaald magazijn. * * @param array{ - * ProductIds?: array|null, + * ProductIds?: array, * WarehouseId?: int|null, - * SystemDefaultPickLocation?: bool|null, + * SystemDefaultPickLocation?: bool, * } $parameters * * @throws Logic4ApiException @@ -308,12 +308,12 @@ public function getProductReviews( * UseChildProductGroups?: bool|null, * ProductCode?: string|null, * Barcode?: string|null, - * Barcodes?: array|null, + * Barcodes?: array, * DebtorId?: int|null, * WebshopUserId?: int|null, * WebshopPriceListId?: int|null, * UseDropShipmentAmountsForWebshopPrices?: bool|null, - * ProductIds?: array|null, + * ProductIds?: array, * ProductFilterListChoice?: string|null, * ProductHistoryBasedOnInvoices?: bool|null, * WebshopUserOrderlistProductType?: int|null, @@ -327,16 +327,16 @@ public function getProductReviews( * SkipRecords?: int|null, * TakeRecords?: int|null, * LoadProductGroups?: bool|null, - * LoadExtraBarcodes?: bool|null, + * LoadExtraBarcodes?: bool, * OnlyShowParentProducts?: bool|null, * GlobalisationId?: int|null, * WebsiteDomainId?: int|null, * WareHouseId?: int|null, - * UseECommerceProductGroups?: bool|null, - * UseECommerceProductGroupsToLoadProductGroups?: bool|null, - * LoadStockForWarehouses?: bool|null, - * LoadAllWebshopGroupsLinkedToProduct?: bool|null, - * LoadProductTypes?: bool|null, + * UseECommerceProductGroups?: bool, + * UseECommerceProductGroupsToLoadProductGroups?: bool, + * LoadStockForWarehouses?: bool, + * LoadAllWebshopGroupsLinkedToProduct?: bool, + * LoadProductTypes?: bool, * } $parameters * * @return \Generator @@ -358,7 +358,7 @@ public function getProducts(array $parameters = []): \Generator * Verkrijg de verzendinformatie van een product. * * @param array{ - * ProductId?: int|null, + * ProductId?: int, * } $parameters * * @throws Logic4ApiException @@ -384,12 +384,12 @@ public function getProductShippingInformation( * UseChildProductGroups?: bool|null, * ProductCode?: string|null, * Barcode?: string|null, - * Barcodes?: array|null, + * Barcodes?: array, * DebtorId?: int|null, * WebshopUserId?: int|null, * WebshopPriceListId?: int|null, * UseDropShipmentAmountsForWebshopPrices?: bool|null, - * ProductIds?: array|null, + * ProductIds?: array, * ProductFilterListChoice?: string|null, * ProductHistoryBasedOnInvoices?: bool|null, * WebshopUserOrderlistProductType?: int|null, @@ -403,16 +403,16 @@ public function getProductShippingInformation( * SkipRecords?: int|null, * TakeRecords?: int|null, * LoadProductGroups?: bool|null, - * LoadExtraBarcodes?: bool|null, + * LoadExtraBarcodes?: bool, * OnlyShowParentProducts?: bool|null, * GlobalisationId?: int|null, * WebsiteDomainId?: int|null, * WareHouseId?: int|null, - * UseECommerceProductGroups?: bool|null, - * UseECommerceProductGroupsToLoadProductGroups?: bool|null, - * LoadStockForWarehouses?: bool|null, - * LoadAllWebshopGroupsLinkedToProduct?: bool|null, - * LoadProductTypes?: bool|null, + * UseECommerceProductGroups?: bool, + * UseECommerceProductGroupsToLoadProductGroups?: bool, + * LoadStockForWarehouses?: bool, + * LoadAllWebshopGroupsLinkedToProduct?: bool, + * LoadProductTypes?: bool, * } $parameters * * @throws Logic4ApiException @@ -429,7 +429,7 @@ public function getProductsIds( /** * @param array{ - * ProductIds?: array|null, + * ProductIds?: array, * Skip?: int|null, * Take?: int|null, * } $parameters @@ -480,9 +480,9 @@ public function getSuppliersForProduct( * Verkrijg alle leveranciers van één of meerdere producten op basis van ProductId's (max. 1000). Of gebruik 'TakeRecords' (max. 10.000). * * @param array{ - * ProductIds?: array|null, - * SkipRecords?: int|null, - * TakeRecords?: int|null, + * ProductIds?: array, + * SkipRecords?: int, + * TakeRecords?: int, * } $parameters * * @return \Generator @@ -514,7 +514,7 @@ public function getUnits(): ProductUnitLogic4ResponseList /** * @param array{ - * VariantBalkCategoryIds?: array|null, + * VariantBalkCategoryIds?: array, * } $parameters * * @throws Logic4ApiException @@ -531,7 +531,7 @@ public function getVariantbalkCategories( /** * @param array{ - * VariantBalkIds?: array|null, + * VariantBalkIds?: array, * } $parameters * * @throws Logic4ApiException @@ -550,7 +550,7 @@ public function getVariantbalks( * Het ophalen van gekoppelde webshops per product, max. 1000 producten per call. * * @param array{ - * ProductIds?: array|null, + * ProductIds?: array, * } $parameters * * @throws Logic4ApiException @@ -581,8 +581,8 @@ public function getWebsiteDomainsForProducts( * * @param array{ * WebsiteDomainId?: int|null, - * GlobalizationId?: int|null, - * ProductId?: int|null, + * GlobalizationId?: int, + * ProductId?: int, * Title?: string|null, * Description?: string|null, * USP?: string|null, diff --git a/src/Requests/V10/ProductTemplateRequest.php b/src/Requests/V10/ProductTemplateRequest.php index 69f643d..19691bb 100644 --- a/src/Requests/V10/ProductTemplateRequest.php +++ b/src/Requests/V10/ProductTemplateRequest.php @@ -61,7 +61,7 @@ public function getProductTemplates(array $parameters = []): \Generator /** * @param array{ - * ProductIds?: array|null, + * ProductIds?: array, * VisibleOnWebsite?: bool|null, * Skip?: int|null, * Take?: int|null, @@ -82,7 +82,7 @@ public function getProductTemplateValuesPerProducts(array $parameters = []): \Ge /** * @param array{ - * ProductIds?: array|null, + * ProductIds?: array, * VisibleOnWebsite?: bool|null, * Skip?: int|null, * Take?: int|null, @@ -105,8 +105,8 @@ public function getProductTemplateValuesWithTranslations(array $parameters = []) /** * @param array{ - * TemplatePropertyId?: int|null, - * PropertyValuesPerProduct?: array|null}>|null, + * TemplatePropertyId?: int, + * PropertyValuesPerProduct?: array}>, * } $parameters * * @throws Logic4ApiException diff --git a/src/Requests/V10/RelationsRequest.php b/src/Requests/V10/RelationsRequest.php index 17127ae..6fa8f69 100644 --- a/src/Requests/V10/RelationsRequest.php +++ b/src/Requests/V10/RelationsRequest.php @@ -34,9 +34,9 @@ class RelationsRequest extends Request * Crediteur discount toevoegen. Retourneert de Id. * * @param array{ - * TypeId?: int|null, - * CreditorId?: int|null, - * BrandId?: int|null, + * TypeId?: int, + * CreditorId?: int, + * BrandId?: int, * DateFrom?: string|null, * DateTo?: string|null, * Percentage?: number|null, @@ -61,16 +61,16 @@ public function addCreditorDiscount( * * @param array{ * Id?: int|null, - * ValidateVat?: bool|null, + * ValidateVat?: bool, * IsoCode?: string|null, * CountryCode?: string|null, - * CountryId?: int|null, + * CountryId?: int, * CompanyName?: string|null, * FirstName?: string|null, * LastName?: string|null, * EmailAddress?: string|null, * PaymentMethodId?: int|null, - * PricelistIds?: array|null, + * PricelistIds?: array, * TelephoneNumber?: string|null, * MobileNumber?: string|null, * Faxnumber?: string|null, @@ -85,8 +85,8 @@ public function addCreditorDiscount( * HouseNumber?: string|null, * HouseNumberAddition?: string|null, * VatNumber?: string|null, - * DontPrintPaperInvoiceForDebtor?: bool|null, - * ReceiveInvoiceElectronically?: bool|null, + * DontPrintPaperInvoiceForDebtor?: bool, + * ReceiveInvoiceElectronically?: bool, * ElectronicInvoiceAttachmentType?: int|null, * StandardInvoiceLayoutReportId?: int|null, * Preposition?: string|null, @@ -119,8 +119,8 @@ public function addCustomer(array $parameters = []): Int32Logic4Response * Adres toevoegen of updaten. * * @param array{ - * Type?: array{Id?: int, Name?: string|null}|null, - * Province?: array{Id?: int, Name?: string|null}|null, + * Type?: array{Id?: int, Name?: string|null}, + * Province?: array{Id?: int, Name?: string|null}, * Email?: string|null, * ContactName?: string|null, * CompanyName?: string|null, @@ -129,7 +129,7 @@ public function addCustomer(array $parameters = []): Int32Logic4Response * Id?: int|null, * DebtorId?: int|null, * CreditorId?: int|null, - * IsMainContact?: bool|null, + * IsMainContact?: bool, * IsHidden?: bool|null, * OwnContactNumber?: string|null, * CountryCode?: string|null, @@ -140,8 +140,8 @@ public function addCustomer(array $parameters = []): Int32Logic4Response * HouseNumber?: string|null, * HouseNumberAddition?: string|null, * TelephoneNumber?: string|null, - * CountryId?: int|null, - * ZoneId?: int|null, + * CountryId?: int, + * ZoneId?: int, * } $parameters * * @throws Logic4ApiException @@ -162,7 +162,7 @@ public function addUpdateAddress(array $parameters = []): Int32Logic4Response * EmailAddress?: string|null, * FirstName?: string|null, * Function?: string|null, - * Gender?: array{Id?: int, Name?: string|null}|null, + * Gender?: array{Id?: int, Name?: string|null}, * Initials?: string|null, * InsertionName?: string|null, * LastName?: string|null, @@ -172,7 +172,7 @@ public function addUpdateAddress(array $parameters = []): Int32Logic4Response * Id?: int|null, * DebtorId?: int|null, * CreditorId?: int|null, - * IsMainContact?: bool|null, + * IsMainContact?: bool, * IsHidden?: bool|null, * OwnContactNumber?: string|null, * CountryCode?: string|null, @@ -183,8 +183,8 @@ public function addUpdateAddress(array $parameters = []): Int32Logic4Response * HouseNumber?: string|null, * HouseNumberAddition?: string|null, * TelephoneNumber?: string|null, - * CountryId?: int|null, - * ZoneId?: int|null, + * CountryId?: int, + * ZoneId?: int, * } $parameters * * @throws Logic4ApiException @@ -202,8 +202,8 @@ public function addUpdateContact(array $parameters = []): Int32Logic4Response * Crediteur externe identifier toevoegen of updaten. * * @param array{ - * CreditorId?: int|null, - * TypeId?: int|null, + * CreditorId?: int, + * TypeId?: int, * Value?: string|null, * } $parameters * @@ -226,23 +226,23 @@ public function addUpdateCreditorThirdPartyExternalIdentifier( * Id?: int|null, * IsoCode?: string|null, * CountryCode?: string|null, - * CountryId?: int|null, + * CountryId?: int, * CompanyName?: string|null, * FirstName?: string|null, * LastName?: string|null, * EmailAddress?: string|null, * PaymentMethodId?: int|null, - * PricelistIds?: array|null, - * VatCode?: array{Id?: int, Percent?: number, Name?: string|null}|null, + * PricelistIds?: array, + * VatCode?: array{Id?: int, Percent?: number, Name?: string|null}, * TelephoneNumber?: string|null, * MobileNumber?: string|null, * Faxnumber?: string|null, * ChamberOfCommerceCode?: string|null, * Website?: string|null, - * Status?: array{Id?: int, Description?: string|null}|null, + * Status?: array{Id?: int, Description?: string|null}, * Discount?: number|null, - * Representative?: array{Id?: int, Name?: string|null}|null, - * Type?: array{Id?: int, Description?: string|null}|null, + * Representative?: array{Id?: int, Name?: string|null}, + * Type?: array{Id?: int, Description?: string|null}, * StandardReportIdForPickingList?: int|null, * StandardReportIdForSalesOrderDelivery?: int|null, * City?: string|null, @@ -251,11 +251,11 @@ public function addUpdateCreditorThirdPartyExternalIdentifier( * HouseNumber?: string|null, * HouseNumberAddition?: string|null, * VatNumber?: string|null, - * DontPrintPaperInvoiceForDebtor?: bool|null, - * ReceiveInvoiceElectronically?: bool|null, + * DontPrintPaperInvoiceForDebtor?: bool, + * ReceiveInvoiceElectronically?: bool, * ElectronicInvoiceAttachmentType?: int|null, * StandardInvoiceLayoutReportId?: int|null, - * Gender?: array{Id?: int, Name?: string|null}|null, + * Gender?: array{Id?: int, Name?: string|null}, * Preposition?: string|null, * CreditLimit?: number|null, * ShippingMethodId?: int|null, @@ -280,8 +280,8 @@ public function addUpdateCustomer(array $parameters = []): Int32Logic4Response * Debiteur externe identifier toevoegen of updaten. * * @param array{ - * DebtorId?: int|null, - * TypeId?: int|null, + * DebtorId?: int, + * TypeId?: int, * Value?: string|null, * } $parameters * @@ -350,7 +350,7 @@ public function deleteCustomerThirdPartyExternalIdentifier( * PhoneNumber?: string|null, * DebtorId?: int|null, * CreditorId?: int|null, - * ExcludeHiddenContacts?: bool|null, + * ExcludeHiddenContacts?: bool, * OwnContactNumber?: string|null, * } $parameters * @@ -394,7 +394,7 @@ public function getAddressTypes(): AddressTypeLogic4ResponseList * PhoneNumber?: string|null, * DebtorId?: int|null, * CreditorId?: int|null, - * ExcludeHiddenContacts?: bool|null, + * ExcludeHiddenContacts?: bool, * OwnContactNumber?: string|null, * } $parameters * @@ -415,12 +415,12 @@ public function getContacts(array $parameters = []): \Generator /** * @param array{ - * ContactIds?: array|null, + * ContactIds?: array, * DebtorId?: int|null, * ContactType?: string|null, * LastCharacteristicChangeDateTime?: string|null, - * SkipRecords?: int|null, - * TakeRecords?: int|null, + * SkipRecords?: int, + * TakeRecords?: int, * } $parameters * * @return \Generator @@ -452,9 +452,9 @@ public function getContactTypes(): ContactTypeLogic4ResponseList * Crediteur discounts ophalen (maximaal 1000). * * @param array{ - * SkipRecords?: int|null, - * TakeRecords?: int|null, - * Ids?: array|null, + * SkipRecords?: int, + * TakeRecords?: int, + * Ids?: array, * } $parameters * * @return \Generator @@ -494,7 +494,7 @@ public function getCreditorDiscountTypes( * PhoneNumber?: string|null, * WebsiteDomainId?: int|null, * EmailAddress?: string|null, - * EmailAddressIsExact?: bool|null, + * EmailAddressIsExact?: bool, * } $parameters * * @return \Generator @@ -543,7 +543,7 @@ public function getCreditorThirdPartyExternalIdentifiers( * PhoneNumber?: string|null, * WebsiteDomainId?: int|null, * EmailAddress?: string|null, - * EmailAddressIsExact?: bool|null, + * EmailAddressIsExact?: bool, * } $parameters * * @return \Generator @@ -563,10 +563,10 @@ public function getCustomers(array $parameters = []): \Generator /** * @param array{ - * DebtorIds?: array|null, + * DebtorIds?: array, * LastCharacteristicChangeDateTime?: string|null, - * SkipRecords?: int|null, - * TakeRecords?: int|null, + * SkipRecords?: int, + * TakeRecords?: int, * } $parameters * * @return \Generator @@ -707,10 +707,10 @@ public function getTypeContactGroups(): TypeContactGroupLogic4ResponseList * Crediteur discount updaten. Retourneert true indien succesvol. * * @param array{ - * Id?: int|null, - * TypeId?: int|null, - * CreditorId?: int|null, - * BrandId?: int|null, + * Id?: int, + * TypeId?: int, + * CreditorId?: int, + * BrandId?: int, * DateFrom?: string|null, * DateTo?: string|null, * Percentage?: number|null, @@ -734,16 +734,16 @@ public function updateCreditorDiscount( * Waarden van een bestaande debiteur updaten. * * @param array{ - * Id?: int|null, + * Id?: int, * IsoCode?: string|null, * CountryCode?: string|null, - * CountryId?: int|null, + * CountryId?: int, * CompanyName?: string|null, * FirstName?: string|null, * LastName?: string|null, * EmailAddress?: string|null, * PaymentMethodId?: int|null, - * PricelistIds?: array|null, + * PricelistIds?: array, * TelephoneNumber?: string|null, * MobileNumber?: string|null, * Faxnumber?: string|null, @@ -758,8 +758,8 @@ public function updateCreditorDiscount( * HouseNumber?: string|null, * HouseNumberAddition?: string|null, * VatNumber?: string|null, - * DontPrintPaperInvoiceForDebtor?: bool|null, - * ReceiveInvoiceElectronically?: bool|null, + * DontPrintPaperInvoiceForDebtor?: bool, + * ReceiveInvoiceElectronically?: bool, * ElectronicInvoiceAttachmentType?: int|null, * StandardInvoiceLayoutReportId?: int|null, * Preposition?: string|null, diff --git a/src/Requests/V10/RoundRequest.php b/src/Requests/V10/RoundRequest.php index cfd4bb7..16e657f 100644 --- a/src/Requests/V10/RoundRequest.php +++ b/src/Requests/V10/RoundRequest.php @@ -20,15 +20,15 @@ class RoundRequest extends Request * Voeg een rit toe aan de database. Het ID van de zojuist aangemaakte rit wordt als response teruggegeven. * * @param array{ - * TypeId?: int|null, + * TypeId?: int, * Description?: string|null, * Memo?: string|null, * DateTimePlanned?: string|null, * VehicleId?: int|null, * DriverId?: int|null, * CoDriverId?: int|null, - * StatusId?: int|null, - * HideInSystem?: bool|null, + * StatusId?: int, + * HideInSystem?: bool, * } $parameters * * @throws Logic4ApiException @@ -50,10 +50,10 @@ public function addRound(array $parameters = []): Int32Logic4Response * @param array{ * OrderId?: int|null, * ITSIssueId?: int|null, - * RoundId?: int|null, + * RoundId?: int, * Remarks?: string|null, - * StatusId?: int|null, - * Sorting?: int|null, + * StatusId?: int, + * Sorting?: int, * EstimatedArrivalDateTime?: string|null, * } $parameters * @@ -104,7 +104,7 @@ public function deleteRoundOrder(int $roundOrderId): BooleanLogic4Response * @param array{ * SkipRecords?: int|null, * TakeRecords?: int|null, - * RoundId?: int|null, + * RoundId?: int, * StatusId?: int|null, * } $parameters * @@ -147,8 +147,8 @@ public function getRoundOrderStatuses( * TypeId?: int|null, * StatusId?: int|null, * VehicleId?: int|null, - * ItsIds?: array|null, - * OrderIds?: array|null, + * ItsIds?: array, + * OrderIds?: array, * } $parameters * * @return \Generator @@ -199,16 +199,16 @@ public function getVehicles(): VehicleLogic4ResponseList * Let op, je moet het gehele object vullen. Lege waardes worden ook overgenomen. * * @param array{ - * Id?: int|null, - * TypeId?: int|null, + * Id?: int, + * TypeId?: int, * Description?: string|null, * Memo?: string|null, * DateTimePlanned?: string|null, * VehicleId?: int|null, * DriverId?: int|null, * CoDriverId?: int|null, - * StatusId?: int|null, - * HideInSystem?: bool|null, + * StatusId?: int, + * HideInSystem?: bool, * } $parameters * * @throws Logic4ApiException @@ -228,10 +228,10 @@ public function updateRound(array $parameters = []): BooleanLogic4Response * Let op, je moet het gehele object vullen. Lege waardes worden ook overgenomen. * * @param array{ - * Id?: int|null, + * Id?: int, * Remarks?: string|null, - * StatusId?: int|null, - * Sorting?: int|null, + * StatusId?: int, + * Sorting?: int, * EstimatedArrivalDateTime?: string|null, * } $parameters * diff --git a/src/Requests/V10/ShipmentRequest.php b/src/Requests/V10/ShipmentRequest.php index fe329d5..a793b27 100644 --- a/src/Requests/V10/ShipmentRequest.php +++ b/src/Requests/V10/ShipmentRequest.php @@ -17,8 +17,8 @@ class ShipmentRequest extends Request * * @param array{ * DateTimeAdded?: string|null, - * OrderId?: int|null, - * ShipperId?: int|null, + * OrderId?: int, + * ShipperId?: int, * Barcode?: string|null, * TrackTraceUrl?: string|null, * } $parameters @@ -42,9 +42,9 @@ public function addShipmentForInvoiceOrOrder( * * @param array{ * DateTimeAdded?: string|null, - * SendEmail?: bool|null, - * OrderId?: int|null, - * ShipperId?: int|null, + * SendEmail?: bool, + * OrderId?: int, + * ShipperId?: int, * Barcode?: string|null, * TrackTraceUrl?: string|null, * } $parameters diff --git a/src/Requests/V10/StockRequest.php b/src/Requests/V10/StockRequest.php index 3c333bf..1810f9e 100644 --- a/src/Requests/V10/StockRequest.php +++ b/src/Requests/V10/StockRequest.php @@ -31,13 +31,13 @@ class StockRequest extends Request * Maak een voorraadmutatie aan. * * @param array{ - * TypeId?: int|null, + * TypeId?: int, * LedgerId?: int|null, - * ProductId?: int|null, - * Amount?: number|null, + * ProductId?: int, + * Amount?: number, * Remarks?: string|null, - * StockLocationId?: int|null, - * StockMutationTypeId?: int|null, + * StockLocationId?: int, + * StockMutationTypeId?: int, * } $parameters * * @throws Logic4ApiException @@ -58,13 +58,13 @@ public function createProductStockMutation( * Alleen wanneer in een magazijn een reserveerlocatie is gedefinieerd kunnen tot maximaal 100 mutaties worden uitgevoerd. * * @param array $parameters * * @throws Logic4ApiException @@ -107,9 +107,9 @@ public function getExternalStockForActiveSuppliers( * @param array{ * SupplierId?: int|null, * Active?: bool|null, - * ProductIds?: array|null, - * SkipRecords?: int|null, - * TakeRecords?: int|null, + * ProductIds?: array, + * SkipRecords?: int, + * TakeRecords?: int, * } $parameters * * @return \Generator @@ -163,8 +163,8 @@ public function getNextDeliveriesDatesForActiveSuppliers( * Verkrijg de huidige voorraadlocaties van het product op basis van het filter. * * @param array{ - * ProductsWithWarehouse?: array|null, - * ShowNegativeLocations?: bool|null, + * ProductsWithWarehouse?: array, + * ShowNegativeLocations?: bool, * } $parameters * * @throws Logic4ApiException @@ -227,7 +227,7 @@ public function getProductStockMutationTypes( * notitie en standaard picklocatie op. * * @param array{ - * ProductIds?: array|null, + * ProductIds?: array, * } $parameters * * @throws Logic4ApiException @@ -345,7 +345,7 @@ public function getStockLocationsForProduct( * Haal voorraadlocaties op van meerdere producten. * * @param array{ - * ProductIds?: array|null, + * ProductIds?: array, * } $parameters * * @throws Logic4ApiException @@ -412,13 +412,13 @@ public function getWarehousesStockLocationsForAdministration( * Return True wanneer gelukt, anders foutmelding. * * @param array{ - * Items?: array|null, + * Items?: array, * FromStockLocationId?: int|null, * FromWarehouseId?: int|null, - * ToStockLocationId?: int|null, + * ToStockLocationId?: int, * Notes?: string|null, * Name?: string|null, - * DatabaseAdministrationId?: int|null, + * DatabaseAdministrationId?: int, * } $parameters * * @throws Logic4ApiException @@ -462,9 +462,9 @@ public function setExternalStockForSupplier( * Voeg eerstvolgende leverdata van leveranciers toe voor één of meer artikelen (max 100 per request). * * @param array $parameters * * @throws Logic4ApiException @@ -483,8 +483,8 @@ public function setNextDeliveriesDatesForActiveSuppliers( * Verander de standaard picklocatie van artikelen naar een andere voorraad locatie. * * @param array $parameters * @@ -506,14 +506,14 @@ public function updateDefaultPickLocations( * Voeg een nieuwe voorraadcontrole toe of update de meegegeven head met de bijbehorende rijen als het Id van _head is meegegeven. * * @param array{ - * CreatedDate?: string|null, + * CreatedDate?: string, * Id?: int|null, * LocationName?: string|null, - * LocationId?: int|null, + * LocationId?: int, * ProcessDate?: string|null, * Username?: string|null, * UserId?: int|null, - * Rows?: array|null}>|null, + * Rows?: array}>, * EventLog?: string|null, * WarehouseStockControlEmailTemplateId?: int|null, * } $parameters diff --git a/src/Requests/V10/WebshopRequest.php b/src/Requests/V10/WebshopRequest.php index c876ff2..246209b 100644 --- a/src/Requests/V10/WebshopRequest.php +++ b/src/Requests/V10/WebshopRequest.php @@ -26,7 +26,7 @@ class WebshopRequest extends Request * * @param array{ * VisitorCode?: string|null, - * WebshopUserProductListType?: string|null, + * WebshopUserProductListType?: string, * WebshopPricelistId?: int|null, * GetHighestShiftPrice?: bool|null, * CountryIdForSellPrice?: int|null, @@ -70,13 +70,13 @@ public function deleteWebshopUserProductOnWebshopUserProductList( * de aantallen kindartikelen zijn altijd in verhouding tot 1 moederartikel. * * @param array{ - * WebshopUserProductListType?: string|null, + * WebshopUserProductListType?: string, * WebsiteDomainId?: int|null, * DebtorId?: int|null, * FromCreatedDateTime?: string|null, * FromLastModifiedDateTime?: string|null, - * SkipRecords?: int|null, - * TakeRecords?: int|null, + * SkipRecords?: int, + * TakeRecords?: int, * } $parameters * * @return \Generator @@ -96,10 +96,10 @@ public function getVisitorBehaviorForDebtor(array $parameters = []): \Generator * Verkrijg de betaalmethodes van een WebshopUser. * * @param array{ - * DebtorId?: int|null, - * ShippingMethodId?: int|null, + * DebtorId?: int, + * ShippingMethodId?: int, * ShowOnlySelectedPaymentMethodDebtor?: bool|null, - * TotalPrice?: number|null, + * TotalPrice?: number, * ShowOnlyAfterPayments?: bool|null, * } $parameters * @@ -119,14 +119,14 @@ public function getWebshopCheckOutPaymentMethods( * Verkrijg de aflevermethodes van een WebshopUser. * * @param array{ - * IsPureInclShop?: bool|null, + * IsPureInclShop?: bool, * TotalPriceIncl?: number|null, - * DebtorId?: int|null, - * CountryId?: int|null, + * DebtorId?: int, + * CountryId?: int, * PostalCode?: string|null, - * Weight?: number|null, - * TotalPrice?: number|null, - * Volume?: number|null, + * Weight?: number, + * TotalPrice?: number, + * Volume?: number, * ShowOnlySelectedShippingMethodDebtor?: bool|null, * ShowOnlyShippingMethodsWithPaymentCondition?: bool|null, * ShowOnlyShippingMethodsWithPaymentConditionWithAfterPayments?: bool|null, @@ -149,9 +149,9 @@ public function getWebshopCheckOutShippingMethods( * Verkrijg productprijzen o.b.v. webshopprijslijst/debiteur. * * @param array{ - * DebtorId?: int|null, + * DebtorId?: int, * WebshopPriceListId?: int|null, - * ProductId?: int|null, + * ProductId?: int, * MinSaleAmount?: int|null, * } $parameters * @@ -216,8 +216,8 @@ public function getWebshopUser( * Verkrijg het nog te besteden bedrag voor een webshopgebruiker van een jaarbudget. * * @param array{ - * WebshopUserId?: int|null, - * IgnoreOrderstatusIds?: array|null, + * WebshopUserId?: int, + * IgnoreOrderstatusIds?: array, * } $parameters * * @throws Logic4ApiException @@ -236,10 +236,10 @@ public function getWebshopUserAvailableBudget( * Verkrijg webshopgebruiker o.b.v. meegestuurde credentials. * * @param array{ - * UserName?: string|null, - * Password?: string|null, + * UserName?: string, + * Password?: string, * WebsiteDomainId?: int|null, - * IgnorePasswordCheck?: bool|null, + * IgnorePasswordCheck?: bool, * } $parameters * * @throws Logic4ApiException @@ -296,7 +296,7 @@ public function getWebshopUserOrderlistProductTypes( * * @param array{ * VisitorCode?: string|null, - * WebshopUserProductListType?: string|null, + * WebshopUserProductListType?: string, * WebshopPricelistId?: int|null, * GetHighestShiftPrice?: bool|null, * CountryIdForSellPrice?: int|null, @@ -353,7 +353,7 @@ public function getWebShopUserTypes(): WebshopUserTypeLogic4ResponseList * Update het aantal van een WebshopUserProduct op een WebshopUserProductlijst. * * @param array{ - * WebshopUserProductId?: int|null, + * WebshopUserProductId?: int, * Qty?: int|null, * } $parameters * diff --git a/src/Requests/V11/BuyOrderDeliveryRequest.php b/src/Requests/V11/BuyOrderDeliveryRequest.php index bc20db1..1afec34 100644 --- a/src/Requests/V11/BuyOrderDeliveryRequest.php +++ b/src/Requests/V11/BuyOrderDeliveryRequest.php @@ -16,14 +16,14 @@ class BuyOrderDeliveryRequest extends Request * * @param array{ * OrderId?: int|null, - * ProcessMutationButDoNotCreatePickbon?: bool|null, - * Status?: string|null, + * ProcessMutationButDoNotCreatePickbon?: bool, + * Status?: string, * SupplierId?: int|null, * BuyOrderId?: int|null, * Remarks?: string|null, * Description?: string|null, * BranchId?: int|null, - * Rows?: array|null, + * Rows?: array, * PickingListNumber?: string|null, * } $parameters * diff --git a/src/Requests/V11/BuyOrderRequest.php b/src/Requests/V11/BuyOrderRequest.php index 3e3733a..1b23ad2 100644 --- a/src/Requests/V11/BuyOrderRequest.php +++ b/src/Requests/V11/BuyOrderRequest.php @@ -16,8 +16,8 @@ class BuyOrderRequest extends Request * Let op: het kan zijn dat niet alle inkoopregels van een bepaalde order worden opgehaald, doordat de uitvoer wordt gelimiteerd via de Skip- en TakeRecords. * * @param array{ - * SkipRecords?: int|null, - * TakeRecords?: int|null, + * SkipRecords?: int, + * TakeRecords?: int, * ProductId?: int|null, * ProductCode?: string|null, * BuyOrderStatusId?: int|null, @@ -44,8 +44,8 @@ public function getBuyOrderRowsByFilter(array $parameters = []): \Generator * TakeRecords wordt gelimiteerd op 10.000. * * @param array{ - * SkipRecords?: int|null, - * TakeRecords?: int|null, + * SkipRecords?: int, + * TakeRecords?: int, * DateTimeChangedFrom?: string|null, * DateTimeChangedTo?: string|null, * BranchId?: int|null, diff --git a/src/Requests/V11/CRMRequest.php b/src/Requests/V11/CRMRequest.php index bb2ffe7..4e70582 100644 --- a/src/Requests/V11/CRMRequest.php +++ b/src/Requests/V11/CRMRequest.php @@ -16,13 +16,13 @@ class CRMRequest extends Request * TakeRecords wordt gelimiteerd op 10.000. * * @param array{ - * SkipRecords?: int|null, - * TakeRecords?: int|null, + * SkipRecords?: int, + * TakeRecords?: int, * CrmProjectId?: int|null, * CreatedDateFrom?: string|null, * CreatedDateTo?: string|null, - * StatusIds?: array|null, - * CreatedByUserIds?: array|null, + * StatusIds?: array, + * CreatedByUserIds?: array, * CarriedOutByUserId?: int|null, * StartDateFrom?: string|null, * StartDateTo?: string|null, @@ -33,7 +33,7 @@ class CRMRequest extends Request * CrmProjectName?: string|null, * ShowOnlyOpenActivities?: bool|null, * UserIdForRights?: int|null, - * CarriedOutByUserIds?: array|null, + * CarriedOutByUserIds?: array, * } $parameters * * @return \Generator diff --git a/src/Requests/V11/ExplodedViewRequest.php b/src/Requests/V11/ExplodedViewRequest.php index 1bc4a2a..35bacaa 100644 --- a/src/Requests/V11/ExplodedViewRequest.php +++ b/src/Requests/V11/ExplodedViewRequest.php @@ -15,13 +15,13 @@ class ExplodedViewRequest extends Request * Vanaf v1.1 worden velden met de waarde null niet teruggegeven. * * @param array{ - * ExplodedViewIds?: array|null, - * ProductGroupIds?: array|null, - * ProductIds?: array|null, - * GlobalisationIds?: array|null, + * ExplodedViewIds?: array, + * ProductGroupIds?: array, + * ProductIds?: array, + * GlobalisationIds?: array, * WebsiteDomainId?: int|null, - * SkipRecords?: int|null, - * TakeRecords?: int|null, + * SkipRecords?: int, + * TakeRecords?: int, * } $parameters * * @return \Generator diff --git a/src/Requests/V11/FinancialRequest.php b/src/Requests/V11/FinancialRequest.php index e6b4720..ab0de04 100644 --- a/src/Requests/V11/FinancialRequest.php +++ b/src/Requests/V11/FinancialRequest.php @@ -14,16 +14,16 @@ class FinancialRequest extends Request * Maak een financiele inkoop dagboekboeking met mutaties aan. * * @param array{ - * Description?: string|null, + * Description?: string, * FinancialCostCenterId?: int|null, * FreeValue1?: string|null, * FreeValue2?: string|null, * FreeValue3?: string|null, - * Reference?: string|null, - * BookingDateTime?: string|null, - * FinancialBookId?: int|null, + * Reference?: string, + * BookingDateTime?: string, + * FinancialBookId?: int, * JournalStatusId?: int|null, - * Mutations?: array|null, + * Mutations?: array, * } $parameters * * @throws Logic4ApiException @@ -42,16 +42,16 @@ public function addFinancialBuyBookingWithMutations( * Maak een financiele verkoop dagboekboeking met mutaties aan. * * @param array{ - * Description?: string|null, + * Description?: string, * FinancialCostCenterId?: int|null, * FreeValue1?: string|null, * FreeValue2?: string|null, * FreeValue3?: string|null, - * Reference?: string|null, - * BookingDateTime?: string|null, - * FinancialBookId?: int|null, + * Reference?: string, + * BookingDateTime?: string, + * FinancialBookId?: int, * JournalStatusId?: int|null, - * Mutations?: array|null, + * Mutations?: array, * } $parameters * * @throws Logic4ApiException diff --git a/src/Requests/V11/OrderRequest.php b/src/Requests/V11/OrderRequest.php index be0e0ae..f7001c6 100644 --- a/src/Requests/V11/OrderRequest.php +++ b/src/Requests/V11/OrderRequest.php @@ -20,19 +20,19 @@ class OrderRequest extends Request * Bij het succesvol aanmaken/updaten wordt het (nieuwe) factuurnummer in de response gevuld. * * @param array{ - * Totals?: array{AmountEx?: number, VATPercentage?: number, Calc_TotalPayed?: number|null, AmountIncl?: number, IsPaid?: bool, ShippingCost?: number, ShippingCostIncl?: number|null}|null, + * Totals?: array{AmountEx?: number, VATPercentage?: number, Calc_TotalPayed?: number|null, AmountIncl?: number, IsPaid?: bool, ShippingCost?: number, ShippingCostIncl?: number|null}, * DebtorId?: int|null, - * CustomerThirdPartyExternalIdentifer?: array{DebtorId?: int|null, TypeId?: int|null, Value?: string|null}|null, + * CustomerThirdPartyExternalIdentifer?: array{DebtorId?: int|null, TypeId?: int|null, Value?: string|null}, * Id?: int|null, - * PaymentMethod?: array{Id?: int, Description?: string|null, MaxAmount?: number|null, SelectKey?: string|null}|null, - * ShippingMethod?: array{Id?: int, Name?: string|null, ExportCode?: string|null}|null, - * CheckForOrderCostAndPaymentRegulation?: bool|null, - * OrderStatus?: array{Id?: int, Value?: string|null}|null, - * OrderRows?: array|null, - * AcceptTermsAndConditions?: bool|null, - * DeliveryAddress?: array{TelephoneNumber?: string|null, Email?: string|null, Street2?: string|null, HouseNumber2?: string|null, HouseNumberAddition2?: string|null, Id?: int|null, ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null}|null, - * InvoiceAddress?: array{Id?: int|null, ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null}|null, - * CreationDate?: string|null, + * PaymentMethod?: array{Id?: int, Description?: string|null, MaxAmount?: number|null, SelectKey?: string|null}, + * ShippingMethod?: array{Id?: int, Name?: string|null, ExportCode?: string|null}, + * CheckForOrderCostAndPaymentRegulation?: bool, + * OrderStatus?: array{Id?: int, Value?: string|null}, + * OrderRows?: array, + * AcceptTermsAndConditions?: bool, + * DeliveryAddress?: array{TelephoneNumber?: string|null, Email?: string|null, Street2?: string|null, HouseNumber2?: string|null, HouseNumberAddition2?: string|null, Id?: int|null, ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null}, + * InvoiceAddress?: array{Id?: int|null, ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null}, + * CreationDate?: string, * Description?: string|null, * Reference?: string|null, * BranchId?: int|null, @@ -40,7 +40,7 @@ class OrderRequest extends Request * WebsiteDomainId?: int|null, * DeliveryOptionId?: int|null, * DeliveryDate?: string|null, - * OrderShipmentFreeValues?: array{ShipperTypeId?: int, Freevalue1?: string|null, Freevalue2?: string|null, Freevalue3?: string|null, Freevalue4?: string|null, Freevalue5?: string|null}|null, + * OrderShipmentFreeValues?: array{ShipperTypeId?: int, Freevalue1?: string|null, Freevalue2?: string|null, Freevalue3?: string|null, Freevalue4?: string|null, Freevalue5?: string|null}, * Notes?: string|null, * FreeValue1?: string|null, * FreeValue2?: string|null, @@ -79,19 +79,19 @@ public function addUpdateInvoice(array $parameters = []): Int32Logic4Response * Bij het succesvol aanmaken/updaten wordt het (nieuwe) ordernummer in de response gevuld. * * @param array{ - * Totals?: array{AmountEx?: number, VATPercentage?: number, Calc_TotalPayed?: number|null, AmountIncl?: number, IsPaid?: bool, ShippingCost?: number, ShippingCostIncl?: number|null}|null, + * Totals?: array{AmountEx?: number, VATPercentage?: number, Calc_TotalPayed?: number|null, AmountIncl?: number, IsPaid?: bool, ShippingCost?: number, ShippingCostIncl?: number|null}, * DebtorId?: int|null, - * CustomerThirdPartyExternalIdentifer?: array{DebtorId?: int|null, TypeId?: int|null, Value?: string|null}|null, + * CustomerThirdPartyExternalIdentifer?: array{DebtorId?: int|null, TypeId?: int|null, Value?: string|null}, * Id?: int|null, - * PaymentMethod?: array{Id?: int, Description?: string|null, MaxAmount?: number|null, SelectKey?: string|null}|null, - * ShippingMethod?: array{Id?: int, Name?: string|null, ExportCode?: string|null}|null, - * CheckForOrderCostAndPaymentRegulation?: bool|null, - * OrderStatus?: array{Id?: int, Value?: string|null}|null, - * OrderRows?: array|null, - * AcceptTermsAndConditions?: bool|null, - * DeliveryAddress?: array{TelephoneNumber?: string|null, Email?: string|null, Street2?: string|null, HouseNumber2?: string|null, HouseNumberAddition2?: string|null, Id?: int|null, ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null}|null, - * InvoiceAddress?: array{Id?: int|null, ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null}|null, - * CreationDate?: string|null, + * PaymentMethod?: array{Id?: int, Description?: string|null, MaxAmount?: number|null, SelectKey?: string|null}, + * ShippingMethod?: array{Id?: int, Name?: string|null, ExportCode?: string|null}, + * CheckForOrderCostAndPaymentRegulation?: bool, + * OrderStatus?: array{Id?: int, Value?: string|null}, + * OrderRows?: array, + * AcceptTermsAndConditions?: bool, + * DeliveryAddress?: array{TelephoneNumber?: string|null, Email?: string|null, Street2?: string|null, HouseNumber2?: string|null, HouseNumberAddition2?: string|null, Id?: int|null, ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null}, + * InvoiceAddress?: array{Id?: int|null, ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null}, + * CreationDate?: string, * Description?: string|null, * Reference?: string|null, * BranchId?: int|null, @@ -99,7 +99,7 @@ public function addUpdateInvoice(array $parameters = []): Int32Logic4Response * WebsiteDomainId?: int|null, * DeliveryOptionId?: int|null, * DeliveryDate?: string|null, - * OrderShipmentFreeValues?: array{ShipperTypeId?: int, Freevalue1?: string|null, Freevalue2?: string|null, Freevalue3?: string|null, Freevalue4?: string|null, Freevalue5?: string|null}|null, + * OrderShipmentFreeValues?: array{ShipperTypeId?: int, Freevalue1?: string|null, Freevalue2?: string|null, Freevalue3?: string|null, Freevalue4?: string|null, Freevalue5?: string|null}, * Notes?: string|null, * FreeValue1?: string|null, * FreeValue2?: string|null, @@ -142,24 +142,24 @@ public function addUpdateOrder(array $parameters = []): Int32Logic4Response * De optie "ForceAddProductComposition" zorgt ervoor dat samenstellingen altijd worden toegevoegd, ongeacht of er reeds samenstellingen bestaan voor deze orderregel. * * @param array{ - * OrderRowWithProductComposition?: array{AddProductCompositionByParentProductToOrder?: bool, ForceAddProductComposition?: bool, UseSystemPricesForProductCompositionProducts?: bool}|null, + * OrderRowWithProductComposition?: array{AddProductCompositionByParentProductToOrder?: bool, ForceAddProductComposition?: bool, UseSystemPricesForProductCompositionProducts?: bool}, * InclPrice?: number|null, * GrossInclPrice?: number|null, * Id?: int|null, * Description?: string|null, * Description2?: string|null, * ProductId?: int|null, - * Qty?: number|null, + * Qty?: number, * BuyPrice?: number|null, * GrossPrice?: number|null, * NettPrice?: number|null, - * QtyDeliverd?: number|null, - * QtyDeliverd_NotInvoiced?: number|null, + * QtyDeliverd?: number, + * QtyDeliverd_NotInvoiced?: number, * ProductCode?: string|null, * ProductBarcode1?: string|null, * VATPercentage?: number|null, * Notes?: string|null, - * DebtorId?: int|null, + * DebtorId?: int, * OrderId?: int|null, * WarehouseId?: int|null, * Commission?: string|null, @@ -172,7 +172,7 @@ public function addUpdateOrder(array $parameters = []): Int32Logic4Response * FreeValue4?: string|null, * FreeValue5?: string|null, * ExpectedNextDelivery?: string|null, - * ExternalValue?: array{TypeId?: int, Value?: string|null}|null, + * ExternalValue?: array{TypeId?: int, Value?: string|null}, * AgreedDeliveryDate?: string|null, * Type1Id?: int|null, * Type2Id?: int|null, @@ -198,26 +198,26 @@ public function addUpdateOrderRow(array $parameters = []): Int32Logic4Response * Specificeer een negatieve waarde voor Qty in elke orderregel. Bij het succesvol aanmaken bevat de response het nummer van de retourorder. * * @param array{ - * Totals?: array{ShippingCost?: number, ShippingCostIncl?: number|null}|null, - * OriginalOrderId?: int|null, - * OriginalOrderDate?: string|null, - * OriginalOrderZipCode?: string|null, - * ProblemId?: int|null, - * SolutionId?: int|null, + * Totals?: array{ShippingCost?: number, ShippingCostIncl?: number|null}, + * OriginalOrderId?: int, + * OriginalOrderDate?: string, + * OriginalOrderZipCode?: string, + * ProblemId?: int, + * SolutionId?: int, * ReceivedReturnOrderDate?: string|null, * ApprovedReturnOrderDate?: string|null, * DebtorId?: int|null, - * CustomerThirdPartyExternalIdentifer?: array{DebtorId?: int|null, TypeId?: int|null, Value?: string|null}|null, + * CustomerThirdPartyExternalIdentifer?: array{DebtorId?: int|null, TypeId?: int|null, Value?: string|null}, * Id?: int|null, - * PaymentMethod?: array{Id?: int, Description?: string|null, MaxAmount?: number|null, SelectKey?: string|null}|null, - * ShippingMethod?: array{Id?: int, Name?: string|null, ExportCode?: string|null}|null, - * CheckForOrderCostAndPaymentRegulation?: bool|null, - * OrderStatus?: array{Id?: int, Value?: string|null}|null, - * OrderRows?: array|null, - * AcceptTermsAndConditions?: bool|null, - * DeliveryAddress?: array{TelephoneNumber?: string|null, Email?: string|null, Street2?: string|null, HouseNumber2?: string|null, HouseNumberAddition2?: string|null, Id?: int|null, ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null}|null, - * InvoiceAddress?: array{Id?: int|null, ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null}|null, - * CreationDate?: string|null, + * PaymentMethod?: array{Id?: int, Description?: string|null, MaxAmount?: number|null, SelectKey?: string|null}, + * ShippingMethod?: array{Id?: int, Name?: string|null, ExportCode?: string|null}, + * CheckForOrderCostAndPaymentRegulation?: bool, + * OrderStatus?: array{Id?: int, Value?: string|null}, + * OrderRows?: array, + * AcceptTermsAndConditions?: bool, + * DeliveryAddress?: array{TelephoneNumber?: string|null, Email?: string|null, Street2?: string|null, HouseNumber2?: string|null, HouseNumberAddition2?: string|null, Id?: int|null, ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null}, + * InvoiceAddress?: array{Id?: int|null, ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null}, + * CreationDate?: string, * Description?: string|null, * Reference?: string|null, * BranchId?: int|null, @@ -225,7 +225,7 @@ public function addUpdateOrderRow(array $parameters = []): Int32Logic4Response * WebsiteDomainId?: int|null, * DeliveryOptionId?: int|null, * DeliveryDate?: string|null, - * OrderShipmentFreeValues?: array{ShipperTypeId?: int, Freevalue1?: string|null, Freevalue2?: string|null, Freevalue3?: string|null, Freevalue4?: string|null, Freevalue5?: string|null}|null, + * OrderShipmentFreeValues?: array{ShipperTypeId?: int, Freevalue1?: string|null, Freevalue2?: string|null, Freevalue3?: string|null, Freevalue4?: string|null, Freevalue5?: string|null}, * Notes?: string|null, * FreeValue1?: string|null, * FreeValue2?: string|null, @@ -281,12 +281,12 @@ public function createReturnOrder(array $parameters = []): Int32Logic4Response * LastActionFrom?: string|null, * LastActionTo?: string|null, * Reference?: string|null, - * LoadPayments?: bool|null, + * LoadPayments?: bool, * StatusId?: int|null, * Type1Id?: int|null, * Type2Id?: int|null, * Type3Id?: int|null, - * WebsiteDomainIds?: array|null, + * WebsiteDomainIds?: array, * } $parameters * * @throws Logic4ApiException @@ -308,15 +308,15 @@ public function getInvoices(array $parameters = []): OrderLogic4ResponseList * Indien historypoints zijn aangegeven, moet timeframe een van de volgende waarden hebben: ['Day', 'Week', 'Month', 'Quarter', 'Year']. * * @param array{ - * SkipRecords?: int|null, - * TakeRecords?: int|null, + * SkipRecords?: int, + * TakeRecords?: int, * TimeFrame?: string|null, * HistoryPoints?: int|null, - * OrderstatusIds?: array|null, - * WebsiteDomainIds?: array|null, - * NotLinkedToWebsiteDomain?: bool|null, - * EmployeeIds?: array|null, - * BranchIds?: array|null, + * OrderstatusIds?: array, + * WebsiteDomainIds?: array, + * NotLinkedToWebsiteDomain?: bool, + * EmployeeIds?: array, + * BranchIds?: array, * } $parameters * * @return \Generator @@ -357,12 +357,12 @@ public function getOpenPaymentOrders(array $parameters = []): \Generator * LastActionFrom?: string|null, * LastActionTo?: string|null, * Reference?: string|null, - * LoadPayments?: bool|null, + * LoadPayments?: bool, * StatusId?: int|null, * Type1Id?: int|null, * Type2Id?: int|null, * Type3Id?: int|null, - * WebsiteDomainIds?: array|null, + * WebsiteDomainIds?: array, * } $parameters * * @throws Logic4ApiException @@ -407,12 +407,12 @@ public function getOrders(array $parameters = []): OrderLogic4ResponseList * LastActionFrom?: string|null, * LastActionTo?: string|null, * Reference?: string|null, - * LoadPayments?: bool|null, + * LoadPayments?: bool, * StatusId?: int|null, * Type1Id?: int|null, * Type2Id?: int|null, * Type3Id?: int|null, - * WebsiteDomainIds?: array|null, + * WebsiteDomainIds?: array, * } $parameters * * @throws Logic4ApiException @@ -433,8 +433,8 @@ public function getReturnOrders( * Verkrijg retourproblemen o.b.v. het filter. * * @param array{ - * SkipRecords?: int|null, - * TakeRecords?: int|null, + * SkipRecords?: int, + * TakeRecords?: int, * } $parameters * * @return \Generator @@ -454,8 +454,8 @@ public function getReturnProblems(array $parameters = []): \Generator * Verkrijg order retouroplossingen o.b.v. het filter. * * @param array{ - * SkipRecords?: int|null, - * TakeRecords?: int|null, + * SkipRecords?: int, + * TakeRecords?: int, * } $parameters * * @return \Generator @@ -477,7 +477,7 @@ public function getReturnSolutions(array $parameters = []): \Generator * @param array{ * OrderId?: int|null, * InvoiceId?: int|null, - * ContactAddress?: array{Id?: int|null, ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null}|null, + * ContactAddress?: array{Id?: int|null, ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null}, * } $parameters * * @throws Logic4ApiException @@ -498,7 +498,7 @@ public function updateContactAddressForOrderOrInvoice( * @param array{ * OrderId?: int|null, * InvoiceId?: int|null, - * DeliveryAddress?: array{TelephoneNumber?: string|null, Email?: string|null, Street2?: string|null, HouseNumber2?: string|null, HouseNumberAddition2?: string|null, Id?: int|null, ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null}|null, + * DeliveryAddress?: array{TelephoneNumber?: string|null, Email?: string|null, Street2?: string|null, HouseNumber2?: string|null, HouseNumberAddition2?: string|null, Id?: int|null, ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null}, * } $parameters * * @throws Logic4ApiException @@ -519,7 +519,7 @@ public function updateDeliveryAddressForOrderOrInvoice( * @param array{ * OrderId?: int|null, * InvoiceId?: int|null, - * InvoiceAddress?: array{Id?: int|null, ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null}|null, + * InvoiceAddress?: array{Id?: int|null, ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null}, * } $parameters * * @throws Logic4ApiException diff --git a/src/Requests/V11/PickbonsRequest.php b/src/Requests/V11/PickbonsRequest.php index 61d353b..06df93b 100644 --- a/src/Requests/V11/PickbonsRequest.php +++ b/src/Requests/V11/PickbonsRequest.php @@ -14,8 +14,8 @@ class PickbonsRequest extends Request { /** * @param array{ - * OrderId?: int|null, - * UseNewWorkflow?: bool|null, + * OrderId?: int, + * UseNewWorkflow?: bool, * } $parameters * * @throws Logic4ApiException @@ -34,9 +34,9 @@ public function createCompletePickbonForOrder( * Verkrijg pickbonnen op basis van het meegegeven filter. * * @param array{ - * SkipRecords?: int|null, - * TakeRecords?: int|null, - * OnlyUnprocessedItems?: bool|null, + * SkipRecords?: int, + * TakeRecords?: int, + * OnlyUnprocessedItems?: bool, * OrderCreatedFrom?: string|null, * WarehouseZoneId?: int|null, * WarehouseId?: int|null, @@ -77,10 +77,10 @@ public function postSoftBlockPickbons( * Verwerk meerdere pickbonnen. * * @param array|null, - * Mutations?: array|null, - * OrderHeadPickbonId?: int|null, + * AmountOfColli?: int, + * Corrections?: array, + * Mutations?: array, + * OrderHeadPickbonId?: int, * InterimLocationId?: int|null, * Remarks?: string|null, * }> $parameters diff --git a/src/Requests/V11/ProductGroupsRequest.php b/src/Requests/V11/ProductGroupsRequest.php index 67baf7e..4e51b13 100644 --- a/src/Requests/V11/ProductGroupsRequest.php +++ b/src/Requests/V11/ProductGroupsRequest.php @@ -14,8 +14,8 @@ class ProductGroupsRequest extends Request * Verkrijg artikelgroepen o.b.v. het meegestuurde filter. * * @param array{ - * SkipRecords?: int|null, - * TakeRecords?: int|null, + * SkipRecords?: int, + * TakeRecords?: int, * IsTopLevelGroup?: bool|null, * Name?: string|null, * IsVisibleOnWebShop?: bool|null, diff --git a/src/Requests/V11/ProductRequest.php b/src/Requests/V11/ProductRequest.php index 4914cf2..e054645 100644 --- a/src/Requests/V11/ProductRequest.php +++ b/src/Requests/V11/ProductRequest.php @@ -32,21 +32,21 @@ class ProductRequest extends Request { /** * @param array{ - * ProductCode?: string|null, - * ProductDescription1?: string|null, + * ProductCode?: string, + * ProductDescription1?: string, * ProductDescription2?: string|null, - * BrandId?: int|null, - * ProductGroup1?: int|null, + * BrandId?: int, + * ProductGroup1?: int, * ProductGroup2?: int|null, * ProductGroup3?: int|null, * ProductGroup4?: int|null, - * UnitId?: int|null, - * Suppliers?: array|null}>|null, + * UnitId?: int, + * Suppliers?: array}>, * Barcode1?: string|null, * Barcode2?: string|null, - * ExtraBarcodes?: array|null, + * ExtraBarcodes?: array, * VendorCode?: string|null, - * StatusId?: int|null, + * StatusId?: int, * VisibleOnWebshopFrom?: string|null, * ExpirationDateOnWebshop?: string|null, * WarrantyMonths?: int|null, @@ -62,19 +62,19 @@ class ProductRequest extends Request * FreeValue3?: string|null, * FreeValue4?: string|null, * FreeValue5?: string|null, - * ProductPrices?: array|null, - * WeightSingleProduct?: number|null, - * HeightSingleProduct?: number|null, - * WidthSingleProduct?: number|null, - * DepthSingleProduct?: number|null, - * WeightInsidePackage?: number|null, - * HeightInsidePackage?: number|null, - * WidthInsidePackage?: number|null, - * DepthInsidePackage?: number|null, - * WeightOutsidePackage?: number|null, - * HeightOutsidePackage?: number|null, - * WidthOutsidePackage?: number|null, - * DepthOutsidePackage?: number|null, + * ProductPrices?: array, + * WeightSingleProduct?: number, + * HeightSingleProduct?: number, + * WidthSingleProduct?: number, + * DepthSingleProduct?: number, + * WeightInsidePackage?: number, + * HeightInsidePackage?: number, + * WidthInsidePackage?: number, + * DepthInsidePackage?: number, + * WeightOutsidePackage?: number, + * HeightOutsidePackage?: number, + * WidthOutsidePackage?: number, + * DepthOutsidePackage?: number, * MinStockCount?: int|null, * MaxStockCount?: int|null, * } $parameters @@ -96,7 +96,7 @@ public function addProduct(array $parameters = []): Int32Logic4Response * * @param array{ * ImageBase64String?: string|null, - * ProductId?: int|null, + * ProductId?: int, * ImageName?: string|null, * ImageId?: int|null, * SortId?: int|null, @@ -236,7 +236,7 @@ public function getPriceInformationForProduct( * @param array{ * PricelistId?: int|null, * DebtorId?: int|null, - * LoadContractPrices?: bool|null, + * LoadContractPrices?: bool, * } $parameters * * @throws Logic4ApiException @@ -287,9 +287,9 @@ public function getProductImages( * Haal ID's op van voorraadlocaties voor een bepaald product in een bepaald magazijn. * * @param array{ - * ProductIds?: array|null, + * ProductIds?: array, * WarehouseId?: int|null, - * SystemDefaultPickLocation?: bool|null, + * SystemDefaultPickLocation?: bool, * } $parameters * * @throws Logic4ApiException @@ -331,8 +331,8 @@ public function getProductReviews( * @param array{ * DateTimeChangedFrom?: string|null, * DateTimeChangedTo?: string|null, - * LoadFreeValuesTypes?: bool|null, - * BrandIds?: array|null, + * LoadFreeValuesTypes?: bool, + * BrandIds?: array, * IsVisibleInLogic4?: bool|null, * IsVisibleOnWebShop?: bool|null, * AllShowOnWebsite?: bool|null, @@ -340,12 +340,12 @@ public function getProductReviews( * UseChildProductGroups?: bool|null, * ProductCode?: string|null, * Barcode?: string|null, - * Barcodes?: array|null, + * Barcodes?: array, * DebtorId?: int|null, * WebshopUserId?: int|null, * WebshopPriceListId?: int|null, * UseDropShipmentAmountsForWebshopPrices?: bool|null, - * ProductIds?: array|null, + * ProductIds?: array, * ProductFilterListChoice?: string|null, * ProductHistoryBasedOnInvoices?: bool|null, * WebshopUserOrderlistProductType?: int|null, @@ -359,16 +359,16 @@ public function getProductReviews( * SkipRecords?: int|null, * TakeRecords?: int|null, * LoadProductGroups?: bool|null, - * LoadExtraBarcodes?: bool|null, + * LoadExtraBarcodes?: bool, * OnlyShowParentProducts?: bool|null, * GlobalisationId?: int|null, * WebsiteDomainId?: int|null, * WareHouseId?: int|null, - * UseECommerceProductGroups?: bool|null, - * UseECommerceProductGroupsToLoadProductGroups?: bool|null, - * LoadStockForWarehouses?: bool|null, - * LoadAllWebshopGroupsLinkedToProduct?: bool|null, - * LoadProductTypes?: bool|null, + * UseECommerceProductGroups?: bool, + * UseECommerceProductGroupsToLoadProductGroups?: bool, + * LoadStockForWarehouses?: bool, + * LoadAllWebshopGroupsLinkedToProduct?: bool, + * LoadProductTypes?: bool, * } $parameters * * @return \Generator @@ -418,12 +418,12 @@ public function getProductSEOInformations( * UseChildProductGroups?: bool|null, * ProductCode?: string|null, * Barcode?: string|null, - * Barcodes?: array|null, + * Barcodes?: array, * DebtorId?: int|null, * WebshopUserId?: int|null, * WebshopPriceListId?: int|null, * UseDropShipmentAmountsForWebshopPrices?: bool|null, - * ProductIds?: array|null, + * ProductIds?: array, * ProductFilterListChoice?: string|null, * ProductHistoryBasedOnInvoices?: bool|null, * WebshopUserOrderlistProductType?: int|null, @@ -437,16 +437,16 @@ public function getProductSEOInformations( * SkipRecords?: int|null, * TakeRecords?: int|null, * LoadProductGroups?: bool|null, - * LoadExtraBarcodes?: bool|null, + * LoadExtraBarcodes?: bool, * OnlyShowParentProducts?: bool|null, * GlobalisationId?: int|null, * WebsiteDomainId?: int|null, * WareHouseId?: int|null, - * UseECommerceProductGroups?: bool|null, - * UseECommerceProductGroupsToLoadProductGroups?: bool|null, - * LoadStockForWarehouses?: bool|null, - * LoadAllWebshopGroupsLinkedToProduct?: bool|null, - * LoadProductTypes?: bool|null, + * UseECommerceProductGroups?: bool, + * UseECommerceProductGroupsToLoadProductGroups?: bool, + * LoadStockForWarehouses?: bool, + * LoadAllWebshopGroupsLinkedToProduct?: bool, + * LoadProductTypes?: bool, * } $parameters * * @throws Logic4ApiException @@ -463,7 +463,7 @@ public function getProductsIds( /** * @param array{ - * ProductIds?: array|null, + * ProductIds?: array, * Skip?: int|null, * Take?: int|null, * } $parameters @@ -483,7 +483,7 @@ public function getProductVariantBalkChildren(array $parameters = []): \Generato /** * @param array{ - * ProductIds?: array|null, + * ProductIds?: array, * RelatedTypeId?: int|null, * Skip?: int|null, * Take?: int|null, @@ -535,9 +535,9 @@ public function getSuppliersForProduct( * Verkrijg alle leveranciers van één of meerdere producten op basis van ProductId's (max. 1000). Of gebruik 'TakeRecords' (max. 10.000). * * @param array{ - * ProductIds?: array|null, - * SkipRecords?: int|null, - * TakeRecords?: int|null, + * ProductIds?: array, + * SkipRecords?: int, + * TakeRecords?: int, * } $parameters * * @return \Generator @@ -569,8 +569,8 @@ public function getUnits(): ProductUnitLogic4ResponseList /** * @param array{ - * SupplierId?: int|null, - * ProductId?: int|null, + * SupplierId?: int, + * ProductId?: int, * } $parameters * * @throws Logic4ApiException @@ -589,8 +589,8 @@ public function removeProductSupplier( * Voor deze aanroep zijn extra rechten vereist. * * @param array{ - * SupplierId?: int|null, - * ProductId?: int|null, + * SupplierId?: int, + * ProductId?: int, * } $parameters * * @throws Logic4ApiException @@ -607,7 +607,7 @@ public function setActiveProductSupplier( /** * @param array{ - * ProductId?: int|null, + * ProductId?: int, * ProductDescription1?: string|null, * ProductDescription2?: string|null, * ProductGroup2?: int|null, @@ -663,10 +663,10 @@ public function updateProduct(array $parameters = []): Int32Logic4Response /** * @param array{ - * ProductId?: int|null, + * ProductId?: int, * TypeId?: int|null, - * Barcode?: string|null, - * Quantity?: int|null, + * Barcode?: string, + * Quantity?: int, * UnitId?: int|null, * } $parameters * @@ -688,9 +688,9 @@ public function updateProductAddExtraBarcode( * * @param array{ * ImageBase64String?: string|null, - * ProductId?: int|null, + * ProductId?: int, * ImageName?: string|null, - * ImageId?: int|null, + * ImageId?: int, * SortId?: int|null, * } $parameters * @@ -710,9 +710,9 @@ public function updateProductImage( * Voor deze aanroep zijn extra rechten vereist. * * @param array{ - * ProductGroup1Id?: int|null, - * BrandId?: int|null, - * ProductId?: int|null, + * ProductGroup1Id?: int, + * BrandId?: int, + * ProductId?: int, * } $parameters * * @throws Logic4ApiException @@ -731,8 +731,8 @@ public function updateProductMainGroupAndBrand( * Voor deze aanroep zijn extra rechten vereist. * * @param array{ - * ProductPrices?: array|null, - * ProductId?: int|null, + * ProductPrices?: array, + * ProductId?: int, * } $parameters * * @throws Logic4ApiException @@ -749,8 +749,8 @@ public function updateProductPrices( /** * @param array{ - * ProductId?: int|null, - * Barcode?: string|null, + * ProductId?: int, + * Barcode?: string, * } $parameters * * @throws Logic4ApiException @@ -781,8 +781,8 @@ public function updateProductRemoveExtraBarcode( * * @param array{ * WebsiteDomainId?: int|null, - * GlobalizationId?: int|null, - * ProductId?: int|null, + * GlobalizationId?: int, + * ProductId?: int, * Title?: string|null, * Description?: string|null, * USP?: string|null, @@ -812,8 +812,8 @@ public function updateProductSEOInformation( * RepackagingQty?: int|null, * RepackagingUnitId?: int|null, * InternalNote?: string|null, - * SupplierId?: int|null, - * ProductId?: int|null, + * SupplierId?: int, + * ProductId?: int, * } $parameters * * @throws Logic4ApiException @@ -830,9 +830,9 @@ public function updateProductSupplier( /** * @param array{ - * ProductId?: int|null, - * SupplierId?: int|null, - * ProductPrices?: array|null, + * ProductId?: int, + * SupplierId?: int, + * ProductPrices?: array, * } $parameters * * @throws Logic4ApiException diff --git a/src/Requests/V11/RelationsRequest.php b/src/Requests/V11/RelationsRequest.php index 236b978..c1405ee 100644 --- a/src/Requests/V11/RelationsRequest.php +++ b/src/Requests/V11/RelationsRequest.php @@ -18,15 +18,15 @@ class RelationsRequest extends Request * Verkrijg adressen o.b.v. het meegestuurde filter. * * @param array{ - * SkipRecords?: int|null, - * TakeRecords?: int|null, + * SkipRecords?: int, + * TakeRecords?: int, * ChangedAfter?: string|null, * Id?: int|null, * AddressTypeId?: int|null, * PhoneNumber?: string|null, * DebtorId?: int|null, * CreditorId?: int|null, - * ExcludeHiddenContacts?: bool|null, + * ExcludeHiddenContacts?: bool, * OwnContactNumber?: string|null, * } $parameters * @@ -47,15 +47,15 @@ public function getAddresses(array $parameters = []): \Generator * Verkrijg contacten o.b.v. het meegestuurde filter. * * @param array{ - * SkipRecords?: int|null, - * TakeRecords?: int|null, + * SkipRecords?: int, + * TakeRecords?: int, * ChangedAfter?: string|null, * Id?: int|null, * AddressTypeId?: int|null, * PhoneNumber?: string|null, * DebtorId?: int|null, * CreditorId?: int|null, - * ExcludeHiddenContacts?: bool|null, + * ExcludeHiddenContacts?: bool, * OwnContactNumber?: string|null, * } $parameters * @@ -76,14 +76,14 @@ public function getContacts(array $parameters = []): \Generator * Verkrijg crediteuren o.b.v. het meegestuurde filter. * * @param array{ - * SkipRecords?: int|null, - * TakeRecords?: int|null, + * SkipRecords?: int, + * TakeRecords?: int, * ChangedAfter?: string|null, * Id?: int|null, * PhoneNumber?: string|null, * WebsiteDomainId?: int|null, * EmailAddress?: string|null, - * EmailAddressIsExact?: bool|null, + * EmailAddressIsExact?: bool, * } $parameters * * @return \Generator @@ -103,14 +103,14 @@ public function getCreditors(array $parameters = []): \Generator * Verkrijg debiteuren o.b.v. het meegestuurde filter. * * @param array{ - * SkipRecords?: int|null, - * TakeRecords?: int|null, + * SkipRecords?: int, + * TakeRecords?: int, * ChangedAfter?: string|null, * Id?: int|null, * PhoneNumber?: string|null, * WebsiteDomainId?: int|null, * EmailAddress?: string|null, - * EmailAddressIsExact?: bool|null, + * EmailAddressIsExact?: bool, * } $parameters * * @return \Generator @@ -130,8 +130,8 @@ public function getCustomers(array $parameters = []): \Generator * Verkrijg alle vertegenwoordigers. * * @param array{ - * SkipRecords?: int|null, - * TakeRecords?: int|null, + * SkipRecords?: int, + * TakeRecords?: int, * } $parameters * * @return \Generator diff --git a/src/Requests/V11/StockRequest.php b/src/Requests/V11/StockRequest.php index abfff3f..d7fd6b9 100644 --- a/src/Requests/V11/StockRequest.php +++ b/src/Requests/V11/StockRequest.php @@ -21,8 +21,8 @@ class StockRequest extends Request * Ophalen van externe voorraadstanden voor actieve leveranciers. * * @param array{ - * SkipRecords?: int|null, - * TakeRecords?: int|null, + * SkipRecords?: int, + * TakeRecords?: int, * ProductStockFrom?: int|null, * DateTimeLastUpdateSince?: string|null, * } $parameters @@ -44,9 +44,9 @@ public function getExternalStockForActiveSuppliers(array $parameters = []): \Gen * Verkrijg de eerst volgende leverdata van alle actieve leveranciers, vanaf een specifieke datum. * * @param array{ - * NextDeliveryDate?: string|null, - * SkipRecords?: int|null, - * TakeRecords?: int|null, + * NextDeliveryDate?: string, + * SkipRecords?: int, + * TakeRecords?: int, * } $parameters * * @return \Generator @@ -66,9 +66,9 @@ public function getNextDeliveriesDatesForActiveSuppliers(array $parameters = []) * Haal voorraadmutaties op. Maximaal 10000 records per keer kunnen worden opgehaald. * * @param array{ - * SkipRecords?: int|null, - * TakeRecords?: int|null, - * PickbonIds?: array|null, + * SkipRecords?: int, + * TakeRecords?: int, + * PickbonIds?: array, * DateFrom?: string|null, * DateTo?: string|null, * BuyOrderId?: int|null, @@ -109,8 +109,8 @@ public function getProductStockMutationTypes( * Voorraadcontrole heads ophalen op basis van het ProductStockControlHeadFilter. * * @param array{ - * SkipRecords?: int|null, - * TakeRecords?: int|null, + * SkipRecords?: int, + * TakeRecords?: int, * StockLocationId?: int|null, * UserId?: int|null, * CreatedDateFrom?: string|null, @@ -136,8 +136,8 @@ public function getStockControlHeads(array $parameters = []): \Generator * Ophalen van voorraadstanden voor specifieke magazijnen. * * @param array{ - * SkipRecords?: int|null, - * TakeRecords?: int|null, + * SkipRecords?: int, + * TakeRecords?: int, * WareHouseId?: int|null, * } $parameters * @@ -158,9 +158,9 @@ public function getStockForWarehouses(array $parameters = []): \Generator * Verkrijg de producten die op de locatie aanwezig zouden moeten zijn. * * @param array{ - * LocationId?: int|null, - * SkipRecords?: int|null, - * TakeRecords?: int|null, + * LocationId?: int, + * SkipRecords?: int, + * TakeRecords?: int, * } $parameters * * @return \Generator @@ -181,13 +181,13 @@ public function getStockProductsForStockLocation(array $parameters = []): \Gener * Return True wanneer gelukt, anders foutmelding. * * @param array{ - * Items?: array|null, + * Items?: array, * FromStockLocationId?: int|null, * FromWarehouseId?: int|null, - * ToStockLocationId?: int|null, + * ToStockLocationId?: int, * Notes?: string|null, * Name?: string|null, - * DatabaseAdministrationId?: int|null, + * DatabaseAdministrationId?: int, * } $parameters * * @throws Logic4ApiException @@ -230,8 +230,8 @@ public function setExternalStockForSupplier( * Verander de standaard picklocatie van artikelen naar een andere voorraad locatie. * * @param array $parameters * diff --git a/src/Requests/V11/WebshopRequest.php b/src/Requests/V11/WebshopRequest.php index 6aeacab..a0223ca 100644 --- a/src/Requests/V11/WebshopRequest.php +++ b/src/Requests/V11/WebshopRequest.php @@ -17,16 +17,16 @@ class WebshopRequest extends Request * Voeg een WebshopUserProduct toe aan een WebshopUserProductlijst. * * @param array{ - * Id?: int|null, - * DateTimeAdded?: string|null, + * Id?: int, + * DateTimeAdded?: string, * ComposedProductParentId?: int|null, * WebshopUserId?: int|null, - * ProductInformation?: array{SubUnit_ParentId?: int|null, ProductId?: int, ProductCode?: string|null, ProductName1?: string|null, ProductName2?: string|null, ProductInfo?: string|null, StatusId?: int, Statusname?: string|null, BrandId?: int, Brandname?: string|null, Imagename1?: string|null, ImageUrl1?: string|null, Imagename2?: string|null, ImageUrl2?: string|null, Imagename3?: string|null, ImageUrl3?: string|null, Unit?: string|null, UnitId?: int, MinSaleAmount?: int, MinSaleAmountWebshop?: int|null, MinSaleBuyAmountDropShipment?: int|null, SaleCountIncrement?: int|null, SaleCountIncrementWebshop?: int|null, SaleCountIncrementDropShipment?: int|null, MinBuyAmount?: int|null, VatPercent?: number, VatCodeId?: int|null, SellPriceGross?: number, Weight?: number, Volume?: number, Offer?: array{StartDate?: string|null, EndDate?: string|null, FromPrice?: number|null, ToPrice?: number|null, OfferGroupId?: int|null, ProductId?: int}, SellPriceAdvice?: number|null, BuyPrice?: number, ProductGroupId1?: int, ProductGroupId2?: int|null, ProductGroupId3?: int|null, ProductGroupId4?: int|null, BuyCountIncrement?: int|null, SellPriceLowestForWebshop?: number|null, ExcludePriceFromPricelistCalculations?: bool, AdditionalBuyPriceAmount?: number|null, AdditionalBuyPricePercentage?: number|null, IsComposedProduct?: bool|null, IsAssemblyProduct?: bool, ComposedProductSetChildSellPricesToZero?: bool, ComposedProductSetSellPriceToZero?: bool|null, FreeStock?: number, ExternalStockActiveSupplier?: int|null, CreditorDiscountGroupId?: int|null, DateTimeLastChanged?: string, DateTimeAdded?: string, BarCode1?: string|null, FreeValues?: array|null, Sorting?: int|null, NextDelivery?: string|null, Descriptions?: array|null, ShiftPrices?: array|null, ProductGroups?: array|null}>|null, Barcode2?: string|null, BarcodeExtraList?: array|null, SystemBarcode?: string|null, ProductGroup1ProductGroupTypeId?: int, WareHouses?: array|null, MinimalStock?: int|null, PCSinInsidePackage?: int, PCSinOutsidePackage?: int, ProductType1?: array{Id?: int, Value?: string|null}, ProductType2?: array{Id?: int, Value?: string|null}, ProductType3?: array{Id?: int, Value?: string|null}, ProductType4?: array{Id?: int, Value?: string|null}, ProductType5?: array{Id?: int, Value?: string|null}, StandardAmount?: number|null, VendorCode?: string|null, ProductTemplateId?: int|null, ProductTemplateName?: string|null, HasVariants?: bool, VariantParentProductId?: int|null, Tags?: array|null, DefaultPickLocation?: int|null, DefaultBulkLocation?: int|null}|null, - * ProductId?: int|null, + * ProductInformation?: array{SubUnit_ParentId?: int|null, ProductId?: int, ProductCode?: string|null, ProductName1?: string|null, ProductName2?: string|null, ProductInfo?: string|null, StatusId?: int, Statusname?: string|null, BrandId?: int, Brandname?: string|null, Imagename1?: string|null, ImageUrl1?: string|null, Imagename2?: string|null, ImageUrl2?: string|null, Imagename3?: string|null, ImageUrl3?: string|null, Unit?: string|null, UnitId?: int, MinSaleAmount?: int, MinSaleAmountWebshop?: int|null, MinSaleBuyAmountDropShipment?: int|null, SaleCountIncrement?: int|null, SaleCountIncrementWebshop?: int|null, SaleCountIncrementDropShipment?: int|null, MinBuyAmount?: int|null, VatPercent?: number, VatCodeId?: int|null, SellPriceGross?: number, Weight?: number, Volume?: number, Offer?: array{StartDate?: string|null, EndDate?: string|null, FromPrice?: number|null, ToPrice?: number|null, OfferGroupId?: int|null, ProductId?: int}, SellPriceAdvice?: number|null, BuyPrice?: number, ProductGroupId1?: int, ProductGroupId2?: int|null, ProductGroupId3?: int|null, ProductGroupId4?: int|null, BuyCountIncrement?: int|null, SellPriceLowestForWebshop?: number|null, ExcludePriceFromPricelistCalculations?: bool, AdditionalBuyPriceAmount?: number|null, AdditionalBuyPricePercentage?: number|null, IsComposedProduct?: bool|null, IsAssemblyProduct?: bool, ComposedProductSetChildSellPricesToZero?: bool, ComposedProductSetSellPriceToZero?: bool|null, FreeStock?: number, ExternalStockActiveSupplier?: int|null, CreditorDiscountGroupId?: int|null, DateTimeLastChanged?: string, DateTimeAdded?: string, BarCode1?: string|null, FreeValues?: array, Sorting?: int|null, NextDelivery?: string|null, Descriptions?: array, ShiftPrices?: array, ProductGroups?: array}>, Barcode2?: string|null, BarcodeExtraList?: array, SystemBarcode?: string|null, ProductGroup1ProductGroupTypeId?: int, WareHouses?: array, MinimalStock?: int|null, PCSinInsidePackage?: int, PCSinOutsidePackage?: int, ProductType1?: array{Id?: int, Value?: string|null}, ProductType2?: array{Id?: int, Value?: string|null}, ProductType3?: array{Id?: int, Value?: string|null}, ProductType4?: array{Id?: int, Value?: string|null}, ProductType5?: array{Id?: int, Value?: string|null}, StandardAmount?: number|null, VendorCode?: string|null, ProductTemplateId?: int|null, ProductTemplateName?: string|null, HasVariants?: bool, VariantParentProductId?: int|null, Tags?: array, DefaultPickLocation?: int|null, DefaultBulkLocation?: int|null}, + * ProductId?: int, * QtyDec?: number|null, * Commission?: string|null, - * ExcludedFromAnnualBudget?: bool|null, - * TypeId?: int|null, + * ExcludedFromAnnualBudget?: bool, + * TypeId?: int, * DebtorId?: int|null, * VisitorCode?: string|null, * WebsiteDomainId?: int|null, @@ -51,8 +51,8 @@ public function addWebshopUserProductToWebshopUserProductList( * Verkrijg zoekresultaten van een webshop o.b.v. meegestuurde filter. * * @param array{ - * SkipRecords?: int|null, - * TakeRecords?: int|null, + * SkipRecords?: int, + * TakeRecords?: int, * SearchTerm?: string|null, * DateFrom?: string|null, * DateTo?: string|null, @@ -77,8 +77,8 @@ public function getWebshopSearchWords(array $parameters = []): \Generator * Verkrijg een bestellijst o.b.v. webshopgebruikersnummer of debiteurnummer voor de producttypes zie eindpunt /Webshop/GetWebshopUserOrderlistProductTypes. * * @param array{ - * SkipRecords?: int|null, - * TakeRecords?: int|null, + * SkipRecords?: int, + * TakeRecords?: int, * WebshopUserProductListType?: int|null, * DebtorId?: int|null, * WebshopUserId?: int|null, @@ -102,7 +102,7 @@ public function getWebshopUserOrderlist(array $parameters = []): \Generator * * @param array{ * VisitorCode?: string|null, - * WebshopUserProductListType?: string|null, + * WebshopUserProductListType?: string, * WebshopPricelistId?: int|null, * GetHighestShiftPrice?: bool|null, * CountryIdForSellPrice?: int|null, diff --git a/src/Requests/V12/OrderRequest.php b/src/Requests/V12/OrderRequest.php index cc5d51d..771a6c8 100644 --- a/src/Requests/V12/OrderRequest.php +++ b/src/Requests/V12/OrderRequest.php @@ -18,19 +18,19 @@ class OrderRequest extends Request * Met v1.2 of hoger kan het Id van het afleveradres gebruikt worden om het afleveradres te bepalen. * * @param array{ - * Totals?: array{AmountEx?: number, VATPercentage?: number, Calc_TotalPayed?: number|null, AmountIncl?: number, IsPaid?: bool, ShippingCost?: number, ShippingCostIncl?: number|null}|null, + * Totals?: array{AmountEx?: number, VATPercentage?: number, Calc_TotalPayed?: number|null, AmountIncl?: number, IsPaid?: bool, ShippingCost?: number, ShippingCostIncl?: number|null}, * DebtorId?: int|null, - * CustomerThirdPartyExternalIdentifer?: array{DebtorId?: int|null, TypeId?: int|null, Value?: string|null}|null, + * CustomerThirdPartyExternalIdentifer?: array{DebtorId?: int|null, TypeId?: int|null, Value?: string|null}, * Id?: int|null, - * PaymentMethod?: array{Id?: int, Description?: string|null, MaxAmount?: number|null, SelectKey?: string|null}|null, - * ShippingMethod?: array{Id?: int, Name?: string|null, ExportCode?: string|null}|null, - * CheckForOrderCostAndPaymentRegulation?: bool|null, - * OrderStatus?: array{Id?: int, Value?: string|null}|null, - * OrderRows?: array|null, - * AcceptTermsAndConditions?: bool|null, - * DeliveryAddress?: array{TelephoneNumber?: string|null, Email?: string|null, Street2?: string|null, HouseNumber2?: string|null, HouseNumberAddition2?: string|null, Id?: int|null, ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null}|null, - * InvoiceAddress?: array{Id?: int|null, ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null}|null, - * CreationDate?: string|null, + * PaymentMethod?: array{Id?: int, Description?: string|null, MaxAmount?: number|null, SelectKey?: string|null}, + * ShippingMethod?: array{Id?: int, Name?: string|null, ExportCode?: string|null}, + * CheckForOrderCostAndPaymentRegulation?: bool, + * OrderStatus?: array{Id?: int, Value?: string|null}, + * OrderRows?: array, + * AcceptTermsAndConditions?: bool, + * DeliveryAddress?: array{TelephoneNumber?: string|null, Email?: string|null, Street2?: string|null, HouseNumber2?: string|null, HouseNumberAddition2?: string|null, Id?: int|null, ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null}, + * InvoiceAddress?: array{Id?: int|null, ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null}, + * CreationDate?: string, * Description?: string|null, * Reference?: string|null, * BranchId?: int|null, @@ -38,7 +38,7 @@ class OrderRequest extends Request * WebsiteDomainId?: int|null, * DeliveryOptionId?: int|null, * DeliveryDate?: string|null, - * OrderShipmentFreeValues?: array{ShipperTypeId?: int, Freevalue1?: string|null, Freevalue2?: string|null, Freevalue3?: string|null, Freevalue4?: string|null, Freevalue5?: string|null}|null, + * OrderShipmentFreeValues?: array{ShipperTypeId?: int, Freevalue1?: string|null, Freevalue2?: string|null, Freevalue3?: string|null, Freevalue4?: string|null, Freevalue5?: string|null}, * Notes?: string|null, * FreeValue1?: string|null, * FreeValue2?: string|null, @@ -75,8 +75,8 @@ public function addUpdateOrder(array $parameters = []): Int32Logic4Response * Verkrijg facturen o.b.v. het meegestuurde filter. * * @param array{ - * SkipRecords?: int|null, - * TakeRecords?: int|null, + * SkipRecords?: int, + * TakeRecords?: int, * ChangedAfter?: string|null, * Id?: int|null, * DebtorId?: int|null, @@ -99,12 +99,12 @@ public function addUpdateOrder(array $parameters = []): Int32Logic4Response * LastActionFrom?: string|null, * LastActionTo?: string|null, * Reference?: string|null, - * LoadPayments?: bool|null, + * LoadPayments?: bool, * StatusId?: int|null, * Type1Id?: int|null, * Type2Id?: int|null, * Type3Id?: int|null, - * WebsiteDomainIds?: array|null, + * WebsiteDomainIds?: array, * } $parameters * * @return \Generator @@ -124,8 +124,8 @@ public function getInvoices(array $parameters = []): \Generator * Verkrijg orders o.b.v. het meegestuurde filter. * * @param array{ - * SkipRecords?: int|null, - * TakeRecords?: int|null, + * SkipRecords?: int, + * TakeRecords?: int, * ChangedAfter?: string|null, * Id?: int|null, * DebtorId?: int|null, @@ -148,12 +148,12 @@ public function getInvoices(array $parameters = []): \Generator * LastActionFrom?: string|null, * LastActionTo?: string|null, * Reference?: string|null, - * LoadPayments?: bool|null, + * LoadPayments?: bool, * StatusId?: int|null, * Type1Id?: int|null, * Type2Id?: int|null, * Type3Id?: int|null, - * WebsiteDomainIds?: array|null, + * WebsiteDomainIds?: array, * } $parameters * * @return \Generator diff --git a/src/Requests/V12/ProductRequest.php b/src/Requests/V12/ProductRequest.php index 7c08c75..51c06f9 100644 --- a/src/Requests/V12/ProductRequest.php +++ b/src/Requests/V12/ProductRequest.php @@ -29,8 +29,8 @@ public function getBarcodeTypes(): ProductExtraBarcodeTypeLogic4ResponseList * Haal merken op o.b.v. het filter. * * @param array{ - * SkipRecords?: int|null, - * TakeRecords?: int|null, + * SkipRecords?: int, + * TakeRecords?: int, * } $parameters * * @return \Generator @@ -52,8 +52,8 @@ public function getBrands(array $parameters = []): \Generator * @param array{ * DateTimeChangedFrom?: string|null, * DateTimeChangedTo?: string|null, - * LoadFreeValuesTypes?: bool|null, - * BrandIds?: array|null, + * LoadFreeValuesTypes?: bool, + * BrandIds?: array, * IsVisibleInLogic4?: bool|null, * IsVisibleOnWebShop?: bool|null, * AllShowOnWebsite?: bool|null, @@ -61,12 +61,12 @@ public function getBrands(array $parameters = []): \Generator * UseChildProductGroups?: bool|null, * ProductCode?: string|null, * Barcode?: string|null, - * Barcodes?: array|null, + * Barcodes?: array, * DebtorId?: int|null, * WebshopUserId?: int|null, * WebshopPriceListId?: int|null, * UseDropShipmentAmountsForWebshopPrices?: bool|null, - * ProductIds?: array|null, + * ProductIds?: array, * ProductFilterListChoice?: string|null, * ProductHistoryBasedOnInvoices?: bool|null, * WebshopUserOrderlistProductType?: int|null, @@ -80,16 +80,16 @@ public function getBrands(array $parameters = []): \Generator * SkipRecords?: int|null, * TakeRecords?: int|null, * LoadProductGroups?: bool|null, - * LoadExtraBarcodes?: bool|null, + * LoadExtraBarcodes?: bool, * OnlyShowParentProducts?: bool|null, * GlobalisationId?: int|null, * WebsiteDomainId?: int|null, * WareHouseId?: int|null, - * UseECommerceProductGroups?: bool|null, - * UseECommerceProductGroupsToLoadProductGroups?: bool|null, - * LoadStockForWarehouses?: bool|null, - * LoadAllWebshopGroupsLinkedToProduct?: bool|null, - * LoadProductTypes?: bool|null, + * UseECommerceProductGroups?: bool, + * UseECommerceProductGroupsToLoadProductGroups?: bool, + * LoadStockForWarehouses?: bool, + * LoadAllWebshopGroupsLinkedToProduct?: bool, + * LoadProductTypes?: bool, * } $parameters * * @return \Generator @@ -110,9 +110,9 @@ public function getProducts(array $parameters = []): \Generator * Vanaf v1.2 worden velden met de waarde null niet teruggegeven. * * @param array{ - * ProductIds?: array|null, - * SkipRecords?: int|null, - * TakeRecords?: int|null, + * ProductIds?: array, + * SkipRecords?: int, + * TakeRecords?: int, * } $parameters * * @return \Generator diff --git a/src/Requests/V12/WebshopRequest.php b/src/Requests/V12/WebshopRequest.php index 9e6064d..aa7ba83 100644 --- a/src/Requests/V12/WebshopRequest.php +++ b/src/Requests/V12/WebshopRequest.php @@ -14,16 +14,16 @@ class WebshopRequest extends Request * Voeg een WebshopUserProduct toe aan een WebshopUserProductlijst. * * @param array{ - * Id?: int|null, - * DateTimeAdded?: string|null, + * Id?: int, + * DateTimeAdded?: string, * ComposedProductParentId?: int|null, * WebshopUserId?: int|null, - * ProductInformation?: array{ProductId?: int, ProductCode?: string|null, ProductName1?: string|null, ProductName2?: string|null, ProductInfo?: string|null, StatusId?: int, Statusname?: string|null, BrandId?: int, Brandname?: string|null, Imagename1?: string|null, ImageUrl1?: string|null, Imagename2?: string|null, ImageUrl2?: string|null, Imagename3?: string|null, ImageUrl3?: string|null, Unit?: string|null, UnitId?: int, MinSaleAmount?: int, MinSaleAmountWebshop?: int|null, MinSaleBuyAmountDropShipment?: int|null, SaleCountIncrement?: int|null, SaleCountIncrementWebshop?: int|null, SaleCountIncrementDropShipment?: int|null, MinBuyAmount?: int|null, VatPercent?: number, VatCodeId?: int|null, SellPriceGross?: number, Weight?: number, Volume?: number, Offer?: array{StartDate?: string|null, EndDate?: string|null, FromPrice?: number|null, ToPrice?: number|null, OfferGroupId?: int|null, ProductId?: int}, SellPriceAdvice?: number|null, BuyPrice?: number, ProductGroupId1?: int, ProductGroupId2?: int|null, ProductGroupId3?: int|null, ProductGroupId4?: int|null, BuyCountIncrement?: int|null, SellPriceLowestForWebshop?: number|null, ExcludePriceFromPricelistCalculations?: bool, AdditionalBuyPriceAmount?: number|null, AdditionalBuyPricePercentage?: number|null, IsComposedProduct?: bool|null, IsAssemblyProduct?: bool, ComposedProductSetChildSellPricesToZero?: bool, ComposedProductSetSellPriceToZero?: bool|null, FreeStock?: number, ExternalStockActiveSupplier?: int|null, CreditorDiscountGroupId?: int|null, DateTimeLastChanged?: string, DateTimeAdded?: string, BarCode1?: string|null, FreeValues?: array|null, Sorting?: int|null, NextDelivery?: string|null, Descriptions?: array|null, ShiftPrices?: array|null, ProductGroups?: array|null}>|null, Barcode2?: string|null, BarcodeExtraList?: array|null, SystemBarcode?: string|null, ProductGroup1ProductGroupTypeId?: int, WareHouses?: array|null, MinimalStock?: int|null, PCSinInsidePackage?: int, PCSinOutsidePackage?: int, ProductType1?: array{Id?: int, Value?: string|null}, ProductType2?: array{Id?: int, Value?: string|null}, ProductType3?: array{Id?: int, Value?: string|null}, ProductType4?: array{Id?: int, Value?: string|null}, ProductType5?: array{Id?: int, Value?: string|null}, StandardAmount?: number|null, VendorCode?: string|null, ProductTemplateId?: int|null, ProductTemplateName?: string|null, HasVariants?: bool, VariantParentProductId?: int|null, Tags?: array|null, DefaultPickLocation?: int|null, DefaultBulkLocation?: int|null}|null, - * ProductId?: int|null, + * ProductInformation?: array{ProductId?: int, ProductCode?: string|null, ProductName1?: string|null, ProductName2?: string|null, ProductInfo?: string|null, StatusId?: int, Statusname?: string|null, BrandId?: int, Brandname?: string|null, Imagename1?: string|null, ImageUrl1?: string|null, Imagename2?: string|null, ImageUrl2?: string|null, Imagename3?: string|null, ImageUrl3?: string|null, Unit?: string|null, UnitId?: int, MinSaleAmount?: int, MinSaleAmountWebshop?: int|null, MinSaleBuyAmountDropShipment?: int|null, SaleCountIncrement?: int|null, SaleCountIncrementWebshop?: int|null, SaleCountIncrementDropShipment?: int|null, MinBuyAmount?: int|null, VatPercent?: number, VatCodeId?: int|null, SellPriceGross?: number, Weight?: number, Volume?: number, Offer?: array{StartDate?: string|null, EndDate?: string|null, FromPrice?: number|null, ToPrice?: number|null, OfferGroupId?: int|null, ProductId?: int}, SellPriceAdvice?: number|null, BuyPrice?: number, ProductGroupId1?: int, ProductGroupId2?: int|null, ProductGroupId3?: int|null, ProductGroupId4?: int|null, BuyCountIncrement?: int|null, SellPriceLowestForWebshop?: number|null, ExcludePriceFromPricelistCalculations?: bool, AdditionalBuyPriceAmount?: number|null, AdditionalBuyPricePercentage?: number|null, IsComposedProduct?: bool|null, IsAssemblyProduct?: bool, ComposedProductSetChildSellPricesToZero?: bool, ComposedProductSetSellPriceToZero?: bool|null, FreeStock?: number, ExternalStockActiveSupplier?: int|null, CreditorDiscountGroupId?: int|null, DateTimeLastChanged?: string, DateTimeAdded?: string, BarCode1?: string|null, FreeValues?: array, Sorting?: int|null, NextDelivery?: string|null, Descriptions?: array, ShiftPrices?: array, ProductGroups?: array}>, Barcode2?: string|null, BarcodeExtraList?: array, SystemBarcode?: string|null, ProductGroup1ProductGroupTypeId?: int, WareHouses?: array, MinimalStock?: int|null, PCSinInsidePackage?: int, PCSinOutsidePackage?: int, ProductType1?: array{Id?: int, Value?: string|null}, ProductType2?: array{Id?: int, Value?: string|null}, ProductType3?: array{Id?: int, Value?: string|null}, ProductType4?: array{Id?: int, Value?: string|null}, ProductType5?: array{Id?: int, Value?: string|null}, StandardAmount?: number|null, VendorCode?: string|null, ProductTemplateId?: int|null, ProductTemplateName?: string|null, HasVariants?: bool, VariantParentProductId?: int|null, Tags?: array, DefaultPickLocation?: int|null, DefaultBulkLocation?: int|null}, + * ProductId?: int, * QtyDec?: number|null, * Commission?: string|null, - * ExcludedFromAnnualBudget?: bool|null, - * TypeId?: int|null, + * ExcludedFromAnnualBudget?: bool, + * TypeId?: int, * DebtorId?: int|null, * VisitorCode?: string|null, * WebsiteDomainId?: int|null, diff --git a/src/Requests/V13/OrderRequest.php b/src/Requests/V13/OrderRequest.php index 0e85bab..52ee8e8 100644 --- a/src/Requests/V13/OrderRequest.php +++ b/src/Requests/V13/OrderRequest.php @@ -17,19 +17,19 @@ class OrderRequest extends Request * Bij het succesvol aanmaken/updaten wordt het (nieuwe) factuurnummer in de response gevuld. * * @param array{ - * Totals?: array{ShippingCost?: number, ShippingCostIncl?: number|null}|null, + * Totals?: array{ShippingCost?: number, ShippingCostIncl?: number|null}, * DebtorId?: int|null, - * CustomerThirdPartyExternalIdentifer?: array{DebtorId?: int|null, TypeId?: int|null, Value?: string|null}|null, + * CustomerThirdPartyExternalIdentifer?: array{DebtorId?: int|null, TypeId?: int|null, Value?: string|null}, * Id?: int|null, - * PaymentMethod?: array{Id?: int, Description?: string|null, MaxAmount?: number|null, SelectKey?: string|null}|null, - * ShippingMethod?: array{Id?: int, Name?: string|null, ExportCode?: string|null}|null, - * CheckForOrderCostAndPaymentRegulation?: bool|null, - * OrderStatus?: array{Id?: int, Value?: string|null}|null, - * OrderRows?: array|null, - * AcceptTermsAndConditions?: bool|null, - * DeliveryAddress?: array{TelephoneNumber?: string|null, Email?: string|null, Street2?: string|null, HouseNumber2?: string|null, HouseNumberAddition2?: string|null, Id?: int|null, ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null}|null, - * InvoiceAddress?: array{Id?: int|null, ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null}|null, - * CreationDate?: string|null, + * PaymentMethod?: array{Id?: int, Description?: string|null, MaxAmount?: number|null, SelectKey?: string|null}, + * ShippingMethod?: array{Id?: int, Name?: string|null, ExportCode?: string|null}, + * CheckForOrderCostAndPaymentRegulation?: bool, + * OrderStatus?: array{Id?: int, Value?: string|null}, + * OrderRows?: array, + * AcceptTermsAndConditions?: bool, + * DeliveryAddress?: array{TelephoneNumber?: string|null, Email?: string|null, Street2?: string|null, HouseNumber2?: string|null, HouseNumberAddition2?: string|null, Id?: int|null, ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null}, + * InvoiceAddress?: array{Id?: int|null, ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null}, + * CreationDate?: string, * Description?: string|null, * Reference?: string|null, * BranchId?: int|null, @@ -37,7 +37,7 @@ class OrderRequest extends Request * WebsiteDomainId?: int|null, * DeliveryOptionId?: int|null, * DeliveryDate?: string|null, - * OrderShipmentFreeValues?: array{ShipperTypeId?: int, Freevalue1?: string|null, Freevalue2?: string|null, Freevalue3?: string|null, Freevalue4?: string|null, Freevalue5?: string|null}|null, + * OrderShipmentFreeValues?: array{ShipperTypeId?: int, Freevalue1?: string|null, Freevalue2?: string|null, Freevalue3?: string|null, Freevalue4?: string|null, Freevalue5?: string|null}, * Notes?: string|null, * FreeValue1?: string|null, * FreeValue2?: string|null, @@ -76,19 +76,19 @@ public function addUpdateInvoice(array $parameters = []): Int32Logic4Response * Met v1.3 wordt emballage meegenomen met de order. * * @param array{ - * Totals?: array{ShippingCost?: number, ShippingCostIncl?: number|null}|null, + * Totals?: array{ShippingCost?: number, ShippingCostIncl?: number|null}, * DebtorId?: int|null, - * CustomerThirdPartyExternalIdentifer?: array{DebtorId?: int|null, TypeId?: int|null, Value?: string|null}|null, + * CustomerThirdPartyExternalIdentifer?: array{DebtorId?: int|null, TypeId?: int|null, Value?: string|null}, * Id?: int|null, - * PaymentMethod?: array{Id?: int, Description?: string|null, MaxAmount?: number|null, SelectKey?: string|null}|null, - * ShippingMethod?: array{Id?: int, Name?: string|null, ExportCode?: string|null}|null, - * CheckForOrderCostAndPaymentRegulation?: bool|null, - * OrderStatus?: array{Id?: int, Value?: string|null}|null, - * OrderRows?: array|null, - * AcceptTermsAndConditions?: bool|null, - * DeliveryAddress?: array{TelephoneNumber?: string|null, Email?: string|null, Street2?: string|null, HouseNumber2?: string|null, HouseNumberAddition2?: string|null, Id?: int|null, ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null}|null, - * InvoiceAddress?: array{Id?: int|null, ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null}|null, - * CreationDate?: string|null, + * PaymentMethod?: array{Id?: int, Description?: string|null, MaxAmount?: number|null, SelectKey?: string|null}, + * ShippingMethod?: array{Id?: int, Name?: string|null, ExportCode?: string|null}, + * CheckForOrderCostAndPaymentRegulation?: bool, + * OrderStatus?: array{Id?: int, Value?: string|null}, + * OrderRows?: array, + * AcceptTermsAndConditions?: bool, + * DeliveryAddress?: array{TelephoneNumber?: string|null, Email?: string|null, Street2?: string|null, HouseNumber2?: string|null, HouseNumberAddition2?: string|null, Id?: int|null, ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null}, + * InvoiceAddress?: array{Id?: int|null, ProvinceId?: int|null, ContactName?: string|null, CompanyName?: string|null, PostalCode?: string|null, City?: string|null, CountryCode?: string|null, Street?: string|null, HouseNumber?: string|null, HouseNumberAddition?: string|null}, + * CreationDate?: string, * Description?: string|null, * Reference?: string|null, * BranchId?: int|null, @@ -96,7 +96,7 @@ public function addUpdateInvoice(array $parameters = []): Int32Logic4Response * WebsiteDomainId?: int|null, * DeliveryOptionId?: int|null, * DeliveryDate?: string|null, - * OrderShipmentFreeValues?: array{ShipperTypeId?: int, Freevalue1?: string|null, Freevalue2?: string|null, Freevalue3?: string|null, Freevalue4?: string|null, Freevalue5?: string|null}|null, + * OrderShipmentFreeValues?: array{ShipperTypeId?: int, Freevalue1?: string|null, Freevalue2?: string|null, Freevalue3?: string|null, Freevalue4?: string|null, Freevalue5?: string|null}, * Notes?: string|null, * FreeValue1?: string|null, * FreeValue2?: string|null, @@ -132,8 +132,8 @@ public function addUpdateOrder(array $parameters = []): Int32Logic4Response * Vanaf 1.3 worden velden met de waarde null niet teruggegeven. * * @param array{ - * SkipRecords?: int|null, - * TakeRecords?: int|null, + * SkipRecords?: int, + * TakeRecords?: int, * ChangedAfter?: string|null, * Id?: int|null, * DebtorId?: int|null, @@ -156,12 +156,12 @@ public function addUpdateOrder(array $parameters = []): Int32Logic4Response * LastActionFrom?: string|null, * LastActionTo?: string|null, * Reference?: string|null, - * LoadPayments?: bool|null, + * LoadPayments?: bool, * StatusId?: int|null, * Type1Id?: int|null, * Type2Id?: int|null, * Type3Id?: int|null, - * WebsiteDomainIds?: array|null, + * WebsiteDomainIds?: array, * } $parameters * * @return \Generator diff --git a/src/Requests/V13/ProductRequest.php b/src/Requests/V13/ProductRequest.php index 2e1847e..49b380e 100644 --- a/src/Requests/V13/ProductRequest.php +++ b/src/Requests/V13/ProductRequest.php @@ -17,8 +17,8 @@ class ProductRequest extends Request * @param array{ * DateTimeChangedFrom?: string|null, * DateTimeChangedTo?: string|null, - * LoadFreeValuesTypes?: bool|null, - * BrandIds?: array|null, + * LoadFreeValuesTypes?: bool, + * BrandIds?: array, * IsVisibleInLogic4?: bool|null, * IsVisibleOnWebShop?: bool|null, * AllShowOnWebsite?: bool|null, @@ -26,12 +26,12 @@ class ProductRequest extends Request * UseChildProductGroups?: bool|null, * ProductCode?: string|null, * Barcode?: string|null, - * Barcodes?: array|null, + * Barcodes?: array, * DebtorId?: int|null, * WebshopUserId?: int|null, * WebshopPriceListId?: int|null, * UseDropShipmentAmountsForWebshopPrices?: bool|null, - * ProductIds?: array|null, + * ProductIds?: array, * ProductFilterListChoice?: string|null, * ProductHistoryBasedOnInvoices?: bool|null, * WebshopUserOrderlistProductType?: int|null, @@ -45,16 +45,16 @@ class ProductRequest extends Request * SkipRecords?: int|null, * TakeRecords?: int|null, * LoadProductGroups?: bool|null, - * LoadExtraBarcodes?: bool|null, + * LoadExtraBarcodes?: bool, * OnlyShowParentProducts?: bool|null, * GlobalisationId?: int|null, * WebsiteDomainId?: int|null, * WareHouseId?: int|null, - * UseECommerceProductGroups?: bool|null, - * UseECommerceProductGroupsToLoadProductGroups?: bool|null, - * LoadStockForWarehouses?: bool|null, - * LoadAllWebshopGroupsLinkedToProduct?: bool|null, - * LoadProductTypes?: bool|null, + * UseECommerceProductGroups?: bool, + * UseECommerceProductGroupsToLoadProductGroups?: bool, + * LoadStockForWarehouses?: bool, + * LoadAllWebshopGroupsLinkedToProduct?: bool, + * LoadProductTypes?: bool, * } $parameters * * @return \Generator diff --git a/src/Requests/V13/WebshopRequest.php b/src/Requests/V13/WebshopRequest.php index c297fa9..1129893 100644 --- a/src/Requests/V13/WebshopRequest.php +++ b/src/Requests/V13/WebshopRequest.php @@ -14,11 +14,11 @@ class WebshopRequest extends Request * Voeg een WebshopUserProduct toe aan een WebshopUserProductlijst. * * @param array{ - * ProductId?: int|null, + * ProductId?: int, * QtyDec?: number|null, * Commission?: string|null, - * ExcludedFromAnnualBudget?: bool|null, - * TypeId?: int|null, + * ExcludedFromAnnualBudget?: bool, + * TypeId?: int, * DebtorId?: int|null, * VisitorCode?: string|null, * WebsiteDomainId?: int|null, diff --git a/src/Requests/V14/ProductRequest.php b/src/Requests/V14/ProductRequest.php index ccfe375..f227a55 100644 --- a/src/Requests/V14/ProductRequest.php +++ b/src/Requests/V14/ProductRequest.php @@ -19,8 +19,8 @@ class ProductRequest extends Request * @param array{ * DateTimeChangedFrom?: string|null, * DateTimeChangedTo?: string|null, - * LoadFreeValuesTypes?: bool|null, - * BrandIds?: array|null, + * LoadFreeValuesTypes?: bool, + * BrandIds?: array, * IsVisibleInLogic4?: bool|null, * IsVisibleOnWebShop?: bool|null, * AllShowOnWebsite?: bool|null, @@ -28,12 +28,12 @@ class ProductRequest extends Request * UseChildProductGroups?: bool|null, * ProductCode?: string|null, * Barcode?: string|null, - * Barcodes?: array|null, + * Barcodes?: array, * DebtorId?: int|null, * WebshopUserId?: int|null, * WebshopPriceListId?: int|null, * UseDropShipmentAmountsForWebshopPrices?: bool|null, - * ProductIds?: array|null, + * ProductIds?: array, * ProductFilterListChoice?: string|null, * ProductHistoryBasedOnInvoices?: bool|null, * WebshopUserOrderlistProductType?: int|null, @@ -47,16 +47,16 @@ class ProductRequest extends Request * SkipRecords?: int|null, * TakeRecords?: int|null, * LoadProductGroups?: bool|null, - * LoadExtraBarcodes?: bool|null, + * LoadExtraBarcodes?: bool, * OnlyShowParentProducts?: bool|null, * GlobalisationId?: int|null, * WebsiteDomainId?: int|null, * WareHouseId?: int|null, - * UseECommerceProductGroups?: bool|null, - * UseECommerceProductGroupsToLoadProductGroups?: bool|null, - * LoadStockForWarehouses?: bool|null, - * LoadAllWebshopGroupsLinkedToProduct?: bool|null, - * LoadProductTypes?: bool|null, + * UseECommerceProductGroups?: bool, + * UseECommerceProductGroupsToLoadProductGroups?: bool, + * LoadStockForWarehouses?: bool, + * LoadAllWebshopGroupsLinkedToProduct?: bool, + * LoadProductTypes?: bool, * } $parameters * * @return \Generator diff --git a/src/Requests/V20/DeliveryRequest.php b/src/Requests/V20/DeliveryRequest.php index 378cbb1..5464791 100644 --- a/src/Requests/V20/DeliveryRequest.php +++ b/src/Requests/V20/DeliveryRequest.php @@ -20,9 +20,9 @@ class DeliveryRequest extends Request * OrderStatusId?: int|null, * BranchId?: int|null, * WebsiteDomainId?: int|null, - * SkipRecords?: int|null, - * TakeRecords?: int|null, - * ShowAPIMovements?: bool|null, + * SkipRecords?: int, + * TakeRecords?: int, + * ShowAPIMovements?: bool, * } $parameters * * @return \Generator diff --git a/src/Requests/V20/OrderRequest.php b/src/Requests/V20/OrderRequest.php index 0130162..a71751d 100644 --- a/src/Requests/V20/OrderRequest.php +++ b/src/Requests/V20/OrderRequest.php @@ -16,8 +16,8 @@ class OrderRequest extends Request * @param array{ * ReceivedReturnOrderDateFrom?: string|null, * ReceivedReturnOrderDateTo?: string|null, - * SkipRecords?: int|null, - * TakeRecords?: int|null, + * SkipRecords?: int, + * TakeRecords?: int, * SolutionId?: int|null, * ProblemId?: int|null, * CategoryId?: int|null, @@ -43,12 +43,12 @@ class OrderRequest extends Request * LastActionFrom?: string|null, * LastActionTo?: string|null, * Reference?: string|null, - * LoadPayments?: bool|null, + * LoadPayments?: bool, * StatusId?: int|null, * Type1Id?: int|null, * Type2Id?: int|null, * Type3Id?: int|null, - * WebsiteDomainIds?: array|null, + * WebsiteDomainIds?: array, * } $parameters * * @return \Generator diff --git a/src/Requests/V20/ProductRequest.php b/src/Requests/V20/ProductRequest.php index c38f7c5..701b25d 100644 --- a/src/Requests/V20/ProductRequest.php +++ b/src/Requests/V20/ProductRequest.php @@ -16,7 +16,7 @@ class ProductRequest extends Request * Verkrijg de afmetingen van meerdere artikelen. * * @param array{ - * ProductIds?: array|null, + * ProductIds?: array, * } $parameters * * @throws Logic4ApiException @@ -33,7 +33,7 @@ public function getProductDimensions( /** * @param array{ - * ProductIds?: array|null, + * ProductIds?: array, * } $parameters * * @throws Logic4ApiException @@ -50,9 +50,9 @@ public function getProductImages( /** * @param array{ - * SkipRecords?: int|null, - * TakeRecords?: int|null, - * ProductIds?: array|null, + * SkipRecords?: int, + * TakeRecords?: int, + * ProductIds?: array, * WebsiteDomainId?: int|null, * GlobalizationId?: int|null, * ProductId?: int|null, diff --git a/src/Requests/V20/ProductTemplateRequest.php b/src/Requests/V20/ProductTemplateRequest.php index 61d735b..adc0949 100644 --- a/src/Requests/V20/ProductTemplateRequest.php +++ b/src/Requests/V20/ProductTemplateRequest.php @@ -12,7 +12,7 @@ class ProductTemplateRequest extends Request { /** * @param array{ - * ProductIds?: array|null, + * ProductIds?: array, * VisibleOnWebsite?: bool|null, * Skip?: int|null, * Take?: int|null, diff --git a/src/Requests/V20/StockRequest.php b/src/Requests/V20/StockRequest.php index 10a5acd..4658d8e 100644 --- a/src/Requests/V20/StockRequest.php +++ b/src/Requests/V20/StockRequest.php @@ -17,11 +17,11 @@ class StockRequest extends Request * @param array{ * LedgerId?: int|null, * ITS_IssueId?: int|null, - * ProductId?: int|null, - * Amount?: number|null, + * ProductId?: int, + * Amount?: number, * Remarks?: string|null, - * StockLocationId?: int|null, - * StockMutationTypeId?: int|null, + * StockLocationId?: int, + * StockMutationTypeId?: int, * } $parameters * * @throws Logic4ApiException @@ -41,7 +41,7 @@ public function createProductStockMutation( * * @param array{ * ProductCode?: string|null, - * ProductIds?: array|null, + * ProductIds?: array, * } $parameters * * @throws Logic4ApiException