Skip to content

DiscountThreshold

The DiscountThreshold object represents discount threshold settings in loyalty program in the storefront.

classDiagram
  direction LR
  class DiscountThreshold{
    float percentage
    int points
  }

Properties

Attribute name Type Description
percentage float Discount percentage.
points int Points that must be gathered to get discount.

Examples

percentage property

    You will receive {{ discountThreshold.percentage }} % discount for {{ discountThreshold.points }} points.
 You will receive 10% discount for 100 points.

points property

    You will receive {{ discountThreshold.percentage }} % discount for {{ discountThreshold.points }} points.
 You will receive 20% discount for 150 points.