← back to Dw Checkout Guard
extensions/dw-checkout-guard/src/cart_validations_generate_run.graphql
30 lines
query CartValidationsGenerateRun {
cart {
lines {
quantity
# per-unit price of the line; $0.00 is the exposure we block
cost {
amountPerQuantity {
amount
}
}
merchandise {
__typename
... on ProductVariant {
id
title
product {
id
title
# true if the product carries any discontinued tag (belt-and-suspenders;
# the 42 known sellable-discontinued were already drafted 2026-07-30)
isDiscontinued: hasAnyTag(
tags: ["Discontinued", "Discontinued-Review", "YB-Discontinued-2026-04"]
)
}
}
}
}
}
}