12 static protected function onReceive($orderId, array $settings)
14 $item = \Bitrix\Sale\Exchange\Integration\Relation\Relation::getByEntity(
21 $relation = Integration\Relation\Relation::createFromArray([
22 'SRC_ENTITY_TYPE_ID'=>$item[
'SRC_ENTITY_TYPE_ID'],
23 'SRC_ENTITY_ID'=>$item[
'SRC_ENTITY_ID'],
24 'DST_ENTITY_TYPE_ID'=>$item[
'DST_ENTITY_TYPE_ID'],
25 'DST_ENTITY_ID'=>$item[
'DST_ENTITY_ID']
30 $r = $proxy->onReceive(
31 $relation->getDestinationEntityId(),
32 $relation->getDestinationEntityTypeId(),
38 $result = $r->getData()[
'DATA'][
'result'];
42 $result[
'error'] = $r->getErrorMessages();