Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 
 

130 righe
11 KiB

  1. # Copyright © Magento, Inc. All rights reserved.
  2. # See COPYING.txt for license details.
  3. type Mutation {
  4. addBundleProductsToCart(input: AddBundleProductsToCartInput @doc(description: "An input object that defines which bundle products to add to the cart.")): AddBundleProductsToCartOutput @resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\AddSimpleProductsToCart") @doc(description: "Add one or more bundle products to the specified cart. We recommend using `addProductsToCart` instead.")
  5. }
  6. input AddBundleProductsToCartInput @doc(description: "Defines the bundle products to add to the cart.") {
  7. cart_id: String! @doc(description: "The ID of the cart.")
  8. cart_items: [BundleProductCartItemInput!]! @doc(description: "An array of bundle products to add.")
  9. }
  10. input BundleProductCartItemInput @doc(description: "Defines a single bundle product.") {
  11. data: CartItemInput! @doc(description: "The quantity and SKU of the bundle product.")
  12. bundle_options:[BundleOptionInput!]! @doc(description: "A mandatory array of options for the bundle product, including each chosen option and specified quantity.")
  13. customizable_options:[CustomizableOptionInput!] @doc(description: "The ID and value of the option.")
  14. }
  15. input BundleOptionInput @doc(description: "Defines the input for a bundle option.") {
  16. id: Int! @doc(description: "The ID of the option.")
  17. quantity: Float! @doc(description: "The number of the selected item to add to the cart.")
  18. value: [String!]! @doc(description: "An array with the chosen value of the option.")
  19. }
  20. type AddBundleProductsToCartOutput @doc(description: "Contains details about the cart after adding bundle products.") {
  21. cart: Cart! @doc(description: "The cart after adding products.")
  22. }
  23. type BundleCartItem implements CartItemInterface @doc(description: "An implementation for bundle product cart items.") {
  24. customizable_options: [SelectedCustomizableOption]! @resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\CustomizableOptions") @doc(description: "An array containing the customizable options the shopper selected.")
  25. bundle_options: [SelectedBundleOption!]! @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\BundleOption") @doc(description: "An array containing the bundle options the shopper selected.")
  26. }
  27. type SelectedBundleOption @doc(description: "Contains details about a selected bundle option.") {
  28. id: Int! @deprecated(reason: "Use `uid` instead")
  29. uid: ID! @doc(description: "The unique ID for a `SelectedBundleOption` object")
  30. label: String! @doc(description: "The display name of the selected bundle product option.")
  31. type: String! @doc(description: "The type of selected bundle product option.")
  32. values: [SelectedBundleOptionValue!]! @doc(description: "An array of selected bundle option values.")
  33. }
  34. type SelectedBundleOptionValue @doc(description: "Contains details about a value for a selected bundle option.") {
  35. id: Int! @doc(description: "Use `uid` instead")
  36. uid: ID! @doc(description: "The unique ID for a `SelectedBundleOptionValue` object")
  37. label: String! @doc(description: "The display name of the value for the selected bundle product option.")
  38. quantity: Float! @doc(description: "The quantity of the value for the selected bundle product option.")
  39. price: Float! @doc(description: "The price of the value for the selected bundle product option.")
  40. }
  41. type BundleItem @doc(description: "Defines an individual item within a bundle product.") {
  42. option_id: Int @deprecated(reason: "Use `uid` instead") @doc(description: "An ID assigned to each type of item in a bundle product.")
  43. uid: ID @doc(description: "The unique ID for a `BundleItem` object.")
  44. title: String @doc(description: "The display name of the item.")
  45. required: Boolean @doc(description: "Indicates whether the item must be included in the bundle.")
  46. type: String @doc(description: "The input type that the customer uses to select the item. Examples include radio button and checkbox.")
  47. position: Int @doc(description: "A number indicating the sequence order of this item compared to the other bundle items.")
  48. sku: String @doc(description: "The SKU of the bundle product.")
  49. price_range: PriceRange! @doc(description: "The range of prices for the product") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\PriceRange")
  50. options: [BundleItemOption] @doc(description: "An array of additional options for this bundle item.") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\BundleItemLinks")
  51. }
  52. type BundleItemOption @doc(description: "Defines the characteristics that comprise a specific bundle item and its options.") {
  53. id: Int @deprecated(reason: "Use `uid` instead") @doc(description: "The ID assigned to the bundled item option.")
  54. label: String @doc(description: "The text that identifies the bundled item option.") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Options\\Label")
  55. qty: Float @deprecated(reason: "Use `quantity` instead.") @doc(description: "Indicates the quantity of this specific bundle item.")
  56. quantity: Float @doc(description: "The quantity of this specific bundle item.")
  57. position: Int @doc(description: "When a bundle item contains multiple options, the relative position of this option compared to the other options.")
  58. is_default: Boolean @doc(description: "Indicates whether this option is the default option.")
  59. price: Float @doc(description: "The price of the selected option.")
  60. price_type: PriceTypeEnum @doc(description: "One of FIXED, PERCENT, or DYNAMIC.")
  61. can_change_quantity: Boolean @doc(description: "Indicates whether the customer can change the number of items for this option.")
  62. product: ProductInterface @doc(description: "Contains details about this product option.") @resolver(class: "Magento\\CatalogGraphQl\\Model\\Resolver\\Product")
  63. uid: ID! @doc(description: "The unique ID for a `BundleItemOption` object.") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Options\\BundleItemOptionUid")
  64. }
  65. type BundleProduct implements ProductInterface, RoutableInterface, PhysicalProductInterface, CustomizableProductInterface @doc(description: "Defines basic features of a bundle product and contains multiple BundleItems.") {
  66. price_view: PriceViewEnum @doc(description: "One of PRICE_RANGE or AS_LOW_AS.") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Product\\Fields\\PriceView")
  67. dynamic_price: Boolean @doc(description: "Indicates whether the bundle product has a dynamic price.") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Product\\Fields\\DynamicPrice")
  68. dynamic_sku: Boolean @doc(description: "Indicates whether the bundle product has a dynamic SKU.") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Product\\Fields\\DynamicSku")
  69. ship_bundle_items: ShipBundleItemsEnum @doc(description: "Indicates whether to ship bundle items together or individually.") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Product\\Fields\\ShipBundleItems")
  70. dynamic_weight: Boolean @doc(description: "Indicates whether the bundle product has a dynamically calculated weight.") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Product\\Fields\\DynamicWeight")
  71. items: [BundleItem] @doc(description: "An array containing information about individual bundle items.") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\BundleItems")
  72. }
  73. enum PriceViewEnum @doc(description: "Defines whether a bundle product's price is displayed as the lowest possible value or as a range.") {
  74. PRICE_RANGE
  75. AS_LOW_AS
  76. }
  77. enum ShipBundleItemsEnum @doc(description: "Defines whether bundle items must be shipped together.") {
  78. TOGETHER
  79. SEPARATELY
  80. }
  81. type BundleOrderItem implements OrderItemInterface @doc(description: "Defines bundle product options for `OrderItemInterface`.") {
  82. bundle_options: [ItemSelectedBundleOption] @doc(description: "A list of bundle options that are assigned to the bundle product.") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Order\\Item\\BundleOptions")
  83. }
  84. type BundleInvoiceItem implements InvoiceItemInterface @doc(description: "Defines bundle product options for `InvoiceItemInterface`.") {
  85. bundle_options: [ItemSelectedBundleOption] @doc(description: "A list of bundle options that are assigned to an invoiced bundle product.") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Order\\Item\\BundleOptions")
  86. }
  87. type BundleShipmentItem implements ShipmentItemInterface @doc(description: "Defines bundle product options for `ShipmentItemInterface`.") {
  88. bundle_options: [ItemSelectedBundleOption] @doc(description: "A list of bundle options that are assigned to a shipped product.") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Order\\Item\\BundleOptions")
  89. }
  90. type BundleCreditMemoItem implements CreditMemoItemInterface @doc(description: "Defines bundle product options for `CreditMemoItemInterface`.") {
  91. bundle_options: [ItemSelectedBundleOption] @doc(description: "A list of bundle options that are assigned to a bundle product that is part of a credit memo.") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Order\\Item\\BundleOptions")
  92. }
  93. type ItemSelectedBundleOption @doc(description: "A list of options of the selected bundle product.") {
  94. id: ID! @deprecated(reason: "Use `uid` instead.") @doc(description: "The unique ID for a `ItemSelectedBundleOption` object.")
  95. uid: ID! @doc(description: "The unique ID for a `ItemSelectedBundleOption` object.")
  96. label: String! @doc(description: "The label of the option.")
  97. values: [ItemSelectedBundleOptionValue] @doc(description: "A list of products that represent the values of the parent option.")
  98. }
  99. type ItemSelectedBundleOptionValue @doc(description: "A list of values for the selected bundle product.") {
  100. id: ID! @deprecated(reason: "Use `uid` instead.") @doc(description: "The unique ID for a `ItemSelectedBundleOptionValue` object.")
  101. uid: ID! @doc(description: "The unique ID for a `ItemSelectedBundleOptionValue` object.")
  102. product_name: String! @doc(description: "The name of the child bundle product.")
  103. product_sku: String! @doc(description: "The SKU of the child bundle product.")
  104. quantity: Float! @doc(description: "The number of this bundle product that were ordered.")
  105. price: Money! @doc(description: "The price of the child bundle product.")
  106. }
  107. type BundleWishlistItem implements WishlistItemInterface @doc(description: "Defines bundle product options for `WishlistItemInterface`.") {
  108. bundle_options: [SelectedBundleOption!] @doc(description: "An array containing information about the selected bundle items.") @resolver(class: "\\Magento\\BundleGraphQl\\Model\\Wishlist\\BundleOptions")
  109. }