Beispiel #1
0
 protected function _prepareResult($result)
 {
     $return = parent::_prepareResult($result);
     if (!empty($return->subItems)) {
         $tmp = [];
         foreach ($return->subItems as $itm) {
             $tmp[] = (new InvoiceSubItemRequest())->hydrate($itm);
         }
         $return->subItems = $tmp;
     }
     return $return;
 }
Beispiel #2
0
 protected function _prepareResult($result)
 {
     $return = parent::_prepareResult($result);
     if (!empty($return->defaultPrice)) {
         $return->defaultPrice = (new ProductPriceRequest())->hydrate($return->defaultPrice);
     }
     return $return;
 }