protected function _prepareResult($result) { $return = parent::_prepareResult($result); if (!empty($return->subscriptions)) { $tmp = []; foreach ($return->subscriptions as $itm) { $tmp[] = (new SubscriptionSummaryRequest())->hydrate($itm); } $return->subscriptions = $tmp; } return $return; }
protected function _prepareResult($result) { $return = parent::_prepareResult($result); if (!empty($return->invoices)) { $tmp = []; foreach ($return->invoices as $itm) { $tmp[] = (new InvoiceSummaryRequest())->hydrate($itm); } $return->invoices = $tmp; } return $return; }