|
1 | 1 | # Copyright © Magento, Inc. All rights reserved.
|
2 | 2 | # See COPYING.txt for license details.
|
3 | 3 |
|
4 |
| -type BundleItem @doc(description: "BundleItem defines an individual item in a bundle product") { |
5 |
| - option_id: Int @doc(description: "An ID assigned to each type of item in a bundle product") |
6 |
| - title: String @doc(description: "The display name of the item") |
7 |
| - required: Boolean @doc(description: "Indicates whether the item must be included in the bundle") |
8 |
| - type: String @doc(description: "The input type that the customer uses to select the item. Examples include radio button and checkbox") |
9 |
| - position: Int @doc(description: "he relative position of this item compared to the other bundle items") |
10 |
| - sku: String @doc(description: "The SKU of the bundle product") |
11 |
| - options: [BundleItemOption] @doc(description: "An array of additional options for this bundle item") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\BundleItemLinks") |
| 4 | +type BundleItem @doc(description: "BundleItem defines an individual item in a bundle product.") { |
| 5 | + option_id: Int @doc(description: "An ID assigned to each type of item in a bundle product.") |
| 6 | + title: String @doc(description: "The display name of the item.") |
| 7 | + required: Boolean @doc(description: "Indicates whether the item must be included in the bundle.") |
| 8 | + type: String @doc(description: "The input type that the customer uses to select the item. Examples include radio button and checkbox.") |
| 9 | + position: Int @doc(description: "he relative position of this item compared to the other bundle items.") |
| 10 | + sku: String @doc(description: "The SKU of the bundle product.") |
| 11 | + options: [BundleItemOption] @doc(description: "An array of additional options for this bundle item.") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\BundleItemLinks") |
12 | 12 | }
|
13 | 13 |
|
14 |
| -type BundleItemOption @doc(description: "BundleItemOption defines characteristics and options for a specific bundle item") { |
15 |
| - id: Int @doc(description: "The ID assigned to the bundled item option") |
16 |
| - label: String @doc(description: "The text that identifies the bundled item option") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Options\\Label") |
17 |
| - qty: Float @doc(description: "Indicates the quantity of this specific bundle item") |
18 |
| - position: Int @doc(description: "When a bundle item contains multiple options, the relative position of this option compared to the other options") |
19 |
| - is_default: Boolean @doc(description: "Indicates whether this option is the default option") |
20 |
| - price: Float @doc(description: "The price of the selected option") |
21 |
| - price_type: PriceTypeEnum @doc(description: "One of FIXED, PERCENT, or DYNAMIC") |
22 |
| - can_change_quantity: Boolean @doc(description: "Indicates whether the customer can change the number of items for this option") |
23 |
| - product: ProductInterface @doc(description: "Contains details about this product option") @resolver(class: "Magento\\CatalogGraphQl\\Model\\Resolver\\Product") |
| 14 | +type BundleItemOption @doc(description: "BundleItemOption defines characteristics and options for a specific bundle item.") { |
| 15 | + id: Int @doc(description: "The ID assigned to the bundled item option.") |
| 16 | + label: String @doc(description: "The text that identifies the bundled item option.") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Options\\Label") |
| 17 | + qty: Float @doc(description: "Indicates the quantity of this specific bundle item.") |
| 18 | + position: Int @doc(description: "When a bundle item contains multiple options, the relative position of this option compared to the other options.") |
| 19 | + is_default: Boolean @doc(description: "Indicates whether this option is the default option.") |
| 20 | + price: Float @doc(description: "The price of the selected option.") |
| 21 | + price_type: PriceTypeEnum @doc(description: "One of FIXED, PERCENT, or DYNAMIC.") |
| 22 | + can_change_quantity: Boolean @doc(description: "Indicates whether the customer can change the number of items for this option.") |
| 23 | + product: ProductInterface @doc(description: "Contains details about this product option.") @resolver(class: "Magento\\CatalogGraphQl\\Model\\Resolver\\Product") |
24 | 24 | }
|
25 | 25 |
|
26 |
| -type BundleProduct implements ProductInterface, PhysicalProductInterface, CustomizableProductInterface @doc(description: "BundleProduct defines basic features of a bundle product and contains multiple BundleItems") { |
27 |
| - price_view: PriceViewEnum @doc(description: "One of PRICE_RANGE or AS_LOW_AS") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Product\\Fields\\PriceView") |
28 |
| - dynamic_price: Boolean @doc(description: "Indicates whether the bundle product has a dynamic price") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Product\\Fields\\DynamicPrice") |
29 |
| - dynamic_sku: Boolean @doc(description: "Indicates whether the bundle product has a dynamic SK") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Product\\Fields\\DynamicSku") |
30 |
| - ship_bundle_items: ShipBundleItemsEnum @doc(description: "Indicates whether to ship bundle items together or individually") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Product\\Fields\\ShipBundleItems") |
31 |
| - dynamic_weight: Boolean @doc(description: "Indicates whether the bundle product has a dynamically calculated weight") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Product\\Fields\\DynamicWeight") |
32 |
| - items: [BundleItem] @doc(description: "An array containing information about individual bundle items") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\BundleItems") |
| 26 | +type BundleProduct implements ProductInterface, PhysicalProductInterface, CustomizableProductInterface @doc(description: "BundleProduct defines basic features of a bundle product and contains multiple BundleItems.") { |
| 27 | + price_view: PriceViewEnum @doc(description: "One of PRICE_RANGE or AS_LOW_AS.") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Product\\Fields\\PriceView") |
| 28 | + dynamic_price: Boolean @doc(description: "Indicates whether the bundle product has a dynamic price.") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Product\\Fields\\DynamicPrice") |
| 29 | + dynamic_sku: Boolean @doc(description: "Indicates whether the bundle product has a dynamic SK.") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Product\\Fields\\DynamicSku") |
| 30 | + ship_bundle_items: ShipBundleItemsEnum @doc(description: "Indicates whether to ship bundle items together or individually.") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Product\\Fields\\ShipBundleItems") |
| 31 | + dynamic_weight: Boolean @doc(description: "Indicates whether the bundle product has a dynamically calculated weight.") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Product\\Fields\\DynamicWeight") |
| 32 | + items: [BundleItem] @doc(description: "An array containing information about individual bundle items.") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\BundleItems") |
33 | 33 | }
|
34 | 34 |
|
35 | 35 | enum PriceViewEnum @doc(description: "This enumeration defines whether a bundle product's price is displayed as the lowest possible value or as a range.") {
|
|
0 commit comments