Skip to content

Commit ace41d1

Browse files
committed
ACP2E-894: add new argument to filter customer orders based on scope level
1 parent 38d5a7a commit ace41d1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type Customer {
2525
filter: CustomerOrdersFilterInput @doc(description: "Defines the filter to use for searching customer orders."),
2626
currentPage: Int = 1 @doc(description: "Specifies which page of results to return. The default value is 1."),
2727
pageSize: Int = 20 @doc(description: "Specifies the maximum number of results to return at once. The default value is 20."),
28-
scope: String @doc(description: "Specifies the scope of the orders (global, website, store)"),
28+
scope: ScopeTypeEnum @doc(description: "Specifies the scope of the orders (global, website, store)"),
2929
): CustomerOrders @resolver(class: "Magento\\SalesGraphQl\\Model\\Resolver\\CustomerOrders") @cache(cacheable: false)
3030
}
3131

@@ -249,3 +249,9 @@ enum CheckoutUserInputErrorCodes {
249249
INSUFFICIENT_STOCK
250250
UNDEFINED
251251
}
252+
253+
enum ScopeTypeEnum @doc(description: "This enumeration defines the scope type for customer orders.") {
254+
global
255+
website
256+
store
257+
}

0 commit comments

Comments
 (0)