Skip to main content

BillaBear Customer Events

Here is the information relating to events relating to Customers

Customer Created

This is triggered when a customer is created.

NameConstant For Name
billabear.customer.createdBillaBear\Event\Customer\CustomerCreated::NAME

Event Class

namespace BillaBear\Event\Customer;

use BillaBear\Entity\Customer;
use Symfony\Contracts\EventDispatcher\Event;

class CustomerCreated extends Event
{
public const string NAME = 'billabear.customer.created';

public function __construct(public readonly Customer $customer)
{
}
}

Customer Disabled

This is triggered when a customer is disabled.

NameConstant For Name
billabear.customer.disabledBillaBear\Event\Customer\CustomerDisabled::NAME

Event Class

namespace BillaBear\Event\Customer;

use BillaBear\Entity\Customer;
use Symfony\Contracts\EventDispatcher\Event;

class CustomerDisabled extends Event
{
public const string NAME = 'billabear.customer.disabled';

public function __construct(public readonly Customer $customer)
{
}
}

Customer Enabled

This is triggered when a disabled customer is enabled again

NameConstant For Name
billabear.customer.enabledBillaBear\Event\Customer\CustomerEnabled::NAME

Event Class

namespace BillaBear\Event\Customer;

use BillaBear\Entity\Customer;
use Symfony\Contracts\EventDispatcher\Event;

class CustomerEnabled extends Event
{
public const string NAME = 'billabear.customer.enabled';

public function __construct(public readonly Customer $customer)
{
}
}