Enum BookCouponGroupAction

  • All Implemented Interfaces:
    Serializable, Comparable<BookCouponGroupAction>

    public enum BookCouponGroupAction
    extends Enum<BookCouponGroupAction>
    Represents the available actions for a book coupon group.

    This enum defines the actions that can be performed on a book coupon group, such as assigning the coupon and triggering its redeem flow.

    Useful for determining the operation that should be executed when interacting with a coupon group through the API.
    Author:
    mtavlopoulou
    • Enum Constant Detail

      • ASSIGN_GIVE_REDEEM_TRIGGER_FLOW

        public static final BookCouponGroupAction ASSIGN_GIVE_REDEEM_TRIGGER_FLOW
        Action that assigns a coupon group and triggers its redeem flow.

        Typically used when a coupon should be both given and activated in a single step.

    • Method Detail

      • values

        public static BookCouponGroupAction[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (BookCouponGroupAction c : BookCouponGroupAction.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static BookCouponGroupAction valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null