Menu

## WC_Shipping_Shipcloud_Webhook
in package

class-wc-shipping-shipcloud-webhook.php : 19

### Table of Contents

$api : mixed
__construct() : void
  Constructor.
process_webhook_call() : void
  Processing shipcloud webhook calls
add_admin_notice() : void
  Output an admin notice.
delete_shipment_from_database() : void
  Delete shipment data from database.
get_tracking_event() : array<string|int, mixed>|bool
  Extract matching tracking event from shipment.
log() : void
  Output a debug message.
process_all_event() : void
  Processes a not related event notified via webhook.
process_shipment_event() : void
  Processes a shipment event notified via webhook.

### Properties

#### $api

class-wc-shipping-shipcloud-webhook.php : 21
`private mixed $api`

### Methods

#### __construct()

class-wc-shipping-shipcloud-webhook.php : 28

Constructor.

`public __construct() : void`

##### Return values

void —

#### process_webhook_call()

class-wc-shipping-shipcloud-webhook.php : 41

Processing shipcloud webhook calls

`public process_webhook_call() : void`

##### Return values

void —

#### add_admin_notice()

class-wc-shipping-shipcloud-webhook.php : 308

Output an admin notice.

`private add_admin_notice(string $message[, string $type = 'info' ][, bool $dismissible = true ]) : void`

##### Parameters

$message : string

  Debug message.

$type : string = 'info'

  Message type.

$dismissible : bool = true

  Message type.

##### Return values

void —

#### delete_shipment_from_database()

class-wc-shipping-shipcloud-webhook.php : 256

Delete shipment data from database.

`private delete_shipment_from_database(string $order_id, string $shipment_id, string $event) : void`

##### Parameters

$order_id : string

  The order ID.

$shipment_id : string

  The shipment ID.

$event : string

  The fired event.

##### Return values

void —

#### get_tracking_event()

class-wc-shipping-shipcloud-webhook.php : 280

Extract matching tracking event from shipment.

`private get_tracking_event(array<string|int, mixed> $shipment, string $timestamp) : array<string|int, mixed>|bool`

##### Parameters

$shipment : array<string|int, mixed>

  The shipment.

$timestamp : string

  The timestamp to match.

##### Return values

array<string|int, mixed>|bool —

#### log()

class-wc-shipping-shipcloud-webhook.php : 320

Output a debug message.

`private log(string $message[, string $level = 'info' ][, mixed $context = [] ]) : void`

##### Parameters

$message : string

  Debug message.

$level : string = 'info'

  Debug level.

$context : mixed = []

  The Debug context.

##### Return values

void —

#### process_all_event()

class-wc-shipping-shipcloud-webhook.php : 229

Processes a not related event notified via webhook.

`private process_all_event(object $event) : void`

##### Parameters

$event : object

  The webhook event.

##### Return values

void —

#### process_shipment_event()

class-wc-shipping-shipcloud-webhook.php : 105

Processes a shipment event notified via webhook.

`private process_shipment_event(object $event) : void`

##### Parameters

$event : object

  The webhook event.

##### Return values

void —

## Search results