onServiceOptionsAndVariantsCreated( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Triggered when a serviceOptionsAndVariants object is created by cloning from the source object.

Method Declaration
Copy
function wixBookingsCatalog_onServiceOptionsAndVariantsCreated(
  event: ServiceOptionsAndVariantsCreated,
): void;
Method Parameters
eventServiceOptionsAndVariantsCreated
onServiceOptionsAndVariantsCreated example
JavaScript
export function wixBookingsCatalog_onServiceOptionsAndVariantsCreated(event) { const eventId = event.metadata.id; const entityId = event.entity._id; }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?

onServiceOptionsAndVariantsDeleted( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Triggered when a serviceOptionsAndVariants object is deleted.

Method Declaration
Copy
function wixBookingsCatalog_onServiceOptionsAndVariantsDeleted(
  event: ServiceOptionsAndVariantsDeleted,
): void;
Method Parameters
eventServiceOptionsAndVariantsDeleted
onServiceOptionsAndVariantsDeleted example
JavaScript
export function wixBookingsCatalog_onServiceOptionsAndVariantsDeleted(event) { const eventId = event.metadata.id; const entityId = event.entity._id; }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?

onServiceOptionsAndVariantsUpdated( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Triggered when a serviceOptionsAndVariants object is updated.

Method Declaration
Copy
function wixBookingsCatalog_onServiceOptionsAndVariantsUpdated(
  event: ServiceOptionsAndVariantsUpdated,
): void;
Method Parameters
eventServiceOptionsAndVariantsUpdated
onServiceOptionsAndVariantsUpdated example
JavaScript
export function wixBookingsCatalog_onServiceOptionsAndVariantsUpdated(event) { const eventId = event.metadata.id; const entityId = event.entity._id; }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?

onServiceCreated( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Method Declaration
Copy
function wixBookingsServices_onServiceCreated(event: ServiceCreated): void;
Method Parameters
eventServiceCreated
onServiceCreated example
JavaScript
export function wixBookingsServices_onServiceCreated(event) { const eventId = event.metadata.id; const entityId = event.entity._id; }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?

onServiceDeleted( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Method Declaration
Copy
function wixBookingsServices_onServiceDeleted(event: ServiceDeleted): void;
Method Parameters
eventServiceDeleted
onServiceDeleted example
JavaScript
export function wixBookingsServices_onServiceDeleted(event) { const eventId = event.metadata.id; const entityId = event.entity._id; }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?

onServiceUpdated( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Method Declaration
Copy
function wixBookingsServices_onServiceUpdated(event: ServiceUpdated): void;
Method Parameters
eventServiceUpdated
onServiceUpdated example
JavaScript
export function wixBookingsServices_onServiceUpdated(event) { const eventId = event.metadata.id; const entityId = event.entity._id; }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?