This repository was archived by the owner on Dec 19, 2019. It is now read-only.
File tree 5 files changed +6
-41
lines changed
app/code/Magento/QuoteGraphQl 5 files changed +6
-41
lines changed Original file line number Diff line number Diff line change 13
13
use Magento \Framework \GraphQl \Query \Resolver \ContextInterface ;
14
14
use Magento \Quote \Api \Data \CartInterface ;
15
15
use Magento \Quote \Model \Quote \Address ;
16
- use Magento \Quote \Model \BillingAddressManagement ;
17
16
use Magento \Quote \Api \BillingAddressManagementInterface ;
18
17
use Magento \Customer \Api \AddressRepositoryInterface ;
19
18
20
19
/**
21
20
* Set single shipping address for a specified shopping cart
22
21
*/
23
- class SetBillingAddressOnCart implements SetBillingAddressOnCartInterface
22
+ class SetBillingAddressOnCart
24
23
{
25
24
/**
26
25
* @var BillingAddressManagementInterface
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 13
13
use Magento \Framework \GraphQl \Schema \Type \ResolveInfo ;
14
14
use Magento \Framework \Stdlib \ArrayManager ;
15
15
use Magento \QuoteGraphQl \Model \Cart \GetCartForUser ;
16
- use Magento \QuoteGraphQl \Model \Cart \SetBillingAddressOnCartInterface ;
16
+ use Magento \QuoteGraphQl \Model \Cart \SetBillingAddressOnCart as SetBillingAddressOnCartModel ;
17
17
18
18
/**
19
19
* Class SetBillingAddressOnCart
@@ -33,19 +33,19 @@ class SetBillingAddressOnCart implements ResolverInterface
33
33
private $ arrayManager ;
34
34
35
35
/**
36
- * @var SetBillingAddressOnCartInterface
36
+ * @var SetBillingAddressOnCartModel
37
37
*/
38
38
private $ setBillingAddressOnCart ;
39
39
40
40
/**
41
41
* @param GetCartForUser $getCartForUser
42
42
* @param ArrayManager $arrayManager
43
- * @param SetBillingAddressOnCartInterface $setBillingAddressOnCart
43
+ * @param SetBillingAddressOnCartModel $setBillingAddressOnCart
44
44
*/
45
45
public function __construct (
46
46
GetCartForUser $ getCartForUser ,
47
47
ArrayManager $ arrayManager ,
48
- SetBillingAddressOnCartInterface $ setBillingAddressOnCart
48
+ SetBillingAddressOnCartModel $ setBillingAddressOnCart
49
49
) {
50
50
$ this ->getCartForUser = $ getCartForUser ;
51
51
$ this ->arrayManager = $ arrayManager ;
Original file line number Diff line number Diff line change 8
8
<config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:framework:ObjectManager/etc/config.xsd" >
9
9
<preference for =" Magento\QuoteGraphQl\Model\Cart\SetShippingAddressesOnCartInterface"
10
10
type =" Magento\QuoteGraphQl\Model\Cart\SetShippingAddressOnCart" />
11
- <preference for =" Magento\QuoteGraphQl\Model\Cart\SetBillingAddressOnCartInterface"
12
- type =" Magento\QuoteGraphQl\Model\Cart\SetBillingAddressOnCart" />
13
11
</config >
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ input CartItemQuantityInput {
35
35
36
36
input SetBillingAddressOnCartInput {
37
37
cart_id : String !
38
- billing_address : [ BillingAddressInput ! ]
38
+ billing_address : BillingAddressInput !
39
39
}
40
40
41
41
input BillingAddressInput {
You can’t perform that action at this time.
0 commit comments