31 'ID' => $shipmentData[
'ORDER_ID'],
32 'SITE_ID' => $shipmentData[
'SITE_ID'],
33 'SHIPMENT' => array($shipmentData)
48 $collection = $order->getShipmentCollection();
50 if((
int)$shipmentData[
'ID'] > 0)
52 return $collection->getItemById($shipmentData[
'ID']);
56 foreach($collection as $shipment)
58 if($shipment->getId() <= 0)
78 'ID' => $paymentData[
'ORDER_ID'],
79 'PAYMENT' => array($paymentData)
94 $collection = $order->getPaymentCollection();
96 $paymentId = (int)($paymentData[
'ID'] ?? 0);
99 return $collection->getItemById($paymentId);
103 foreach ($collection as $payment)
105 if ($payment->getId() === 0)