@@ -15,6 +15,7 @@ type Mutation {
15
15
setBillingAddressOnCart (input : SetBillingAddressOnCartInput ): SetBillingAddressOnCartOutput @resolver (class : " \\ Magento\\ QuoteGraphQl\\ Model\\ Resolver\\ SetBillingAddressOnCart" )
16
16
setShippingMethodsOnCart (input : SetShippingMethodsOnCartInput ): SetShippingMethodsOnCartOutput @resolver (class : " \\ Magento\\ QuoteGraphQl\\ Model\\ Resolver\\ SetShippingMethodsOnCart" )
17
17
addSimpleProductsToCart (input : AddSimpleProductsToCartInput ): AddSimpleProductsToCartOutput @resolver (class : " Magento\\ QuoteGraphQl\\ Model\\ Resolver\\ AddSimpleProductsToCart" )
18
+ addVirtualProductsToCart (input : AddVirtualProductsToCartInput ): AddVirtualProductsToCartOutput @resolver (class : " Magento\\ QuoteGraphQl\\ Model\\ Resolver\\ AddSimpleProductsToCart" )
18
19
}
19
20
20
21
input SetShippingAddressesOnCartInput {
@@ -168,11 +169,21 @@ input AddSimpleProductsToCartInput {
168
169
cartItems : [SimpleProductCartItemInput ! ]!
169
170
}
170
171
172
+ input AddVirtualProductsToCartInput {
173
+ cart_id : String !
174
+ cartItems : [VirtualProductCartItemInput ! ]!
175
+ }
176
+
171
177
input SimpleProductCartItemInput {
172
178
data : CartItemInput !
173
179
customizable_options :[CustomizableOptionInput ! ]
174
180
}
175
181
182
+ input VirtualProductCartItemInput {
183
+ data : CartItemInput !
184
+ customizable_options :[CustomizableOptionInput ! ]
185
+ }
186
+
176
187
input CustomizableOptionInput {
177
188
id : Int !
178
189
value : String !
@@ -182,10 +193,18 @@ type AddSimpleProductsToCartOutput {
182
193
cart : Cart !
183
194
}
184
195
196
+ type AddVirtualProductsToCartOutput {
197
+ cart : Cart !
198
+ }
199
+
185
200
type SimpleCartItem implements CartItemInterface @doc (description : " Simple Cart Item" ) {
186
201
customizable_options : [SelectedCustomizableOption ] @resolver (class : " Magento\\ QuoteGraphQl\\ Model\\ Resolver\\ CustomizableOptions" )
187
202
}
188
203
204
+ type VirtualCartItem implements CartItemInterface @doc (description : " Virtual Cart Item" ) {
205
+ customizable_options : [SelectedCustomizableOption ] @resolver (class : " Magento\\ QuoteGraphQl\\ Model\\ Resolver\\ CustomizableOptions" )
206
+ }
207
+
189
208
input CartItemInput {
190
209
sku : String !
191
210
qty : Float !
0 commit comments