Webhook_Listener
Class Webhook_Listener
- Full name:
\BigCommerce\Webhooks\Webhook_Listener
Methods
__construct
Webhook_Listener constructor.
public __construct(\BigCommerce\Webhooks\Webhook[] $hooks): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$hooks | \BigCommerce\Webhooks\Webhook[] |
handle_request
public handle_request(array $args): void
Parameters:
Parameter | Type | Description |
---|---|---|
$args | array |
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