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
Copy file name to clipboardExpand all lines: app/code/Magento/DownloadableGraphQl/etc/schema.graphqls
+19-1Lines changed: 19 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ type DownloadableProductLinks @doc(description: "DownloadableProductLinks define
53
53
link_type: DownloadableFileTypeEnum@deprecated(reason: "`sample_url` serves to get the downloadable sample")
54
54
sample_type: DownloadableFileTypeEnum@deprecated(reason: "`sample_url` serves to get the downloadable sample")
55
55
sample_file: String@deprecated(reason: "`sample_url` serves to get the downloadable sample")
56
-
uid: ID!@doc(description: "A string that encodes option details.") @resolver(class: "Magento\\DownloadableGraphQl\\Resolver\\Product\\DownloadableLinksValueUid") # A Base64 string that encodes option details.
56
+
uid: ID!@doc(description: "A string that encodes option details.") @resolver(class: "Magento\\DownloadableGraphQl\\Resolver\\Product\\DownloadableLinksValueUid")
57
57
}
58
58
59
59
typeDownloadableProductSamples@doc(description: "DownloadableProductSamples defines characteristics of a downloadable product") {
@@ -64,3 +64,21 @@ type DownloadableProductSamples @doc(description: "DownloadableProductSamples de
64
64
sample_type: DownloadableFileTypeEnum@deprecated(reason: "`sample_url` serves to get the downloadable sample")
65
65
sample_file: String@deprecated(reason: "`sample_url` serves to get the downloadable sample")
downloadable_links: [DownloadableItemsLinks] @doc(description: "A list of downloadable links that are ordered from the downloadable product") @resolver(class: "Magento\\DownloadableGraphQl\\Resolver\\Order\\Item\\Links")
downloadable_links: [DownloadableItemsLinks] @doc(description: "A list of downloadable links that are invoiced from the downloadable product") @resolver(class: "Magento\\DownloadableGraphQl\\Resolver\\Order\\Item\\Links")
downloadable_links: [DownloadableItemsLinks] @doc(description: "A list of downloadable links that are refunded from the downloadable product") @resolver(class: "Magento\\DownloadableGraphQl\\Resolver\\Order\\Item\\Links")
78
+
}
79
+
80
+
typeDownloadableItemsLinks@doc(description: "DownloadableProductLinks defines characteristics of a downloadable product") {
81
+
title: String@doc(description: "The display name of the link")
82
+
sort_order: Int@doc(description: "A number indicating the sort order")
83
+
uid: ID!@doc(description: "A string that encodes option details.") @resolver(class: "Magento\\DownloadableGraphQl\\Resolver\\Product\\DownloadableLinksValueUid")
Copy file name to clipboardExpand all lines: app/code/Magento/SalesGraphQl/etc/schema.graphqls
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -48,12 +48,12 @@ type CustomerOrder @doc(description: "Contains details about each of the custome
48
48
invoices: [Invoice]!@doc(description: "A list of invoices for the order") @resolver(class: "Magento\\SalesGraphQl\\Model\\Resolver\\Invoices")
49
49
shipments: [OrderShipment] @doc(description: "A list of shipments for the order") @resolver(class: "Magento\\SalesGraphQl\\Model\\Resolver\\Shipments")
50
50
credit_memos: [CreditMemo] @doc(description: "A list of credit memos") @resolver(class: "Magento\\SalesGraphQl\\Model\\Resolver\\CreditMemos")
51
-
payment_methods: [PaymentMethod] @doc(description: "Payment details for the order")
51
+
payment_methods: [OrderPaymentMethod] @doc(description: "Payment details for the order")
52
52
shipping_address: OrderAddress@doc(description: "The shipping address for the order")
53
53
billing_address: OrderAddress@doc(description: "The billing address for the order")
54
54
carrier: String@doc(description: "The shipping carrier for the order delivery") @resolver(class: "Magento\\SalesGraphQl\\Model\\Resolver\\CustomerOrders\\Carrier")
55
55
shipping_method: String@doc(description: "The delivery method for the order")
56
-
comments: [CommentItem] @doc(description: "Comments about the order")
56
+
comments: [SalesCommentItem] @doc(description: "Comments about the order")
57
57
increment_id: String@deprecated(reason: "Use the id attribute instead")
58
58
order_number: String!@deprecated(reason: "Use the number attribute instead")
59
59
created_at: String@deprecated(reason: "Use the order_date attribute instead")
@@ -101,7 +101,7 @@ type OrderItem implements OrderItemInterface {
101
101
}
102
102
103
103
typeOrderItemOption@doc(description: "Represents order item options like selected or entered") {
104
-
id: String!@doc(description: "The name of the option")
104
+
label: String!@doc(description: "The name of the option")
105
105
value: String!@doc(description: "The value of the option")
106
106
}
107
107
@@ -127,7 +127,7 @@ type Invoice @doc(description: "Invoice details") {
items: [ShipmentItemInterface] @doc(description: "Contains items included in the shipment") @resolver(class: "Magento\\SalesGraphQl\\Model\\Resolver\\Shipment\\ShipmentItems")
174
-
comments: [CommentItem] @doc(description: "Comments added to the shipment")
174
+
comments: [SalesCommentItem] @doc(description: "Comments added to the shipment")
total: CreditMemoTotal@doc(description: "Contains details about the total refunded amount") @resolver(class: "Magento\\SalesGraphQl\\Model\\Resolver\\CreditMemo\\CreditMemoTotal")
211
-
comments: [CommentItem] @doc(description: "Comments on the credit memo") @resolver(class: "Magento\\SalesGraphQl\\Model\\Resolver\\CreditMemo\\CreditMemoComments")
211
+
comments: [SalesCommentItem] @doc(description: "Comments on the credit memo") @resolver(class: "Magento\\SalesGraphQl\\Model\\Resolver\\CreditMemo\\CreditMemoComments")
0 commit comments