LoyaltyDiscountProgress
Represents the progress of a loyalty discount for a customer, including spending thresholds, discount levels, and tier advancement information.
Type Definition
type LoyaltyDiscountProgress {
title: String
description: String
totalSpent: Float!
isStackable: Boolean!
isCombinable: Boolean!
levels: [LoyaltyDiscountLevel]!
currentLevelValidUntil: String
currentLevelThreshold: Float!
currentLevelDiscount: Float!
nextLevelThreshold: Float
nextLevelDiscount: Float
}Fields
| Field | Type | Description |
|---|---|---|
| title | String | The title of the loyalty discount. |
| description | String | The description of the loyalty discount. |
| totalSpent | Float! | The total amount spent by the customer. |
| isStackable | Boolean! | Whether the loyalty discount is stackable. |
| isCombinable | Boolean! | Whether the loyalty discount is combinable. |
| levels | [LoyaltyDiscountLevel]! | The levels of the loyalty discount. |
| currentLevelValidUntil | String | The valid until date of the current level. |
| currentLevelThreshold | Float! | The threshold of the current level. |
| currentLevelDiscount | Float! | The discount of the current level. |
| nextLevelThreshold | Float | The threshold of the next level. |
| nextLevelDiscount | Float | The discount of the next level. |
Relationships
LoyaltyDiscountProgress tracks a customer’s progression through loyalty discount tiers. It contains a collection of LoyaltyDiscountLevel objects that define the available tier levels. The type is accessed through the Customer object via the loyaltyDiscountProgress field.
Example
{
title
description
totalSpent
isStackable
isCombinable
levels {
threshold
discount
}
currentLevelValidUntil
currentLevelThreshold
currentLevelDiscount
nextLevelThreshold
nextLevelDiscount
}Implements
None