interface CartSetCustomLineItemCustomFieldAction {
    action: "setCustomLineItemCustomField";
    customLineItemId?: string;
    customLineItemKey?: string;
    name: string;
    value?: any;
}

Properties

action: "setCustomLineItemCustomField"
customLineItemId?: string

id of the CustomLineItem to update. Either customLineItemId or customLineItemKey is required.

customLineItemKey?: string

key of the CustomLineItem to update. Either customLineItemId or customLineItemKey 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.