@@ -64,6 +64,9 @@ abstract class EventSettingDomainObjectAbstract extends \HiEvents\DomainObjects\
6464 final public const HOMEPAGE_THEME_SETTINGS = 'homepage_theme_settings ' ;
6565 final public const PASS_PLATFORM_FEE_TO_BUYER = 'pass_platform_fee_to_buyer ' ;
6666 final public const ALLOW_ATTENDEE_SELF_EDIT = 'allow_attendee_self_edit ' ;
67+ final public const WAITLIST_ENABLED = 'waitlist_enabled ' ;
68+ final public const WAITLIST_AUTO_PROCESS = 'waitlist_auto_process ' ;
69+ final public const WAITLIST_OFFER_TIMEOUT_MINUTES = 'waitlist_offer_timeout_minutes ' ;
6770
6871 protected int $ id ;
6972 protected int $ event_id ;
@@ -119,6 +122,9 @@ abstract class EventSettingDomainObjectAbstract extends \HiEvents\DomainObjects\
119122 protected array |string |null $ homepage_theme_settings = null ;
120123 protected bool $ pass_platform_fee_to_buyer = false ;
121124 protected bool $ allow_attendee_self_edit = true ;
125+ protected bool $ waitlist_enabled = false ;
126+ protected bool $ waitlist_auto_process = false ;
127+ protected ?int $ waitlist_offer_timeout_minutes = null ;
122128
123129 public function toArray (): array
124130 {
@@ -177,6 +183,9 @@ public function toArray(): array
177183 'homepage_theme_settings ' => $ this ->homepage_theme_settings ?? null ,
178184 'pass_platform_fee_to_buyer ' => $ this ->pass_platform_fee_to_buyer ?? null ,
179185 'allow_attendee_self_edit ' => $ this ->allow_attendee_self_edit ?? null ,
186+ 'waitlist_enabled ' => $ this ->waitlist_enabled ?? null ,
187+ 'waitlist_auto_process ' => $ this ->waitlist_auto_process ?? null ,
188+ 'waitlist_offer_timeout_minutes ' => $ this ->waitlist_offer_timeout_minutes ?? null ,
180189 ];
181190 }
182191
@@ -774,4 +783,37 @@ public function getAllowAttendeeSelfEdit(): bool
774783 {
775784 return $ this ->allow_attendee_self_edit ;
776785 }
786+
787+ public function setWaitlistEnabled (bool $ waitlist_enabled ): self
788+ {
789+ $ this ->waitlist_enabled = $ waitlist_enabled ;
790+ return $ this ;
791+ }
792+
793+ public function getWaitlistEnabled (): bool
794+ {
795+ return $ this ->waitlist_enabled ;
796+ }
797+
798+ public function setWaitlistAutoProcess (bool $ waitlist_auto_process ): self
799+ {
800+ $ this ->waitlist_auto_process = $ waitlist_auto_process ;
801+ return $ this ;
802+ }
803+
804+ public function getWaitlistAutoProcess (): bool
805+ {
806+ return $ this ->waitlist_auto_process ;
807+ }
808+
809+ public function setWaitlistOfferTimeoutMinutes (?int $ waitlist_offer_timeout_minutes ): self
810+ {
811+ $ this ->waitlist_offer_timeout_minutes = $ waitlist_offer_timeout_minutes ;
812+ return $ this ;
813+ }
814+
815+ public function getWaitlistOfferTimeoutMinutes (): ?int
816+ {
817+ return $ this ->waitlist_offer_timeout_minutes ;
818+ }
777819}
0 commit comments