1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Uon\Endpoints; |
4
|
|
|
|
5
|
|
|
use Uon\Client; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* Class Misc |
9
|
|
|
* |
10
|
|
|
* @package Uon\Endpoint |
11
|
|
|
* @deprecated Will be removed in 2.1 |
12
|
|
|
*/ |
13
|
|
|
class Misc extends Client |
14
|
|
|
{ |
15
|
|
|
/** |
16
|
|
|
* Add flights into voucher |
17
|
|
|
* |
18
|
|
|
* https://api.u-on.ru/{key}/avia/create.{_format} |
19
|
|
|
* |
20
|
|
|
* @param array $parameters List of parameters |
21
|
|
|
* |
22
|
|
|
* @return \Uon\Interfaces\ClientInterface |
23
|
|
|
* @deprecated Use \Uon\Endpoints\Avia::create(array $parameters) instead |
24
|
|
|
*/ |
25
|
|
|
public function createAvia(array $parameters) |
26
|
|
|
{ |
27
|
|
|
return $this->avia->create($parameters); |
28
|
|
|
} |
29
|
|
|
|
30
|
|
|
/** |
31
|
|
|
* Add information about call |
32
|
|
|
* |
33
|
|
|
* https://api.u-on.ru/{key}/call_history/create.{_format} |
34
|
|
|
* |
35
|
|
|
* @param array $parameters List of parameters |
36
|
|
|
* |
37
|
|
|
* @return \Uon\Interfaces\ClientInterface |
38
|
|
|
* @deprecated Use \Uon\Endpoints\CallHistory::create(array $parameters) |
39
|
|
|
*/ |
40
|
|
|
public function createCall(array $parameters) |
41
|
|
|
{ |
42
|
|
|
return $this->callHistory->create($parameters); |
43
|
|
|
} |
44
|
|
|
|
45
|
|
|
/** |
46
|
|
|
* Add information about mail item |
47
|
|
|
* |
48
|
|
|
* https://api.u-on.ru/{key}/mail/create.{_format} |
49
|
|
|
* |
50
|
|
|
* @param array $parameters List of parameters |
51
|
|
|
* |
52
|
|
|
* @return \Uon\Interfaces\ClientInterface |
53
|
|
|
* @deprecated Use \Uon\Endpoints\Mail::create(array $parameters) |
54
|
|
|
*/ |
55
|
|
|
public function createMail(array $parameters) |
56
|
|
|
{ |
57
|
|
|
return $this->mails->create($parameters); |
58
|
|
|
} |
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* Get a list of currencies |
62
|
|
|
* |
63
|
|
|
* https://api.u-on.ru/{key}/currency.{_format} |
64
|
|
|
* |
65
|
|
|
* @return \Uon\Interfaces\ClientInterface |
66
|
|
|
* @deprecated Use \Uon\Endpoints\Currencies::all() |
67
|
|
|
*/ |
68
|
|
|
public function getCurrency() |
69
|
|
|
{ |
70
|
|
|
return $this->currencies->all(); |
71
|
|
|
} |
72
|
|
|
|
73
|
|
|
/** |
74
|
|
|
* Get a list of managers |
75
|
|
|
* |
76
|
|
|
* https://api.u-on.ru/{key}/manager.{_format} |
77
|
|
|
* |
78
|
|
|
* @return \Uon\Interfaces\ClientInterface |
79
|
|
|
* @deprecated Use \Uon\Endpoints\Managers::all() |
80
|
|
|
*/ |
81
|
|
|
public function getManagers() |
82
|
|
|
{ |
83
|
|
|
return $this->managers->all(); |
84
|
|
|
} |
85
|
|
|
|
86
|
|
|
/** |
87
|
|
|
* Get the list of offices |
88
|
|
|
* |
89
|
|
|
* https://api.u-on.ru/{key}/company-office.{_format} |
90
|
|
|
* |
91
|
|
|
* @return \Uon\Interfaces\ClientInterface |
92
|
|
|
* @deprecated Use \Uon\Endpoints\Offices::all() |
93
|
|
|
*/ |
94
|
|
|
public function getOffices() |
95
|
|
|
{ |
96
|
|
|
return $this->offices->all(); |
97
|
|
|
} |
98
|
|
|
|
99
|
|
|
/** |
100
|
|
|
* Get reason deny list |
101
|
|
|
* |
102
|
|
|
* https://api.u-on.ru/{key}/reason_deny.{_format} |
103
|
|
|
* |
104
|
|
|
* @return \Uon\Interfaces\ClientInterface |
105
|
|
|
* @deprecated Use \Uon\Endpoints\ReasonsDeny::all() |
106
|
|
|
*/ |
107
|
|
|
public function getReasonDeny() |
108
|
|
|
{ |
109
|
|
|
return $this->reasonsDeny->all(); |
110
|
|
|
} |
111
|
|
|
|
112
|
|
|
} |
113
|
|
|
|