diff --git a/CHANGELOG.md b/CHANGELOG.md index 3cb81e3..4d2935c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,12 @@ +## 0.5.7 + +### Bugfixes + +- Add MondialRelayService for BOF pecheur + ## 0.5.6 ### Bugfixes diff --git a/src/Resources/config/config.yml b/src/Resources/config/config.yml index fe9d3f1..91ceacc 100644 --- a/src/Resources/config/config.yml +++ b/src/Resources/config/config.yml @@ -140,6 +140,8 @@ services: public: true Wizaplace\SDK\Pim\Option\OptionService: public: true + Wizaplace\SDK\Shipping\MondialRelayService: + public: true WizaplaceFrontBundle\Service\CategoryTreeCacheDecorator: decorates: 'Wizaplace\SDK\Catalog\CatalogServiceInterface' arguments: ['@WizaplaceFrontBundle\Service\CategoryTreeCacheDecorator.inner'] diff --git a/src/Service/BasketService.php b/src/Service/BasketService.php index 0cf3f8b..660ffed 100644 --- a/src/Service/BasketService.php +++ b/src/Service/BasketService.php @@ -286,6 +286,19 @@ public function setPickupPoint(SetPickupPointCommand $command): void } } + /** + * @throws \Wizaplace\SDK\Exception\SomeParametersAreInvalid + */ + public function setMondialRelayPickupPoint(SetPickupPointCommand $command): array + { + $command->setBasketId($this->getBasketId()); + try { + return $this->baseService->setMondialRelayPickupPoint($command); + } finally { + $this->basket = null; // invalidate local cache + } + } + /** * Gets current basket ID, or create a new one * @return string