Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 
 
 

90 řádky
7.4 KiB

  1. # Copyright © Magento, Inc. All rights reserved.
  2. # See COPYING.txt for license details.
  3. type Mutation {
  4. addDownloadableProductsToCart(input: AddDownloadableProductsToCartInput @doc(description: "An input object that defines which downloadable products to add to the cart.")): AddDownloadableProductsToCartOutput @resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\AddSimpleProductsToCart") @doc(description: "Add one or more downloadable products to the specified cart. We recommend using `addProductsToCart` instead.")
  5. }
  6. input AddDownloadableProductsToCartInput {
  7. cart_id: String! @doc(description: "The ID of the cart.")
  8. cart_items: [DownloadableProductCartItemInput!]! @doc(description: "An array of downloadable products to add.")
  9. }
  10. input DownloadableProductCartItemInput @doc(description: "Defines a single downloadable product.") {
  11. data: CartItemInput! @doc(description: "The quantity and SKU of the downloadable product.")
  12. downloadable_product_links: [DownloadableProductLinksInput!] @doc(description: "An array of objects containing the link_id of the downloadable product link.")
  13. customizable_options:[CustomizableOptionInput!] @doc(description: "The ID and value of the option.")
  14. }
  15. input DownloadableProductLinksInput @doc(description: "Contains the link ID for the downloadable product.") {
  16. link_id: Int! @doc(description: "The unique ID of the downloadable product link.")
  17. }
  18. type AddDownloadableProductsToCartOutput @doc(description: "Contains details about the cart after adding downloadable products.") {
  19. cart: Cart! @doc(description: "The cart after adding products.")
  20. }
  21. type DownloadableCartItem implements CartItemInterface @doc(description: "An implementation for downloadable product cart items.") {
  22. customizable_options: [SelectedCustomizableOption]! @resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\CustomizableOptions") @doc(description: "An array containing the customizable options the shopper selected.")
  23. links: [DownloadableProductLinks] @resolver(class: "Magento\\DownloadableGraphQl\\Resolver\\DownloadableCartItem\\Links") @doc(description: "An array containing information about the links for the downloadable product added to the cart.")
  24. samples: [DownloadableProductSamples] @resolver(class: "Magento\\DownloadableGraphQl\\Resolver\\DownloadableCartItem\\Samples") @doc(description: "An array containing information about samples of the selected downloadable product.")
  25. }
  26. type DownloadableProduct implements ProductInterface, RoutableInterface, CustomizableProductInterface @doc(description: "Defines a product that the shopper downloads.") {
  27. downloadable_product_samples: [DownloadableProductSamples] @resolver(class: "Magento\\DownloadableGraphQl\\Resolver\\Product\\Samples") @doc(description: "An array containing information about samples of this downloadable product.")
  28. downloadable_product_links: [DownloadableProductLinks] @resolver(class: "Magento\\DownloadableGraphQl\\Resolver\\Product\\Links") @doc(description: "An array containing information about the links for this downloadable product.")
  29. links_purchased_separately: Int @doc(description: "A value of 1 indicates that each link in the array must be purchased separately.")
  30. links_title: String @doc(description: "The heading above the list of downloadable products.")
  31. }
  32. enum DownloadableFileTypeEnum @deprecated(reason: "`sample_url` serves to get the downloadable sample") {
  33. FILE @deprecated(reason: "`sample_url` serves to get the downloadable sample")
  34. URL @deprecated(reason: "`sample_url` serves to get the downloadable sample")
  35. }
  36. type DownloadableProductLinks @doc(description: "Defines characteristics of a downloadable product.") {
  37. id: Int @deprecated(reason: "This information should not be exposed on frontend.")
  38. title: String @doc(description: "The display name of the link.")
  39. sort_order: Int @doc(description: "A number indicating the sort order.")
  40. price: Float @doc(description: "The price of the downloadable product.")
  41. sample_url: String @doc(description: "The full URL to the downloadable sample.")
  42. is_shareable: Boolean @deprecated(reason: "This information should not be exposed on frontend.")
  43. number_of_downloads: Int @deprecated(reason: "This information should not be exposed on frontend.")
  44. link_type: DownloadableFileTypeEnum @deprecated(reason: "`sample_url` serves to get the downloadable sample")
  45. sample_type: DownloadableFileTypeEnum @deprecated(reason: "`sample_url` serves to get the downloadable sample")
  46. sample_file: String @deprecated(reason: "`sample_url` serves to get the downloadable sample")
  47. uid: ID! @doc(description: "The unique ID for a `DownloadableProductLinks` object.") @resolver(class: "Magento\\DownloadableGraphQl\\Resolver\\Product\\DownloadableLinksValueUid")
  48. }
  49. type DownloadableProductSamples @doc(description: "Defines characteristics of a downloadable product.") {
  50. id: Int @deprecated(reason: "This information should not be exposed on frontend.")
  51. title: String @doc(description: "The display name of the sample.")
  52. sort_order: Int @doc(description: "A number indicating the sort order.")
  53. sample_url: String @doc(description: "The full URL to the downloadable sample.")
  54. sample_type: DownloadableFileTypeEnum @deprecated(reason: "`sample_url` serves to get the downloadable sample")
  55. sample_file: String @deprecated(reason: "`sample_url` serves to get the downloadable sample")
  56. }
  57. type DownloadableOrderItem implements OrderItemInterface @doc(description: "Defines downloadable product options for `OrderItemInterface`.") {
  58. downloadable_links: [DownloadableItemsLinks] @doc(description: "A list of downloadable links that are ordered from the downloadable product.") @resolver(class: "Magento\\DownloadableGraphQl\\Resolver\\Order\\Item\\Links")
  59. }
  60. type DownloadableInvoiceItem implements InvoiceItemInterface @doc(description: "Defines downloadable product options for `InvoiceItemInterface`.") {
  61. downloadable_links: [DownloadableItemsLinks] @doc(description: "A list of downloadable links that are invoiced from the downloadable product.") @resolver(class: "Magento\\DownloadableGraphQl\\Resolver\\Order\\Item\\Links")
  62. }
  63. type DownloadableCreditMemoItem implements CreditMemoItemInterface @doc(description: "Defines downloadable product options for `CreditMemoItemInterface`.") {
  64. downloadable_links: [DownloadableItemsLinks] @doc(description: "A list of downloadable links that are refunded from the downloadable product.") @resolver(class: "Magento\\DownloadableGraphQl\\Resolver\\Order\\Item\\Links")
  65. }
  66. type DownloadableItemsLinks @doc(description: "Defines characteristics of the links for downloadable product.") {
  67. title: String @doc(description: "The display name of the link.")
  68. sort_order: Int @doc(description: "A number indicating the sort order.")
  69. uid: ID! @doc(description: "The unique ID for a `DownloadableItemsLinks` object.") @resolver(class: "Magento\\DownloadableGraphQl\\Resolver\\Product\\DownloadableLinksValueUid")
  70. }
  71. type DownloadableWishlistItem implements WishlistItemInterface @doc(description: "A downloadable product wish list item.") {
  72. links_v2: [DownloadableProductLinks] @doc(description: "An array containing information about the selected links.") @resolver(class: "\\Magento\\DownloadableGraphQl\\Model\\Wishlist\\ItemLinks")
  73. samples: [DownloadableProductSamples] @doc(description: "An array containing information about the selected samples.") @resolver(class: "Magento\\DownloadableGraphQl\\Resolver\\Product\\Samples")
  74. }