Class CouponServicesConstants

    • Field Detail

      • COUPON_CODE_GENERATION_ALGORITHM_PROPERTY

        public static final java.lang.String COUPON_CODE_GENERATION_ALGORITHM_PROPERTY
        The property that stores which algorithm to use for coupon code generation
        See Also:
        Constant Field Values
      • COUPON_CODE_GENERATION_ALGORITHM_DEFAULT_VALUE

        public static final java.lang.String COUPON_CODE_GENERATION_ALGORITHM_DEFAULT_VALUE
        The default algorithm used for coupon code generation (AES). This is used for the ciphertext generation.
        See Also:
        Constant Field Values
      • COUPON_CODE_GENERATION_KEY_SIZE_PROPERTY

        public static final java.lang.String COUPON_CODE_GENERATION_KEY_SIZE_PROPERTY
        The property that stores the key size of the algorithm used for coupon code generation
        See Also:
        Constant Field Values
      • COUPON_CODE_GENERATION_KEY_SIZE_DEFAULT_VALUE

        public static final int COUPON_CODE_GENERATION_KEY_SIZE_DEFAULT_VALUE
        The default key size (128). Note: If you want to increase the keysize for AES to 192 or 256 you need to install the Java Cryptography Extension (JCE)
        See Also:
        Constant Field Values
      • COUPON_CODE_GENERATION_GLOBAL_CHARACTERSET_PROPERTY

        public static final java.lang.String COUPON_CODE_GENERATION_GLOBAL_CHARACTERSET_PROPERTY
        The property that stores the global character set containing all characters that can be used for coupon codes. From this a randomly shuffled coupon alphabet is selected when a new coupon is created.
        See Also:
        Constant Field Values
      • COUPON_CODE_GENERATION_GLOBAL_CHARACTERSET_DEFAULT_VALUE

        public static final java.lang.String COUPON_CODE_GENERATION_GLOBAL_CHARACTERSET_DEFAULT_VALUE
        The default character set containing all characters that can be used for coupon codes.
        See Also:
        Constant Field Values
      • COUPON_CODE_GENERATION_ALPHABET_LENGTH_PROPERTY

        public static final java.lang.String COUPON_CODE_GENERATION_ALPHABET_LENGTH_PROPERTY
        The property that stores the alphabet length for each coupon.
        See Also:
        Constant Field Values
      • COUPON_CODE_GENERATION_MEDIA_FOLDER_QUALIFIER

        public static final java.lang.String COUPON_CODE_GENERATION_MEDIA_FOLDER_QUALIFIER
        The property that stores the media folder qualifier for generated coupons.
        See Also:
        Constant Field Values
      • COUPON_CODE_GENERATION_MEDIA_FOLDER_QUALIFIER_DEFAULT_VALUE

        public static final java.lang.String COUPON_CODE_GENERATION_MEDIA_FOLDER_QUALIFIER_DEFAULT_VALUE
        The default media folder qualifier used for coupon code generation.
        See Also:
        Constant Field Values
      • COUPON_CODE_GENERATION_ALPHABET_LENGTH_DEFAULT_VALUE

        public static final int COUPON_CODE_GENERATION_ALPHABET_LENGTH_DEFAULT_VALUE
        The default alphabet length (16). Note that the default implementation for coupon code generation only supports the default value.
        See Also:
        Constant Field Values
      • COUPON_CODE_GENERATION_PICK_ALPHABET_USING_SECURERANDOM_PROPERTY

        public static final java.lang.String COUPON_CODE_GENERATION_PICK_ALPHABET_USING_SECURERANDOM_PROPERTY
        The property that defines whether to use a SecureRandom (vs. a regular java.util.Random) for randomly picking an alphabet for each coupon. Setting this property to true results in using SecureRandom. Note that if your hybris installation runs on a VM, using SecureRandom requires special setup in order to avoid poor performance.
        See Also:
        Constant Field Values
      • COUPON_CODE_GENERATION_PREFIX_REGEX_PROPERTY

        public static final java.lang.String COUPON_CODE_GENERATION_PREFIX_REGEX_PROPERTY
        The property that defines the prefix regex used for coupon code generation.
        See Also:
        Constant Field Values
      • COUPON_CODE_GENERATION_PREFIX_REGEX_DEFAULT_VALUE

        public static final java.lang.String COUPON_CODE_GENERATION_PREFIX_REGEX_DEFAULT_VALUE
        The default prefix regex used for coupon code generation.
        See Also:
        Constant Field Values
      • COUPON_CODE_GENERATION_ALLOW_MULTIBYTE_CHARACTERS_PROPERTY

        public static final java.lang.String COUPON_CODE_GENERATION_ALLOW_MULTIBYTE_CHARACTERS_PROPERTY
        The property that defines global characterset allows multi byte characters used for coupon code generation.
        See Also:
        Constant Field Values
      • COUPON_CODE_GENERATION_SIGNATURE_ALGORITHM_ALLOW_NON_AES_PROPERTY

        public static final java.lang.String COUPON_CODE_GENERATION_SIGNATURE_ALGORITHM_ALLOW_NON_AES_PROPERTY
        The property that defines signature algorithm allows non aes used for coupon code generation.
        See Also:
        Constant Field Values
      • COUPON_CODE_GENERATION_ALPHABET_ALLOW_VARIABLE_LENGTH_PROPERTY

        public static final java.lang.String COUPON_CODE_GENERATION_ALPHABET_ALLOW_VARIABLE_LENGTH_PROPERTY
        The property that defines alphabet allows variable length used for coupon code generation.
        See Also:
        Constant Field Values
      • COUPON_CODE_INVALID_ERROR_CODE

        public static final java.lang.String COUPON_CODE_INVALID_ERROR_CODE
        The property that defines invalid coupon code error message code used while coupon code redemption.
        See Also:
        Constant Field Values
      • COUPON_CODE_ALREADY_REDEEMED_ERROR_CODE

        public static final java.lang.String COUPON_CODE_ALREADY_REDEEMED_ERROR_CODE
        The property that defines coupon code has already been redeemed error message code used while coupon code redemption.
        See Also:
        Constant Field Values
      • COUPON_ORDER_RECALCULATION_ERROR_CODE

        public static final java.lang.String COUPON_ORDER_RECALCULATION_ERROR_CODE
        The property that defines order recalculation error message code used while coupon code redemption.
        See Also:
        Constant Field Values
      • COUPON_CODE_EXPIRED_ERROR_CODE

        public static final java.lang.String COUPON_CODE_EXPIRED_ERROR_CODE
        The property that defines coupon code expired or not active error message code used while coupon code redemption.
        See Also:
        Constant Field Values
      • COUPON_CODE_ALREADY_EXISTS_ERROR_CODE

        public static final java.lang.String COUPON_CODE_ALREADY_EXISTS_ERROR_CODE
        The property that defines coupon code already applied error message code used while coupon code redemption.
        See Also:
        Constant Field Values
      • COUPON_GENERAL_ERROR_CODE

        public static final java.lang.String COUPON_GENERAL_ERROR_CODE
        The property that defines coupon general error code used while coupon code redemption.
        See Also:
        Constant Field Values