GitHub

ShopifyUnitPriceMeasurement

interface

import { ShopifyUnitPriceMeasurement } from '@daffodil/driver/shopify'

The measurement used to calculate a unit price for a product variant (e.g. $9.99 / 100ml).

interface ShopifyUnitPriceMeasurement {
  __typename: "UnitPriceMeasurement"
  measuredType: ShopifyUnitPriceMeasurementMeasuredType
  quantityUnit: ShopifyUnitPriceMeasurementMeasuredUnit
  quantityValue: number
  referenceUnit: ShopifyUnitPriceMeasurementMeasuredUnit
  referenceValue: number
}

Properties

__typename
"UnitPriceMeasurement"
measuredType
ShopifyUnitPriceMeasurementMeasuredType

The type of unit of measurement for the unit price measurement.

quantityUnit
ShopifyUnitPriceMeasurementMeasuredUnit

The quantity unit for the unit price measurement.

quantityValue
number

The quantity value for the unit price measurement.

referenceUnit
ShopifyUnitPriceMeasurementMeasuredUnit

The reference unit for the unit price measurement.

referenceValue
number

The reference value for the unit price measurement.