VariantPricingInfo Object
Represents availability of a variant in the storefront.
type VariantPricingInfo {
onSale: Boolean
discount: TaxedMoney
discountPrior: TaxedMoney
discountLocalCurrency: TaxedMoney @deprecated(reason: "Always returns `null`.")
price: TaxedMoney
priceUndiscounted: TaxedMoney
pricePrior: TaxedMoney
priceLocalCurrency: TaxedMoney @deprecated(reason: "Always returns `null`.")
}
Fields
onSale
onSale · Boolean
Whether it is in sale or not.
discount
discount · TaxedMoney
The discount amount if in sale (null otherwise).
discountPrior
discountPrior · TaxedMoney
The discount amount compared to prior price. Null if product is not on sale or prior price was not provided in VariantChannelListing
discountLocalCurrency
discountLocalCurrency · TaxedMoney
The discount amount in the local currency.
price
price · TaxedMoney
The price, with any discount subtracted.
priceUndiscounted
priceUndiscounted · TaxedMoney
The price without any discount.
pricePrior
pricePrior · TaxedMoney
The price prior to discount.
priceLocalCurrency
priceLocalCurrency · TaxedMoney
The discounted price in the local currency.
Used by
Schema: Saleor 3.23.43. Download SDL.