function buildWebhookPayload
buildWebhookPayload(
entries: RegistrationEntry[],
currency: string,
source: WebhookBookingSource,
pricingByGroup?: PackagePricingByGroup,
): WebhookPayload

Build a consolidated webhook payload from registration entries. source is required: a new booking path states its stored source, and a re-send of a booking with no contact history states "unknown".

Parameters

currency: string
source: WebhookBookingSource
optional
pricingByGroup: PackagePricingByGroup

Return Type

Usage

import { buildWebhookPayload } from "doc.ts";