Skip to content
This repository was archived by the owner on Dec 19, 2019. It is now read-only.

Commit 2a6a6c6

Browse files
committed
GraphQL-375: Customer can get shipping/billing address data of any other customer
1 parent 46c1708 commit 2a6a6c6

File tree

4 files changed

+6
-87
lines changed

4 files changed

+6
-87
lines changed

app/code/Magento/QuoteGraphQl/Model/Cart/SetBillingAddressOnCart.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
namespace Magento\QuoteGraphQl\Model\Cart;
99

1010
use Magento\CustomerGraphQl\Model\Customer\CheckCustomerAccount;
11-
use Magento\Framework\GraphQl\Exception\GraphQlAuthorizationException;
1211
use Magento\Framework\GraphQl\Exception\GraphQlInputException;
1312
use Magento\Framework\GraphQl\Query\Resolver\ContextInterface;
1413
use Magento\Quote\Api\Data\CartInterface;
@@ -68,11 +67,8 @@ public function __construct(
6867
* @param ContextInterface $context
6968
* @param CartInterface $cart
7069
* @param array $billingAddress
71-
* @throws GraphQlAuthorizationException
70+
* @return void
7271
* @throws GraphQlInputException
73-
* @throws \Magento\Framework\Exception\LocalizedException
74-
* @throws \Magento\Framework\GraphQl\Exception\GraphQlAuthenticationException
75-
* @throws \Magento\Framework\GraphQl\Exception\GraphQlNoSuchEntityException
7672
*/
7773
public function execute(ContextInterface $context, CartInterface $cart, array $billingAddress): void
7874
{

app/code/Magento/QuoteGraphQl/Model/Cart/SetShippingAddressOnCart.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
namespace Magento\QuoteGraphQl\Model\Cart;
99

1010
use Magento\CustomerGraphQl\Model\Customer\CheckCustomerAccount;
11-
use Magento\Framework\GraphQl\Exception\GraphQlAuthorizationException;
1211
use Magento\Framework\GraphQl\Exception\GraphQlInputException;
1312
use Magento\Framework\GraphQl\Query\Resolver\ContextInterface;
1413
use Magento\Quote\Api\Data\CartInterface;
@@ -64,11 +63,7 @@ public function __construct(
6463
* @param ContextInterface $context
6564
* @param CartInterface $cart
6665
* @param array $shippingAddresses
67-
* @throws GraphQlAuthorizationException
6866
* @throws GraphQlInputException
69-
* @throws \Magento\Framework\Exception\LocalizedException
70-
* @throws \Magento\Framework\GraphQl\Exception\GraphQlAuthenticationException
71-
* @throws \Magento\Framework\GraphQl\Exception\GraphQlNoSuchEntityException
7267
*/
7368
public function execute(ContextInterface $context, CartInterface $cart, array $shippingAddresses): void
7469
{

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

Lines changed: 0 additions & 77 deletions
This file was deleted.

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,3 +246,8 @@ type CartItemSelectedOptionValuePrice {
246246
units: String!
247247
type: PriceTypeEnum!
248248
}
249+
250+
input CartItemDetailsInput {
251+
sku: String!
252+
qty: Float!
253+
}

0 commit comments

Comments
 (0)