1 | <?php |
||
21 | class WuBookCancellationPolicies extends WuBookApi |
||
22 | { |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | private $token; |
||
28 | |||
29 | /** |
||
30 | * Create a new WuBookRooms Instance. |
||
31 | */ |
||
32 | public function __construct($config, $cache, $client, $token = null) |
||
38 | |||
39 | /** |
||
40 | * http://tdocs.wubook.net/wired/cpolicies.html#fetch_policies |
||
41 | * |
||
42 | * @param int $ancillary |
||
43 | * @return mixed |
||
44 | */ |
||
45 | public function fetch_policies($ancillary = 0) |
||
49 | |||
50 | /** |
||
51 | * http://tdocs.wubook.net/wired/cpolicies.html#new_policy |
||
52 | * |
||
53 | * @param array $data |
||
54 | * @return mixed |
||
55 | */ |
||
56 | public function new_policy($data) |
||
60 | |||
61 | /** |
||
62 | * http://tdocs.wubook.net/wired/cpolicies.html#mod_policy |
||
63 | * |
||
64 | * @param array $data |
||
65 | * @return mixed |
||
66 | */ |
||
67 | public function mod_policy($data) |
||
71 | |||
72 | /** |
||
73 | * http://tdocs.wubook.net/wired/cpolicies.html#del_policy |
||
74 | * |
||
75 | * @param int $id |
||
76 | * @return mixed |
||
77 | */ |
||
78 | public function del_policy($id) |
||
82 | |||
83 | /** |
||
84 | * http://tdocs.wubook.net/wired/cpolicies.html#fetch_policy_calendar |
||
85 | * |
||
86 | * @param string $dfrom |
||
87 | * @param string $dto |
||
88 | * @return mixed |
||
89 | */ |
||
90 | public function fetch_policy_calendar($dfrom, $dto) |
||
94 | |||
95 | /** |
||
96 | * http://tdocs.wubook.net/wired/cpolicies.html#set_policy_calendar |
||
97 | * |
||
98 | * @param int $id |
||
99 | * @param string $dfrom |
||
100 | * @param string $dto |
||
101 | * @return mixed |
||
102 | */ |
||
103 | public function set_policy_calendar($id, $dfrom, $dto) |
||
107 | } |
||
108 |