Webhook_Versioning
Class Webhook_Versioning
Handle webhook update logic depends on the webhooks version
- Full name:
\BigCommerce\Webhooks\Webhook_Versioning
Constants
Constant | Visibility | Type | Value |
---|---|---|---|
VERSION | public | 2 |
Methods
__construct
Webhook_Listener constructor.
public __construct(\BigCommerce\Webhooks\Webhook[] $hooks): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$hooks | \BigCommerce\Webhooks\Webhook[] |
maybe_update_webhooks
public maybe_update_webhooks(): void
Inherited methods
product_webhooks_enabled
Is product webhooks are enabled
public product_webhooks_enabled(): bool
customer_webhooks_enabled
If customer webhooks are enabled
public customer_webhooks_enabled(): bool
maybe_skip_product_hooks
Should we skip the product hook or no
public maybe_skip_product_hooks(string $hook = '', false $hooks_enabled = false): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$hook | string | |
$hooks_enabled | false |
maybe_skip_customer_hooks
Should we skip the customer hook or no
public maybe_skip_customer_hooks(string $hook = '', false $hooks_enabled = false): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$hook | string | |
$hooks_enabled | false |
is_customer_webhook
Check if it is a customer webhook
public is_customer_webhook(string $hook = ''): bool
Parameters:
Parameter | Type | Description |
---|---|---|
$hook | string |
get_customer_webhooks
Return list of customer webhooks
public get_customer_webhooks(): array
Automatically generated on 2025-01-21