Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
handlers.php
1<?php
2
4
10{
11 private const SCOPE = 'delivery';
12
16 public static function OnRestServiceBuildDescription(): array
17 {
18 return [
19 self::SCOPE => [
20 // handler
21 'sale.delivery.handler.add' => [HandlerService::class, 'addHandler'],
22 'sale.delivery.handler.update' => [HandlerService::class, 'updateHandler'],
23 'sale.delivery.handler.delete' => [HandlerService::class, 'deleteHandler'],
24 'sale.delivery.handler.list' => [HandlerService::class, 'getHandlerList'],
25 // delivery service
26 'sale.delivery.add' => [DeliveryService::class, 'addDelivery'],
27 'sale.delivery.update' => [DeliveryService::class, 'updateDelivery'],
28 'sale.delivery.delete' => [DeliveryService::class, 'deleteDelivery'],
29 'sale.delivery.getList' => [DeliveryService::class, 'getDeliveryList'],
30 'sale.delivery.config.get' => [DeliveryService::class, 'getConfig'],
31 'sale.delivery.config.update' => [DeliveryService::class, 'updateConfig'],
32 // delivery request
33 'sale.delivery.request.update' => [RequestService::class, 'updateRequest'],
34 'sale.delivery.request.delete' => [RequestService::class, 'deleteRequest'],
35 'sale.delivery.request.sendmessage' => [RequestService::class, 'sendMessage'],
36 // delivery extra services
37 'sale.delivery.extra.service.add' => [ExtraServicesService::class, 'addExtraServices'],
38 'sale.delivery.extra.service.update' => [ExtraServicesService::class, 'updateExtraServices'],
39 'sale.delivery.extra.service.delete' => [ExtraServicesService::class, 'deleteExtraServices'],
40 'sale.delivery.extra.service.get' => [ExtraServicesService::class, 'get'],
41 ],
42 ];
43 }
44}