API reference
DiscountUsability
Gives if the discount is *usable* or the reason why it's not. Be aware that new members might be added in the future
Kind: Enums
Values
| Value | Description |
|---|---|
Disabled |
|
Expired |
|
Misconfigured |
|
MissingAuth |
|
NotStarted |
|
NotWithinOpeningHours |
If the discount is not within the specified week day time periods |
Usable |
|
UsedBySomeone |
|
UsedByYou |
|
UserNotInGuestGroup |
|
WrongRestaurant |
How to get it
This type is returned by:
Discount.usability(field onDiscount)