Interface DiscountCodeNonApplicableError

All Superinterfaces:
ErrorObject
All Known Implementing Classes:
DiscountCodeNonApplicableErrorImpl

Returned when the Cart contains a Discount Code with a DiscountCodeState other than MatchesCart.

The error is returned as a failed response to:

  • Create Order from Cart and Create Order in Store from Cart requests on Orders.
  • Create Order from Cart and Create Order in Store from Cart requests on My Orders.

Example to create an instance using the builder pattern

     DiscountCodeNonApplicableError discountCodeNonApplicableError = DiscountCodeNonApplicableError.builder()
             .message("{message}")
             .build()