shipcloud for WooCommerce

WC_Shipping_Shipcloud_Carrier
in package
implements JsonSerializable

Interfaces, Classes and Traits

JsonSerializable

Table of Contents

$additional_services  : array<string|int, mixed>
$display_name  : string
$label_formats  : array<string|int, mixed>
$name  : string
$package_types  : array<string|int, mixed>
$services  : array<string|int, mixed>
__construct()  : void
Create new carrier.
get_additional_services()  : array<string|int, mixed>
Get a list of additional services.
get_display_name()  : string
Get the display name.
get_label_formats()  : array<string|int, mixed>
Get a list of label formats.
get_name()  : string
Retrieve the internal name.
get_package_types()  : array<string|int, mixed>
Get package types.
get_services()  : array<string|int, mixed>
Get a list of services.
jsonSerialize()  : mixed
Specify data which should be serialized to JSON.

Properties

Methods

__construct()

Create new carrier.

public __construct([array<string|int, mixed> $carrier = [] ][, array<string|int, mixed> $services = [] ]) : void
Parameters
$carrier : array<string|int, mixed> = []
$services : array<string|int, mixed> = []
Return values
void

get_additional_services()

Get a list of additional services.

public get_additional_services() : array<string|int, mixed>

The unordered array contains the internal names of additional services which the carrier offers.

Return values
array<string|int, mixed>

get_label_formats()

Get a list of label formats.

public get_label_formats() : array<string|int, mixed>

The unordered array contains the internal names of label formats which the carrier offers.

Return values
array<string|int, mixed>

get_services()

Get a list of services.

public get_services() : array<string|int, mixed>

The unordered array contains the internal names of services which the carrier offers.

Return values
array<string|int, mixed>

jsonSerialize()

Specify data which should be serialized to JSON.

public jsonSerialize() : mixed

This is done for using the original snake_case keys instead of the camelCase properties.

Return values
mixed

Search results