Skip to content

Commit 5ca8332

Browse files
committed
31075-update option as enum type
1 parent f45d97f commit 5ca8332

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ enum PriceTypeEnum @doc(description: "This enumeration the price type.") {
4949
DYNAMIC
5050
}
5151

52+
enum CustomizableDateTypeEnum @doc(description: "This enumeration customizable date type.") {
53+
date
54+
date_time
55+
time
56+
}
57+
5258
type ProductPrices @doc(description: "ProductPrices is deprecated, replaced by PriceRange. The ProductPrices object contains the regular price of an item, as well as its minimum and maximum prices. Only composite products, which include bundle, configurable, and grouped products, can contain a minimum and maximum price.") {
5359
minimalPrice: Price @deprecated(reason: "Use PriceRange.minimum_price.") @doc(description: "The lowest possible final price for all the options defined within a composite product. If you are specifying a price range, this would be the from value.")
5460
maximalPrice: Price @deprecated(reason: "Use PriceRange.maximum_price.") @doc(description: "The highest possible final price for all the options defined within a composite product. If you are specifying a price range, this would be the to value.")
@@ -153,7 +159,7 @@ type CustomizableDateOption implements CustomizableOptionInterface @doc(descript
153159
type CustomizableDateValue @doc(description: "CustomizableDateValue defines the price and sku of a product whose page contains a customized date picker.") {
154160
price: Float @doc(description: "The price assigned to this option.")
155161
price_type: PriceTypeEnum @doc(description: "FIXED, PERCENT, or DYNAMIC.")
156-
type: String @doc(description: "date, date_time or time")
162+
type: CustomizableDateTypeEnum @doc(description: "date, date_time or time")
157163
sku: String @doc(description: "The Stock Keeping Unit for this option.")
158164
uid: ID! @doc(description: "A string that encodes option details.") @resolver(class: "Magento\\CatalogGraphQl\\Model\\Resolver\\Product\\CustomizableEnteredOptionValueUid") # A Base64 string that encodes option details.
159165
}

0 commit comments

Comments
 (0)