Home > @vsf-enterprise/commercetools-types > LineItemNameArgs

# LineItemNameArgs type

A line item is a snapshot of a product variant at the time it was added to the cart.

Since a product variant may change at any time, the ProductVariant data is copied into the field variant. The relation to the Product is kept but the line item will not automatically update if the product variant changes. On the cart, the line item can be updated manually. The productSlug refers to the current version of the product. It can be used to link to the product. If the product has been deleted, the line item remains but refers to a non-existent product and the productSlug is left empty.

Please also note that creating an order is impossible if the product or product variant a line item relates to has been deleted.

Signature:

export declare type LineItemNameArgs = {
    locale?: InputMaybe<Scalars['Locale']>;
    acceptLanguage?: InputMaybe<Array<Scalars['Locale']>>;
};

References: InputMaybe, Scalars