From f3613e4fc2707dbc328d6c9fce03db4be6e008f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Odwa=C5=BCny?= Date: Mon, 7 Oct 2024 02:52:46 +0200 Subject: [PATCH] fix appliedPromotions (changed to usedPromotions) --- src/Model/ChannelPricingInterface.php | 2 +- src/Model/ChannelPricingTrait.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Model/ChannelPricingInterface.php b/src/Model/ChannelPricingInterface.php index cb7178c..e0cdbd1 100644 --- a/src/Model/ChannelPricingInterface.php +++ b/src/Model/ChannelPricingInterface.php @@ -40,5 +40,5 @@ public function resetBulkIdentifier(): void; public function getUsedPromotions(): array; - public function addUsedPromotions(string $promotionCode): void; + public function addUsedPromotion(string $usedPromotion): void; } diff --git a/src/Model/ChannelPricingTrait.php b/src/Model/ChannelPricingTrait.php index 68794ed..4d540c7 100644 --- a/src/Model/ChannelPricingTrait.php +++ b/src/Model/ChannelPricingTrait.php @@ -133,8 +133,8 @@ public function getUsedPromotions(): array return $this->usedPromotions; } - public function setUsedPromotions(array $usedPromotions): void + public function addUsedPromotion(string $usedPromotion): void { - $this->usedPromotions = $usedPromotions; + $this->usedPromotions[] = $usedPromotion; } }