Skip to main content

Interface: CartMainItem

Defined in: type/CartMainItem.ts:14

Object class for CartMainItem

Extends​

Properties​

bundle?​

optional bundle?: Bundle

Defined in: type/CartMainItem.ts:22

Bundle


bundleId?​

optional bundleId?: string

Defined in: type/CartMainItem.ts:20

Cart item's bundleId if applicable

Overrides​

ICartBaseItem.bundleId


childItems?​

optional childItems?: CartBaseItem[]

Defined in: type/CartMainItem.ts:75

Cart item's child items, used when ordering products that are part of a configuration or bundle


clusterId?​

optional clusterId?: number

Defined in: type/CartMainItem.ts:59

Cart item's clusterId if applicable


deliveryDate?​

optional deliveryDate?: string

Defined in: type/CartMainItem.ts:63

Expected delivery date for this cart item.


deliveryDeadline?​

optional deliveryDeadline?: string

Defined in: type/CartMainItem.ts:65

Deadline for delivery of this cart item.


discount​

discount: number

Defined in: type/CartMainItem.ts:67

Discount applied to this cart item


discountPercentage​

discountPercentage: number

Defined in: type/CartMainItem.ts:69

Discount percentage applied to this cart item


incentive?​

optional incentive?: CartItemIncentive

Defined in: type/CartMainItem.ts:73

Incentive that applied to this cart item


itemId​

itemId: string

Defined in: type/CartMainItem.ts:16

Item ID of the cart item, this id can be used for update or delete mutation for this cart item.

Overrides​

ICartBaseItem.itemId


notes?​

optional notes?: string

Defined in: type/CartMainItem.ts:26

User notes on cart item level


parentItemUUID?​

optional parentItemUUID?: string

Defined in: type/CartMainItem.ts:24

Id of the parent cart item.


price​

price: number

Defined in: type/CartMainItem.ts:28

Gross price per UOM of this cart item, no item specific discounts are applied to this price.


priceMode?​

optional priceMode?: PriceMode

Defined in: type/CartMainItem.ts:32

Price mode for this cart item, if not set the platform default will be used.


priceNet​

priceNet: number

Defined in: type/CartMainItem.ts:30

Net price per UOM of this cart item, no item specific discounts are applied to this price.


product?​

optional product?: Product

Defined in: type/CartMainItem.ts:77

product field


productId?​

optional productId?: number

Defined in: type/CartMainItem.ts:18

Cart item's productId if applicable

Overrides​

ICartBaseItem.productId


quantity​

quantity: number

Defined in: type/CartMainItem.ts:57

Quantity for this cart item


sum​

sum: number

Defined in: type/CartMainItem.ts:46

PER UOM, not the line total — despite the name. Gross sum of the main price and the prices of its child items, for ONE unit, with no item specific discounts applied.

For the line total use totalSum. Summing sum across a cart under-reports every line by a factor of its quantity, and does it silently: the result is a plausible number and the types are green.


sumNet​

sumNet: number

Defined in: type/CartMainItem.ts:51

PER UOM, not the line total — see sum. For the line total use totalSumNet.


surcharges?​

optional surcharges?: CartItemSurcharge[]

Defined in: type/CartMainItem.ts:71

List of surcharges for this cart item


taxCode​

taxCode: TaxCode

Defined in: type/CartMainItem.ts:61

Tax code for this cart item.


totalPrice​

totalPrice: number

Defined in: type/CartMainItem.ts:34

Total gross price for this cart item, including item specific discounts.


totalPriceNet​

totalPriceNet: number

Defined in: type/CartMainItem.ts:36

Total net price for this cart item, including item specific discounts.


totalSum​

totalSum: number

Defined in: type/CartMainItem.ts:53

Total gross sum of the main cart price and the prices of its child items. Including item specific discounts.


totalSumNet​

totalSumNet: number

Defined in: type/CartMainItem.ts:55

Total net sum of the main cart price and the prices of its child items. Including item specific discounts.