WC_REST_Order_Refunds_Controller::get_data_utils
Get the shared refund calculation engine.
DataUtils is the calculation/validation engine shared with the wc/v4 refunds endpoints (the V4 segment in its namespace is historical); using it here keeps wc/v3 and wc/v4 refund math identical.
Метод класса: WC_REST_Order_Refunds_Controller{}
Хуков нет.
Возвращает
DataUtils.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_data_utils(): DataUtils;
Код WC_REST_Order_Refunds_Controller::get_data_utils() WC REST Order Refunds Controller::get data utils WC 11.2.2
private function get_data_utils(): DataUtils {
return wc_get_container()->get( DataUtils::class );
}