ClassesBigCommerceWebhooksWebhook Versioning

Webhook_Versioning

Class Webhook_Versioning

Handle webhook update logic depends on the webhooks version

  • Full name: \BigCommerce\Webhooks\Webhook_Versioning

Constants

ConstantVisibilityTypeValue
VERSIONpublic2

Methods

__construct

Webhook_Listener constructor.

public __construct(\BigCommerce\Webhooks\Webhook[] $hooks): mixed

Parameters:

ParameterTypeDescription
$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:

ParameterTypeDescription
$hookstring
$hooks_enabledfalse

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:

ParameterTypeDescription
$hookstring
$hooks_enabledfalse

is_customer_webhook

Check if it is a customer webhook

public is_customer_webhook(string $hook = ''): bool

Parameters:

ParameterTypeDescription
$hookstring

get_customer_webhooks

Return list of customer webhooks

public get_customer_webhooks(): array


Automatically generated on 2025-01-21