You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.")
6
6
}
7
7
8
-
inputAddBundleProductsToCartInput {
9
-
cart_id: String!
10
-
cart_items: [BundleProductCartItemInput!]!
8
+
inputAddBundleProductsToCartInput@doc(description: "Defines the bundle products to add to the cart.") {
9
+
cart_id: String!@doc(description: "The ID of the cart.")
10
+
cart_items: [BundleProductCartItemInput!]!@doc(description: "An array of bundle products to add.")
11
11
}
12
12
13
-
inputBundleProductCartItemInput {
14
-
data: CartItemInput!
15
-
bundle_options:[BundleOptionInput!]!
16
-
customizable_options:[CustomizableOptionInput!]
13
+
inputBundleProductCartItemInput@doc(description: "Defines a single bundle product.") {
14
+
data: CartItemInput!@doc(description: "The quantity and SKU of the bundle product.")
15
+
bundle_options:[BundleOptionInput!]!@doc(description: "A mandatory array of options for the bundle product, including each chosen option and specified quantity.")
16
+
customizable_options:[CustomizableOptionInput!]@doc(description: "The ID and value of the option.")
17
17
}
18
18
19
-
inputBundleOptionInput {
20
-
id: Int!
21
-
quantity: Float!
22
-
value: [String!]!
19
+
inputBundleOptionInput@doc(description: "Defines the input for a bundle option.") {
20
+
id: Int!@doc(description: "The ID of the option.")
21
+
quantity: Float!@doc(description: "The number of the selected item to add to the cart.")
22
+
value: [String!]!@doc(description: "An array with the chosen value of the option.")
23
23
}
24
24
25
-
typeAddBundleProductsToCartOutput {
26
-
cart: Cart!
25
+
typeAddBundleProductsToCartOutput@doc(description: "Contains details about the cart after adding bundle products.") {
26
+
cart: Cart!@doc(description: "The cart after adding products.")
typeBundleCartItemimplementsCartItemInterface@doc(description: "An implementation for bundle product cart items.") {
30
+
customizable_options: [SelectedCustomizableOption]!@resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\CustomizableOptions")@doc(description: "An array containing the customizable options the shopper selected.")
31
+
bundle_options: [SelectedBundleOption!]!@resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\BundleOption")@doc(description: "An array containing the bundle options the shopper selected.")
32
32
}
33
33
34
-
typeSelectedBundleOption {
34
+
typeSelectedBundleOption@doc(description: "Contains details about a selected bundle option.") {
35
35
id: Int!@deprecated(reason: "Use `uid` instead")
36
36
uid: ID!@doc(description: "The unique ID for a `SelectedBundleOption` object")
37
-
label: String!
38
-
type: String!
39
-
values: [SelectedBundleOptionValue!]!
37
+
label: String!@doc(description: "The display name of the selected bundle product option.")
38
+
type: String!@doc(description: "The type of selected bundle product option.")
39
+
values: [SelectedBundleOptionValue!]!@doc(description: "An array of selected bundle option values.")
40
40
}
41
41
42
-
typeSelectedBundleOptionValue {
42
+
typeSelectedBundleOptionValue@doc(description: "Contains details about a value for a selected bundle option.") {
43
43
id: Int!@doc(description: "Use `uid` instead")
44
44
uid: ID!@doc(description: "The unique ID for a `SelectedBundleOptionValue` object")
45
-
label: String!
46
-
quantity: Float!
47
-
price: Float!
45
+
label: String!@doc(description: "The display name of the value for the selected bundle product option.")
46
+
quantity: Float!@doc(description: "The quantity of the value for the selected bundle product option.")
47
+
price: Float!@doc(description: "The price of the value for the selected bundle product option.")
48
48
}
49
49
50
-
typeBundleItem@doc(description: "BundleItem defines an individual item in a bundle product.") {
50
+
typeBundleItem@doc(description: "Defines an individual item within a bundle product.") {
51
51
option_id: Int@deprecated(reason: "Use `uid` instead") @doc(description: "An ID assigned to each type of item in a bundle product.")
52
52
uid: ID@doc(description: "The unique ID for a `BundleItem` object.")
53
53
title: String@doc(description: "The display name of the item.")
54
54
required: Boolean@doc(description: "Indicates whether the item must be included in the bundle.")
55
55
type: String@doc(description: "The input type that the customer uses to select the item. Examples include radio button and checkbox.")
56
-
position: Int@doc(description: "he relative position of this item compared to the other bundle items.")
56
+
position: Int@doc(description: "A number indicating the sequence order of this item compared to the other bundle items.")
57
57
sku: String@doc(description: "The SKU of the bundle product.")
58
58
options: [BundleItemOption] @doc(description: "An array of additional options for this bundle item.") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\BundleItemLinks")
59
59
}
60
60
61
-
typeBundleItemOption@doc(description: "BundleItemOption defines characteristics and options for a specific bundle item.") {
61
+
typeBundleItemOption@doc(description: "Defines the characteristics that comprise a specific bundle item and its options.") {
62
62
id: Int@deprecated(reason: "Use `uid` instead") @doc(description: "The ID assigned to the bundled item option.")
63
63
label: String@doc(description: "The text that identifies the bundled item option.") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Options\\Label")
64
-
qty: Float@deprecated(reason: "The `qty` is deprecated. Use `quantity` instead.") @doc(description: "Indicates the quantity of this specific bundle item.")
65
-
quantity: Float@doc(description: "Indicates the quantity of this specific bundle item.")
64
+
qty: Float@deprecated(reason: "Use `quantity` instead.") @doc(description: "Indicates the quantity of this specific bundle item.")
65
+
quantity: Float@doc(description: "The quantity of this specific bundle item.")
66
66
position: Int@doc(description: "When a bundle item contains multiple options, the relative position of this option compared to the other options.")
67
67
is_default: Boolean@doc(description: "Indicates whether this option is the default option.")
68
68
price: Float@doc(description: "The price of the selected option.")
@@ -72,57 +72,57 @@ type BundleItemOption @doc(description: "BundleItemOption defines characteristic
72
72
uid: ID!@doc(description: "The unique ID for a `BundleItemOption` object.") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Options\\BundleItemOptionUid")
73
73
}
74
74
75
-
typeBundleProductimplementsProductInterface, RoutableInterface, PhysicalProductInterface, CustomizableProductInterface@doc(description: "Defines basic features of a bundle product and contains multiple BundleItems") {
75
+
typeBundleProductimplementsProductInterface, RoutableInterface, PhysicalProductInterface, CustomizableProductInterface@doc(description: "Defines basic features of a bundle product and contains multiple BundleItems.") {
76
76
price_view: PriceViewEnum@doc(description: "One of PRICE_RANGE or AS_LOW_AS.") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Product\\Fields\\PriceView")
77
77
dynamic_price: Boolean@doc(description: "Indicates whether the bundle product has a dynamic price.") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Product\\Fields\\DynamicPrice")
78
-
dynamic_sku: Boolean@doc(description: "Indicates whether the bundle product has a dynamic SK.") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Product\\Fields\\DynamicSku")
78
+
dynamic_sku: Boolean@doc(description: "Indicates whether the bundle product has a dynamic SKU.") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Product\\Fields\\DynamicSku")
79
79
ship_bundle_items: ShipBundleItemsEnum@doc(description: "Indicates whether to ship bundle items together or individually.") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Product\\Fields\\ShipBundleItems")
80
80
dynamic_weight: Boolean@doc(description: "Indicates whether the bundle product has a dynamically calculated weight.") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\Product\\Fields\\DynamicWeight")
81
81
items: [BundleItem] @doc(description: "An array containing information about individual bundle items.") @resolver(class: "Magento\\BundleGraphQl\\Model\\Resolver\\BundleItems")
82
82
}
83
83
84
-
enumPriceViewEnum@doc(description: "This enumeration defines whether a bundle product's price is displayed as the lowest possible value or as a range.") {
84
+
enumPriceViewEnum@doc(description: "Defines whether a bundle product's price is displayed as the lowest possible value or as a range.") {
85
85
PRICE_RANGE
86
86
AS_LOW_AS
87
87
}
88
88
89
-
enumShipBundleItemsEnum@doc(description: "This enumeration defines whether bundle items must be shipped together.") {
89
+
enumShipBundleItemsEnum@doc(description: "Defines whether bundle items must be shipped together.") {
90
90
TOGETHER
91
91
SEPARATELY
92
92
}
93
93
94
-
typeBundleOrderItemimplementsOrderItemInterface {
95
-
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")
94
+
typeBundleOrderItemimplementsOrderItemInterface@doc(description: "Defines bundle product options for `OrderItemInterface`.") {
95
+
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")
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")
98
+
typeBundleInvoiceItemimplementsInvoiceItemInterface@doc(description: "Defines bundle product options for `InvoiceItemInterface`.") {
99
+
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")
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")
102
+
typeBundleShipmentItemimplementsShipmentItemInterface@doc(description: "Defines bundle product options for `ShipmentItemInterface`.") {
103
+
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")
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")
106
+
typeBundleCreditMemoItemimplementsCreditMemoItemInterface@doc(description: "Defines bundle product options for `CreditMemoItemInterface`.") {
107
+
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")
108
108
}
109
109
110
-
typeItemSelectedBundleOption@doc(description: "A list of options of the selected bundle product") {
111
-
id: ID!@deprecated(reason: "Use `uid` instead") @doc(description: "The unique ID for a `ItemSelectedBundleOption` object")
112
-
uid: ID!@doc(description: "The unique ID for a `ItemSelectedBundleOption` object")
113
-
label: String!@doc(description: "The label of the option")
114
-
values: [ItemSelectedBundleOptionValue] @doc(description: "A list of products that represent the values of the parent option")
110
+
typeItemSelectedBundleOption@doc(description: "A list of options of the selected bundle product.") {
111
+
id: ID!@deprecated(reason: "Use `uid` instead.") @doc(description: "The unique ID for a `ItemSelectedBundleOption` object.")
112
+
uid: ID!@doc(description: "The unique ID for a `ItemSelectedBundleOption` object.")
113
+
label: String!@doc(description: "The label of the option.")
114
+
values: [ItemSelectedBundleOptionValue] @doc(description: "A list of products that represent the values of the parent option.")
115
115
}
116
116
117
-
typeItemSelectedBundleOptionValue@doc(description: "A list of values for the selected bundle product") {
118
-
id: ID!@deprecated(reason: "Use `uid` instead") @doc(description: "The unique ID for a `ItemSelectedBundleOptionValue` object")
119
-
uid: ID!@doc(description: "The unique ID for a `ItemSelectedBundleOptionValue` object")
120
-
product_name: String!@doc(description: "The name of the child bundle product")
121
-
product_sku: String!@doc(description: "The SKU of the child bundle product")
122
-
quantity: Float!@doc(description: "Indicates how many of this bundle product were ordered")
123
-
price: Money!@doc(description: "The price of the child bundle product")
117
+
typeItemSelectedBundleOptionValue@doc(description: "A list of values for the selected bundle product.") {
118
+
id: ID!@deprecated(reason: "Use `uid` instead.") @doc(description: "The unique ID for a `ItemSelectedBundleOptionValue` object.")
119
+
uid: ID!@doc(description: "The unique ID for a `ItemSelectedBundleOptionValue` object.")
120
+
product_name: String!@doc(description: "The name of the child bundle product.")
121
+
product_sku: String!@doc(description: "The SKU of the child bundle product.")
122
+
quantity: Float!@doc(description: "The number of this bundle product that were ordered.")
123
+
price: Money!@doc(description: "The price of the child bundle product.")
bundle_options: [SelectedBundleOption!] @doc(description: "An array containing information about the selected bundle items") @resolver(class: "\\Magento\\BundleGraphQl\\Model\\Wishlist\\BundleOptions")
126
+
typeBundleWishlistItemimplementsWishlistItemInterface@doc(description: "Defines bundle product options for `WishlistItemInterface`.") {
127
+
bundle_options: [SelectedBundleOption!] @doc(description: "An array containing information about the selected bundle items.") @resolver(class: "\\Magento\\BundleGraphQl\\Model\\Wishlist\\BundleOptions")
Copy file name to clipboardExpand all lines: app/code/Magento/CatalogCustomerGraphQl/etc/schema.graphqls
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -2,21 +2,21 @@
2
2
# See COPYING.txt for license details.
3
3
4
4
interfaceProductInterface {
5
-
tier_prices: [ProductTierPrices] @deprecated(reason: "Use price_tiers for product tier price information.") @doc(description: "An array of ProductTierPrices objects.") @resolver(class: "Magento\\CatalogCustomerGraphQl\\Model\\Resolver\\TierPrices")
6
-
price_tiers: [TierPrice] @doc(description: "An array of TierPrice objects.") @resolver(class: "Magento\\CatalogCustomerGraphQl\\Model\\Resolver\\PriceTiers")
5
+
tier_prices: [ProductTierPrices] @deprecated(reason: "Use `price_tiers` for product tier price information.") @doc(description: "An array of ProductTierPrices objects.") @resolver(class: "Magento\\CatalogCustomerGraphQl\\Model\\Resolver\\TierPrices")
6
+
price_tiers: [TierPrice] @doc(description: "An array of `TierPrice` objects.") @resolver(class: "Magento\\CatalogCustomerGraphQl\\Model\\Resolver\\PriceTiers")
7
7
}
8
8
9
-
typeProductTierPrices@doc(description: "ProductTierPrices is deprecated and has been replaced by TierPrice. The ProductTierPrices object defines a tier price, which is a quantity discount offered to a specific customer group.") {
10
-
customer_group_id: String@deprecated(reason: "customer_group_id is not relevant for storefront.") @doc(description: "The ID of the customer group.")
11
-
qty: Float@deprecated(reason: "ProductTierPrices is deprecated, use TierPrice.quantity.") @doc(description: "The number of items that must be purchased to qualify for tier pricing.")
12
-
value: Float@deprecated(reason: "ProductTierPrices is deprecated. Use TierPrice.final_price") @doc(description: "The price of the fixed price item.")
13
-
percentage_value: Float@deprecated(reason: "ProductTierPrices is deprecated. Use TierPrice.discount.") @doc(description: "The percentage discount of the item.")
14
-
website_id: Float@deprecated(reason: "website_id is not relevant for storefront.") @doc(description: "The ID assigned to the website.")
9
+
typeProductTierPrices@doc(description: "Deprecated. Use `TierPrice` instead. Defines a tier price, which is a quantity discount offered to a specific customer group.") {
10
+
customer_group_id: String@deprecated(reason: "Not relevant for the storefront.") @doc(description: "The ID of the customer group.")
11
+
qty: Float@deprecated(reason: "Use `TierPrice.quantity` instead.") @doc(description: "The number of items that must be purchased to qualify for tier pricing.")
12
+
value: Float@deprecated(reason: "Use `TierPrice.final_price` instead.") @doc(description: "The price of the fixed price item.")
13
+
percentage_value: Float@deprecated(reason: "Use `TierPrice.discount` instead.") @doc(description: "The percentage discount of the item.")
14
+
website_id: Float@deprecated(reason: "Not relevant for the storefront.") @doc(description: "The ID assigned to the website.")
15
15
}
16
16
17
17
18
-
typeTierPrice@doc(description: "A price based on the quantity purchased.") {
19
-
final_price: Money@doc(desription: "The price of the product at this tier.")
18
+
typeTierPrice@doc(description: "Defines a price based on the quantity purchased.") {
19
+
final_price: Money@doc(description: "The price of the product at this tier.")
20
20
quantity: Float@doc(description: "The minimum number of items that must be purchased to qualify for this price tier.")
21
21
discount: ProductDiscount@doc(description: "The price discount that this tier represents.")
0 commit comments