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
}
__typename "DiscountAllocation" |
|---|
allocatedAmount ShopifyMoneyV2 |
|---|
Amount of discount allocated. |
discountApplication ShopifyDiscountApplication |
|---|
The discount this allocated amount originated from. |