DiscountCodeState:
    | "ApplicationStoppedByPreviousDiscount"
    | "DoesNotMatchCart"
    | "MatchesCart"
    | "MaxApplicationReached"
    | "NotActive"
    | "NotValid"
    | string

Indicates the state of a Discount Code in a Cart.

If an Order is created from a Cart with a state other than `MatchesCart`, a [DiscountCodeNonApplicable](ctp:api:type:DiscountCodeNonApplicableError) error is returned.