Outcome of applying a single promo code to a cart, reported back by CartManager.applyPromoCodes. A promo code may resolve to a redeemable voucher or to a promotion, or it may not match anything, in which case no result is produced for it. The message describes what happened, for display to the customer.


Properties

PropertyReturnsDescription
messageStringHuman-readable message describing the outcome of applying the code, for display to the customer.
promoCodeStringThe promo code this result is for.
successfulbooleanWhether the promo code was successfully applied to the cart.

Methods

getPromoCode()

Returns: String

The promo code this result is for.

getMessage()

Returns: String

Human-readable message describing the outcome of applying the code, for display to the customer.

isSuccessful()

Returns: boolean

Whether the promo code was successfully applied to the cart.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.