ClassesBigCommerceWebhooksCustomerCustomer Deleter

Customer_Deleter

Abstract class for handling BigCommerce customer webhook operations.

Methods

handle_request

Delete single customer by id

public handle_request(int $customer_id, array $channel_ids = []): bool

Parameters:

ParameterTypeDescription
$customer_idint
$channel_idsarray

Inherited methods

__construct

public __construct(\BigCommerce\Api\v3\Api\CustomersApi $customers_api): mixed

Parameters:

ParameterTypeDescription
$customers_api\BigCommerce\Api\v3\Api\CustomersApi

get_v3_customer_by_id

Get customer details via v3 API. v3 will return channels_ids that will be used later in channel aware logic

protected get_v3_customer_by_id(int $customer_id): false|mixed

Parameters:

ParameterTypeDescription
$customer_idint

handle_request

Handle webhook requests

public handle_request(int $customer_id, array $channel_ids = []): bool
  • This method is abstract.

Parameters:

ParameterTypeDescription
$customer_idint
$channel_idsarray

get_by_bc_id

Get customer by BC id

public get_by_bc_id(mixed $id): false|mixed|null

Parameters:

ParameterTypeDescription
$idmixed

get_customer_match

public get_customer_match(int $customer_id): array

Parameters:

ParameterTypeDescription
$customer_idint

delete_customer

protected delete_customer(int $customer_id): bool

Parameters:

ParameterTypeDescription
$customer_idint

maybe_remove_customer_msf

protected maybe_remove_customer_msf(\BigCommerce\Api\v3\Model\Customer $customer): bool

Parameters:

ParameterTypeDescription
$customer\BigCommerce\Api\v3\Model\Customer

save_customer_channel_data

protected save_customer_channel_data(\WP_User $user, \BigCommerce\Api\v3\Model\Customer $customer): void

Parameters:

ParameterTypeDescription
$user\WP_User
$customer\BigCommerce\Api\v3\Model\Customer


Automatically generated on 2025-01-21