1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
pricechanged.php
См. документацию.
1<?php
2
3namespace Sale\Handlers\Delivery\YandexTaxi\Api\ApiResult\Journal;
4
10final class PriceChanged extends Event
11{
12 public const EVENT_CODE = 'price_changed';
13
15 protected $newPrice;
16
18 protected $newCurrency;
19
23 public function getCode(): string
24 {
25 return static::EVENT_CODE;
26 }
27
31 public function getNewPrice()
32 {
33 return $this->newPrice;
34 }
35
40 public function setNewPrice(string $newPrice): PriceChanged
41 {
42 $this->newPrice = $newPrice;
43
44 return $this;
45 }
46
50 public function getNewCurrency()
51 {
52 return $this->newCurrency;
53 }
54
59 public function setNewCurrency(string $newCurrency): PriceChanged
60 {
61 $this->newCurrency = $newCurrency;
62
63 return $this;
64 }
65
69 public function provideUpdateFields(): array
70 {
71 return [
72 'EXTERNAL_CURRENCY' => $this->newCurrency,
73 'EXTERNAL_FINAL_PRICE' => $this->newPrice,
74 ];
75 }
76}
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804