Typescript SDK Type Docs
    Preparing search index...

    Interface CartSetLineItemTotalPriceAction

    Sets the LineItem totalPrice and price, and changes the priceMode to ExternalTotal LineItemPriceMode. Cannot be used on Gift Line Items (see LineItemMode).

    interface CartSetLineItemTotalPriceAction {
        action: "setLineItemTotalPrice";
        externalTotalPrice?: ExternalLineItemTotalPrice;
        lineItemId?: string;
        lineItemKey?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    action: "setLineItemTotalPrice"
    externalTotalPrice?: ExternalLineItemTotalPrice

    Value to set. If externalTotalPrice is not given and the priceMode is ExternalTotal, the external price is unset and the priceMode is set to Platform.

    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.