@gradientedge/commercetools-utils
    Preparing search index...

    Interface MyCartSetLineItemCustomFieldAction

    interface MyCartSetLineItemCustomFieldAction {
        action: "setLineItemCustomField";
        lineItemId?: string;
        lineItemKey?: string;
        name: string;
        value?: any;
    }

    Hierarchy (View Summary)

    Index

    Properties

    action: "setLineItemCustomField"
    lineItemId?: string

    id of the LineItem to update. Either lineItemId or lineItemKey is required.

    lineItemKey?: string

    key of the LineItem to update. Either lineItemId or lineItemKey is required.

    name: string

    Name of the Custom Field.

    value?: any

    If value is absent or null, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. If value is provided, it is set for the field defined by name.