Свойство | Тип | Описание | |
---|---|---|---|
$api_client | WC_Connect_API_Client | ||
$logger | WC_Connect_Logger | ||
$namespace | string | Endpoint namespace. | |
$rest_base | string | Route base. | |
$settings_store | WC_Connect_Service_Settings_Store |
Метод | Описание | |
---|---|---|
__construct ( WC_Connect_API_Client $api_client, WC_Connect_Service_Settings_Store $settings_store, WC_Connect_Logger $logger ) | ||
register_routes ( ) | Register the routes for shipping labels printing. | |
update_items ( WP_REST_Request $request ) : array | WP_Error | ||
update_items_permissions_check ( $request ) | Validate the requester's permissions |
public __construct ( WC_Connect_API_Client $api_client, WC_Connect_Service_Settings_Store $settings_store, WC_Connect_Logger $logger ) | ||
$api_client | WC_Connect_API_Client | |
$settings_store | WC_Connect_Service_Settings_Store | |
$logger | WC_Connect_Logger |
public register_routes ( ) |
public update_items ( WP_REST_Request $request ) : array | WP_Error | ||
$request | WP_REST_Request | - See WC_Connect_API_Client::get_label_rates() |
Результат | array | WP_Error |
public update_items_permissions_check ( $request ) |
protected WC_Connect_API_Client $api_client | ||
Результат | WC_Connect_API_Client |