Editor - Webhooks

This view manages the webhooks of a business. opens with the function showWebhooks() in the view theme/editor/business.html

Main Modell

  • deal.webhooks
  • curWebhook
  • curWebhook.hook: hook used for this webhook must be listed manually:
  • users_register
  • orders_register
  • orders_status_updated
  • orders_update_driver
  • orders_pending
  • orders_completed
  • orders_rejected
  • orders_rejected_business
  • orders_rejected_driver
  • orders_accepted_business
  • orders_accepted_driver
  • orders_pickup_completed_driver
  • orders_pickup_failed_driver
  • orders_delivery_completed_driver
  • orders_delivery_failed_driver
  • curWebhook.url: URL para el el webhook

Utility Functions

  • add(curWebhook): add a new webhook
  • remove(webhook): Remove a webhook
  • update(webhook): Update a webhook
  • hideBusinessWebhooks(): closes this modal

Example of base theme

520520
  1. hideBusinessWebhooks()
  2. curWebhook.hook
  3. Hook list
  4. curWebhook.url
  5. add(curWebhook)