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.
Method of the class: WC_REST_Order_Refunds_Controller{}
No Hooks.
Returns
DataUtils.
Usage
// private - for code of main (parent) class only $result = $this->get_data_utils(): DataUtils;
WC_REST_Order_Refunds_Controller::get_data_utils() WC REST Order Refunds Controller::get data utils code WC 11.1.2
private function get_data_utils(): DataUtils {
return wc_get_container()->get( DataUtils::class );
}