33 "SID" =>
'new'.$this->service->getId(),
34 "NAME" => $this->service->getName(),
35 "DESCRIPTION" => $this->service->getDescription(),
36 "DESCRIPTION_INNER" =>
"DESCRIPTION_INNER",
37 "BASE_CURRENCY" => $this->service->getCurrency(),
38 "HANDLER" => self::HANDLER,
41 "COMPABILITY" => array($this,
"compatibility"),
42 "CALCULATOR" => array($this,
"calculate"),
79 public function calculate($profile, $arConfig, $arOrder, $STEP, $TEMP =
false)
81 $res = $this->service->calculate(
82 \CSaleDelivery::convertOrderOldToNew($arOrder)
86 "VALUE" => $res->getPrice(),
87 "TRANSIT" => $res->getPeriodDescription(),
88 "RESULT" => $res->isSuccess() ?
"OK" :
"ERROR",