Свойство | Тип | Описание | |
---|---|---|---|
$api_client | WC_Connect_API_Client | ||
$logger | WC_Connect_Logger |
Метод | Описание | |
---|---|---|
__construct ( WC_Connect_API_Client $api_client, WC_Connect_Logger $logger ) | ||
fetch_service_schemas_from_connect_server ( ) | ||
get_all_service_ids_of_type ( string $type ) : array | Returns all service ids of a specific type (e.g. shipping) | |
get_last_fetch_timestamp ( ) | ||
get_packages_schema ( ) : object | null | Returns packages schema | |
get_predefined_packages_schema ( ) | ||
get_predefined_packages_schema_for_service ( $service_id ) | ||
get_service_schema_by_id ( $service_id ) : object | null | Returns a particular service's schema given its id | |
get_service_schema_by_id_or_instance_id ( string $id_or_instance_id ) : object | null | Returns a service's schema given an id or shipping zone instance. | |
get_service_schema_by_instance_id ( string $instance_id ) : object | null | Returns a service's schema given its shipping zone instance | |
get_service_schemas ( ) |
Метод | Описание | |
---|---|---|
maybe_update_heartbeat ( ) | ||
update_last_fetch_timestamp ( ) | ||
update_service_schemas ( $service_schemas ) |
public __construct ( WC_Connect_API_Client $api_client, WC_Connect_Logger $logger ) | ||
$api_client | WC_Connect_API_Client | |
$logger | WC_Connect_Logger |
public fetch_service_schemas_from_connect_server ( ) |
public get_all_service_ids_of_type ( string $type ) : array | ||
$type | string | The type of services to return |
Результат | array | An array of that type's service ids, or an empty array if no such type is known |
public get_packages_schema ( ) : object | null | ||
Результат | object | null | Packages schema on success, null on failure |
public get_predefined_packages_schema_for_service ( $service_id ) |
public get_service_schema_by_id ( $service_id ) : object | null | ||
Результат | object | null | The service schema or null if no such id was found |
protected WC_Connect_API_Client $api_client | ||
Результат | WC_Connect_API_Client |