Skip to content

Commit 4c6f0ef

Browse files
ashishkumarpundeerashishkumarpundeer
authored andcommitted
AC-7550-P1::[2.4.5] Incorrect carrier/method code on selected shipping method in GraphQL
1 parent fb3cdab commit 4c6f0ef

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

app/code/Magento/QuoteGraphQl/Model/Resolver/ShippingAddress/SelectedShippingMethod.php

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@
2121
*/
2222
class SelectedShippingMethod implements ResolverInterface
2323
{
24+
/**
25+
* @var string
26+
*/
27+
private $carrierCode;
28+
29+
/**
30+
* @var string
31+
*/
32+
private $methodCode;
33+
2434
/**
2535
* @var ShippingMethodConverter
2636
*/
@@ -50,11 +60,7 @@ public function resolve(Field $field, $context, ResolveInfo $info, array $value
5060
return null;
5161
}
5262

53-
/**
54-
* @var Rate $rate;
55-
* @var string $carrierCode;
56-
* @var string $methodCode;
57-
*/
63+
/** @var Rate $rate */
5864
foreach ($rates as $rate) {
5965
if ($rate->getCode() === $address->getShippingMethod()) {
6066
$carrierCode = $rate->getCarrier();

0 commit comments

Comments
 (0)