[**@bondsports/general**](../README.md) • **Docs**

***

[@bondsports/general](../globals.md) / IUpdateProductPrice

# Interface: IUpdateProductPrice

## Properties

### groupId?

> `optional` **groupId**: `string`

The cart-item group this update was captured against. `updateCartPrices` ignores it
when matching, because group ids are regenerated when the cart is rebuilt. Matching
is by `productId` + `priceId` + `originalUnitPrice` (one unit price per product).

#### Defined in

[types/cart.ts:101](https://github.com/Bond-Sports/bondUtils/blob/545f16ceb055481acfd7641d7809c0f252d3a5e6/packages/general/src/types/cart.ts#L101)

***

### keepTotalPrice?

> `optional` **keepTotalPrice**: `boolean`

When true, `totalPrice` for this product is sticky and `updateCartPrices`
must not recompute it. Honored only on the INDIVIDUAL update path;
CATEGORY and GLOBAL update paths always recompute and ignore this flag.

#### Defined in

[types/cart.ts:107](https://github.com/Bond-Sports/bondUtils/blob/545f16ceb055481acfd7641d7809c0f252d3a5e6/packages/general/src/types/cart.ts#L107)

***

### originalUnitPrice

> **originalUnitPrice**: `number`

#### Defined in

[types/cart.ts:94](https://github.com/Bond-Sports/bondUtils/blob/545f16ceb055481acfd7641d7809c0f252d3a5e6/packages/general/src/types/cart.ts#L94)

***

### priceId

> **priceId**: `number`

#### Defined in

[types/cart.ts:92](https://github.com/Bond-Sports/bondUtils/blob/545f16ceb055481acfd7641d7809c0f252d3a5e6/packages/general/src/types/cart.ts#L92)

***

### productId

> **productId**: `number`

#### Defined in

[types/cart.ts:91](https://github.com/Bond-Sports/bondUtils/blob/545f16ceb055481acfd7641d7809c0f252d3a5e6/packages/general/src/types/cart.ts#L91)

***

### totalPrice?

> `optional` **totalPrice**: `number`

#### Defined in

[types/cart.ts:95](https://github.com/Bond-Sports/bondUtils/blob/545f16ceb055481acfd7641d7809c0f252d3a5e6/packages/general/src/types/cart.ts#L95)

***

### unitPrice

> **unitPrice**: `number`

#### Defined in

[types/cart.ts:93](https://github.com/Bond-Sports/bondUtils/blob/545f16ceb055481acfd7641d7809c0f252d3a5e6/packages/general/src/types/cart.ts#L93)
