From 2d0854c5ef24557e4a1173f522700945cbdcc384 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20Escalante=20=C3=81lvarez?= Date: Fri, 7 Jun 2024 08:55:15 +0200 Subject: [PATCH] Set default values in GeneralSettingsRequest constructor for new attributes --- .../Requests/GeneralSettingsRequest.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/BusinessLogic/AdminAPI/GeneralSettings/Requests/GeneralSettingsRequest.php b/src/BusinessLogic/AdminAPI/GeneralSettings/Requests/GeneralSettingsRequest.php index 5190712..b8c43db 100644 --- a/src/BusinessLogic/AdminAPI/GeneralSettings/Requests/GeneralSettingsRequest.php +++ b/src/BusinessLogic/AdminAPI/GeneralSettings/Requests/GeneralSettingsRequest.php @@ -63,10 +63,10 @@ class GeneralSettingsRequest extends Request * @param string[]|null $allowedIPAddresses * @param string[]|null $excludedProducts * @param string[]|null $excludedCategories - * @param bool $enabledForServices - * @param bool $allowFirstServicePaymentDelay - * @param bool $allowServiceRegItems - * @param string $defaultServicesEndDate + * @param bool $enabledForServices Default value is false + * @param bool $allowFirstServicePaymentDelay Default value is true + * @param bool $allowServiceRegItems Default value is true + * @param string $defaultServicesEndDate Default value is 'P1Y' */ public function __construct( bool $sendOrderReportsPeriodicallyToSeQura, @@ -74,10 +74,10 @@ public function __construct( ?array $allowedIPAddresses, ?array $excludedProducts, ?array $excludedCategories, - bool $enabledForServices, - bool $allowFirstServicePaymentDelay, - bool $allowServiceRegItems, - string $defaultServicesEndDate + bool $enabledForServices = false, + bool $allowFirstServicePaymentDelay = true, + bool $allowServiceRegItems = true, + string $defaultServicesEndDate = 'P1Y' ) { $this->sendOrderReportsPeriodicallyToSeQura = $sendOrderReportsPeriodicallyToSeQura; $this->showSeQuraCheckoutAsHostedPage = $showSeQuraCheckoutAsHostedPage;