Other

Other Application Events

Waiting List subscription

WAITING_QUEUE_SUBSCRIBED

Fired when someone subscribes to a waiting list

VariableTypeAbout
waitingQueueSubscriptionWaitingQueueSubscriptionDetails about the subscription

PDF Generation

PDF_GENERATION

Fired when a PDF needs to be generated. This is useful if you want to delegate the actual PDF generation to a dedicated service.

Script is expected to save the result in a temporary file (e.g. by using the postBodyAndSaveResponse method of SimpleHttpClient)

This is a synchronous call. A result of type PdfGenerationResult is expected. Return null if the generation was not successful.

VariableTypeAbout
eventEventThe event
htmlStringHTML to be converted to PDF
outputStreamOutputStreamOutputStream used to save the produced PDF

OAuth2 State param

OAUTH2_STATE_GENERATION

Fired when an an OAuth2 state parameter is needed, I.e. for setting up Stripe/Mollie connect.

This is a synchronous call. A String containing a valid URL must be returned, or null to proceed with the default settings.

VariableTypeAbout
baseUrlStringThe configured "Base URL" for the current organizer
organizationIdintOrganizer ID