Home > widget-integration > CartUpdateRequest
CartUpdateRequest interface
Cart update request for queue management
Used internally to queue cart updates and prevent race conditions.
Signature:
export interface CartUpdateRequest
Example
const updateRequest: CartUpdateRequest = {
operation: CartUpdateOperation.CHANGE_QUANTITY,
productId: '12345',
quantity: 3,
timestamp: Date.now()
};
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
Type of update operation | |||
|
string |
(Optional) Product variant ID | ||
|
Record<string, unknown> |
(Optional) Item properties | ||
|
number |
(Optional) New quantity | ||
|
number |
Request timestamp for ordering |