Skip to content

Commit 2acda5f

Browse files
committed
Add MondialRelay support
1 parent bce7d5d commit 2acda5f

File tree

4 files changed

+29
-9
lines changed

4 files changed

+29
-9
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"symfony/monolog-bundle": "^3.1",
1010
"symfony/symfony": "^3.4.6",
1111
"twig/twig": "^2.4",
12-
"wizaplace/sdk": "^1.24.0"
12+
"wizaplace/sdk": "dev-feat-mondialrelay@dev"
1313
},
1414
"autoload": {
1515
"psr-4": {

composer.lock

Lines changed: 12 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Resources/config/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ services:
114114
public: true
115115
Wizaplace\SDK\Seo\SeoService:
116116
public: true
117+
Wizaplace\SDK\Shipping\MondialRelayService:
118+
public: true
117119
Wizaplace\SDK\Cms\CmsService:
118120
public: true
119121
Wizaplace\SDK\Company\CompanyService:

src/Service/BasketService.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,20 @@ public function setPickupPoint(SetPickupPointCommand $command): void
286286
}
287287
}
288288

289+
/**
290+
* @throws \Wizaplace\SDK\Exception\SomeParametersAreInvalid
291+
*/
292+
public function setMRPickupPoint(SetPickupPointCommand $command): void
293+
{
294+
$command->setBasketId($this->getBasketId());
295+
296+
try {
297+
$this->baseService->setMRPickupPoint($command);
298+
} finally {
299+
$this->basket = null; // invalidate local cache
300+
}
301+
}
302+
289303
/**
290304
* Gets current basket ID, or create a new one
291305
* @return string

0 commit comments

Comments
 (0)