Skip to content

Commit bfacd22

Browse files
committed
GraphQL-418: [Shipping methods] Set Shipping Methods on Cart
1 parent a13639c commit bfacd22

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

app/code/Magento/QuoteGraphQl/Model/Resolver/ShippingAdress/AvailableShippingMethods.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
declare(strict_types=1);
77

8-
namespace Magento\QuoteGraphQl\Model\Resolver\ShippingAdress;
8+
namespace Magento\QuoteGraphQl\Model\Resolver\ShippingAddress;
99

1010
use Magento\Framework\Api\ExtensibleDataObjectConverter;
1111
use Magento\Framework\Exception\LocalizedException;

app/code/Magento/QuoteGraphQl/Model/Resolver/SelectedShippingMethod.php renamed to app/code/Magento/QuoteGraphQl/Model/Resolver/ShippingAdress/SelectedShippingMethod.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
declare(strict_types=1);
77

8-
namespace Magento\QuoteGraphQl\Model\Resolver;
8+
namespace Magento\QuoteGraphQl\Model\Resolver\ShippingAddress;
99

1010
use Magento\Framework\Exception\LocalizedException;
1111
use Magento\Framework\GraphQl\Config\Element\Field;

app/code/Magento/QuoteGraphQl/etc/schema.graphqls

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ type CartAddress {
154154
country: CartAddressCountry
155155
telephone: String
156156
address_type: AdressTypeEnum
157-
available_shipping_methods: [AvailableShippingMethod] @resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\ShippingAdress\\AvailableShippingMethods")
158-
selected_shipping_method: SelectedShippingMethod @resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\ShippingAdress\\SelectedShippingMethod")
157+
available_shipping_methods: [AvailableShippingMethod] @resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\ShippingAddress\\AvailableShippingMethods")
158+
selected_shipping_method: SelectedShippingMethod @resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\ShippingAddress\\SelectedShippingMethod")
159159
items_weight: Float
160160
customer_notes: String
161161
cart_items: [CartItemQuantity]

0 commit comments

Comments
 (0)