ProductDiscount
Describes a product discount with pricing and temporal information.
Type Definition
type ProductDiscount {
amount: Float
isPercentage: Boolean
begins: String
ends: String
}Fields
| Field | Type | Description |
|---|---|---|
| amount | Float | Returns the discount amount. |
| isPercentage | Boolean | Returns true if discount is a percentage. |
| begins | String | Returns the start date if it is set. |
| ends | String | Returns the end date if it is set. |
Relationships
ProductDiscount is used by ProductVariant to provide discount information associated with product variants through the discountInformation field.
Example
{
amount
isPercentage
begins
ends
}Implements
This type does not implement any interfaces.