Skip to content

ProductStock model

ProductStock is a model representing details about a product stock and consists of the following fields:

  • availability: ProductAvailability
  • isBuyable: boolean
  • codes: TProductCodes
  • delivery:ProductDelivery | undefined
  • productId: number
  • productInstanceKey: number | undefined
  • stockId: number
  • images: TProductImageSize
  • loyalty: ProductLoyalty | null
  • price: ProductPrice
  • weight: Weight
  • visibility: ProductVisibility
  • shippingOptions?: { availableCountries: Record<number, string>; availableShippings: ProductStockShipping[]; shippingsInCountries: Record<string, ShippingLowest[]>; }
  • isNotificationEnabled: boolean
  • optionValues: TProductOptionValue[] | undefined
  • specialOffer: TProductSpecialOffer | null

ProductAvailability

ProductAvailability represents the ProductAvailability model.

TProductCodes

TProductCodes represents the TProductCodes object.

ProductDelivery

ProductDelivery represents the ProductDelivery model.

TProductImageSize

TProductImageSize represents the TProductImageSize object.

ProductLoyalty

ProductLoyalty represents the ProductLoyalty model.

ProductPrice

ProductPrice represents the ProductPrice model.

Weight

Weight represents the Weight model.

ProductVisibility

ProductVisibility represents the ProductVisibility model.

ProductStockShipping

ProductStockShipping represents the ProductStockShipping model.

ShippingLowest

ShippingLowest represents the ShippingLowest model.

TProductOptionValue

TProductOptionValue represents the TProductOptionValue object.

TProductSpecialOffer

TProductSpecialOffer represents the TProductSpecialOffer object.