GitHub

ShopifyDiscountAllocation

Type

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

The calculated discount amount applied to a line item or shipping line. While a DiscountApplication captures the discount's rules and intentions, the allocation shows how much was actually deducted.

Each allocation includes the discounted amount and a reference to the originating discount application.

interface ShopifyDiscountAllocation {
  __typename: "DiscountAllocation"
  allocatedAmount: ShopifyMoneyV2
  discountApplication: ShopifyDiscountApplication
}

Properties

__typename
"DiscountAllocation"
allocatedAmount
ShopifyMoneyV2

Amount of discount allocated.

discountApplication
ShopifyDiscountApplication

The discount this allocated amount originated from.