Skip to content

Commit

Permalink
fix appliedPromotions (changed to usedPromotions)
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherhero committed Oct 13, 2024
1 parent 2799e84 commit f3613e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Model/ChannelPricingInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ public function resetBulkIdentifier(): void;

public function getUsedPromotions(): array;

public function addUsedPromotions(string $promotionCode): void;
public function addUsedPromotion(string $usedPromotion): void;
}
4 changes: 2 additions & 2 deletions src/Model/ChannelPricingTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit f3613e4

Please sign in to comment.