DiscountCodeState enum incomplete
Closed this issue · 0 comments
Marvin-Brouwer commented
This is the current state of the DiscountCodeState enum (decompiled source):
namespace commercetools.Carts
{
public enum DiscountCodeState
{
NotActive = 0,
DoesNotMatchCart = 1,
MatchesCart = 2,
MaxApplicationReached = 3
}
}
There are four options:
- NotActive
- DoesNotMatchCart
- MatchesCart
- MaxApplicationReached
However if I read the documentation I see 6:
- NotActive
- NotValid
- DoesNotMatchCart
- MatchesCart
- MaxApplicationReached
- ApplicationStoppedByPreviousDiscount
The missing two should be added to prevent unexpected results when using the SDK