interface MyCartSetLineItemCustomTypeAction {
    action: "setLineItemCustomType";
    fields?: FieldContainer;
    lineItemId?: string;
    lineItemKey?: string;
    type?: TypeResourceIdentifier;
}

Properties

action: "setLineItemCustomType"

Sets the Custom Fields fields for the Line Item.

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.

Defines the Type that extends the LineItem with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Line Item.