Typescript SDK Type Docs
    Preparing search index...

    Interface CartFreezeCartAction

    Freezes the Cart based on the provided FreezeStrategy.

    The following behavior occurs:
      - Changes the Cart State from `Active` to `Frozen`.
      - Sets the corresponding [FreezeStrategy](ctp:api:type:FreezeStrategy) on the Cart's `freezeStrategy` field.
      - Produces the [CartFrozen](ctp:api:type:CartFrozenMessage) Message.
    
    If the Cart is empty, an [InvalidOperation](ctp:api:type:InvalidOperationError) error is returned.
    
    interface CartFreezeCartAction {
        action: "freezeCart";
        strategy?: FreezeStrategy;
    }

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    action: "freezeCart"
    strategy?: FreezeStrategy

    Strategy that determines the freezing behavior.