Class CouponSetDto

    • Constructor Detail

      • CouponSetDto

        public CouponSetDto()
    • Method Detail

      • isDateSelectionValid

        @AssertTrue(groups=CouponSetCreationConstraint.class,
                    message="system.liquid.couponset.date.selection.mandatory")
        public boolean isDateSelectionValid()
        Validates that either `duration` or `activeUntil` is set, but not both or neither. Also validates the same rule for `durationInMonths` and `activeUntil`.
        Returns:
        true if the date selection is valid, false otherwise