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

Commit a0dfb7b

Browse files
committed
GraphQL-296: Removed unused interface. Set up graphqlschema
1 parent 6e52f4b commit a0dfb7b

File tree

5 files changed

+6
-41
lines changed

5 files changed

+6
-41
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,13 @@
1313
use Magento\Framework\GraphQl\Query\Resolver\ContextInterface;
1414
use Magento\Quote\Api\Data\CartInterface;
1515
use Magento\Quote\Model\Quote\Address;
16-
use Magento\Quote\Model\BillingAddressManagement;
1716
use Magento\Quote\Api\BillingAddressManagementInterface;
1817
use Magento\Customer\Api\AddressRepositoryInterface;
1918

2019
/**
2120
* Set single shipping address for a specified shopping cart
2221
*/
23-
class SetBillingAddressOnCart implements SetBillingAddressOnCartInterface
22+
class SetBillingAddressOnCart
2423
{
2524
/**
2625
* @var BillingAddressManagementInterface

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

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

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use Magento\Framework\GraphQl\Schema\Type\ResolveInfo;
1414
use Magento\Framework\Stdlib\ArrayManager;
1515
use Magento\QuoteGraphQl\Model\Cart\GetCartForUser;
16-
use Magento\QuoteGraphQl\Model\Cart\SetBillingAddressOnCartInterface;
16+
use Magento\QuoteGraphQl\Model\Cart\SetBillingAddressOnCart as SetBillingAddressOnCartModel;
1717

1818
/**
1919
* Class SetBillingAddressOnCart
@@ -33,19 +33,19 @@ class SetBillingAddressOnCart implements ResolverInterface
3333
private $arrayManager;
3434

3535
/**
36-
* @var SetBillingAddressOnCartInterface
36+
* @var SetBillingAddressOnCartModel
3737
*/
3838
private $setBillingAddressOnCart;
3939

4040
/**
4141
* @param GetCartForUser $getCartForUser
4242
* @param ArrayManager $arrayManager
43-
* @param SetBillingAddressOnCartInterface $setBillingAddressOnCart
43+
* @param SetBillingAddressOnCartModel $setBillingAddressOnCart
4444
*/
4545
public function __construct(
4646
GetCartForUser $getCartForUser,
4747
ArrayManager $arrayManager,
48-
SetBillingAddressOnCartInterface $setBillingAddressOnCart
48+
SetBillingAddressOnCartModel $setBillingAddressOnCart
4949
) {
5050
$this->getCartForUser = $getCartForUser;
5151
$this->arrayManager = $arrayManager;

app/code/Magento/QuoteGraphQl/etc/graphql/di.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,4 @@
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
99
<preference for="Magento\QuoteGraphQl\Model\Cart\SetShippingAddressesOnCartInterface"
1010
type="Magento\QuoteGraphQl\Model\Cart\SetShippingAddressOnCart" />
11-
<preference for="Magento\QuoteGraphQl\Model\Cart\SetBillingAddressOnCartInterface"
12-
type="Magento\QuoteGraphQl\Model\Cart\SetBillingAddressOnCart" />
1311
</config>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ input CartItemQuantityInput {
3535

3636
input SetBillingAddressOnCartInput {
3737
cart_id: String!
38-
billing_address: [BillingAddressInput!]
38+
billing_address: BillingAddressInput!
3939
}
4040

4141
input BillingAddressInput {

0 commit comments

Comments
 (0)