Script: Class dw.order.GiftCertificateStatusCodes

Class GiftCertificateStatusCodes

  • Object
    • dw.order.GiftCertificateStatusCodes

Helper class containing status codes for the various errors that can occur when redeeming a gift certificate. One of these codes is returned as part of a Status object when a unsuccessful call to the RedeemGiftCertificate pipelet is made.

Constants

GIFTCERTIFICATE_CURRENCY_MISMATCH : String = "GIFTCERTIFICATE_CURRENCY_MISMATCH"

Indicates that an error occurred because the Gift Certificate was in a different currency than the Basket.

GIFTCERTIFICATE_DISABLED : String = "GIFTCERTIFICATE_DISABLED"

Indicates that an error occurred because the Gift Certificate is currently disabled.

GIFTCERTIFICATE_INSUFFICIENT_BALANCE : String = "GIFTCERTIFICATE_INSUFFICIENT_BALANCE"

Indicates that an error occurred because the Gift Certificate does not have a sufficient balance to perform the requested operation.

GIFTCERTIFICATE_NOT_FOUND : String = "GIFTCERTIFICATE_NOT_FOUND"

Indicates that an error occurred because the Gift Certificate was not found.

GIFTCERTIFICATE_PENDING : String = "GIFTCERTIFICATE_PENDING"

Indicates that an error occurred because the Gift Certificate is pending and is not available for use.

GIFTCERTIFICATE_REDEEMED : String = "GIFTCERTIFICATE_REDEEMED"

Indicates that an error occurred because the Gift Certificate has been fully redeemed.

Properties

Constructor Summary

GiftCertificateStatusCodes()

Method Summary

Methods inherited from class Object

assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values

Constructor Detail

GiftCertificateStatusCodes

publicGiftCertificateStatusCodes()