Skip to content

Commit d90e831

Browse files
committed
GraphQL-433: Prepare Quote GraphQL scheme for 2.3.1 release
1 parent 61f6470 commit d90e831

File tree

3 files changed

+5
-20
lines changed

3 files changed

+5
-20
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ type AddConfigurableProductsToCartOutput {
4949
}
5050

5151
input ConfigurableProductCartItemInput {
52-
data: CartItemDetailsInput!
52+
data: CartItemInput!
5353
variant_sku: String!
5454
customizable_options:[CustomizableOptionInput!]
5555
}

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

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,6 @@ type SetShippingMethodsOnCartOutput {
7878
cart: Cart!
7979
}
8080

81-
# If no address is provided, the system get address assigned to a quote
82-
# If there's no address at all - the system returns all shipping methods
83-
input AvailableShippingMethodsOnCartInput {
84-
cart_id: String!
85-
customer_address_id: Int
86-
address: CartAddressInput
87-
}
88-
8981
input ApplyCouponToCartInput {
9082
cart_id: String!
9183
coupon_code: String!
@@ -119,7 +111,7 @@ type CartAddress {
119111
}
120112

121113
type CartItemQuantity {
122-
cart_item_id: String!
114+
cart_item_id: Int!
123115
quantity: Float!
124116
}
125117

@@ -142,11 +134,7 @@ type AvailableShippingMethod {
142134
carrier_title: String!
143135
method_code: String!
144136
method_title: String!
145-
error_message: String
146137
amount: Float!
147-
base_amount: Float!
148-
price_excl_tax: Float!
149-
price_incl_tax: Float!
150138
}
151139

152140
enum AdressTypeEnum {
@@ -222,8 +210,3 @@ type CartItemSelectedOptionValuePrice {
222210
units: String!
223211
type: PriceTypeEnum!
224212
}
225-
226-
input CartItemDetailsInput {
227-
sku: String!
228-
qty: Float!
229-
}

dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/AddSimpleProductToCartTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ public function testAddProductIfQuantityIsNotAvailable()
7575
}
7676
) {
7777
cart {
78-
cart_id
78+
items {
79+
qty
80+
}
7981
}
8082
}
8183
}

0 commit comments

Comments
 (0)