Interface: CartBaseItem
Defined in: type/CartBaseItem.ts:12
Object class for CartBaseItem
Extends
Properties
bundleId?
optionalbundleId?:string
Defined in: type/CartBaseItem.ts:51
Cart item's bundleId if applicable
Overrides
clusterId?
optionalclusterId?:number
Defined in: type/CartBaseItem.ts:53
Cart item's clusterId if applicable
deliveryDate?
optionaldeliveryDate?:string
Defined in: type/CartBaseItem.ts:59
Expected delivery date for this cart item.
deliveryDeadline?
optionaldeliveryDeadline?:string
Defined in: type/CartBaseItem.ts:61
Deadline for delivery of this cart item.
discount
discount:
number
Defined in: type/CartBaseItem.ts:63
Discount applied to this cart item
discountPercentage
discountPercentage:
number
Defined in: type/CartBaseItem.ts:65
Discount percentage applied to this cart item
incentive?
optionalincentive?:CartItemIncentive
Defined in: type/CartBaseItem.ts:69
Incentive that applied to this cart item
itemId
itemId:
string
Defined in: type/CartBaseItem.ts:14
Item ID of the cart item, this id can be used for update or delete mutation for this cart item.
Overrides
notes?
optionalnotes?:string
Defined in: type/CartBaseItem.ts:18
User notes on cart item level
parentItemUUID?
optionalparentItemUUID?:string
Defined in: type/CartBaseItem.ts:16
Id of the parent cart item.
price
price:
number
Defined in: type/CartBaseItem.ts:20
Gross price per UOM of this cart item, no item specific discounts are applied to this price.
priceMode?
optionalpriceMode?:PriceMode
Defined in: type/CartBaseItem.ts:24
Price mode for this cart item, if not set the platform default will be used.
priceNet
priceNet:
number
Defined in: type/CartBaseItem.ts:22
Net price per UOM of this cart item, no item specific discounts are applied to this price.
product
product:
Product
Defined in: type/CartBaseItem.ts:71
product field
productId?
optionalproductId?:number
Defined in: type/CartBaseItem.ts:55
Cart item's productId if applicable
Overrides
quantity
quantity:
number
Defined in: type/CartBaseItem.ts:49
Quantity for this cart item
sum
sum:
number
Defined in: type/CartBaseItem.ts:38
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/CartBaseItem.ts:43
PER UOM, not the line total — see sum. For the line total use totalSumNet.
surcharges?
optionalsurcharges?:CartItemSurcharge[]
Defined in: type/CartBaseItem.ts:67
List of surcharges for this cart item
taxCode
taxCode:
TaxCode
Defined in: type/CartBaseItem.ts:57
Tax code for this cart item.
totalPrice
totalPrice:
number
Defined in: type/CartBaseItem.ts:26
Total gross price for this cart item, including item specific discounts.
totalPriceNet
totalPriceNet:
number
Defined in: type/CartBaseItem.ts:28
Total net price for this cart item, including item specific discounts.
totalSum
totalSum:
number
Defined in: type/CartBaseItem.ts:45
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/CartBaseItem.ts:47
Total net sum of the main cart price and the prices of its child items. Including item specific discounts.