GitHub

ShopifySellingPlanAllocationPriceAdjustment

interface

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

The resulting prices for variants when they're purchased with a specific selling plan.

interface ShopifySellingPlanAllocationPriceAdjustment {
  __typename: "SellingPlanAllocationPriceAdjustment"
  compareAtPrice: ShopifyMoneyV2
  perDeliveryPrice: ShopifyMoneyV2
  price: ShopifyMoneyV2
  unitPrice: ShopifyMoneyV2
}

Properties

__typename
"SellingPlanAllocationPriceAdjustment"
compareAtPrice
ShopifyMoneyV2

The price of the variant when it's purchased without a selling plan for the same number of deliveries. For example, if a customer purchases 6 deliveries of $10.00 granola separately, then the price is 6 x $10.00 = $60.00.

perDeliveryPrice
ShopifyMoneyV2

The effective price for a single delivery. For example, for a prepaid subscription plan that includes 6 deliveries at the price of $48.00, the per delivery price is $8.00.

price
ShopifyMoneyV2

The price of the variant when it's purchased with a selling plan For example, for a prepaid subscription plan that includes 6 deliveries of $10.00 granola, where the customer gets 20% off, the price is 6 x $10.00 x 0.80 = $48.00.

unitPrice
ShopifyMoneyV2

The resulting price per unit for the variant associated with the selling plan. If the variant isn't sold by quantity or measurement, then this field returns null.