Skip to content

Commit bda5529

Browse files
committed
Added some stuff missing from schema
1 parent 7a59397 commit bda5529

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

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

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,35 @@
11
# Copyright © Magento, Inc. All rights reserved.
22
# See COPYING.txt for license details.
33

4+
type Mutation {
5+
addDownloadableProductsToCart(input: AddDownloadableProductsToCartInput): AddDownloadableProductsToCartOutput @resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\AddSimpleProductsToCart")
6+
}
7+
8+
input AddDownloadableProductsToCartInput {
9+
cart_id: String!
10+
cart_items: [DownloadableProductCartItemInput!]!
11+
}
12+
13+
input DownloadableProductCartItemInput {
14+
data: CartItemInput!
15+
downloadable_product_links: [DownloadableProductLinksInput!]
16+
customizable_options:[CustomizableOptionInput!]
17+
}
18+
19+
input DownloadableProductLinksInput {
20+
link_id: Int!
21+
}
22+
23+
type AddDownloadableProductsToCartOutput {
24+
cart: Cart!
25+
}
26+
27+
type DownloadableCartItem implements CartItemInterface @doc(description: "Downloadable Cart Item") {
28+
customizable_options: [SelectedCustomizableOption] @resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\CustomizableOptions")
29+
links: [DownloadableProductLinks] @resolver(class: "Magento\\DownloadableGraphQl\\Resolver\\DownloadableCartItem\\Links") @doc(description: "An array containing information about the links for the added to cart downloadable product")
30+
samples: [DownloadableProductSamples] @resolver(class: "Magento\\DownloadableGraphQl\\Resolver\\DownloadableCartItem\\Samples") @doc(description: "DownloadableProductSamples defines characteristics of a downloadable product")
31+
}
32+
433
type DownloadableProduct implements ProductInterface, CustomizableProductInterface @doc(description: "DownloadableProduct defines a product that the customer downloads") {
534
downloadable_product_samples: [DownloadableProductSamples] @resolver(class: "Magento\\DownloadableGraphQl\\Resolver\\Product\\Samples") @doc(description: "An array containing information about samples of this downloadable product.")
635
downloadable_product_links: [DownloadableProductLinks] @resolver(class: "Magento\\DownloadableGraphQl\\Resolver\\Product\\Links") @doc(description: "An array containing information about the links for this downloadable product")
@@ -33,4 +62,4 @@ type DownloadableProductSamples @doc(description: "DownloadableProductSamples de
3362
sample_url: String @doc(description: "URL to the downloadable sample")
3463
sample_type: DownloadableFileTypeEnum @deprecated(reason: "`sample_url` serves to get the downloadable sample")
3564
sample_file: String @deprecated(reason: "`sample_url` serves to get the downloadable sample")
36-
}
65+
}

0 commit comments

Comments
 (0)