stack

Home > @infiniteobjects/shopify-data-manager > AdminTypes > CalculatedLineItem

AdminTypes.CalculatedLineItem interface

A line item involved in order editing that may be newly added or have new changes applied.

Signature:

export interface CalculatedLineItem 

Properties

Property Modifiers Type Description
calculatedDiscountAllocations   Array<CalculatedDiscountAllocation> The discounts that have been allocated onto the line item by discount applications.
customAttributes   Array<Attribute> A list of attributes that represent custom features or special requests.
discountAllocations   Array<DiscountAllocation> The discounts that have been allocated onto the line item by discount applications.
discountedUnitPriceSet   MoneyBag The price of a single quantity of the line item with line item discounts applied, in shop and presentment currencies. Discounts applied to the entire order aren’t included in this price.
editableQuantity   Scalars[‘Int’][‘output’] The total number of items that can be edited.
editableQuantityBeforeChanges   Scalars[‘Int’][‘output’] The editable quantity prior to any changes made in the current edit.
editableSubtotalSet   MoneyBag The total price of editable lines in shop and presentment currencies.
hasStagedLineItemDiscount   Scalars[‘Boolean’][‘output’] Whether the calculated line item has a staged discount.
id   Scalars[‘ID’][‘output’] A globally-unique ID.
image?   Maybe<Image> (Optional) The image object associated to the line item’s variant.
originalUnitPriceSet   MoneyBag The variant unit price in shop and presentment currencies, without any discounts applied.
quantity   Scalars[‘Int’][‘output’] The total number of items.
restockable   Scalars[‘Boolean’][‘output’] Whether the line item can be restocked or not.
restocking   Scalars[‘Boolean’][‘output’] Whether the changes on the line item will result in a restock.
sku?   Maybe<Scalars[‘String’][‘output’]> (Optional) The variant SKU number.
stagedChanges   Array<OrderStagedChange> A list of changes that affect this line item.
title   Scalars[‘String’][‘output’] The title of the product.
uneditableSubtotalSet   MoneyBag The total price of uneditable lines in shop and presentment currencies.
variant?   Maybe<ProductVariant> (Optional) The product variant associated with this line item. The value is null for custom line items and items where the variant has been deleted.
variantTitle?   Maybe<Scalars[‘String’][‘output’]> (Optional) The title of the variant.