Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 151c05f

Browse files
authored
Merge pull request #7716 from magento/kh_downloadable
GraphQL: Add support for downloadable/gift card products in customer …
2 parents 8bc7066 + 46c1133 commit 151c05f

File tree

1 file changed

+106
-28
lines changed

1 file changed

+106
-28
lines changed

src/_includes/graphql/customer-orders-output.md

Lines changed: 106 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Attribute | Data type | Description
4343
--- | --- | ---
4444
`billing_address` | [OrderAddress](#OrderAddress) | The billing address for the order
4545
`carrier` | String | The shipping carrier for the order delivery
46-
`comments` | [[CommentItem](#CommentItem)] | Comments on the order
46+
`comments` | [[SalesCommentItem](#SalesCommentItem)] | Comments on the order
4747
`created_at` | String | Deprecated. Use the `order_date` attribute instead
4848
`credit_memos` | [[CreditMemo](#CreditMemo)] | Contains a list of credit memos for the order
4949
`grand_total` | Float | Deprecated. Use the `totals.grand_total` attribute instead
@@ -54,7 +54,7 @@ Attribute | Data type | Description
5454
`number` | String! | The order number
5555
`order_date` | String! | The date the order was placed
5656
`order_number` | String! | Deprecated. Use the `number` attribute instead
57-
`payment_methods` | [[PaymentMethod](#PaymentMethod)] | Payment details for the order
57+
`payment_methods` | [[OrderPaymentMethod](#OrderPaymentMethod)] | Payment details for the order
5858
`shipments` | [[OrderShipment](#OrderShipment)] | Shipment list for the order
5959
`shipping_address` | [OrderAddress](#OrderAddress) | Shipping address for the order
6060
`shipping_method` | String | Shipping method for the order
@@ -65,7 +65,7 @@ The deprecated attributes were previously defined in the `CustomerOrder` object
6565

6666
#### BundleCreditMemoItem attributes {#BundleCreditMemoItem}
6767

68-
The `BundleCreditMemoItem` object implements the [`CreditMemoInterface`](#CreditMemoInterface). It also defines the following attribute:
68+
The `BundleCreditMemoItem` object implements the [`CreditMemoItemInterface`](#CreditMemoItemInterface). It also defines the following attribute:
6969

7070
Attribute | Data type | Description
7171
--- | --- | ---
@@ -95,28 +95,19 @@ Attribute | Data type | Description
9595
--- | --- | ---
9696
`bundle_options` | [[ItemSelectedBundleOption]](#ItemSelectedBundleOption) | A list of bundle options that are assigned to the bundle product
9797

98-
#### CommentItem attributes {#CommentItem}
99-
100-
The `CommentItem` object contains details about a comment applied to an order.
101-
102-
Attribute | Data type | Description
103-
--- | --- | ---
104-
`message` | String!| The text of the message
105-
`timestamp` | String! | The timestamp of the comment
106-
10798
#### CreditMemo attributes {#CreditMemo}
10899

109100
The `CreditMemo` object contains details about credit memos applied to an order.
110101

111102
Attribute | Data type | Description
112103
--- | --- | ---
113-
`comments` | [[CommentItem](#CommentItem)] | Comments on the credit memo
104+
`comments` | [[SalesCommentItem](#SalesCommentItem)] | Comments on the credit memo
114105
`id` | ID! | The unique ID of the credit memo
115106
`items` | [[CreditMemoItem](#CreditMemoItem)] | An array containing details about refunded items
116107
`number` | String! | The sequential credit memo number
117108
`total` | [CreditMemoTotal](#CreditMemoTotal) | Contains details about the total refunded amount
118109

119-
#### CreditMemoInterface attributes {#CreditMemoInterface}
110+
#### CreditMemoItemInterface attributes {#CreditMemoItemInterface}
120111

121112
The `CreditMemoItemInterface` describes a specific credit memo.
122113

@@ -131,7 +122,7 @@ Attribute | Data type | Description
131122

132123
#### CreditMemoItem attributes {#CreditMemoItem}
133124

134-
The `CreditMemoItem` object implements the [`CreditMemoInterface`](#CreditMemoInterface).
125+
The `CreditMemoItem` object implements the [`CreditMemoItemInterface`](#CreditMemoItemInterface).
135126

136127
#### CreditMemoTotal attributes {#CreditMemoTotal}
137128

@@ -158,13 +149,91 @@ Attribute | Data type | Description
158149
`amount` | Money! | The amount of the discount
159150
`label` | String! | A description of the discount
160151

152+
#### DownloadableCreditMemoItem attributes {#DownloadableCreditMemoItem}
153+
154+
The `DownloadableCreditMemoItem` object implements the [`CreditMemoItemInterface`](#CreditMemoItemInterface). It also defines the following attribute:
155+
156+
Attribute | Data type | Description
157+
--- | --- | ---
158+
`downloadable_links` | [[DownloadableItemsLinks]](#DownloadableItemsLinks) | A list of downloadable links that were refunded from the downloadable product
159+
160+
#### DownloadableItemsLinks attributes {#DownloadableItemsLinks}
161+
162+
The `DownloadableProductLinks` object defines characteristics of a downloadable product.
163+
164+
Attribute | Data type | Description
165+
--- | --- | ---
166+
`sort_order` | Int | A number indicating the sort order
167+
`title`| String | The display name of the link
168+
`uid` | ID! | A string that encodes option details
169+
170+
#### DownloadableInvoiceItem attributes {#DownloadableInvoiceItem}
171+
172+
The `DownloadableInvoiceItem` object implements the [`InvoiceItemInterface`](#InvoiceItemInterface). It also defines the following attribute:
173+
174+
Attribute | Data type | Description
175+
--- | --- | ---
176+
`downloadable_links` | [[DownloadableItemsLinks]](#DownloadableItemsLinks) | A list of downloadable links that were invoiced from the downloadable product
177+
178+
#### DownloadableOrderItem attributes {#DownloadableOrderItem}
179+
180+
The `DownloadableOrderItem` object implements the [`OrderItemInterface`](#OrderItemInterface). It also defines the following attribute:
181+
182+
Attribute | Data type | Description
183+
--- | --- | ---
184+
`downloadable_links` | [[DownloadableItemsLinks]](#DownloadableItemsLinks) | A list of downloadable links that were ordered from the downloadable product
185+
186+
#### GiftCardItem attributes {#GiftCardItem}
187+
188+
The `GiftCardItem` object contains selected buyer-entered gift card properties for an order item.
189+
190+
Attribute | Data type | Description
191+
--- | --- | ---
192+
`message`| String | A message provided by the sender to the recipient
193+
`recipient_email` | String | The email provided for the recipient of a virtual gift card
194+
`recipient_name` | String | The name provided for the recipient of a physical or virtual gift card
195+
`sender_email` | String | The sender email provided for a virtual gift card
196+
`sender_name` | String | The sender name provided for a physical or virtual gift card
197+
198+
#### GiftCardCreditMemoItem attributes {#GiftCardOrderItem}
199+
200+
The `GiftCardCreditMemoItem` object implements the [`CreditMemoItemInterface`](#CreditMemoItemInterface). It also defines the following attribute:
201+
202+
Attribute | Data type | Description
203+
--- | --- | ---
204+
`gift_card` | [GiftCardItem](#GiftCardItem) | Selected gift card properties for a refunded item
205+
206+
#### GiftCardInvoiceItem attributes {#GiftCardInvoiceItem}
207+
208+
The `GiftCardInvoiceItem` object implements the [`InvoiceItemInterface`](#InvoiceItemInterface). It also defines the following attribute:
209+
210+
Attribute | Data type | Description
211+
--- | --- | ---
212+
`gift_card` | [GiftCardItem](#GiftCardItem) | Selected gift card properties for an invoiced item
213+
214+
#### GiftCardOrderItem attributes {#GiftCardOrderItem}
215+
216+
The `GiftCardOrderItem` object implements the [`OrderItemInterface`](#OrderItemInterface). It also defines the following attribute:
217+
218+
Attribute | Data type | Description
219+
--- | --- | ---
220+
`gift_card` | [GiftCardItem](#GiftCardItem) | Selected gift card properties for an order item
221+
222+
#### GiftCardShipmentItem attributes {#GiftCardShipmentItem}
223+
224+
The `GiftCardShipmentItem` object implements the [`ShipmentItemInterface`](#ShipmentItemInterface). It also defines the following attribute:
225+
226+
Attribute | Data type | Description
227+
--- | --- | ---
228+
`gift_card` | [GiftCardItem](#GiftCardItem) | Selected gift card properties for a shipped item
229+
161230
#### Invoice attributes {#Invoice}
162231

163232
The `Invoice` object provides details about a customer invoice.
164233

165234
Attribute | Data type | Description
166235
--- | --- | ---
167-
`comments` | [[CommentItem](#CommentItem)] | Comments on the invoice
236+
`comments` | [[SalesCommentItem](#SalesCommentItem)] | Comments on the invoice
168237
`id` | ID! | The internal ID of the invoice
169238
`items` | [[InvoiceItemInterface](#InvoiceItemInterface)]! | Contains details about invoiced products
170239
`number` | String! | The sequential number of the invoice
@@ -286,14 +355,24 @@ Attribute | Data type | Description
286355

287356
Attribute | Data type | Description
288357
--- | --- | ---
289-
`id` | String! | The name of the option
358+
`label` | String! | The name of the option
290359
`value` | String! | The value of the option
291360

361+
#### OrderPaymentMethod attributes {#OrderPaymentMethod}
362+
363+
The OrderPaymentMethod data type contains details about the payment method used to pay for the order.
364+
365+
Attribute | Data type | Description
366+
--- | --- | ---
367+
`additional_data` | [[KeyValue](#KeyValue)] | Additional data per payment method type
368+
`name` | String! | The label that describes the payment method
369+
`type` | String! | The payment method code that indicates how the order was paid for
370+
292371
#### OrderShipment attributes {#OrderShipment}
293372

294373
Attribute | Data type | Description
295374
--- | --- | ---
296-
`comments` | [[CommentItem](#CommentItem)] | Comments added to the shipment
375+
`comments` | [[SalesCommentItem](#SalesCommentItem)] | Comments added to the shipment
297376
`id` | ID! | The unique ID of the shipment
298377
`items` | [[ShipmentItemInterface](#ShipmentItemInterface)] | Contains items included in the shipment
299378
`number` | String! | The sequential credit shipment number
@@ -314,16 +393,6 @@ Attribute | Data type | Description
314393
`total_shipping` | Money! | The shipping costs for the order
315394
`total_tax` | Money! | The amount of tax applied to the order
316395

317-
#### PaymentMethod attributes {#PaymentMethod}
318-
319-
The PaymentMethod data type contains details about the payment method used to pay for the order.
320-
321-
Attribute | Data type | Description
322-
--- | --- | ---
323-
`additional_data` | [[KeyValue](#KeyValue)] | Additional data per payment method type
324-
`name` | String! | The label that describes the payment method
325-
`type` | String! | The payment method code that indicates how the order was paid for
326-
327396
#### RewardPoints attributes {#RewardPoints}
328397

329398
The `RewardPoints` object provides details about the customer's reward points balance, history, and related information.
@@ -382,6 +451,15 @@ Attribute | Data type | Description
382451
`balance_updates` | RewardPointsSubscriptionStatusesEnum! | Customer subscription status to 'Reward points balance updates' emails
383452
`points_expiration_notifications` | RewardPointsSubscriptionStatusesEnum! | Customer subscription status to 'Reward points expiration notifications' emails
384453

454+
#### SalesCommentItem attributes {#SalesCommentItem}
455+
456+
The `SalesCommentItem` object contains details about a comment applied to an order.
457+
458+
Attribute | Data type | Description
459+
--- | --- | ---
460+
`message` | String!| The text of the message
461+
`timestamp` | String! | The timestamp of the comment
462+
385463
#### SalesItemOption attributes {#SalesItemOption}
386464

387465
The `SalesItemOption` data type contains the ID and value for the selected or entered options.

0 commit comments

Comments
 (0)