From 8f8449a4689714d9245548c116713f551ec2461f Mon Sep 17 00:00:00 2001 From: RakeshJesadiya Date: Mon, 7 Dec 2020 15:45:21 +0530 Subject: [PATCH] add reference to the order item options and link --- src/_includes/graphql/invoice-item-interface.md | 2 +- src/_includes/graphql/order-item-interface.md | 13 ++++++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/_includes/graphql/invoice-item-interface.md b/src/_includes/graphql/invoice-item-interface.md index 48799c6a6b5..fca641cba07 100644 --- a/src/_includes/graphql/invoice-item-interface.md +++ b/src/_includes/graphql/invoice-item-interface.md @@ -2,7 +2,7 @@ Attribute | Data type | Description --- | --- | --- `discounts` | [Discount] | Contains information about the final discount amount for the base product, including discounts on options `id` | ID! | The unique ID of the invoice item -`order_item` | OrderItemInterface | Contains details about an individual order item +`order_item` | [OrderItemInterface]({{page.baseurl}}/graphql/interfaces/order-item-interface.html) | Contains details about an individual order item `product_name` | String | The name of the base product `product_sale_price` | Money! | The sale price for the base product including selected options `product_sku` | String! | The SKU of the base product diff --git a/src/_includes/graphql/order-item-interface.md b/src/_includes/graphql/order-item-interface.md index 2df31613a76..738680bc075 100644 --- a/src/_includes/graphql/order-item-interface.md +++ b/src/_includes/graphql/order-item-interface.md @@ -1,7 +1,7 @@ Attribute | Data Type | Description --- | --- | --- `discounts` | [Discount] | Final discount information for the product -`entered_options` | [OrderItemOption] | The entered option for the base product, such as a logo or image +`entered_options` | [`[OrderItemOption]`](#OrderItemOption) | The entered option for the base product, such as a logo or image `id` | ID! | The unique identifier for the order item `product_name` | String | The name of the base product `product_sale_price` | Money! | The sale price of the base product, including selected options @@ -14,5 +14,12 @@ Attribute | Data Type | Description `quantity_refunded` | Float | The number of refunded items `quantity_returned` | Float | The number of returned items `quantity_shipped` | Float | The number of shipped items -`selected_options` | [OrderItemOption] | The selected options for the base product, such as color or size -`status` | String | The status of the order item \ No newline at end of file +`selected_options` | [`[OrderItemOption]`](#OrderItemOption) | The selected options for the base product, such as color or size +`status` | String | The status of the order item + +#### OrderItemOption attributes {#OrderItemOption} + +Attribute | Data type | Description +--- | --- | --- +`label` | String! | The name of the option +`value` | String! | The value of the option \ No newline at end of file